Mon Jul 29 08:53:08 2002 +0000
Initial revision
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/.cvsignore Mon Jul 29 08:53:08 2002 +0000 1.3 @@ -0,0 +1,13 @@ 1.4 +Makefile 1.5 +stamp-h 1.6 +config.status 1.7 +config.cache 1.8 +config.h 1.9 +config.log 1.10 +libtool 1.11 +stamp-h1.in 1.12 +stamp-h2.in 1.13 +stamp-h1 1.14 +coin-config 1.15 +.deps 1.16 +autom4te.cache
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/AUTHORS Mon Jul 29 08:53:08 2002 +0000 2.3 @@ -0,0 +1,2 @@ 2.4 +Systems in Motion, <URL:http://www.sim.no> 2.5 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/COPYING Mon Jul 29 08:53:08 2002 +0000 3.3 @@ -0,0 +1,4 @@ 3.4 +SmallChange is a collection of extension to the Open Inventor API. It is 3.5 +released publicly under the GNU General Public License ("GPL" 3.6 +for short). 3.7 +
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/INSTALL Mon Jul 29 08:53:08 2002 +0000 4.3 @@ -0,0 +1,182 @@ 4.4 +Basic Installation of Coin Beta version 4.5 +======================================= 4.6 + 4.7 + These are generic installation instructions. 4.8 + 4.9 + The `configure' shell script attempts to guess correct values for 4.10 +various system-dependent variables used during compilation. It uses 4.11 +those values to create a `Makefile' in each directory of the package. 4.12 +It may also create one or more `.h' files containing system-dependent 4.13 +definitions. Finally, it creates a shell script `config.status' that 4.14 +you can run in the future to recreate the current configuration, a file 4.15 +`config.cache' that saves the results of its tests to speed up 4.16 +reconfiguring, and a file `config.log' containing compiler output 4.17 +(useful mainly for debugging `configure'). 4.18 + 4.19 + If you need to do unusual things to compile the package, please try 4.20 +to figure out how `configure' could check whether to do them, and mail 4.21 +diffs or instructions to the address given in the `README' so they can 4.22 +be considered for the next release. If at some point `config.cache' 4.23 +contains results you don't want to keep, you may remove or edit it. 4.24 + 4.25 + The file `configure.in' is used to create `configure' by a program 4.26 +called `autoconf'. You only need `configure.in' if you want to change 4.27 +it or regenerate `configure' using a newer version of `autoconf'. 4.28 + 4.29 +The simplest way to compile this package is: 4.30 + 4.31 + 1. `cd' to the directory containing the package's source code and type 4.32 + `./configure' to configure the package for your system. If you're 4.33 + using `csh' on an old version of System V, you might need to type 4.34 + `sh ./configure' instead to prevent `csh' from trying to execute 4.35 + `configure' itself. 4.36 + 4.37 + Running `configure' takes awhile. While running, it prints some 4.38 + messages telling which features it is checking for. 4.39 + 4.40 + 2. Type `make' to compile the package. 4.41 + 4.42 + 3. Optionally, type `make check' to run any self-tests that come with 4.43 + the package. 4.44 + 4.45 + 4. Type `make install' to install the programs and any data files and 4.46 + documentation. 4.47 + 4.48 + 5. You can remove the program binaries and object files from the 4.49 + source code directory by typing `make clean'. To also remove the 4.50 + files that `configure' created (so you can compile the package for 4.51 + a different kind of computer), type `make distclean'. There is 4.52 + also a `make maintainer-clean' target, but that is intended mainly 4.53 + for the package's developers. If you use it, you may have to get 4.54 + all sorts of other programs in order to regenerate files that came 4.55 + with the distribution. 4.56 + 4.57 +Compilers and Options 4.58 +===================== 4.59 + 4.60 + Some systems require unusual options for compilation or linking that 4.61 +the `configure' script does not know about. You can give `configure' 4.62 +initial values for variables by setting them in the environment. Using 4.63 +a Bourne-compatible shell, you can do that on the command line like 4.64 +this: 4.65 + CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure 4.66 + 4.67 +Or on systems that have the `env' program, you can do it like this: 4.68 + env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure 4.69 + 4.70 +Compiling For Multiple Architectures 4.71 +==================================== 4.72 + 4.73 + You can compile the package for more than one kind of computer at the 4.74 +same time, by placing the object files for each architecture in their 4.75 +own directory. To do this, you must use a version of `make' that 4.76 +supports the `VPATH' variable, such as GNU `make'. `cd' to the 4.77 +directory where you want the object files and executables to go and run 4.78 +the `configure' script. `configure' automatically checks for the 4.79 +source code in the directory that `configure' is in and in `..'. 4.80 + 4.81 + If you have to use a `make' that does not supports the `VPATH' 4.82 +variable, you have to compile the package for one architecture at a time 4.83 +in the source code directory. After you have installed the package for 4.84 +one architecture, use `make distclean' before reconfiguring for another 4.85 +architecture. 4.86 + 4.87 +Installation Names 4.88 +================== 4.89 + 4.90 + By default, `make install' will install the package's files in 4.91 +`/usr/local/bin', `/usr/local/man', etc. You can specify an 4.92 +installation prefix other than `/usr/local' by giving `configure' the 4.93 +option `--prefix=PATH'. 4.94 + 4.95 + You can specify separate installation prefixes for 4.96 +architecture-specific files and architecture-independent files. If you 4.97 +give `configure' the option `--exec-prefix=PATH', the package will use 4.98 +PATH as the prefix for installing programs and libraries. 4.99 +Documentation and other data files will still use the regular prefix. 4.100 + 4.101 + In addition, if you use an unusual directory layout you can give 4.102 +options like `--bindir=PATH' to specify different values for particular 4.103 +kinds of files. Run `configure --help' for a list of the directories 4.104 +you can set and what kinds of files go in them. 4.105 + 4.106 + If the package supports it, you can cause programs to be installed 4.107 +with an extra prefix or suffix on their names by giving `configure' the 4.108 +option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'. 4.109 + 4.110 +Optional Features 4.111 +================= 4.112 + 4.113 + Some packages pay attention to `--enable-FEATURE' options to 4.114 +`configure', where FEATURE indicates an optional part of the package. 4.115 +They may also pay attention to `--with-PACKAGE' options, where PACKAGE 4.116 +is something like `gnu-as' or `x' (for the X Window System). The 4.117 +`README' should mention any `--enable-' and `--with-' options that the 4.118 +package recognizes. 4.119 + 4.120 + For packages that use the X Window System, `configure' can usually 4.121 +find the X include and library files automatically, but if it doesn't, 4.122 +you can use the `configure' options `--x-includes=DIR' and 4.123 +`--x-libraries=DIR' to specify their locations. 4.124 + 4.125 +Specifying the System Type 4.126 +========================== 4.127 + 4.128 + There may be some features `configure' can not figure out 4.129 +automatically, but needs to determine by the type of host the package 4.130 +will run on. Usually `configure' can figure that out, but if it prints 4.131 +a message saying it can not guess the host type, give it the 4.132 +`--host=TYPE' option. TYPE can either be a short name for the system 4.133 +type, such as `sun4', or a canonical name with three fields: 4.134 + CPU-COMPANY-SYSTEM 4.135 + 4.136 +See the file `config.sub' for the possible values of each field. If 4.137 +`config.sub' isn't included in this package, then this package doesn't 4.138 +need to know the host type. 4.139 + 4.140 + If you are building compiler tools for cross-compiling, you can also 4.141 +use the `--target=TYPE' option to select the type of system they will 4.142 +produce code for and the `--build=TYPE' option to select the type of 4.143 +system on which you are compiling the package. 4.144 + 4.145 +Sharing Defaults 4.146 +================ 4.147 + 4.148 + If you want to set default values for `configure' scripts to share, 4.149 +you can create a site shell script called `config.site' that gives 4.150 +default values for variables like `CC', `cache_file', and `prefix'. 4.151 +`configure' looks for `PREFIX/share/config.site' if it exists, then 4.152 +`PREFIX/etc/config.site' if it exists. Or, you can set the 4.153 +`CONFIG_SITE' environment variable to the location of the site script. 4.154 +A warning: not all `configure' scripts look for a site script. 4.155 + 4.156 +Operation Controls 4.157 +================== 4.158 + 4.159 + `configure' recognizes the following options to control how it 4.160 +operates. 4.161 + 4.162 +`--cache-file=FILE' 4.163 + Use and save the results of the tests in FILE instead of 4.164 + `./config.cache'. Set FILE to `/dev/null' to disable caching, for 4.165 + debugging `configure'. 4.166 + 4.167 +`--help' 4.168 + Print a summary of the options to `configure', and exit. 4.169 + 4.170 +`--quiet' 4.171 +`--silent' 4.172 +`-q' 4.173 + Do not print messages saying which checks are being made. To 4.174 + suppress all normal output, redirect it to `/dev/null' (any error 4.175 + messages will still be shown). 4.176 + 4.177 +`--srcdir=DIR' 4.178 + Look for the package's source code in directory DIR. Usually 4.179 + `configure' can determine that directory automatically. 4.180 + 4.181 +`--version' 4.182 + Print the version of Autoconf used to generate the `configure' 4.183 + script, and exit. 4.184 + 4.185 +`configure' also accepts some other, not widely useful, options.
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 5.2 +++ b/LICENSE.GPL Mon Jul 29 08:53:08 2002 +0000 5.3 @@ -0,0 +1,339 @@ 5.4 + GNU GENERAL PUBLIC LICENSE 5.5 + Version 2, June 1991 5.6 + 5.7 + Copyright (C) 1989, 1991 Free Software Foundation, Inc. 5.8 + 675 Mass Ave, Cambridge, MA 02139, USA 5.9 + Everyone is permitted to copy and distribute verbatim copies 5.10 + of this license document, but changing it is not allowed. 5.11 + 5.12 + Preamble 5.13 + 5.14 + The licenses for most software are designed to take away your 5.15 +freedom to share and change it. By contrast, the GNU General Public 5.16 +License is intended to guarantee your freedom to share and change free 5.17 +software--to make sure the software is free for all its users. This 5.18 +General Public License applies to most of the Free Software 5.19 +Foundation's software and to any other program whose authors commit to 5.20 +using it. (Some other Free Software Foundation software is covered by 5.21 +the GNU Library General Public License instead.) You can apply it to 5.22 +your programs, too. 5.23 + 5.24 + When we speak of free software, we are referring to freedom, not 5.25 +price. Our General Public Licenses are designed to make sure that you 5.26 +have the freedom to distribute copies of free software (and charge for 5.27 +this service if you wish), that you receive source code or can get it 5.28 +if you want it, that you can change the software or use pieces of it 5.29 +in new free programs; and that you know you can do these things. 5.30 + 5.31 + To protect your rights, we need to make restrictions that forbid 5.32 +anyone to deny you these rights or to ask you to surrender the rights. 5.33 +These restrictions translate to certain responsibilities for you if you 5.34 +distribute copies of the software, or if you modify it. 5.35 + 5.36 + For example, if you distribute copies of such a program, whether 5.37 +gratis or for a fee, you must give the recipients all the rights that 5.38 +you have. You must make sure that they, too, receive or can get the 5.39 +source code. And you must show them these terms so they know their 5.40 +rights. 5.41 + 5.42 + We protect your rights with two steps: (1) copyright the software, and 5.43 +(2) offer you this license which gives you legal permission to copy, 5.44 +distribute and/or modify the software. 5.45 + 5.46 + Also, for each author's protection and ours, we want to make certain 5.47 +that everyone understands that there is no warranty for this free 5.48 +software. If the software is modified by someone else and passed on, we 5.49 +want its recipients to know that what they have is not the original, so 5.50 +that any problems introduced by others will not reflect on the original 5.51 +authors' reputations. 5.52 + 5.53 + Finally, any free program is threatened constantly by software 5.54 +patents. We wish to avoid the danger that redistributors of a free 5.55 +program will individually obtain patent licenses, in effect making the 5.56 +program proprietary. To prevent this, we have made it clear that any 5.57 +patent must be licensed for everyone's free use or not licensed at all. 5.58 + 5.59 + The precise terms and conditions for copying, distribution and 5.60 +modification follow. 5.61 + 5.62 + GNU GENERAL PUBLIC LICENSE 5.63 + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 5.64 + 5.65 + 0. This License applies to any program or other work which contains 5.66 +a notice placed by the copyright holder saying it may be distributed 5.67 +under the terms of this General Public License. The "Program", below, 5.68 +refers to any such program or work, and a "work based on the Program" 5.69 +means either the Program or any derivative work under copyright law: 5.70 +that is to say, a work containing the Program or a portion of it, 5.71 +either verbatim or with modifications and/or translated into another 5.72 +language. (Hereinafter, translation is included without limitation in 5.73 +the term "modification".) Each licensee is addressed as "you". 5.74 + 5.75 +Activities other than copying, distribution and modification are not 5.76 +covered by this License; they are outside its scope. The act of 5.77 +running the Program is not restricted, and the output from the Program 5.78 +is covered only if its contents constitute a work based on the 5.79 +Program (independent of having been made by running the Program). 5.80 +Whether that is true depends on what the Program does. 5.81 + 5.82 + 1. You may copy and distribute verbatim copies of the Program's 5.83 +source code as you receive it, in any medium, provided that you 5.84 +conspicuously and appropriately publish on each copy an appropriate 5.85 +copyright notice and disclaimer of warranty; keep intact all the 5.86 +notices that refer to this License and to the absence of any warranty; 5.87 +and give any other recipients of the Program a copy of this License 5.88 +along with the Program. 5.89 + 5.90 +You may charge a fee for the physical act of transferring a copy, and 5.91 +you may at your option offer warranty protection in exchange for a fee. 5.92 + 5.93 + 2. You may modify your copy or copies of the Program or any portion 5.94 +of it, thus forming a work based on the Program, and copy and 5.95 +distribute such modifications or work under the terms of Section 1 5.96 +above, provided that you also meet all of these conditions: 5.97 + 5.98 + a) You must cause the modified files to carry prominent notices 5.99 + stating that you changed the files and the date of any change. 5.100 + 5.101 + b) You must cause any work that you distribute or publish, that in 5.102 + whole or in part contains or is derived from the Program or any 5.103 + part thereof, to be licensed as a whole at no charge to all third 5.104 + parties under the terms of this License. 5.105 + 5.106 + c) If the modified program normally reads commands interactively 5.107 + when run, you must cause it, when started running for such 5.108 + interactive use in the most ordinary way, to print or display an 5.109 + announcement including an appropriate copyright notice and a 5.110 + notice that there is no warranty (or else, saying that you provide 5.111 + a warranty) and that users may redistribute the program under 5.112 + these conditions, and telling the user how to view a copy of this 5.113 + License. (Exception: if the Program itself is interactive but 5.114 + does not normally print such an announcement, your work based on 5.115 + the Program is not required to print an announcement.) 5.116 + 5.117 +These requirements apply to the modified work as a whole. If 5.118 +identifiable sections of that work are not derived from the Program, 5.119 +and can be reasonably considered independent and separate works in 5.120 +themselves, then this License, and its terms, do not apply to those 5.121 +sections when you distribute them as separate works. But when you 5.122 +distribute the same sections as part of a whole which is a work based 5.123 +on the Program, the distribution of the whole must be on the terms of 5.124 +this License, whose permissions for other licensees extend to the 5.125 +entire whole, and thus to each and every part regardless of who wrote it. 5.126 + 5.127 +Thus, it is not the intent of this section to claim rights or contest 5.128 +your rights to work written entirely by you; rather, the intent is to 5.129 +exercise the right to control the distribution of derivative or 5.130 +collective works based on the Program. 5.131 + 5.132 +In addition, mere aggregation of another work not based on the Program 5.133 +with the Program (or with a work based on the Program) on a volume of 5.134 +a storage or distribution medium does not bring the other work under 5.135 +the scope of this License. 5.136 + 5.137 + 3. You may copy and distribute the Program (or a work based on it, 5.138 +under Section 2) in object code or executable form under the terms of 5.139 +Sections 1 and 2 above provided that you also do one of the following: 5.140 + 5.141 + a) Accompany it with the complete corresponding machine-readable 5.142 + source code, which must be distributed under the terms of Sections 5.143 + 1 and 2 above on a medium customarily used for software interchange; or, 5.144 + 5.145 + b) Accompany it with a written offer, valid for at least three 5.146 + years, to give any third party, for a charge no more than your 5.147 + cost of physically performing source distribution, a complete 5.148 + machine-readable copy of the corresponding source code, to be 5.149 + distributed under the terms of Sections 1 and 2 above on a medium 5.150 + customarily used for software interchange; or, 5.151 + 5.152 + c) Accompany it with the information you received as to the offer 5.153 + to distribute corresponding source code. (This alternative is 5.154 + allowed only for noncommercial distribution and only if you 5.155 + received the program in object code or executable form with such 5.156 + an offer, in accord with Subsection b above.) 5.157 + 5.158 +The source code for a work means the preferred form of the work for 5.159 +making modifications to it. For an executable work, complete source 5.160 +code means all the source code for all modules it contains, plus any 5.161 +associated interface definition files, plus the scripts used to 5.162 +control compilation and installation of the executable. However, as a 5.163 +special exception, the source code distributed need not include 5.164 +anything that is normally distributed (in either source or binary 5.165 +form) with the major components (compiler, kernel, and so on) of the 5.166 +operating system on which the executable runs, unless that component 5.167 +itself accompanies the executable. 5.168 + 5.169 +If distribution of executable or object code is made by offering 5.170 +access to copy from a designated place, then offering equivalent 5.171 +access to copy the source code from the same place counts as 5.172 +distribution of the source code, even though third parties are not 5.173 +compelled to copy the source along with the object code. 5.174 + 5.175 + 4. You may not copy, modify, sublicense, or distribute the Program 5.176 +except as expressly provided under this License. Any attempt 5.177 +otherwise to copy, modify, sublicense or distribute the Program is 5.178 +void, and will automatically terminate your rights under this License. 5.179 +However, parties who have received copies, or rights, from you under 5.180 +this License will not have their licenses terminated so long as such 5.181 +parties remain in full compliance. 5.182 + 5.183 + 5. You are not required to accept this License, since you have not 5.184 +signed it. However, nothing else grants you permission to modify or 5.185 +distribute the Program or its derivative works. These actions are 5.186 +prohibited by law if you do not accept this License. Therefore, by 5.187 +modifying or distributing the Program (or any work based on the 5.188 +Program), you indicate your acceptance of this License to do so, and 5.189 +all its terms and conditions for copying, distributing or modifying 5.190 +the Program or works based on it. 5.191 + 5.192 + 6. Each time you redistribute the Program (or any work based on the 5.193 +Program), the recipient automatically receives a license from the 5.194 +original licensor to copy, distribute or modify the Program subject to 5.195 +these terms and conditions. You may not impose any further 5.196 +restrictions on the recipients' exercise of the rights granted herein. 5.197 +You are not responsible for enforcing compliance by third parties to 5.198 +this License. 5.199 + 5.200 + 7. If, as a consequence of a court judgment or allegation of patent 5.201 +infringement or for any other reason (not limited to patent issues), 5.202 +conditions are imposed on you (whether by court order, agreement or 5.203 +otherwise) that contradict the conditions of this License, they do not 5.204 +excuse you from the conditions of this License. If you cannot 5.205 +distribute so as to satisfy simultaneously your obligations under this 5.206 +License and any other pertinent obligations, then as a consequence you 5.207 +may not distribute the Program at all. For example, if a patent 5.208 +license would not permit royalty-free redistribution of the Program by 5.209 +all those who receive copies directly or indirectly through you, then 5.210 +the only way you could satisfy both it and this License would be to 5.211 +refrain entirely from distribution of the Program. 5.212 + 5.213 +If any portion of this section is held invalid or unenforceable under 5.214 +any particular circumstance, the balance of the section is intended to 5.215 +apply and the section as a whole is intended to apply in other 5.216 +circumstances. 5.217 + 5.218 +It is not the purpose of this section to induce you to infringe any 5.219 +patents or other property right claims or to contest validity of any 5.220 +such claims; this section has the sole purpose of protecting the 5.221 +integrity of the free software distribution system, which is 5.222 +implemented by public license practices. Many people have made 5.223 +generous contributions to the wide range of software distributed 5.224 +through that system in reliance on consistent application of that 5.225 +system; it is up to the author/donor to decide if he or she is willing 5.226 +to distribute software through any other system and a licensee cannot 5.227 +impose that choice. 5.228 + 5.229 +This section is intended to make thoroughly clear what is believed to 5.230 +be a consequence of the rest of this License. 5.231 + 5.232 + 8. If the distribution and/or use of the Program is restricted in 5.233 +certain countries either by patents or by copyrighted interfaces, the 5.234 +original copyright holder who places the Program under this License 5.235 +may add an explicit geographical distribution limitation excluding 5.236 +those countries, so that distribution is permitted only in or among 5.237 +countries not thus excluded. In such case, this License incorporates 5.238 +the limitation as if written in the body of this License. 5.239 + 5.240 + 9. The Free Software Foundation may publish revised and/or new versions 5.241 +of the General Public License from time to time. Such new versions will 5.242 +be similar in spirit to the present version, but may differ in detail to 5.243 +address new problems or concerns. 5.244 + 5.245 +Each version is given a distinguishing version number. If the Program 5.246 +specifies a version number of this License which applies to it and "any 5.247 +later version", you have the option of following the terms and conditions 5.248 +either of that version or of any later version published by the Free 5.249 +Software Foundation. If the Program does not specify a version number of 5.250 +this License, you may choose any version ever published by the Free Software 5.251 +Foundation. 5.252 + 5.253 + 10. If you wish to incorporate parts of the Program into other free 5.254 +programs whose distribution conditions are different, write to the author 5.255 +to ask for permission. For software which is copyrighted by the Free 5.256 +Software Foundation, write to the Free Software Foundation; we sometimes 5.257 +make exceptions for this. Our decision will be guided by the two goals 5.258 +of preserving the free status of all derivatives of our free software and 5.259 +of promoting the sharing and reuse of software generally. 5.260 + 5.261 + NO WARRANTY 5.262 + 5.263 + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 5.264 +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 5.265 +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 5.266 +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 5.267 +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 5.268 +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 5.269 +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 5.270 +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 5.271 +REPAIR OR CORRECTION. 5.272 + 5.273 + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 5.274 +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 5.275 +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 5.276 +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 5.277 +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 5.278 +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 5.279 +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 5.280 +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 5.281 +POSSIBILITY OF SUCH DAMAGES. 5.282 + 5.283 + END OF TERMS AND CONDITIONS 5.284 + 5.285 + Appendix: How to Apply These Terms to Your New Programs 5.286 + 5.287 + If you develop a new program, and you want it to be of the greatest 5.288 +possible use to the public, the best way to achieve this is to make it 5.289 +free software which everyone can redistribute and change under these terms. 5.290 + 5.291 + To do so, attach the following notices to the program. It is safest 5.292 +to attach them to the start of each source file to most effectively 5.293 +convey the exclusion of warranty; and each file should have at least 5.294 +the "copyright" line and a pointer to where the full notice is found. 5.295 + 5.296 + <one line to give the program's name and a brief idea of what it does.> 5.297 + Copyright (C) 19yy <name of author> 5.298 + 5.299 + This program is free software; you can redistribute it and/or modify 5.300 + it under the terms of the GNU General Public License as published by 5.301 + the Free Software Foundation; either version 2 of the License, or 5.302 + (at your option) any later version. 5.303 + 5.304 + This program is distributed in the hope that it will be useful, 5.305 + but WITHOUT ANY WARRANTY; without even the implied warranty of 5.306 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 5.307 + GNU General Public License for more details. 5.308 + 5.309 + You should have received a copy of the GNU General Public License 5.310 + along with this program; if not, write to the Free Software 5.311 + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 5.312 + 5.313 +Also add information on how to contact you by electronic and paper mail. 5.314 + 5.315 +If the program is interactive, make it output a short notice like this 5.316 +when it starts in an interactive mode: 5.317 + 5.318 + Gnomovision version 69, Copyright (C) 19yy name of author 5.319 + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 5.320 + This is free software, and you are welcome to redistribute it 5.321 + under certain conditions; type `show c' for details. 5.322 + 5.323 +The hypothetical commands `show w' and `show c' should show the appropriate 5.324 +parts of the General Public License. Of course, the commands you use may 5.325 +be called something other than `show w' and `show c'; they could even be 5.326 +mouse-clicks or menu items--whatever suits your program. 5.327 + 5.328 +You should also get your employer (if you work as a programmer) or your 5.329 +school, if any, to sign a "copyright disclaimer" for the program, if 5.330 +necessary. Here is a sample; alter the names: 5.331 + 5.332 + Yoyodyne, Inc., hereby disclaims all copyright interest in the program 5.333 + `Gnomovision' (which makes passes at compilers) written by James Hacker. 5.334 + 5.335 + <signature of Ty Coon>, 1 April 1989 5.336 + Ty Coon, President of Vice 5.337 + 5.338 +This General Public License does not permit incorporating your program into 5.339 +proprietary programs. If your program is a subroutine library, you may 5.340 +consider it more useful to permit linking proprietary applications with the 5.341 +library. If this is what you want to do, use the GNU Library General 5.342 +Public License instead of this License.
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 6.2 +++ b/Makefile.am Mon Jul 29 08:53:08 2002 +0000 6.3 @@ -0,0 +1,4 @@ 6.4 +## Process this file with automake to generate Makefile.in. 6.5 + 6.6 +SUBDIRS = lib 6.7 +
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 7.2 +++ b/Makefile.in Mon Jul 29 08:53:08 2002 +0000 7.3 @@ -0,0 +1,433 @@ 7.4 +# Makefile.in generated automatically by automake 1.5 from Makefile.am. 7.5 + 7.6 +# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 7.7 +# Free Software Foundation, Inc. 7.8 +# This Makefile.in is free software; the Free Software Foundation 7.9 +# gives unlimited permission to copy and/or distribute it, 7.10 +# with or without modifications, as long as this notice is preserved. 7.11 + 7.12 +# This program is distributed in the hope that it will be useful, 7.13 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 7.14 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 7.15 +# PARTICULAR PURPOSE. 7.16 + 7.17 +@SET_MAKE@ 7.18 + 7.19 +SHELL = @SHELL@ 7.20 + 7.21 +srcdir = @srcdir@ 7.22 +top_srcdir = @top_srcdir@ 7.23 +VPATH = @srcdir@ 7.24 +prefix = @prefix@ 7.25 +exec_prefix = @exec_prefix@ 7.26 + 7.27 +bindir = @bindir@ 7.28 +sbindir = @sbindir@ 7.29 +libexecdir = @libexecdir@ 7.30 +datadir = @datadir@ 7.31 +sysconfdir = @sysconfdir@ 7.32 +sharedstatedir = @sharedstatedir@ 7.33 +localstatedir = @localstatedir@ 7.34 +libdir = @libdir@ 7.35 +infodir = @infodir@ 7.36 +mandir = @mandir@ 7.37 +includedir = @includedir@ 7.38 +oldincludedir = /usr/include 7.39 +pkgdatadir = $(datadir)/@PACKAGE@ 7.40 +pkglibdir = $(libdir)/@PACKAGE@ 7.41 +pkgincludedir = $(includedir)/@PACKAGE@ 7.42 +top_builddir = . 7.43 + 7.44 +ACLOCAL = @ACLOCAL@ 7.45 +AUTOCONF = @AUTOCONF@ 7.46 +AUTOMAKE = @AUTOMAKE@ 7.47 +AUTOHEADER = @AUTOHEADER@ 7.48 + 7.49 +INSTALL = @INSTALL@ 7.50 +INSTALL_PROGRAM = @INSTALL_PROGRAM@ 7.51 +INSTALL_DATA = @INSTALL_DATA@ 7.52 +INSTALL_SCRIPT = @INSTALL_SCRIPT@ 7.53 +INSTALL_HEADER = $(INSTALL_DATA) 7.54 +transform = @program_transform_name@ 7.55 +NORMAL_INSTALL = : 7.56 +PRE_INSTALL = : 7.57 +POST_INSTALL = : 7.58 +NORMAL_UNINSTALL = : 7.59 +PRE_UNINSTALL = : 7.60 +POST_UNINSTALL = : 7.61 +build_alias = @build_alias@ 7.62 +build_triplet = @build@ 7.63 +host_alias = @host_alias@ 7.64 +host_triplet = @host@ 7.65 +target_alias = @target_alias@ 7.66 +target_triplet = @target@ 7.67 +AMTAR = @AMTAR@ 7.68 +AS = @AS@ 7.69 +AWK = @AWK@ 7.70 +BUILD_WITH_MSVC = @BUILD_WITH_MSVC@ 7.71 +CC = @CC@ 7.72 +CPP = @CPP@ 7.73 +CXX = @CXX@ 7.74 +DEPDIR = @DEPDIR@ 7.75 +DLLTOOL = @DLLTOOL@ 7.76 +DSUFFIX = @DSUFFIX@ 7.77 +ECHO = @ECHO@ 7.78 +EXEEXT = @EXEEXT@ 7.79 +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 7.80 +LIBFLAGS = @LIBFLAGS@ 7.81 +LIBTOOL = @LIBTOOL@ 7.82 +LN_S = @LN_S@ 7.83 +LT_AGE = @LT_AGE@ 7.84 +LT_CURRENT = @LT_CURRENT@ 7.85 +LT_REVISION = @LT_REVISION@ 7.86 +MAINT = @MAINT@ 7.87 +OBJDUMP = @OBJDUMP@ 7.88 +OBJEXT = @OBJEXT@ 7.89 +PACKAGE = @PACKAGE@ 7.90 +RANLIB = @RANLIB@ 7.91 +STRIP = @STRIP@ 7.92 +VERSION = @VERSION@ 7.93 +VOLUMEVIZ_MAJOR_VERSION = @VOLUMEVIZ_MAJOR_VERSION@ 7.94 +VOLUMEVIZ_MICRO_VERSION = @VOLUMEVIZ_MICRO_VERSION@ 7.95 +VOLUMEVIZ_MINOR_VERSION = @VOLUMEVIZ_MINOR_VERSION@ 7.96 +VOLUMEVIZ_VERSION = @VOLUMEVIZ_VERSION@ 7.97 +am__include = @am__include@ 7.98 +am__quote = @am__quote@ 7.99 +install_sh = @install_sh@ 7.100 +sim_ac_coin_configcmd = @sim_ac_coin_configcmd@ 7.101 + 7.102 +SUBDIRS = lib 7.103 +subdir = . 7.104 +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 7.105 +mkinstalldirs = $(SHELL) $(top_srcdir)/cfg/mkinstalldirs 7.106 +CONFIG_HEADER = config.h 7.107 +CONFIG_CLEAN_FILES = 7.108 +DIST_SOURCES = 7.109 + 7.110 +RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \ 7.111 + uninstall-info-recursive all-recursive install-data-recursive \ 7.112 + install-exec-recursive installdirs-recursive install-recursive \ 7.113 + uninstall-recursive check-recursive installcheck-recursive 7.114 +DIST_COMMON = README ./stamp-h.in AUTHORS COPYING ChangeLog INSTALL \ 7.115 + Makefile.am Makefile.in NEWS THANKS TODO aclocal.m4 \ 7.116 + cfg/config.guess cfg/config.sub cfg/depcomp cfg/install-sh \ 7.117 + cfg/ltmain.sh cfg/missing cfg/mkinstalldirs config.h.in \ 7.118 + configure configure.in 7.119 +DIST_SUBDIRS = $(SUBDIRS) 7.120 +all: config.h 7.121 + $(MAKE) $(AM_MAKEFLAGS) all-recursive 7.122 + 7.123 +.SUFFIXES: 7.124 + 7.125 +mostlyclean-libtool: 7.126 + -rm -f *.lo 7.127 + 7.128 +clean-libtool: 7.129 + -rm -rf .libs _libs 7.130 + 7.131 +distclean-libtool: 7.132 + -rm -f libtool 7.133 +$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) 7.134 + cd $(top_srcdir) && \ 7.135 + $(AUTOMAKE) --gnu Makefile 7.136 +Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status 7.137 + cd $(top_builddir) && \ 7.138 + CONFIG_HEADERS= CONFIG_LINKS= \ 7.139 + CONFIG_FILES=$@ $(SHELL) ./config.status 7.140 + 7.141 +$(top_builddir)/config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) 7.142 + $(SHELL) ./config.status --recheck 7.143 +$(srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES) 7.144 + cd $(srcdir) && $(AUTOCONF) 7.145 + 7.146 +$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ configure.in 7.147 + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) 7.148 +config.h: stamp-h 7.149 + @if test ! -f $@; then \ 7.150 + rm -f stamp-h; \ 7.151 + $(MAKE) stamp-h; \ 7.152 + else :; fi 7.153 +stamp-h: $(srcdir)/config.h.in $(top_builddir)/config.status 7.154 + @rm -f stamp-h stamp-hT 7.155 + @echo timestamp > stamp-hT 2> /dev/null 7.156 + cd $(top_builddir) \ 7.157 + && CONFIG_FILES= CONFIG_HEADERS=config.h \ 7.158 + $(SHELL) ./config.status 7.159 + @mv stamp-hT stamp-h 7.160 +$(srcdir)/config.h.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/./stamp-h.in 7.161 + @if test ! -f $@; then \ 7.162 + rm -f $(srcdir)/./stamp-h.in; \ 7.163 + $(MAKE) $(srcdir)/./stamp-h.in; \ 7.164 + else :; fi 7.165 +$(srcdir)/./stamp-h.in: $(top_srcdir)/configure.in $(ACLOCAL_M4) 7.166 + @rm -f $(srcdir)/./stamp-h.in $(srcdir)/./stamp-h.inT 7.167 + @echo timestamp > $(srcdir)/./stamp-h.inT 2> /dev/null 7.168 + cd $(top_srcdir) && $(AUTOHEADER) 7.169 + @mv $(srcdir)/./stamp-h.inT $(srcdir)/./stamp-h.in 7.170 + 7.171 +distclean-hdr: 7.172 + -rm -f config.h 7.173 +uninstall-info-am: 7.174 + 7.175 +# This directory's subdirectories are mostly independent; you can cd 7.176 +# into them and run `make' without going through this Makefile. 7.177 +# To change the values of `make' variables: instead of editing Makefiles, 7.178 +# (1) if the variable is set in `config.status', edit `config.status' 7.179 +# (which will cause the Makefiles to be regenerated when you run `make'); 7.180 +# (2) otherwise, pass the desired values on the `make' command line. 7.181 +$(RECURSIVE_TARGETS): 7.182 + @set fnord $(MAKEFLAGS); amf=$$2; \ 7.183 + dot_seen=no; \ 7.184 + target=`echo $@ | sed s/-recursive//`; \ 7.185 + list='$(SUBDIRS)'; for subdir in $$list; do \ 7.186 + echo "Making $$target in $$subdir"; \ 7.187 + if test "$$subdir" = "."; then \ 7.188 + dot_seen=yes; \ 7.189 + local_target="$$target-am"; \ 7.190 + else \ 7.191 + local_target="$$target"; \ 7.192 + fi; \ 7.193 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 7.194 + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 7.195 + done; \ 7.196 + if test "$$dot_seen" = "no"; then \ 7.197 + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ 7.198 + fi; test -z "$$fail" 7.199 + 7.200 +mostlyclean-recursive clean-recursive distclean-recursive \ 7.201 +maintainer-clean-recursive: 7.202 + @set fnord $(MAKEFLAGS); amf=$$2; \ 7.203 + dot_seen=no; \ 7.204 + case "$@" in \ 7.205 + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ 7.206 + *) list='$(SUBDIRS)' ;; \ 7.207 + esac; \ 7.208 + rev=''; for subdir in $$list; do \ 7.209 + if test "$$subdir" = "."; then :; else \ 7.210 + rev="$$subdir $$rev"; \ 7.211 + fi; \ 7.212 + done; \ 7.213 + rev="$$rev ."; \ 7.214 + target=`echo $@ | sed s/-recursive//`; \ 7.215 + for subdir in $$rev; do \ 7.216 + echo "Making $$target in $$subdir"; \ 7.217 + if test "$$subdir" = "."; then \ 7.218 + local_target="$$target-am"; \ 7.219 + else \ 7.220 + local_target="$$target"; \ 7.221 + fi; \ 7.222 + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ 7.223 + || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ 7.224 + done && test -z "$$fail" 7.225 +tags-recursive: 7.226 + list='$(SUBDIRS)'; for subdir in $$list; do \ 7.227 + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ 7.228 + done 7.229 + 7.230 +tags: TAGS 7.231 + 7.232 +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 7.233 + list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \ 7.234 + unique=`for i in $$list; do \ 7.235 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 7.236 + done | \ 7.237 + $(AWK) ' { files[$$0] = 1; } \ 7.238 + END { for (i in files) print i; }'`; \ 7.239 + mkid -fID $$unique $(LISP) 7.240 + 7.241 +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ 7.242 + $(TAGS_FILES) $(LISP) 7.243 + tags=; \ 7.244 + here=`pwd`; \ 7.245 + list='$(SUBDIRS)'; for subdir in $$list; do \ 7.246 + if test "$$subdir" = .; then :; else \ 7.247 + test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \ 7.248 + fi; \ 7.249 + done; \ 7.250 + list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \ 7.251 + unique=`for i in $$list; do \ 7.252 + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 7.253 + done | \ 7.254 + $(AWK) ' { files[$$0] = 1; } \ 7.255 + END { for (i in files) print i; }'`; \ 7.256 + test -z "$(ETAGS_ARGS)config.h.in$$unique$(LISP)$$tags" \ 7.257 + || etags $(ETAGS_ARGS) $$tags config.h.in $$unique $(LISP) 7.258 + 7.259 +GTAGS: 7.260 + here=`CDPATH=: && cd $(top_builddir) && pwd` \ 7.261 + && cd $(top_srcdir) \ 7.262 + && gtags -i $(GTAGS_ARGS) $$here 7.263 + 7.264 +distclean-tags: 7.265 + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH 7.266 + 7.267 +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 7.268 + 7.269 +top_distdir = . 7.270 +# Avoid unsightly `./'. 7.271 +distdir = $(PACKAGE)-$(VERSION) 7.272 + 7.273 +GZIP_ENV = --best 7.274 + 7.275 +distdir: $(DISTFILES) 7.276 + -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) 7.277 + mkdir $(distdir) 7.278 + $(mkinstalldirs) $(distdir)/cfg 7.279 + @for file in $(DISTFILES); do \ 7.280 + if test -f $$file; then d=.; else d=$(srcdir); fi; \ 7.281 + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ 7.282 + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ 7.283 + $(mkinstalldirs) "$(distdir)/$$dir"; \ 7.284 + fi; \ 7.285 + if test -d $$d/$$file; then \ 7.286 + cp -pR $$d/$$file $(distdir) \ 7.287 + || exit 1; \ 7.288 + else \ 7.289 + test -f $(distdir)/$$file \ 7.290 + || cp -p $$d/$$file $(distdir)/$$file \ 7.291 + || exit 1; \ 7.292 + fi; \ 7.293 + done 7.294 + for subdir in $(SUBDIRS); do \ 7.295 + if test "$$subdir" = .; then :; else \ 7.296 + test -d $(distdir)/$$subdir \ 7.297 + || mkdir $(distdir)/$$subdir \ 7.298 + || exit 1; \ 7.299 + (cd $$subdir && \ 7.300 + $(MAKE) $(AM_MAKEFLAGS) \ 7.301 + top_distdir="$(top_distdir)" \ 7.302 + distdir=../$(distdir)/$$subdir \ 7.303 + distdir) \ 7.304 + || exit 1; \ 7.305 + fi; \ 7.306 + done 7.307 + -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \ 7.308 + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ 7.309 + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ 7.310 + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ 7.311 + || chmod -R a+r $(distdir) 7.312 +dist: distdir 7.313 + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 7.314 + -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) 7.315 + 7.316 +# This target untars the dist file and tries a VPATH configuration. Then 7.317 +# it guarantees that the distribution is self-contained by making another 7.318 +# tarfile. 7.319 +distcheck: dist 7.320 + -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) 7.321 + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf - 7.322 + chmod -R a-w $(distdir); chmod a+w $(distdir) 7.323 + mkdir $(distdir)/=build 7.324 + mkdir $(distdir)/=inst 7.325 + chmod a-w $(distdir) 7.326 + dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \ 7.327 + && cd $(distdir)/=build \ 7.328 + && ../configure --srcdir=.. --prefix=$$dc_install_base \ 7.329 + && $(MAKE) $(AM_MAKEFLAGS) \ 7.330 + && $(MAKE) $(AM_MAKEFLAGS) dvi \ 7.331 + && $(MAKE) $(AM_MAKEFLAGS) check \ 7.332 + && $(MAKE) $(AM_MAKEFLAGS) install \ 7.333 + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ 7.334 + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ 7.335 + && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \ 7.336 + || (echo "Error: files left after uninstall" 1>&2; \ 7.337 + exit 1) ) \ 7.338 + && $(MAKE) $(AM_MAKEFLAGS) dist \ 7.339 + && $(MAKE) $(AM_MAKEFLAGS) distclean \ 7.340 + && rm -f $(distdir).tar.gz \ 7.341 + && (test `find . -type f -print | wc -l` -eq 0 \ 7.342 + || (echo "Error: files left after distclean" 1>&2; \ 7.343 + exit 1) ) 7.344 + -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir) 7.345 + @echo "$(distdir).tar.gz is ready for distribution" | \ 7.346 + sed 'h;s/./=/g;p;x;p;x' 7.347 +check-am: all-am 7.348 +check: check-recursive 7.349 +all-am: Makefile config.h 7.350 +installdirs: installdirs-recursive 7.351 +installdirs-am: 7.352 + 7.353 +install: install-recursive 7.354 +install-exec: install-exec-recursive 7.355 +install-data: install-data-recursive 7.356 +uninstall: uninstall-recursive 7.357 + 7.358 +install-am: all-am 7.359 + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am 7.360 + 7.361 +installcheck: installcheck-recursive 7.362 +install-strip: 7.363 + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ 7.364 + `test -z '$(STRIP)' || \ 7.365 + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install 7.366 +mostlyclean-generic: 7.367 + 7.368 +clean-generic: 7.369 + 7.370 +distclean-generic: 7.371 + -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]* 7.372 + 7.373 +maintainer-clean-generic: 7.374 + @echo "This command is intended for maintainers to use" 7.375 + @echo "it deletes files that may require special tools to rebuild." 7.376 +clean: clean-recursive 7.377 + 7.378 +clean-am: clean-generic clean-libtool mostlyclean-am 7.379 + 7.380 +dist-all: distdir 7.381 + $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz 7.382 + -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir) 7.383 +distclean: distclean-recursive 7.384 + -rm -f config.status config.cache config.log 7.385 +distclean-am: clean-am distclean-generic distclean-hdr distclean-libtool \ 7.386 + distclean-tags 7.387 + 7.388 +dvi: dvi-recursive 7.389 + 7.390 +dvi-am: 7.391 + 7.392 +info: info-recursive 7.393 + 7.394 +info-am: 7.395 + 7.396 +install-data-am: 7.397 + 7.398 +install-exec-am: 7.399 + 7.400 +install-info: install-info-recursive 7.401 + 7.402 +install-man: 7.403 + 7.404 +installcheck-am: 7.405 + 7.406 +maintainer-clean: maintainer-clean-recursive 7.407 + 7.408 +maintainer-clean-am: distclean-am maintainer-clean-generic 7.409 + 7.410 +mostlyclean: mostlyclean-recursive 7.411 + 7.412 +mostlyclean-am: mostlyclean-generic mostlyclean-libtool 7.413 + 7.414 +uninstall-am: uninstall-info-am 7.415 + 7.416 +uninstall-info: uninstall-info-recursive 7.417 + 7.418 +.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-am clean \ 7.419 + clean-generic clean-libtool clean-recursive dist dist-all \ 7.420 + distcheck distclean distclean-generic distclean-hdr \ 7.421 + distclean-libtool distclean-recursive distclean-tags distdir \ 7.422 + dvi dvi-am dvi-recursive info info-am info-recursive install \ 7.423 + install-am install-data install-data-am install-data-recursive \ 7.424 + install-exec install-exec-am install-exec-recursive \ 7.425 + install-info install-info-am install-info-recursive install-man \ 7.426 + install-recursive install-strip installcheck installcheck-am \ 7.427 + installdirs installdirs-am installdirs-recursive \ 7.428 + maintainer-clean maintainer-clean-generic \ 7.429 + maintainer-clean-recursive mostlyclean mostlyclean-generic \ 7.430 + mostlyclean-libtool mostlyclean-recursive tags tags-recursive \ 7.431 + uninstall uninstall-am uninstall-info-am \ 7.432 + uninstall-info-recursive uninstall-recursive 7.433 + 7.434 +# Tell versions [3.59,3.63) of GNU make to not export all variables. 7.435 +# Otherwise a system limit (for SysV at least) may be exceeded. 7.436 +.NOEXPORT:
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 8.2 +++ b/README Mon Jul 29 08:53:08 2002 +0000 8.3 @@ -0,0 +1,22 @@ 8.4 +NAME 8.5 + 8.6 +VolumeViz 8.7 + 8.8 + 8.9 +BRIEF DESCRIPTION 8.10 + 8.11 +HOMEPAGE 8.12 + 8.13 +<URL:http://www.coin3d.org> 8.14 + 8.15 + 8.16 +LICENSE 8.17 + 8.18 +VolumeViz is released publicly under the GNU General Public License 8.19 +(GPL) for developers of free software (see LICENSE.GPL) and is also 8.20 +available for any proprietary use under a Professional Edition 8.21 +license. Read the GPL carefully to decide whether or not your use of 8.22 +SmallChange is compatible with this free, open source license. 8.23 + 8.24 +MAIN DEVELOPERS 8.25 +
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 9.2 +++ b/THANKS Mon Jul 29 08:53:08 2002 +0000 9.3 @@ -0,0 +1,1 @@ 9.4 +
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 10.2 +++ b/aclocal.m4 Mon Jul 29 08:53:08 2002 +0000 10.3 @@ -0,0 +1,5267 @@ 10.4 +# aclocal.m4 generated automatically by aclocal 1.5 10.5 + 10.6 +# Copyright 1996, 1997, 1998, 1999, 2000, 2001 10.7 +# Free Software Foundation, Inc. 10.8 +# This file is free software; the Free Software Foundation 10.9 +# gives unlimited permission to copy and/or distribute it, 10.10 +# with or without modifications, as long as this notice is preserved. 10.11 + 10.12 +# This program is distributed in the hope that it will be useful, 10.13 +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 10.14 +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 10.15 +# PARTICULAR PURPOSE. 10.16 + 10.17 +# ************************************************************************** 10.18 +# SIM_AC_SETUP_MSVC_IFELSE( IF-FOUND, IF-NOT-FOUND ) 10.19 +# 10.20 +# This macro invokes IF-FOUND if the wrapmsvc wrapper can be run, and 10.21 +# IF-NOT-FOUND if not. 10.22 +# 10.23 +# Authors: 10.24 +# Morten Eriksen <mortene@coin3d.org> 10.25 +# Lars J. Aas <larsa@coin3d.org> 10.26 + 10.27 +# ************************************************************************** 10.28 + 10.29 +AC_DEFUN([SIM_AC_SETUP_MSVC_IFELSE], 10.30 +[# ************************************************************************** 10.31 +# If the Microsoft Visual C++ cl.exe compiler is available, set us up for 10.32 +# compiling with it and to generate an MSWindows .dll file. 10.33 + 10.34 +: ${BUILD_WITH_MSVC=false} 10.35 +sim_ac_wrapmsvc=`cd $srcdir; pwd`/cfg/m4/wrapmsvc.exe 10.36 +if test -z "$CC" -a -z "$CXX" && $sim_ac_wrapmsvc >/dev/null 2>&1; then 10.37 + m4_ifdef([$0_VISITED], 10.38 + [AC_FATAL([Macro $0 invoked multiple times])]) 10.39 + m4_define([$0_VISITED], 1) 10.40 + CC=$sim_ac_wrapmsvc 10.41 + CXX=$sim_ac_wrapmsvc 10.42 + export CC CXX 10.43 + BUILD_WITH_MSVC=true 10.44 +fi 10.45 +AC_SUBST(BUILD_WITH_MSVC) 10.46 + 10.47 +case $CXX in 10.48 +*wrapmsvc.exe) 10.49 + BUILD_WITH_MSVC=true 10.50 + $1 10.51 + ;; 10.52 +*) 10.53 + BUILD_WITH_MSVC=false 10.54 + $2 10.55 + ;; 10.56 +esac 10.57 +]) # SIM_AC_SETUP_MSVC_IFELSE 10.58 + 10.59 +# ************************************************************************** 10.60 +# SIM_AC_SETUP_MSVCRT 10.61 +# 10.62 +# This macro sets up compiler flags for the MS Visual C++ C library of 10.63 +# choice. 10.64 + 10.65 +AC_DEFUN([SIM_AC_SETUP_MSVCRT], 10.66 +[sim_ac_msvcrt_LDFLAGS="" 10.67 +sim_ac_msvcrt_LIBS="" 10.68 + 10.69 +AC_ARG_WITH([msvcrt], 10.70 + [AC_HELP_STRING([--with-msvcrt=<crt>], 10.71 + [set which C run-time library to build against])], 10.72 + [case `echo "$withval" | tr "[A-Z]" "[a-z]"` in 10.73 + default | singlethread-static | ml | /ml | libc | libc\.lib ) 10.74 + sim_ac_msvcrt=singlethread-static 10.75 + sim_ac_msvcrt_CFLAGS="/ML" 10.76 + sim_ac_msvcrt_CXXFLAGS="/ML" 10.77 + sim_ac_msvcrt_LIBLDFLAGS="" 10.78 + sim_ac_msvcrt_LIBLIBS="" 10.79 + ;; 10.80 + default-debug | singlethread-static-debug | mld | /mld | libcd | libcd\.lib ) 10.81 + sim_ac_msvcrt=singlethread-static-debug 10.82 + sim_ac_msvcrt_CFLAGS="/MLd" 10.83 + sim_ac_msvcrt_CXXFLAGS="/MLd" 10.84 + sim_ac_msvcrt_LIBLDFLAGS="/LINK /NODEFAULTLIB:libc" 10.85 + sim_ac_msvcrt_LIBLIBS="-llibcd" 10.86 + ;; 10.87 + multithread-static | mt | /mt | libcmt | libcmt\.lib ) 10.88 + sim_ac_msvcrt=multithread-static 10.89 + sim_ac_msvcrt_CFLAGS="/MT" 10.90 + sim_ac_msvcrt_CXXFLAGS="/MT" 10.91 + sim_ac_msvcrt_LIBLDFLAGS="/LINK /NODEFAULTLIB:libc" 10.92 + sim_ac_msvcrt_LIBLIBS="-llibcmt" 10.93 + ;; 10.94 + multithread-static-debug | mtd | /mtd | libcmtd | libcmtd\.lib ) 10.95 + sim_ac_msvcrt=multithread-static-debug 10.96 + sim_ac_msvcrt_CFLAGS="/MTd" 10.97 + sim_ac_msvcrt_CXXFLAGS="/MTd" 10.98 + sim_ac_msvcrt_LIBLDFLAGS="/NODEFAULTLIB:libc" 10.99 + sim_ac_msvcrt_LIBLIBS="-llibcmtd" 10.100 + ;; 10.101 + multithread-dynamic | md | /md | msvcrt | msvcrt\.lib ) 10.102 + sim_ac_msvcrt=multithread-dynamic 10.103 + sim_ac_msvcrt_CFLAGS="" 10.104 + sim_ac_msvcrt_CXXFLAGS="" 10.105 + sim_ac_msvcrt_LIBLDFLAGS="/LINK /NODEFAULTLIB:libc" 10.106 + sim_ac_msvcrt_LIBLIBS="-lmsvcrt" 10.107 + ;; 10.108 + multithread-dynamic-debug | mdd | /mdd | msvcrtd | msvcrtd\.lib ) 10.109 + sim_ac_msvcrt=multithread-dynamic-debug 10.110 + sim_ac_msvcrt_CFLAGS="/MDd" 10.111 + sim_ac_msvcrt_CXXFLAGS="/MDd" 10.112 + sim_ac_msvcrt_LIBLDFLAGS="/LINK /NODEFAULTLIB:libc" 10.113 + sim_ac_msvcrt_LIBLIBS="-lmsvcrtd" 10.114 + ;; 10.115 + *) 10.116 + SIM_AC_ERROR([invalid-msvcrt]) 10.117 + ;; 10.118 + esac], 10.119 + [sim_ac_msvcrt=singlethread-static]) 10.120 + 10.121 +AC_MSG_CHECKING([MSVC++ C library choice]) 10.122 +AC_MSG_RESULT([$sim_ac_msvcrt]) 10.123 + 10.124 +$1 10.125 +]) # SIM_AC_SETUP_MSVCRT 10.126 + 10.127 +# EOF ********************************************************************** 10.128 + 10.129 +# ************************************************************************** 10.130 +# SIM_AC_ERROR_MESSAGE_FILE( FILENAME ) 10.131 +# Sets the error message file. Default is $ac_aux_dir/m4/errors.txt. 10.132 +# 10.133 +# SIM_AC_ERROR( ERROR [, ERROR ...] ) 10.134 +# Fetches the error messages from the error message file and displays 10.135 +# them on stderr. 10.136 +# 10.137 +# SIM_AC_WITH_ERROR( WITHARG ) 10.138 +# Invokes AC_MSG_ERROR in a consistent way for problems with the --with-* 10.139 +# $withval argument. 10.140 +# 10.141 +# SIM_AC_ENABLE_ERROR( ENABLEARG ) 10.142 +# Invokes AC_MSG_ERROR in a consistent way for problems with the --enable-* 10.143 +# $enableval argument. 10.144 +# 10.145 +# Authors: 10.146 +# Lars J. Aas <larsa@sim.no> 10.147 + 10.148 +AC_DEFUN([SIM_AC_ERROR_MESSAGE_FILE], [ 10.149 +sim_ac_message_file=$1 10.150 +]) # SIM_AC_ERROR_MESSAGE_FILE 10.151 + 10.152 +AC_DEFUN([SIM_AC_ONE_MESSAGE], [ 10.153 +: ${sim_ac_message_file=$ac_aux_dir/m4/errors.txt} 10.154 +if test -f $sim_ac_message_file; then 10.155 + sim_ac_message="`sed -n -e '/^!$1$/,/^!/ { /^!/ d; p; }' <$sim_ac_message_file`" 10.156 + if test x"$sim_ac_message" = x""; then 10.157 + AC_MSG_ERROR([no message named '$1' in '$sim_ac_message_file' - notify the $PACKAGE_NAME maintainer(s)]) 10.158 + else 10.159 + eval "echo >&2 \"$sim_ac_message\"" 10.160 + fi 10.161 +else 10.162 + AC_MSG_ERROR([file '$sim_ac_message_file' not found - notify the $PACKAGE_NAME maintainer(s)]) 10.163 +fi 10.164 +]) # SIM_AC_ONE_MESSAGE 10.165 + 10.166 +AC_DEFUN([_SIM_AC_ERROR], [ 10.167 +SIM_AC_ONE_MESSAGE([$1]) 10.168 +ifelse([$2], , , [ 10.169 +echo >&2 "" 10.170 +_SIM_AC_ERROR(m4_shift($@))]) 10.171 +]) # _SIM_AC_ERROR 10.172 + 10.173 +AC_DEFUN([SIM_AC_ERROR], [ 10.174 +echo >&2 "" 10.175 +_SIM_AC_ERROR($@) 10.176 +echo >&2 "" 10.177 +AC_MSG_ERROR([aborting]) 10.178 +]) # SIM_AC_ERROR 10.179 + 10.180 +AC_DEFUN([SIM_AC_WITH_ERROR], [ 10.181 +AC_MSG_ERROR([invalid value "${withval}" for "$1" configure argument]) 10.182 +]) # SIM_AC_WITH_ERROR 10.183 + 10.184 +AC_DEFUN([SIM_AC_ENABLE_ERROR], [ 10.185 +AC_MSG_ERROR([invalid value "${enableval}" for "$1" configure argument]) 10.186 +]) # SIM_AC_ENABLE_ERROR 10.187 + 10.188 + 10.189 +# serial 3 10.190 + 10.191 +# AM_CONDITIONAL(NAME, SHELL-CONDITION) 10.192 +# ------------------------------------- 10.193 +# Define a conditional. 10.194 +# 10.195 +# FIXME: Once using 2.50, use this: 10.196 +# m4_match([$1], [^TRUE\|FALSE$], [AC_FATAL([$0: invalid condition: $1])])dnl 10.197 +AC_DEFUN([AM_CONDITIONAL], 10.198 +[ifelse([$1], [TRUE], 10.199 + [errprint(__file__:__line__: [$0: invalid condition: $1 10.200 +])dnl 10.201 +m4exit(1)])dnl 10.202 +ifelse([$1], [FALSE], 10.203 + [errprint(__file__:__line__: [$0: invalid condition: $1 10.204 +])dnl 10.205 +m4exit(1)])dnl 10.206 +AC_SUBST([$1_TRUE]) 10.207 +AC_SUBST([$1_FALSE]) 10.208 +if $2; then 10.209 + $1_TRUE= 10.210 + $1_FALSE='#' 10.211 +else 10.212 + $1_TRUE='#' 10.213 + $1_FALSE= 10.214 +fi]) 10.215 + 10.216 +# Do all the work for Automake. This macro actually does too much -- 10.217 +# some checks are only needed if your package does certain things. 10.218 +# But this isn't really a big deal. 10.219 + 10.220 +# serial 5 10.221 + 10.222 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 10.223 +# written in clear, in which case automake, when reading aclocal.m4, 10.224 +# will think it sees a *use*, and therefore will trigger all it's 10.225 +# C support machinery. Also note that it means that autoscan, seeing 10.226 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 10.227 + 10.228 + 10.229 +# We require 2.13 because we rely on SHELL being computed by configure. 10.230 +AC_PREREQ([2.13]) 10.231 + 10.232 +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) 10.233 +# ----------------------------------------------------------- 10.234 +# If MACRO-NAME is provided do IF-PROVIDED, else IF-NOT-PROVIDED. 10.235 +# The purpose of this macro is to provide the user with a means to 10.236 +# check macros which are provided without letting her know how the 10.237 +# information is coded. 10.238 +# If this macro is not defined by Autoconf, define it here. 10.239 +ifdef([AC_PROVIDE_IFELSE], 10.240 + [], 10.241 + [define([AC_PROVIDE_IFELSE], 10.242 + [ifdef([AC_PROVIDE_$1], 10.243 + [$2], [$3])])]) 10.244 + 10.245 + 10.246 +# AM_INIT_AUTOMAKE(PACKAGE,VERSION, [NO-DEFINE]) 10.247 +# ---------------------------------------------- 10.248 +AC_DEFUN([AM_INIT_AUTOMAKE], 10.249 +[AC_REQUIRE([AC_PROG_INSTALL])dnl 10.250 +# test to see if srcdir already configured 10.251 +if test "`CDPATH=:; cd $srcdir && pwd`" != "`pwd`" && 10.252 + test -f $srcdir/config.status; then 10.253 + AC_MSG_ERROR([source directory already configured; run \"make distclean\" there first]) 10.254 +fi 10.255 + 10.256 +# Define the identity of the package. 10.257 +PACKAGE=$1 10.258 +AC_SUBST(PACKAGE)dnl 10.259 +VERSION=$2 10.260 +AC_SUBST(VERSION)dnl 10.261 +ifelse([$3],, 10.262 +[AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) 10.263 +AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])]) 10.264 + 10.265 +# Autoconf 2.50 wants to disallow AM_ names. We explicitly allow 10.266 +# the ones we care about. 10.267 +ifdef([m4_pattern_allow], 10.268 + [m4_pattern_allow([^AM_[A-Z]+FLAGS])])dnl 10.269 + 10.270 +# Autoconf 2.50 always computes EXEEXT. However we need to be 10.271 +# compatible with 2.13, for now. So we always define EXEEXT, but we 10.272 +# don't compute it. 10.273 +AC_SUBST(EXEEXT) 10.274 +# Similar for OBJEXT -- only we only use OBJEXT if the user actually 10.275 +# requests that it be used. This is a bit dumb. 10.276 +: ${OBJEXT=o} 10.277 +AC_SUBST(OBJEXT) 10.278 + 10.279 +# Some tools Automake needs. 10.280 +AC_REQUIRE([AM_SANITY_CHECK])dnl 10.281 +AC_REQUIRE([AC_ARG_PROGRAM])dnl 10.282 +AM_MISSING_PROG(ACLOCAL, aclocal) 10.283 +AM_MISSING_PROG(AUTOCONF, autoconf) 10.284 +AM_MISSING_PROG(AUTOMAKE, automake) 10.285 +AM_MISSING_PROG(AUTOHEADER, autoheader) 10.286 +AM_MISSING_PROG(MAKEINFO, makeinfo) 10.287 +AM_MISSING_PROG(AMTAR, tar) 10.288 +AM_PROG_INSTALL_SH 10.289 +AM_PROG_INSTALL_STRIP 10.290 +# We need awk for the "check" target. The system "awk" is bad on 10.291 +# some platforms. 10.292 +AC_REQUIRE([AC_PROG_AWK])dnl 10.293 +AC_REQUIRE([AC_PROG_MAKE_SET])dnl 10.294 +AC_REQUIRE([AM_DEP_TRACK])dnl 10.295 +AC_REQUIRE([AM_SET_DEPDIR])dnl 10.296 +AC_PROVIDE_IFELSE([AC_PROG_][CC], 10.297 + [_AM_DEPENDENCIES(CC)], 10.298 + [define([AC_PROG_][CC], 10.299 + defn([AC_PROG_][CC])[_AM_DEPENDENCIES(CC)])])dnl 10.300 +AC_PROVIDE_IFELSE([AC_PROG_][CXX], 10.301 + [_AM_DEPENDENCIES(CXX)], 10.302 + [define([AC_PROG_][CXX], 10.303 + defn([AC_PROG_][CXX])[_AM_DEPENDENCIES(CXX)])])dnl 10.304 +]) 10.305 + 10.306 +# 10.307 +# Check to make sure that the build environment is sane. 10.308 +# 10.309 + 10.310 +# serial 3 10.311 + 10.312 +# AM_SANITY_CHECK 10.313 +# --------------- 10.314 +AC_DEFUN([AM_SANITY_CHECK], 10.315 +[AC_MSG_CHECKING([whether build environment is sane]) 10.316 +# Just in case 10.317 +sleep 1 10.318 +echo timestamp > conftest.file 10.319 +# Do `set' in a subshell so we don't clobber the current shell's 10.320 +# arguments. Must try -L first in case configure is actually a 10.321 +# symlink; some systems play weird games with the mod time of symlinks 10.322 +# (eg FreeBSD returns the mod time of the symlink's containing 10.323 +# directory). 10.324 +if ( 10.325 + set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 10.326 + if test "$[*]" = "X"; then 10.327 + # -L didn't work. 10.328 + set X `ls -t $srcdir/configure conftest.file` 10.329 + fi 10.330 + rm -f conftest.file 10.331 + if test "$[*]" != "X $srcdir/configure conftest.file" \ 10.332 + && test "$[*]" != "X conftest.file $srcdir/configure"; then 10.333 + 10.334 + # If neither matched, then we have a broken ls. This can happen 10.335 + # if, for instance, CONFIG_SHELL is bash and it inherits a 10.336 + # broken ls alias from the environment. This has actually 10.337 + # happened. Such a system could not be considered "sane". 10.338 + AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken 10.339 +alias in your environment]) 10.340 + fi 10.341 + 10.342 + test "$[2]" = conftest.file 10.343 + ) 10.344 +then 10.345 + # Ok. 10.346 + : 10.347 +else 10.348 + AC_MSG_ERROR([newly created file is older than distributed files! 10.349 +Check your system clock]) 10.350 +fi 10.351 +AC_MSG_RESULT(yes)]) 10.352 + 10.353 + 10.354 +# serial 2 10.355 + 10.356 +# AM_MISSING_PROG(NAME, PROGRAM) 10.357 +# ------------------------------ 10.358 +AC_DEFUN([AM_MISSING_PROG], 10.359 +[AC_REQUIRE([AM_MISSING_HAS_RUN]) 10.360 +$1=${$1-"${am_missing_run}$2"} 10.361 +AC_SUBST($1)]) 10.362 + 10.363 + 10.364 +# AM_MISSING_HAS_RUN 10.365 +# ------------------ 10.366 +# Define MISSING if not defined so far and test if it supports --run. 10.367 +# If it does, set am_missing_run to use it, otherwise, to nothing. 10.368 +AC_DEFUN([AM_MISSING_HAS_RUN], 10.369 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10.370 +test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 10.371 +# Use eval to expand $SHELL 10.372 +if eval "$MISSING --run true"; then 10.373 + am_missing_run="$MISSING --run " 10.374 +else 10.375 + am_missing_run= 10.376 + am_backtick='`' 10.377 + AC_MSG_WARN([${am_backtick}missing' script is too old or missing]) 10.378 +fi 10.379 +]) 10.380 + 10.381 +# AM_AUX_DIR_EXPAND 10.382 + 10.383 +# For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets 10.384 +# $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to 10.385 +# `$srcdir', `$srcdir/..', or `$srcdir/../..'. 10.386 +# 10.387 +# Of course, Automake must honor this variable whenever it calls a 10.388 +# tool from the auxiliary directory. The problem is that $srcdir (and 10.389 +# therefore $ac_aux_dir as well) can be either absolute or relative, 10.390 +# depending on how configure is run. This is pretty annoying, since 10.391 +# it makes $ac_aux_dir quite unusable in subdirectories: in the top 10.392 +# source directory, any form will work fine, but in subdirectories a 10.393 +# relative path needs to be adjusted first. 10.394 +# 10.395 +# $ac_aux_dir/missing 10.396 +# fails when called from a subdirectory if $ac_aux_dir is relative 10.397 +# $top_srcdir/$ac_aux_dir/missing 10.398 +# fails if $ac_aux_dir is absolute, 10.399 +# fails when called from a subdirectory in a VPATH build with 10.400 +# a relative $ac_aux_dir 10.401 +# 10.402 +# The reason of the latter failure is that $top_srcdir and $ac_aux_dir 10.403 +# are both prefixed by $srcdir. In an in-source build this is usually 10.404 +# harmless because $srcdir is `.', but things will broke when you 10.405 +# start a VPATH build or use an absolute $srcdir. 10.406 +# 10.407 +# So we could use something similar to $top_srcdir/$ac_aux_dir/missing, 10.408 +# iff we strip the leading $srcdir from $ac_aux_dir. That would be: 10.409 +# am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` 10.410 +# and then we would define $MISSING as 10.411 +# MISSING="\${SHELL} $am_aux_dir/missing" 10.412 +# This will work as long as MISSING is not called from configure, because 10.413 +# unfortunately $(top_srcdir) has no meaning in configure. 10.414 +# However there are other variables, like CC, which are often used in 10.415 +# configure, and could therefore not use this "fixed" $ac_aux_dir. 10.416 +# 10.417 +# Another solution, used here, is to always expand $ac_aux_dir to an 10.418 +# absolute PATH. The drawback is that using absolute paths prevent a 10.419 +# configured tree to be moved without reconfiguration. 10.420 + 10.421 +AC_DEFUN([AM_AUX_DIR_EXPAND], [ 10.422 +# expand $ac_aux_dir to an absolute path 10.423 +if test "${CDPATH+set}" = set; then 10.424 + CDPATH=${ZSH_VERSION+.}: # as recommended in autoconf.texi 10.425 +fi 10.426 +am_aux_dir=`cd $ac_aux_dir && pwd` 10.427 +]) 10.428 + 10.429 +# AM_PROG_INSTALL_SH 10.430 +# ------------------ 10.431 +# Define $install_sh. 10.432 +AC_DEFUN([AM_PROG_INSTALL_SH], 10.433 +[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl 10.434 +install_sh=${install_sh-"$am_aux_dir/install-sh"} 10.435 +AC_SUBST(install_sh)]) 10.436 + 10.437 +# One issue with vendor `install' (even GNU) is that you can't 10.438 +# specify the program used to strip binaries. This is especially 10.439 +# annoying in cross-compiling environments, where the build's strip 10.440 +# is unlikely to handle the host's binaries. 10.441 +# Fortunately install-sh will honor a STRIPPROG variable, so we 10.442 +# always use install-sh in `make install-strip', and initialize 10.443 +# STRIPPROG with the value of the STRIP variable (set by the user). 10.444 +AC_DEFUN([AM_PROG_INSTALL_STRIP], 10.445 +[AC_REQUIRE([AM_PROG_INSTALL_SH])dnl 10.446 +INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 10.447 +AC_SUBST([INSTALL_STRIP_PROGRAM])]) 10.448 + 10.449 +# serial 4 -*- Autoconf -*- 10.450 + 10.451 + 10.452 + 10.453 +# There are a few dirty hacks below to avoid letting `AC_PROG_CC' be 10.454 +# written in clear, in which case automake, when reading aclocal.m4, 10.455 +# will think it sees a *use*, and therefore will trigger all it's 10.456 +# C support machinery. Also note that it means that autoscan, seeing 10.457 +# CC etc. in the Makefile, will ask for an AC_PROG_CC use... 10.458 + 10.459 + 10.460 + 10.461 +# _AM_DEPENDENCIES(NAME) 10.462 +# --------------------- 10.463 +# See how the compiler implements dependency checking. 10.464 +# NAME is "CC", "CXX" or "OBJC". 10.465 +# We try a few techniques and use that to set a single cache variable. 10.466 +# 10.467 +# We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was 10.468 +# modified to invoke _AM_DEPENDENCIES(CC); we would have a circular 10.469 +# dependency, and given that the user is not expected to run this macro, 10.470 +# just rely on AC_PROG_CC. 10.471 +AC_DEFUN([_AM_DEPENDENCIES], 10.472 +[AC_REQUIRE([AM_SET_DEPDIR])dnl 10.473 +AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl 10.474 +AC_REQUIRE([AM_MAKE_INCLUDE])dnl 10.475 +AC_REQUIRE([AM_DEP_TRACK])dnl 10.476 + 10.477 +ifelse([$1], CC, [depcc="$CC" am_compiler_list=], 10.478 + [$1], CXX, [depcc="$CXX" am_compiler_list=], 10.479 + [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'] 10.480 + [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], 10.481 + [depcc="$$1" am_compiler_list=]) 10.482 + 10.483 +AC_CACHE_CHECK([dependency style of $depcc], 10.484 + [am_cv_$1_dependencies_compiler_type], 10.485 +[if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 10.486 + # We make a subdir and do the tests there. Otherwise we can end up 10.487 + # making bogus files that we don't know about and never remove. For 10.488 + # instance it was reported that on HP-UX the gcc test will end up 10.489 + # making a dummy file named `D' -- because `-MD' means `put the output 10.490 + # in D'. 10.491 + mkdir conftest.dir 10.492 + # Copy depcomp to subdir because otherwise we won't find it if we're 10.493 + # using a relative directory. 10.494 + cp "$am_depcomp" conftest.dir 10.495 + cd conftest.dir 10.496 + 10.497 + am_cv_$1_dependencies_compiler_type=none 10.498 + if test "$am_compiler_list" = ""; then 10.499 + am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` 10.500 + fi 10.501 + for depmode in $am_compiler_list; do 10.502 + # We need to recreate these files for each test, as the compiler may 10.503 + # overwrite some of them when testing with obscure command lines. 10.504 + # This happens at least with the AIX C compiler. 10.505 + echo '#include "conftest.h"' > conftest.c 10.506 + echo 'int i;' > conftest.h 10.507 + echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf 10.508 + 10.509 + case $depmode in 10.510 + nosideeffect) 10.511 + # after this tag, mechanisms are not by side-effect, so they'll 10.512 + # only be used when explicitly requested 10.513 + if test "x$enable_dependency_tracking" = xyes; then 10.514 + continue 10.515 + else 10.516 + break 10.517 + fi 10.518 + ;; 10.519 + none) break ;; 10.520 + esac 10.521 + # We check with `-c' and `-o' for the sake of the "dashmstdout" 10.522 + # mode. It turns out that the SunPro C++ compiler does not properly 10.523 + # handle `-M -o', and we need to detect this. 10.524 + if depmode=$depmode \ 10.525 + source=conftest.c object=conftest.o \ 10.526 + depfile=conftest.Po tmpdepfile=conftest.TPo \ 10.527 + $SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 && 10.528 + grep conftest.h conftest.Po > /dev/null 2>&1 && 10.529 + ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 10.530 + am_cv_$1_dependencies_compiler_type=$depmode 10.531 + break 10.532 + fi 10.533 + done 10.534 + 10.535 + cd .. 10.536 + rm -rf conftest.dir 10.537 +else 10.538 + am_cv_$1_dependencies_compiler_type=none 10.539 +fi 10.540 +]) 10.541 +$1DEPMODE="depmode=$am_cv_$1_dependencies_compiler_type" 10.542 +AC_SUBST([$1DEPMODE]) 10.543 +]) 10.544 + 10.545 + 10.546 +# AM_SET_DEPDIR 10.547 +# ------------- 10.548 +# Choose a directory name for dependency files. 10.549 +# This macro is AC_REQUIREd in _AM_DEPENDENCIES 10.550 +AC_DEFUN([AM_SET_DEPDIR], 10.551 +[rm -f .deps 2>/dev/null 10.552 +mkdir .deps 2>/dev/null 10.553 +if test -d .deps; then 10.554 + DEPDIR=.deps 10.555 +else 10.556 + # MS-DOS does not allow filenames that begin with a dot. 10.557 + DEPDIR=_deps 10.558 +fi 10.559 +rmdir .deps 2>/dev/null 10.560 +AC_SUBST(DEPDIR) 10.561 +]) 10.562 + 10.563 + 10.564 +# AM_DEP_TRACK 10.565 +# ------------ 10.566 +AC_DEFUN([AM_DEP_TRACK], 10.567 +[AC_ARG_ENABLE(dependency-tracking, 10.568 +[ --disable-dependency-tracking Speeds up one-time builds 10.569 + --enable-dependency-tracking Do not reject slow dependency extractors]) 10.570 +if test "x$enable_dependency_tracking" != xno; then 10.571 + am_depcomp="$ac_aux_dir/depcomp" 10.572 + AMDEPBACKSLASH='\' 10.573 +fi 10.574 +AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) 10.575 +pushdef([subst], defn([AC_SUBST])) 10.576 +subst(AMDEPBACKSLASH) 10.577 +popdef([subst]) 10.578 +]) 10.579 + 10.580 +# Generate code to set up dependency tracking. 10.581 +# This macro should only be invoked once -- use via AC_REQUIRE. 10.582 +# Usage: 10.583 +# AM_OUTPUT_DEPENDENCY_COMMANDS 10.584 + 10.585 +# 10.586 +# This code is only required when automatic dependency tracking 10.587 +# is enabled. FIXME. This creates each `.P' file that we will 10.588 +# need in order to bootstrap the dependency handling code. 10.589 +AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],[ 10.590 +AC_OUTPUT_COMMANDS([ 10.591 +test x"$AMDEP_TRUE" != x"" || 10.592 +for mf in $CONFIG_FILES; do 10.593 + case "$mf" in 10.594 + Makefile) dirpart=.;; 10.595 + */Makefile) dirpart=`echo "$mf" | sed -e 's|/[^/]*$||'`;; 10.596 + *) continue;; 10.597 + esac 10.598 + grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue 10.599 + # Extract the definition of DEP_FILES from the Makefile without 10.600 + # running `make'. 10.601 + DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` 10.602 + test -z "$DEPDIR" && continue 10.603 + # When using ansi2knr, U may be empty or an underscore; expand it 10.604 + U=`sed -n -e '/^U = / s///p' < "$mf"` 10.605 + test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" 10.606 + # We invoke sed twice because it is the simplest approach to 10.607 + # changing $(DEPDIR) to its actual value in the expansion. 10.608 + for file in `sed -n -e ' 10.609 + /^DEP_FILES = .*\\\\$/ { 10.610 + s/^DEP_FILES = // 10.611 + :loop 10.612 + s/\\\\$// 10.613 + p 10.614 + n 10.615 + /\\\\$/ b loop 10.616 + p 10.617 + } 10.618 + /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ 10.619 + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 10.620 + # Make sure the directory exists. 10.621 + test -f "$dirpart/$file" && continue 10.622 + fdir=`echo "$file" | sed -e 's|/[^/]*$||'` 10.623 + $ac_aux_dir/mkinstalldirs "$dirpart/$fdir" > /dev/null 2>&1 10.624 + # echo "creating $dirpart/$file" 10.625 + echo '# dummy' > "$dirpart/$file" 10.626 + done 10.627 +done 10.628 +], [AMDEP_TRUE="$AMDEP_TRUE" 10.629 +ac_aux_dir="$ac_aux_dir"])]) 10.630 + 10.631 +# AM_MAKE_INCLUDE() 10.632 +# ----------------- 10.633 +# Check to see how make treats includes. 10.634 +AC_DEFUN([AM_MAKE_INCLUDE], 10.635 +[am_make=${MAKE-make} 10.636 +cat > confinc << 'END' 10.637 +doit: 10.638 + @echo done 10.639 +END 10.640 +# If we don't find an include directive, just comment out the code. 10.641 +AC_MSG_CHECKING([for style of include used by $am_make]) 10.642 +am__include='#' 10.643 +am__quote= 10.644 +_am_result=none 10.645 +# First try GNU make style include. 10.646 +echo "include confinc" > confmf 10.647 +# We grep out `Entering directory' and `Leaving directory' 10.648 +# messages which can occur if `w' ends up in MAKEFLAGS. 10.649 +# In particular we don't look at `^make:' because GNU make might 10.650 +# be invoked under some other name (usually "gmake"), in which 10.651 +# case it prints its new name instead of `make'. 10.652 +if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then 10.653 + am__include=include 10.654 + am__quote= 10.655 + _am_result=GNU 10.656 +fi 10.657 +# Now try BSD make style include. 10.658 +if test "$am__include" = "#"; then 10.659 + echo '.include "confinc"' > confmf 10.660 + if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 10.661 + am__include=.include 10.662 + am__quote='"' 10.663 + _am_result=BSD 10.664 + fi 10.665 +fi 10.666 +AC_SUBST(am__include) 10.667 +AC_SUBST(am__quote) 10.668 +AC_MSG_RESULT($_am_result) 10.669 +rm -f confinc confmf 10.670 +]) 10.671 + 10.672 +# Like AC_CONFIG_HEADER, but automatically create stamp file. 10.673 + 10.674 +# serial 3 10.675 + 10.676 +# When config.status generates a header, we must update the stamp-h file. 10.677 +# This file resides in the same directory as the config header 10.678 +# that is generated. We must strip everything past the first ":", 10.679 +# and everything past the last "/". 10.680 + 10.681 +AC_PREREQ([2.12]) 10.682 + 10.683 +AC_DEFUN([AM_CONFIG_HEADER], 10.684 +[ifdef([AC_FOREACH],dnl 10.685 + [dnl init our file count if it isn't already 10.686 + m4_ifndef([_AM_Config_Header_Index], m4_define([_AM_Config_Header_Index], [0])) 10.687 + dnl prepare to store our destination file list for use in config.status 10.688 + AC_FOREACH([_AM_File], [$1], 10.689 + [m4_pushdef([_AM_Dest], m4_patsubst(_AM_File, [:.*])) 10.690 + m4_define([_AM_Config_Header_Index], m4_incr(_AM_Config_Header_Index)) 10.691 + dnl and add it to the list of files AC keeps track of, along 10.692 + dnl with our hook 10.693 + AC_CONFIG_HEADERS(_AM_File, 10.694 +dnl COMMANDS, [, INIT-CMDS] 10.695 +[# update the timestamp 10.696 +echo timestamp >"AS_ESCAPE(_AM_DIRNAME(]_AM_Dest[))/stamp-h]_AM_Config_Header_Index[" 10.697 +][$2]m4_ifval([$3], [, [$3]]))dnl AC_CONFIG_HEADERS 10.698 + m4_popdef([_AM_Dest])])],dnl 10.699 +[AC_CONFIG_HEADER([$1]) 10.700 + AC_OUTPUT_COMMANDS( 10.701 + ifelse(patsubst([$1], [[^ ]], []), 10.702 + [], 10.703 + [test -z "$CONFIG_HEADERS" || echo timestamp >dnl 10.704 + patsubst([$1], [^\([^:]*/\)?.*], [\1])stamp-h]),dnl 10.705 +[am_indx=1 10.706 +for am_file in $1; do 10.707 + case " \$CONFIG_HEADERS " in 10.708 + *" \$am_file "*) 10.709 + am_dir=\`echo \$am_file |sed 's%:.*%%;s%[^/]*\$%%'\` 10.710 + if test -n "\$am_dir"; then 10.711 + am_tmpdir=\`echo \$am_dir |sed 's%^\(/*\).*\$%\1%'\` 10.712 + for am_subdir in \`echo \$am_dir |sed 's%/% %'\`; do 10.713 + am_tmpdir=\$am_tmpdir\$am_subdir/ 10.714 + if test ! -d \$am_tmpdir; then 10.715 + mkdir \$am_tmpdir 10.716 + fi 10.717 + done 10.718 + fi 10.719 + echo timestamp > "\$am_dir"stamp-h\$am_indx 10.720 + ;; 10.721 + esac 10.722 + am_indx=\`expr \$am_indx + 1\` 10.723 +done]) 10.724 +])]) # AM_CONFIG_HEADER 10.725 + 10.726 +# _AM_DIRNAME(PATH) 10.727 +# ----------------- 10.728 +# Like AS_DIRNAME, only do it during macro expansion 10.729 +AC_DEFUN([_AM_DIRNAME], 10.730 + [m4_if(m4_regexp([$1], [^.*[^/]//*[^/][^/]*/*$]), -1, 10.731 + m4_if(m4_regexp([$1], [^//\([^/]\|$\)]), -1, 10.732 + m4_if(m4_regexp([$1], [^/.*]), -1, 10.733 + [.], 10.734 + m4_patsubst([$1], [^\(/\).*], [\1])), 10.735 + m4_patsubst([$1], [^\(//\)\([^/].*\|$\)], [\1])), 10.736 + m4_patsubst([$1], [^\(.*[^/]\)//*[^/][^/]*/*$], [\1]))[]dnl 10.737 +]) # _AM_DIRNAME 10.738 + 10.739 +# Usage: 10.740 +# SIM_AC_CHECK_PTHREAD([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) 10.741 +# 10.742 +# Try to find the PTHREAD development system. If it is found, these 10.743 +# shell variables are set: 10.744 +# 10.745 +# $sim_ac_pthread_cppflags (extra flags the compiler needs for pthread) 10.746 +# $sim_ac_pthread_ldflags (extra flags the linker needs for pthread) 10.747 +# $sim_ac_pthread_libs (link libraries the linker needs for pthread) 10.748 +# 10.749 +# The CPPFLAGS, LDFLAGS and LIBS flags will also be modified accordingly. 10.750 +# In addition, the variable $sim_ac_pthread_avail is set to "yes" if the 10.751 +# pthread development system is found. 10.752 +# 10.753 +# 10.754 +# Author: Morten Eriksen, <mortene@sim.no>. 10.755 + 10.756 +AC_DEFUN([SIM_AC_CHECK_PTHREAD], [ 10.757 + 10.758 +AC_ARG_WITH( 10.759 + [pthread], 10.760 + AC_HELP_STRING([--with-pthread=DIR], 10.761 + [pthread installation directory]), 10.762 + [], 10.763 + [with_pthread=yes]) 10.764 + 10.765 +sim_ac_pthread_avail=no 10.766 + 10.767 +if test x"$with_pthread" != xno; then 10.768 + if test x"$with_pthread" != xyes; then 10.769 + sim_ac_pthread_cppflags="-I${with_pthread}/include" 10.770 + sim_ac_pthread_ldflags="-L${with_pthread}/lib" 10.771 + fi 10.772 + sim_ac_pthread_cppflags="-D_REENTRANT ${sim_ac_pthread_cppflags}" 10.773 + sim_ac_pthread_libs="-lpthread" 10.774 + 10.775 + sim_ac_save_cppflags=$CPPFLAGS 10.776 + sim_ac_save_ldflags=$LDFLAGS 10.777 + sim_ac_save_libs=$LIBS 10.778 + 10.779 + CPPFLAGS="$CPPFLAGS $sim_ac_pthread_cppflags" 10.780 + LDFLAGS="$LDFLAGS $sim_ac_pthread_ldflags" 10.781 + LIBS="$sim_ac_pthread_libs $LIBS" 10.782 + 10.783 + AC_CACHE_CHECK( 10.784 + [for POSIX threads], 10.785 + sim_cv_lib_pthread_avail, 10.786 + [AC_TRY_LINK([#include <pthread.h>], 10.787 + [(void)pthread_create(0L, 0L, 0L, 0L);], 10.788 + [sim_cv_lib_pthread_avail=true], 10.789 + [sim_cv_lib_pthread_avail=false])]) 10.790 + 10.791 + if $sim_cv_lib_pthread_avail; then 10.792 + sim_ac_pthread_avail=yes 10.793 + $1 10.794 + else 10.795 + CPPFLAGS=$sim_ac_save_cppflags 10.796 + LDFLAGS=$sim_ac_save_ldflags 10.797 + LIBS=$sim_ac_save_libs 10.798 + $2 10.799 + fi 10.800 +fi 10.801 +]) # SIM_AC_CHECK_PTHREAD 10.802 + 10.803 + 10.804 +# ************************************************************************** 10.805 +# configuration_summary.m4 10.806 +# 10.807 +# This file contains some utility macros for making it easy to have a short 10.808 +# summary of the important configuration settings printed at the end of the 10.809 +# configure run. 10.810 +# 10.811 +# Authors: 10.812 +# Lars J. Aas <larsa@sim.no> 10.813 +# 10.814 + 10.815 +# ************************************************************************** 10.816 +# SIM_AC_CONFIGURATION_SETTING( DESCRIPTION, SETTING ) 10.817 +# 10.818 +# This macro registers a configuration setting to be dumped by the 10.819 +# SIM_AC_CONFIGURATION_SUMMARY macro. 10.820 + 10.821 +AC_DEFUN([SIM_AC_CONFIGURATION_SETTING], 10.822 +[if test x${sim_ac_configuration_settings+set} != xset; then 10.823 + sim_ac_configuration_settings="$1:$2" 10.824 +else 10.825 + sim_ac_configuration_settings="$sim_ac_configuration_settings|$1:$2" 10.826 +fi 10.827 +]) # SIM_AC_CONFIGURATION_SETTING 10.828 + 10.829 +# ************************************************************************** 10.830 +# SIM_AC_CONFIGURATION_WARNING( WARNING ) 10.831 +# 10.832 +# This macro registers a configuration warning to be dumped by the 10.833 +# SIM_AC_CONFIGURATION_SUMMARY macro. 10.834 + 10.835 +AC_DEFUN([SIM_AC_CONFIGURATION_WARNING], 10.836 +[if test x${sim_ac_configuration_warnings+set} != xset; then 10.837 + sim_ac_configuration_warnings="$1" 10.838 +else 10.839 + sim_ac_configuration_warnings="$sim_ac_configuration_warnings|$1" 10.840 +fi 10.841 +]) # SIM_AC_CONFIGURATION_WARNING 10.842 + 10.843 +# ************************************************************************** 10.844 +# SIM_AC_CONFIGURATION_SUMMARY 10.845 +# 10.846 +# This macro dumps the settings and warnings summary. 10.847 + 10.848 +AC_DEFUN([SIM_AC_CONFIGURATION_SUMMARY], 10.849 +[sim_ac_settings=$sim_ac_configuration_settings 10.850 +sim_ac_num_settings=`echo "$sim_ac_settings" | tr -d -c "|" | wc -c` 10.851 +sim_ac_maxlength=0 10.852 +while test $sim_ac_num_settings -ge 0; do 10.853 + sim_ac_description=`echo "$sim_ac_settings" | cut -d: -f1` 10.854 + sim_ac_length=`echo "$sim_ac_description" | wc -c` 10.855 + if test $sim_ac_length -gt $sim_ac_maxlength; then 10.856 + sim_ac_maxlength=`expr $sim_ac_length + 0` 10.857 + fi 10.858 + sim_ac_settings=`echo $sim_ac_settings | cut -d"|" -f2-` 10.859 + sim_ac_num_settings=`expr $sim_ac_num_settings - 1` 10.860 +done 10.861 + 10.862 +sim_ac_maxlength=`expr $sim_ac_maxlength + 3` 10.863 +sim_ac_padding=`echo " " | 10.864 + cut -c1-$sim_ac_maxlength` 10.865 + 10.866 +sim_ac_num_settings=`echo "$sim_ac_configuration_settings" | tr -d -c "|" | wc -c` 10.867 +echo "" 10.868 +echo "$PACKAGE configuration settings:" 10.869 +while test $sim_ac_num_settings -ge 0; do 10.870 + sim_ac_setting=`echo $sim_ac_configuration_settings | cut -d"|" -f1` 10.871 + sim_ac_description=`echo "$sim_ac_setting" | cut -d: -f1` 10.872 + sim_ac_status=`echo "$sim_ac_setting" | cut -d: -f2-` 10.873 + # hopefully not too many terminals are too dumb for this 10.874 + echo -e "$sim_ac_padding $sim_ac_status\r $sim_ac_description:" 10.875 + sim_ac_configuration_settings=`echo $sim_ac_configuration_settings | cut -d"|" -f2-` 10.876 + sim_ac_num_settings=`expr $sim_ac_num_settings - 1` 10.877 +done 10.878 + 10.879 +if test x${sim_ac_configuration_warnings+set} = xset; then 10.880 +sim_ac_num_warnings=`echo "$sim_ac_configuration_warnings" | tr -d -c "|" | wc -c` 10.881 +echo "" 10.882 +echo "$PACKAGE configuration warnings:" 10.883 +while test $sim_ac_num_warnings -ge 0; do 10.884 + sim_ac_warning=`echo "$sim_ac_configuration_warnings" | cut -d"|" -f1` 10.885 + echo " * $sim_ac_warning" 10.886 + sim_ac_configuration_warnings=`echo $sim_ac_configuration_warnings | cut -d"|" -f2-` 10.887 + sim_ac_num_warnings=`expr $sim_ac_num_warnings - 1` 10.888 +done 10.889 +fi 10.890 +]) # SIM_AC_CONFIGURATION_SUMMARY 10.891 + 10.892 + 10.893 +# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*- 10.894 + 10.895 +# serial 46 AC_PROG_LIBTOOL 10.896 + 10.897 +AC_DEFUN([AC_PROG_LIBTOOL], 10.898 +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl 10.899 + 10.900 +# This can be used to rebuild libtool when needed 10.901 +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 10.902 + 10.903 +# Always use our own libtool. 10.904 +LIBTOOL='$(SHELL) $(top_builddir)/libtool' 10.905 +AC_SUBST(LIBTOOL)dnl 10.906 + 10.907 +# Prevent multiple expansion 10.908 +define([AC_PROG_LIBTOOL], []) 10.909 +]) 10.910 + 10.911 +AC_DEFUN([AC_LIBTOOL_SETUP], 10.912 +[AC_PREREQ(2.13)dnl 10.913 +AC_REQUIRE([AC_ENABLE_SHARED])dnl 10.914 +AC_REQUIRE([AC_ENABLE_STATIC])dnl 10.915 +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl 10.916 +AC_REQUIRE([AC_CANONICAL_HOST])dnl 10.917 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl 10.918 +AC_REQUIRE([AC_PROG_CC])dnl 10.919 +AC_REQUIRE([AC_PROG_LD])dnl 10.920 +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl 10.921 +AC_REQUIRE([AC_PROG_NM])dnl 10.922 +AC_REQUIRE([AC_PROG_LN_S])dnl 10.923 +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl 10.924 +AC_REQUIRE([AC_OBJEXT])dnl 10.925 +AC_REQUIRE([AC_EXEEXT])dnl 10.926 +dnl 10.927 + 10.928 +_LT_AC_PROG_ECHO_BACKSLASH 10.929 +# Only perform the check for file, if the check method requires it 10.930 +case $deplibs_check_method in 10.931 +file_magic*) 10.932 + if test "$file_magic_cmd" = '$MAGIC_CMD'; then 10.933 + AC_PATH_MAGIC 10.934 + fi 10.935 + ;; 10.936 +esac 10.937 + 10.938 +AC_CHECK_TOOL(RANLIB, ranlib, :) 10.939 +AC_CHECK_TOOL(STRIP, strip, :) 10.940 + 10.941 +ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) 10.942 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], 10.943 +enable_win32_dll=yes, enable_win32_dll=no) 10.944 + 10.945 +AC_ARG_ENABLE(libtool-lock, 10.946 + [ --disable-libtool-lock avoid locking (might break parallel builds)]) 10.947 +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 10.948 + 10.949 +# Some flags need to be propagated to the compiler or linker for good 10.950 +# libtool support. 10.951 +case $host in 10.952 +*-*-irix6*) 10.953 + # Find out which ABI we are using. 10.954 + echo '[#]line __oline__ "configure"' > conftest.$ac_ext 10.955 + if AC_TRY_EVAL(ac_compile); then 10.956 + case `/usr/bin/file conftest.$ac_objext` in 10.957 + *32-bit*) 10.958 + LD="${LD-ld} -32" 10.959 + ;; 10.960 + *N32*) 10.961 + LD="${LD-ld} -n32" 10.962 + ;; 10.963 + *64-bit*) 10.964 + LD="${LD-ld} -64" 10.965 + ;; 10.966 + esac 10.967 + fi 10.968 + rm -rf conftest* 10.969 + ;; 10.970 + 10.971 +*-*-sco3.2v5*) 10.972 + # On SCO OpenServer 5, we need -belf to get full-featured binaries. 10.973 + SAVE_CFLAGS="$CFLAGS" 10.974 + CFLAGS="$CFLAGS -belf" 10.975 + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, 10.976 + [AC_LANG_SAVE 10.977 + AC_LANG_C 10.978 + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) 10.979 + AC_LANG_RESTORE]) 10.980 + if test x"$lt_cv_cc_needs_belf" != x"yes"; then 10.981 + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 10.982 + CFLAGS="$SAVE_CFLAGS" 10.983 + fi 10.984 + ;; 10.985 + 10.986 +ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], 10.987 +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) 10.988 + AC_CHECK_TOOL(DLLTOOL, dlltool, false) 10.989 + AC_CHECK_TOOL(AS, as, false) 10.990 + AC_CHECK_TOOL(OBJDUMP, objdump, false) 10.991 + 10.992 + # recent cygwin and mingw systems supply a stub DllMain which the user 10.993 + # can override, but on older systems we have to supply one 10.994 + AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain, 10.995 + [AC_TRY_LINK([], 10.996 + [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*); 10.997 + DllMain (0, 0, 0);], 10.998 + [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])]) 10.999 + 10.1000 + case $host/$CC in 10.1001 + *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*) 10.1002 + # old mingw systems require "-dll" to link a DLL, while more recent ones 10.1003 + # require "-mdll" 10.1004 + SAVE_CFLAGS="$CFLAGS" 10.1005 + CFLAGS="$CFLAGS -mdll" 10.1006 + AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch, 10.1007 + [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])]) 10.1008 + CFLAGS="$SAVE_CFLAGS" ;; 10.1009 + *-*-cygwin* | *-*-pw32*) 10.1010 + # cygwin systems need to pass --dll to the linker, and not link 10.1011 + # crt.o which will require a WinMain@16 definition. 10.1012 + lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;; 10.1013 + esac 10.1014 + ;; 10.1015 + ]) 10.1016 +esac 10.1017 + 10.1018 +_LT_AC_LTCONFIG_HACK 10.1019 + 10.1020 +]) 10.1021 + 10.1022 +# AC_LIBTOOL_HEADER_ASSERT 10.1023 +# ------------------------ 10.1024 +AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT], 10.1025 +[AC_CACHE_CHECK([whether $CC supports assert without backlinking], 10.1026 + [lt_cv_func_assert_works], 10.1027 + [case $host in 10.1028 + *-*-solaris*) 10.1029 + if test "$GCC" = yes && test "$with_gnu_ld" != yes; then 10.1030 + case `$CC --version 2>/dev/null` in 10.1031 + [[12]].*) lt_cv_func_assert_works=no ;; 10.1032 + *) lt_cv_func_assert_works=yes ;; 10.1033 + esac 10.1034 + fi 10.1035 + ;; 10.1036 + esac]) 10.1037 + 10.1038 +if test "x$lt_cv_func_assert_works" = xyes; then 10.1039 + AC_CHECK_HEADERS(assert.h) 10.1040 +fi 10.1041 +])# AC_LIBTOOL_HEADER_ASSERT 10.1042 + 10.1043 +# _LT_AC_CHECK_DLFCN 10.1044 +# -------------------- 10.1045 +AC_DEFUN([_LT_AC_CHECK_DLFCN], 10.1046 +[AC_CHECK_HEADERS(dlfcn.h) 10.1047 +])# _LT_AC_CHECK_DLFCN 10.1048 + 10.1049 +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 10.1050 +# --------------------------------- 10.1051 +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], 10.1052 +[AC_REQUIRE([AC_CANONICAL_HOST]) 10.1053 +AC_REQUIRE([AC_PROG_NM]) 10.1054 +AC_REQUIRE([AC_OBJEXT]) 10.1055 +# Check for command to grab the raw symbol name followed by C symbol from nm. 10.1056 +AC_MSG_CHECKING([command to parse $NM output]) 10.1057 +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl 10.1058 + 10.1059 +# These are sane defaults that work on at least a few old systems. 10.1060 +# [They come from Ultrix. What could be older than Ultrix?!! ;)] 10.1061 + 10.1062 +# Character class describing NM global symbol codes. 10.1063 +symcode='[[BCDEGRST]]' 10.1064 + 10.1065 +# Regexp to match symbols that can be accessed directly from C. 10.1066 +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' 10.1067 + 10.1068 +# Transform the above into a raw symbol and a C symbol. 10.1069 +symxfrm='\1 \2\3 \3' 10.1070 + 10.1071 +# Transform an extracted symbol line into a proper C declaration 10.1072 +lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'" 10.1073 + 10.1074 +# Transform an extracted symbol line into symbol name and symbol address 10.1075 +lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 10.1076 + 10.1077 +# Define system-specific variables. 10.1078 +case $host_os in 10.1079 +aix*) 10.1080 + symcode='[[BCDT]]' 10.1081 + ;; 10.1082 +cygwin* | mingw* | pw32*) 10.1083 + symcode='[[ABCDGISTW]]' 10.1084 + ;; 10.1085 +hpux*) # Its linker distinguishes data from code symbols 10.1086 + lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 10.1087 + lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 10.1088 + ;; 10.1089 +irix*) 10.1090 + symcode='[[BCDEGRST]]' 10.1091 + ;; 10.1092 +solaris* | sysv5*) 10.1093 + symcode='[[BDT]]' 10.1094 + ;; 10.1095 +sysv4) 10.1096 + symcode='[[DFNSTU]]' 10.1097 + ;; 10.1098 +esac 10.1099 + 10.1100 +# Handle CRLF in mingw tool chain 10.1101 +opt_cr= 10.1102 +case $host_os in 10.1103 +mingw*) 10.1104 + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 10.1105 + ;; 10.1106 +esac 10.1107 + 10.1108 +# If we're using GNU nm, then use its standard symbol codes. 10.1109 +if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then 10.1110 + symcode='[[ABCDGISTW]]' 10.1111 +fi 10.1112 + 10.1113 +# Try without a prefix undercore, then with it. 10.1114 +for ac_symprfx in "" "_"; do 10.1115 + 10.1116 + # Write the raw and C identifiers. 10.1117 +lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 10.1118 + 10.1119 + # Check to see that the pipe works correctly. 10.1120 + pipe_works=no 10.1121 + rm -f conftest* 10.1122 + cat > conftest.$ac_ext <<EOF 10.1123 +#ifdef __cplusplus 10.1124 +extern "C" { 10.1125 +#endif 10.1126 +char nm_test_var; 10.1127 +void nm_test_func(){} 10.1128 +#ifdef __cplusplus 10.1129 +} 10.1130 +#endif 10.1131 +int main(){nm_test_var='a';nm_test_func();return(0);} 10.1132 +EOF 10.1133 + 10.1134 + if AC_TRY_EVAL(ac_compile); then 10.1135 + # Now try to grab the symbols. 10.1136 + nlist=conftest.nm 10.1137 + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then 10.1138 + # Try sorting and uniquifying the output. 10.1139 + if sort "$nlist" | uniq > "$nlist"T; then 10.1140 + mv -f "$nlist"T "$nlist" 10.1141 + else 10.1142 + rm -f "$nlist"T 10.1143 + fi 10.1144 + 10.1145 + # Make sure that we snagged all the symbols we need. 10.1146 + if egrep ' nm_test_var$' "$nlist" >/dev/null; then 10.1147 + if egrep ' nm_test_func$' "$nlist" >/dev/null; then 10.1148 + cat <<EOF > conftest.$ac_ext 10.1149 +#ifdef __cplusplus 10.1150 +extern "C" { 10.1151 +#endif 10.1152 + 10.1153 +EOF 10.1154 + # Now generate the symbol file. 10.1155 + eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext' 10.1156 + 10.1157 + cat <<EOF >> conftest.$ac_ext 10.1158 +#if defined (__STDC__) && __STDC__ 10.1159 +# define lt_ptr void * 10.1160 +#else 10.1161 +# define lt_ptr char * 10.1162 +# define const 10.1163 +#endif 10.1164 + 10.1165 +/* The mapping between symbol names and symbols. */ 10.1166 +const struct { 10.1167 + const char *name; 10.1168 + lt_ptr address; 10.1169 +} 10.1170 +lt_preloaded_symbols[[]] = 10.1171 +{ 10.1172 +EOF 10.1173 + sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext 10.1174 + cat <<\EOF >> conftest.$ac_ext 10.1175 + {0, (lt_ptr) 0} 10.1176 +}; 10.1177 + 10.1178 +#ifdef __cplusplus 10.1179 +} 10.1180 +#endif 10.1181 +EOF 10.1182 + # Now try linking the two files. 10.1183 + mv conftest.$ac_objext conftstm.$ac_objext 10.1184 + save_LIBS="$LIBS" 10.1185 + save_CFLAGS="$CFLAGS" 10.1186 + LIBS="conftstm.$ac_objext" 10.1187 + CFLAGS="$CFLAGS$no_builtin_flag" 10.1188 + if AC_TRY_EVAL(ac_link) && test -s conftest; then 10.1189 + pipe_works=yes 10.1190 + fi 10.1191 + LIBS="$save_LIBS" 10.1192 + CFLAGS="$save_CFLAGS" 10.1193 + else 10.1194 + echo "cannot find nm_test_func in $nlist" >&AC_FD_CC 10.1195 + fi 10.1196 + else 10.1197 + echo "cannot find nm_test_var in $nlist" >&AC_FD_CC 10.1198 + fi 10.1199 + else 10.1200 + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC 10.1201 + fi 10.1202 + else 10.1203 + echo "$progname: failed program was:" >&AC_FD_CC 10.1204 + cat conftest.$ac_ext >&5 10.1205 + fi 10.1206 + rm -f conftest* conftst* 10.1207 + 10.1208 + # Do not use the global_symbol_pipe unless it works. 10.1209 + if test "$pipe_works" = yes; then 10.1210 + break 10.1211 + else 10.1212 + lt_cv_sys_global_symbol_pipe= 10.1213 + fi 10.1214 +done 10.1215 +]) 10.1216 +global_symbol_pipe="$lt_cv_sys_global_symbol_pipe" 10.1217 +if test -z "$lt_cv_sys_global_symbol_pipe"; then 10.1218 + global_symbol_to_cdecl= 10.1219 + global_symbol_to_c_name_address= 10.1220 +else 10.1221 + global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl" 10.1222 + global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address" 10.1223 +fi 10.1224 +if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address"; 10.1225 +then 10.1226 + AC_MSG_RESULT(failed) 10.1227 +else 10.1228 + AC_MSG_RESULT(ok) 10.1229 +fi 10.1230 +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE 10.1231 + 10.1232 +# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR 10.1233 +# --------------------------------- 10.1234 +AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR], 10.1235 +[# Find the correct PATH separator. Usually this is `:', but 10.1236 +# DJGPP uses `;' like DOS. 10.1237 +if test "X${PATH_SEPARATOR+set}" != Xset; then 10.1238 + UNAME=${UNAME-`uname 2>/dev/null`} 10.1239 + case X$UNAME in 10.1240 + *-DOS) lt_cv_sys_path_separator=';' ;; 10.1241 + *) lt_cv_sys_path_separator=':' ;; 10.1242 + esac 10.1243 + PATH_SEPARATOR=$lt_cv_sys_path_separator 10.1244 +fi 10.1245 +])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR 10.1246 + 10.1247 +# _LT_AC_PROG_ECHO_BACKSLASH 10.1248 +# -------------------------- 10.1249 +# Add some code to the start of the generated configure script which 10.1250 +# will find an echo command which doesn't interpret backslashes. 10.1251 +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], 10.1252 +[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], 10.1253 + [AC_DIVERT_PUSH(NOTICE)]) 10.1254 +_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR 10.1255 + 10.1256 +# Check that we are running under the correct shell. 10.1257 +SHELL=${CONFIG_SHELL-/bin/sh} 10.1258 + 10.1259 +case X$ECHO in 10.1260 +X*--fallback-echo) 10.1261 + # Remove one level of quotation (which was required for Make). 10.1262 + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` 10.1263 + ;; 10.1264 +esac 10.1265 + 10.1266 +echo=${ECHO-echo} 10.1267 +if test "X[$]1" = X--no-reexec; then 10.1268 + # Discard the --no-reexec flag, and continue. 10.1269 + shift 10.1270 +elif test "X[$]1" = X--fallback-echo; then 10.1271 + # Avoid inline document here, it may be left over 10.1272 + : 10.1273 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 10.1274 + # Yippee, $echo works! 10.1275 + : 10.1276 +else 10.1277 + # Restart under the correct shell. 10.1278 + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} 10.1279 +fi 10.1280 + 10.1281 +if test "X[$]1" = X--fallback-echo; then 10.1282 + # used as fallback echo 10.1283 + shift 10.1284 + cat <<EOF 10.1285 +$* 10.1286 +EOF 10.1287 + exit 0 10.1288 +fi 10.1289 + 10.1290 +# The HP-UX ksh and POSIX shell print the target directory to stdout 10.1291 +# if CDPATH is set. 10.1292 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 10.1293 + 10.1294 +if test -z "$ECHO"; then 10.1295 +if test "X${echo_test_string+set}" != Xset; then 10.1296 +# find a string as large as possible, as long as the shell can cope with it 10.1297 + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do 10.1298 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 10.1299 + if (echo_test_string="`eval $cmd`") 2>/dev/null && 10.1300 + echo_test_string="`eval $cmd`" && 10.1301 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 10.1302 + then 10.1303 + break 10.1304 + fi 10.1305 + done 10.1306 +fi 10.1307 + 10.1308 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 10.1309 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 10.1310 + test "X$echo_testing_string" = "X$echo_test_string"; then 10.1311 + : 10.1312 +else 10.1313 + # The Solaris, AIX, and Digital Unix default echo programs unquote 10.1314 + # backslashes. This makes it impossible to quote backslashes using 10.1315 + # echo "$something" | sed 's/\\/\\\\/g' 10.1316 + # 10.1317 + # So, first we look for a working echo in the user's PATH. 10.1318 + 10.1319 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10.1320 + for dir in $PATH /usr/ucb; do 10.1321 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 10.1322 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 10.1323 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 10.1324 + test "X$echo_testing_string" = "X$echo_test_string"; then 10.1325 + echo="$dir/echo" 10.1326 + break 10.1327 + fi 10.1328 + done 10.1329 + IFS="$save_ifs" 10.1330 + 10.1331 + if test "X$echo" = Xecho; then 10.1332 + # We didn't find a better echo, so look for alternatives. 10.1333 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 10.1334 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 10.1335 + test "X$echo_testing_string" = "X$echo_test_string"; then 10.1336 + # This shell has a builtin print -r that does the trick. 10.1337 + echo='print -r' 10.1338 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 10.1339 + test "X$CONFIG_SHELL" != X/bin/ksh; then 10.1340 + # If we have ksh, try running configure again with it. 10.1341 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 10.1342 + export ORIGINAL_CONFIG_SHELL 10.1343 + CONFIG_SHELL=/bin/ksh 10.1344 + export CONFIG_SHELL 10.1345 + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} 10.1346 + else 10.1347 + # Try using printf. 10.1348 + echo='printf %s\n' 10.1349 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 10.1350 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 10.1351 + test "X$echo_testing_string" = "X$echo_test_string"; then 10.1352 + # Cool, printf works 10.1353 + : 10.1354 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 10.1355 + test "X$echo_testing_string" = 'X\t' && 10.1356 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 10.1357 + test "X$echo_testing_string" = "X$echo_test_string"; then 10.1358 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 10.1359 + export CONFIG_SHELL 10.1360 + SHELL="$CONFIG_SHELL" 10.1361 + export SHELL 10.1362 + echo="$CONFIG_SHELL [$]0 --fallback-echo" 10.1363 + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && 10.1364 + test "X$echo_testing_string" = 'X\t' && 10.1365 + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && 10.1366 + test "X$echo_testing_string" = "X$echo_test_string"; then 10.1367 + echo="$CONFIG_SHELL [$]0 --fallback-echo" 10.1368 + else 10.1369 + # maybe with a smaller string... 10.1370 + prev=: 10.1371 + 10.1372 + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do 10.1373 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 10.1374 + then 10.1375 + break 10.1376 + fi 10.1377 + prev="$cmd" 10.1378 + done 10.1379 + 10.1380 + if test "$prev" != 'sed 50q "[$]0"'; then 10.1381 + echo_test_string=`eval $prev` 10.1382 + export echo_test_string 10.1383 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} 10.1384 + else 10.1385 + # Oops. We lost completely, so just stick with echo. 10.1386 + echo=echo 10.1387 + fi 10.1388 + fi 10.1389 + fi 10.1390 + fi 10.1391 +fi 10.1392 +fi 10.1393 + 10.1394 +# Copy echo and quote the copy suitably for passing to libtool from 10.1395 +# the Makefile, instead of quoting the original, which is used later. 10.1396 +ECHO=$echo 10.1397 +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then 10.1398 + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" 10.1399 +fi 10.1400 + 10.1401 +AC_SUBST(ECHO) 10.1402 +AC_DIVERT_POP 10.1403 +])# _LT_AC_PROG_ECHO_BACKSLASH 10.1404 + 10.1405 +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, 10.1406 +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) 10.1407 +# ------------------------------------------------------------------ 10.1408 +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], 10.1409 +[if test "$cross_compiling" = yes; then : 10.1410 + [$4] 10.1411 +else 10.1412 + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 10.1413 + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10.1414 + lt_status=$lt_dlunknown 10.1415 + cat > conftest.$ac_ext <<EOF 10.1416 +[#line __oline__ "configure" 10.1417 +#include "confdefs.h" 10.1418 + 10.1419 +#if HAVE_DLFCN_H 10.1420 +#include <dlfcn.h> 10.1421 +#endif 10.1422 + 10.1423 +#include <stdio.h> 10.1424 + 10.1425 +#ifdef RTLD_GLOBAL 10.1426 +# define LT_DLGLOBAL RTLD_GLOBAL 10.1427 +#else 10.1428 +# ifdef DL_GLOBAL 10.1429 +# define LT_DLGLOBAL DL_GLOBAL 10.1430 +# else 10.1431 +# define LT_DLGLOBAL 0 10.1432 +# endif 10.1433 +#endif 10.1434 + 10.1435 +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10.1436 + find out it does not work in some platform. */ 10.1437 +#ifndef LT_DLLAZY_OR_NOW 10.1438 +# ifdef RTLD_LAZY 10.1439 +# define LT_DLLAZY_OR_NOW RTLD_LAZY 10.1440 +# else 10.1441 +# ifdef DL_LAZY 10.1442 +# define LT_DLLAZY_OR_NOW DL_LAZY 10.1443 +# else 10.1444 +# ifdef RTLD_NOW 10.1445 +# define LT_DLLAZY_OR_NOW RTLD_NOW 10.1446 +# else 10.1447 +# ifdef DL_NOW 10.1448 +# define LT_DLLAZY_OR_NOW DL_NOW 10.1449 +# else 10.1450 +# define LT_DLLAZY_OR_NOW 0 10.1451 +# endif 10.1452 +# endif 10.1453 +# endif 10.1454 +# endif 10.1455 +#endif 10.1456 + 10.1457 +#ifdef __cplusplus 10.1458 +extern "C" void exit (int); 10.1459 +#endif 10.1460 + 10.1461 +void fnord() { int i=42;} 10.1462 +int main () 10.1463 +{ 10.1464 + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10.1465 + int status = $lt_dlunknown; 10.1466 + 10.1467 + if (self) 10.1468 + { 10.1469 + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10.1470 + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10.1471 + /* dlclose (self); */ 10.1472 + } 10.1473 + 10.1474 + exit (status); 10.1475 +}] 10.1476 +EOF 10.1477 + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then 10.1478 + (./conftest; exit; ) 2>/dev/null 10.1479 + lt_status=$? 10.1480 + case x$lt_status in 10.1481 + x$lt_dlno_uscore) $1 ;; 10.1482 + x$lt_dlneed_uscore) $2 ;; 10.1483 + x$lt_unknown|x*) $3 ;; 10.1484 + esac 10.1485 + else : 10.1486 + # compilation failed 10.1487 + $3 10.1488 + fi 10.1489 +fi 10.1490 +rm -fr conftest* 10.1491 +])# _LT_AC_TRY_DLOPEN_SELF 10.1492 + 10.1493 +# AC_LIBTOOL_DLOPEN_SELF 10.1494 +# ------------------- 10.1495 +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], 10.1496 +[if test "x$enable_dlopen" != xyes; then 10.1497 + enable_dlopen=unknown 10.1498 + enable_dlopen_self=unknown 10.1499 + enable_dlopen_self_static=unknown 10.1500 +else 10.1501 + lt_cv_dlopen=no 10.1502 + lt_cv_dlopen_libs= 10.1503 + 10.1504 + case $host_os in 10.1505 + beos*) 10.1506 + lt_cv_dlopen="load_add_on" 10.1507 + lt_cv_dlopen_libs= 10.1508 + lt_cv_dlopen_self=yes 10.1509 + ;; 10.1510 + 10.1511 + cygwin* | mingw* | pw32*) 10.1512 + lt_cv_dlopen="LoadLibrary" 10.1513 + lt_cv_dlopen_libs= 10.1514 + ;; 10.1515 + 10.1516 + *) 10.1517 + AC_CHECK_FUNC([shl_load], 10.1518 + [lt_cv_dlopen="shl_load"], 10.1519 + [AC_CHECK_LIB([dld], [shl_load], 10.1520 + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], 10.1521 + [AC_CHECK_FUNC([dlopen], 10.1522 + [lt_cv_dlopen="dlopen"], 10.1523 + [AC_CHECK_LIB([dl], [dlopen], 10.1524 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], 10.1525 + [AC_CHECK_LIB([svld], [dlopen], 10.1526 + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], 10.1527 + [AC_CHECK_LIB([dld], [dld_link], 10.1528 + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) 10.1529 + ]) 10.1530 + ]) 10.1531 + ]) 10.1532 + ]) 10.1533 + ]) 10.1534 + ;; 10.1535 + esac 10.1536 + 10.1537 + if test "x$lt_cv_dlopen" != xno; then 10.1538 + enable_dlopen=yes 10.1539 + else 10.1540 + enable_dlopen=no 10.1541 + fi 10.1542 + 10.1543 + case $lt_cv_dlopen in 10.1544 + dlopen) 10.1545 + save_CPPFLAGS="$CPPFLAGS" 10.1546 + AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl 10.1547 + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10.1548 + 10.1549 + save_LDFLAGS="$LDFLAGS" 10.1550 + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10.1551 + 10.1552 + save_LIBS="$LIBS" 10.1553 + LIBS="$lt_cv_dlopen_libs $LIBS" 10.1554 + 10.1555 + AC_CACHE_CHECK([whether a program can dlopen itself], 10.1556 + lt_cv_dlopen_self, [dnl 10.1557 + _LT_AC_TRY_DLOPEN_SELF( 10.1558 + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, 10.1559 + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) 10.1560 + ]) 10.1561 + 10.1562 + if test "x$lt_cv_dlopen_self" = xyes; then 10.1563 + LDFLAGS="$LDFLAGS $link_static_flag" 10.1564 + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], 10.1565 + lt_cv_dlopen_self_static, [dnl 10.1566 + _LT_AC_TRY_DLOPEN_SELF( 10.1567 + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, 10.1568 + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) 10.1569 + ]) 10.1570 + fi 10.1571 + 10.1572 + CPPFLAGS="$save_CPPFLAGS" 10.1573 + LDFLAGS="$save_LDFLAGS" 10.1574 + LIBS="$save_LIBS" 10.1575 + ;; 10.1576 + esac 10.1577 + 10.1578 + case $lt_cv_dlopen_self in 10.1579 + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 10.1580 + *) enable_dlopen_self=unknown ;; 10.1581 + esac 10.1582 + 10.1583 + case $lt_cv_dlopen_self_static in 10.1584 + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 10.1585 + *) enable_dlopen_self_static=unknown ;; 10.1586 + esac 10.1587 +fi 10.1588 +])# AC_LIBTOOL_DLOPEN_SELF 10.1589 + 10.1590 +AC_DEFUN([_LT_AC_LTCONFIG_HACK], 10.1591 +[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl 10.1592 +# Sed substitution that helps us do robust quoting. It backslashifies 10.1593 +# metacharacters that are still active within double-quoted strings. 10.1594 +Xsed='sed -e s/^X//' 10.1595 +sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g' 10.1596 + 10.1597 +# Same as above, but do not quote variable references. 10.1598 +double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g' 10.1599 + 10.1600 +# Sed substitution to delay expansion of an escaped shell variable in a 10.1601 +# double_quote_subst'ed string. 10.1602 +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 10.1603 + 10.1604 +# Constants: 10.1605 +rm="rm -f" 10.1606 + 10.1607 +# Global variables: 10.1608 +default_ofile=libtool 10.1609 +can_build_shared=yes 10.1610 + 10.1611 +# All known linkers require a `.a' archive for static linking (except M$VC, 10.1612 +# which needs '.lib'). 10.1613 +libext=a 10.1614 +ltmain="$ac_aux_dir/ltmain.sh" 10.1615 +ofile="$default_ofile" 10.1616 +with_gnu_ld="$lt_cv_prog_gnu_ld" 10.1617 +need_locks="$enable_libtool_lock" 10.1618 + 10.1619 +old_CC="$CC" 10.1620 +old_CFLAGS="$CFLAGS" 10.1621 + 10.1622 +# Set sane defaults for various variables 10.1623 +test -z "$AR" && AR=ar 10.1624 +test -z "$AR_FLAGS" && AR_FLAGS=cru 10.1625 +test -z "$AS" && AS=as 10.1626 +test -z "$CC" && CC=cc 10.1627 +test -z "$DLLTOOL" && DLLTOOL=dlltool 10.1628 +test -z "$LD" && LD=ld 10.1629 +test -z "$LN_S" && LN_S="ln -s" 10.1630 +test -z "$MAGIC_CMD" && MAGIC_CMD=file 10.1631 +test -z "$NM" && NM=nm 10.1632 +test -z "$OBJDUMP" && OBJDUMP=objdump 10.1633 +test -z "$RANLIB" && RANLIB=: 10.1634 +test -z "$STRIP" && STRIP=: 10.1635 +test -z "$ac_objext" && ac_objext=o 10.1636 + 10.1637 +if test x"$host" != x"$build"; then 10.1638 + ac_tool_prefix=${host_alias}- 10.1639 +else 10.1640 + ac_tool_prefix= 10.1641 +fi 10.1642 + 10.1643 +# Transform linux* to *-*-linux-gnu*, to support old configure scripts. 10.1644 +case $host_os in 10.1645 +linux-gnu*) ;; 10.1646 +linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'` 10.1647 +esac 10.1648 + 10.1649 +case $host_os in 10.1650 +aix3*) 10.1651 + # AIX sometimes has problems with the GCC collect2 program. For some 10.1652 + # reason, if we set the COLLECT_NAMES environment variable, the problems 10.1653 + # vanish in a puff of smoke. 10.1654 + if test "X${COLLECT_NAMES+set}" != Xset; then 10.1655 + COLLECT_NAMES= 10.1656 + export COLLECT_NAMES 10.1657 + fi 10.1658 + ;; 10.1659 +esac 10.1660 + 10.1661 +# Determine commands to create old-style static archives. 10.1662 +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 10.1663 +old_postinstall_cmds='chmod 644 $oldlib' 10.1664 +old_postuninstall_cmds= 10.1665 + 10.1666 +if test -n "$RANLIB"; then 10.1667 + case $host_os in 10.1668 + openbsd*) 10.1669 + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 10.1670 + ;; 10.1671 + *) 10.1672 + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 10.1673 + ;; 10.1674 + esac 10.1675 + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 10.1676 +fi 10.1677 + 10.1678 +# Allow CC to be a program name with arguments. 10.1679 +set dummy $CC 10.1680 +compiler="[$]2" 10.1681 + 10.1682 +AC_MSG_CHECKING([for objdir]) 10.1683 +rm -f .libs 2>/dev/null 10.1684 +mkdir .libs 2>/dev/null 10.1685 +if test -d .libs; then 10.1686 + objdir=.libs 10.1687 +else 10.1688 + # MS-DOS does not allow filenames that begin with a dot. 10.1689 + objdir=_libs 10.1690 +fi 10.1691 +rmdir .libs 2>/dev/null 10.1692 +AC_MSG_RESULT($objdir) 10.1693 + 10.1694 + 10.1695 +AC_ARG_WITH(pic, 10.1696 +[ --with-pic try to use only PIC/non-PIC objects [default=use both]], 10.1697 +pic_mode="$withval", pic_mode=default) 10.1698 +test -z "$pic_mode" && pic_mode=default 10.1699 + 10.1700 +# We assume here that the value for lt_cv_prog_cc_pic will not be cached 10.1701 +# in isolation, and that seeing it set (from the cache) indicates that 10.1702 +# the associated values are set (in the cache) correctly too. 10.1703 +AC_MSG_CHECKING([for $compiler option to produce PIC]) 10.1704 +AC_CACHE_VAL(lt_cv_prog_cc_pic, 10.1705 +[ lt_cv_prog_cc_pic= 10.1706 + lt_cv_prog_cc_shlib= 10.1707 + lt_cv_prog_cc_wl= 10.1708 + lt_cv_prog_cc_static= 10.1709 + lt_cv_prog_cc_no_builtin= 10.1710 + lt_cv_prog_cc_can_build_shared=$can_build_shared 10.1711 + 10.1712 + if test "$GCC" = yes; then 10.1713 + lt_cv_prog_cc_wl='-Wl,' 10.1714 + lt_cv_prog_cc_static='-static' 10.1715 + 10.1716 + case $host_os in 10.1717 + aix*) 10.1718 + # Below there is a dirty hack to force normal static linking with -ldl 10.1719 + # The problem is because libdl dynamically linked with both libc and 10.1720 + # libC (AIX C++ library), which obviously doesn't included in libraries 10.1721 + # list by gcc. This cause undefined symbols with -static flags. 10.1722 + # This hack allows C programs to be linked with "-static -ldl", but 10.1723 + # not sure about C++ programs. 10.1724 + lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC" 10.1725 + ;; 10.1726 + amigaos*) 10.1727 + # FIXME: we need at least 68020 code to build shared libraries, but 10.1728 + # adding the `-m68020' flag to GCC prevents building anything better, 10.1729 + # like `-m68040'. 10.1730 + lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4' 10.1731 + ;; 10.1732 + beos* | irix5* | irix6* | osf3* | osf4* | osf5*) 10.1733 + # PIC is the default for these OSes. 10.1734 + ;; 10.1735 + darwin* | rhapsody*) 10.1736 + # PIC is the default on this platform 10.1737 + # Common symbols not allowed in MH_DYLIB files 10.1738 + lt_cv_prog_cc_pic='-fno-common' 10.1739 + ;; 10.1740 + cygwin* | mingw* | pw32* | os2*) 10.1741 + # This hack is so that the source file can tell whether it is being 10.1742 + # built for inclusion in a dll (and should export symbols for example). 10.1743 + lt_cv_prog_cc_pic='-DDLL_EXPORT' 10.1744 + ;; 10.1745 + sysv4*MP*) 10.1746 + if test -d /usr/nec; then 10.1747 + lt_cv_prog_cc_pic=-Kconform_pic 10.1748 + fi 10.1749 + ;; 10.1750 + *) 10.1751 + lt_cv_prog_cc_pic='-fPIC' 10.1752 + ;; 10.1753 + esac 10.1754 + else 10.1755 + # PORTME Check for PIC flags for the system compiler. 10.1756 + case $host_os in 10.1757 + aix3* | aix4* | aix5*) 10.1758 + lt_cv_prog_cc_wl='-Wl,' 10.1759 + # All AIX code is PIC. 10.1760 + if test "$host_cpu" = ia64; then 10.1761 + # AIX 5 now supports IA64 processor 10.1762 + lt_cv_prog_cc_static='-Bstatic' 10.1763 + else 10.1764 + lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp' 10.1765 + fi 10.1766 + ;; 10.1767 + 10.1768 + hpux9* | hpux10* | hpux11*) 10.1769 + # Is there a better lt_cv_prog_cc_static that works with the bundled CC? 10.1770 + lt_cv_prog_cc_wl='-Wl,' 10.1771 + lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive" 10.1772 + lt_cv_prog_cc_pic='+Z' 10.1773 + ;; 10.1774 + 10.1775 + irix5* | irix6*) 10.1776 + lt_cv_prog_cc_wl='-Wl,' 10.1777 + lt_cv_prog_cc_static='-non_shared' 10.1778 + # PIC (with -KPIC) is the default. 10.1779 + ;; 10.1780 + 10.1781 + cygwin* | mingw* | pw32* | os2*) 10.1782 + # This hack is so that the source file can tell whether it is being 10.1783 + # built for inclusion in a dll (and should export symbols for example). 10.1784 + lt_cv_prog_cc_pic='-DDLL_EXPORT' 10.1785 + ;; 10.1786 + 10.1787 + newsos6) 10.1788 + lt_cv_prog_cc_pic='-KPIC' 10.1789 + lt_cv_prog_cc_static='-Bstatic' 10.1790 + ;; 10.1791 + 10.1792 + osf3* | osf4* | osf5*) 10.1793 + # All OSF/1 code is PIC. 10.1794 + lt_cv_prog_cc_wl='-Wl,' 10.1795 + lt_cv_prog_cc_static='-non_shared' 10.1796 + ;; 10.1797 + 10.1798 + sco3.2v5*) 10.1799 + lt_cv_prog_cc_pic='-Kpic' 10.1800 + lt_cv_prog_cc_static='-dn' 10.1801 + lt_cv_prog_cc_shlib='-belf' 10.1802 + ;; 10.1803 + 10.1804 + solaris*) 10.1805 + lt_cv_prog_cc_pic='-KPIC' 10.1806 + lt_cv_prog_cc_static='-Bstatic' 10.1807 + lt_cv_prog_cc_wl='-Wl,' 10.1808 + ;; 10.1809 + 10.1810 + sunos4*) 10.1811 + lt_cv_prog_cc_pic='-PIC' 10.1812 + lt_cv_prog_cc_static='-Bstatic' 10.1813 + lt_cv_prog_cc_wl='-Qoption ld ' 10.1814 + ;; 10.1815 + 10.1816 + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10.1817 + lt_cv_prog_cc_pic='-KPIC' 10.1818 + lt_cv_prog_cc_static='-Bstatic' 10.1819 + if test "x$host_vendor" = xsni; then 10.1820 + lt_cv_prog_cc_wl='-LD' 10.1821 + else 10.1822 + lt_cv_prog_cc_wl='-Wl,' 10.1823 + fi 10.1824 + ;; 10.1825 + 10.1826 + uts4*) 10.1827 + lt_cv_prog_cc_pic='-pic' 10.1828 + lt_cv_prog_cc_static='-Bstatic' 10.1829 + ;; 10.1830 + 10.1831 + sysv4*MP*) 10.1832 + if test -d /usr/nec ;then 10.1833 + lt_cv_prog_cc_pic='-Kconform_pic' 10.1834 + lt_cv_prog_cc_static='-Bstatic' 10.1835 + fi 10.1836 + ;; 10.1837 + 10.1838 + *) 10.1839 + lt_cv_prog_cc_can_build_shared=no 10.1840 + ;; 10.1841 + esac 10.1842 + fi 10.1843 +]) 10.1844 +if test -z "$lt_cv_prog_cc_pic"; then 10.1845 + AC_MSG_RESULT([none]) 10.1846 +else 10.1847 + AC_MSG_RESULT([$lt_cv_prog_cc_pic]) 10.1848 + 10.1849 + # Check to make sure the pic_flag actually works. 10.1850 + AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works]) 10.1851 + AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl 10.1852 + save_CFLAGS="$CFLAGS" 10.1853 + CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC" 10.1854 + AC_TRY_COMPILE([], [], [dnl 10.1855 + case $host_os in 10.1856 + hpux9* | hpux10* | hpux11*) 10.1857 + # On HP-UX, both CC and GCC only warn that PIC is supported... then 10.1858 + # they create non-PIC objects. So, if there were any warnings, we 10.1859 + # assume that PIC is not supported. 10.1860 + if test -s conftest.err; then 10.1861 + lt_cv_prog_cc_pic_works=no 10.1862 + else 10.1863 + lt_cv_prog_cc_pic_works=yes 10.1864 + fi 10.1865 + ;; 10.1866 + *) 10.1867 + lt_cv_prog_cc_pic_works=yes 10.1868 + ;; 10.1869 + esac 10.1870 + ], [dnl 10.1871 + lt_cv_prog_cc_pic_works=no 10.1872 + ]) 10.1873 + CFLAGS="$save_CFLAGS" 10.1874 + ]) 10.1875 + 10.1876 + if test "X$lt_cv_prog_cc_pic_works" = Xno; then 10.1877 + lt_cv_prog_cc_pic= 10.1878 + lt_cv_prog_cc_can_build_shared=no 10.1879 + else 10.1880 + lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic" 10.1881 + fi 10.1882 + 10.1883 + AC_MSG_RESULT([$lt_cv_prog_cc_pic_works]) 10.1884 +fi 10.1885 + 10.1886 +# Check for any special shared library compilation flags. 10.1887 +if test -n "$lt_cv_prog_cc_shlib"; then 10.1888 + AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries]) 10.1889 + if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then : 10.1890 + else 10.1891 + AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure]) 10.1892 + lt_cv_prog_cc_can_build_shared=no 10.1893 + fi 10.1894 +fi 10.1895 + 10.1896 +AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works]) 10.1897 +AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl 10.1898 + lt_cv_prog_cc_static_works=no 10.1899 + save_LDFLAGS="$LDFLAGS" 10.1900 + LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static" 10.1901 + AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes]) 10.1902 + LDFLAGS="$save_LDFLAGS" 10.1903 +]) 10.1904 + 10.1905 +# Belt *and* braces to stop my trousers falling down: 10.1906 +test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static= 10.1907 +AC_MSG_RESULT([$lt_cv_prog_cc_static_works]) 10.1908 + 10.1909 +pic_flag="$lt_cv_prog_cc_pic" 10.1910 +special_shlib_compile_flags="$lt_cv_prog_cc_shlib" 10.1911 +wl="$lt_cv_prog_cc_wl" 10.1912 +link_static_flag="$lt_cv_prog_cc_static" 10.1913 +no_builtin_flag="$lt_cv_prog_cc_no_builtin" 10.1914 +can_build_shared="$lt_cv_prog_cc_can_build_shared" 10.1915 + 10.1916 + 10.1917 +# Check to see if options -o and -c are simultaneously supported by compiler 10.1918 +AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext]) 10.1919 +AC_CACHE_VAL([lt_cv_compiler_c_o], [ 10.1920 +$rm -r conftest 2>/dev/null 10.1921 +mkdir conftest 10.1922 +cd conftest 10.1923 +echo "int some_variable = 0;" > conftest.$ac_ext 10.1924 +mkdir out 10.1925 +# According to Tom Tromey, Ian Lance Taylor reported there are C compilers 10.1926 +# that will create temporary files in the current directory regardless of 10.1927 +# the output directory. Thus, making CWD read-only will cause this test 10.1928 +# to fail, enabling locking or at least warning the user not to do parallel 10.1929 +# builds. 10.1930 +chmod -w . 10.1931 +save_CFLAGS="$CFLAGS" 10.1932 +CFLAGS="$CFLAGS -o out/conftest2.$ac_objext" 10.1933 +compiler_c_o=no 10.1934 +if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then 10.1935 + # The compiler can only warn and ignore the option if not recognized 10.1936 + # So say no if there are warnings 10.1937 + if test -s out/conftest.err; then 10.1938 + lt_cv_compiler_c_o=no 10.1939 + else 10.1940 + lt_cv_compiler_c_o=yes 10.1941 + fi 10.1942 +else 10.1943 + # Append any errors to the config.log. 10.1944 + cat out/conftest.err 1>&AC_FD_CC 10.1945 + lt_cv_compiler_c_o=no 10.1946 +fi 10.1947 +CFLAGS="$save_CFLAGS" 10.1948 +chmod u+w . 10.1949 +$rm conftest* out/* 10.1950 +rmdir out 10.1951 +cd .. 10.1952 +rmdir conftest 10.1953 +$rm -r conftest 2>/dev/null 10.1954 +]) 10.1955 +compiler_c_o=$lt_cv_compiler_c_o 10.1956 +AC_MSG_RESULT([$compiler_c_o]) 10.1957 + 10.1958 +if test x"$compiler_c_o" = x"yes"; then 10.1959 + # Check to see if we can write to a .lo 10.1960 + AC_MSG_CHECKING([if $compiler supports -c -o file.lo]) 10.1961 + AC_CACHE_VAL([lt_cv_compiler_o_lo], [ 10.1962 + lt_cv_compiler_o_lo=no 10.1963 + save_CFLAGS="$CFLAGS" 10.1964 + CFLAGS="$CFLAGS -c -o conftest.lo" 10.1965 + save_objext="$ac_objext" 10.1966 + ac_objext=lo 10.1967 + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl 10.1968 + # The compiler can only warn and ignore the option if not recognized 10.1969 + # So say no if there are warnings 10.1970 + if test -s conftest.err; then 10.1971 + lt_cv_compiler_o_lo=no 10.1972 + else 10.1973 + lt_cv_compiler_o_lo=yes 10.1974 + fi 10.1975 + ]) 10.1976 + ac_objext="$save_objext" 10.1977 + CFLAGS="$save_CFLAGS" 10.1978 + ]) 10.1979 + compiler_o_lo=$lt_cv_compiler_o_lo 10.1980 + AC_MSG_RESULT([$compiler_o_lo]) 10.1981 +else 10.1982 + compiler_o_lo=no 10.1983 +fi 10.1984 + 10.1985 +# Check to see if we can do hard links to lock some files if needed 10.1986 +hard_links="nottested" 10.1987 +if test "$compiler_c_o" = no && test "$need_locks" != no; then 10.1988 + # do not overwrite the value of need_locks provided by the user 10.1989 + AC_MSG_CHECKING([if we can lock with hard links]) 10.1990 + hard_links=yes 10.1991 + $rm conftest* 10.1992 + ln conftest.a conftest.b 2>/dev/null && hard_links=no 10.1993 + touch conftest.a 10.1994 + ln conftest.a conftest.b 2>&5 || hard_links=no 10.1995 + ln conftest.a conftest.b 2>/dev/null && hard_links=no 10.1996 + AC_MSG_RESULT([$hard_links]) 10.1997 + if test "$hard_links" = no; then 10.1998 + AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe]) 10.1999 + need_locks=warn 10.2000 + fi 10.2001 +else 10.2002 + need_locks=no 10.2003 +fi 10.2004 + 10.2005 +if test "$GCC" = yes; then 10.2006 + # Check to see if options -fno-rtti -fno-exceptions are supported by compiler 10.2007 + AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions]) 10.2008 + echo "int some_variable = 0;" > conftest.$ac_ext 10.2009 + save_CFLAGS="$CFLAGS" 10.2010 + CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext" 10.2011 + compiler_rtti_exceptions=no 10.2012 + AC_TRY_COMPILE([], [int some_variable = 0;], [dnl 10.2013 + # The compiler can only warn and ignore the option if not recognized 10.2014 + # So say no if there are warnings 10.2015 + if test -s conftest.err; then 10.2016 + compiler_rtti_exceptions=no 10.2017 + else 10.2018 + compiler_rtti_exceptions=yes 10.2019 + fi 10.2020 + ]) 10.2021 + CFLAGS="$save_CFLAGS" 10.2022 + AC_MSG_RESULT([$compiler_rtti_exceptions]) 10.2023 + 10.2024 + if test "$compiler_rtti_exceptions" = "yes"; then 10.2025 + no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions' 10.2026 + else 10.2027 + no_builtin_flag=' -fno-builtin' 10.2028 + fi 10.2029 +fi 10.2030 + 10.2031 +# See if the linker supports building shared libraries. 10.2032 +AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries]) 10.2033 + 10.2034 +allow_undefined_flag= 10.2035 +no_undefined_flag= 10.2036 +need_lib_prefix=unknown 10.2037 +need_version=unknown 10.2038 +# when you set need_version to no, make sure it does not cause -set_version 10.2039 +# flags to be left without arguments 10.2040 +archive_cmds= 10.2041 +archive_expsym_cmds= 10.2042 +old_archive_from_new_cmds= 10.2043 +old_archive_from_expsyms_cmds= 10.2044 +export_dynamic_flag_spec= 10.2045 +whole_archive_flag_spec= 10.2046 +thread_safe_flag_spec= 10.2047 +hardcode_into_libs=no 10.2048 +hardcode_libdir_flag_spec= 10.2049 +hardcode_libdir_separator= 10.2050 +hardcode_direct=no 10.2051 +hardcode_minus_L=no 10.2052 +hardcode_shlibpath_var=unsupported 10.2053 +runpath_var= 10.2054 +link_all_deplibs=unknown 10.2055 +always_export_symbols=no 10.2056 +export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols' 10.2057 +# include_expsyms should be a list of space-separated symbols to be *always* 10.2058 +# included in the symbol list 10.2059 +include_expsyms= 10.2060 +# exclude_expsyms can be an egrep regular expression of symbols to exclude 10.2061 +# it will be wrapped by ` (' and `)$', so one must not match beginning or 10.2062 +# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 10.2063 +# as well as any symbol that contains `d'. 10.2064 +exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 10.2065 +# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10.2066 +# platforms (ab)use it in PIC code, but their linkers get confused if 10.2067 +# the symbol is explicitly referenced. Since portable code cannot 10.2068 +# rely on this symbol name, it's probably fine to never include it in 10.2069 +# preloaded symbol tables. 10.2070 +extract_expsyms_cmds= 10.2071 + 10.2072 +case $host_os in 10.2073 +cygwin* | mingw* | pw32*) 10.2074 + # FIXME: the MSVC++ port hasn't been tested in a loooong time 10.2075 + # When not using gcc, we currently assume that we are using 10.2076 + # Microsoft Visual C++. 10.2077 + if test "$GCC" != yes; then 10.2078 + with_gnu_ld=no 10.2079 + fi 10.2080 + ;; 10.2081 +openbsd*) 10.2082 + with_gnu_ld=no 10.2083 + ;; 10.2084 +esac 10.2085 + 10.2086 +ld_shlibs=yes 10.2087 +if test "$with_gnu_ld" = yes; then 10.2088 + # If archive_cmds runs LD, not CC, wlarc should be empty 10.2089 + wlarc='${wl}' 10.2090 + 10.2091 + # See if GNU ld supports shared libraries. 10.2092 + case $host_os in 10.2093 + aix3* | aix4* | aix5*) 10.2094 + # On AIX, the GNU linker is very broken 10.2095 + # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available. 10.2096 + ld_shlibs=no 10.2097 + cat <<EOF 1>&2 10.2098 + 10.2099 +*** Warning: the GNU linker, at least up to release 2.9.1, is reported 10.2100 +*** to be unable to reliably create shared libraries on AIX. 10.2101 +*** Therefore, libtool is disabling shared libraries support. If you 10.2102 +*** really care for shared libraries, you may want to modify your PATH 10.2103 +*** so that a non-GNU linker is found, and then restart. 10.2104 + 10.2105 +EOF 10.2106 + ;; 10.2107 + 10.2108 + amigaos*) 10.2109 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10.2110 + hardcode_libdir_flag_spec='-L$libdir' 10.2111 + hardcode_minus_L=yes 10.2112 + 10.2113 + # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 10.2114 + # that the semantics of dynamic libraries on AmigaOS, at least up 10.2115 + # to version 4, is to share data among multiple programs linked 10.2116 + # with the same dynamic library. Since this doesn't match the 10.2117 + # behavior of shared libraries on other platforms, we can use 10.2118 + # them. 10.2119 + ld_shlibs=no 10.2120 + ;; 10.2121 + 10.2122 + beos*) 10.2123 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 10.2124 + allow_undefined_flag=unsupported 10.2125 + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10.2126 + # support --undefined. This deserves some investigation. FIXME 10.2127 + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10.2128 + else 10.2129 + ld_shlibs=no 10.2130 + fi 10.2131 + ;; 10.2132 + 10.2133 + cygwin* | mingw* | pw32*) 10.2134 + # hardcode_libdir_flag_spec is actually meaningless, as there is 10.2135 + # no search path for DLLs. 10.2136 + hardcode_libdir_flag_spec='-L$libdir' 10.2137 + allow_undefined_flag=unsupported 10.2138 + always_export_symbols=yes 10.2139 + 10.2140 + extract_expsyms_cmds='test -f $output_objdir/impgen.c || \ 10.2141 + sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~ 10.2142 + test -f $output_objdir/impgen.exe || (cd $output_objdir && \ 10.2143 + if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \ 10.2144 + else $CC -o impgen impgen.c ; fi)~ 10.2145 + $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def' 10.2146 + 10.2147 + old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib' 10.2148 + 10.2149 + # cygwin and mingw dlls have different entry points and sets of symbols 10.2150 + # to exclude. 10.2151 + # FIXME: what about values for MSVC? 10.2152 + dll_entry=__cygwin_dll_entry@12 10.2153 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~ 10.2154 + case $host_os in 10.2155 + mingw*) 10.2156 + # mingw values 10.2157 + dll_entry=_DllMainCRTStartup@12 10.2158 + dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~ 10.2159 + ;; 10.2160 + esac 10.2161 + 10.2162 + # mingw and cygwin differ, and it's simplest to just exclude the union 10.2163 + # of the two symbol sets. 10.2164 + dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12 10.2165 + 10.2166 + # recent cygwin and mingw systems supply a stub DllMain which the user 10.2167 + # can override, but on older systems we have to supply one (in ltdll.c) 10.2168 + if test "x$lt_cv_need_dllmain" = "xyes"; then 10.2169 + ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext " 10.2170 + ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~ 10.2171 + test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~' 10.2172 + else 10.2173 + ltdll_obj= 10.2174 + ltdll_cmds= 10.2175 + fi 10.2176 + 10.2177 + # Extract the symbol export list from an `--export-all' def file, 10.2178 + # then regenerate the def file from the symbol export list, so that 10.2179 + # the compiled dll only exports the symbol export list. 10.2180 + # Be careful not to strip the DATA tag left be newer dlltools. 10.2181 + export_symbols_cmds="$ltdll_cmds"' 10.2182 + $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~ 10.2183 + sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols' 10.2184 + 10.2185 + # If the export-symbols file already is a .def file (1st line 10.2186 + # is EXPORTS), use it as is. 10.2187 + # If DATA tags from a recent dlltool are present, honour them! 10.2188 + archive_expsym_cmds='if test "x`head -1 $export_symbols`" = xEXPORTS; then 10.2189 + cp $export_symbols $output_objdir/$soname-def; 10.2190 + else 10.2191 + echo EXPORTS > $output_objdir/$soname-def; 10.2192 + _lt_hint=1; 10.2193 + cat $export_symbols | while read symbol; do 10.2194 + set dummy \$symbol; 10.2195 + case \[$]# in 10.2196 + 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;; 10.2197 + *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;; 10.2198 + esac; 10.2199 + _lt_hint=`expr 1 + \$_lt_hint`; 10.2200 + done; 10.2201 + fi~ 10.2202 + '"$ltdll_cmds"' 10.2203 + $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 10.2204 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~ 10.2205 + $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~ 10.2206 + $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~ 10.2207 + $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags' 10.2208 + ;; 10.2209 + 10.2210 + netbsd*) 10.2211 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10.2212 + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10.2213 + wlarc= 10.2214 + else 10.2215 + archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10.2216 + archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10.2217 + fi 10.2218 + ;; 10.2219 + 10.2220 + solaris* | sysv5*) 10.2221 + if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then 10.2222 + ld_shlibs=no 10.2223 + cat <<EOF 1>&2 10.2224 + 10.2225 +*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10.2226 +*** create shared libraries on Solaris systems. Therefore, libtool 10.2227 +*** is disabling shared libraries support. We urge you to upgrade GNU 10.2228 +*** binutils to release 2.9.1 or newer. Another option is to modify 10.2229 +*** your PATH or compiler configuration so that the native linker is 10.2230 +*** used, and then restart. 10.2231 + 10.2232 +EOF 10.2233 + elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 10.2234 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10.2235 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10.2236 + else 10.2237 + ld_shlibs=no 10.2238 + fi 10.2239 + ;; 10.2240 + 10.2241 + sunos4*) 10.2242 + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10.2243 + wlarc= 10.2244 + hardcode_direct=yes 10.2245 + hardcode_shlibpath_var=no 10.2246 + ;; 10.2247 + 10.2248 + *) 10.2249 + if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then 10.2250 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10.2251 + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 10.2252 + else 10.2253 + ld_shlibs=no 10.2254 + fi 10.2255 + ;; 10.2256 + esac 10.2257 + 10.2258 + if test "$ld_shlibs" = yes; then 10.2259 + runpath_var=LD_RUN_PATH 10.2260 + hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 10.2261 + export_dynamic_flag_spec='${wl}--export-dynamic' 10.2262 + case $host_os in 10.2263 + cygwin* | mingw* | pw32*) 10.2264 + # dlltool doesn't understand --whole-archive et. al. 10.2265 + whole_archive_flag_spec= 10.2266 + ;; 10.2267 + *) 10.2268 + # ancient GNU ld didn't support --whole-archive et. al. 10.2269 + if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then 10.2270 + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 10.2271 + else 10.2272 + whole_archive_flag_spec= 10.2273 + fi 10.2274 + ;; 10.2275 + esac 10.2276 + fi 10.2277 +else 10.2278 + # PORTME fill in a description of your system's linker (not GNU ld) 10.2279 + case $host_os in 10.2280 + aix3*) 10.2281 + allow_undefined_flag=unsupported 10.2282 + always_export_symbols=yes 10.2283 + archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 10.2284 + # Note: this linker hardcodes the directories in LIBPATH if there 10.2285 + # are no directories specified by -L. 10.2286 + hardcode_minus_L=yes 10.2287 + if test "$GCC" = yes && test -z "$link_static_flag"; then 10.2288 + # Neither direct hardcoding nor static linking is supported with a 10.2289 + # broken collect2. 10.2290 + hardcode_direct=unsupported 10.2291 + fi 10.2292 + ;; 10.2293 + 10.2294 + aix4* | aix5*) 10.2295 + if test "$host_cpu" = ia64; then 10.2296 + # On IA64, the linker does run time linking by default, so we don't 10.2297 + # have to do anything special. 10.2298 + aix_use_runtimelinking=no 10.2299 + exp_sym_flag='-Bexport' 10.2300 + no_entry_flag="" 10.2301 + else 10.2302 + aix_use_runtimelinking=no 10.2303 + 10.2304 + # Test if we are trying to use run time linking or normal 10.2305 + # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10.2306 + # need to do runtime linking. 10.2307 + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) 10.2308 + for ld_flag in $LDFLAGS; do 10.2309 + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 10.2310 + aix_use_runtimelinking=yes 10.2311 + break 10.2312 + fi 10.2313 + done 10.2314 + esac 10.2315 + 10.2316 + exp_sym_flag='-bexport' 10.2317 + no_entry_flag='-bnoentry' 10.2318 + fi 10.2319 + 10.2320 + # When large executables or shared objects are built, AIX ld can 10.2321 + # have problems creating the table of contents. If linking a library 10.2322 + # or program results in "error TOC overflow" add -mminimal-toc to 10.2323 + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10.2324 + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10.2325 + 10.2326 + hardcode_direct=yes 10.2327 + archive_cmds='' 10.2328 + hardcode_libdir_separator=':' 10.2329 + if test "$GCC" = yes; then 10.2330 + case $host_os in aix4.[[012]]|aix4.[[012]].*) 10.2331 + collect2name=`${CC} -print-prog-name=collect2` 10.2332 + if test -f "$collect2name" && \ 10.2333 + strings "$collect2name" | grep resolve_lib_name >/dev/null 10.2334 + then 10.2335 + # We have reworked collect2 10.2336 + hardcode_direct=yes 10.2337 + else 10.2338 + # We have old collect2 10.2339 + hardcode_direct=unsupported 10.2340 + # It fails to find uninstalled libraries when the uninstalled 10.2341 + # path is not listed in the libpath. Setting hardcode_minus_L 10.2342 + # to unsupported forces relinking 10.2343 + hardcode_minus_L=yes 10.2344 + hardcode_libdir_flag_spec='-L$libdir' 10.2345 + hardcode_libdir_separator= 10.2346 + fi 10.2347 + esac 10.2348 + 10.2349 + shared_flag='-shared' 10.2350 + else 10.2351 + # not using gcc 10.2352 + if test "$host_cpu" = ia64; then 10.2353 + shared_flag='${wl}-G' 10.2354 + else 10.2355 + if test "$aix_use_runtimelinking" = yes; then 10.2356 + shared_flag='${wl}-G' 10.2357 + else 10.2358 + shared_flag='${wl}-bM:SRE' 10.2359 + fi 10.2360 + fi 10.2361 + fi 10.2362 + 10.2363 + # It seems that -bexpall can do strange things, so it is better to 10.2364 + # generate a list of symbols to export. 10.2365 + always_export_symbols=yes 10.2366 + if test "$aix_use_runtimelinking" = yes; then 10.2367 + # Warning - without using the other runtime loading flags (-brtl), 10.2368 + # -berok will link without error, but may produce a broken library. 10.2369 + allow_undefined_flag='-berok' 10.2370 + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib' 10.2371 + archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 10.2372 + else 10.2373 + if test "$host_cpu" = ia64; then 10.2374 + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10.2375 + allow_undefined_flag="-z nodefs" 10.2376 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 10.2377 + else 10.2378 + hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib' 10.2379 + # Warning - without using the other run time loading flags, 10.2380 + # -berok will link without error, but may produce a broken library. 10.2381 + allow_undefined_flag='${wl}-berok' 10.2382 + # This is a bit strange, but is similar to how AIX traditionally builds 10.2383 + # it's shared libraries. 10.2384 + archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname' 10.2385 + fi 10.2386 + fi 10.2387 + ;; 10.2388 + 10.2389 + amigaos*) 10.2390 + archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' 10.2391 + hardcode_libdir_flag_spec='-L$libdir' 10.2392 + hardcode_minus_L=yes 10.2393 + # see comment about different semantics on the GNU ld section 10.2394 + ld_shlibs=no 10.2395 + ;; 10.2396 + 10.2397 + cygwin* | mingw* | pw32*) 10.2398 + # When not using gcc, we currently assume that we are using 10.2399 + # Microsoft Visual C++. 10.2400 + # hardcode_libdir_flag_spec is actually meaningless, as there is 10.2401 + # no search path for DLLs. 10.2402 + hardcode_libdir_flag_spec=' ' 10.2403 + allow_undefined_flag=unsupported 10.2404 + # Tell ltmain to make .lib files, not .a files. 10.2405 + libext=lib 10.2406 + # FIXME: Setting linknames here is a bad hack. 10.2407 + archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 10.2408 + # The linker will automatically build a .lib file if we build a DLL. 10.2409 + old_archive_from_new_cmds='true' 10.2410 + # FIXME: Should let the user specify the lib program. 10.2411 + old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 10.2412 + fix_srcfile_path='`cygpath -w "$srcfile"`' 10.2413 + ;; 10.2414 + 10.2415 + darwin* | rhapsody*) 10.2416 + case "$host_os" in 10.2417 + rhapsody* | darwin1.[[012]]) 10.2418 + allow_undefined_flag='-undefined suppress' 10.2419 + ;; 10.2420 + *) # Darwin 1.3 on 10.2421 + allow_undefined_flag='-flat_namespace -undefined suppress' 10.2422 + ;; 10.2423 + esac 10.2424 + # FIXME: Relying on posixy $() will cause problems for 10.2425 + # cross-compilation, but unfortunately the echo tests do not 10.2426 + # yet detect zsh echo's removal of \ escapes. 10.2427 + archive_cmds='$nonopt $(test x$module = xyes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib $libobjs $deplibs$linker_flags -install_name $rpath/$soname $verstring' 10.2428 + # We need to add '_' to the symbols in $export_symbols first 10.2429 + #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols' 10.2430 + hardcode_direct=yes 10.2431 + hardcode_shlibpath_var=no 10.2432 + whole_archive_flag_spec='-all_load $convenience' 10.2433 + ;; 10.2434 + 10.2435 + freebsd1*) 10.2436 + ld_shlibs=no 10.2437 + ;; 10.2438 + 10.2439 + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10.2440 + # support. Future versions do this automatically, but an explicit c++rt0.o 10.2441 + # does not break anything, and helps significantly (at the cost of a little 10.2442 + # extra space). 10.2443 + freebsd2.2*) 10.2444 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10.2445 + hardcode_libdir_flag_spec='-R$libdir' 10.2446 + hardcode_direct=yes 10.2447 + hardcode_shlibpath_var=no 10.2448 + ;; 10.2449 + 10.2450 + # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10.2451 + freebsd2*) 10.2452 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10.2453 + hardcode_direct=yes 10.2454 + hardcode_minus_L=yes 10.2455 + hardcode_shlibpath_var=no 10.2456 + ;; 10.2457 + 10.2458 + # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10.2459 + freebsd*) 10.2460 + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10.2461 + hardcode_libdir_flag_spec='-R$libdir' 10.2462 + hardcode_direct=yes 10.2463 + hardcode_shlibpath_var=no 10.2464 + ;; 10.2465 + 10.2466 + hpux9* | hpux10* | hpux11*) 10.2467 + case $host_os in 10.2468 + hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;; 10.2469 + *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;; 10.2470 + esac 10.2471 + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10.2472 + hardcode_libdir_separator=: 10.2473 + hardcode_direct=yes 10.2474 + hardcode_minus_L=yes # Not in the search PATH, but as the default 10.2475 + # location of the library. 10.2476 + export_dynamic_flag_spec='${wl}-E' 10.2477 + ;; 10.2478 + 10.2479 + irix5* | irix6*) 10.2480 + if test "$GCC" = yes; then 10.2481 + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10.2482 + else 10.2483 + archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10.2484 + fi 10.2485 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10.2486 + hardcode_libdir_separator=: 10.2487 + link_all_deplibs=yes 10.2488 + ;; 10.2489 + 10.2490 + netbsd*) 10.2491 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10.2492 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10.2493 + else 10.2494 + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10.2495 + fi 10.2496 + hardcode_libdir_flag_spec='-R$libdir' 10.2497 + hardcode_direct=yes 10.2498 + hardcode_shlibpath_var=no 10.2499 + ;; 10.2500 + 10.2501 + newsos6) 10.2502 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2503 + hardcode_direct=yes 10.2504 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10.2505 + hardcode_libdir_separator=: 10.2506 + hardcode_shlibpath_var=no 10.2507 + ;; 10.2508 + 10.2509 + openbsd*) 10.2510 + hardcode_direct=yes 10.2511 + hardcode_shlibpath_var=no 10.2512 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10.2513 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 10.2514 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10.2515 + export_dynamic_flag_spec='${wl}-E' 10.2516 + else 10.2517 + case "$host_os" in 10.2518 + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) 10.2519 + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10.2520 + hardcode_libdir_flag_spec='-R$libdir' 10.2521 + ;; 10.2522 + *) 10.2523 + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $linker_flags' 10.2524 + hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10.2525 + ;; 10.2526 + esac 10.2527 + fi 10.2528 + ;; 10.2529 + 10.2530 + os2*) 10.2531 + hardcode_libdir_flag_spec='-L$libdir' 10.2532 + hardcode_minus_L=yes 10.2533 + allow_undefined_flag=unsupported 10.2534 + archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' 10.2535 + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10.2536 + ;; 10.2537 + 10.2538 + osf3*) 10.2539 + if test "$GCC" = yes; then 10.2540 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10.2541 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10.2542 + else 10.2543 + allow_undefined_flag=' -expect_unresolved \*' 10.2544 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10.2545 + fi 10.2546 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10.2547 + hardcode_libdir_separator=: 10.2548 + ;; 10.2549 + 10.2550 + osf4* | osf5*) # as osf3* with the addition of -msym flag 10.2551 + if test "$GCC" = yes; then 10.2552 + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10.2553 + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 10.2554 + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10.2555 + else 10.2556 + allow_undefined_flag=' -expect_unresolved \*' 10.2557 + archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 10.2558 + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 10.2559 + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 10.2560 + 10.2561 + #Both c and cxx compiler support -rpath directly 10.2562 + hardcode_libdir_flag_spec='-rpath $libdir' 10.2563 + fi 10.2564 + hardcode_libdir_separator=: 10.2565 + ;; 10.2566 + 10.2567 + sco3.2v5*) 10.2568 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2569 + hardcode_shlibpath_var=no 10.2570 + runpath_var=LD_RUN_PATH 10.2571 + hardcode_runpath_var=yes 10.2572 + export_dynamic_flag_spec='${wl}-Bexport' 10.2573 + ;; 10.2574 + 10.2575 + solaris*) 10.2576 + # gcc --version < 3.0 without binutils cannot create self contained 10.2577 + # shared libraries reliably, requiring libgcc.a to resolve some of 10.2578 + # the object symbols generated in some cases. Libraries that use 10.2579 + # assert need libgcc.a to resolve __eprintf, for example. Linking 10.2580 + # a copy of libgcc.a into every shared library to guarantee resolving 10.2581 + # such symbols causes other problems: According to Tim Van Holder 10.2582 + # <tim.van.holder@pandora.be>, C++ libraries end up with a separate 10.2583 + # (to the application) exception stack for one thing. 10.2584 + no_undefined_flag=' -z defs' 10.2585 + if test "$GCC" = yes; then 10.2586 + case `$CC --version 2>/dev/null` in 10.2587 + [[12]].*) 10.2588 + cat <<EOF 1>&2 10.2589 + 10.2590 +*** Warning: Releases of GCC earlier than version 3.0 cannot reliably 10.2591 +*** create self contained shared libraries on Solaris systems, without 10.2592 +*** introducing a dependency on libgcc.a. Therefore, libtool is disabling 10.2593 +*** -no-undefined support, which will at least allow you to build shared 10.2594 +*** libraries. However, you may find that when you link such libraries 10.2595 +*** into an application without using GCC, you have to manually add 10.2596 +*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to 10.2597 +*** upgrade to a newer version of GCC. Another option is to rebuild your 10.2598 +*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer. 10.2599 + 10.2600 +EOF 10.2601 + no_undefined_flag= 10.2602 + ;; 10.2603 + esac 10.2604 + fi 10.2605 + # $CC -shared without GNU ld will not create a library from C++ 10.2606 + # object files and a static libstdc++, better avoid it by now 10.2607 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2608 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10.2609 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10.2610 + hardcode_libdir_flag_spec='-R$libdir' 10.2611 + hardcode_shlibpath_var=no 10.2612 + case $host_os in 10.2613 + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; 10.2614 + *) # Supported since Solaris 2.6 (maybe 2.5.1?) 10.2615 + whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 10.2616 + esac 10.2617 + link_all_deplibs=yes 10.2618 + ;; 10.2619 + 10.2620 + sunos4*) 10.2621 + if test "x$host_vendor" = xsequent; then 10.2622 + # Use $CC to link under sequent, because it throws in some extra .o 10.2623 + # files that make .init and .fini sections work. 10.2624 + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10.2625 + else 10.2626 + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10.2627 + fi 10.2628 + hardcode_libdir_flag_spec='-L$libdir' 10.2629 + hardcode_direct=yes 10.2630 + hardcode_minus_L=yes 10.2631 + hardcode_shlibpath_var=no 10.2632 + ;; 10.2633 + 10.2634 + sysv4) 10.2635 + if test "x$host_vendor" = xsno; then 10.2636 + archive_cmds='$LD -G -Bsymbolic -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2637 + hardcode_direct=yes # is this really true??? 10.2638 + else 10.2639 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2640 + hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10.2641 + fi 10.2642 + runpath_var='LD_RUN_PATH' 10.2643 + hardcode_shlibpath_var=no 10.2644 + ;; 10.2645 + 10.2646 + sysv4.3*) 10.2647 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2648 + hardcode_shlibpath_var=no 10.2649 + export_dynamic_flag_spec='-Bexport' 10.2650 + ;; 10.2651 + 10.2652 + sysv5*) 10.2653 + no_undefined_flag=' -z text' 10.2654 + # $CC -shared without GNU ld will not create a library from C++ 10.2655 + # object files and a static libstdc++, better avoid it by now 10.2656 + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2657 + archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10.2658 + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 10.2659 + hardcode_libdir_flag_spec= 10.2660 + hardcode_shlibpath_var=no 10.2661 + runpath_var='LD_RUN_PATH' 10.2662 + ;; 10.2663 + 10.2664 + uts4*) 10.2665 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2666 + hardcode_libdir_flag_spec='-L$libdir' 10.2667 + hardcode_shlibpath_var=no 10.2668 + ;; 10.2669 + 10.2670 + dgux*) 10.2671 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2672 + hardcode_libdir_flag_spec='-L$libdir' 10.2673 + hardcode_shlibpath_var=no 10.2674 + ;; 10.2675 + 10.2676 + sysv4*MP*) 10.2677 + if test -d /usr/nec; then 10.2678 + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10.2679 + hardcode_shlibpath_var=no 10.2680 + runpath_var=LD_RUN_PATH 10.2681 + hardcode_runpath_var=yes 10.2682 + ld_shlibs=yes 10.2683 + fi 10.2684 + ;; 10.2685 + 10.2686 + sysv4.2uw2*) 10.2687 + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10.2688 + hardcode_direct=yes 10.2689 + hardcode_minus_L=no 10.2690 + hardcode_shlibpath_var=no 10.2691 + hardcode_runpath_var=yes 10.2692 + runpath_var=LD_RUN_PATH 10.2693 + ;; 10.2694 + 10.2695 + sysv5uw7* | unixware7*) 10.2696 + no_undefined_flag='${wl}-z ${wl}text' 10.2697 + if test "$GCC" = yes; then 10.2698 + archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10.2699 + else 10.2700 + archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10.2701 + fi 10.2702 + runpath_var='LD_RUN_PATH' 10.2703 + hardcode_shlibpath_var=no 10.2704 + ;; 10.2705 + 10.2706 + *) 10.2707 + ld_shlibs=no 10.2708 + ;; 10.2709 + esac 10.2710 +fi 10.2711 +AC_MSG_RESULT([$ld_shlibs]) 10.2712 +test "$ld_shlibs" = no && can_build_shared=no 10.2713 + 10.2714 +# Check hardcoding attributes. 10.2715 +AC_MSG_CHECKING([how to hardcode library paths into programs]) 10.2716 +hardcode_action= 10.2717 +if test -n "$hardcode_libdir_flag_spec" || \ 10.2718 + test -n "$runpath_var"; then 10.2719 + 10.2720 + # We can hardcode non-existant directories. 10.2721 + if test "$hardcode_direct" != no && 10.2722 + # If the only mechanism to avoid hardcoding is shlibpath_var, we 10.2723 + # have to relink, otherwise we might link with an installed library 10.2724 + # when we should be linking with a yet-to-be-installed one 10.2725 + ## test "$hardcode_shlibpath_var" != no && 10.2726 + test "$hardcode_minus_L" != no; then 10.2727 + # Linking always hardcodes the temporary library directory. 10.2728 + hardcode_action=relink 10.2729 + else 10.2730 + # We can link without hardcoding, and we can hardcode nonexisting dirs. 10.2731 + hardcode_action=immediate 10.2732 + fi 10.2733 +else 10.2734 + # We cannot hardcode anything, or else we can only hardcode existing 10.2735 + # directories. 10.2736 + hardcode_action=unsupported 10.2737 +fi 10.2738 +AC_MSG_RESULT([$hardcode_action]) 10.2739 + 10.2740 +striplib= 10.2741 +old_striplib= 10.2742 +AC_MSG_CHECKING([whether stripping libraries is possible]) 10.2743 +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 10.2744 + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 10.2745 + test -z "$striplib" && striplib="$STRIP --strip-unneeded" 10.2746 + AC_MSG_RESULT([yes]) 10.2747 +else 10.2748 + AC_MSG_RESULT([no]) 10.2749 +fi 10.2750 + 10.2751 +reload_cmds='$LD$reload_flag -o $output$reload_objs' 10.2752 +test -z "$deplibs_check_method" && deplibs_check_method=unknown 10.2753 + 10.2754 +# PORTME Fill in your ld.so characteristics 10.2755 +AC_MSG_CHECKING([dynamic linker characteristics]) 10.2756 +library_names_spec= 10.2757 +libname_spec='lib$name' 10.2758 +soname_spec= 10.2759 +postinstall_cmds= 10.2760 +postuninstall_cmds= 10.2761 +finish_cmds= 10.2762 +finish_eval= 10.2763 +shlibpath_var= 10.2764 +shlibpath_overrides_runpath=unknown 10.2765 +version_type=none 10.2766 +dynamic_linker="$host_os ld.so" 10.2767 +sys_lib_dlsearch_path_spec="/lib /usr/lib" 10.2768 +sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10.2769 + 10.2770 +case $host_os in 10.2771 +aix3*) 10.2772 + version_type=linux 10.2773 + library_names_spec='${libname}${release}.so$versuffix $libname.a' 10.2774 + shlibpath_var=LIBPATH 10.2775 + 10.2776 + # AIX has no versioning support, so we append a major version to the name. 10.2777 + soname_spec='${libname}${release}.so$major' 10.2778 + ;; 10.2779 + 10.2780 +aix4* | aix5*) 10.2781 + version_type=linux 10.2782 + if test "$host_cpu" = ia64; then 10.2783 + # AIX 5 supports IA64 10.2784 + library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so' 10.2785 + shlibpath_var=LD_LIBRARY_PATH 10.2786 + else 10.2787 + # With GCC up to 2.95.x, collect2 would create an import file 10.2788 + # for dependence libraries. The import file would start with 10.2789 + # the line `#! .'. This would cause the generated library to 10.2790 + # depend on `.', always an invalid library. This was fixed in 10.2791 + # development snapshots of GCC prior to 3.0. 10.2792 + case $host_os in 10.2793 + aix4 | aix4.[[01]] | aix4.[[01]].*) 10.2794 + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10.2795 + echo ' yes ' 10.2796 + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10.2797 + : 10.2798 + else 10.2799 + can_build_shared=no 10.2800 + fi 10.2801 + ;; 10.2802 + esac 10.2803 + # AIX (on Power*) has no versioning support, so currently we can 10.2804 + # not hardcode correct soname into executable. Probably we can 10.2805 + # add versioning support to collect2, so additional links can 10.2806 + # be useful in future. 10.2807 + if test "$aix_use_runtimelinking" = yes; then 10.2808 + # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10.2809 + # instead of lib<name>.a to let people know that these are not 10.2810 + # typical AIX shared libraries. 10.2811 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 10.2812 + else 10.2813 + # We preserve .a as extension for shared libraries through AIX4.2 10.2814 + # and later when we are not doing run time linking. 10.2815 + library_names_spec='${libname}${release}.a $libname.a' 10.2816 + soname_spec='${libname}${release}.so$major' 10.2817 + fi 10.2818 + shlibpath_var=LIBPATH 10.2819 + fi 10.2820 + ;; 10.2821 + 10.2822 +amigaos*) 10.2823 + library_names_spec='$libname.ixlibrary $libname.a' 10.2824 + # Create ${libname}_ixlibrary.a entries in /sys/libs. 10.2825 + finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "(cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a)"; (cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a) || exit 1; done' 10.2826 + ;; 10.2827 + 10.2828 +beos*) 10.2829 + library_names_spec='${libname}.so' 10.2830 + dynamic_linker="$host_os ld.so" 10.2831 + shlibpath_var=LIBRARY_PATH 10.2832 + ;; 10.2833 + 10.2834 +bsdi4*) 10.2835 + version_type=linux 10.2836 + need_version=no 10.2837 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 10.2838 + soname_spec='${libname}${release}.so$major' 10.2839 + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10.2840 + shlibpath_var=LD_LIBRARY_PATH 10.2841 + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10.2842 + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10.2843 + export_dynamic_flag_spec=-rdynamic 10.2844 + # the default ld.so.conf also contains /usr/contrib/lib and 10.2845 + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10.2846 + # libtool to hard-code these into programs 10.2847 + ;; 10.2848 + 10.2849 +cygwin* | mingw* | pw32*) 10.2850 + version_type=windows 10.2851 + need_version=no 10.2852 + need_lib_prefix=no 10.2853 + case $GCC,$host_os in 10.2854 + yes,cygwin*) 10.2855 + library_names_spec='$libname.dll.a' 10.2856 + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' 10.2857 + postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~ 10.2858 + dldir=$destdir/`dirname \$dlpath`~ 10.2859 + test -d \$dldir || mkdir -p \$dldir~ 10.2860 + $install_prog .libs/$dlname \$dldir/$dlname' 10.2861 + postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10.2862 + dlpath=$dir/\$dldll~ 10.2863 + $rm \$dlpath' 10.2864 + ;; 10.2865 + yes,mingw*) 10.2866 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll' 10.2867 + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g"` 10.2868 + ;; 10.2869 + yes,pw32*) 10.2870 + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll' 10.2871 + ;; 10.2872 + *) 10.2873 + library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib' 10.2874 + ;; 10.2875 + esac 10.2876 + dynamic_linker='Win32 ld.exe' 10.2877 + # FIXME: first we should search . and the directory the executable is in 10.2878 + shlibpath_var=PATH 10.2879 + ;; 10.2880 + 10.2881 +darwin* | rhapsody*) 10.2882 + dynamic_linker="$host_os dyld" 10.2883 + version_type=darwin 10.2884 + need_lib_prefix=no 10.2885 + need_version=no 10.2886 + # FIXME: Relying on posixy $() will cause problems for 10.2887 + # cross-compilation, but unfortunately the echo tests do not 10.2888 + # yet detect zsh echo's removal of \ escapes. 10.2889 + library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)' 10.2890 + soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)' 10.2891 + shlibpath_overrides_runpath=yes 10.2892 + shlibpath_var=DYLD_LIBRARY_PATH 10.2893 + ;; 10.2894 + 10.2895 +freebsd1*) 10.2896 + dynamic_linker=no 10.2897 + ;; 10.2898 + 10.2899 +freebsd*) 10.2900 + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 10.2901 + version_type=freebsd-$objformat 10.2902 + case $version_type in 10.2903 + freebsd-elf*) 10.2904 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 10.2905 + need_version=no 10.2906 + need_lib_prefix=no 10.2907 + ;; 10.2908 + freebsd-*) 10.2909 + library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix' 10.2910 + need_version=yes 10.2911 + ;; 10.2912 + esac 10.2913 + shlibpath_var=LD_LIBRARY_PATH 10.2914 + case $host_os in 10.2915 + freebsd2*) 10.2916 + shlibpath_overrides_runpath=yes 10.2917 + ;; 10.2918 + *) 10.2919 + shlibpath_overrides_runpath=no 10.2920 + hardcode_into_libs=yes 10.2921 + ;; 10.2922 + esac 10.2923 + ;; 10.2924 + 10.2925 +gnu*) 10.2926 + version_type=linux 10.2927 + need_lib_prefix=no 10.2928 + need_version=no 10.2929 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so' 10.2930 + soname_spec='${libname}${release}.so$major' 10.2931 + shlibpath_var=LD_LIBRARY_PATH 10.2932 + hardcode_into_libs=yes 10.2933 + ;; 10.2934 + 10.2935 +hpux9* | hpux10* | hpux11*) 10.2936 + # Give a soname corresponding to the major version so that dld.sl refuses to 10.2937 + # link against other versions. 10.2938 + dynamic_linker="$host_os dld.sl" 10.2939 + version_type=sunos 10.2940 + need_lib_prefix=no 10.2941 + need_version=no 10.2942 + shlibpath_var=SHLIB_PATH 10.2943 + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10.2944 + library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl' 10.2945 + soname_spec='${libname}${release}.sl$major' 10.2946 + # HP-UX runs *really* slowly unless shared libraries are mode 555. 10.2947 + postinstall_cmds='chmod 555 $lib' 10.2948 + ;; 10.2949 + 10.2950 +irix5* | irix6*) 10.2951 + version_type=irix 10.2952 + need_lib_prefix=no 10.2953 + need_version=no 10.2954 + soname_spec='${libname}${release}.so$major' 10.2955 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so' 10.2956 + case $host_os in 10.2957 + irix5*) 10.2958 + libsuff= shlibsuff= 10.2959 + ;; 10.2960 + *) 10.2961 + case $LD in # libtool.m4 will add one of these switches to LD 10.2962 + *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;; 10.2963 + *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;; 10.2964 + *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;; 10.2965 + *) libsuff= shlibsuff= libmagic=never-match;; 10.2966 + esac 10.2967 + ;; 10.2968 + esac 10.2969 + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10.2970 + shlibpath_overrides_runpath=no 10.2971 + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10.2972 + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10.2973 + ;; 10.2974 + 10.2975 +# No shared lib support for Linux oldld, aout, or coff. 10.2976 +linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*) 10.2977 + dynamic_linker=no 10.2978 + ;; 10.2979 + 10.2980 +# This must be Linux ELF. 10.2981 +linux-gnu*) 10.2982 + version_type=linux 10.2983 + need_lib_prefix=no 10.2984 + need_version=no 10.2985 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 10.2986 + soname_spec='${libname}${release}.so$major' 10.2987 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10.2988 + shlibpath_var=LD_LIBRARY_PATH 10.2989 + shlibpath_overrides_runpath=no 10.2990 + # This implies no fast_install, which is unacceptable. 10.2991 + # Some rework will be needed to allow for fast_install 10.2992 + # before this can be enabled. 10.2993 + hardcode_into_libs=yes 10.2994 + 10.2995 + # We used to test for /lib/ld.so.1 and disable shared libraries on 10.2996 + # powerpc, because MkLinux only supported shared libraries with the 10.2997 + # GNU dynamic linker. Since this was broken with cross compilers, 10.2998 + # most powerpc-linux boxes support dynamic linking these days and 10.2999 + # people can always --disable-shared, the test was removed, and we 10.3000 + # assume the GNU/Linux dynamic linker is in use. 10.3001 + dynamic_linker='GNU/Linux ld.so' 10.3002 + ;; 10.3003 + 10.3004 +netbsd*) 10.3005 + version_type=sunos 10.3006 + need_lib_prefix=no 10.3007 + need_version=no 10.3008 + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 10.3009 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 10.3010 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10.3011 + dynamic_linker='NetBSD (a.out) ld.so' 10.3012 + else 10.3013 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so' 10.3014 + soname_spec='${libname}${release}.so$major' 10.3015 + dynamic_linker='NetBSD ld.elf_so' 10.3016 + fi 10.3017 + shlibpath_var=LD_LIBRARY_PATH 10.3018 + shlibpath_overrides_runpath=yes 10.3019 + hardcode_into_libs=yes 10.3020 + ;; 10.3021 + 10.3022 +newsos6) 10.3023 + version_type=linux 10.3024 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 10.3025 + shlibpath_var=LD_LIBRARY_PATH 10.3026 + shlibpath_overrides_runpath=yes 10.3027 + ;; 10.3028 + 10.3029 +openbsd*) 10.3030 + version_type=sunos 10.3031 + need_lib_prefix=no 10.3032 + need_version=no 10.3033 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10.3034 + case "$host_os" in 10.3035 + openbsd2.[[89]] | openbsd2.[[89]].*) 10.3036 + shlibpath_overrides_runpath=no 10.3037 + ;; 10.3038 + *) 10.3039 + shlibpath_overrides_runpath=yes 10.3040 + ;; 10.3041 + esac 10.3042 + else 10.3043 + shlibpath_overrides_runpath=yes 10.3044 + fi 10.3045 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 10.3046 + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10.3047 + shlibpath_var=LD_LIBRARY_PATH 10.3048 + ;; 10.3049 + 10.3050 +os2*) 10.3051 + libname_spec='$name' 10.3052 + need_lib_prefix=no 10.3053 + library_names_spec='$libname.dll $libname.a' 10.3054 + dynamic_linker='OS/2 ld.exe' 10.3055 + shlibpath_var=LIBPATH 10.3056 + ;; 10.3057 + 10.3058 +osf3* | osf4* | osf5*) 10.3059 + version_type=osf 10.3060 + need_version=no 10.3061 + soname_spec='${libname}${release}.so' 10.3062 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so' 10.3063 + shlibpath_var=LD_LIBRARY_PATH 10.3064 + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10.3065 + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10.3066 + ;; 10.3067 + 10.3068 +sco3.2v5*) 10.3069 + version_type=osf 10.3070 + soname_spec='${libname}${release}.so$major' 10.3071 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 10.3072 + shlibpath_var=LD_LIBRARY_PATH 10.3073 + ;; 10.3074 + 10.3075 +solaris*) 10.3076 + version_type=linux 10.3077 + need_lib_prefix=no 10.3078 + need_version=no 10.3079 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 10.3080 + soname_spec='${libname}${release}.so$major' 10.3081 + shlibpath_var=LD_LIBRARY_PATH 10.3082 + shlibpath_overrides_runpath=yes 10.3083 + hardcode_into_libs=yes 10.3084 + # ldd complains unless libraries are executable 10.3085 + postinstall_cmds='chmod +x $lib' 10.3086 + ;; 10.3087 + 10.3088 +sunos4*) 10.3089 + version_type=sunos 10.3090 + library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix' 10.3091 + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10.3092 + shlibpath_var=LD_LIBRARY_PATH 10.3093 + shlibpath_overrides_runpath=yes 10.3094 + if test "$with_gnu_ld" = yes; then 10.3095 + need_lib_prefix=no 10.3096 + fi 10.3097 + need_version=yes 10.3098 + ;; 10.3099 + 10.3100 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10.3101 + version_type=linux 10.3102 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 10.3103 + soname_spec='${libname}${release}.so$major' 10.3104 + shlibpath_var=LD_LIBRARY_PATH 10.3105 + case $host_vendor in 10.3106 + sni) 10.3107 + shlibpath_overrides_runpath=no 10.3108 + ;; 10.3109 + motorola) 10.3110 + need_lib_prefix=no 10.3111 + need_version=no 10.3112 + shlibpath_overrides_runpath=no 10.3113 + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10.3114 + ;; 10.3115 + esac 10.3116 + ;; 10.3117 + 10.3118 +uts4*) 10.3119 + version_type=linux 10.3120 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 10.3121 + soname_spec='${libname}${release}.so$major' 10.3122 + shlibpath_var=LD_LIBRARY_PATH 10.3123 + ;; 10.3124 + 10.3125 +dgux*) 10.3126 + version_type=linux 10.3127 + need_lib_prefix=no 10.3128 + need_version=no 10.3129 + library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so' 10.3130 + soname_spec='${libname}${release}.so$major' 10.3131 + shlibpath_var=LD_LIBRARY_PATH 10.3132 + ;; 10.3133 + 10.3134 +sysv4*MP*) 10.3135 + if test -d /usr/nec ;then 10.3136 + version_type=linux 10.3137 + library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so' 10.3138 + soname_spec='$libname.so.$major' 10.3139 + shlibpath_var=LD_LIBRARY_PATH 10.3140 + fi 10.3141 + ;; 10.3142 + 10.3143 +*) 10.3144 + dynamic_linker=no 10.3145 + ;; 10.3146 +esac 10.3147 +AC_MSG_RESULT([$dynamic_linker]) 10.3148 +test "$dynamic_linker" = no && can_build_shared=no 10.3149 + 10.3150 +# Report the final consequences. 10.3151 +AC_MSG_CHECKING([if libtool supports shared libraries]) 10.3152 +AC_MSG_RESULT([$can_build_shared]) 10.3153 + 10.3154 +AC_MSG_CHECKING([whether to build shared libraries]) 10.3155 +test "$can_build_shared" = "no" && enable_shared=no 10.3156 + 10.3157 +# On AIX, shared libraries and static libraries use the same namespace, and 10.3158 +# are all built from PIC. 10.3159 +case "$host_os" in 10.3160 +aix3*) 10.3161 + test "$enable_shared" = yes && enable_static=no 10.3162 + if test -n "$RANLIB"; then 10.3163 + archive_cmds="$archive_cmds~\$RANLIB \$lib" 10.3164 + postinstall_cmds='$RANLIB $lib' 10.3165 + fi 10.3166 + ;; 10.3167 + 10.3168 +aix4*) 10.3169 + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10.3170 + test "$enable_shared" = yes && enable_static=no 10.3171 + fi 10.3172 + ;; 10.3173 +esac 10.3174 +AC_MSG_RESULT([$enable_shared]) 10.3175 + 10.3176 +AC_MSG_CHECKING([whether to build static libraries]) 10.3177 +# Make sure either enable_shared or enable_static is yes. 10.3178 +test "$enable_shared" = yes || enable_static=yes 10.3179 +AC_MSG_RESULT([$enable_static]) 10.3180 + 10.3181 +if test "$hardcode_action" = relink; then 10.3182 + # Fast installation is not supported 10.3183 + enable_fast_install=no 10.3184 +elif test "$shlibpath_overrides_runpath" = yes || 10.3185 + test "$enable_shared" = no; then 10.3186 + # Fast installation is not necessary 10.3187 + enable_fast_install=needless 10.3188 +fi 10.3189 + 10.3190 +variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10.3191 +if test "$GCC" = yes; then 10.3192 + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10.3193 +fi 10.3194 + 10.3195 +AC_LIBTOOL_DLOPEN_SELF 10.3196 + 10.3197 +if test "$enable_shared" = yes && test "$GCC" = yes; then 10.3198 + case $archive_cmds in 10.3199 + *'~'*) 10.3200 + # FIXME: we may have to deal with multi-command sequences. 10.3201 + ;; 10.3202 + '$CC '*) 10.3203 + # Test whether the compiler implicitly links with -lc since on some 10.3204 + # systems, -lgcc has to come before -lc. If gcc already passes -lc 10.3205 + # to ld, don't add -lc before -lgcc. 10.3206 + AC_MSG_CHECKING([whether -lc should be explicitly linked in]) 10.3207 + AC_CACHE_VAL([lt_cv_archive_cmds_need_lc], 10.3208 + [$rm conftest* 10.3209 + echo 'static int dummy;' > conftest.$ac_ext 10.3210 + 10.3211 + if AC_TRY_EVAL(ac_compile); then 10.3212 + soname=conftest 10.3213 + lib=conftest 10.3214 + libobjs=conftest.$ac_objext 10.3215 + deplibs= 10.3216 + wl=$lt_cv_prog_cc_wl 10.3217 + compiler_flags=-v 10.3218 + linker_flags=-v 10.3219 + verstring= 10.3220 + output_objdir=. 10.3221 + libname=conftest 10.3222 + save_allow_undefined_flag=$allow_undefined_flag 10.3223 + allow_undefined_flag= 10.3224 + if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 10.3225 + then 10.3226 + lt_cv_archive_cmds_need_lc=no 10.3227 + else 10.3228 + lt_cv_archive_cmds_need_lc=yes 10.3229 + fi 10.3230 + allow_undefined_flag=$save_allow_undefined_flag 10.3231 + else 10.3232 + cat conftest.err 1>&5 10.3233 + fi]) 10.3234 + AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc]) 10.3235 + ;; 10.3236 + esac 10.3237 +fi 10.3238 +need_lc=${lt_cv_archive_cmds_need_lc-yes} 10.3239 + 10.3240 +# The second clause should only fire when bootstrapping the 10.3241 +# libtool distribution, otherwise you forgot to ship ltmain.sh 10.3242 +# with your package, and you will get complaints that there are 10.3243 +# no rules to generate ltmain.sh. 10.3244 +if test -f "$ltmain"; then 10.3245 + : 10.3246 +else 10.3247 + # If there is no Makefile yet, we rely on a make rule to execute 10.3248 + # `config.status --recheck' to rerun these tests and create the 10.3249 + # libtool script then. 10.3250 + test -f Makefile && make "$ltmain" 10.3251 +fi 10.3252 + 10.3253 +if test -f "$ltmain"; then 10.3254 + trap "$rm \"${ofile}T\"; exit 1" 1 2 15 10.3255 + $rm -f "${ofile}T" 10.3256 + 10.3257 + echo creating $ofile 10.3258 + 10.3259 + # Now quote all the things that may contain metacharacters while being 10.3260 + # careful not to overquote the AC_SUBSTed values. We take copies of the 10.3261 + # variables and quote the copies for generation of the libtool script. 10.3262 + for var in echo old_CC old_CFLAGS \ 10.3263 + AR AR_FLAGS CC LD LN_S NM SHELL \ 10.3264 + reload_flag reload_cmds wl \ 10.3265 + pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \ 10.3266 + thread_safe_flag_spec whole_archive_flag_spec libname_spec \ 10.3267 + library_names_spec soname_spec \ 10.3268 + RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \ 10.3269 + old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \ 10.3270 + postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \ 10.3271 + old_striplib striplib file_magic_cmd export_symbols_cmds \ 10.3272 + deplibs_check_method allow_undefined_flag no_undefined_flag \ 10.3273 + finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \ 10.3274 + global_symbol_to_c_name_address \ 10.3275 + hardcode_libdir_flag_spec hardcode_libdir_separator \ 10.3276 + sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 10.3277 + compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do 10.3278 + 10.3279 + case $var in 10.3280 + reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \ 10.3281 + old_postinstall_cmds | old_postuninstall_cmds | \ 10.3282 + export_symbols_cmds | archive_cmds | archive_expsym_cmds | \ 10.3283 + extract_expsyms_cmds | old_archive_from_expsyms_cmds | \ 10.3284 + postinstall_cmds | postuninstall_cmds | \ 10.3285 + finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 10.3286 + # Double-quote double-evaled strings. 10.3287 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 10.3288 + ;; 10.3289 + *) 10.3290 + eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 10.3291 + ;; 10.3292 + esac 10.3293 + done 10.3294 + 10.3295 + cat <<__EOF__ > "${ofile}T" 10.3296 +#! $SHELL 10.3297 + 10.3298 +# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 10.3299 +# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 10.3300 +# NOTE: Changes made to this file will be lost: look at ltmain.sh. 10.3301 +# 10.3302 +# Copyright (C) 1996-2000 Free Software Foundation, Inc. 10.3303 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 10.3304 +# 10.3305 +# This program is free software; you can redistribute it and/or modify 10.3306 +# it under the terms of the GNU General Public License as published by 10.3307 +# the Free Software Foundation; either version 2 of the License, or 10.3308 +# (at your option) any later version. 10.3309 +# 10.3310 +# This program is distributed in the hope that it will be useful, but 10.3311 +# WITHOUT ANY WARRANTY; without even the implied warranty of 10.3312 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 10.3313 +# General Public License for more details. 10.3314 +# 10.3315 +# You should have received a copy of the GNU General Public License 10.3316 +# along with this program; if not, write to the Free Software 10.3317 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 10.3318 +# 10.3319 +# As a special exception to the GNU General Public License, if you 10.3320 +# distribute this file as part of a program that contains a 10.3321 +# configuration script generated by Autoconf, you may include it under 10.3322 +# the same distribution terms that you use for the rest of that program. 10.3323 + 10.3324 +# Sed that helps us avoid accidentally triggering echo(1) options like -n. 10.3325 +Xsed="sed -e s/^X//" 10.3326 + 10.3327 +# The HP-UX ksh and POSIX shell print the target directory to stdout 10.3328 +# if CDPATH is set. 10.3329 +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 10.3330 + 10.3331 +# ### BEGIN LIBTOOL CONFIG 10.3332 + 10.3333 +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 10.3334 + 10.3335 +# Shell to use when invoking shell scripts. 10.3336 +SHELL=$lt_SHELL 10.3337 + 10.3338 +# Whether or not to build shared libraries. 10.3339 +build_libtool_libs=$enable_shared 10.3340 + 10.3341 +# Whether or not to build static libraries. 10.3342 +build_old_libs=$enable_static 10.3343 + 10.3344 +# Whether or not to add -lc for building shared libraries. 10.3345 +build_libtool_need_lc=$need_lc 10.3346 + 10.3347 +# Whether or not to optimize for fast installation. 10.3348 +fast_install=$enable_fast_install 10.3349 + 10.3350 +# The host system. 10.3351 +host_alias=$host_alias 10.3352 +host=$host 10.3353 + 10.3354 +# An echo program that does not interpret backslashes. 10.3355 +echo=$lt_echo 10.3356 + 10.3357 +# The archiver. 10.3358 +AR=$lt_AR 10.3359 +AR_FLAGS=$lt_AR_FLAGS 10.3360 + 10.3361 +# The default C compiler. 10.3362 +CC=$lt_CC 10.3363 + 10.3364 +# Is the compiler the GNU C compiler? 10.3365 +with_gcc=$GCC 10.3366 + 10.3367 +# The linker used to build libraries. 10.3368 +LD=$lt_LD 10.3369 + 10.3370 +# Whether we need hard or soft links. 10.3371 +LN_S=$lt_LN_S 10.3372 + 10.3373 +# A BSD-compatible nm program. 10.3374 +NM=$lt_NM 10.3375 + 10.3376 +# A symbol stripping program 10.3377 +STRIP=$STRIP 10.3378 + 10.3379 +# Used to examine libraries when file_magic_cmd begins "file" 10.3380 +MAGIC_CMD=$MAGIC_CMD 10.3381 + 10.3382 +# Used on cygwin: DLL creation program. 10.3383 +DLLTOOL="$DLLTOOL" 10.3384 + 10.3385 +# Used on cygwin: object dumper. 10.3386 +OBJDUMP="$OBJDUMP" 10.3387 + 10.3388 +# Used on cygwin: assembler. 10.3389 +AS="$AS" 10.3390 + 10.3391 +# The name of the directory that contains temporary libtool files. 10.3392 +objdir=$objdir 10.3393 + 10.3394 +# How to create reloadable object files. 10.3395 +reload_flag=$lt_reload_flag 10.3396 +reload_cmds=$lt_reload_cmds 10.3397 + 10.3398 +# How to pass a linker flag through the compiler. 10.3399 +wl=$lt_wl 10.3400 + 10.3401 +# Object file suffix (normally "o"). 10.3402 +objext="$ac_objext" 10.3403 + 10.3404 +# Old archive suffix (normally "a"). 10.3405 +libext="$libext" 10.3406 + 10.3407 +# Executable file suffix (normally ""). 10.3408 +exeext="$exeext" 10.3409 + 10.3410 +# Additional compiler flags for building library objects. 10.3411 +pic_flag=$lt_pic_flag 10.3412 +pic_mode=$pic_mode 10.3413 + 10.3414 +# Does compiler simultaneously support -c and -o options? 10.3415 +compiler_c_o=$lt_compiler_c_o 10.3416 + 10.3417 +# Can we write directly to a .lo ? 10.3418 +compiler_o_lo=$lt_compiler_o_lo 10.3419 + 10.3420 +# Must we lock files when doing compilation ? 10.3421 +need_locks=$lt_need_locks 10.3422 + 10.3423 +# Do we need the lib prefix for modules? 10.3424 +need_lib_prefix=$need_lib_prefix 10.3425 + 10.3426 +# Do we need a version for libraries? 10.3427 +need_version=$need_version 10.3428 + 10.3429 +# Whether dlopen is supported. 10.3430 +dlopen_support=$enable_dlopen 10.3431 + 10.3432 +# Whether dlopen of programs is supported. 10.3433 +dlopen_self=$enable_dlopen_self 10.3434 + 10.3435 +# Whether dlopen of statically linked programs is supported. 10.3436 +dlopen_self_static=$enable_dlopen_self_static 10.3437 + 10.3438 +# Compiler flag to prevent dynamic linking. 10.3439 +link_static_flag=$lt_link_static_flag 10.3440 + 10.3441 +# Compiler flag to turn off builtin functions. 10.3442 +no_builtin_flag=$lt_no_builtin_flag 10.3443 + 10.3444 +# Compiler flag to allow reflexive dlopens. 10.3445 +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 10.3446 + 10.3447 +# Compiler flag to generate shared objects directly from archives. 10.3448 +whole_archive_flag_spec=$lt_whole_archive_flag_spec 10.3449 + 10.3450 +# Compiler flag to generate thread-safe objects. 10.3451 +thread_safe_flag_spec=$lt_thread_safe_flag_spec 10.3452 + 10.3453 +# Library versioning type. 10.3454 +version_type=$version_type 10.3455 + 10.3456 +# Format of library name prefix. 10.3457 +libname_spec=$lt_libname_spec 10.3458 + 10.3459 +# List of archive names. First name is the real one, the rest are links. 10.3460 +# The last name is the one that the linker finds with -lNAME. 10.3461 +library_names_spec=$lt_library_names_spec 10.3462 + 10.3463 +# The coded name of the library, if different from the real name. 10.3464 +soname_spec=$lt_soname_spec 10.3465 + 10.3466 +# Commands used to build and install an old-style archive. 10.3467 +RANLIB=$lt_RANLIB 10.3468 +old_archive_cmds=$lt_old_archive_cmds 10.3469 +old_postinstall_cmds=$lt_old_postinstall_cmds 10.3470 +old_postuninstall_cmds=$lt_old_postuninstall_cmds 10.3471 + 10.3472 +# Create an old-style archive from a shared archive. 10.3473 +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 10.3474 + 10.3475 +# Create a temporary old-style archive to link instead of a shared archive. 10.3476 +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 10.3477 + 10.3478 +# Commands used to build and install a shared archive. 10.3479 +archive_cmds=$lt_archive_cmds 10.3480 +archive_expsym_cmds=$lt_archive_expsym_cmds 10.3481 +postinstall_cmds=$lt_postinstall_cmds 10.3482 +postuninstall_cmds=$lt_postuninstall_cmds 10.3483 + 10.3484 +# Commands to strip libraries. 10.3485 +old_striplib=$lt_old_striplib 10.3486 +striplib=$lt_striplib 10.3487 + 10.3488 +# Method to check whether dependent libraries are shared objects. 10.3489 +deplibs_check_method=$lt_deplibs_check_method 10.3490 + 10.3491 +# Command to use when deplibs_check_method == file_magic. 10.3492 +file_magic_cmd=$lt_file_magic_cmd 10.3493 + 10.3494 +# Flag that allows shared libraries with undefined symbols to be built. 10.3495 +allow_undefined_flag=$lt_allow_undefined_flag 10.3496 + 10.3497 +# Flag that forces no undefined symbols. 10.3498 +no_undefined_flag=$lt_no_undefined_flag 10.3499 + 10.3500 +# Commands used to finish a libtool library installation in a directory. 10.3501 +finish_cmds=$lt_finish_cmds 10.3502 + 10.3503 +# Same as above, but a single script fragment to be evaled but not shown. 10.3504 +finish_eval=$lt_finish_eval 10.3505 + 10.3506 +# Take the output of nm and produce a listing of raw symbols and C names. 10.3507 +global_symbol_pipe=$lt_global_symbol_pipe 10.3508 + 10.3509 +# Transform the output of nm in a proper C declaration 10.3510 +global_symbol_to_cdecl=$lt_global_symbol_to_cdecl 10.3511 + 10.3512 +# Transform the output of nm in a C name address pair 10.3513 +global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address 10.3514 + 10.3515 +# This is the shared library runtime path variable. 10.3516 +runpath_var=$runpath_var 10.3517 + 10.3518 +# This is the shared library path variable. 10.3519 +shlibpath_var=$shlibpath_var 10.3520 + 10.3521 +# Is shlibpath searched before the hard-coded library search path? 10.3522 +shlibpath_overrides_runpath=$shlibpath_overrides_runpath 10.3523 + 10.3524 +# How to hardcode a shared library path into an executable. 10.3525 +hardcode_action=$hardcode_action 10.3526 + 10.3527 +# Whether we should hardcode library paths into libraries. 10.3528 +hardcode_into_libs=$hardcode_into_libs 10.3529 + 10.3530 +# Flag to hardcode \$libdir into a binary during linking. 10.3531 +# This must work even if \$libdir does not exist. 10.3532 +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 10.3533 + 10.3534 +# Whether we need a single -rpath flag with a separated argument. 10.3535 +hardcode_libdir_separator=$lt_hardcode_libdir_separator 10.3536 + 10.3537 +# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the 10.3538 +# resulting binary. 10.3539 +hardcode_direct=$hardcode_direct 10.3540 + 10.3541 +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 10.3542 +# resulting binary. 10.3543 +hardcode_minus_L=$hardcode_minus_L 10.3544 + 10.3545 +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 10.3546 +# the resulting binary. 10.3547 +hardcode_shlibpath_var=$hardcode_shlibpath_var 10.3548 + 10.3549 +# Variables whose values should be saved in libtool wrapper scripts and 10.3550 +# restored at relink time. 10.3551 +variables_saved_for_relink="$variables_saved_for_relink" 10.3552 + 10.3553 +# Whether libtool must link a program against all its dependency libraries. 10.3554 +link_all_deplibs=$link_all_deplibs 10.3555 + 10.3556 +# Compile-time system search path for libraries 10.3557 +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 10.3558 + 10.3559 +# Run-time system search path for libraries 10.3560 +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 10.3561 + 10.3562 +# Fix the shell variable \$srcfile for the compiler. 10.3563 +fix_srcfile_path="$fix_srcfile_path" 10.3564 + 10.3565 +# Set to yes if exported symbols are required. 10.3566 +always_export_symbols=$always_export_symbols 10.3567 + 10.3568 +# The commands to list exported symbols. 10.3569 +export_symbols_cmds=$lt_export_symbols_cmds 10.3570 + 10.3571 +# The commands to extract the exported symbol list from a shared archive. 10.3572 +extract_expsyms_cmds=$lt_extract_expsyms_cmds 10.3573 + 10.3574 +# Symbols that should not be listed in the preloaded symbols. 10.3575 +exclude_expsyms=$lt_exclude_expsyms 10.3576 + 10.3577 +# Symbols that must always be exported. 10.3578 +include_expsyms=$lt_include_expsyms 10.3579 + 10.3580 +# ### END LIBTOOL CONFIG 10.3581 + 10.3582 +__EOF__ 10.3583 + 10.3584 + case $host_os in 10.3585 + aix3*) 10.3586 + cat <<\EOF >> "${ofile}T" 10.3587 + 10.3588 +# AIX sometimes has problems with the GCC collect2 program. For some 10.3589 +# reason, if we set the COLLECT_NAMES environment variable, the problems 10.3590 +# vanish in a puff of smoke. 10.3591 +if test "X${COLLECT_NAMES+set}" != Xset; then 10.3592 + COLLECT_NAMES= 10.3593 + export COLLECT_NAMES 10.3594 +fi 10.3595 +EOF 10.3596 + ;; 10.3597 + esac 10.3598 + 10.3599 + case $host_os in 10.3600 + cygwin* | mingw* | pw32* | os2*) 10.3601 + cat <<'EOF' >> "${ofile}T" 10.3602 + # This is a source program that is used to create dlls on Windows 10.3603 + # Don't remove nor modify the starting and closing comments 10.3604 +# /* ltdll.c starts here */ 10.3605 +# #define WIN32_LEAN_AND_MEAN 10.3606 +# #include <windows.h> 10.3607 +# #undef WIN32_LEAN_AND_MEAN 10.3608 +# #include <stdio.h> 10.3609 +# 10.3610 +# #ifndef __CYGWIN__ 10.3611 +# # ifdef __CYGWIN32__ 10.3612 +# # define __CYGWIN__ __CYGWIN32__ 10.3613 +# # endif 10.3614 +# #endif 10.3615 +# 10.3616 +# #ifdef __cplusplus 10.3617 +# extern "C" { 10.3618 +# #endif 10.3619 +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); 10.3620 +# #ifdef __cplusplus 10.3621 +# } 10.3622 +# #endif 10.3623 +# 10.3624 +# #ifdef __CYGWIN__ 10.3625 +# #include <cygwin/cygwin_dll.h> 10.3626 +# DECLARE_CYGWIN_DLL( DllMain ); 10.3627 +# #endif 10.3628 +# HINSTANCE __hDllInstance_base; 10.3629 +# 10.3630 +# BOOL APIENTRY 10.3631 +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) 10.3632 +# { 10.3633 +# __hDllInstance_base = hInst; 10.3634 +# return TRUE; 10.3635 +# } 10.3636 +# /* ltdll.c ends here */ 10.3637 + # This is a source program that is used to create import libraries 10.3638 + # on Windows for dlls which lack them. Don't remove nor modify the 10.3639 + # starting and closing comments 10.3640 +# /* impgen.c starts here */ 10.3641 +# /* Copyright (C) 1999-2000 Free Software Foundation, Inc. 10.3642 +# 10.3643 +# This file is part of GNU libtool. 10.3644 +# 10.3645 +# This program is free software; you can redistribute it and/or modify 10.3646 +# it under the terms of the GNU General Public License as published by 10.3647 +# the Free Software Foundation; either version 2 of the License, or 10.3648 +# (at your option) any later version. 10.3649 +# 10.3650 +# This program is distributed in the hope that it will be useful, 10.3651 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 10.3652 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10.3653 +# GNU General Public License for more details. 10.3654 +# 10.3655 +# You should have received a copy of the GNU General Public License 10.3656 +# along with this program; if not, write to the Free Software 10.3657 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 10.3658 +# */ 10.3659 +# 10.3660 +# #include <stdio.h> /* for printf() */ 10.3661 +# #include <unistd.h> /* for open(), lseek(), read() */ 10.3662 +# #include <fcntl.h> /* for O_RDONLY, O_BINARY */ 10.3663 +# #include <string.h> /* for strdup() */ 10.3664 +# 10.3665 +# /* O_BINARY isn't required (or even defined sometimes) under Unix */ 10.3666 +# #ifndef O_BINARY 10.3667 +# #define O_BINARY 0 10.3668 +# #endif 10.3669 +# 10.3670 +# static unsigned int 10.3671 +# pe_get16 (fd, offset) 10.3672 +# int fd; 10.3673 +# int offset; 10.3674 +# { 10.3675 +# unsigned char b[2]; 10.3676 +# lseek (fd, offset, SEEK_SET); 10.3677 +# read (fd, b, 2); 10.3678 +# return b[0] + (b[1]<<8); 10.3679 +# } 10.3680 +# 10.3681 +# static unsigned int 10.3682 +# pe_get32 (fd, offset) 10.3683 +# int fd; 10.3684 +# int offset; 10.3685 +# { 10.3686 +# unsigned char b[4]; 10.3687 +# lseek (fd, offset, SEEK_SET); 10.3688 +# read (fd, b, 4); 10.3689 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 10.3690 +# } 10.3691 +# 10.3692 +# static unsigned int 10.3693 +# pe_as32 (ptr) 10.3694 +# void *ptr; 10.3695 +# { 10.3696 +# unsigned char *b = ptr; 10.3697 +# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24); 10.3698 +# } 10.3699 +# 10.3700 +# int 10.3701 +# main (argc, argv) 10.3702 +# int argc; 10.3703 +# char *argv[]; 10.3704 +# { 10.3705 +# int dll; 10.3706 +# unsigned long pe_header_offset, opthdr_ofs, num_entries, i; 10.3707 +# unsigned long export_rva, export_size, nsections, secptr, expptr; 10.3708 +# unsigned long name_rvas, nexp; 10.3709 +# unsigned char *expdata, *erva; 10.3710 +# char *filename, *dll_name; 10.3711 +# 10.3712 +# filename = argv[1]; 10.3713 +# 10.3714 +# dll = open(filename, O_RDONLY|O_BINARY); 10.3715 +# if (dll < 1) 10.3716 +# return 1; 10.3717 +# 10.3718 +# dll_name = filename; 10.3719 +# 10.3720 +# for (i=0; filename[i]; i++) 10.3721 +# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':') 10.3722 +# dll_name = filename + i +1; 10.3723 +# 10.3724 +# pe_header_offset = pe_get32 (dll, 0x3c); 10.3725 +# opthdr_ofs = pe_header_offset + 4 + 20; 10.3726 +# num_entries = pe_get32 (dll, opthdr_ofs + 92); 10.3727 +# 10.3728 +# if (num_entries < 1) /* no exports */ 10.3729 +# return 1; 10.3730 +# 10.3731 +# export_rva = pe_get32 (dll, opthdr_ofs + 96); 10.3732 +# export_size = pe_get32 (dll, opthdr_ofs + 100); 10.3733 +# nsections = pe_get16 (dll, pe_header_offset + 4 +2); 10.3734 +# secptr = (pe_header_offset + 4 + 20 + 10.3735 +# pe_get16 (dll, pe_header_offset + 4 + 16)); 10.3736 +# 10.3737 +# expptr = 0; 10.3738 +# for (i = 0; i < nsections; i++) 10.3739 +# { 10.3740 +# char sname[8]; 10.3741 +# unsigned long secptr1 = secptr + 40 * i; 10.3742 +# unsigned long vaddr = pe_get32 (dll, secptr1 + 12); 10.3743 +# unsigned long vsize = pe_get32 (dll, secptr1 + 16); 10.3744 +# unsigned long fptr = pe_get32 (dll, secptr1 + 20); 10.3745 +# lseek(dll, secptr1, SEEK_SET); 10.3746 +# read(dll, sname, 8); 10.3747 +# if (vaddr <= export_rva && vaddr+vsize > export_rva) 10.3748 +# { 10.3749 +# expptr = fptr + (export_rva - vaddr); 10.3750 +# if (export_rva + export_size > vaddr + vsize) 10.3751 +# export_size = vsize - (export_rva - vaddr); 10.3752 +# break; 10.3753 +# } 10.3754 +# } 10.3755 +# 10.3756 +# expdata = (unsigned char*)malloc(export_size); 10.3757 +# lseek (dll, expptr, SEEK_SET); 10.3758 +# read (dll, expdata, export_size); 10.3759 +# erva = expdata - export_rva; 10.3760 +# 10.3761 +# nexp = pe_as32 (expdata+24); 10.3762 +# name_rvas = pe_as32 (expdata+32); 10.3763 +# 10.3764 +# printf ("EXPORTS\n"); 10.3765 +# for (i = 0; i<nexp; i++) 10.3766 +# { 10.3767 +# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4); 10.3768 +# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i); 10.3769 +# } 10.3770 +# 10.3771 +# return 0; 10.3772 +# } 10.3773 +# /* impgen.c ends here */ 10.3774 + 10.3775 +EOF 10.3776 + ;; 10.3777 + esac 10.3778 + 10.3779 + # We use sed instead of cat because bash on DJGPP gets confused if 10.3780 + # if finds mixed CR/LF and LF-only lines. Since sed operates in 10.3781 + # text mode, it properly converts lines to CR/LF. This bash problem 10.3782 + # is reportedly fixed, but why not run on old versions too? 10.3783 + sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1) 10.3784 + 10.3785 + mv -f "${ofile}T" "$ofile" || \ 10.3786 + (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T") 10.3787 + chmod +x "$ofile" 10.3788 +fi 10.3789 + 10.3790 +])# _LT_AC_LTCONFIG_HACK 10.3791 + 10.3792 +# AC_LIBTOOL_DLOPEN - enable checks for dlopen support 10.3793 +AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) 10.3794 + 10.3795 +# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's 10.3796 +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) 10.3797 + 10.3798 +# AC_ENABLE_SHARED - implement the --enable-shared flag 10.3799 +# Usage: AC_ENABLE_SHARED[(DEFAULT)] 10.3800 +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 10.3801 +# `yes'. 10.3802 +AC_DEFUN([AC_ENABLE_SHARED], 10.3803 +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl 10.3804 +AC_ARG_ENABLE(shared, 10.3805 +changequote(<<, >>)dnl 10.3806 +<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], 10.3807 +changequote([, ])dnl 10.3808 +[p=${PACKAGE-default} 10.3809 +case $enableval in 10.3810 +yes) enable_shared=yes ;; 10.3811 +no) enable_shared=no ;; 10.3812 +*) 10.3813 + enable_shared=no 10.3814 + # Look at the argument we got. We use all the common list separators. 10.3815 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 10.3816 + for pkg in $enableval; do 10.3817 + if test "X$pkg" = "X$p"; then 10.3818 + enable_shared=yes 10.3819 + fi 10.3820 + done 10.3821 + IFS="$ac_save_ifs" 10.3822 + ;; 10.3823 +esac], 10.3824 +enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl 10.3825 +]) 10.3826 + 10.3827 +# AC_DISABLE_SHARED - set the default shared flag to --disable-shared 10.3828 +AC_DEFUN([AC_DISABLE_SHARED], 10.3829 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 10.3830 +AC_ENABLE_SHARED(no)]) 10.3831 + 10.3832 +# AC_ENABLE_STATIC - implement the --enable-static flag 10.3833 +# Usage: AC_ENABLE_STATIC[(DEFAULT)] 10.3834 +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 10.3835 +# `yes'. 10.3836 +AC_DEFUN([AC_ENABLE_STATIC], 10.3837 +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl 10.3838 +AC_ARG_ENABLE(static, 10.3839 +changequote(<<, >>)dnl 10.3840 +<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], 10.3841 +changequote([, ])dnl 10.3842 +[p=${PACKAGE-default} 10.3843 +case $enableval in 10.3844 +yes) enable_static=yes ;; 10.3845 +no) enable_static=no ;; 10.3846 +*) 10.3847 + enable_static=no 10.3848 + # Look at the argument we got. We use all the common list separators. 10.3849 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 10.3850 + for pkg in $enableval; do 10.3851 + if test "X$pkg" = "X$p"; then 10.3852 + enable_static=yes 10.3853 + fi 10.3854 + done 10.3855 + IFS="$ac_save_ifs" 10.3856 + ;; 10.3857 +esac], 10.3858 +enable_static=AC_ENABLE_STATIC_DEFAULT)dnl 10.3859 +]) 10.3860 + 10.3861 +# AC_DISABLE_STATIC - set the default static flag to --disable-static 10.3862 +AC_DEFUN([AC_DISABLE_STATIC], 10.3863 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 10.3864 +AC_ENABLE_STATIC(no)]) 10.3865 + 10.3866 + 10.3867 +# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag 10.3868 +# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] 10.3869 +# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to 10.3870 +# `yes'. 10.3871 +AC_DEFUN([AC_ENABLE_FAST_INSTALL], 10.3872 +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl 10.3873 +AC_ARG_ENABLE(fast-install, 10.3874 +changequote(<<, >>)dnl 10.3875 +<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], 10.3876 +changequote([, ])dnl 10.3877 +[p=${PACKAGE-default} 10.3878 +case $enableval in 10.3879 +yes) enable_fast_install=yes ;; 10.3880 +no) enable_fast_install=no ;; 10.3881 +*) 10.3882 + enable_fast_install=no 10.3883 + # Look at the argument we got. We use all the common list separators. 10.3884 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 10.3885 + for pkg in $enableval; do 10.3886 + if test "X$pkg" = "X$p"; then 10.3887 + enable_fast_install=yes 10.3888 + fi 10.3889 + done 10.3890 + IFS="$ac_save_ifs" 10.3891 + ;; 10.3892 +esac], 10.3893 +enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl 10.3894 +]) 10.3895 + 10.3896 +# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install 10.3897 +AC_DEFUN([AC_DISABLE_FAST_INSTALL], 10.3898 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 10.3899 +AC_ENABLE_FAST_INSTALL(no)]) 10.3900 + 10.3901 +# AC_LIBTOOL_PICMODE - implement the --with-pic flag 10.3902 +# Usage: AC_LIBTOOL_PICMODE[(MODE)] 10.3903 +# Where MODE is either `yes' or `no'. If omitted, it defaults to 10.3904 +# `both'. 10.3905 +AC_DEFUN([AC_LIBTOOL_PICMODE], 10.3906 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 10.3907 +pic_mode=ifelse($#,1,$1,default)]) 10.3908 + 10.3909 + 10.3910 +# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library 10.3911 +AC_DEFUN([AC_PATH_TOOL_PREFIX], 10.3912 +[AC_MSG_CHECKING([for $1]) 10.3913 +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, 10.3914 +[case $MAGIC_CMD in 10.3915 + /*) 10.3916 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 10.3917 + ;; 10.3918 + ?:/*) 10.3919 + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. 10.3920 + ;; 10.3921 + *) 10.3922 + ac_save_MAGIC_CMD="$MAGIC_CMD" 10.3923 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 10.3924 +dnl $ac_dummy forces splitting on constant user-supplied paths. 10.3925 +dnl POSIX.2 word splitting is done only on the output of word expansions, 10.3926 +dnl not every word. This closes a longstanding sh security hole. 10.3927 + ac_dummy="ifelse([$2], , $PATH, [$2])" 10.3928 + for ac_dir in $ac_dummy; do 10.3929 + test -z "$ac_dir" && ac_dir=. 10.3930 + if test -f $ac_dir/$1; then 10.3931 + lt_cv_path_MAGIC_CMD="$ac_dir/$1" 10.3932 + if test -n "$file_magic_test_file"; then 10.3933 + case $deplibs_check_method in 10.3934 + "file_magic "*) 10.3935 + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 10.3936 + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10.3937 + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 10.3938 + egrep "$file_magic_regex" > /dev/null; then 10.3939 + : 10.3940 + else 10.3941 + cat <<EOF 1>&2 10.3942 + 10.3943 +*** Warning: the command libtool uses to detect shared libraries, 10.3944 +*** $file_magic_cmd, produces output that libtool cannot recognize. 10.3945 +*** The result is that libtool may fail to recognize shared libraries 10.3946 +*** as such. This will affect the creation of libtool libraries that 10.3947 +*** depend on shared libraries, but programs linked with such libtool 10.3948 +*** libraries will work regardless of this problem. Nevertheless, you 10.3949 +*** may want to report the problem to your system manager and/or to 10.3950 +*** bug-libtool@gnu.org 10.3951 + 10.3952 +EOF 10.3953 + fi ;; 10.3954 + esac 10.3955 + fi 10.3956 + break 10.3957 + fi 10.3958 + done 10.3959 + IFS="$ac_save_ifs" 10.3960 + MAGIC_CMD="$ac_save_MAGIC_CMD" 10.3961 + ;; 10.3962 +esac]) 10.3963 +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 10.3964 +if test -n "$MAGIC_CMD"; then 10.3965 + AC_MSG_RESULT($MAGIC_CMD) 10.3966 +else 10.3967 + AC_MSG_RESULT(no) 10.3968 +fi 10.3969 +]) 10.3970 + 10.3971 + 10.3972 +# AC_PATH_MAGIC - find a file program which can recognise a shared library 10.3973 +AC_DEFUN([AC_PATH_MAGIC], 10.3974 +[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl 10.3975 +AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH) 10.3976 +if test -z "$lt_cv_path_MAGIC_CMD"; then 10.3977 + if test -n "$ac_tool_prefix"; then 10.3978 + AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH) 10.3979 + else 10.3980 + MAGIC_CMD=: 10.3981 + fi 10.3982 +fi 10.3983 +]) 10.3984 + 10.3985 + 10.3986 +# AC_PROG_LD - find the path to the GNU or non-GNU linker 10.3987 +AC_DEFUN([AC_PROG_LD], 10.3988 +[AC_ARG_WITH(gnu-ld, 10.3989 +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], 10.3990 +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) 10.3991 +AC_REQUIRE([AC_PROG_CC])dnl 10.3992 +AC_REQUIRE([AC_CANONICAL_HOST])dnl 10.3993 +AC_REQUIRE([AC_CANONICAL_BUILD])dnl 10.3994 +AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl 10.3995 +ac_prog=ld 10.3996 +if test "$GCC" = yes; then 10.3997 + # Check if gcc -print-prog-name=ld gives a path. 10.3998 + AC_MSG_CHECKING([for ld used by GCC]) 10.3999 + case $host in 10.4000 + *-*-mingw*) 10.4001 + # gcc leaves a trailing carriage return which upsets mingw 10.4002 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 10.4003 + *) 10.4004 + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 10.4005 + esac 10.4006 + case $ac_prog in 10.4007 + # Accept absolute paths. 10.4008 + [[\\/]]* | [[A-Za-z]]:[[\\/]]*) 10.4009 + re_direlt='/[[^/]][[^/]]*/\.\./' 10.4010 + # Canonicalize the path of ld 10.4011 + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 10.4012 + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 10.4013 + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 10.4014 + done 10.4015 + test -z "$LD" && LD="$ac_prog" 10.4016 + ;; 10.4017 + "") 10.4018 + # If it fails, then pretend we aren't using GCC. 10.4019 + ac_prog=ld 10.4020 + ;; 10.4021 + *) 10.4022 + # If it is relative, then search for the first ld in PATH. 10.4023 + with_gnu_ld=unknown 10.4024 + ;; 10.4025 + esac 10.4026 +elif test "$with_gnu_ld" = yes; then 10.4027 + AC_MSG_CHECKING([for GNU ld]) 10.4028 +else 10.4029 + AC_MSG_CHECKING([for non-GNU ld]) 10.4030 +fi 10.4031 +AC_CACHE_VAL(lt_cv_path_LD, 10.4032 +[if test -z "$LD"; then 10.4033 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10.4034 + for ac_dir in $PATH; do 10.4035 + test -z "$ac_dir" && ac_dir=. 10.4036 + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 10.4037 + lt_cv_path_LD="$ac_dir/$ac_prog" 10.4038 + # Check to see if the program is GNU ld. I'd rather use --version, 10.4039 + # but apparently some GNU ld's only accept -v. 10.4040 + # Break only if it was the GNU/non-GNU ld that we prefer. 10.4041 + if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 10.4042 + test "$with_gnu_ld" != no && break 10.4043 + else 10.4044 + test "$with_gnu_ld" != yes && break 10.4045 + fi 10.4046 + fi 10.4047 + done 10.4048 + IFS="$ac_save_ifs" 10.4049 +else 10.4050 + lt_cv_path_LD="$LD" # Let the user override the test with a path. 10.4051 +fi]) 10.4052 +LD="$lt_cv_path_LD" 10.4053 +if test -n "$LD"; then 10.4054 + AC_MSG_RESULT($LD) 10.4055 +else 10.4056 + AC_MSG_RESULT(no) 10.4057 +fi 10.4058 +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) 10.4059 +AC_PROG_LD_GNU 10.4060 +]) 10.4061 + 10.4062 +# AC_PROG_LD_GNU - 10.4063 +AC_DEFUN([AC_PROG_LD_GNU], 10.4064 +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, 10.4065 +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. 10.4066 +if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 10.4067 + lt_cv_prog_gnu_ld=yes 10.4068 +else 10.4069 + lt_cv_prog_gnu_ld=no 10.4070 +fi]) 10.4071 +with_gnu_ld=$lt_cv_prog_gnu_ld 10.4072 +]) 10.4073 + 10.4074 +# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker 10.4075 +# -- PORTME Some linkers may need a different reload flag. 10.4076 +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], 10.4077 +[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag, 10.4078 +[lt_cv_ld_reload_flag='-r']) 10.4079 +reload_flag=$lt_cv_ld_reload_flag 10.4080 +test -n "$reload_flag" && reload_flag=" $reload_flag" 10.4081 +]) 10.4082 + 10.4083 +# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies 10.4084 +# -- PORTME fill in with the dynamic library characteristics 10.4085 +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], 10.4086 +[AC_CACHE_CHECK([how to recognise dependant libraries], 10.4087 +lt_cv_deplibs_check_method, 10.4088 +[lt_cv_file_magic_cmd='$MAGIC_CMD' 10.4089 +lt_cv_file_magic_test_file= 10.4090 +lt_cv_deplibs_check_method='unknown' 10.4091 +# Need to set the preceding variable on all platforms that support 10.4092 +# interlibrary dependencies. 10.4093 +# 'none' -- dependencies not supported. 10.4094 +# `unknown' -- same as none, but documents that we really don't know. 10.4095 +# 'pass_all' -- all dependencies passed with no checks. 10.4096 +# 'test_compile' -- check by making test program. 10.4097 +# 'file_magic [[regex]]' -- check by looking for files in library path 10.4098 +# which responds to the $file_magic_cmd with a given egrep regex. 10.4099 +# If you have `file' or equivalent on your system and you're not sure 10.4100 +# whether `pass_all' will *always* work, you probably want this one. 10.4101 + 10.4102 +case $host_os in 10.4103 +aix4* | aix5*) 10.4104 + lt_cv_deplibs_check_method=pass_all 10.4105 + ;; 10.4106 + 10.4107 +beos*) 10.4108 + lt_cv_deplibs_check_method=pass_all 10.4109 + ;; 10.4110 + 10.4111 +bsdi4*) 10.4112 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' 10.4113 + lt_cv_file_magic_cmd='/usr/bin/file -L' 10.4114 + lt_cv_file_magic_test_file=/shlib/libc.so 10.4115 + ;; 10.4116 + 10.4117 +cygwin* | mingw* | pw32*) 10.4118 + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 10.4119 + lt_cv_file_magic_cmd='$OBJDUMP -f' 10.4120 + ;; 10.4121 + 10.4122 +darwin* | rhapsody*) 10.4123 + lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' 10.4124 + lt_cv_file_magic_cmd='/usr/bin/file -L' 10.4125 + case "$host_os" in 10.4126 + rhapsody* | darwin1.[[012]]) 10.4127 + lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1` 10.4128 + ;; 10.4129 + *) # Darwin 1.3 on 10.4130 + lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' 10.4131 + ;; 10.4132 + esac 10.4133 + ;; 10.4134 + 10.4135 +freebsd*) 10.4136 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 10.4137 + case $host_cpu in 10.4138 + i*86 ) 10.4139 + # Not sure whether the presence of OpenBSD here was a mistake. 10.4140 + # Let's accept both of them until this is cleared up. 10.4141 + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library' 10.4142 + lt_cv_file_magic_cmd=/usr/bin/file 10.4143 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10.4144 + ;; 10.4145 + esac 10.4146 + else 10.4147 + lt_cv_deplibs_check_method=pass_all 10.4148 + fi 10.4149 + ;; 10.4150 + 10.4151 +gnu*) 10.4152 + lt_cv_deplibs_check_method=pass_all 10.4153 + ;; 10.4154 + 10.4155 +hpux10.20*|hpux11*) 10.4156 + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' 10.4157 + lt_cv_file_magic_cmd=/usr/bin/file 10.4158 + lt_cv_file_magic_test_file=/usr/lib/libc.sl 10.4159 + ;; 10.4160 + 10.4161 +irix5* | irix6*) 10.4162 + case $host_os in 10.4163 + irix5*) 10.4164 + # this will be overridden with pass_all, but let us keep it just in case 10.4165 + lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" 10.4166 + ;; 10.4167 + *) 10.4168 + case $LD in 10.4169 + *-32|*"-32 ") libmagic=32-bit;; 10.4170 + *-n32|*"-n32 ") libmagic=N32;; 10.4171 + *-64|*"-64 ") libmagic=64-bit;; 10.4172 + *) libmagic=never-match;; 10.4173 + esac 10.4174 + # this will be overridden with pass_all, but let us keep it just in case 10.4175 + lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1" 10.4176 + ;; 10.4177 + esac 10.4178 + lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` 10.4179 + lt_cv_deplibs_check_method=pass_all 10.4180 + ;; 10.4181 + 10.4182 +# This must be Linux ELF. 10.4183 +linux-gnu*) 10.4184 + case $host_cpu in 10.4185 + alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* ) 10.4186 + lt_cv_deplibs_check_method=pass_all ;; 10.4187 + *) 10.4188 + # glibc up to 2.1.1 does not perform some relocations on ARM 10.4189 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;; 10.4190 + esac 10.4191 + lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 10.4192 + ;; 10.4193 + 10.4194 +netbsd*) 10.4195 + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 10.4196 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$' 10.4197 + else 10.4198 + lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$' 10.4199 + fi 10.4200 + ;; 10.4201 + 10.4202 +newos6*) 10.4203 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' 10.4204 + lt_cv_file_magic_cmd=/usr/bin/file 10.4205 + lt_cv_file_magic_test_file=/usr/lib/libnls.so 10.4206 + ;; 10.4207 + 10.4208 +openbsd*) 10.4209 + lt_cv_file_magic_cmd=/usr/bin/file 10.4210 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 10.4211 + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10.4212 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object' 10.4213 + else 10.4214 + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 10.4215 + fi 10.4216 + ;; 10.4217 + 10.4218 +osf3* | osf4* | osf5*) 10.4219 + # this will be overridden with pass_all, but let us keep it just in case 10.4220 + lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' 10.4221 + lt_cv_file_magic_test_file=/shlib/libc.so 10.4222 + lt_cv_deplibs_check_method=pass_all 10.4223 + ;; 10.4224 + 10.4225 +sco3.2v5*) 10.4226 + lt_cv_deplibs_check_method=pass_all 10.4227 + ;; 10.4228 + 10.4229 +solaris*) 10.4230 + lt_cv_deplibs_check_method=pass_all 10.4231 + lt_cv_file_magic_test_file=/lib/libc.so 10.4232 + ;; 10.4233 + 10.4234 +sysv5uw[[78]]* | sysv4*uw2*) 10.4235 + lt_cv_deplibs_check_method=pass_all 10.4236 + ;; 10.4237 + 10.4238 +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10.4239 + case $host_vendor in 10.4240 + motorola) 10.4241 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' 10.4242 + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 10.4243 + ;; 10.4244 + ncr) 10.4245 + lt_cv_deplibs_check_method=pass_all 10.4246 + ;; 10.4247 + sequent) 10.4248 + lt_cv_file_magic_cmd='/bin/file' 10.4249 + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' 10.4250 + ;; 10.4251 + sni) 10.4252 + lt_cv_file_magic_cmd='/bin/file' 10.4253 + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" 10.4254 + lt_cv_file_magic_test_file=/lib/libc.so 10.4255 + ;; 10.4256 + esac 10.4257 + ;; 10.4258 +esac 10.4259 +]) 10.4260 +file_magic_cmd=$lt_cv_file_magic_cmd 10.4261 +deplibs_check_method=$lt_cv_deplibs_check_method 10.4262 +]) 10.4263 + 10.4264 + 10.4265 +# AC_PROG_NM - find the path to a BSD-compatible name lister 10.4266 +AC_DEFUN([AC_PROG_NM], 10.4267 +[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl 10.4268 +AC_MSG_CHECKING([for BSD-compatible nm]) 10.4269 +AC_CACHE_VAL(lt_cv_path_NM, 10.4270 +[if test -n "$NM"; then 10.4271 + # Let the user override the test. 10.4272 + lt_cv_path_NM="$NM" 10.4273 +else 10.4274 + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10.4275 + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 10.4276 + test -z "$ac_dir" && ac_dir=. 10.4277 + tmp_nm=$ac_dir/${ac_tool_prefix}nm 10.4278 + if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then 10.4279 + # Check to see if the nm accepts a BSD-compat flag. 10.4280 + # Adding the `sed 1q' prevents false positives on HP-UX, which says: 10.4281 + # nm: unknown option "B" ignored 10.4282 + # Tru64's nm complains that /dev/null is an invalid object file 10.4283 + if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then 10.4284 + lt_cv_path_NM="$tmp_nm -B" 10.4285 + break 10.4286 + elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then 10.4287 + lt_cv_path_NM="$tmp_nm -p" 10.4288 + break 10.4289 + else 10.4290 + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 10.4291 + continue # so that we can try to find one that supports BSD flags 10.4292 + fi 10.4293 + fi 10.4294 + done 10.4295 + IFS="$ac_save_ifs" 10.4296 + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 10.4297 +fi]) 10.4298 +NM="$lt_cv_path_NM" 10.4299 +AC_MSG_RESULT([$NM]) 10.4300 +]) 10.4301 + 10.4302 +# AC_CHECK_LIBM - check for math library 10.4303 +AC_DEFUN([AC_CHECK_LIBM], 10.4304 +[AC_REQUIRE([AC_CANONICAL_HOST])dnl 10.4305 +LIBM= 10.4306 +case $host in 10.4307 +*-*-beos* | *-*-cygwin* | *-*-pw32*) 10.4308 + # These system don't have libm 10.4309 + ;; 10.4310 +*-ncr-sysv4.3*) 10.4311 + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") 10.4312 + AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") 10.4313 + ;; 10.4314 +*) 10.4315 + AC_CHECK_LIB(m, main, LIBM="-lm") 10.4316 + ;; 10.4317 +esac 10.4318 +]) 10.4319 + 10.4320 +# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for 10.4321 +# the libltdl convenience library and INCLTDL to the include flags for 10.4322 +# the libltdl header and adds --enable-ltdl-convenience to the 10.4323 +# configure arguments. Note that LIBLTDL and INCLTDL are not 10.4324 +# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not 10.4325 +# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed 10.4326 +# with '${top_builddir}/' and INCLTDL will be prefixed with 10.4327 +# '${top_srcdir}/' (note the single quotes!). If your package is not 10.4328 +# flat and you're not using automake, define top_builddir and 10.4329 +# top_srcdir appropriately in the Makefiles. 10.4330 +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], 10.4331 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 10.4332 + case $enable_ltdl_convenience in 10.4333 + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; 10.4334 + "") enable_ltdl_convenience=yes 10.4335 + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; 10.4336 + esac 10.4337 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la 10.4338 + INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 10.4339 +]) 10.4340 + 10.4341 +# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for 10.4342 +# the libltdl installable library and INCLTDL to the include flags for 10.4343 +# the libltdl header and adds --enable-ltdl-install to the configure 10.4344 +# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is 10.4345 +# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed 10.4346 +# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will 10.4347 +# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed 10.4348 +# with '${top_srcdir}/' (note the single quotes!). If your package is 10.4349 +# not flat and you're not using automake, define top_builddir and 10.4350 +# top_srcdir appropriately in the Makefiles. 10.4351 +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. 10.4352 +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], 10.4353 +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl 10.4354 + AC_CHECK_LIB(ltdl, main, 10.4355 + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], 10.4356 + [if test x"$enable_ltdl_install" = xno; then 10.4357 + AC_MSG_WARN([libltdl not installed, but installation disabled]) 10.4358 + else 10.4359 + enable_ltdl_install=yes 10.4360 + fi 10.4361 + ]) 10.4362 + if test x"$enable_ltdl_install" = x"yes"; then 10.4363 + ac_configure_args="$ac_configure_args --enable-ltdl-install" 10.4364 + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la 10.4365 + INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) 10.4366 + else 10.4367 + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" 10.4368 + LIBLTDL="-lltdl" 10.4369 + INCLTDL= 10.4370 + fi 10.4371 +]) 10.4372 + 10.4373 +# old names 10.4374 +AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) 10.4375 +AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) 10.4376 +AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) 10.4377 +AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) 10.4378 +AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) 10.4379 +AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) 10.4380 +AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) 10.4381 + 10.4382 +# This is just to silence aclocal about the macro not being used 10.4383 +ifelse([AC_DISABLE_FAST_INSTALL]) 10.4384 + 10.4385 +# Add --enable-maintainer-mode option to configure. 10.4386 +# From Jim Meyering 10.4387 + 10.4388 +# serial 1 10.4389 + 10.4390 +AC_DEFUN([AM_MAINTAINER_MODE], 10.4391 +[AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) 10.4392 + dnl maintainer-mode is disabled by default 10.4393 + AC_ARG_ENABLE(maintainer-mode, 10.4394 +[ --enable-maintainer-mode enable make rules and dependencies not useful 10.4395 + (and sometimes confusing) to the casual installer], 10.4396 + USE_MAINTAINER_MODE=$enableval, 10.4397 + USE_MAINTAINER_MODE=no) 10.4398 + AC_MSG_RESULT([$USE_MAINTAINER_MODE]) 10.4399 + AM_CONDITIONAL(MAINTAINER_MODE, [test $USE_MAINTAINER_MODE = yes]) 10.4400 + MAINT=$MAINTAINER_MODE_TRUE 10.4401 + AC_SUBST(MAINT)dnl 10.4402 +] 10.4403 +) 10.4404 + 10.4405 +# Usage: 10.4406 +# SIM_AC_DEBUGSYMBOLS 10.4407 +# 10.4408 +# Description: 10.4409 +# Let the user decide if debug symbol information should be compiled 10.4410 +# in. The compiled libraries/executables will use a lot less space 10.4411 +# if stripped for their symbol information. 10.4412 +# 10.4413 +# Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX 10.4414 +# in the configure.in script. 10.4415 +# 10.4416 +# Author: Morten Eriksen, <mortene@sim.no>. 10.4417 +# 10.4418 + 10.4419 +AC_DEFUN([SIM_AC_DEBUGSYMBOLS], [ 10.4420 +AC_ARG_ENABLE( 10.4421 + [symbols], 10.4422 + AC_HELP_STRING([--enable-symbols], 10.4423 + [include symbol debug information [[default=yes]]]), 10.4424 + [case "${enableval}" in 10.4425 + yes) enable_symbols=yes ;; 10.4426 + no) enable_symbols=no ;; 10.4427 + *) AC_MSG_ERROR(bad value "${enableval}" for --enable-symbols) ;; 10.4428 + esac], 10.4429 + [enable_symbols=yes]) 10.4430 + 10.4431 +# FIXME: don't mangle options like -fno-gnu-linker and -fvolatile-global 10.4432 +# 20020104 larsa 10.4433 +if test x"$enable_symbols" = x"no"; then 10.4434 + # CPPFLAGS="`echo $CPPFLAGS | sed 's/-g[0-9]//'`" 10.4435 + CFLAGS="`echo $CFLAGS | sed 's/-g[0-9]?//'`" 10.4436 + CXXFLAGS="`echo $CXXFLAGS | sed 's/-g[0-9]?//'`" 10.4437 +fi 10.4438 +]) 10.4439 + 10.4440 +# Usage: 10.4441 +# SIM_AC_RTTI_SUPPORT 10.4442 +# 10.4443 +# Description: 10.4444 +# Let the user decide if RTTI should be compiled in. The compiled 10.4445 +# libraries/executables will use a lot less space if they don't 10.4446 +# contain RTTI. 10.4447 +# 10.4448 +# Note: this macro must be placed after AC_PROG_CXX in the 10.4449 +# configure.in script. 10.4450 +# 10.4451 +# Author: Morten Eriksen, <mortene@sim.no>. 10.4452 + 10.4453 +AC_DEFUN([SIM_AC_RTTI_SUPPORT], [ 10.4454 +AC_PREREQ([2.13]) 10.4455 +AC_ARG_ENABLE( 10.4456 + [rtti], 10.4457 + AC_HELP_STRING([--enable-rtti], [(g++ only) compile with RTTI [[default=yes]]]), 10.4458 + [case "${enableval}" in 10.4459 + yes) enable_rtti=yes ;; 10.4460 + no) enable_rtti=no ;; 10.4461 + *) AC_MSG_ERROR(bad value "${enableval}" for --enable-rtti) ;; 10.4462 + esac], 10.4463 + [enable_rtti=yes]) 10.4464 + 10.4465 +if test x"$enable_rtti" = x"no"; then 10.4466 + if test x"$GXX" = x"yes"; then 10.4467 + CXXFLAGS="$CXXFLAGS -fno-rtti" 10.4468 + else 10.4469 + AC_MSG_WARN([--enable-rtti only has effect when using GNU g++]) 10.4470 + fi 10.4471 +fi 10.4472 +]) 10.4473 + 10.4474 +# Usage: 10.4475 +# SIM_AC_EXCEPTION_HANDLING 10.4476 +# 10.4477 +# Description: 10.4478 +# Let the user decide if C++ exception handling should be compiled 10.4479 +# in. The compiled libraries/executables will use a lot less space 10.4480 +# if they have exception handling support. 10.4481 +# 10.4482 +# Note: this macro must be placed after AC_PROG_CXX in the 10.4483 +# configure.in script. 10.4484 +# 10.4485 +# Author: Morten Eriksen, <mortene@sim.no>. 10.4486 +# 10.4487 +# TODO: 10.4488 +# * [mortene:19991114] make this work with compilers other than gcc/g++ 10.4489 +# 10.4490 + 10.4491 +AC_DEFUN([SIM_AC_EXCEPTION_HANDLING], [ 10.4492 +AC_PREREQ([2.13]) 10.4493 +AC_ARG_ENABLE( 10.4494 + [exceptions], 10.4495 + AC_HELP_STRING([--enable-exceptions], 10.4496 + [(g++ only) compile with exceptions [[default=no]]]), 10.4497 + [case "${enableval}" in 10.4498 + yes) enable_exceptions=yes ;; 10.4499 + no) enable_exceptions=no ;; 10.4500 + *) AC_MSG_ERROR(bad value "${enableval}" for --enable-exceptions) ;; 10.4501 + esac], 10.4502 + [enable_exceptions=no]) 10.4503 + 10.4504 +if test x"$enable_exceptions" = x"no"; then 10.4505 + if test "x$GXX" = "xyes"; then 10.4506 + unset _exception_flag 10.4507 + dnl This is for GCC >= 2.8 10.4508 + SIM_AC_CXX_COMPILER_OPTION([-fno-exceptions], [_exception_flag=-fno-exceptions]) 10.4509 + if test x"${_exception_flag+set}" != x"set"; then 10.4510 + dnl For GCC versions < 2.8 10.4511 + SIM_AC_CXX_COMPILER_OPTION([-fno-handle-exceptions], 10.4512 + [_exception_flag=-fno-handle-exceptions]) 10.4513 + fi 10.4514 + if test x"${_exception_flag+set}" != x"set"; then 10.4515 + AC_MSG_WARN([couldn't find a valid option for avoiding exception handling]) 10.4516 + else 10.4517 + CXXFLAGS="$CXXFLAGS $_exception_flag" 10.4518 + fi 10.4519 + fi 10.4520 +else 10.4521 + if test x"$GXX" != x"yes"; then 10.4522 + AC_MSG_WARN([--enable-exceptions only has effect when using GNU g++]) 10.4523 + fi 10.4524 +fi 10.4525 +]) 10.4526 + 10.4527 + 10.4528 +# Use this file to store miscellaneous macros related to checking 10.4529 +# compiler features. 10.4530 + 10.4531 +# Usage: 10.4532 +# SIM_AC_CC_COMPILER_OPTION(OPTION-TO-TEST, ACTION-IF-TRUE [, ACTION-IF-FALSE]) 10.4533 +# SIM_AC_CXX_COMPILER_OPTION(OPTION-TO-TEST, ACTION-IF-TRUE [, ACTION-IF-FALSE]) 10.4534 +# 10.4535 +# Description: 10.4536 +# 10.4537 +# Check whether the current C or C++ compiler can handle a 10.4538 +# particular command-line option. 10.4539 +# 10.4540 +# 10.4541 +# Author: Morten Eriksen, <mortene@sim.no>. 10.4542 +# 10.4543 +# * [mortene:19991218] improve macros by catching and analyzing 10.4544 +# stderr (at least to see if there was any output there)? 10.4545 +# 10.4546 + 10.4547 +AC_DEFUN([SIM_AC_COMPILER_OPTION], [ 10.4548 +sim_ac_save_cppflags=$CPPFLAGS 10.4549 +CPPFLAGS="$CPPFLAGS $1" 10.4550 +AC_TRY_COMPILE([], [], [sim_ac_accept_result=yes], [sim_ac_accept_result=no]) 10.4551 +AC_MSG_RESULT([$sim_ac_accept_result]) 10.4552 +CPPFLAGS=$sim_ac_save_cppflags 10.4553 +# This need to go last, in case CPPFLAGS is modified in $2 or $3. 10.4554 +if test $sim_ac_accept_result = yes; then 10.4555 + ifelse($2, , :, $2) 10.4556 +else 10.4557 + ifelse($3, , :, $3) 10.4558 +fi 10.4559 +]) 10.4560 + 10.4561 +AC_DEFUN([SIM_AC_CC_COMPILER_OPTION], [ 10.4562 +AC_LANG_SAVE 10.4563 +AC_LANG_C 10.4564 +AC_MSG_CHECKING([whether $CC accepts $1]) 10.4565 +SIM_AC_COMPILER_OPTION($1, $2, $3) 10.4566 +AC_LANG_RESTORE 10.4567 +]) 10.4568 + 10.4569 +AC_DEFUN([SIM_AC_CXX_COMPILER_OPTION], [ 10.4570 +AC_LANG_SAVE 10.4571 +AC_LANG_CPLUSPLUS 10.4572 +AC_MSG_CHECKING([whether $CXX accepts $1]) 10.4573 +SIM_AC_COMPILER_OPTION($1, $2, $3) 10.4574 +AC_LANG_RESTORE 10.4575 +]) 10.4576 + 10.4577 +# Usage: 10.4578 +# SIM_AC_PROFILING_SUPPORT 10.4579 +# 10.4580 +# Description: 10.4581 +# Let the user decide if profiling code should be compiled 10.4582 +# in. The compiled libraries/executables will use a lot less space 10.4583 +# if they don't contain profiling code information, and they will also 10.4584 +# execute faster. 10.4585 +# 10.4586 +# Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX 10.4587 +# in the configure.in script. 10.4588 +# 10.4589 +# Author: Morten Eriksen, <mortene@sim.no>. 10.4590 +# 10.4591 +# TODO: 10.4592 +# * [mortene:19991114] make this work with compilers other than gcc/g++ 10.4593 +# 10.4594 + 10.4595 +AC_DEFUN([SIM_AC_PROFILING_SUPPORT], [ 10.4596 +AC_PREREQ([2.13]) 10.4597 +AC_ARG_ENABLE( 10.4598 + [profile], 10.4599 + AC_HELP_STRING([--enable-profile], 10.4600 + [(GCC only) turn on inclusion of profiling code [[default=no]]]), 10.4601 + [case "${enableval}" in 10.4602 + yes) enable_profile=yes ;; 10.4603 + no) enable_profile=no ;; 10.4604 + *) AC_MSG_ERROR(bad value "${enableval}" for --enable-profile) ;; 10.4605 + esac], 10.4606 + [enable_profile=no]) 10.4607 + 10.4608 +if test x"$enable_profile" = x"yes"; then 10.4609 + if test x"$GXX" = x"yes" || test x"$GCC" = x"yes"; then 10.4610 + CFLAGS="$CFLAGS -pg" 10.4611 + CXXFLAGS="$CXXFLAGS -pg" 10.4612 + LDFLAGS="$LDFLAGS -pg" 10.4613 + else 10.4614 + AC_MSG_WARN([--enable-profile only has effect when using GNU gcc or g++]) 10.4615 + fi 10.4616 +fi 10.4617 +]) 10.4618 + 10.4619 + 10.4620 +# Usage: 10.4621 +# SIM_AC_COMPILER_WARNINGS 10.4622 +# 10.4623 +# Description: 10.4624 +# Take care of making a sensible selection of warning messages 10.4625 +# to turn on or off. 10.4626 +# 10.4627 +# Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX 10.4628 +# in the configure.in script. 10.4629 +# 10.4630 +# Author: Morten Eriksen, <mortene@sim.no>. 10.4631 +# 10.4632 +# TODO: 10.4633 +# * [mortene:19991114] find out how to get GCC's 10.4634 +# -Werror-implicit-function-declaration option to work as expected 10.4635 +# 10.4636 +# * [larsa:20010504] rename to SIM_AC_COMPILER_WARNINGS and clean up 10.4637 +# the macro 10.4638 + 10.4639 +AC_DEFUN([SIM_AC_COMPILER_WARNINGS], [ 10.4640 +AC_ARG_ENABLE( 10.4641 + [warnings], 10.4642 + AC_HELP_STRING([--enable-warnings], 10.4643 + [turn on warnings when compiling [[default=yes]]]), 10.4644 + [case "${enableval}" in 10.4645 + yes) enable_warnings=yes ;; 10.4646 + no) enable_warnings=no ;; 10.4647 + *) AC_MSG_ERROR([bad value "$enableval" for --enable-warnings]) ;; 10.4648 + esac], 10.4649 + [enable_warnings=yes]) 10.4650 + 10.4651 +if test x"$enable_warnings" = x"yes"; then 10.4652 + if test x"$GCC" = x"yes"; then 10.4653 + SIM_AC_CC_COMPILER_OPTION([-W -Wall -Wno-unused], 10.4654 + [CFLAGS="$CFLAGS -W -Wall -Wno-unused"]) 10.4655 + SIM_AC_CC_COMPILER_OPTION([-Wno-multichar], 10.4656 + [CFLAGS="$CFLAGS -Wno-multichar"]) 10.4657 + fi 10.4658 + 10.4659 + if test x"$GXX" = x"yes"; then 10.4660 + SIM_AC_CXX_COMPILER_OPTION([-W -Wall -Wno-unused], 10.4661 + [CXXFLAGS="$CXXFLAGS -W -Wall -Wno-unused"]) 10.4662 + SIM_AC_CXX_COMPILER_OPTION([-Wno-multichar], 10.4663 + [CXXFLAGS="$CXXFLAGS -Wno-multichar"]) 10.4664 + fi 10.4665 + 10.4666 + case $host in 10.4667 + *-*-irix*) 10.4668 + ### Turn on all warnings ###################################### 10.4669 + if test x"$CC" = xcc || test x"$CC" = xCC; then 10.4670 + SIM_AC_CC_COMPILER_OPTION([-fullwarn], [CFLAGS="$CFLAGS -fullwarn"]) 10.4671 + fi 10.4672 + if test x"$CXX" = xCC; then 10.4673 + SIM_AC_CXX_COMPILER_OPTION([-fullwarn], [CXXFLAGS="$CXXFLAGS -fullwarn"]) 10.4674 + fi 10.4675 + 10.4676 + ### Turn off specific (bogus) warnings ######################## 10.4677 + 10.4678 + ### SGI MipsPro v?.?? (our compiler on IRIX 6.2) ############## 10.4679 + ## 10.4680 + ## 3115: ``type qualifiers are meaningless in this declaration''. 10.4681 + ## 3262: unused variables. 10.4682 + ## 10.4683 + ### SGI MipsPro v7.30 ######################################### 10.4684 + ## 10.4685 + ## 1174: "The function was declared but never referenced." 10.4686 + ## 1209: "The controlling expression is constant." (kill warning on 10.4687 + ## if (0), assert(FALSE), etc). 10.4688 + ## 1355: Kill warnings on extra semicolons (which happens with some 10.4689 + ## of the Coin macros). 10.4690 + ## 1375: Non-virtual destructors in base classes. 10.4691 + ## 3201: Unused argument to a function. 10.4692 + ## 1110: "Statement is not reachable" (the Lex/Flex generated code in 10.4693 + ## Coin/src/engines has lots of shitty code which needs this). 10.4694 + ## 1506: Implicit conversion from "unsigned long" to "long". 10.4695 + ## SbTime.h in SGI/TGS Inventor does this, so we need to kill 10.4696 + ## this warning to avoid all the output clutter when compiling 10.4697 + ## the SoQt, SoGtk or SoXt libraries on IRIX with SGI MIPSPro CC. 10.4698 + 10.4699 + sim_ac_bogus_warnings="-woff 3115,3262,1174,1209,1355,1375,3201,1110,1506" 10.4700 + 10.4701 + if test x"$CC" = xcc || test x"$CC" = xCC; then 10.4702 + SIM_AC_CC_COMPILER_OPTION([$sim_ac_bogus_warnings], 10.4703 + [CFLAGS="$CFLAGS $sim_ac_bogus_warnings"]) 10.4704 + fi 10.4705 + if test x"$CXX" = xCC; then 10.4706 + SIM_AC_CXX_COMPILER_OPTION([$sim_ac_bogus_warnings], 10.4707 + [CXXFLAGS="$CXXFLAGS $sim_ac_bogus_warnings"]) 10.4708 + fi 10.4709 + ;; 10.4710 + esac 10.4711 +fi 10.4712 +]) 10.4713 + 10.4714 +# Usage: 10.4715 +# SIM_AC_COMPILE_DEBUG([ACTION-IF-DEBUG[, ACTION-IF-NOT-DEBUG]]) 10.4716 +# 10.4717 +# Description: 10.4718 +# Let the user decide if compilation should be done in "debug mode". 10.4719 +# If compilation is not done in debug mode, all assert()'s in the code 10.4720 +# will be disabled. 10.4721 +# 10.4722 +# Also sets enable_debug variable to either "yes" or "no", so the 10.4723 +# configure.in writer can add package-specific actions. Default is "yes". 10.4724 +# This was also extended to enable the developer to set up the two first 10.4725 +# macro arguments following the well-known ACTION-IF / ACTION-IF-NOT 10.4726 +# concept. 10.4727 +# 10.4728 +# Authors: 10.4729 +# Morten Eriksen, <mortene@sim.no> 10.4730 +# Lars J. Aas, <larsa@sim.no> 10.4731 +# 10.4732 + 10.4733 +AC_DEFUN([SIM_AC_COMPILE_DEBUG], [ 10.4734 +AC_ARG_ENABLE( 10.4735 + [debug], 10.4736 + AC_HELP_STRING([--enable-debug], [compile in debug mode [[default=yes]]]), 10.4737 + [case "${enableval}" in 10.4738 + yes) enable_debug=true ;; 10.4739 + no) enable_debug=false ;; 10.4740 + true | false) enable_debug=${enableval} ;; 10.4741 + *) AC_MSG_ERROR(bad value "${enableval}" for --enable-debug) ;; 10.4742 + esac], 10.4743 + [enable_debug=true]) 10.4744 + 10.4745 +if $enable_debug; then 10.4746 + DSUFFIX=d 10.4747 + ifelse([$1], , :, [$1]) 10.4748 +else 10.4749 + DSUFFIX= 10.4750 + CPPFLAGS="$CPPFLAGS -DNDEBUG" 10.4751 + ifelse([$2], , :, [$2]) 10.4752 +fi 10.4753 +AC_SUBST(DSUFFIX) 10.4754 +]) 10.4755 + 10.4756 +# Usage: 10.4757 +# SIM_AC_COMPILER_OPTIMIZATION 10.4758 +# 10.4759 +# Description: 10.4760 +# Let the user decide if optimization should be attempted turned off 10.4761 +# by stripping off an "-O[0-9]" option. 10.4762 +# 10.4763 +# Note: this macro must be placed after either AC_PROG_CC or AC_PROG_CXX 10.4764 +# in the configure.in script. 10.4765 +# 10.4766 +# FIXME: this is pretty much just a dirty hack. Unfortunately, this 10.4767 +# seems to be the best we can do without fixing Autoconf to behave 10.4768 +# properly wrt setting optimization options. 20011021 mortene. 10.4769 +# 10.4770 +# Author: Morten Eriksen, <mortene@sim.no>. 10.4771 +# 10.4772 + 10.4773 +AC_DEFUN([SIM_AC_COMPILER_OPTIMIZATION], [ 10.4774 +AC_ARG_ENABLE( 10.4775 + [optimization], 10.4776 + AC_HELP_STRING([--enable-optimization], 10.4777 + [allow compilers to make optimized code [[default=yes]]]), 10.4778 + [case "${enableval}" in 10.4779 + yes) sim_ac_enable_optimization=true ;; 10.4780 + no) sim_ac_enable_optimization=false ;; 10.4781 + *) AC_MSG_ERROR(bad value "${enableval}" for --enable-optimization) ;; 10.4782 + esac], 10.4783 + [sim_ac_enable_optimization=true]) 10.4784 + 10.4785 +if $sim_ac_enable_optimization; then 10.4786 + : 10.4787 +else 10.4788 + CFLAGS="`echo $CFLAGS | sed 's/-O[[0-9]]*[[ ]]*//'`" 10.4789 + CXXFLAGS="`echo $CXXFLAGS | sed 's/-O[[0-9]]*[[ ]]*//'`" 10.4790 +fi 10.4791 +]) 10.4792 + 10.4793 +# Usage: 10.4794 +# SIM_CHECK_OIV_XT([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]]) 10.4795 +# 10.4796 +# Try to compile and link against the Xt GUI glue library for 10.4797 +# the Open Inventor development system. Sets this shell 10.4798 +# variable: 10.4799 +# 10.4800 +# $sim_ac_oivxt_libs (link libraries the linker needs for InventorXt) 10.4801 +# 10.4802 +# The LIBS variable will also be modified accordingly. In addition, 10.4803 +# the variable $sim_ac_oivxt_avail is set to "yes" if the Xt glue 10.4804 +# library for the Open Inventor development system is found. 10.4805 +# 10.4806 +# Authors: 10.4807 +# Morten Eriksen, <mortene@sim.no>. 10.4808 +# Lars J. Aas, <larsa@sim.no>. 10.4809 +# 10.4810 + 10.4811 +AC_DEFUN([SIM_CHECK_OIV_XT], [ 10.4812 +sim_ac_oivxt_avail=no 10.4813 + 10.4814 +sim_ac_oivxt_libs="-lInventorXt" 10.4815 +sim_ac_save_libs=$LIBS 10.4816 +LIBS="$sim_ac_oivxt_libs $LIBS" 10.4817 + 10.4818 +AC_CACHE_CHECK([for Xt glue library in the Open Inventor developer kit], 10.4819 + sim_cv_lib_oivxt_avail, 10.4820 + [AC_TRY_LINK([#include <Inventor/Xt/SoXt.h>], 10.4821 + [(void)SoXt::init(0L, 0L);], 10.4822 + [sim_cv_lib_oivxt_avail=yes], 10.4823 + [sim_cv_lib_oivxt_avail=no])]) 10.4824 + 10.4825 +if test x"$sim_cv_lib_oivxt_avail" = xyes; then 10.4826 + sim_ac_oivxt_avail=yes 10.4827 + $1 10.4828 +else 10.4829 + LIBS=$sim_ac_save_libs 10.4830 + $2 10.4831 +fi 10.4832 +]) 10.4833 + 10.4834 +# ************************************************************************** 10.4835 +# SIM_AC_WITH_INVENTOR 10.4836 +# This macro just ensures the --with-inventor option is used. 10.4837 + 10.4838 +AC_DEFUN([SIM_AC_WITH_INVENTOR], [ 10.4839 +: ${sim_ac_want_inventor=false} 10.4840 +AC_ARG_WITH([inventor], 10.4841 + AC_HELP_STRING([--with-inventor], [use another Open Inventor than Coin [[default=no]]]) 10.4842 +AC_HELP_STRING([--with-inventor=PATH], [specify where Open Inventor resides]), 10.4843 + [case "$withval" in 10.4844 + no) sim_ac_want_inventor=false ;; 10.4845 + yes) sim_ac_want_inventor=true 10.4846 + test -n "$OIVHOME" && 10.4847 + SIM_AC_DEBACKSLASH(sim_ac_inventor_path, "$OIVHOME") ;; 10.4848 + *) sim_ac_want_inventor=true; sim_ac_inventor_path="$withval" ;; 10.4849 + esac]) 10.4850 +]) # SIM_AC_WITH_INVENTOR 10.4851 + 10.4852 +# ************************************************************************** 10.4853 +# SIM_AC_HAVE_INVENTOR_IMAGE_IFELSE 10.4854 + 10.4855 +AC_DEFUN([SIM_AC_HAVE_INVENTOR_IMAGE_IFELSE], [ 10.4856 +AC_REQUIRE([SIM_AC_WITH_INVENTOR]) 10.4857 + 10.4858 +if $sim_ac_want_inventor; then 10.4859 + sim_ac_inventor_image_save_CPPFLAGS="$CPPFLAGS" 10.4860 + sim_ac_inventor_image_save_LDFLAGS="$LDFLAGS" 10.4861 + sim_ac_inventor_image_save_LIBS="$LIBS" 10.4862 + 10.4863 + if test s${sim_ac_inventor_path+et} = set; then 10.4864 + sim_ac_inventor_image_cppflags="-I${sim_ac_inventor_path}/include" 10.4865 + sim_ac_inventor_image_ldflags="-L${sim_ac_inventor_path}/lib" 10.4866 + fi 10.4867 + sim_ac_inventor_image_libs="-limage" 10.4868 + 10.4869 + AC_CACHE_CHECK( 10.4870 + [if linking with libimage is possible], 10.4871 + sim_cv_have_inventor_image, 10.4872 + [ 10.4873 + CPPFLAGS="$sim_ac_inventor_image_cppflags $CPPFLAGS" 10.4874 + LDFLAGS="$sim_ac_inventor_image_ldflags $LDFLAGS" 10.4875 + LIBS="$sim_ac_inventor_image_libs $LIBS" 10.4876 + AC_TRY_LINK( 10.4877 + [], 10.4878 + [], 10.4879 + [sim_cv_have_inventor_image=true], 10.4880 + [sim_cv_have_inventor_image=false]) 10.4881 + CPPFLAGS="$sim_ac_inventor_image_save_CPPFLAGS" 10.4882 + LDFLAGS="$sim_ac_inventor_image_save_LDFLAGS" 10.4883 + LIBS="$sim_ac_inventor_image_save_LIBS" 10.4884 + ]) 10.4885 + 10.4886 + if $sim_cv_have_inventor_image; then 10.4887 + ifelse([$1], , :, [$1]) 10.4888 + else 10.4889 + ifelse([$2], , :, [$2]) 10.4890 + fi 10.4891 +else 10.4892 + ifelse([$2], , :, [$2]) 10.4893 +fi 10.4894 +]) # SIM_AC_HAVE_INVENTOR_IMAGE_IFELSE 10.4895 + 10.4896 +# ************************************************************************** 10.4897 +# SIM_AC_HAVE_INVENTOR_IFELSE( [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND] ] ) 10.4898 +# 10.4899 +# Defines $sim_ac_inventor_cppflags, $sim_ac_inventor_ldflags and 10.4900 +# $sim_ac_inventor_libs. 10.4901 + 10.4902 +AC_DEFUN([SIM_AC_HAVE_INVENTOR_IFELSE], [ 10.4903 +AC_REQUIRE([SIM_AC_WITH_INVENTOR]) 10.4904 + 10.4905 +if $sim_ac_want_inventor; then 10.4906 + sim_ac_save_CPPFLAGS="$CPPFLAGS" 10.4907 + sim_ac_save_LDFLAGS="$LDFLAGS" 10.4908 + sim_ac_save_LIBS="$LIBS" 10.4909 + 10.4910 + SIM_AC_HAVE_INVENTOR_IMAGE_IFELSE([ 10.4911 + sim_ac_inventor_cppflags="$sim_ac_inventor_image_cppflags" 10.4912 + sim_ac_inventor_ldflags="$sim_ac_inventor_image_ldflags" 10.4913 + ], [ 10.4914 + if test s${sim_ac_inventor_path+et} = set; then 10.4915 + sim_ac_inventor_cppflags="-I${sim_ac_inventor_path}/include" 10.4916 + sim_ac_inventor_ldflags="-L${sim_ac_inventor_path}/lib" 10.4917 + fi 10.4918 + sim_ac_inventor_image_libs= 10.4919 + ]) 10.4920 + 10.4921 + # Let's at least test for "libInventor". 10.4922 + sim_ac_inventor_chk_libs="-lInventor" 10.4923 + sim_ac_inventor_libs=UNRESOLVED 10.4924 + 10.4925 + CPPFLAGS="$sim_ac_inventor_cppflags $CPPFLAGS" 10.4926 + 10.4927 + AC_CHECK_HEADER([Inventor/SbBasic.h], 10.4928 + [sim_ac_sbbasic=true], 10.4929 + [AC_MSG_WARN([header file Inventor/SbBasic.h not found]) 10.4930 + sim_ac_sbbasic=false]) 10.4931 + 10.4932 + if $sim_ac_sbbasic; then 10.4933 + AC_MSG_CHECKING([the Open Inventor version]) 10.4934 + # See if we can get the TGS_VERSION number for including a 10.4935 + # check for inv{ver}.lib. 10.4936 + # TGS did not include TGS_VERSION before 2.6, so this may have to be 10.4937 + # back-ported to SO_VERSION+SO_REVISION usage. larsa 2001-07-25 10.4938 + cat <<EOF > conftest.c 10.4939 +#include <Inventor/SbBasic.h> 10.4940 +#ifdef __COIN__ 10.4941 +#error Testing for original Open Inventor, but found Coin... 10.4942 +#endif 10.4943 +PeekInventorVersion: TGS_VERSION 10.4944 +EOF 10.4945 + if test x"$CPP" = x; then 10.4946 + AC_MSG_ERROR([cpp not detected - aborting. notify maintainer at coin-support@coin3d.org.]) 10.4947 + fi 10.4948 + echo "$CPP $CPPFLAGS conftest.c" >&AS_MESSAGE_LOG_FD 10.4949 + tgs_version_line=`$CPP $CPPFLAGS conftest.c 2>&AS_MESSAGE_LOG_FD | grep "^PeekInventorVersion"` 10.4950 + if test x"$tgs_version_line" = x; then 10.4951 + echo "second try..." >&AS_MESSAGE_LOG_FD 10.4952 + echo "$CPP -DWIN32 $CPPFLAGS conftest.c" >&AS_MESSAGE_LOG_FD 10.4953 + tgs_version_line=`$CPP -DWIN32 $CPPFLAGS conftest.c 2>&AS_MESSAGE_LOG_FD | grep "^PeekInventorVersion"` 10.4954 + fi 10.4955 + rm -f conftest.c 10.4956 + tgs_version=`echo $tgs_version_line | cut -c22-24` 10.4957 + tgs_suffix= 10.4958 + if test x"${enable_inventor_debug+set}" = xset && 10.4959 + test x"${enable_inventor_debug}" = xyes; then 10.4960 + tgs_suffix=d 10.4961 + fi 10.4962 + if test x"$tgs_version" != xTGS; then 10.4963 + sim_ac_inventor_chk_libs="$sim_ac_inventor_chk_libs -linv$tgs_version$tgs_suffix" 10.4964 + tgs_version_string=`echo $tgs_version | sed 's/\(.\)\(.\)\(.\)/\1.\2.\3/g'` 10.4965 + AC_MSG_RESULT([TGS Open Inventor v$tgs_version_string]) 10.4966 + else 10.4967 + AC_MSG_RESULT([probably SGI or older TGS Open Inventor]) 10.4968 + fi 10.4969 + 10.4970 + AC_MSG_CHECKING([for Open Inventor library]) 10.4971 + 10.4972 + for sim_ac_iv_cppflags_loop in "" "-DWIN32"; do 10.4973 + for sim_ac_iv_libcheck in $sim_ac_inventor_chk_libs; do 10.4974 + if test "x$sim_ac_inventor_libs" = "xUNRESOLVED"; then 10.4975 + CPPFLAGS="$sim_ac_iv_cppflags_loop $sim_ac_inventor_cppflags $sim_ac_save_CPPFLAGS" 10.4976 + LDFLAGS="$sim_ac_inventor_ldflags $sim_ac_save_LDFLAGS" 10.4977 + LIBS="$sim_ac_iv_libcheck $sim_ac_inventor_image_libs $sim_ac_save_LIBS" 10.4978 + AC_TRY_LINK([#include <Inventor/SoDB.h>], 10.4979 + [SoDB::init();], 10.4980 + [sim_ac_inventor_libs="$sim_ac_iv_libcheck $sim_ac_inventor_image_libs" 10.4981 + sim_ac_inventor_cppflags="$sim_ac_iv_cppflags_loop $sim_ac_inventor_cppflags"]) 10.4982 + fi 10.4983 + done 10.4984 + done 10.4985 + 10.4986 + if test "x$sim_ac_inventor_libs" != "xUNRESOLVED"; then 10.4987 + AC_MSG_RESULT($sim_ac_inventor_cppflags $sim_ac_inventor_ldflags $sim_ac_inventor_libs) 10.4988 + else 10.4989 + AC_MSG_RESULT([unavailable]) 10.4990 + fi 10.4991 + 10.4992 + fi # sim_ac_sbbasic = TRUE 10.4993 + 10.4994 + CPPFLAGS="$sim_ac_save_CPPFLAGS" 10.4995 + LDFLAGS="$sim_ac_save_LDFLAGS" 10.4996 + LIBS="$sim_ac_save_LIBS" 10.4997 + 10.4998 + if test "x$sim_ac_inventor_libs" != "xUNRESOLVED"; then 10.4999 + : 10.5000 + $1 10.5001 + else 10.5002 + : 10.5003 + $2 10.5004 + fi 10.5005 +else 10.5006 + ifelse([$2], , :, [$2]) 10.5007 +fi 10.5008 +]) # SIM_AC_HAVE_INVENTOR_IFELSE 10.5009 + 10.5010 +# ************************************************************************** 10.5011 + 10.5012 +# utility macros: 10.5013 +AC_DEFUN([AC_TOUPPER], [translit([$1], [[a-z]], [[A-Z]])]) 10.5014 +AC_DEFUN([AC_TOLOWER], [translit([$1], [[A-Z]], [[a-z]])]) 10.5015 + 10.5016 +# ************************************************************************** 10.5017 +# SIM_AC_HAVE_INVENTOR_NODE( NODE, [ACTION-IF-FOUND] [, ACTION-IF-NOT-FOUND]) 10.5018 +# 10.5019 +# Check whether or not the given NODE is available in the Open Inventor 10.5020 +# development system. If so, the HAVE_<NODE> define is set. 10.5021 +# 10.5022 +# Authors: 10.5023 +# Lars J. Aas <larsa@sim.no> 10.5024 +# Morten Eriksen <mortene@sim.no> 10.5025 + 10.5026 +AC_DEFUN([SIM_AC_HAVE_INVENTOR_NODE], 10.5027 +[m4_do([pushdef([cache_variable], sim_cv_have_oiv_[]AC_TOLOWER([$1])_node)], 10.5028 + [pushdef([DEFINE_VARIABLE], HAVE_[]AC_TOUPPER([$1]))]) 10.5029 +AC_CACHE_CHECK( 10.5030 + [if the Open Inventor $1 node is available], 10.5031 + cache_variable, 10.5032 + [AC_TRY_LINK( 10.5033 + [#include <Inventor/nodes/$1.h>], 10.5034 + [$1 * p = new $1;], 10.5035 + cache_variable=true, 10.5036 + cache_variable=false)]) 10.5037 + 10.5038 +if $cache_variable; then 10.5039 + AC_DEFINE(DEFINE_VARIABLE, 1, [Define to enable use of the Open Inventor $1 node]) 10.5040 + $2 10.5041 +else 10.5042 + ifelse([$3], , :, [$3]) 10.5043 +fi 10.5044 +m4_do([popdef([cache_variable])], 10.5045 + [popdef([DEFINE_VARIABLE])]) 10.5046 +]) # SIM_AC_HAVE_INVENTOR_NODE 10.5047 + 10.5048 +# ************************************************************************** 10.5049 +# SIM_AC_HAVE_INVENTOR_FEATURE(MESSAGE, HEADERS, BODY, DEFINE 10.5050 +# [, ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 10.5051 +# 10.5052 +# Authors: 10.5053 +# Morten Eriksen <mortene@sim.no> 10.5054 + 10.5055 +AC_DEFUN([SIM_AC_HAVE_INVENTOR_FEATURE], 10.5056 +[m4_do([pushdef([cache_variable], sim_cv_have_oiv_[]AC_TOLOWER([$4]))], 10.5057 + [pushdef([DEFINE_VARIABLE], AC_TOUPPER([$4]))]) 10.5058 +AC_CACHE_CHECK( 10.5059 + [$1], 10.5060 + cache_variable, 10.5061 + [AC_TRY_LINK( 10.5062 + [$2], 10.5063 + [$3], 10.5064 + cache_variable=true, 10.5065 + cache_variable=false)]) 10.5066 + 10.5067 +if $cache_variable; then 10.5068 + AC_DEFINE(DEFINE_VARIABLE, 1, [Define to enable use of Inventor feature]) 10.5069 + $5 10.5070 +else 10.5071 + ifelse([$6], , :, [$6]) 10.5072 +fi 10.5073 +m4_do([popdef([cache_variable])], 10.5074 + [popdef([DEFINE_VARIABLE])]) 10.5075 +]) # SIM_AC_HAVE_INVENTOR_FEATURE 10.5076 + 10.5077 + 10.5078 +# Convenience macros SIM_AC_DEBACKSLASH and SIM_AC_DOBACKSLASH for 10.5079 +# converting to and from MSWin/MS-DOS style paths. 10.5080 +# 10.5081 +# Example use: 10.5082 +# 10.5083 +# SIM_AC_DEBACKSLASH(my_ac_reversed, "C:\\mydir\\bin") 10.5084 +# 10.5085 +# will give a shell variable $my_ac_reversed with the value "C:/mydir/bin"). 10.5086 +# Vice versa for SIM_AC_DOBACKSLASH. 10.5087 +# 10.5088 +# Author: Marius Bugge Monsen <mariusbu@sim.no> 10.5089 +# Lars Jørgen Aas <larsa@sim.no> 10.5090 +# Morten Eriksen <mortene@sim.no> 10.5091 + 10.5092 +AC_DEFUN([SIM_AC_DEBACKSLASH], [ 10.5093 +eval "$1=\"`echo $2 | sed -e 's%\\\\%\\/%g'`\"" 10.5094 +]) 10.5095 + 10.5096 +AC_DEFUN([SIM_AC_DOBACKSLASH], [ 10.5097 +eval "$1=\"`echo $2 | sed -e 's%\\/%\\\\%g'`\"" 10.5098 +]) 10.5099 + 10.5100 +AC_DEFUN([SIM_AC_DODOUBLEBACKSLASH], [ 10.5101 +eval "$1=\"`echo $2 | sed -e 's%\\/%\\\\\\\\\\\\\\\\%g'`\"" 10.5102 +]) 10.5103 + 10.5104 + 10.5105 +# Usage: 10.5106 +# SIM_AC_HAVE_COIN_IFELSE( IF-FOUND, IF-NOT-FOUND ) 10.5107 +# 10.5108 +# Description: 10.5109 +# This macro locates the Coin development system. If it is found, 10.5110 +# the set of variables listed below are set up as described and made 10.5111 +# available to the configure script. 10.5112 +# 10.5113 +# The $sim_ac_coin_desired variable can be set to false externally to 10.5114 +# make Coin default to be excluded. 10.5115 +# 10.5116 +# Autoconf Variables: 10.5117 +# > $sim_ac_coin_desired true | false (defaults to true) 10.5118 +# < $sim_ac_coin_avail true | false 10.5119 +# < $sim_ac_coin_cppflags (extra flags the preprocessor needs) 10.5120 +# < $sim_ac_coin_cflags (extra flags the C compiler needs) 10.5121 +# < $sim_ac_coin_cxxflags (extra flags the C++ compiler needs) 10.5122 +# < $sim_ac_coin_ldflags (extra flags the linker needs) 10.5123 +# < $sim_ac_coin_libs (link library flags the linker needs) 10.5124 +# < $sim_ac_coin_datadir (location of Coin data files) 10.5125 +# < $sim_ac_coin_includedir (location of Coin headers) 10.5126 +# < $sim_ac_coin_version (the libCoin version) 10.5127 +# < $sim_ac_coin_msvcrt (the MSVC++ C library Coin was built with) 10.5128 +# < $sim_ac_coin_configcmd (the path to coin-config or "false") 10.5129 +# 10.5130 +# Authors: 10.5131 +# Lars J. Aas, <larsa@sim.no> 10.5132 +# Morten Eriksen, <mortene@sim.no> 10.5133 +# 10.5134 +# TODO: 10.5135 +# 10.5136 + 10.5137 +AC_DEFUN([SIM_AC_HAVE_COIN_IFELSE], [ 10.5138 +AC_PREREQ([2.14a]) 10.5139 + 10.5140 +# official variables 10.5141 +sim_ac_coin_avail=false 10.5142 +sim_ac_coin_cppflags= 10.5143 +sim_ac_coin_cflags= 10.5144 +sim_ac_coin_cxxflags= 10.5145 +sim_ac_coin_ldflags= 10.5146 +sim_ac_coin_libs= 10.5147 +sim_ac_coin_datadir= 10.5148 +sim_ac_coin_includedir= 10.5149 +sim_ac_coin_version= 10.5150 + 10.5151 +# internal variables 10.5152 +: ${sim_ac_coin_desired=true} 10.5153 +sim_ac_coin_extrapath= 10.5154 + 10.5155 +AC_ARG_WITH([coin], 10.5156 +AC_HELP_STRING([--with-coin], [enable use of Coin [[default=yes]]]) 10.5157 +AC_HELP_STRING([--with-coin=DIR], [give prefix location of Coin]), 10.5158 + [ case $withval in 10.5159 + no) sim_ac_coin_desired=false ;; 10.5160 + yes) sim_ac_coin_desired=true ;; 10.5161 + *) sim_ac_coin_desired=true 10.5162 + sim_ac_coin_extrapath=$withval ;; 10.5163 + esac], 10.5164 + []) 10.5165 + 10.5166 +if $sim_ac_coin_desired; then 10.5167 + sim_ac_path=$PATH 10.5168 + test -z "$sim_ac_coin_extrapath" || ## search in --with-coin path 10.5169 + sim_ac_path=$sim_ac_coin_extrapath/bin:$sim_ac_path 10.5170 + test x"$prefix" = xNONE || ## search in --prefix path 10.5171 + sim_ac_path=$sim_ac_path:$prefix/bin 10.5172 + 10.5173 + AC_PATH_PROG(sim_ac_coin_configcmd, coin-config, false, $sim_ac_path) 10.5174 + if $sim_ac_coin_configcmd; then 10.5175 + test -n "$CONFIG" && 10.5176 + $sim_ac_coin_configcmd --alternate=$CONFIG >/dev/null 2>/dev/null && 10.5177 + sim_ac_coin_configcmd="$sim_ac_coin_configcmd --alternate=$CONFIG" 10.5178 + sim_ac_coin_version=`$sim_ac_coin_configcmd --version` 10.5179 + sim_ac_coin_cppflags=`$sim_ac_coin_configcmd --cppflags` 10.5180 + sim_ac_coin_cflags=`$sim_ac_coin_configcmd --cflags 2>/dev/null` 10.5181 + sim_ac_coin_cxxflags=`$sim_ac_coin_configcmd --cxxflags` 10.5182 + sim_ac_coin_ldflags=`$sim_ac_coin_configcmd --ldflags` 10.5183 + sim_ac_coin_libs=`$sim_ac_coin_configcmd --libs` 10.5184 + sim_ac_coin_datadir=`$sim_ac_coin_configcmd --datadir` 10.5185 + # Hide stderr on the following, as ``--includedir'', ``--msvcrt'' 10.5186 + # and ``--cflags'' options were added late to coin-config. 10.5187 + sim_ac_coin_includedir=`$sim_ac_coin_configcmd --includedir 2>/dev/null` 10.5188 + sim_ac_coin_msvcrt=`$sim_ac_coin_configcmd --msvcrt 2>/dev/null` 10.5189 + sim_ac_coin_cflags=`$sim_ac_coin_configcmd --cflags 2>/dev/null` 10.5190 + AC_CACHE_CHECK( 10.5191 + [whether libCoin is available], 10.5192 + sim_cv_coin_avail, 10.5193 + [sim_ac_save_cppflags=$CPPFLAGS 10.5194 + sim_ac_save_ldflags=$LDFLAGS 10.5195 + sim_ac_save_libs=$LIBS 10.5196 + CPPFLAGS="$CPPFLAGS $sim_ac_coin_cppflags" 10.5197 + LDFLAGS="$LDFLAGS $sim_ac_coin_ldflags" 10.5198 + LIBS="$sim_ac_coin_libs $LIBS" 10.5199 + AC_LANG_PUSH(C++) 10.5200 + AC_TRY_LINK( 10.5201 + [#include <Inventor/SoDB.h>], 10.5202 + [SoDB::init();], 10.5203 + [sim_cv_coin_avail=true], 10.5204 + [sim_cv_coin_avail=false]) 10.5205 + AC_LANG_POP 10.5206 + CPPFLAGS=$sim_ac_save_cppflags 10.5207 + LDFLAGS=$sim_ac_save_ldflags 10.5208 + LIBS=$sim_ac_save_libs 10.5209 + ]) 10.5210 + sim_ac_coin_avail=$sim_cv_coin_avail 10.5211 + else 10.5212 + locations=`IFS=:; for p in $sim_ac_path; do echo " -> $p/coin-config"; done` 10.5213 + AC_MSG_WARN([cannot find 'coin-config' at any of these locations: 10.5214 +$locations]) 10.5215 + fi 10.5216 +fi 10.5217 + 10.5218 +if $sim_ac_coin_avail; then 10.5219 + ifelse([$1], , :, [$1]) 10.5220 +else 10.5221 + ifelse([$2], , :, [$2]) 10.5222 +fi 10.5223 +]) # SIM_AC_HAVE_COIN_IFELSE() 10.5224 + 10.5225 + 10.5226 +# ************************************************************************** 10.5227 +# SIM_AC_UNIQIFY_LIST( VARIABLE, LIST ) 10.5228 +# 10.5229 +# This macro filters out redundant items from a list. This macro was made 10.5230 +# to avoid having multiple equivalent -I and -L options for the compiler on 10.5231 +# the command-line, which made compilation quite messy to watch. 10.5232 +# 10.5233 +# BUGS: 10.5234 +# Items with spaces are probably not supported. 10.5235 +# 10.5236 +# Authors: 10.5237 +# Lars J. Aas <larsa@sim.no> 10.5238 +# 10.5239 + 10.5240 +AC_DEFUN([SIM_AC_UNIQIFY_LIST], [ 10.5241 +sim_ac_save_prefix=$prefix 10.5242 +sim_ac_save_exec_prefix=$exec_prefix 10.5243 +test x"$prefix" = xNONE && prefix=/usr/local 10.5244 +test x"$exec_prefix" = xNONE && exec_prefix='${prefix}' 10.5245 +sim_ac_uniqued_list= 10.5246 +for sim_ac_item in $2; do 10.5247 + eval sim_ac_eval_item="$sim_ac_item" 10.5248 + eval sim_ac_eval_item="$sim_ac_eval_item" 10.5249 + if test x"$sim_ac_uniqued_list" = x; then 10.5250 + sim_ac_uniqued_list="$sim_ac_item" 10.5251 + else 10.5252 + sim_ac_unique=true 10.5253 + for sim_ac_uniq in $sim_ac_uniqued_list; do 10.5254 + eval sim_ac_eval_uniq="$sim_ac_uniq" 10.5255 + eval sim_ac_eval_uniq="$sim_ac_eval_uniq" 10.5256 + test x"$sim_ac_eval_item" = x"$sim_ac_eval_uniq" && sim_ac_unique=false 10.5257 + done 10.5258 + $sim_ac_unique && sim_ac_uniqued_list="$sim_ac_uniqued_list $sim_ac_item" 10.5259 + fi 10.5260 +done 10.5261 +$1=$sim_ac_uniqued_list 10.5262 +prefix=$sim_ac_save_prefix 10.5263 +exec_prefix=$sim_ac_save_exec_prefix 10.5264 +# unset sim_ac_save_prefix 10.5265 +# unset sim_ac_save_exec_prefix 10.5266 +# unset sim_ac_eval_item 10.5267 +# unset sim_ac_eval_uniq 10.5268 +]) # SIM_AC_UNIQIFY_LIST 10.5269 + 10.5270 +
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 11.2 +++ b/bootstrap Mon Jul 29 08:53:08 2002 +0000 11.3 @@ -0,0 +1,147 @@ 11.4 +#!/bin/sh 11.5 + 11.6 +# Regenerate all files which are constructed by the autoconf, automake 11.7 +# and libtool tool-chain. Note: only developers should need to use 11.8 +# this script. 11.9 + 11.10 +# Author: Morten Eriksen, <mortene@sim.no>. 11.11 + 11.12 + 11.13 +wd=`echo "$0" | sed 's,[^\/]*$,,g'`; 11.14 +me=`echo "$0" | sed 's,^.*/,,g'`; 11.15 + 11.16 +cd $wd 11.17 +if test ! -f ./"$me"; then 11.18 + echo >&2 "$me: error: unexpected problem with your shell - bailing out" 11.19 + exit 1 11.20 +fi 11.21 + 11.22 +if test x"$@" = x"" -a ! -f cfg/mkinstalldirs; then 11.23 + echo "$me: assuming '--add' was meant." 11.24 + set : --add 11.25 + shift 11.26 +fi 11.27 + 11.28 +AUTOCONF_VER=2.5[023456789] 11.29 +AUTOMAKE_VER=1.5 11.30 +LIBTOOL_VER=1.4 11.31 + 11.32 +PROJECT=Coin 11.33 +MACRODIR=cfg/m4 11.34 +AUTOMAKE_ADD= 11.35 + 11.36 +do_libtoolize=false 11.37 +if test "$1" = "--clean"; then 11.38 + rm -f aclocal.m4 \ 11.39 + config.h.in \ 11.40 + stamp-h* 11.41 + ( cd cfg; 11.42 + rm -f aclocal.m4 \ 11.43 + config.guess \ 11.44 + config.sub \ 11.45 + configure \ 11.46 + depcomp \ 11.47 + install-sh \ 11.48 + ltconfig \ 11.49 + ltmain.sh \ 11.50 + missing \ 11.51 + mkinstalldirs \ 11.52 + ltcf-*.sh 11.53 + ) 11.54 + find . -name Makefile.in -print | grep -v "^./data/" | xargs rm -f 11.55 + exit 11.56 +elif test "$1" = "--add"; then 11.57 + AUTOMAKE_ADD="--add-missing --gnu --copy" 11.58 + do_libtoolize=true 11.59 +fi 11.60 + 11.61 +echo "Checking the installed configuration tools..." 11.62 + 11.63 +if test -z "`autoconf --version 2>/dev/null | grep \" $AUTOCONF_VER\"`"; then 11.64 + echo "" 11.65 + echo "You must have autoconf version $AUTOCONF_VER installed to" 11.66 + echo "generate configure information and Makefiles for $PROJECT." 11.67 + echo "" 11.68 + echo "(The Autoconf version we are using is the bleeding edge" 11.69 + echo "from the CVS repository.)" 11.70 + DIE=true 11.71 +fi 11.72 + 11.73 +if test -z "`automake --version 2>/dev/null | grep \" $AUTOMAKE_VER\"`"; then 11.74 + echo "" 11.75 + echo "You must have automake version $AUTOMAKE_VER installed to" 11.76 + echo "generate configure information and Makefiles for $PROJECT." 11.77 + echo "" 11.78 + echo "(The Automake version we are using is the bleeding edge" 11.79 + echo "from the CVS repository.)" 11.80 + DIE=true 11.81 +fi 11.82 + 11.83 +if libtoolize --version >/dev/null 2>&1; then 11.84 + libtoolize=libtoolize 11.85 +elif glibtoolize --version >/dev/null 2>&1; then 11.86 + libtoolize=glibtoolize 11.87 +else 11.88 + echo "" 11.89 + echo "You must have libtool version $LIBTOOL_VER installed to" 11.90 + echo "generate configure information and Makefiles for $PROJECT." 11.91 + echo "" 11.92 + echo "Look in ftp://ftp.gnu.org/pub/gnu/libtool/" 11.93 + DIE=true 11.94 +fi 11.95 + 11.96 +if test -z "`$libtoolize --version 2>/dev/null | egrep \"$LIBTOOL_VER\"`"; then 11.97 + echo "" 11.98 + echo "You must have libtool version $LIBTOOL_VER installed to" 11.99 + echo "generate configure information and Makefiles for $PROJECT." 11.100 + echo "" 11.101 + echo "Look in ftp://ftp.gnu.org/pub/gnu/libtool/" 11.102 + DIE=true 11.103 +fi 11.104 + 11.105 +# The separate $MACRODIR module was added late in the project, and 11.106 +# since we need to do a cvs checkout to obtain it (cvs update won't do 11.107 +# with modules), we run this check. 11.108 + 11.109 +if test ! -d $MACRODIR; then 11.110 + cvs -z3 checkout -P $MACRODIR 11.111 + if test ! -d $MACRODIR; then 11.112 + echo "" 11.113 + echo "Couldn't fetch $MACRODIR module!" 11.114 + echo "" 11.115 + echo "Directory ``$MACRODIR'' (a separate CVS module) seems to be missing." 11.116 + echo "You probably checked out $PROJECT before ``$MACRODIR'' was added." 11.117 + echo "Run 'cvs -d :pserver:cvs@cvs.sim.no:/export/cvsroot co $MACRODIR'" 11.118 + echo "to try again." 11.119 + DIE=true 11.120 + fi 11.121 +fi 11.122 + 11.123 +# abnormal exit? 11.124 +${DIE=false} && echo "" && echo "Aborted." && exit 1 11.125 + 11.126 +# ************************************************************************** 11.127 + 11.128 +echo "Running aclocal (generating aclocal.m4)..." 11.129 +aclocal -I $MACRODIR 11.130 + 11.131 +if $do_libtoolize; then 11.132 + $libtoolize --copy --force 11.133 + ( cd cfg; 11.134 + test -f ltmain.sh.diff && patch -p0 < ltmain.sh.diff 11.135 + test -f ltconfig.diff && patch -p0 < ltconfig.diff 11.136 + ) 11.137 +fi 11.138 + 11.139 +echo "Running autoconf (generating the configure script)..." 11.140 +( autoconf 3>&1 1>&2 2>&3 | grep -v AR_FLAGS) 3>&1 1>&2 2>&3 11.141 + 11.142 +echo "Running autoheader (generating config.h.in)..." 11.143 +autoheader 11.144 + 11.145 +echo "Running automake (generating the Makefile.in files)..." 11.146 +( automake $AUTOMAKE_ADD 3>&1 1>&2 2>&3 | \ 11.147 + grep -v 'not a standard library name' ) 3>&1 1>&2 2>&3 11.148 + 11.149 +echo "Done." 11.150 +
12.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 12.2 +++ b/cfg/config.guess Mon Jul 29 08:53:08 2002 +0000 12.3 @@ -0,0 +1,1317 @@ 12.4 +#! /bin/sh 12.5 +# Attempt to guess a canonical system name. 12.6 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 12.7 +# Free Software Foundation, Inc. 12.8 + 12.9 +timestamp='2001-09-04' 12.10 + 12.11 +# This file is free software; you can redistribute it and/or modify it 12.12 +# under the terms of the GNU General Public License as published by 12.13 +# the Free Software Foundation; either version 2 of the License, or 12.14 +# (at your option) any later version. 12.15 +# 12.16 +# This program is distributed in the hope that it will be useful, but 12.17 +# WITHOUT ANY WARRANTY; without even the implied warranty of 12.18 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12.19 +# General Public License for more details. 12.20 +# 12.21 +# You should have received a copy of the GNU General Public License 12.22 +# along with this program; if not, write to the Free Software 12.23 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 12.24 +# 12.25 +# As a special exception to the GNU General Public License, if you 12.26 +# distribute this file as part of a program that contains a 12.27 +# configuration script generated by Autoconf, you may include it under 12.28 +# the same distribution terms that you use for the rest of that program. 12.29 + 12.30 +# Written by Per Bothner <bothner@cygnus.com>. 12.31 +# Please send patches to <config-patches@gnu.org>. 12.32 +# 12.33 +# This script attempts to guess a canonical system name similar to 12.34 +# config.sub. If it succeeds, it prints the system name on stdout, and 12.35 +# exits with 0. Otherwise, it exits with 1. 12.36 +# 12.37 +# The plan is that this can be called by configure scripts if you 12.38 +# don't specify an explicit build system type. 12.39 + 12.40 +me=`echo "$0" | sed -e 's,.*/,,'` 12.41 + 12.42 +usage="\ 12.43 +Usage: $0 [OPTION] 12.44 + 12.45 +Output the configuration name of the system \`$me' is run on. 12.46 + 12.47 +Operation modes: 12.48 + -h, --help print this help, then exit 12.49 + -t, --time-stamp print date of last modification, then exit 12.50 + -v, --version print version number, then exit 12.51 + 12.52 +Report bugs and patches to <config-patches@gnu.org>." 12.53 + 12.54 +version="\ 12.55 +GNU config.guess ($timestamp) 12.56 + 12.57 +Originally written by Per Bothner. 12.58 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 12.59 +Free Software Foundation, Inc. 12.60 + 12.61 +This is free software; see the source for copying conditions. There is NO 12.62 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 12.63 + 12.64 +help=" 12.65 +Try \`$me --help' for more information." 12.66 + 12.67 +# Parse command line 12.68 +while test $# -gt 0 ; do 12.69 + case $1 in 12.70 + --time-stamp | --time* | -t ) 12.71 + echo "$timestamp" ; exit 0 ;; 12.72 + --version | -v ) 12.73 + echo "$version" ; exit 0 ;; 12.74 + --help | --h* | -h ) 12.75 + echo "$usage"; exit 0 ;; 12.76 + -- ) # Stop option processing 12.77 + shift; break ;; 12.78 + - ) # Use stdin as input. 12.79 + break ;; 12.80 + -* ) 12.81 + echo "$me: invalid option $1$help" >&2 12.82 + exit 1 ;; 12.83 + * ) 12.84 + break ;; 12.85 + esac 12.86 +done 12.87 + 12.88 +if test $# != 0; then 12.89 + echo "$me: too many arguments$help" >&2 12.90 + exit 1 12.91 +fi 12.92 + 12.93 + 12.94 +dummy=dummy-$$ 12.95 +trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15 12.96 + 12.97 +# CC_FOR_BUILD -- compiler used by this script. 12.98 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 12.99 +# use `HOST_CC' if defined, but it is deprecated. 12.100 + 12.101 +set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in 12.102 + ,,) echo "int dummy(){}" > $dummy.c ; 12.103 + for c in cc gcc c89 ; do 12.104 + ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; 12.105 + if test $? = 0 ; then 12.106 + CC_FOR_BUILD="$c"; break ; 12.107 + fi ; 12.108 + done ; 12.109 + rm -f $dummy.c $dummy.o $dummy.rel ; 12.110 + if test x"$CC_FOR_BUILD" = x ; then 12.111 + CC_FOR_BUILD=no_compiler_found ; 12.112 + fi 12.113 + ;; 12.114 + ,,*) CC_FOR_BUILD=$CC ;; 12.115 + ,*,*) CC_FOR_BUILD=$HOST_CC ;; 12.116 +esac' 12.117 + 12.118 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 12.119 +# (ghazi@noc.rutgers.edu 1994-08-24) 12.120 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then 12.121 + PATH=$PATH:/.attbin ; export PATH 12.122 +fi 12.123 + 12.124 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 12.125 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 12.126 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 12.127 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 12.128 + 12.129 +# Note: order is significant - the case branches are not exclusive. 12.130 + 12.131 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 12.132 + *:NetBSD:*:*) 12.133 + # Netbsd (nbsd) targets should (where applicable) match one or 12.134 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 12.135 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 12.136 + # switched to ELF, *-*-netbsd* would select the old 12.137 + # object file format. This provides both forward 12.138 + # compatibility and a consistent mechanism for selecting the 12.139 + # object file format. 12.140 + # Determine the machine/vendor (is the vendor relevant). 12.141 + case "${UNAME_MACHINE}" in 12.142 + amiga) machine=m68k-unknown ;; 12.143 + arm32) machine=arm-unknown ;; 12.144 + atari*) machine=m68k-atari ;; 12.145 + sun3*) machine=m68k-sun ;; 12.146 + mac68k) machine=m68k-apple ;; 12.147 + macppc) machine=powerpc-apple ;; 12.148 + hp3[0-9][05]) machine=m68k-hp ;; 12.149 + ibmrt|romp-ibm) machine=romp-ibm ;; 12.150 + *) machine=${UNAME_MACHINE}-unknown ;; 12.151 + esac 12.152 + # The Operating System including object format, if it has switched 12.153 + # to ELF recently, or will in the future. 12.154 + case "${UNAME_MACHINE}" in 12.155 + i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k) 12.156 + eval $set_cc_for_build 12.157 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 12.158 + | grep __ELF__ >/dev/null 12.159 + then 12.160 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 12.161 + # Return netbsd for either. FIX? 12.162 + os=netbsd 12.163 + else 12.164 + os=netbsdelf 12.165 + fi 12.166 + ;; 12.167 + *) 12.168 + os=netbsd 12.169 + ;; 12.170 + esac 12.171 + # The OS release 12.172 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 12.173 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 12.174 + # contains redundant information, the shorter form: 12.175 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 12.176 + echo "${machine}-${os}${release}" 12.177 + exit 0 ;; 12.178 + alpha:OSF1:*:*) 12.179 + if test $UNAME_RELEASE = "V4.0"; then 12.180 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 12.181 + fi 12.182 + # A Vn.n version is a released version. 12.183 + # A Tn.n version is a released field test version. 12.184 + # A Xn.n version is an unreleased experimental baselevel. 12.185 + # 1.2 uses "1.2" for uname -r. 12.186 + cat <<EOF >$dummy.s 12.187 + .data 12.188 +\$Lformat: 12.189 + .byte 37,100,45,37,120,10,0 # "%d-%x\n" 12.190 + 12.191 + .text 12.192 + .globl main 12.193 + .align 4 12.194 + .ent main 12.195 +main: 12.196 + .frame \$30,16,\$26,0 12.197 + ldgp \$29,0(\$27) 12.198 + .prologue 1 12.199 + .long 0x47e03d80 # implver \$0 12.200 + lda \$2,-1 12.201 + .long 0x47e20c21 # amask \$2,\$1 12.202 + lda \$16,\$Lformat 12.203 + mov \$0,\$17 12.204 + not \$1,\$18 12.205 + jsr \$26,printf 12.206 + ldgp \$29,0(\$26) 12.207 + mov 0,\$16 12.208 + jsr \$26,exit 12.209 + .end main 12.210 +EOF 12.211 + eval $set_cc_for_build 12.212 + $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null 12.213 + if test "$?" = 0 ; then 12.214 + case `./$dummy` in 12.215 + 0-0) 12.216 + UNAME_MACHINE="alpha" 12.217 + ;; 12.218 + 1-0) 12.219 + UNAME_MACHINE="alphaev5" 12.220 + ;; 12.221 + 1-1) 12.222 + UNAME_MACHINE="alphaev56" 12.223 + ;; 12.224 + 1-101) 12.225 + UNAME_MACHINE="alphapca56" 12.226 + ;; 12.227 + 2-303) 12.228 + UNAME_MACHINE="alphaev6" 12.229 + ;; 12.230 + 2-307) 12.231 + UNAME_MACHINE="alphaev67" 12.232 + ;; 12.233 + 2-1307) 12.234 + UNAME_MACHINE="alphaev68" 12.235 + ;; 12.236 + esac 12.237 + fi 12.238 + rm -f $dummy.s $dummy 12.239 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12.240 + exit 0 ;; 12.241 + Alpha\ *:Windows_NT*:*) 12.242 + # How do we know it's Interix rather than the generic POSIX subsystem? 12.243 + # Should we change UNAME_MACHINE based on the output of uname instead 12.244 + # of the specific Alpha model? 12.245 + echo alpha-pc-interix 12.246 + exit 0 ;; 12.247 + 21064:Windows_NT:50:3) 12.248 + echo alpha-dec-winnt3.5 12.249 + exit 0 ;; 12.250 + Amiga*:UNIX_System_V:4.0:*) 12.251 + echo m68k-unknown-sysv4 12.252 + exit 0;; 12.253 + amiga:OpenBSD:*:*) 12.254 + echo m68k-unknown-openbsd${UNAME_RELEASE} 12.255 + exit 0 ;; 12.256 + *:[Aa]miga[Oo][Ss]:*:*) 12.257 + echo ${UNAME_MACHINE}-unknown-amigaos 12.258 + exit 0 ;; 12.259 + arc64:OpenBSD:*:*) 12.260 + echo mips64el-unknown-openbsd${UNAME_RELEASE} 12.261 + exit 0 ;; 12.262 + arc:OpenBSD:*:*) 12.263 + echo mipsel-unknown-openbsd${UNAME_RELEASE} 12.264 + exit 0 ;; 12.265 + hkmips:OpenBSD:*:*) 12.266 + echo mips-unknown-openbsd${UNAME_RELEASE} 12.267 + exit 0 ;; 12.268 + pmax:OpenBSD:*:*) 12.269 + echo mipsel-unknown-openbsd${UNAME_RELEASE} 12.270 + exit 0 ;; 12.271 + sgi:OpenBSD:*:*) 12.272 + echo mips-unknown-openbsd${UNAME_RELEASE} 12.273 + exit 0 ;; 12.274 + wgrisc:OpenBSD:*:*) 12.275 + echo mipsel-unknown-openbsd${UNAME_RELEASE} 12.276 + exit 0 ;; 12.277 + *:OS/390:*:*) 12.278 + echo i370-ibm-openedition 12.279 + exit 0 ;; 12.280 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 12.281 + echo arm-acorn-riscix${UNAME_RELEASE} 12.282 + exit 0;; 12.283 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 12.284 + echo hppa1.1-hitachi-hiuxmpp 12.285 + exit 0;; 12.286 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 12.287 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 12.288 + if test "`(/bin/universe) 2>/dev/null`" = att ; then 12.289 + echo pyramid-pyramid-sysv3 12.290 + else 12.291 + echo pyramid-pyramid-bsd 12.292 + fi 12.293 + exit 0 ;; 12.294 + NILE*:*:*:dcosx) 12.295 + echo pyramid-pyramid-svr4 12.296 + exit 0 ;; 12.297 + sun4H:SunOS:5.*:*) 12.298 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 12.299 + exit 0 ;; 12.300 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 12.301 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 12.302 + exit 0 ;; 12.303 + i86pc:SunOS:5.*:*) 12.304 + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 12.305 + exit 0 ;; 12.306 + sun4*:SunOS:6*:*) 12.307 + # According to config.sub, this is the proper way to canonicalize 12.308 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but 12.309 + # it's likely to be more like Solaris than SunOS4. 12.310 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 12.311 + exit 0 ;; 12.312 + sun4*:SunOS:*:*) 12.313 + case "`/usr/bin/arch -k`" in 12.314 + Series*|S4*) 12.315 + UNAME_RELEASE=`uname -v` 12.316 + ;; 12.317 + esac 12.318 + # Japanese Language versions have a version number like `4.1.3-JL'. 12.319 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 12.320 + exit 0 ;; 12.321 + sun3*:SunOS:*:*) 12.322 + echo m68k-sun-sunos${UNAME_RELEASE} 12.323 + exit 0 ;; 12.324 + sun*:*:4.2BSD:*) 12.325 + UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 12.326 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 12.327 + case "`/bin/arch`" in 12.328 + sun3) 12.329 + echo m68k-sun-sunos${UNAME_RELEASE} 12.330 + ;; 12.331 + sun4) 12.332 + echo sparc-sun-sunos${UNAME_RELEASE} 12.333 + ;; 12.334 + esac 12.335 + exit 0 ;; 12.336 + aushp:SunOS:*:*) 12.337 + echo sparc-auspex-sunos${UNAME_RELEASE} 12.338 + exit 0 ;; 12.339 + sparc*:NetBSD:*) 12.340 + echo `uname -p`-unknown-netbsd${UNAME_RELEASE} 12.341 + exit 0 ;; 12.342 + atari*:OpenBSD:*:*) 12.343 + echo m68k-unknown-openbsd${UNAME_RELEASE} 12.344 + exit 0 ;; 12.345 + # The situation for MiNT is a little confusing. The machine name 12.346 + # can be virtually everything (everything which is not 12.347 + # "atarist" or "atariste" at least should have a processor 12.348 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 12.349 + # to the lowercase version "mint" (or "freemint"). Finally 12.350 + # the system name "TOS" denotes a system which is actually not 12.351 + # MiNT. But MiNT is downward compatible to TOS, so this should 12.352 + # be no problem. 12.353 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 12.354 + echo m68k-atari-mint${UNAME_RELEASE} 12.355 + exit 0 ;; 12.356 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 12.357 + echo m68k-atari-mint${UNAME_RELEASE} 12.358 + exit 0 ;; 12.359 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 12.360 + echo m68k-atari-mint${UNAME_RELEASE} 12.361 + exit 0 ;; 12.362 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 12.363 + echo m68k-milan-mint${UNAME_RELEASE} 12.364 + exit 0 ;; 12.365 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 12.366 + echo m68k-hades-mint${UNAME_RELEASE} 12.367 + exit 0 ;; 12.368 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 12.369 + echo m68k-unknown-mint${UNAME_RELEASE} 12.370 + exit 0 ;; 12.371 + sun3*:OpenBSD:*:*) 12.372 + echo m68k-unknown-openbsd${UNAME_RELEASE} 12.373 + exit 0 ;; 12.374 + mac68k:OpenBSD:*:*) 12.375 + echo m68k-unknown-openbsd${UNAME_RELEASE} 12.376 + exit 0 ;; 12.377 + mvme68k:OpenBSD:*:*) 12.378 + echo m68k-unknown-openbsd${UNAME_RELEASE} 12.379 + exit 0 ;; 12.380 + mvme88k:OpenBSD:*:*) 12.381 + echo m88k-unknown-openbsd${UNAME_RELEASE} 12.382 + exit 0 ;; 12.383 + powerpc:machten:*:*) 12.384 + echo powerpc-apple-machten${UNAME_RELEASE} 12.385 + exit 0 ;; 12.386 + RISC*:Mach:*:*) 12.387 + echo mips-dec-mach_bsd4.3 12.388 + exit 0 ;; 12.389 + RISC*:ULTRIX:*:*) 12.390 + echo mips-dec-ultrix${UNAME_RELEASE} 12.391 + exit 0 ;; 12.392 + VAX*:ULTRIX*:*:*) 12.393 + echo vax-dec-ultrix${UNAME_RELEASE} 12.394 + exit 0 ;; 12.395 + 2020:CLIX:*:* | 2430:CLIX:*:*) 12.396 + echo clipper-intergraph-clix${UNAME_RELEASE} 12.397 + exit 0 ;; 12.398 + mips:*:*:UMIPS | mips:*:*:RISCos) 12.399 + eval $set_cc_for_build 12.400 + sed 's/^ //' << EOF >$dummy.c 12.401 +#ifdef __cplusplus 12.402 +#include <stdio.h> /* for printf() prototype */ 12.403 + int main (int argc, char *argv[]) { 12.404 +#else 12.405 + int main (argc, argv) int argc; char *argv[]; { 12.406 +#endif 12.407 + #if defined (host_mips) && defined (MIPSEB) 12.408 + #if defined (SYSTYPE_SYSV) 12.409 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 12.410 + #endif 12.411 + #if defined (SYSTYPE_SVR4) 12.412 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 12.413 + #endif 12.414 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 12.415 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 12.416 + #endif 12.417 + #endif 12.418 + exit (-1); 12.419 + } 12.420 +EOF 12.421 + $CC_FOR_BUILD $dummy.c -o $dummy \ 12.422 + && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 12.423 + && rm -f $dummy.c $dummy && exit 0 12.424 + rm -f $dummy.c $dummy 12.425 + echo mips-mips-riscos${UNAME_RELEASE} 12.426 + exit 0 ;; 12.427 + Motorola:PowerMAX_OS:*:*) 12.428 + echo powerpc-motorola-powermax 12.429 + exit 0 ;; 12.430 + Night_Hawk:Power_UNIX:*:*) 12.431 + echo powerpc-harris-powerunix 12.432 + exit 0 ;; 12.433 + m88k:CX/UX:7*:*) 12.434 + echo m88k-harris-cxux7 12.435 + exit 0 ;; 12.436 + m88k:*:4*:R4*) 12.437 + echo m88k-motorola-sysv4 12.438 + exit 0 ;; 12.439 + m88k:*:3*:R3*) 12.440 + echo m88k-motorola-sysv3 12.441 + exit 0 ;; 12.442 + AViiON:dgux:*:*) 12.443 + # DG/UX returns AViiON for all architectures 12.444 + UNAME_PROCESSOR=`/usr/bin/uname -p` 12.445 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 12.446 + then 12.447 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 12.448 + [ ${TARGET_BINARY_INTERFACE}x = x ] 12.449 + then 12.450 + echo m88k-dg-dgux${UNAME_RELEASE} 12.451 + else 12.452 + echo m88k-dg-dguxbcs${UNAME_RELEASE} 12.453 + fi 12.454 + else 12.455 + echo i586-dg-dgux${UNAME_RELEASE} 12.456 + fi 12.457 + exit 0 ;; 12.458 + M88*:DolphinOS:*:*) # DolphinOS (SVR3) 12.459 + echo m88k-dolphin-sysv3 12.460 + exit 0 ;; 12.461 + M88*:*:R3*:*) 12.462 + # Delta 88k system running SVR3 12.463 + echo m88k-motorola-sysv3 12.464 + exit 0 ;; 12.465 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 12.466 + echo m88k-tektronix-sysv3 12.467 + exit 0 ;; 12.468 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 12.469 + echo m68k-tektronix-bsd 12.470 + exit 0 ;; 12.471 + *:IRIX*:*:*) 12.472 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 12.473 + exit 0 ;; 12.474 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 12.475 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 12.476 + exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 12.477 + i*86:AIX:*:*) 12.478 + echo i386-ibm-aix 12.479 + exit 0 ;; 12.480 + ia64:AIX:*:*) 12.481 + if [ -x /usr/bin/oslevel ] ; then 12.482 + IBM_REV=`/usr/bin/oslevel` 12.483 + else 12.484 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 12.485 + fi 12.486 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 12.487 + exit 0 ;; 12.488 + *:AIX:2:3) 12.489 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 12.490 + eval $set_cc_for_build 12.491 + sed 's/^ //' << EOF >$dummy.c 12.492 + #include <sys/systemcfg.h> 12.493 + 12.494 + main() 12.495 + { 12.496 + if (!__power_pc()) 12.497 + exit(1); 12.498 + puts("powerpc-ibm-aix3.2.5"); 12.499 + exit(0); 12.500 + } 12.501 +EOF 12.502 + $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 12.503 + rm -f $dummy.c $dummy 12.504 + echo rs6000-ibm-aix3.2.5 12.505 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 12.506 + echo rs6000-ibm-aix3.2.4 12.507 + else 12.508 + echo rs6000-ibm-aix3.2 12.509 + fi 12.510 + exit 0 ;; 12.511 + *:AIX:*:[45]) 12.512 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'` 12.513 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 12.514 + IBM_ARCH=rs6000 12.515 + else 12.516 + IBM_ARCH=powerpc 12.517 + fi 12.518 + if [ -x /usr/bin/oslevel ] ; then 12.519 + IBM_REV=`/usr/bin/oslevel` 12.520 + else 12.521 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 12.522 + fi 12.523 + echo ${IBM_ARCH}-ibm-aix${IBM_REV} 12.524 + exit 0 ;; 12.525 + *:AIX:*:*) 12.526 + echo rs6000-ibm-aix 12.527 + exit 0 ;; 12.528 + ibmrt:4.4BSD:*|romp-ibm:BSD:*) 12.529 + echo romp-ibm-bsd4.4 12.530 + exit 0 ;; 12.531 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 12.532 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 12.533 + exit 0 ;; # report: romp-ibm BSD 4.3 12.534 + *:BOSX:*:*) 12.535 + echo rs6000-bull-bosx 12.536 + exit 0 ;; 12.537 + DPX/2?00:B.O.S.:*:*) 12.538 + echo m68k-bull-sysv3 12.539 + exit 0 ;; 12.540 + 9000/[34]??:4.3bsd:1.*:*) 12.541 + echo m68k-hp-bsd 12.542 + exit 0 ;; 12.543 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 12.544 + echo m68k-hp-bsd4.4 12.545 + exit 0 ;; 12.546 + 9000/[34678]??:HP-UX:*:*) 12.547 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 12.548 + case "${UNAME_MACHINE}" in 12.549 + 9000/31? ) HP_ARCH=m68000 ;; 12.550 + 9000/[34]?? ) HP_ARCH=m68k ;; 12.551 + 9000/[678][0-9][0-9]) 12.552 + case "${HPUX_REV}" in 12.553 + 11.[0-9][0-9]) 12.554 + if [ -x /usr/bin/getconf ]; then 12.555 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 12.556 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 12.557 + case "${sc_cpu_version}" in 12.558 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 12.559 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 12.560 + 532) # CPU_PA_RISC2_0 12.561 + case "${sc_kernel_bits}" in 12.562 + 32) HP_ARCH="hppa2.0n" ;; 12.563 + 64) HP_ARCH="hppa2.0w" ;; 12.564 + esac ;; 12.565 + esac 12.566 + fi ;; 12.567 + esac 12.568 + if [ "${HP_ARCH}" = "" ]; then 12.569 + eval $set_cc_for_build 12.570 + sed 's/^ //' << EOF >$dummy.c 12.571 + 12.572 + #define _HPUX_SOURCE 12.573 + #include <stdlib.h> 12.574 + #include <unistd.h> 12.575 + 12.576 + int main () 12.577 + { 12.578 + #if defined(_SC_KERNEL_BITS) 12.579 + long bits = sysconf(_SC_KERNEL_BITS); 12.580 + #endif 12.581 + long cpu = sysconf (_SC_CPU_VERSION); 12.582 + 12.583 + switch (cpu) 12.584 + { 12.585 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 12.586 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 12.587 + case CPU_PA_RISC2_0: 12.588 + #if defined(_SC_KERNEL_BITS) 12.589 + switch (bits) 12.590 + { 12.591 + case 64: puts ("hppa2.0w"); break; 12.592 + case 32: puts ("hppa2.0n"); break; 12.593 + default: puts ("hppa2.0"); break; 12.594 + } break; 12.595 + #else /* !defined(_SC_KERNEL_BITS) */ 12.596 + puts ("hppa2.0"); break; 12.597 + #endif 12.598 + default: puts ("hppa1.0"); break; 12.599 + } 12.600 + exit (0); 12.601 + } 12.602 +EOF 12.603 + (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy` 12.604 + if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi 12.605 + rm -f $dummy.c $dummy 12.606 + fi ;; 12.607 + esac 12.608 + echo ${HP_ARCH}-hp-hpux${HPUX_REV} 12.609 + exit 0 ;; 12.610 + ia64:HP-UX:*:*) 12.611 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 12.612 + echo ia64-hp-hpux${HPUX_REV} 12.613 + exit 0 ;; 12.614 + 3050*:HI-UX:*:*) 12.615 + eval $set_cc_for_build 12.616 + sed 's/^ //' << EOF >$dummy.c 12.617 + #include <unistd.h> 12.618 + int 12.619 + main () 12.620 + { 12.621 + long cpu = sysconf (_SC_CPU_VERSION); 12.622 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns 12.623 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 12.624 + results, however. */ 12.625 + if (CPU_IS_PA_RISC (cpu)) 12.626 + { 12.627 + switch (cpu) 12.628 + { 12.629 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 12.630 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 12.631 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 12.632 + default: puts ("hppa-hitachi-hiuxwe2"); break; 12.633 + } 12.634 + } 12.635 + else if (CPU_IS_HP_MC68K (cpu)) 12.636 + puts ("m68k-hitachi-hiuxwe2"); 12.637 + else puts ("unknown-hitachi-hiuxwe2"); 12.638 + exit (0); 12.639 + } 12.640 +EOF 12.641 + $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0 12.642 + rm -f $dummy.c $dummy 12.643 + echo unknown-hitachi-hiuxwe2 12.644 + exit 0 ;; 12.645 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 12.646 + echo hppa1.1-hp-bsd 12.647 + exit 0 ;; 12.648 + 9000/8??:4.3bsd:*:*) 12.649 + echo hppa1.0-hp-bsd 12.650 + exit 0 ;; 12.651 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 12.652 + echo hppa1.0-hp-mpeix 12.653 + exit 0 ;; 12.654 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 12.655 + echo hppa1.1-hp-osf 12.656 + exit 0 ;; 12.657 + hp8??:OSF1:*:*) 12.658 + echo hppa1.0-hp-osf 12.659 + exit 0 ;; 12.660 + i*86:OSF1:*:*) 12.661 + if [ -x /usr/sbin/sysversion ] ; then 12.662 + echo ${UNAME_MACHINE}-unknown-osf1mk 12.663 + else 12.664 + echo ${UNAME_MACHINE}-unknown-osf1 12.665 + fi 12.666 + exit 0 ;; 12.667 + parisc*:Lites*:*:*) 12.668 + echo hppa1.1-hp-lites 12.669 + exit 0 ;; 12.670 + hppa*:OpenBSD:*:*) 12.671 + echo hppa-unknown-openbsd 12.672 + exit 0 ;; 12.673 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 12.674 + echo c1-convex-bsd 12.675 + exit 0 ;; 12.676 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 12.677 + if getsysinfo -f scalar_acc 12.678 + then echo c32-convex-bsd 12.679 + else echo c2-convex-bsd 12.680 + fi 12.681 + exit 0 ;; 12.682 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 12.683 + echo c34-convex-bsd 12.684 + exit 0 ;; 12.685 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 12.686 + echo c38-convex-bsd 12.687 + exit 0 ;; 12.688 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 12.689 + echo c4-convex-bsd 12.690 + exit 0 ;; 12.691 + CRAY*X-MP:*:*:*) 12.692 + echo xmp-cray-unicos 12.693 + exit 0 ;; 12.694 + CRAY*Y-MP:*:*:*) 12.695 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 12.696 + exit 0 ;; 12.697 + CRAY*[A-Z]90:*:*:*) 12.698 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 12.699 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 12.700 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 12.701 + -e 's/\.[^.]*$/.X/' 12.702 + exit 0 ;; 12.703 + CRAY*TS:*:*:*) 12.704 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 12.705 + exit 0 ;; 12.706 + CRAY*T3D:*:*:*) 12.707 + echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 12.708 + exit 0 ;; 12.709 + CRAY*T3E:*:*:*) 12.710 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 12.711 + exit 0 ;; 12.712 + CRAY*SV1:*:*:*) 12.713 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 12.714 + exit 0 ;; 12.715 + CRAY-2:*:*:*) 12.716 + echo cray2-cray-unicos 12.717 + exit 0 ;; 12.718 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 12.719 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 12.720 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 12.721 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 12.722 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 12.723 + exit 0 ;; 12.724 + hp300:OpenBSD:*:*) 12.725 + echo m68k-unknown-openbsd${UNAME_RELEASE} 12.726 + exit 0 ;; 12.727 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 12.728 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 12.729 + exit 0 ;; 12.730 + sparc*:BSD/OS:*:*) 12.731 + echo sparc-unknown-bsdi${UNAME_RELEASE} 12.732 + exit 0 ;; 12.733 + *:BSD/OS:*:*) 12.734 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 12.735 + exit 0 ;; 12.736 + *:FreeBSD:*:*) 12.737 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 12.738 + exit 0 ;; 12.739 + *:OpenBSD:*:*) 12.740 + echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 12.741 + exit 0 ;; 12.742 + i*:CYGWIN*:*) 12.743 + echo ${UNAME_MACHINE}-pc-cygwin 12.744 + exit 0 ;; 12.745 + i*:MINGW*:*) 12.746 + echo ${UNAME_MACHINE}-pc-mingw32 12.747 + exit 0 ;; 12.748 + i*:PW*:*) 12.749 + echo ${UNAME_MACHINE}-pc-pw32 12.750 + exit 0 ;; 12.751 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 12.752 + # How do we know it's Interix rather than the generic POSIX subsystem? 12.753 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 12.754 + # UNAME_MACHINE based on the output of uname instead of i386? 12.755 + echo i386-pc-interix 12.756 + exit 0 ;; 12.757 + i*:UWIN*:*) 12.758 + echo ${UNAME_MACHINE}-pc-uwin 12.759 + exit 0 ;; 12.760 + p*:CYGWIN*:*) 12.761 + echo powerpcle-unknown-cygwin 12.762 + exit 0 ;; 12.763 + prep*:SunOS:5.*:*) 12.764 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 12.765 + exit 0 ;; 12.766 + *:GNU:*:*) 12.767 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 12.768 + exit 0 ;; 12.769 + i*86:Minix:*:*) 12.770 + echo ${UNAME_MACHINE}-pc-minix 12.771 + exit 0 ;; 12.772 + arm*:Linux:*:*) 12.773 + echo ${UNAME_MACHINE}-unknown-linux-gnu 12.774 + exit 0 ;; 12.775 + ia64:Linux:*:*) 12.776 + echo ${UNAME_MACHINE}-unknown-linux 12.777 + exit 0 ;; 12.778 + m68*:Linux:*:*) 12.779 + echo ${UNAME_MACHINE}-unknown-linux-gnu 12.780 + exit 0 ;; 12.781 + mips:Linux:*:*) 12.782 + case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in 12.783 + big) echo mips-unknown-linux-gnu && exit 0 ;; 12.784 + little) echo mipsel-unknown-linux-gnu && exit 0 ;; 12.785 + esac 12.786 + ;; 12.787 + ppc:Linux:*:*) 12.788 + echo powerpc-unknown-linux-gnu 12.789 + exit 0 ;; 12.790 + ppc64:Linux:*:*) 12.791 + echo powerpc64-unknown-linux-gnu 12.792 + exit 0 ;; 12.793 + alpha:Linux:*:*) 12.794 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 12.795 + EV5) UNAME_MACHINE=alphaev5 ;; 12.796 + EV56) UNAME_MACHINE=alphaev56 ;; 12.797 + PCA56) UNAME_MACHINE=alphapca56 ;; 12.798 + PCA57) UNAME_MACHINE=alphapca56 ;; 12.799 + EV6) UNAME_MACHINE=alphaev6 ;; 12.800 + EV67) UNAME_MACHINE=alphaev67 ;; 12.801 + EV68*) UNAME_MACHINE=alphaev68 ;; 12.802 + esac 12.803 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 12.804 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 12.805 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 12.806 + exit 0 ;; 12.807 + parisc:Linux:*:* | hppa:Linux:*:*) 12.808 + # Look for CPU level 12.809 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 12.810 + PA7*) echo hppa1.1-unknown-linux-gnu ;; 12.811 + PA8*) echo hppa2.0-unknown-linux-gnu ;; 12.812 + *) echo hppa-unknown-linux-gnu ;; 12.813 + esac 12.814 + exit 0 ;; 12.815 + parisc64:Linux:*:* | hppa64:Linux:*:*) 12.816 + echo hppa64-unknown-linux-gnu 12.817 + exit 0 ;; 12.818 + s390:Linux:*:* | s390x:Linux:*:*) 12.819 + echo ${UNAME_MACHINE}-ibm-linux 12.820 + exit 0 ;; 12.821 + sh*:Linux:*:*) 12.822 + echo ${UNAME_MACHINE}-unknown-linux-gnu 12.823 + exit 0 ;; 12.824 + sparc:Linux:*:* | sparc64:Linux:*:*) 12.825 + echo ${UNAME_MACHINE}-unknown-linux-gnu 12.826 + exit 0 ;; 12.827 + x86_64:Linux:*:*) 12.828 + echo x86_64-unknown-linux-gnu 12.829 + exit 0 ;; 12.830 + i*86:Linux:*:*) 12.831 + # The BFD linker knows what the default object file format is, so 12.832 + # first see if it will tell us. cd to the root directory to prevent 12.833 + # problems with other programs or directories called `ld' in the path. 12.834 + ld_supported_targets=`cd /; ld --help 2>&1 \ 12.835 + | sed -ne '/supported targets:/!d 12.836 + s/[ ][ ]*/ /g 12.837 + s/.*supported targets: *// 12.838 + s/ .*// 12.839 + p'` 12.840 + case "$ld_supported_targets" in 12.841 + elf32-i386) 12.842 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 12.843 + ;; 12.844 + a.out-i386-linux) 12.845 + echo "${UNAME_MACHINE}-pc-linux-gnuaout" 12.846 + exit 0 ;; 12.847 + coff-i386) 12.848 + echo "${UNAME_MACHINE}-pc-linux-gnucoff" 12.849 + exit 0 ;; 12.850 + "") 12.851 + # Either a pre-BFD a.out linker (linux-gnuoldld) or 12.852 + # one that does not give us useful --help. 12.853 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 12.854 + exit 0 ;; 12.855 + esac 12.856 + # Determine whether the default compiler is a.out or elf 12.857 + eval $set_cc_for_build 12.858 + cat >$dummy.c <<EOF 12.859 +#include <features.h> 12.860 +#ifdef __cplusplus 12.861 +#include <stdio.h> /* for printf() prototype */ 12.862 + int main (int argc, char *argv[]) { 12.863 +#else 12.864 + int main (argc, argv) int argc; char *argv[]; { 12.865 +#endif 12.866 +#ifdef __ELF__ 12.867 +# ifdef __GLIBC__ 12.868 +# if __GLIBC__ >= 2 12.869 + printf ("%s-pc-linux-gnu\n", argv[1]); 12.870 +# else 12.871 + printf ("%s-pc-linux-gnulibc1\n", argv[1]); 12.872 +# endif 12.873 +# else 12.874 + printf ("%s-pc-linux-gnulibc1\n", argv[1]); 12.875 +# endif 12.876 +#else 12.877 + printf ("%s-pc-linux-gnuaout\n", argv[1]); 12.878 +#endif 12.879 + return 0; 12.880 +} 12.881 +EOF 12.882 + $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0 12.883 + rm -f $dummy.c $dummy 12.884 + test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 12.885 + ;; 12.886 + i*86:DYNIX/ptx:4*:*) 12.887 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 12.888 + # earlier versions are messed up and put the nodename in both 12.889 + # sysname and nodename. 12.890 + echo i386-sequent-sysv4 12.891 + exit 0 ;; 12.892 + i*86:UNIX_SV:4.2MP:2.*) 12.893 + # Unixware is an offshoot of SVR4, but it has its own version 12.894 + # number series starting with 2... 12.895 + # I am not positive that other SVR4 systems won't match this, 12.896 + # I just have to hope. -- rms. 12.897 + # Use sysv4.2uw... so that sysv4* matches it. 12.898 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 12.899 + exit 0 ;; 12.900 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 12.901 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 12.902 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 12.903 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 12.904 + else 12.905 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 12.906 + fi 12.907 + exit 0 ;; 12.908 + i*86:*:5:[78]*) 12.909 + case `/bin/uname -X | grep "^Machine"` in 12.910 + *486*) UNAME_MACHINE=i486 ;; 12.911 + *Pentium) UNAME_MACHINE=i586 ;; 12.912 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 12.913 + esac 12.914 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 12.915 + exit 0 ;; 12.916 + i*86:*:3.2:*) 12.917 + if test -f /usr/options/cb.name; then 12.918 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 12.919 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 12.920 + elif /bin/uname -X 2>/dev/null >/dev/null ; then 12.921 + UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')` 12.922 + (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486 12.923 + (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \ 12.924 + && UNAME_MACHINE=i586 12.925 + (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \ 12.926 + && UNAME_MACHINE=i686 12.927 + (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \ 12.928 + && UNAME_MACHINE=i686 12.929 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 12.930 + else 12.931 + echo ${UNAME_MACHINE}-pc-sysv32 12.932 + fi 12.933 + exit 0 ;; 12.934 + i*86:*DOS:*:*) 12.935 + echo ${UNAME_MACHINE}-pc-msdosdjgpp 12.936 + exit 0 ;; 12.937 + pc:*:*:*) 12.938 + # Left here for compatibility: 12.939 + # uname -m prints for DJGPP always 'pc', but it prints nothing about 12.940 + # the processor, so we play safe by assuming i386. 12.941 + echo i386-pc-msdosdjgpp 12.942 + exit 0 ;; 12.943 + Intel:Mach:3*:*) 12.944 + echo i386-pc-mach3 12.945 + exit 0 ;; 12.946 + paragon:*:*:*) 12.947 + echo i860-intel-osf1 12.948 + exit 0 ;; 12.949 + i860:*:4.*:*) # i860-SVR4 12.950 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 12.951 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 12.952 + else # Add other i860-SVR4 vendors below as they are discovered. 12.953 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 12.954 + fi 12.955 + exit 0 ;; 12.956 + mini*:CTIX:SYS*5:*) 12.957 + # "miniframe" 12.958 + echo m68010-convergent-sysv 12.959 + exit 0 ;; 12.960 + M68*:*:R3V[567]*:*) 12.961 + test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 12.962 + 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0) 12.963 + OS_REL='' 12.964 + test -r /etc/.relid \ 12.965 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 12.966 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 12.967 + && echo i486-ncr-sysv4.3${OS_REL} && exit 0 12.968 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 12.969 + && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 12.970 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 12.971 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 12.972 + && echo i486-ncr-sysv4 && exit 0 ;; 12.973 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 12.974 + echo m68k-unknown-lynxos${UNAME_RELEASE} 12.975 + exit 0 ;; 12.976 + mc68030:UNIX_System_V:4.*:*) 12.977 + echo m68k-atari-sysv4 12.978 + exit 0 ;; 12.979 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 12.980 + echo i386-unknown-lynxos${UNAME_RELEASE} 12.981 + exit 0 ;; 12.982 + TSUNAMI:LynxOS:2.*:*) 12.983 + echo sparc-unknown-lynxos${UNAME_RELEASE} 12.984 + exit 0 ;; 12.985 + rs6000:LynxOS:2.*:*) 12.986 + echo rs6000-unknown-lynxos${UNAME_RELEASE} 12.987 + exit 0 ;; 12.988 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 12.989 + echo powerpc-unknown-lynxos${UNAME_RELEASE} 12.990 + exit 0 ;; 12.991 + SM[BE]S:UNIX_SV:*:*) 12.992 + echo mips-dde-sysv${UNAME_RELEASE} 12.993 + exit 0 ;; 12.994 + RM*:ReliantUNIX-*:*:*) 12.995 + echo mips-sni-sysv4 12.996 + exit 0 ;; 12.997 + RM*:SINIX-*:*:*) 12.998 + echo mips-sni-sysv4 12.999 + exit 0 ;; 12.1000 + *:SINIX-*:*:*) 12.1001 + if uname -p 2>/dev/null >/dev/null ; then 12.1002 + UNAME_MACHINE=`(uname -p) 2>/dev/null` 12.1003 + echo ${UNAME_MACHINE}-sni-sysv4 12.1004 + else 12.1005 + echo ns32k-sni-sysv 12.1006 + fi 12.1007 + exit 0 ;; 12.1008 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 12.1009 + # says <Richard.M.Bartel@ccMail.Census.GOV> 12.1010 + echo i586-unisys-sysv4 12.1011 + exit 0 ;; 12.1012 + *:UNIX_System_V:4*:FTX*) 12.1013 + # From Gerald Hewes <hewes@openmarket.com>. 12.1014 + # How about differentiating between stratus architectures? -djm 12.1015 + echo hppa1.1-stratus-sysv4 12.1016 + exit 0 ;; 12.1017 + *:*:*:FTX*) 12.1018 + # From seanf@swdc.stratus.com. 12.1019 + echo i860-stratus-sysv4 12.1020 + exit 0 ;; 12.1021 + *:VOS:*:*) 12.1022 + # From Paul.Green@stratus.com. 12.1023 + echo hppa1.1-stratus-vos 12.1024 + exit 0 ;; 12.1025 + mc68*:A/UX:*:*) 12.1026 + echo m68k-apple-aux${UNAME_RELEASE} 12.1027 + exit 0 ;; 12.1028 + news*:NEWS-OS:6*:*) 12.1029 + echo mips-sony-newsos6 12.1030 + exit 0 ;; 12.1031 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 12.1032 + if [ -d /usr/nec ]; then 12.1033 + echo mips-nec-sysv${UNAME_RELEASE} 12.1034 + else 12.1035 + echo mips-unknown-sysv${UNAME_RELEASE} 12.1036 + fi 12.1037 + exit 0 ;; 12.1038 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 12.1039 + echo powerpc-be-beos 12.1040 + exit 0 ;; 12.1041 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 12.1042 + echo powerpc-apple-beos 12.1043 + exit 0 ;; 12.1044 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 12.1045 + echo i586-pc-beos 12.1046 + exit 0 ;; 12.1047 + SX-4:SUPER-UX:*:*) 12.1048 + echo sx4-nec-superux${UNAME_RELEASE} 12.1049 + exit 0 ;; 12.1050 + SX-5:SUPER-UX:*:*) 12.1051 + echo sx5-nec-superux${UNAME_RELEASE} 12.1052 + exit 0 ;; 12.1053 + Power*:Rhapsody:*:*) 12.1054 + echo powerpc-apple-rhapsody${UNAME_RELEASE} 12.1055 + exit 0 ;; 12.1056 + *:Rhapsody:*:*) 12.1057 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 12.1058 + exit 0 ;; 12.1059 + *:Darwin:*:*) 12.1060 + echo `uname -p`-apple-darwin${UNAME_RELEASE} 12.1061 + exit 0 ;; 12.1062 + *:procnto*:*:* | *:QNX:[0123456789]*:*) 12.1063 + if test "${UNAME_MACHINE}" = "x86pc"; then 12.1064 + UNAME_MACHINE=pc 12.1065 + fi 12.1066 + echo `uname -p`-${UNAME_MACHINE}-nto-qnx 12.1067 + exit 0 ;; 12.1068 + *:QNX:*:4*) 12.1069 + echo i386-pc-qnx 12.1070 + exit 0 ;; 12.1071 + NSR-[KW]:NONSTOP_KERNEL:*:*) 12.1072 + echo nsr-tandem-nsk${UNAME_RELEASE} 12.1073 + exit 0 ;; 12.1074 + *:NonStop-UX:*:*) 12.1075 + echo mips-compaq-nonstopux 12.1076 + exit 0 ;; 12.1077 + BS2000:POSIX*:*:*) 12.1078 + echo bs2000-siemens-sysv 12.1079 + exit 0 ;; 12.1080 + DS/*:UNIX_System_V:*:*) 12.1081 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 12.1082 + exit 0 ;; 12.1083 + *:Plan9:*:*) 12.1084 + # "uname -m" is not consistent, so use $cputype instead. 386 12.1085 + # is converted to i386 for consistency with other x86 12.1086 + # operating systems. 12.1087 + if test "$cputype" = "386"; then 12.1088 + UNAME_MACHINE=i386 12.1089 + else 12.1090 + UNAME_MACHINE="$cputype" 12.1091 + fi 12.1092 + echo ${UNAME_MACHINE}-unknown-plan9 12.1093 + exit 0 ;; 12.1094 + i*86:OS/2:*:*) 12.1095 + # If we were able to find `uname', then EMX Unix compatibility 12.1096 + # is probably installed. 12.1097 + echo ${UNAME_MACHINE}-pc-os2-emx 12.1098 + exit 0 ;; 12.1099 + *:TOPS-10:*:*) 12.1100 + echo pdp10-unknown-tops10 12.1101 + exit 0 ;; 12.1102 + *:TENEX:*:*) 12.1103 + echo pdp10-unknown-tenex 12.1104 + exit 0 ;; 12.1105 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 12.1106 + echo pdp10-dec-tops20 12.1107 + exit 0 ;; 12.1108 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 12.1109 + echo pdp10-xkl-tops20 12.1110 + exit 0 ;; 12.1111 + *:TOPS-20:*:*) 12.1112 + echo pdp10-unknown-tops20 12.1113 + exit 0 ;; 12.1114 + *:ITS:*:*) 12.1115 + echo pdp10-unknown-its 12.1116 + exit 0 ;; 12.1117 + i*86:XTS-300:*:STOP) 12.1118 + echo ${UNAME_MACHINE}-unknown-stop 12.1119 + exit 0 ;; 12.1120 + i*86:atheos:*:*) 12.1121 + echo ${UNAME_MACHINE}-unknown-atheos 12.1122 + exit 0 ;; 12.1123 +esac 12.1124 + 12.1125 +#echo '(No uname command or uname output not recognized.)' 1>&2 12.1126 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 12.1127 + 12.1128 +eval $set_cc_for_build 12.1129 +cat >$dummy.c <<EOF 12.1130 +#ifdef _SEQUENT_ 12.1131 +# include <sys/types.h> 12.1132 +# include <sys/utsname.h> 12.1133 +#endif 12.1134 +main () 12.1135 +{ 12.1136 +#if defined (sony) 12.1137 +#if defined (MIPSEB) 12.1138 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 12.1139 + I don't know.... */ 12.1140 + printf ("mips-sony-bsd\n"); exit (0); 12.1141 +#else 12.1142 +#include <sys/param.h> 12.1143 + printf ("m68k-sony-newsos%s\n", 12.1144 +#ifdef NEWSOS4 12.1145 + "4" 12.1146 +#else 12.1147 + "" 12.1148 +#endif 12.1149 + ); exit (0); 12.1150 +#endif 12.1151 +#endif 12.1152 + 12.1153 +#if defined (__arm) && defined (__acorn) && defined (__unix) 12.1154 + printf ("arm-acorn-riscix"); exit (0); 12.1155 +#endif 12.1156 + 12.1157 +#if defined (hp300) && !defined (hpux) 12.1158 + printf ("m68k-hp-bsd\n"); exit (0); 12.1159 +#endif 12.1160 + 12.1161 +#if defined (NeXT) 12.1162 +#if !defined (__ARCHITECTURE__) 12.1163 +#define __ARCHITECTURE__ "m68k" 12.1164 +#endif 12.1165 + int version; 12.1166 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 12.1167 + if (version < 4) 12.1168 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 12.1169 + else 12.1170 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 12.1171 + exit (0); 12.1172 +#endif 12.1173 + 12.1174 +#if defined (MULTIMAX) || defined (n16) 12.1175 +#if defined (UMAXV) 12.1176 + printf ("ns32k-encore-sysv\n"); exit (0); 12.1177 +#else 12.1178 +#if defined (CMU) 12.1179 + printf ("ns32k-encore-mach\n"); exit (0); 12.1180 +#else 12.1181 + printf ("ns32k-encore-bsd\n"); exit (0); 12.1182 +#endif 12.1183 +#endif 12.1184 +#endif 12.1185 + 12.1186 +#if defined (__386BSD__) 12.1187 + printf ("i386-pc-bsd\n"); exit (0); 12.1188 +#endif 12.1189 + 12.1190 +#if defined (sequent) 12.1191 +#if defined (i386) 12.1192 + printf ("i386-sequent-dynix\n"); exit (0); 12.1193 +#endif 12.1194 +#if defined (ns32000) 12.1195 + printf ("ns32k-sequent-dynix\n"); exit (0); 12.1196 +#endif 12.1197 +#endif 12.1198 + 12.1199 +#if defined (_SEQUENT_) 12.1200 + struct utsname un; 12.1201 + 12.1202 + uname(&un); 12.1203 + 12.1204 + if (strncmp(un.version, "V2", 2) == 0) { 12.1205 + printf ("i386-sequent-ptx2\n"); exit (0); 12.1206 + } 12.1207 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 12.1208 + printf ("i386-sequent-ptx1\n"); exit (0); 12.1209 + } 12.1210 + printf ("i386-sequent-ptx\n"); exit (0); 12.1211 + 12.1212 +#endif 12.1213 + 12.1214 +#if defined (vax) 12.1215 +# if !defined (ultrix) 12.1216 +# include <sys/param.h> 12.1217 +# if defined (BSD) 12.1218 +# if BSD == 43 12.1219 + printf ("vax-dec-bsd4.3\n"); exit (0); 12.1220 +# else 12.1221 +# if BSD == 199006 12.1222 + printf ("vax-dec-bsd4.3reno\n"); exit (0); 12.1223 +# else 12.1224 + printf ("vax-dec-bsd\n"); exit (0); 12.1225 +# endif 12.1226 +# endif 12.1227 +# else 12.1228 + printf ("vax-dec-bsd\n"); exit (0); 12.1229 +# endif 12.1230 +# else 12.1231 + printf ("vax-dec-ultrix\n"); exit (0); 12.1232 +# endif 12.1233 +#endif 12.1234 + 12.1235 +#if defined (alliant) && defined (i860) 12.1236 + printf ("i860-alliant-bsd\n"); exit (0); 12.1237 +#endif 12.1238 + 12.1239 + exit (1); 12.1240 +} 12.1241 +EOF 12.1242 + 12.1243 +$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0 12.1244 +rm -f $dummy.c $dummy 12.1245 + 12.1246 +# Apollos put the system type in the environment. 12.1247 + 12.1248 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } 12.1249 + 12.1250 +# Convex versions that predate uname can use getsysinfo(1) 12.1251 + 12.1252 +if [ -x /usr/convex/getsysinfo ] 12.1253 +then 12.1254 + case `getsysinfo -f cpu_type` in 12.1255 + c1*) 12.1256 + echo c1-convex-bsd 12.1257 + exit 0 ;; 12.1258 + c2*) 12.1259 + if getsysinfo -f scalar_acc 12.1260 + then echo c32-convex-bsd 12.1261 + else echo c2-convex-bsd 12.1262 + fi 12.1263 + exit 0 ;; 12.1264 + c34*) 12.1265 + echo c34-convex-bsd 12.1266 + exit 0 ;; 12.1267 + c38*) 12.1268 + echo c38-convex-bsd 12.1269 + exit 0 ;; 12.1270 + c4*) 12.1271 + echo c4-convex-bsd 12.1272 + exit 0 ;; 12.1273 + esac 12.1274 +fi 12.1275 + 12.1276 +cat >&2 <<EOF 12.1277 +$0: unable to guess system type 12.1278 + 12.1279 +This script, last modified $timestamp, has failed to recognize 12.1280 +the operating system you are using. It is advised that you 12.1281 +download the most up to date version of the config scripts from 12.1282 + 12.1283 + ftp://ftp.gnu.org/pub/gnu/config/ 12.1284 + 12.1285 +If the version you run ($0) is already up to date, please 12.1286 +send the following data and any information you think might be 12.1287 +pertinent to <config-patches@gnu.org> in order to provide the needed 12.1288 +information to handle your system. 12.1289 + 12.1290 +config.guess timestamp = $timestamp 12.1291 + 12.1292 +uname -m = `(uname -m) 2>/dev/null || echo unknown` 12.1293 +uname -r = `(uname -r) 2>/dev/null || echo unknown` 12.1294 +uname -s = `(uname -s) 2>/dev/null || echo unknown` 12.1295 +uname -v = `(uname -v) 2>/dev/null || echo unknown` 12.1296 + 12.1297 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 12.1298 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 12.1299 + 12.1300 +hostinfo = `(hostinfo) 2>/dev/null` 12.1301 +/bin/universe = `(/bin/universe) 2>/dev/null` 12.1302 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 12.1303 +/bin/arch = `(/bin/arch) 2>/dev/null` 12.1304 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 12.1305 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 12.1306 + 12.1307 +UNAME_MACHINE = ${UNAME_MACHINE} 12.1308 +UNAME_RELEASE = ${UNAME_RELEASE} 12.1309 +UNAME_SYSTEM = ${UNAME_SYSTEM} 12.1310 +UNAME_VERSION = ${UNAME_VERSION} 12.1311 +EOF 12.1312 + 12.1313 +exit 1 12.1314 + 12.1315 +# Local variables: 12.1316 +# eval: (add-hook 'write-file-hooks 'time-stamp) 12.1317 +# time-stamp-start: "timestamp='" 12.1318 +# time-stamp-format: "%:y-%02m-%02d" 12.1319 +# time-stamp-end: "'" 12.1320 +# End:
13.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 13.2 +++ b/cfg/config.sub Mon Jul 29 08:53:08 2002 +0000 13.3 @@ -0,0 +1,1411 @@ 13.4 +#! /bin/sh 13.5 +# Configuration validation subroutine script. 13.6 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 13.7 +# Free Software Foundation, Inc. 13.8 + 13.9 +timestamp='2001-09-07' 13.10 + 13.11 +# This file is (in principle) common to ALL GNU software. 13.12 +# The presence of a machine in this file suggests that SOME GNU software 13.13 +# can handle that machine. It does not imply ALL GNU software can. 13.14 +# 13.15 +# This file is free software; you can redistribute it and/or modify 13.16 +# it under the terms of the GNU General Public License as published by 13.17 +# the Free Software Foundation; either version 2 of the License, or 13.18 +# (at your option) any later version. 13.19 +# 13.20 +# This program is distributed in the hope that it will be useful, 13.21 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 13.22 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13.23 +# GNU General Public License for more details. 13.24 +# 13.25 +# You should have received a copy of the GNU General Public License 13.26 +# along with this program; if not, write to the Free Software 13.27 +# Foundation, Inc., 59 Temple Place - Suite 330, 13.28 +# Boston, MA 02111-1307, USA. 13.29 + 13.30 +# As a special exception to the GNU General Public License, if you 13.31 +# distribute this file as part of a program that contains a 13.32 +# configuration script generated by Autoconf, you may include it under 13.33 +# the same distribution terms that you use for the rest of that program. 13.34 + 13.35 +# Please send patches to <config-patches@gnu.org>. 13.36 +# 13.37 +# Configuration subroutine to validate and canonicalize a configuration type. 13.38 +# Supply the specified configuration type as an argument. 13.39 +# If it is invalid, we print an error message on stderr and exit with code 1. 13.40 +# Otherwise, we print the canonical config type on stdout and succeed. 13.41 + 13.42 +# This file is supposed to be the same for all GNU packages 13.43 +# and recognize all the CPU types, system types and aliases 13.44 +# that are meaningful with *any* GNU software. 13.45 +# Each package is responsible for reporting which valid configurations 13.46 +# it does not support. The user should be able to distinguish 13.47 +# a failure to support a valid configuration from a meaningless 13.48 +# configuration. 13.49 + 13.50 +# The goal of this file is to map all the various variations of a given 13.51 +# machine specification into a single specification in the form: 13.52 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM 13.53 +# or in some cases, the newer four-part form: 13.54 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM 13.55 +# It is wrong to echo any other type of specification. 13.56 + 13.57 +me=`echo "$0" | sed -e 's,.*/,,'` 13.58 + 13.59 +usage="\ 13.60 +Usage: $0 [OPTION] CPU-MFR-OPSYS 13.61 + $0 [OPTION] ALIAS 13.62 + 13.63 +Canonicalize a configuration name. 13.64 + 13.65 +Operation modes: 13.66 + -h, --help print this help, then exit 13.67 + -t, --time-stamp print date of last modification, then exit 13.68 + -v, --version print version number, then exit 13.69 + 13.70 +Report bugs and patches to <config-patches@gnu.org>." 13.71 + 13.72 +version="\ 13.73 +GNU config.sub ($timestamp) 13.74 + 13.75 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 13.76 +Free Software Foundation, Inc. 13.77 + 13.78 +This is free software; see the source for copying conditions. There is NO 13.79 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 13.80 + 13.81 +help=" 13.82 +Try \`$me --help' for more information." 13.83 + 13.84 +# Parse command line 13.85 +while test $# -gt 0 ; do 13.86 + case $1 in 13.87 + --time-stamp | --time* | -t ) 13.88 + echo "$timestamp" ; exit 0 ;; 13.89 + --version | -v ) 13.90 + echo "$version" ; exit 0 ;; 13.91 + --help | --h* | -h ) 13.92 + echo "$usage"; exit 0 ;; 13.93 + -- ) # Stop option processing 13.94 + shift; break ;; 13.95 + - ) # Use stdin as input. 13.96 + break ;; 13.97 + -* ) 13.98 + echo "$me: invalid option $1$help" 13.99 + exit 1 ;; 13.100 + 13.101 + *local*) 13.102 + # First pass through any local machine types. 13.103 + echo $1 13.104 + exit 0;; 13.105 + 13.106 + * ) 13.107 + break ;; 13.108 + esac 13.109 +done 13.110 + 13.111 +case $# in 13.112 + 0) echo "$me: missing argument$help" >&2 13.113 + exit 1;; 13.114 + 1) ;; 13.115 + *) echo "$me: too many arguments$help" >&2 13.116 + exit 1;; 13.117 +esac 13.118 + 13.119 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). 13.120 +# Here we must recognize all the valid KERNEL-OS combinations. 13.121 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 13.122 +case $maybe_os in 13.123 + nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*) 13.124 + os=-$maybe_os 13.125 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 13.126 + ;; 13.127 + *) 13.128 + basic_machine=`echo $1 | sed 's/-[^-]*$//'` 13.129 + if [ $basic_machine != $1 ] 13.130 + then os=`echo $1 | sed 's/.*-/-/'` 13.131 + else os=; fi 13.132 + ;; 13.133 +esac 13.134 + 13.135 +### Let's recognize common machines as not being operating systems so 13.136 +### that things like config.sub decstation-3100 work. We also 13.137 +### recognize some manufacturers as not being operating systems, so we 13.138 +### can provide default operating systems below. 13.139 +case $os in 13.140 + -sun*os*) 13.141 + # Prevent following clause from handling this invalid input. 13.142 + ;; 13.143 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ 13.144 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ 13.145 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ 13.146 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 13.147 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 13.148 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 13.149 + -apple | -axis) 13.150 + os= 13.151 + basic_machine=$1 13.152 + ;; 13.153 + -sim | -cisco | -oki | -wec | -winbond) 13.154 + os= 13.155 + basic_machine=$1 13.156 + ;; 13.157 + -scout) 13.158 + ;; 13.159 + -wrs) 13.160 + os=-vxworks 13.161 + basic_machine=$1 13.162 + ;; 13.163 + -chorusos*) 13.164 + os=-chorusos 13.165 + basic_machine=$1 13.166 + ;; 13.167 + -chorusrdb) 13.168 + os=-chorusrdb 13.169 + basic_machine=$1 13.170 + ;; 13.171 + -hiux*) 13.172 + os=-hiuxwe2 13.173 + ;; 13.174 + -sco5) 13.175 + os=-sco3.2v5 13.176 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 13.177 + ;; 13.178 + -sco4) 13.179 + os=-sco3.2v4 13.180 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 13.181 + ;; 13.182 + -sco3.2.[4-9]*) 13.183 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` 13.184 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 13.185 + ;; 13.186 + -sco3.2v[4-9]*) 13.187 + # Don't forget version if it is 3.2v4 or newer. 13.188 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 13.189 + ;; 13.190 + -sco*) 13.191 + os=-sco3.2v2 13.192 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 13.193 + ;; 13.194 + -udk*) 13.195 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 13.196 + ;; 13.197 + -isc) 13.198 + os=-isc2.2 13.199 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 13.200 + ;; 13.201 + -clix*) 13.202 + basic_machine=clipper-intergraph 13.203 + ;; 13.204 + -isc*) 13.205 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 13.206 + ;; 13.207 + -lynx*) 13.208 + os=-lynxos 13.209 + ;; 13.210 + -ptx*) 13.211 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` 13.212 + ;; 13.213 + -windowsnt*) 13.214 + os=`echo $os | sed -e 's/windowsnt/winnt/'` 13.215 + ;; 13.216 + -psos*) 13.217 + os=-psos 13.218 + ;; 13.219 + -mint | -mint[0-9]*) 13.220 + basic_machine=m68k-atari 13.221 + os=-mint 13.222 + ;; 13.223 +esac 13.224 + 13.225 +# Decode aliases for certain CPU-COMPANY combinations. 13.226 +case $basic_machine in 13.227 + # Recognize the basic CPU types without company name. 13.228 + # Some are omitted here because they have special meanings below. 13.229 + 1750a | 580 \ 13.230 + | a29k \ 13.231 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 13.232 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 13.233 + | c4x | clipper \ 13.234 + | d10v | d30v | dsp16xx \ 13.235 + | fr30 \ 13.236 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 13.237 + | i370 | i860 | i960 | ia64 \ 13.238 + | m32r | m68000 | m68k | m88k | mcore \ 13.239 + | mips16 | mips64 | mips64el | mips64orion | mips64orionel \ 13.240 + | mips64vr4100 | mips64vr4100el | mips64vr4300 \ 13.241 + | mips64vr4300el | mips64vr5000 | mips64vr5000el \ 13.242 + | mipsbe | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \ 13.243 + | mipsisa32 \ 13.244 + | mn10200 | mn10300 \ 13.245 + | ns16k | ns32k \ 13.246 + | openrisc \ 13.247 + | pdp10 | pdp11 | pj | pjl \ 13.248 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 13.249 + | pyramid \ 13.250 + | s390 | s390x \ 13.251 + | sh | sh[34] | sh[34]eb | shbe | shle \ 13.252 + | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \ 13.253 + | stormy16 | strongarm \ 13.254 + | tahoe | thumb | tic80 | tron \ 13.255 + | v850 \ 13.256 + | we32k \ 13.257 + | x86 | xscale \ 13.258 + | z8k) 13.259 + basic_machine=$basic_machine-unknown 13.260 + ;; 13.261 + m6811 | m68hc11 | m6812 | m68hc12) 13.262 + # Motorola 68HC11/12. 13.263 + basic_machine=$basic_machine-unknown 13.264 + os=-none 13.265 + ;; 13.266 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 13.267 + ;; 13.268 + 13.269 + # We use `pc' rather than `unknown' 13.270 + # because (1) that's what they normally are, and 13.271 + # (2) the word "unknown" tends to confuse beginning users. 13.272 + i*86 | x86_64) 13.273 + basic_machine=$basic_machine-pc 13.274 + ;; 13.275 + # Object if more than one company name word. 13.276 + *-*-*) 13.277 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 13.278 + exit 1 13.279 + ;; 13.280 + # Recognize the basic CPU types with company name. 13.281 + 580-* \ 13.282 + | a29k-* \ 13.283 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \ 13.284 + | alphapca5[67]-* | arc-* \ 13.285 + | arm-* | armbe-* | armle-* | armv*-* \ 13.286 + | bs2000-* \ 13.287 + | c[123]* | c30-* | [cjt]90-* | c54x-* \ 13.288 + | clipper-* | cray2-* | cydra-* \ 13.289 + | d10v-* | d30v-* \ 13.290 + | elxsi-* \ 13.291 + | f30[01]-* | f700-* | fr30-* | fx80-* \ 13.292 + | h8300-* | h8500-* \ 13.293 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 13.294 + | i*86-* | i860-* | i960-* | ia64-* \ 13.295 + | m32r-* \ 13.296 + | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \ 13.297 + | m88110-* | m88k-* | mcore-* \ 13.298 + | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \ 13.299 + | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \ 13.300 + | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \ 13.301 + | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \ 13.302 + | none-* | np1-* | ns16k-* | ns32k-* \ 13.303 + | orion-* \ 13.304 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 13.305 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 13.306 + | pyramid-* \ 13.307 + | romp-* | rs6000-* \ 13.308 + | s390-* | s390x-* \ 13.309 + | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \ 13.310 + | sparc-* | sparc64-* | sparc86x-* | sparclite-* \ 13.311 + | sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \ 13.312 + | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \ 13.313 + | v850-* | vax-* \ 13.314 + | we32k-* \ 13.315 + | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \ 13.316 + | ymp-* \ 13.317 + | z8k-*) 13.318 + ;; 13.319 + # Recognize the various machine names and aliases which stand 13.320 + # for a CPU type and a company and sometimes even an OS. 13.321 + 386bsd) 13.322 + basic_machine=i386-unknown 13.323 + os=-bsd 13.324 + ;; 13.325 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 13.326 + basic_machine=m68000-att 13.327 + ;; 13.328 + 3b*) 13.329 + basic_machine=we32k-att 13.330 + ;; 13.331 + a29khif) 13.332 + basic_machine=a29k-amd 13.333 + os=-udi 13.334 + ;; 13.335 + adobe68k) 13.336 + basic_machine=m68010-adobe 13.337 + os=-scout 13.338 + ;; 13.339 + alliant | fx80) 13.340 + basic_machine=fx80-alliant 13.341 + ;; 13.342 + altos | altos3068) 13.343 + basic_machine=m68k-altos 13.344 + ;; 13.345 + am29k) 13.346 + basic_machine=a29k-none 13.347 + os=-bsd 13.348 + ;; 13.349 + amdahl) 13.350 + basic_machine=580-amdahl 13.351 + os=-sysv 13.352 + ;; 13.353 + amiga | amiga-*) 13.354 + basic_machine=m68k-unknown 13.355 + ;; 13.356 + amigaos | amigados) 13.357 + basic_machine=m68k-unknown 13.358 + os=-amigaos 13.359 + ;; 13.360 + amigaunix | amix) 13.361 + basic_machine=m68k-unknown 13.362 + os=-sysv4 13.363 + ;; 13.364 + apollo68) 13.365 + basic_machine=m68k-apollo 13.366 + os=-sysv 13.367 + ;; 13.368 + apollo68bsd) 13.369 + basic_machine=m68k-apollo 13.370 + os=-bsd 13.371 + ;; 13.372 + aux) 13.373 + basic_machine=m68k-apple 13.374 + os=-aux 13.375 + ;; 13.376 + balance) 13.377 + basic_machine=ns32k-sequent 13.378 + os=-dynix 13.379 + ;; 13.380 + convex-c1) 13.381 + basic_machine=c1-convex 13.382 + os=-bsd 13.383 + ;; 13.384 + convex-c2) 13.385 + basic_machine=c2-convex 13.386 + os=-bsd 13.387 + ;; 13.388 + convex-c32) 13.389 + basic_machine=c32-convex 13.390 + os=-bsd 13.391 + ;; 13.392 + convex-c34) 13.393 + basic_machine=c34-convex 13.394 + os=-bsd 13.395 + ;; 13.396 + convex-c38) 13.397 + basic_machine=c38-convex 13.398 + os=-bsd 13.399 + ;; 13.400 + cray | ymp) 13.401 + basic_machine=ymp-cray 13.402 + os=-unicos 13.403 + ;; 13.404 + cray2) 13.405 + basic_machine=cray2-cray 13.406 + os=-unicos 13.407 + ;; 13.408 + [cjt]90) 13.409 + basic_machine=${basic_machine}-cray 13.410 + os=-unicos 13.411 + ;; 13.412 + crds | unos) 13.413 + basic_machine=m68k-crds 13.414 + ;; 13.415 + cris | cris-* | etrax*) 13.416 + basic_machine=cris-axis 13.417 + ;; 13.418 + da30 | da30-*) 13.419 + basic_machine=m68k-da30 13.420 + ;; 13.421 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) 13.422 + basic_machine=mips-dec 13.423 + ;; 13.424 + delta | 3300 | motorola-3300 | motorola-delta \ 13.425 + | 3300-motorola | delta-motorola) 13.426 + basic_machine=m68k-motorola 13.427 + ;; 13.428 + delta88) 13.429 + basic_machine=m88k-motorola 13.430 + os=-sysv3 13.431 + ;; 13.432 + dpx20 | dpx20-*) 13.433 + basic_machine=rs6000-bull 13.434 + os=-bosx 13.435 + ;; 13.436 + dpx2* | dpx2*-bull) 13.437 + basic_machine=m68k-bull 13.438 + os=-sysv3 13.439 + ;; 13.440 + ebmon29k) 13.441 + basic_machine=a29k-amd 13.442 + os=-ebmon 13.443 + ;; 13.444 + elxsi) 13.445 + basic_machine=elxsi-elxsi 13.446 + os=-bsd 13.447 + ;; 13.448 + encore | umax | mmax) 13.449 + basic_machine=ns32k-encore 13.450 + ;; 13.451 + es1800 | OSE68k | ose68k | ose | OSE) 13.452 + basic_machine=m68k-ericsson 13.453 + os=-ose 13.454 + ;; 13.455 + fx2800) 13.456 + basic_machine=i860-alliant 13.457 + ;; 13.458 + genix) 13.459 + basic_machine=ns32k-ns 13.460 + ;; 13.461 + gmicro) 13.462 + basic_machine=tron-gmicro 13.463 + os=-sysv 13.464 + ;; 13.465 + go32) 13.466 + basic_machine=i386-pc 13.467 + os=-go32 13.468 + ;; 13.469 + h3050r* | hiux*) 13.470 + basic_machine=hppa1.1-hitachi 13.471 + os=-hiuxwe2 13.472 + ;; 13.473 + h8300hms) 13.474 + basic_machine=h8300-hitachi 13.475 + os=-hms 13.476 + ;; 13.477 + h8300xray) 13.478 + basic_machine=h8300-hitachi 13.479 + os=-xray 13.480 + ;; 13.481 + h8500hms) 13.482 + basic_machine=h8500-hitachi 13.483 + os=-hms 13.484 + ;; 13.485 + harris) 13.486 + basic_machine=m88k-harris 13.487 + os=-sysv3 13.488 + ;; 13.489 + hp300-*) 13.490 + basic_machine=m68k-hp 13.491 + ;; 13.492 + hp300bsd) 13.493 + basic_machine=m68k-hp 13.494 + os=-bsd 13.495 + ;; 13.496 + hp300hpux) 13.497 + basic_machine=m68k-hp 13.498 + os=-hpux 13.499 + ;; 13.500 + hp3k9[0-9][0-9] | hp9[0-9][0-9]) 13.501 + basic_machine=hppa1.0-hp 13.502 + ;; 13.503 + hp9k2[0-9][0-9] | hp9k31[0-9]) 13.504 + basic_machine=m68000-hp 13.505 + ;; 13.506 + hp9k3[2-9][0-9]) 13.507 + basic_machine=m68k-hp 13.508 + ;; 13.509 + hp9k6[0-9][0-9] | hp6[0-9][0-9]) 13.510 + basic_machine=hppa1.0-hp 13.511 + ;; 13.512 + hp9k7[0-79][0-9] | hp7[0-79][0-9]) 13.513 + basic_machine=hppa1.1-hp 13.514 + ;; 13.515 + hp9k78[0-9] | hp78[0-9]) 13.516 + # FIXME: really hppa2.0-hp 13.517 + basic_machine=hppa1.1-hp 13.518 + ;; 13.519 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893) 13.520 + # FIXME: really hppa2.0-hp 13.521 + basic_machine=hppa1.1-hp 13.522 + ;; 13.523 + hp9k8[0-9][13679] | hp8[0-9][13679]) 13.524 + basic_machine=hppa1.1-hp 13.525 + ;; 13.526 + hp9k8[0-9][0-9] | hp8[0-9][0-9]) 13.527 + basic_machine=hppa1.0-hp 13.528 + ;; 13.529 + hppa-next) 13.530 + os=-nextstep3 13.531 + ;; 13.532 + hppaosf) 13.533 + basic_machine=hppa1.1-hp 13.534 + os=-osf 13.535 + ;; 13.536 + hppro) 13.537 + basic_machine=hppa1.1-hp 13.538 + os=-proelf 13.539 + ;; 13.540 + i370-ibm* | ibm*) 13.541 + basic_machine=i370-ibm 13.542 + ;; 13.543 +# I'm not sure what "Sysv32" means. Should this be sysv3.2? 13.544 + i*86v32) 13.545 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 13.546 + os=-sysv32 13.547 + ;; 13.548 + i*86v4*) 13.549 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 13.550 + os=-sysv4 13.551 + ;; 13.552 + i*86v) 13.553 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 13.554 + os=-sysv 13.555 + ;; 13.556 + i*86sol2) 13.557 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` 13.558 + os=-solaris2 13.559 + ;; 13.560 + i386mach) 13.561 + basic_machine=i386-mach 13.562 + os=-mach 13.563 + ;; 13.564 + i386-vsta | vsta) 13.565 + basic_machine=i386-unknown 13.566 + os=-vsta 13.567 + ;; 13.568 + iris | iris4d) 13.569 + basic_machine=mips-sgi 13.570 + case $os in 13.571 + -irix*) 13.572 + ;; 13.573 + *) 13.574 + os=-irix4 13.575 + ;; 13.576 + esac 13.577 + ;; 13.578 + isi68 | isi) 13.579 + basic_machine=m68k-isi 13.580 + os=-sysv 13.581 + ;; 13.582 + m88k-omron*) 13.583 + basic_machine=m88k-omron 13.584 + ;; 13.585 + magnum | m3230) 13.586 + basic_machine=mips-mips 13.587 + os=-sysv 13.588 + ;; 13.589 + merlin) 13.590 + basic_machine=ns32k-utek 13.591 + os=-sysv 13.592 + ;; 13.593 + mingw32) 13.594 + basic_machine=i386-pc 13.595 + os=-mingw32 13.596 + ;; 13.597 + miniframe) 13.598 + basic_machine=m68000-convergent 13.599 + ;; 13.600 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*) 13.601 + basic_machine=m68k-atari 13.602 + os=-mint 13.603 + ;; 13.604 + mipsel*-linux*) 13.605 + basic_machine=mipsel-unknown 13.606 + os=-linux-gnu 13.607 + ;; 13.608 + mips*-linux*) 13.609 + basic_machine=mips-unknown 13.610 + os=-linux-gnu 13.611 + ;; 13.612 + mips3*-*) 13.613 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` 13.614 + ;; 13.615 + mips3*) 13.616 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 13.617 + ;; 13.618 + mmix*) 13.619 + basic_machine=mmix-knuth 13.620 + os=-mmixware 13.621 + ;; 13.622 + monitor) 13.623 + basic_machine=m68k-rom68k 13.624 + os=-coff 13.625 + ;; 13.626 + msdos) 13.627 + basic_machine=i386-pc 13.628 + os=-msdos 13.629 + ;; 13.630 + mvs) 13.631 + basic_machine=i370-ibm 13.632 + os=-mvs 13.633 + ;; 13.634 + ncr3000) 13.635 + basic_machine=i486-ncr 13.636 + os=-sysv4 13.637 + ;; 13.638 + netbsd386) 13.639 + basic_machine=i386-unknown 13.640 + os=-netbsd 13.641 + ;; 13.642 + netwinder) 13.643 + basic_machine=armv4l-rebel 13.644 + os=-linux 13.645 + ;; 13.646 + news | news700 | news800 | news900) 13.647 + basic_machine=m68k-sony 13.648 + os=-newsos 13.649 + ;; 13.650 + news1000) 13.651 + basic_machine=m68030-sony 13.652 + os=-newsos 13.653 + ;; 13.654 + news-3600 | risc-news) 13.655 + basic_machine=mips-sony 13.656 + os=-newsos 13.657 + ;; 13.658 + necv70) 13.659 + basic_machine=v70-nec 13.660 + os=-sysv 13.661 + ;; 13.662 + next | m*-next ) 13.663 + basic_machine=m68k-next 13.664 + case $os in 13.665 + -nextstep* ) 13.666 + ;; 13.667 + -ns2*) 13.668 + os=-nextstep2 13.669 + ;; 13.670 + *) 13.671 + os=-nextstep3 13.672 + ;; 13.673 + esac 13.674 + ;; 13.675 + nh3000) 13.676 + basic_machine=m68k-harris 13.677 + os=-cxux 13.678 + ;; 13.679 + nh[45]000) 13.680 + basic_machine=m88k-harris 13.681 + os=-cxux 13.682 + ;; 13.683 + nindy960) 13.684 + basic_machine=i960-intel 13.685 + os=-nindy 13.686 + ;; 13.687 + mon960) 13.688 + basic_machine=i960-intel 13.689 + os=-mon960 13.690 + ;; 13.691 + nonstopux) 13.692 + basic_machine=mips-compaq 13.693 + os=-nonstopux 13.694 + ;; 13.695 + np1) 13.696 + basic_machine=np1-gould 13.697 + ;; 13.698 + nsr-tandem) 13.699 + basic_machine=nsr-tandem 13.700 + ;; 13.701 + op50n-* | op60c-*) 13.702 + basic_machine=hppa1.1-oki 13.703 + os=-proelf 13.704 + ;; 13.705 + OSE68000 | ose68000) 13.706 + basic_machine=m68000-ericsson 13.707 + os=-ose 13.708 + ;; 13.709 + os68k) 13.710 + basic_machine=m68k-none 13.711 + os=-os68k 13.712 + ;; 13.713 + pa-hitachi) 13.714 + basic_machine=hppa1.1-hitachi 13.715 + os=-hiuxwe2 13.716 + ;; 13.717 + paragon) 13.718 + basic_machine=i860-intel 13.719 + os=-osf 13.720 + ;; 13.721 + pbd) 13.722 + basic_machine=sparc-tti 13.723 + ;; 13.724 + pbb) 13.725 + basic_machine=m68k-tti 13.726 + ;; 13.727 + pc532 | pc532-*) 13.728 + basic_machine=ns32k-pc532 13.729 + ;; 13.730 + pentium | p5 | k5 | k6 | nexgen) 13.731 + basic_machine=i586-pc 13.732 + ;; 13.733 + pentiumpro | p6 | 6x86 | athlon) 13.734 + basic_machine=i686-pc 13.735 + ;; 13.736 + pentiumii | pentium2) 13.737 + basic_machine=i686-pc 13.738 + ;; 13.739 + pentium-* | p5-* | k5-* | k6-* | nexgen-*) 13.740 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` 13.741 + ;; 13.742 + pentiumpro-* | p6-* | 6x86-* | athlon-*) 13.743 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 13.744 + ;; 13.745 + pentiumii-* | pentium2-*) 13.746 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` 13.747 + ;; 13.748 + pn) 13.749 + basic_machine=pn-gould 13.750 + ;; 13.751 + power) basic_machine=power-ibm 13.752 + ;; 13.753 + ppc) basic_machine=powerpc-unknown 13.754 + ;; 13.755 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` 13.756 + ;; 13.757 + ppcle | powerpclittle | ppc-le | powerpc-little) 13.758 + basic_machine=powerpcle-unknown 13.759 + ;; 13.760 + ppcle-* | powerpclittle-*) 13.761 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` 13.762 + ;; 13.763 + ppc64) basic_machine=powerpc64-unknown 13.764 + ;; 13.765 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'` 13.766 + ;; 13.767 + ppc64le | powerpc64little | ppc64-le | powerpc64-little) 13.768 + basic_machine=powerpc64le-unknown 13.769 + ;; 13.770 + ppc64le-* | powerpc64little-*) 13.771 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'` 13.772 + ;; 13.773 + ps2) 13.774 + basic_machine=i386-ibm 13.775 + ;; 13.776 + pw32) 13.777 + basic_machine=i586-unknown 13.778 + os=-pw32 13.779 + ;; 13.780 + rom68k) 13.781 + basic_machine=m68k-rom68k 13.782 + os=-coff 13.783 + ;; 13.784 + rm[46]00) 13.785 + basic_machine=mips-siemens 13.786 + ;; 13.787 + rtpc | rtpc-*) 13.788 + basic_machine=romp-ibm 13.789 + ;; 13.790 + sa29200) 13.791 + basic_machine=a29k-amd 13.792 + os=-udi 13.793 + ;; 13.794 + sequent) 13.795 + basic_machine=i386-sequent 13.796 + ;; 13.797 + sh) 13.798 + basic_machine=sh-hitachi 13.799 + os=-hms 13.800 + ;; 13.801 + sparclite-wrs) 13.802 + basic_machine=sparclite-wrs 13.803 + os=-vxworks 13.804 + ;; 13.805 + sps7) 13.806 + basic_machine=m68k-bull 13.807 + os=-sysv2 13.808 + ;; 13.809 + spur) 13.810 + basic_machine=spur-unknown 13.811 + ;; 13.812 + st2000) 13.813 + basic_machine=m68k-tandem 13.814 + ;; 13.815 + stratus) 13.816 + basic_machine=i860-stratus 13.817 + os=-sysv4 13.818 + ;; 13.819 + sun2) 13.820 + basic_machine=m68000-sun 13.821 + ;; 13.822 + sun2os3) 13.823 + basic_machine=m68000-sun 13.824 + os=-sunos3 13.825 + ;; 13.826 + sun2os4) 13.827 + basic_machine=m68000-sun 13.828 + os=-sunos4 13.829 + ;; 13.830 + sun3os3) 13.831 + basic_machine=m68k-sun 13.832 + os=-sunos3 13.833 + ;; 13.834 + sun3os4) 13.835 + basic_machine=m68k-sun 13.836 + os=-sunos4 13.837 + ;; 13.838 + sun4os3) 13.839 + basic_machine=sparc-sun 13.840 + os=-sunos3 13.841 + ;; 13.842 + sun4os4) 13.843 + basic_machine=sparc-sun 13.844 + os=-sunos4 13.845 + ;; 13.846 + sun4sol2) 13.847 + basic_machine=sparc-sun 13.848 + os=-solaris2 13.849 + ;; 13.850 + sun3 | sun3-*) 13.851 + basic_machine=m68k-sun 13.852 + ;; 13.853 + sun4) 13.854 + basic_machine=sparc-sun 13.855 + ;; 13.856 + sun386 | sun386i | roadrunner) 13.857 + basic_machine=i386-sun 13.858 + ;; 13.859 + sv1) 13.860 + basic_machine=sv1-cray 13.861 + os=-unicos 13.862 + ;; 13.863 + symmetry) 13.864 + basic_machine=i386-sequent 13.865 + os=-dynix 13.866 + ;; 13.867 + t3e) 13.868 + basic_machine=t3e-cray 13.869 + os=-unicos 13.870 + ;; 13.871 + tic54x | c54x*) 13.872 + basic_machine=tic54x-unknown 13.873 + os=-coff 13.874 + ;; 13.875 + tx39) 13.876 + basic_machine=mipstx39-unknown 13.877 + ;; 13.878 + tx39el) 13.879 + basic_machine=mipstx39el-unknown 13.880 + ;; 13.881 + tower | tower-32) 13.882 + basic_machine=m68k-ncr 13.883 + ;; 13.884 + udi29k) 13.885 + basic_machine=a29k-amd 13.886 + os=-udi 13.887 + ;; 13.888 + ultra3) 13.889 + basic_machine=a29k-nyu 13.890 + os=-sym1 13.891 + ;; 13.892 + v810 | necv810) 13.893 + basic_machine=v810-nec 13.894 + os=-none 13.895 + ;; 13.896 + vaxv) 13.897 + basic_machine=vax-dec 13.898 + os=-sysv 13.899 + ;; 13.900 + vms) 13.901 + basic_machine=vax-dec 13.902 + os=-vms 13.903 + ;; 13.904 + vpp*|vx|vx-*) 13.905 + basic_machine=f301-fujitsu 13.906 + ;; 13.907 + vxworks960) 13.908 + basic_machine=i960-wrs 13.909 + os=-vxworks 13.910 + ;; 13.911 + vxworks68) 13.912 + basic_machine=m68k-wrs 13.913 + os=-vxworks 13.914 + ;; 13.915 + vxworks29k) 13.916 + basic_machine=a29k-wrs 13.917 + os=-vxworks 13.918 + ;; 13.919 + w65*) 13.920 + basic_machine=w65-wdc 13.921 + os=-none 13.922 + ;; 13.923 + w89k-*) 13.924 + basic_machine=hppa1.1-winbond 13.925 + os=-proelf 13.926 + ;; 13.927 + windows32) 13.928 + basic_machine=i386-pc 13.929 + os=-windows32-msvcrt 13.930 + ;; 13.931 + xmp) 13.932 + basic_machine=xmp-cray 13.933 + os=-unicos 13.934 + ;; 13.935 + xps | xps100) 13.936 + basic_machine=xps100-honeywell 13.937 + ;; 13.938 + z8k-*-coff) 13.939 + basic_machine=z8k-unknown 13.940 + os=-sim 13.941 + ;; 13.942 + none) 13.943 + basic_machine=none-none 13.944 + os=-none 13.945 + ;; 13.946 + 13.947 +# Here we handle the default manufacturer of certain CPU types. It is in 13.948 +# some cases the only manufacturer, in others, it is the most popular. 13.949 + w89k) 13.950 + basic_machine=hppa1.1-winbond 13.951 + ;; 13.952 + op50n) 13.953 + basic_machine=hppa1.1-oki 13.954 + ;; 13.955 + op60c) 13.956 + basic_machine=hppa1.1-oki 13.957 + ;; 13.958 + mips) 13.959 + if [ x$os = x-linux-gnu ]; then 13.960 + basic_machine=mips-unknown 13.961 + else 13.962 + basic_machine=mips-mips 13.963 + fi 13.964 + ;; 13.965 + romp) 13.966 + basic_machine=romp-ibm 13.967 + ;; 13.968 + rs6000) 13.969 + basic_machine=rs6000-ibm 13.970 + ;; 13.971 + vax) 13.972 + basic_machine=vax-dec 13.973 + ;; 13.974 + pdp10) 13.975 + # there are many clones, so DEC is not a safe bet 13.976 + basic_machine=pdp10-unknown 13.977 + ;; 13.978 + pdp11) 13.979 + basic_machine=pdp11-dec 13.980 + ;; 13.981 + we32k) 13.982 + basic_machine=we32k-att 13.983 + ;; 13.984 + sh3 | sh4 | sh3eb | sh4eb) 13.985 + basic_machine=sh-unknown 13.986 + ;; 13.987 + sparc | sparcv9 | sparcv9b) 13.988 + basic_machine=sparc-sun 13.989 + ;; 13.990 + cydra) 13.991 + basic_machine=cydra-cydrome 13.992 + ;; 13.993 + orion) 13.994 + basic_machine=orion-highlevel 13.995 + ;; 13.996 + orion105) 13.997 + basic_machine=clipper-highlevel 13.998 + ;; 13.999 + mac | mpw | mac-mpw) 13.1000 + basic_machine=m68k-apple 13.1001 + ;; 13.1002 + pmac | pmac-mpw) 13.1003 + basic_machine=powerpc-apple 13.1004 + ;; 13.1005 + c4x*) 13.1006 + basic_machine=c4x-none 13.1007 + os=-coff 13.1008 + ;; 13.1009 + *-unknown) 13.1010 + # Make sure to match an already-canonicalized machine name. 13.1011 + ;; 13.1012 + *) 13.1013 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 13.1014 + exit 1 13.1015 + ;; 13.1016 +esac 13.1017 + 13.1018 +# Here we canonicalize certain aliases for manufacturers. 13.1019 +case $basic_machine in 13.1020 + *-digital*) 13.1021 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` 13.1022 + ;; 13.1023 + *-commodore*) 13.1024 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` 13.1025 + ;; 13.1026 + *) 13.1027 + ;; 13.1028 +esac 13.1029 + 13.1030 +# Decode manufacturer-specific aliases for certain operating systems. 13.1031 + 13.1032 +if [ x"$os" != x"" ] 13.1033 +then 13.1034 +case $os in 13.1035 + # First match some system type aliases 13.1036 + # that might get confused with valid system types. 13.1037 + # -solaris* is a basic system type, with this one exception. 13.1038 + -solaris1 | -solaris1.*) 13.1039 + os=`echo $os | sed -e 's|solaris1|sunos4|'` 13.1040 + ;; 13.1041 + -solaris) 13.1042 + os=-solaris2 13.1043 + ;; 13.1044 + -svr4*) 13.1045 + os=-sysv4 13.1046 + ;; 13.1047 + -unixware*) 13.1048 + os=-sysv4.2uw 13.1049 + ;; 13.1050 + -gnu/linux*) 13.1051 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` 13.1052 + ;; 13.1053 + # First accept the basic system types. 13.1054 + # The portable systems comes first. 13.1055 + # Each alternative MUST END IN A *, to match a version number. 13.1056 + # -sysv* is not here because it comes later, after sysvr4. 13.1057 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 13.1058 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 13.1059 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 13.1060 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 13.1061 + | -aos* \ 13.1062 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 13.1063 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 13.1064 + | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 13.1065 + | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 13.1066 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 13.1067 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 13.1068 + | -chorusos* | -chorusrdb* \ 13.1069 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 13.1070 + | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 13.1071 + | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \ 13.1072 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 13.1073 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 13.1074 + | -os2* | -vos*) 13.1075 + # Remember, each alternative MUST END IN *, to match a version number. 13.1076 + ;; 13.1077 + -qnx*) 13.1078 + case $basic_machine in 13.1079 + x86-* | i*86-*) 13.1080 + ;; 13.1081 + *) 13.1082 + os=-nto$os 13.1083 + ;; 13.1084 + esac 13.1085 + ;; 13.1086 + -nto*) 13.1087 + os=-nto-qnx 13.1088 + ;; 13.1089 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 13.1090 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 13.1091 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 13.1092 + ;; 13.1093 + -mac*) 13.1094 + os=`echo $os | sed -e 's|mac|macos|'` 13.1095 + ;; 13.1096 + -linux*) 13.1097 + os=`echo $os | sed -e 's|linux|linux-gnu|'` 13.1098 + ;; 13.1099 + -sunos5*) 13.1100 + os=`echo $os | sed -e 's|sunos5|solaris2|'` 13.1101 + ;; 13.1102 + -sunos6*) 13.1103 + os=`echo $os | sed -e 's|sunos6|solaris3|'` 13.1104 + ;; 13.1105 + -opened*) 13.1106 + os=-openedition 13.1107 + ;; 13.1108 + -wince*) 13.1109 + os=-wince 13.1110 + ;; 13.1111 + -osfrose*) 13.1112 + os=-osfrose 13.1113 + ;; 13.1114 + -osf*) 13.1115 + os=-osf 13.1116 + ;; 13.1117 + -utek*) 13.1118 + os=-bsd 13.1119 + ;; 13.1120 + -dynix*) 13.1121 + os=-bsd 13.1122 + ;; 13.1123 + -acis*) 13.1124 + os=-aos 13.1125 + ;; 13.1126 + -386bsd) 13.1127 + os=-bsd 13.1128 + ;; 13.1129 + -ctix* | -uts*) 13.1130 + os=-sysv 13.1131 + ;; 13.1132 + -ns2 ) 13.1133 + os=-nextstep2 13.1134 + ;; 13.1135 + -nsk*) 13.1136 + os=-nsk 13.1137 + ;; 13.1138 + # Preserve the version number of sinix5. 13.1139 + -sinix5.*) 13.1140 + os=`echo $os | sed -e 's|sinix|sysv|'` 13.1141 + ;; 13.1142 + -sinix*) 13.1143 + os=-sysv4 13.1144 + ;; 13.1145 + -triton*) 13.1146 + os=-sysv3 13.1147 + ;; 13.1148 + -oss*) 13.1149 + os=-sysv3 13.1150 + ;; 13.1151 + -svr4) 13.1152 + os=-sysv4 13.1153 + ;; 13.1154 + -svr3) 13.1155 + os=-sysv3 13.1156 + ;; 13.1157 + -sysvr4) 13.1158 + os=-sysv4 13.1159 + ;; 13.1160 + # This must come after -sysvr4. 13.1161 + -sysv*) 13.1162 + ;; 13.1163 + -ose*) 13.1164 + os=-ose 13.1165 + ;; 13.1166 + -es1800*) 13.1167 + os=-ose 13.1168 + ;; 13.1169 + -xenix) 13.1170 + os=-xenix 13.1171 + ;; 13.1172 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 13.1173 + os=-mint 13.1174 + ;; 13.1175 + -none) 13.1176 + ;; 13.1177 + *) 13.1178 + # Get rid of the `-' at the beginning of $os. 13.1179 + os=`echo $os | sed 's/[^-]*-//'` 13.1180 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 13.1181 + exit 1 13.1182 + ;; 13.1183 +esac 13.1184 +else 13.1185 + 13.1186 +# Here we handle the default operating systems that come with various machines. 13.1187 +# The value should be what the vendor currently ships out the door with their 13.1188 +# machine or put another way, the most popular os provided with the machine. 13.1189 + 13.1190 +# Note that if you're going to try to match "-MANUFACTURER" here (say, 13.1191 +# "-sun"), then you have to tell the case statement up towards the top 13.1192 +# that MANUFACTURER isn't an operating system. Otherwise, code above 13.1193 +# will signal an error saying that MANUFACTURER isn't an operating 13.1194 +# system, and we'll never get to this point. 13.1195 + 13.1196 +case $basic_machine in 13.1197 + *-acorn) 13.1198 + os=-riscix1.2 13.1199 + ;; 13.1200 + arm*-rebel) 13.1201 + os=-linux 13.1202 + ;; 13.1203 + arm*-semi) 13.1204 + os=-aout 13.1205 + ;; 13.1206 + pdp10-*) 13.1207 + os=-tops20 13.1208 + ;; 13.1209 + pdp11-*) 13.1210 + os=-none 13.1211 + ;; 13.1212 + *-dec | vax-*) 13.1213 + os=-ultrix4.2 13.1214 + ;; 13.1215 + m68*-apollo) 13.1216 + os=-domain 13.1217 + ;; 13.1218 + i386-sun) 13.1219 + os=-sunos4.0.2 13.1220 + ;; 13.1221 + m68000-sun) 13.1222 + os=-sunos3 13.1223 + # This also exists in the configure program, but was not the 13.1224 + # default. 13.1225 + # os=-sunos4 13.1226 + ;; 13.1227 + m68*-cisco) 13.1228 + os=-aout 13.1229 + ;; 13.1230 + mips*-cisco) 13.1231 + os=-elf 13.1232 + ;; 13.1233 + mips*-*) 13.1234 + os=-elf 13.1235 + ;; 13.1236 + *-tti) # must be before sparc entry or we get the wrong os. 13.1237 + os=-sysv3 13.1238 + ;; 13.1239 + sparc-* | *-sun) 13.1240 + os=-sunos4.1.1 13.1241 + ;; 13.1242 + *-be) 13.1243 + os=-beos 13.1244 + ;; 13.1245 + *-ibm) 13.1246 + os=-aix 13.1247 + ;; 13.1248 + *-wec) 13.1249 + os=-proelf 13.1250 + ;; 13.1251 + *-winbond) 13.1252 + os=-proelf 13.1253 + ;; 13.1254 + *-oki) 13.1255 + os=-proelf 13.1256 + ;; 13.1257 + *-hp) 13.1258 + os=-hpux 13.1259 + ;; 13.1260 + *-hitachi) 13.1261 + os=-hiux 13.1262 + ;; 13.1263 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) 13.1264 + os=-sysv 13.1265 + ;; 13.1266 + *-cbm) 13.1267 + os=-amigaos 13.1268 + ;; 13.1269 + *-dg) 13.1270 + os=-dgux 13.1271 + ;; 13.1272 + *-dolphin) 13.1273 + os=-sysv3 13.1274 + ;; 13.1275 + m68k-ccur) 13.1276 + os=-rtu 13.1277 + ;; 13.1278 + m88k-omron*) 13.1279 + os=-luna 13.1280 + ;; 13.1281 + *-next ) 13.1282 + os=-nextstep 13.1283 + ;; 13.1284 + *-sequent) 13.1285 + os=-ptx 13.1286 + ;; 13.1287 + *-crds) 13.1288 + os=-unos 13.1289 + ;; 13.1290 + *-ns) 13.1291 + os=-genix 13.1292 + ;; 13.1293 + i370-*) 13.1294 + os=-mvs 13.1295 + ;; 13.1296 + *-next) 13.1297 + os=-nextstep3 13.1298 + ;; 13.1299 + *-gould) 13.1300 + os=-sysv 13.1301 + ;; 13.1302 + *-highlevel) 13.1303 + os=-bsd 13.1304 + ;; 13.1305 + *-encore) 13.1306 + os=-bsd 13.1307 + ;; 13.1308 + *-sgi) 13.1309 + os=-irix 13.1310 + ;; 13.1311 + *-siemens) 13.1312 + os=-sysv4 13.1313 + ;; 13.1314 + *-masscomp) 13.1315 + os=-rtu 13.1316 + ;; 13.1317 + f30[01]-fujitsu | f700-fujitsu) 13.1318 + os=-uxpv 13.1319 + ;; 13.1320 + *-rom68k) 13.1321 + os=-coff 13.1322 + ;; 13.1323 + *-*bug) 13.1324 + os=-coff 13.1325 + ;; 13.1326 + *-apple) 13.1327 + os=-macos 13.1328 + ;; 13.1329 + *-atari*) 13.1330 + os=-mint 13.1331 + ;; 13.1332 + *) 13.1333 + os=-none 13.1334 + ;; 13.1335 +esac 13.1336 +fi 13.1337 + 13.1338 +# Here we handle the case where we know the os, and the CPU type, but not the 13.1339 +# manufacturer. We pick the logical manufacturer. 13.1340 +vendor=unknown 13.1341 +case $basic_machine in 13.1342 + *-unknown) 13.1343 + case $os in 13.1344 + -riscix*) 13.1345 + vendor=acorn 13.1346 + ;; 13.1347 + -sunos*) 13.1348 + vendor=sun 13.1349 + ;; 13.1350 + -aix*) 13.1351 + vendor=ibm 13.1352 + ;; 13.1353 + -beos*) 13.1354 + vendor=be 13.1355 + ;; 13.1356 + -hpux*) 13.1357 + vendor=hp 13.1358 + ;; 13.1359 + -mpeix*) 13.1360 + vendor=hp 13.1361 + ;; 13.1362 + -hiux*) 13.1363 + vendor=hitachi 13.1364 + ;; 13.1365 + -unos*) 13.1366 + vendor=crds 13.1367 + ;; 13.1368 + -dgux*) 13.1369 + vendor=dg 13.1370 + ;; 13.1371 + -luna*) 13.1372 + vendor=omron 13.1373 + ;; 13.1374 + -genix*) 13.1375 + vendor=ns 13.1376 + ;; 13.1377 + -mvs* | -opened*) 13.1378 + vendor=ibm 13.1379 + ;; 13.1380 + -ptx*) 13.1381 + vendor=sequent 13.1382 + ;; 13.1383 + -vxsim* | -vxworks*) 13.1384 + vendor=wrs 13.1385 + ;; 13.1386 + -aux*) 13.1387 + vendor=apple 13.1388 + ;; 13.1389 + -hms*) 13.1390 + vendor=hitachi 13.1391 + ;; 13.1392 + -mpw* | -macos*) 13.1393 + vendor=apple 13.1394 + ;; 13.1395 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*) 13.1396 + vendor=atari 13.1397 + ;; 13.1398 + -vos*) 13.1399 + vendor=stratus 13.1400 + ;; 13.1401 + esac 13.1402 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` 13.1403 + ;; 13.1404 +esac 13.1405 + 13.1406 +echo $basic_machine$os 13.1407 +exit 0 13.1408 + 13.1409 +# Local variables: 13.1410 +# eval: (add-hook 'write-file-hooks 'time-stamp) 13.1411 +# time-stamp-start: "timestamp='" 13.1412 +# time-stamp-format: "%:y-%02m-%02d" 13.1413 +# time-stamp-end: "'" 13.1414 +# End:
14.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 14.2 +++ b/cfg/depcomp Mon Jul 29 08:53:08 2002 +0000 14.3 @@ -0,0 +1,336 @@ 14.4 +#! /bin/sh 14.5 + 14.6 +# depcomp - compile a program generating dependencies as side-effects 14.7 +# Copyright 1999, 2000 Free Software Foundation, Inc. 14.8 + 14.9 +# This program is free software; you can redistribute it and/or modify 14.10 +# it under the terms of the GNU General Public License as published by 14.11 +# the Free Software Foundation; either version 2, or (at your option) 14.12 +# any later version. 14.13 + 14.14 +# This program is distributed in the hope that it will be useful, 14.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 14.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14.17 +# GNU General Public License for more details. 14.18 + 14.19 +# You should have received a copy of the GNU General Public License 14.20 +# along with this program; if not, write to the Free Software 14.21 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 14.22 +# 02111-1307, USA. 14.23 + 14.24 +# Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>. 14.25 + 14.26 +if test -z "$depmode" || test -z "$source" || test -z "$object"; then 14.27 + echo "depcomp: Variables source, object and depmode must be set" 1>&2 14.28 + exit 1 14.29 +fi 14.30 +# `libtool' can also be set to `yes' or `no'. 14.31 + 14.32 +depfile=${depfile-`echo "$object" | sed 's,\([^/]*\)$,.deps/\1,;s/\.\([^.]*\)$/.P\1/'`} 14.33 +tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`} 14.34 + 14.35 +rm -f "$tmpdepfile" 14.36 + 14.37 +# Some modes work just like other modes, but use different flags. We 14.38 +# parameterize here, but still list the modes in the big case below, 14.39 +# to make depend.m4 easier to write. Note that we *cannot* use a case 14.40 +# here, because this file can only contain one case statement. 14.41 +if test "$depmode" = hp; then 14.42 + # HP compiler uses -M and no extra arg. 14.43 + gccflag=-M 14.44 + depmode=gcc 14.45 +fi 14.46 + 14.47 +if test "$depmode" = dashXmstdout; then 14.48 + # This is just like dashmstdout with a different argument. 14.49 + dashmflag=-xM 14.50 + depmode=dashmstdout 14.51 +fi 14.52 + 14.53 +case "$depmode" in 14.54 +gcc3) 14.55 +## gcc 3 implements dependency tracking that does exactly what 14.56 +## we want. Yay! 14.57 + if "$@" -MT "$object" -MF "$depfile" -MD -MP; then 14.58 + exit $? 14.59 + fi 14.60 + ;; 14.61 + 14.62 +gcc) 14.63 +## There are various ways to get dependency output from gcc. Here's 14.64 +## why we pick this rather obscure method: 14.65 +## - Don't want to use -MD because we'd like the dependencies to end 14.66 +## up in a subdir. Having to rename by hand is ugly. 14.67 +## (We might end up doing this anyway to support other compilers.) 14.68 +## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like 14.69 +## -MM, not -M (despite what the docs say). 14.70 +## - Using -M directly means running the compiler twice (even worse 14.71 +## than renaming). 14.72 + if test -z "$gccflag"; then 14.73 + gccflag=-MD, 14.74 + fi 14.75 + if "$@" -Wp,"$gccflag$tmpdepfile"; then : 14.76 + else 14.77 + stat=$? 14.78 + rm -f "$tmpdepfile" 14.79 + exit $stat 14.80 + fi 14.81 + rm -f "$depfile" 14.82 + echo "$object : \\" > "$depfile" 14.83 + alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz 14.84 +## The second -e expression handles DOS-style file names with drive letters. 14.85 + sed -e 's/^[^:]*: / /' \ 14.86 + -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile" 14.87 +## This next piece of magic avoids the `deleted header file' problem. 14.88 +## The problem is that when a header file which appears in a .P file 14.89 +## is deleted, the dependency causes make to die (because there is 14.90 +## typically no way to rebuild the header). We avoid this by adding 14.91 +## dummy dependencies for each header file. Too bad gcc doesn't do 14.92 +## this for us directly. 14.93 + tr ' ' ' 14.94 +' < "$tmpdepfile" | 14.95 +## Some versions of gcc put a space before the `:'. On the theory 14.96 +## that the space means something, we add a space to the output as 14.97 +## well. 14.98 +## Some versions of the HPUX 10.20 sed can't process this invocation 14.99 +## correctly. Breaking it into two sed invocations is a workaround. 14.100 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 14.101 + rm -f "$tmpdepfile" 14.102 + ;; 14.103 + 14.104 +hp) 14.105 + # This case exists only to let depend.m4 do its work. It works by 14.106 + # looking at the text of this script. This case will never be run, 14.107 + # since it is checked for above. 14.108 + exit 1 14.109 + ;; 14.110 + 14.111 +dashmd) 14.112 + # The Java front end to gcc doesn't run cpp, so we can't use the -Wp 14.113 + # trick. Instead we must use -M and then rename the resulting .d 14.114 + # file. This is also the case for older versions of gcc, which 14.115 + # don't implement -Wp. 14.116 + if "$@" -MD; then : 14.117 + else 14.118 + stat=$? 14.119 + rm -f FIXME 14.120 + exit $stat 14.121 + fi 14.122 + FIXME: rewrite the file 14.123 + ;; 14.124 + 14.125 +sgi) 14.126 + if test "$libtool" = yes; then 14.127 + "$@" "-Wp,-MDupdate,$tmpdepfile" 14.128 + else 14.129 + "$@" -MDupdate "$tmpdepfile" 14.130 + fi 14.131 + stat=$? 14.132 + if test $stat -eq 0; then : 14.133 + else 14.134 + stat=$? 14.135 + rm -f "$tmpdepfile" 14.136 + exit $stat 14.137 + fi 14.138 + rm -f "$depfile" 14.139 + 14.140 + if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files 14.141 + echo "$object : \\" > "$depfile" 14.142 + 14.143 + # Clip off the initial element (the dependent). Don't try to be 14.144 + # clever and replace this with sed code, as IRIX sed won't handle 14.145 + # lines with more than a fixed number of characters (4096 in 14.146 + # IRIX 6.2 sed, 8192 in IRIX 6.5). 14.147 + tr ' ' ' 14.148 +' < "$tmpdepfile" | sed 's/^[^\.]*\.o://' | tr ' 14.149 +' ' ' >> $depfile 14.150 + 14.151 + tr ' ' ' 14.152 +' < "$tmpdepfile" | \ 14.153 +## Some versions of the HPUX 10.20 sed can't process this invocation 14.154 +## correctly. Breaking it into two sed invocations is a workaround. 14.155 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 14.156 + else 14.157 + # The sourcefile does not contain any dependencies, so just 14.158 + # store a dummy comment line, to avoid errors with the Makefile 14.159 + # "include basename.Plo" scheme. 14.160 + echo "#dummy" > "$depfile" 14.161 + fi 14.162 + rm -f "$tmpdepfile" 14.163 + ;; 14.164 + 14.165 +#nosideeffect) 14.166 + # This comment above is used by automake to tell side-effect 14.167 + # dependency tracking mechanisms from slower ones. 14.168 + 14.169 +dashmstdout) 14.170 + # Important note: in order to support this mode, a compiler *must* 14.171 + # always write the proprocessed file to stdout, regardless of -o, 14.172 + # because we must use -o when running libtool. 14.173 + test -z "$dashmflag" && dashmflag=-M 14.174 + ( IFS=" " 14.175 + case " $* " in 14.176 + *" --mode=compile "*) # this is libtool, let us make it quiet 14.177 + for arg 14.178 + do # cycle over the arguments 14.179 + case "$arg" in 14.180 + "--mode=compile") 14.181 + # insert --quiet before "--mode=compile" 14.182 + set fnord "$@" --quiet 14.183 + shift # fnord 14.184 + ;; 14.185 + esac 14.186 + set fnord "$@" "$arg" 14.187 + shift # fnord 14.188 + shift # "$arg" 14.189 + done 14.190 + ;; 14.191 + esac 14.192 + "$@" $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile" 14.193 + ) & 14.194 + proc=$! 14.195 + "$@" 14.196 + stat=$? 14.197 + wait "$proc" 14.198 + if test "$stat" != 0; then exit $stat; fi 14.199 + rm -f "$depfile" 14.200 + cat < "$tmpdepfile" > "$depfile" 14.201 + tr ' ' ' 14.202 +' < "$tmpdepfile" | \ 14.203 +## Some versions of the HPUX 10.20 sed can't process this invocation 14.204 +## correctly. Breaking it into two sed invocations is a workaround. 14.205 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 14.206 + rm -f "$tmpdepfile" 14.207 + ;; 14.208 + 14.209 +dashXmstdout) 14.210 + # This case only exists to satisfy depend.m4. It is never actually 14.211 + # run, as this mode is specially recognized in the preamble. 14.212 + exit 1 14.213 + ;; 14.214 + 14.215 +makedepend) 14.216 + # X makedepend 14.217 + ( 14.218 + shift 14.219 + cleared=no 14.220 + for arg in "$@"; do 14.221 + case $cleared in no) 14.222 + set ""; shift 14.223 + cleared=yes 14.224 + esac 14.225 + case "$arg" in 14.226 + -D*|-I*) 14.227 + set fnord "$@" "$arg"; shift;; 14.228 + -*) 14.229 + ;; 14.230 + *) 14.231 + set fnord "$@" "$arg"; shift;; 14.232 + esac 14.233 + done 14.234 + obj_suffix="`echo $object | sed 's/^.*\././'`" 14.235 + touch "$tmpdepfile" 14.236 + ${MAKEDEPEND-makedepend} 2>/dev/null -o"$obj_suffix" -f"$tmpdepfile" "$@" 14.237 + ) & 14.238 + proc=$! 14.239 + "$@" 14.240 + stat=$? 14.241 + wait "$proc" 14.242 + if test "$stat" != 0; then exit $stat; fi 14.243 + rm -f "$depfile" 14.244 + cat < "$tmpdepfile" > "$depfile" 14.245 + tail +3 "$tmpdepfile" | tr ' ' ' 14.246 +' | \ 14.247 +## Some versions of the HPUX 10.20 sed can't process this invocation 14.248 +## correctly. Breaking it into two sed invocations is a workaround. 14.249 + sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile" 14.250 + rm -f "$tmpdepfile" "$tmpdepfile".bak 14.251 + ;; 14.252 + 14.253 +cpp) 14.254 + # Important note: in order to support this mode, a compiler *must* 14.255 + # always write the proprocessed file to stdout, regardless of -o, 14.256 + # because we must use -o when running libtool. 14.257 + ( IFS=" " 14.258 + case " $* " in 14.259 + *" --mode=compile "*) 14.260 + for arg 14.261 + do # cycle over the arguments 14.262 + case $arg in 14.263 + "--mode=compile") 14.264 + # insert --quiet before "--mode=compile" 14.265 + set fnord "$@" --quiet 14.266 + shift # fnord 14.267 + ;; 14.268 + esac 14.269 + set fnord "$@" "$arg" 14.270 + shift # fnord 14.271 + shift # "$arg" 14.272 + done 14.273 + ;; 14.274 + esac 14.275 + "$@" -E | 14.276 + sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' | 14.277 + sed '$ s: \\$::' > "$tmpdepfile" 14.278 + ) & 14.279 + proc=$! 14.280 + "$@" 14.281 + stat=$? 14.282 + wait "$proc" 14.283 + if test "$stat" != 0; then exit $stat; fi 14.284 + rm -f "$depfile" 14.285 + echo "$object : \\" > "$depfile" 14.286 + cat < "$tmpdepfile" >> "$depfile" 14.287 + sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile" 14.288 + rm -f "$tmpdepfile" 14.289 + ;; 14.290 + 14.291 +msvisualcpp) 14.292 + # Important note: in order to support this mode, a compiler *must* 14.293 + # always write the proprocessed file to stdout, regardless of -o, 14.294 + # because we must use -o when running libtool. 14.295 + ( IFS=" " 14.296 + case " $* " in 14.297 + *" --mode=compile "*) 14.298 + for arg 14.299 + do # cycle over the arguments 14.300 + case $arg in 14.301 + "--mode=compile") 14.302 + # insert --quiet before "--mode=compile" 14.303 + set fnord "$@" --quiet 14.304 + shift # fnord 14.305 + ;; 14.306 + esac 14.307 + set fnord "$@" "$arg" 14.308 + shift # fnord 14.309 + shift # "$arg" 14.310 + done 14.311 + ;; 14.312 + esac 14.313 + "$@" -E | 14.314 + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile" 14.315 + ) & 14.316 + proc=$! 14.317 + "$@" 14.318 + stat=$? 14.319 + wait "$proc" 14.320 + if test "$stat" != 0; then exit $stat; fi 14.321 + rm -f "$depfile" 14.322 + echo "$object : \\" > "$depfile" 14.323 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile" 14.324 + echo " " >> "$depfile" 14.325 + . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile" 14.326 + rm -f "$tmpdepfile" 14.327 + ;; 14.328 + 14.329 +none) 14.330 + exec "$@" 14.331 + ;; 14.332 + 14.333 +*) 14.334 + echo "Unknown depmode $depmode" 1>&2 14.335 + exit 1 14.336 + ;; 14.337 +esac 14.338 + 14.339 +exit 0
15.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 15.2 +++ b/cfg/install-sh Mon Jul 29 08:53:08 2002 +0000 15.3 @@ -0,0 +1,251 @@ 15.4 +#!/bin/sh 15.5 +# 15.6 +# install - install a program, script, or datafile 15.7 +# This comes from X11R5 (mit/util/scripts/install.sh). 15.8 +# 15.9 +# Copyright 1991 by the Massachusetts Institute of Technology 15.10 +# 15.11 +# Permission to use, copy, modify, distribute, and sell this software and its 15.12 +# documentation for any purpose is hereby granted without fee, provided that 15.13 +# the above copyright notice appear in all copies and that both that 15.14 +# copyright notice and this permission notice appear in supporting 15.15 +# documentation, and that the name of M.I.T. not be used in advertising or 15.16 +# publicity pertaining to distribution of the software without specific, 15.17 +# written prior permission. M.I.T. makes no representations about the 15.18 +# suitability of this software for any purpose. It is provided "as is" 15.19 +# without express or implied warranty. 15.20 +# 15.21 +# Calling this script install-sh is preferred over install.sh, to prevent 15.22 +# `make' implicit rules from creating a file called install from it 15.23 +# when there is no Makefile. 15.24 +# 15.25 +# This script is compatible with the BSD install script, but was written 15.26 +# from scratch. It can only install one file at a time, a restriction 15.27 +# shared with many OS's install programs. 15.28 + 15.29 + 15.30 +# set DOITPROG to echo to test this script 15.31 + 15.32 +# Don't use :- since 4.3BSD and earlier shells don't like it. 15.33 +doit="${DOITPROG-}" 15.34 + 15.35 + 15.36 +# put in absolute paths if you don't have them in your path; or use env. vars. 15.37 + 15.38 +mvprog="${MVPROG-mv}" 15.39 +cpprog="${CPPROG-cp}" 15.40 +chmodprog="${CHMODPROG-chmod}" 15.41 +chownprog="${CHOWNPROG-chown}" 15.42 +chgrpprog="${CHGRPPROG-chgrp}" 15.43 +stripprog="${STRIPPROG-strip}" 15.44 +rmprog="${RMPROG-rm}" 15.45 +mkdirprog="${MKDIRPROG-mkdir}" 15.46 + 15.47 +transformbasename="" 15.48 +transform_arg="" 15.49 +instcmd="$mvprog" 15.50 +chmodcmd="$chmodprog 0755" 15.51 +chowncmd="" 15.52 +chgrpcmd="" 15.53 +stripcmd="" 15.54 +rmcmd="$rmprog -f" 15.55 +mvcmd="$mvprog" 15.56 +src="" 15.57 +dst="" 15.58 +dir_arg="" 15.59 + 15.60 +while [ x"$1" != x ]; do 15.61 + case $1 in 15.62 + -c) instcmd="$cpprog" 15.63 + shift 15.64 + continue;; 15.65 + 15.66 + -d) dir_arg=true 15.67 + shift 15.68 + continue;; 15.69 + 15.70 + -m) chmodcmd="$chmodprog $2" 15.71 + shift 15.72 + shift 15.73 + continue;; 15.74 + 15.75 + -o) chowncmd="$chownprog $2" 15.76 + shift 15.77 + shift 15.78 + continue;; 15.79 + 15.80 + -g) chgrpcmd="$chgrpprog $2" 15.81 + shift 15.82 + shift 15.83 + continue;; 15.84 + 15.85 + -s) stripcmd="$stripprog" 15.86 + shift 15.87 + continue;; 15.88 + 15.89 + -t=*) transformarg=`echo $1 | sed 's/-t=//'` 15.90 + shift 15.91 + continue;; 15.92 + 15.93 + -b=*) transformbasename=`echo $1 | sed 's/-b=//'` 15.94 + shift 15.95 + continue;; 15.96 + 15.97 + *) if [ x"$src" = x ] 15.98 + then 15.99 + src=$1 15.100 + else 15.101 + # this colon is to work around a 386BSD /bin/sh bug 15.102 + : 15.103 + dst=$1 15.104 + fi 15.105 + shift 15.106 + continue;; 15.107 + esac 15.108 +done 15.109 + 15.110 +if [ x"$src" = x ] 15.111 +then 15.112 + echo "install: no input file specified" 15.113 + exit 1 15.114 +else 15.115 + true 15.116 +fi 15.117 + 15.118 +if [ x"$dir_arg" != x ]; then 15.119 + dst=$src 15.120 + src="" 15.121 + 15.122 + if [ -d $dst ]; then 15.123 + instcmd=: 15.124 + chmodcmd="" 15.125 + else 15.126 + instcmd=mkdir 15.127 + fi 15.128 +else 15.129 + 15.130 +# Waiting for this to be detected by the "$instcmd $src $dsttmp" command 15.131 +# might cause directories to be created, which would be especially bad 15.132 +# if $src (and thus $dsttmp) contains '*'. 15.133 + 15.134 + if [ -f $src -o -d $src ] 15.135 + then 15.136 + true 15.137 + else 15.138 + echo "install: $src does not exist" 15.139 + exit 1 15.140 + fi 15.141 + 15.142 + if [ x"$dst" = x ] 15.143 + then 15.144 + echo "install: no destination specified" 15.145 + exit 1 15.146 + else 15.147 + true 15.148 + fi 15.149 + 15.150 +# If destination is a directory, append the input filename; if your system 15.151 +# does not like double slashes in filenames, you may need to add some logic 15.152 + 15.153 + if [ -d $dst ] 15.154 + then 15.155 + dst="$dst"/`basename $src` 15.156 + else 15.157 + true 15.158 + fi 15.159 +fi 15.160 + 15.161 +## this sed command emulates the dirname command 15.162 +dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'` 15.163 + 15.164 +# Make sure that the destination directory exists. 15.165 +# this part is taken from Noah Friedman's mkinstalldirs script 15.166 + 15.167 +# Skip lots of stat calls in the usual case. 15.168 +if [ ! -d "$dstdir" ]; then 15.169 +defaultIFS=' 15.170 +' 15.171 +IFS="${IFS-${defaultIFS}}" 15.172 + 15.173 +oIFS="${IFS}" 15.174 +# Some sh's can't handle IFS=/ for some reason. 15.175 +IFS='%' 15.176 +set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'` 15.177 +IFS="${oIFS}" 15.178 + 15.179 +pathcomp='' 15.180 + 15.181 +while [ $# -ne 0 ] ; do 15.182 + pathcomp="${pathcomp}${1}" 15.183 + shift 15.184 + 15.185 + if [ ! -d "${pathcomp}" ] ; 15.186 + then 15.187 + $mkdirprog "${pathcomp}" 15.188 + else 15.189 + true 15.190 + fi 15.191 + 15.192 + pathcomp="${pathcomp}/" 15.193 +done 15.194 +fi 15.195 + 15.196 +if [ x"$dir_arg" != x ] 15.197 +then 15.198 + $doit $instcmd $dst && 15.199 + 15.200 + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else true ; fi && 15.201 + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else true ; fi && 15.202 + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else true ; fi && 15.203 + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else true ; fi 15.204 +else 15.205 + 15.206 +# If we're going to rename the final executable, determine the name now. 15.207 + 15.208 + if [ x"$transformarg" = x ] 15.209 + then 15.210 + dstfile=`basename $dst` 15.211 + else 15.212 + dstfile=`basename $dst $transformbasename | 15.213 + sed $transformarg`$transformbasename 15.214 + fi 15.215 + 15.216 +# don't allow the sed command to completely eliminate the filename 15.217 + 15.218 + if [ x"$dstfile" = x ] 15.219 + then 15.220 + dstfile=`basename $dst` 15.221 + else 15.222 + true 15.223 + fi 15.224 + 15.225 +# Make a temp file name in the proper directory. 15.226 + 15.227 + dsttmp=$dstdir/#inst.$$# 15.228 + 15.229 +# Move or copy the file name to the temp name 15.230 + 15.231 + $doit $instcmd $src $dsttmp && 15.232 + 15.233 + trap "rm -f ${dsttmp}" 0 && 15.234 + 15.235 +# and set any options; do chmod last to preserve setuid bits 15.236 + 15.237 +# If any of these fail, we abort the whole thing. If we want to 15.238 +# ignore errors from any of these, just make sure not to ignore 15.239 +# errors from the above "$doit $instcmd $src $dsttmp" command. 15.240 + 15.241 + if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else true;fi && 15.242 + if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else true;fi && 15.243 + if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else true;fi && 15.244 + if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else true;fi && 15.245 + 15.246 +# Now rename the file to the real destination. 15.247 + 15.248 + $doit $rmcmd -f $dstdir/$dstfile && 15.249 + $doit $mvcmd $dsttmp $dstdir/$dstfile 15.250 + 15.251 +fi && 15.252 + 15.253 + 15.254 +exit 0
16.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 16.2 +++ b/cfg/ltmain.sh Mon Jul 29 08:53:08 2002 +0000 16.3 @@ -0,0 +1,4984 @@ 16.4 +# ltmain.sh - Provide generalized library-building support services. 16.5 +# NOTE: Changing this file will not affect anything until you rerun configure. 16.6 +# 16.7 +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 16.8 +# Free Software Foundation, Inc. 16.9 +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 16.10 +# 16.11 +# This program is free software; you can redistribute it and/or modify 16.12 +# it under the terms of the GNU General Public License as published by 16.13 +# the Free Software Foundation; either version 2 of the License, or 16.14 +# (at your option) any later version. 16.15 +# 16.16 +# This program is distributed in the hope that it will be useful, but 16.17 +# WITHOUT ANY WARRANTY; without even the implied warranty of 16.18 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16.19 +# General Public License for more details. 16.20 +# 16.21 +# You should have received a copy of the GNU General Public License 16.22 +# along with this program; if not, write to the Free Software 16.23 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 16.24 +# 16.25 +# As a special exception to the GNU General Public License, if you 16.26 +# distribute this file as part of a program that contains a 16.27 +# configuration script generated by Autoconf, you may include it under 16.28 +# the same distribution terms that you use for the rest of that program. 16.29 + 16.30 +# Check that we have a working $echo. 16.31 +if test "X$1" = X--no-reexec; then 16.32 + # Discard the --no-reexec flag, and continue. 16.33 + shift 16.34 +elif test "X$1" = X--fallback-echo; then 16.35 + # Avoid inline document here, it may be left over 16.36 + : 16.37 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 16.38 + # Yippee, $echo works! 16.39 + : 16.40 +else 16.41 + # Restart under the correct shell, and then maybe $echo will work. 16.42 + exec $SHELL "$0" --no-reexec ${1+"$@"} 16.43 +fi 16.44 + 16.45 +if test "X$1" = X--fallback-echo; then 16.46 + # used as fallback echo 16.47 + shift 16.48 + cat <<EOF 16.49 +$* 16.50 +EOF 16.51 + exit 0 16.52 +fi 16.53 + 16.54 +# The name of this program. 16.55 +progname=`$echo "$0" | sed 's%^.*/%%'` 16.56 +modename="$progname" 16.57 + 16.58 +# Constants. 16.59 +PROGRAM=ltmain.sh 16.60 +PACKAGE=libtool 16.61 +VERSION=1.4.2 16.62 +TIMESTAMP=" (1.922.2.53 2001/09/11 03:18:52)" 16.63 + 16.64 +default_mode= 16.65 +help="Try \`$progname --help' for more information." 16.66 +magic="%%%MAGIC variable%%%" 16.67 +mkdir="mkdir" 16.68 +mv="mv -f" 16.69 +rm="rm -f" 16.70 + 16.71 +# Sed substitution that helps us do robust quoting. It backslashifies 16.72 +# metacharacters that are still active within double-quoted strings. 16.73 +Xsed='sed -e 1s/^X//' 16.74 +sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g' 16.75 +SP2NL='tr \040 \012' 16.76 +NL2SP='tr \015\012 \040\040' 16.77 + 16.78 +# NLS nuisances. 16.79 +# Only set LANG and LC_ALL to C if already set. 16.80 +# These must not be set unconditionally because not all systems understand 16.81 +# e.g. LANG=C (notably SCO). 16.82 +# We save the old values to restore during execute mode. 16.83 +if test "${LC_ALL+set}" = set; then 16.84 + save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL 16.85 +fi 16.86 +if test "${LANG+set}" = set; then 16.87 + save_LANG="$LANG"; LANG=C; export LANG 16.88 +fi 16.89 + 16.90 +# Make sure IFS has a sensible default 16.91 +: ${IFS=" "} 16.92 + 16.93 +if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then 16.94 + echo "$modename: not configured to build any kind of library" 1>&2 16.95 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 16.96 + exit 1 16.97 +fi 16.98 + 16.99 +# Global variables. 16.100 +mode=$default_mode 16.101 +nonopt= 16.102 +prev= 16.103 +prevopt= 16.104 +run= 16.105 +show="$echo" 16.106 +show_help= 16.107 +execute_dlfiles= 16.108 +lo2o="s/\\.lo\$/.${objext}/" 16.109 +o2lo="s/\\.${objext}\$/.lo/" 16.110 + 16.111 +# Parse our command line options once, thoroughly. 16.112 +while test $# -gt 0 16.113 +do 16.114 + arg="$1" 16.115 + shift 16.116 + 16.117 + case $arg in 16.118 + -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;; 16.119 + *) optarg= ;; 16.120 + esac 16.121 + 16.122 + # If the previous option needs an argument, assign it. 16.123 + if test -n "$prev"; then 16.124 + case $prev in 16.125 + execute_dlfiles) 16.126 + execute_dlfiles="$execute_dlfiles $arg" 16.127 + ;; 16.128 + *) 16.129 + eval "$prev=\$arg" 16.130 + ;; 16.131 + esac 16.132 + 16.133 + prev= 16.134 + prevopt= 16.135 + continue 16.136 + fi 16.137 + 16.138 + # Have we seen a non-optional argument yet? 16.139 + case $arg in 16.140 + --help) 16.141 + show_help=yes 16.142 + ;; 16.143 + 16.144 + --version) 16.145 + echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP" 16.146 + exit 0 16.147 + ;; 16.148 + 16.149 + --config) 16.150 + sed -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $0 16.151 + exit 0 16.152 + ;; 16.153 + 16.154 + --debug) 16.155 + echo "$progname: enabling shell trace mode" 16.156 + set -x 16.157 + ;; 16.158 + 16.159 + --dry-run | -n) 16.160 + run=: 16.161 + ;; 16.162 + 16.163 + --features) 16.164 + echo "host: $host" 16.165 + if test "$build_libtool_libs" = yes; then 16.166 + echo "enable shared libraries" 16.167 + else 16.168 + echo "disable shared libraries" 16.169 + fi 16.170 + if test "$build_old_libs" = yes; then 16.171 + echo "enable static libraries" 16.172 + else 16.173 + echo "disable static libraries" 16.174 + fi 16.175 + exit 0 16.176 + ;; 16.177 + 16.178 + --finish) mode="finish" ;; 16.179 + 16.180 + --mode) prevopt="--mode" prev=mode ;; 16.181 + --mode=*) mode="$optarg" ;; 16.182 + 16.183 + --quiet | --silent) 16.184 + show=: 16.185 + ;; 16.186 + 16.187 + -dlopen) 16.188 + prevopt="-dlopen" 16.189 + prev=execute_dlfiles 16.190 + ;; 16.191 + 16.192 + -*) 16.193 + $echo "$modename: unrecognized option \`$arg'" 1>&2 16.194 + $echo "$help" 1>&2 16.195 + exit 1 16.196 + ;; 16.197 + 16.198 + *) 16.199 + nonopt="$arg" 16.200 + break 16.201 + ;; 16.202 + esac 16.203 +done 16.204 + 16.205 +if test -n "$prevopt"; then 16.206 + $echo "$modename: option \`$prevopt' requires an argument" 1>&2 16.207 + $echo "$help" 1>&2 16.208 + exit 1 16.209 +fi 16.210 + 16.211 +# If this variable is set in any of the actions, the command in it 16.212 +# will be execed at the end. This prevents here-documents from being 16.213 +# left over by shells. 16.214 +exec_cmd= 16.215 + 16.216 +if test -z "$show_help"; then 16.217 + 16.218 + # Infer the operation mode. 16.219 + if test -z "$mode"; then 16.220 + case $nonopt in 16.221 + *cc | *++ | gcc* | *-gcc*) 16.222 + mode=link 16.223 + for arg 16.224 + do 16.225 + case $arg in 16.226 + -c) 16.227 + mode=compile 16.228 + break 16.229 + ;; 16.230 + esac 16.231 + done 16.232 + ;; 16.233 + *db | *dbx | *strace | *truss) 16.234 + mode=execute 16.235 + ;; 16.236 + *install*|cp|mv) 16.237 + mode=install 16.238 + ;; 16.239 + *rm) 16.240 + mode=uninstall 16.241 + ;; 16.242 + *) 16.243 + # If we have no mode, but dlfiles were specified, then do execute mode. 16.244 + test -n "$execute_dlfiles" && mode=execute 16.245 + 16.246 + # Just use the default operation mode. 16.247 + if test -z "$mode"; then 16.248 + if test -n "$nonopt"; then 16.249 + $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2 16.250 + else 16.251 + $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2 16.252 + fi 16.253 + fi 16.254 + ;; 16.255 + esac 16.256 + fi 16.257 + 16.258 + # Only execute mode is allowed to have -dlopen flags. 16.259 + if test -n "$execute_dlfiles" && test "$mode" != execute; then 16.260 + $echo "$modename: unrecognized option \`-dlopen'" 1>&2 16.261 + $echo "$help" 1>&2 16.262 + exit 1 16.263 + fi 16.264 + 16.265 + # Change the help message to a mode-specific one. 16.266 + generic_help="$help" 16.267 + help="Try \`$modename --help --mode=$mode' for more information." 16.268 + 16.269 + # These modes are in order of execution frequency so that they run quickly. 16.270 + case $mode in 16.271 + # libtool compile mode 16.272 + compile) 16.273 + modename="$modename: compile" 16.274 + # Get the compilation command and the source file. 16.275 + base_compile= 16.276 + prev= 16.277 + lastarg= 16.278 + srcfile="$nonopt" 16.279 + suppress_output= 16.280 + 16.281 + user_target=no 16.282 + for arg 16.283 + do 16.284 + case $prev in 16.285 + "") ;; 16.286 + xcompiler) 16.287 + # Aesthetically quote the previous argument. 16.288 + prev= 16.289 + lastarg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 16.290 + 16.291 + case $arg in 16.292 + # Double-quote args containing other shell metacharacters. 16.293 + # Many Bourne shells cannot handle close brackets correctly 16.294 + # in scan sets, so we specify it separately. 16.295 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 16.296 + arg="\"$arg\"" 16.297 + ;; 16.298 + esac 16.299 + 16.300 + # Add the previous argument to base_compile. 16.301 + if test -z "$base_compile"; then 16.302 + base_compile="$lastarg" 16.303 + else 16.304 + base_compile="$base_compile $lastarg" 16.305 + fi 16.306 + continue 16.307 + ;; 16.308 + esac 16.309 + 16.310 + # Accept any command-line options. 16.311 + case $arg in 16.312 + -o) 16.313 + if test "$user_target" != "no"; then 16.314 + $echo "$modename: you cannot specify \`-o' more than once" 1>&2 16.315 + exit 1 16.316 + fi 16.317 + user_target=next 16.318 + ;; 16.319 + 16.320 + -static) 16.321 + build_old_libs=yes 16.322 + continue 16.323 + ;; 16.324 + 16.325 + -prefer-pic) 16.326 + pic_mode=yes 16.327 + continue 16.328 + ;; 16.329 + 16.330 + -prefer-non-pic) 16.331 + pic_mode=no 16.332 + continue 16.333 + ;; 16.334 + 16.335 + -Xcompiler) 16.336 + prev=xcompiler 16.337 + continue 16.338 + ;; 16.339 + 16.340 + -Wc,*) 16.341 + args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"` 16.342 + lastarg= 16.343 + save_ifs="$IFS"; IFS=',' 16.344 + for arg in $args; do 16.345 + IFS="$save_ifs" 16.346 + 16.347 + # Double-quote args containing other shell metacharacters. 16.348 + # Many Bourne shells cannot handle close brackets correctly 16.349 + # in scan sets, so we specify it separately. 16.350 + case $arg in 16.351 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 16.352 + arg="\"$arg\"" 16.353 + ;; 16.354 + esac 16.355 + lastarg="$lastarg $arg" 16.356 + done 16.357 + IFS="$save_ifs" 16.358 + lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"` 16.359 + 16.360 + # Add the arguments to base_compile. 16.361 + if test -z "$base_compile"; then 16.362 + base_compile="$lastarg" 16.363 + else 16.364 + base_compile="$base_compile $lastarg" 16.365 + fi 16.366 + continue 16.367 + ;; 16.368 + esac 16.369 + 16.370 + case $user_target in 16.371 + next) 16.372 + # The next one is the -o target name 16.373 + user_target=yes 16.374 + continue 16.375 + ;; 16.376 + yes) 16.377 + # We got the output file 16.378 + user_target=set 16.379 + libobj="$arg" 16.380 + continue 16.381 + ;; 16.382 + esac 16.383 + 16.384 + # Accept the current argument as the source file. 16.385 + lastarg="$srcfile" 16.386 + srcfile="$arg" 16.387 + 16.388 + # Aesthetically quote the previous argument. 16.389 + 16.390 + # Backslashify any backslashes, double quotes, and dollar signs. 16.391 + # These are the only characters that are still specially 16.392 + # interpreted inside of double-quoted scrings. 16.393 + lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"` 16.394 + 16.395 + # Double-quote args containing other shell metacharacters. 16.396 + # Many Bourne shells cannot handle close brackets correctly 16.397 + # in scan sets, so we specify it separately. 16.398 + case $lastarg in 16.399 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 16.400 + lastarg="\"$lastarg\"" 16.401 + ;; 16.402 + esac 16.403 + 16.404 + # Add the previous argument to base_compile. 16.405 + if test -z "$base_compile"; then 16.406 + base_compile="$lastarg" 16.407 + else 16.408 + base_compile="$base_compile $lastarg" 16.409 + fi 16.410 + done 16.411 + 16.412 + case $user_target in 16.413 + set) 16.414 + ;; 16.415 + no) 16.416 + # Get the name of the library object. 16.417 + libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'` 16.418 + ;; 16.419 + *) 16.420 + $echo "$modename: you must specify a target with \`-o'" 1>&2 16.421 + exit 1 16.422 + ;; 16.423 + esac 16.424 + 16.425 + # Recognize several different file suffixes. 16.426 + # If the user specifies -o file.o, it is replaced with file.lo 16.427 + xform='[cCFSfmso]' 16.428 + case $libobj in 16.429 + *.ada) xform=ada ;; 16.430 + *.adb) xform=adb ;; 16.431 + *.ads) xform=ads ;; 16.432 + *.asm) xform=asm ;; 16.433 + *.c++) xform=c++ ;; 16.434 + *.cc) xform=cc ;; 16.435 + *.cpp) xform=cpp ;; 16.436 + *.cxx) xform=cxx ;; 16.437 + *.f90) xform=f90 ;; 16.438 + *.for) xform=for ;; 16.439 + esac 16.440 + 16.441 + libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"` 16.442 + 16.443 + case $libobj in 16.444 + *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;; 16.445 + *) 16.446 + $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2 16.447 + exit 1 16.448 + ;; 16.449 + esac 16.450 + 16.451 + if test -z "$base_compile"; then 16.452 + $echo "$modename: you must specify a compilation command" 1>&2 16.453 + $echo "$help" 1>&2 16.454 + exit 1 16.455 + fi 16.456 + 16.457 + # Delete any leftover library objects. 16.458 + if test "$build_old_libs" = yes; then 16.459 + removelist="$obj $libobj" 16.460 + else 16.461 + removelist="$libobj" 16.462 + fi 16.463 + 16.464 + $run $rm $removelist 16.465 + trap "$run $rm $removelist; exit 1" 1 2 15 16.466 + 16.467 + # On Cygwin there's no "real" PIC flag so we must build both object types 16.468 + case $host_os in 16.469 + cygwin* | mingw* | pw32* | os2*) 16.470 + pic_mode=default 16.471 + ;; 16.472 + esac 16.473 + if test $pic_mode = no && test "$deplibs_check_method" != pass_all; then 16.474 + # non-PIC code in shared libraries is not supported 16.475 + pic_mode=default 16.476 + fi 16.477 + 16.478 + # Calculate the filename of the output object if compiler does 16.479 + # not support -o with -c 16.480 + if test "$compiler_c_o" = no; then 16.481 + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} 16.482 + lockfile="$output_obj.lock" 16.483 + removelist="$removelist $output_obj $lockfile" 16.484 + trap "$run $rm $removelist; exit 1" 1 2 15 16.485 + else 16.486 + need_locks=no 16.487 + lockfile= 16.488 + fi 16.489 + 16.490 + # Lock this critical section if it is needed 16.491 + # We use this script file to make the link, it avoids creating a new file 16.492 + if test "$need_locks" = yes; then 16.493 + until $run ln "$0" "$lockfile" 2>/dev/null; do 16.494 + $show "Waiting for $lockfile to be removed" 16.495 + sleep 2 16.496 + done 16.497 + elif test "$need_locks" = warn; then 16.498 + if test -f "$lockfile"; then 16.499 + echo "\ 16.500 +*** ERROR, $lockfile exists and contains: 16.501 +`cat $lockfile 2>/dev/null` 16.502 + 16.503 +This indicates that another process is trying to use the same 16.504 +temporary object file, and libtool could not work around it because 16.505 +your compiler does not support \`-c' and \`-o' together. If you 16.506 +repeat this compilation, it may succeed, by chance, but you had better 16.507 +avoid parallel builds (make -j) in this platform, or get a better 16.508 +compiler." 16.509 + 16.510 + $run $rm $removelist 16.511 + exit 1 16.512 + fi 16.513 + echo $srcfile > "$lockfile" 16.514 + fi 16.515 + 16.516 + if test -n "$fix_srcfile_path"; then 16.517 + eval srcfile=\"$fix_srcfile_path\" 16.518 + fi 16.519 + 16.520 + # Only build a PIC object if we are building libtool libraries. 16.521 + if test "$build_libtool_libs" = yes; then 16.522 + # Without this assignment, base_compile gets emptied. 16.523 + fbsd_hideous_sh_bug=$base_compile 16.524 + 16.525 + if test "$pic_mode" != no; then 16.526 + # All platforms use -DPIC, to notify preprocessed assembler code. 16.527 + command="$base_compile $srcfile $pic_flag -DPIC" 16.528 + else 16.529 + # Don't build PIC code 16.530 + command="$base_compile $srcfile" 16.531 + fi 16.532 + if test "$build_old_libs" = yes; then 16.533 + lo_libobj="$libobj" 16.534 + dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'` 16.535 + if test "X$dir" = "X$libobj"; then 16.536 + dir="$objdir" 16.537 + else 16.538 + dir="$dir/$objdir" 16.539 + fi 16.540 + libobj="$dir/"`$echo "X$libobj" | $Xsed -e 's%^.*/%%'` 16.541 + 16.542 + if test -d "$dir"; then 16.543 + $show "$rm $libobj" 16.544 + $run $rm $libobj 16.545 + else 16.546 + $show "$mkdir $dir" 16.547 + $run $mkdir $dir 16.548 + status=$? 16.549 + if test $status -ne 0 && test ! -d $dir; then 16.550 + exit $status 16.551 + fi 16.552 + fi 16.553 + fi 16.554 + if test "$compiler_o_lo" = yes; then 16.555 + output_obj="$libobj" 16.556 + command="$command -o $output_obj" 16.557 + elif test "$compiler_c_o" = yes; then 16.558 + output_obj="$obj" 16.559 + command="$command -o $output_obj" 16.560 + fi 16.561 + 16.562 + $run $rm "$output_obj" 16.563 + $show "$command" 16.564 + if $run eval "$command"; then : 16.565 + else 16.566 + test -n "$output_obj" && $run $rm $removelist 16.567 + exit 1 16.568 + fi 16.569 + 16.570 + if test "$need_locks" = warn && 16.571 + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then 16.572 + echo "\ 16.573 +*** ERROR, $lockfile contains: 16.574 +`cat $lockfile 2>/dev/null` 16.575 + 16.576 +but it should contain: 16.577 +$srcfile 16.578 + 16.579 +This indicates that another process is trying to use the same 16.580 +temporary object file, and libtool could not work around it because 16.581 +your compiler does not support \`-c' and \`-o' together. If you 16.582 +repeat this compilation, it may succeed, by chance, but you had better 16.583 +avoid parallel builds (make -j) in this platform, or get a better 16.584 +compiler." 16.585 + 16.586 + $run $rm $removelist 16.587 + exit 1 16.588 + fi 16.589 + 16.590 + # Just move the object if needed, then go on to compile the next one 16.591 + if test x"$output_obj" != x"$libobj"; then 16.592 + $show "$mv $output_obj $libobj" 16.593 + if $run $mv $output_obj $libobj; then : 16.594 + else 16.595 + error=$? 16.596 + $run $rm $removelist 16.597 + exit $error 16.598 + fi 16.599 + fi 16.600 + 16.601 + # If we have no pic_flag, then copy the object into place and finish. 16.602 + if (test -z "$pic_flag" || test "$pic_mode" != default) && 16.603 + test "$build_old_libs" = yes; then 16.604 + # Rename the .lo from within objdir to obj 16.605 + if test -f $obj; then 16.606 + $show $rm $obj 16.607 + $run $rm $obj 16.608 + fi 16.609 + 16.610 + $show "$mv $libobj $obj" 16.611 + if $run $mv $libobj $obj; then : 16.612 + else 16.613 + error=$? 16.614 + $run $rm $removelist 16.615 + exit $error 16.616 + fi 16.617 + 16.618 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` 16.619 + if test "X$xdir" = "X$obj"; then 16.620 + xdir="." 16.621 + else 16.622 + xdir="$xdir" 16.623 + fi 16.624 + baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"` 16.625 + libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"` 16.626 + # Now arrange that obj and lo_libobj become the same file 16.627 + $show "(cd $xdir && $LN_S $baseobj $libobj)" 16.628 + if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then 16.629 + # Unlock the critical section if it was locked 16.630 + if test "$need_locks" != no; then 16.631 + $run $rm "$lockfile" 16.632 + fi 16.633 + exit 0 16.634 + else 16.635 + error=$? 16.636 + $run $rm $removelist 16.637 + exit $error 16.638 + fi 16.639 + fi 16.640 + 16.641 + # Allow error messages only from the first compilation. 16.642 + suppress_output=' >/dev/null 2>&1' 16.643 + fi 16.644 + 16.645 + # Only build a position-dependent object if we build old libraries. 16.646 + if test "$build_old_libs" = yes; then 16.647 + if test "$pic_mode" != yes; then 16.648 + # Don't build PIC code 16.649 + command="$base_compile $srcfile" 16.650 + else 16.651 + # All platforms use -DPIC, to notify preprocessed assembler code. 16.652 + command="$base_compile $srcfile $pic_flag -DPIC" 16.653 + fi 16.654 + if test "$compiler_c_o" = yes; then 16.655 + command="$command -o $obj" 16.656 + output_obj="$obj" 16.657 + fi 16.658 + 16.659 + # Suppress compiler output if we already did a PIC compilation. 16.660 + command="$command$suppress_output" 16.661 + $run $rm "$output_obj" 16.662 + $show "$command" 16.663 + if $run eval "$command"; then : 16.664 + else 16.665 + $run $rm $removelist 16.666 + exit 1 16.667 + fi 16.668 + 16.669 + if test "$need_locks" = warn && 16.670 + test x"`cat $lockfile 2>/dev/null`" != x"$srcfile"; then 16.671 + echo "\ 16.672 +*** ERROR, $lockfile contains: 16.673 +`cat $lockfile 2>/dev/null` 16.674 + 16.675 +but it should contain: 16.676 +$srcfile 16.677 + 16.678 +This indicates that another process is trying to use the same 16.679 +temporary object file, and libtool could not work around it because 16.680 +your compiler does not support \`-c' and \`-o' together. If you 16.681 +repeat this compilation, it may succeed, by chance, but you had better 16.682 +avoid parallel builds (make -j) in this platform, or get a better 16.683 +compiler." 16.684 + 16.685 + $run $rm $removelist 16.686 + exit 1 16.687 + fi 16.688 + 16.689 + # Just move the object if needed 16.690 + if test x"$output_obj" != x"$obj"; then 16.691 + $show "$mv $output_obj $obj" 16.692 + if $run $mv $output_obj $obj; then : 16.693 + else 16.694 + error=$? 16.695 + $run $rm $removelist 16.696 + exit $error 16.697 + fi 16.698 + fi 16.699 + 16.700 + # Create an invalid libtool object if no PIC, so that we do not 16.701 + # accidentally link it into a program. 16.702 + if test "$build_libtool_libs" != yes; then 16.703 + $show "echo timestamp > $libobj" 16.704 + $run eval "echo timestamp > \$libobj" || exit $? 16.705 + else 16.706 + # Move the .lo from within objdir 16.707 + $show "$mv $libobj $lo_libobj" 16.708 + if $run $mv $libobj $lo_libobj; then : 16.709 + else 16.710 + error=$? 16.711 + $run $rm $removelist 16.712 + exit $error 16.713 + fi 16.714 + fi 16.715 + fi 16.716 + 16.717 + # Unlock the critical section if it was locked 16.718 + if test "$need_locks" != no; then 16.719 + $run $rm "$lockfile" 16.720 + fi 16.721 + 16.722 + exit 0 16.723 + ;; 16.724 + 16.725 + # libtool link mode 16.726 + link | relink) 16.727 + modename="$modename: link" 16.728 + case $host in 16.729 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 16.730 + # It is impossible to link a dll without this setting, and 16.731 + # we shouldn't force the makefile maintainer to figure out 16.732 + # which system we are compiling for in order to pass an extra 16.733 + # flag for every libtool invokation. 16.734 + # allow_undefined=no 16.735 + 16.736 + # FIXME: Unfortunately, there are problems with the above when trying 16.737 + # to make a dll which has undefined symbols, in which case not 16.738 + # even a static library is built. For now, we need to specify 16.739 + # -no-undefined on the libtool link line when we can be certain 16.740 + # that all symbols are satisfied, otherwise we get a static library. 16.741 + allow_undefined=yes 16.742 + ;; 16.743 + *) 16.744 + allow_undefined=yes 16.745 + ;; 16.746 + esac 16.747 + libtool_args="$nonopt" 16.748 + compile_command="$nonopt" 16.749 + finalize_command="$nonopt" 16.750 + 16.751 + compile_rpath= 16.752 + finalize_rpath= 16.753 + compile_shlibpath= 16.754 + finalize_shlibpath= 16.755 + convenience= 16.756 + old_convenience= 16.757 + deplibs= 16.758 + old_deplibs= 16.759 + compiler_flags= 16.760 + linker_flags= 16.761 + dllsearchpath= 16.762 + lib_search_path=`pwd` 16.763 + 16.764 + avoid_version=no 16.765 + dlfiles= 16.766 + dlprefiles= 16.767 + dlself=no 16.768 + export_dynamic=no 16.769 + export_symbols= 16.770 + export_symbols_regex= 16.771 + generated= 16.772 + libobjs= 16.773 + ltlibs= 16.774 + module=no 16.775 + no_install=no 16.776 + objs= 16.777 + prefer_static_libs=no 16.778 + preload=no 16.779 + prev= 16.780 + prevarg= 16.781 + release= 16.782 + rpath= 16.783 + xrpath= 16.784 + perm_rpath= 16.785 + temp_rpath= 16.786 + thread_safe=no 16.787 + vinfo= 16.788 + 16.789 + # We need to know -static, to get the right output filenames. 16.790 + for arg 16.791 + do 16.792 + case $arg in 16.793 + -all-static | -static) 16.794 + if test "X$arg" = "X-all-static"; then 16.795 + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then 16.796 + $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2 16.797 + fi 16.798 + if test -n "$link_static_flag"; then 16.799 + dlopen_self=$dlopen_self_static 16.800 + fi 16.801 + else 16.802 + if test -z "$pic_flag" && test -n "$link_static_flag"; then 16.803 + dlopen_self=$dlopen_self_static 16.804 + fi 16.805 + fi 16.806 + build_libtool_libs=no 16.807 + build_old_libs=yes 16.808 + prefer_static_libs=yes 16.809 + break 16.810 + ;; 16.811 + esac 16.812 + done 16.813 + 16.814 + # See if our shared archives depend on static archives. 16.815 + test -n "$old_archive_from_new_cmds" && build_old_libs=yes 16.816 + 16.817 + # Go through the arguments, transforming them on the way. 16.818 + while test $# -gt 0; do 16.819 + arg="$1" 16.820 + shift 16.821 + case $arg in 16.822 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 16.823 + qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test 16.824 + ;; 16.825 + *) qarg=$arg ;; 16.826 + esac 16.827 + libtool_args="$libtool_args $qarg" 16.828 + 16.829 + # If the previous option needs an argument, assign it. 16.830 + if test -n "$prev"; then 16.831 + case $prev in 16.832 + output) 16.833 + compile_command="$compile_command @OUTPUT@" 16.834 + finalize_command="$finalize_command @OUTPUT@" 16.835 + ;; 16.836 + esac 16.837 + 16.838 + case $prev in 16.839 + dlfiles|dlprefiles) 16.840 + if test "$preload" = no; then 16.841 + # Add the symbol object into the linking commands. 16.842 + compile_command="$compile_command @SYMFILE@" 16.843 + finalize_command="$finalize_command @SYMFILE@" 16.844 + preload=yes 16.845 + fi 16.846 + case $arg in 16.847 + *.la | *.lo) ;; # We handle these cases below. 16.848 + force) 16.849 + if test "$dlself" = no; then 16.850 + dlself=needless 16.851 + export_dynamic=yes 16.852 + fi 16.853 + prev= 16.854 + continue 16.855 + ;; 16.856 + self) 16.857 + if test "$prev" = dlprefiles; then 16.858 + dlself=yes 16.859 + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then 16.860 + dlself=yes 16.861 + else 16.862 + dlself=needless 16.863 + export_dynamic=yes 16.864 + fi 16.865 + prev= 16.866 + continue 16.867 + ;; 16.868 + *) 16.869 + if test "$prev" = dlfiles; then 16.870 + dlfiles="$dlfiles $arg" 16.871 + else 16.872 + dlprefiles="$dlprefiles $arg" 16.873 + fi 16.874 + prev= 16.875 + continue 16.876 + ;; 16.877 + esac 16.878 + ;; 16.879 + expsyms) 16.880 + export_symbols="$arg" 16.881 + if test ! -f "$arg"; then 16.882 + $echo "$modename: symbol file \`$arg' does not exist" 16.883 + exit 1 16.884 + fi 16.885 + prev= 16.886 + continue 16.887 + ;; 16.888 + expsyms_regex) 16.889 + export_symbols_regex="$arg" 16.890 + prev= 16.891 + continue 16.892 + ;; 16.893 + release) 16.894 + release="-$arg" 16.895 + prev= 16.896 + continue 16.897 + ;; 16.898 + rpath | xrpath) 16.899 + # We need an absolute path. 16.900 + case $arg in 16.901 + [\\/]* | [A-Za-z]:[\\/]*) ;; 16.902 + *) 16.903 + $echo "$modename: only absolute run-paths are allowed" 1>&2 16.904 + exit 1 16.905 + ;; 16.906 + esac 16.907 + if test "$prev" = rpath; then 16.908 + case "$rpath " in 16.909 + *" $arg "*) ;; 16.910 + *) rpath="$rpath $arg" ;; 16.911 + esac 16.912 + else 16.913 + case "$xrpath " in 16.914 + *" $arg "*) ;; 16.915 + *) xrpath="$xrpath $arg" ;; 16.916 + esac 16.917 + fi 16.918 + prev= 16.919 + continue 16.920 + ;; 16.921 + xcompiler) 16.922 + compiler_flags="$compiler_flags $qarg" 16.923 + prev= 16.924 + compile_command="$compile_command $qarg" 16.925 + finalize_command="$finalize_command $qarg" 16.926 + continue 16.927 + ;; 16.928 + xlinker) 16.929 + linker_flags="$linker_flags $qarg" 16.930 + compiler_flags="$compiler_flags $wl$qarg" 16.931 + prev= 16.932 + compile_command="$compile_command $wl$qarg" 16.933 + finalize_command="$finalize_command $wl$qarg" 16.934 + continue 16.935 + ;; 16.936 + *) 16.937 + eval "$prev=\"\$arg\"" 16.938 + prev= 16.939 + continue 16.940 + ;; 16.941 + esac 16.942 + fi # test -n $prev 16.943 + 16.944 + prevarg="$arg" 16.945 + 16.946 + case $arg in 16.947 + -all-static) 16.948 + if test -n "$link_static_flag"; then 16.949 + compile_command="$compile_command $link_static_flag" 16.950 + finalize_command="$finalize_command $link_static_flag" 16.951 + fi 16.952 + continue 16.953 + ;; 16.954 + 16.955 + -allow-undefined) 16.956 + # FIXME: remove this flag sometime in the future. 16.957 + $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2 16.958 + continue 16.959 + ;; 16.960 + 16.961 + -avoid-version) 16.962 + avoid_version=yes 16.963 + continue 16.964 + ;; 16.965 + 16.966 + -dlopen) 16.967 + prev=dlfiles 16.968 + continue 16.969 + ;; 16.970 + 16.971 + -dlpreopen) 16.972 + prev=dlprefiles 16.973 + continue 16.974 + ;; 16.975 + 16.976 + -export-dynamic) 16.977 + export_dynamic=yes 16.978 + continue 16.979 + ;; 16.980 + 16.981 + -export-symbols | -export-symbols-regex) 16.982 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then 16.983 + $echo "$modename: more than one -exported-symbols argument is not allowed" 16.984 + exit 1 16.985 + fi 16.986 + if test "X$arg" = "X-export-symbols"; then 16.987 + prev=expsyms 16.988 + else 16.989 + prev=expsyms_regex 16.990 + fi 16.991 + continue 16.992 + ;; 16.993 + 16.994 + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:* 16.995 + # so, if we see these flags be careful not to treat them like -L 16.996 + -L[A-Z][A-Z]*:*) 16.997 + case $with_gcc/$host in 16.998 + no/*-*-irix*) 16.999 + compile_command="$compile_command $arg" 16.1000 + finalize_command="$finalize_command $arg" 16.1001 + ;; 16.1002 + esac 16.1003 + continue 16.1004 + ;; 16.1005 + 16.1006 + -L*) 16.1007 + dir=`$echo "X$arg" | $Xsed -e 's/^-L//'` 16.1008 + # We need an absolute path. 16.1009 + case $dir in 16.1010 + [\\/]* | [A-Za-z]:[\\/]*) ;; 16.1011 + *) 16.1012 + absdir=`cd "$dir" && pwd` 16.1013 + if test -z "$absdir"; then 16.1014 + $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2 16.1015 + exit 1 16.1016 + fi 16.1017 + dir="$absdir" 16.1018 + ;; 16.1019 + esac 16.1020 + case "$deplibs " in 16.1021 + *" -L$dir "*) ;; 16.1022 + *) 16.1023 + deplibs="$deplibs -L$dir" 16.1024 + lib_search_path="$lib_search_path $dir" 16.1025 + ;; 16.1026 + esac 16.1027 + case $host in 16.1028 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 16.1029 + case :$dllsearchpath: in 16.1030 + *":$dir:"*) ;; 16.1031 + *) dllsearchpath="$dllsearchpath:$dir";; 16.1032 + esac 16.1033 + ;; 16.1034 + esac 16.1035 + continue 16.1036 + ;; 16.1037 + 16.1038 + -l*) 16.1039 + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then 16.1040 + case $host in 16.1041 + *-*-cygwin* | *-*-pw32* | *-*-beos*) 16.1042 + # These systems don't actually have a C or math library (as such) 16.1043 + continue 16.1044 + ;; 16.1045 + *-*-mingw* | *-*-os2*) 16.1046 + # These systems don't actually have a C library (as such) 16.1047 + test "X$arg" = "X-lc" && continue 16.1048 + ;; 16.1049 + *-*-openbsd*) 16.1050 + # Do not include libc due to us having libc/libc_r. 16.1051 + test "X$arg" = "X-lc" && continue 16.1052 + ;; 16.1053 + esac 16.1054 + elif test "X$arg" = "X-lc_r"; then 16.1055 + case $host in 16.1056 + *-*-openbsd*) 16.1057 + # Do not include libc_r directly, use -pthread flag. 16.1058 + continue 16.1059 + ;; 16.1060 + esac 16.1061 + fi 16.1062 + deplibs="$deplibs $arg" 16.1063 + continue 16.1064 + ;; 16.1065 + 16.1066 + -module) 16.1067 + module=yes 16.1068 + continue 16.1069 + ;; 16.1070 + 16.1071 + -no-fast-install) 16.1072 + fast_install=no 16.1073 + continue 16.1074 + ;; 16.1075 + 16.1076 + -no-install) 16.1077 + case $host in 16.1078 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 16.1079 + # The PATH hackery in wrapper scripts is required on Windows 16.1080 + # in order for the loader to find any dlls it needs. 16.1081 + $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2 16.1082 + $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2 16.1083 + fast_install=no 16.1084 + ;; 16.1085 + *) no_install=yes ;; 16.1086 + esac 16.1087 + continue 16.1088 + ;; 16.1089 + 16.1090 + -no-undefined) 16.1091 + allow_undefined=no 16.1092 + continue 16.1093 + ;; 16.1094 + 16.1095 + -o) prev=output ;; 16.1096 + 16.1097 + -release) 16.1098 + prev=release 16.1099 + continue 16.1100 + ;; 16.1101 + 16.1102 + -rpath) 16.1103 + prev=rpath 16.1104 + continue 16.1105 + ;; 16.1106 + 16.1107 + -R) 16.1108 + prev=xrpath 16.1109 + continue 16.1110 + ;; 16.1111 + 16.1112 + -R*) 16.1113 + dir=`$echo "X$arg" | $Xsed -e 's/^-R//'` 16.1114 + # We need an absolute path. 16.1115 + case $dir in 16.1116 + [\\/]* | [A-Za-z]:[\\/]*) ;; 16.1117 + *) 16.1118 + $echo "$modename: only absolute run-paths are allowed" 1>&2 16.1119 + exit 1 16.1120 + ;; 16.1121 + esac 16.1122 + case "$xrpath " in 16.1123 + *" $dir "*) ;; 16.1124 + *) xrpath="$xrpath $dir" ;; 16.1125 + esac 16.1126 + continue 16.1127 + ;; 16.1128 + 16.1129 + -static) 16.1130 + # The effects of -static are defined in a previous loop. 16.1131 + # We used to do the same as -all-static on platforms that 16.1132 + # didn't have a PIC flag, but the assumption that the effects 16.1133 + # would be equivalent was wrong. It would break on at least 16.1134 + # Digital Unix and AIX. 16.1135 + continue 16.1136 + ;; 16.1137 + 16.1138 + -thread-safe) 16.1139 + thread_safe=yes 16.1140 + continue 16.1141 + ;; 16.1142 + 16.1143 + -version-info) 16.1144 + prev=vinfo 16.1145 + continue 16.1146 + ;; 16.1147 + 16.1148 + -Wc,*) 16.1149 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'` 16.1150 + arg= 16.1151 + save_ifs="$IFS"; IFS=',' 16.1152 + for flag in $args; do 16.1153 + IFS="$save_ifs" 16.1154 + case $flag in 16.1155 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 16.1156 + flag="\"$flag\"" 16.1157 + ;; 16.1158 + esac 16.1159 + arg="$arg $wl$flag" 16.1160 + compiler_flags="$compiler_flags $flag" 16.1161 + done 16.1162 + IFS="$save_ifs" 16.1163 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` 16.1164 + ;; 16.1165 + 16.1166 + -Wl,*) 16.1167 + args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'` 16.1168 + arg= 16.1169 + save_ifs="$IFS"; IFS=',' 16.1170 + for flag in $args; do 16.1171 + IFS="$save_ifs" 16.1172 + case $flag in 16.1173 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 16.1174 + flag="\"$flag\"" 16.1175 + ;; 16.1176 + esac 16.1177 + arg="$arg $wl$flag" 16.1178 + compiler_flags="$compiler_flags $wl$flag" 16.1179 + linker_flags="$linker_flags $flag" 16.1180 + done 16.1181 + IFS="$save_ifs" 16.1182 + arg=`$echo "X$arg" | $Xsed -e "s/^ //"` 16.1183 + ;; 16.1184 + 16.1185 + -Xcompiler) 16.1186 + prev=xcompiler 16.1187 + continue 16.1188 + ;; 16.1189 + 16.1190 + -Xlinker) 16.1191 + prev=xlinker 16.1192 + continue 16.1193 + ;; 16.1194 + 16.1195 + # Some other compiler flag. 16.1196 + -* | +*) 16.1197 + # Unknown arguments in both finalize_command and compile_command need 16.1198 + # to be aesthetically quoted because they are evaled later. 16.1199 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 16.1200 + case $arg in 16.1201 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 16.1202 + arg="\"$arg\"" 16.1203 + ;; 16.1204 + esac 16.1205 + ;; 16.1206 + 16.1207 + *.lo | *.$objext) 16.1208 + # A library or standard object. 16.1209 + if test "$prev" = dlfiles; then 16.1210 + # This file was specified with -dlopen. 16.1211 + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then 16.1212 + dlfiles="$dlfiles $arg" 16.1213 + prev= 16.1214 + continue 16.1215 + else 16.1216 + # If libtool objects are unsupported, then we need to preload. 16.1217 + prev=dlprefiles 16.1218 + fi 16.1219 + fi 16.1220 + 16.1221 + if test "$prev" = dlprefiles; then 16.1222 + # Preload the old-style object. 16.1223 + dlprefiles="$dlprefiles "`$echo "X$arg" | $Xsed -e "$lo2o"` 16.1224 + prev= 16.1225 + else 16.1226 + case $arg in 16.1227 + *.lo) libobjs="$libobjs $arg" ;; 16.1228 + *) objs="$objs $arg" ;; 16.1229 + esac 16.1230 + fi 16.1231 + ;; 16.1232 + 16.1233 + *.$libext) 16.1234 + # An archive. 16.1235 + deplibs="$deplibs $arg" 16.1236 + old_deplibs="$old_deplibs $arg" 16.1237 + continue 16.1238 + ;; 16.1239 + 16.1240 + *.la) 16.1241 + # A libtool-controlled library. 16.1242 + 16.1243 + if test "$prev" = dlfiles; then 16.1244 + # This library was specified with -dlopen. 16.1245 + dlfiles="$dlfiles $arg" 16.1246 + prev= 16.1247 + elif test "$prev" = dlprefiles; then 16.1248 + # The library was specified with -dlpreopen. 16.1249 + dlprefiles="$dlprefiles $arg" 16.1250 + prev= 16.1251 + else 16.1252 + deplibs="$deplibs $arg" 16.1253 + fi 16.1254 + continue 16.1255 + ;; 16.1256 + 16.1257 + # Some other compiler argument. 16.1258 + *) 16.1259 + # Unknown arguments in both finalize_command and compile_command need 16.1260 + # to be aesthetically quoted because they are evaled later. 16.1261 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 16.1262 + case $arg in 16.1263 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") 16.1264 + arg="\"$arg\"" 16.1265 + ;; 16.1266 + esac 16.1267 + ;; 16.1268 + esac # arg 16.1269 + 16.1270 + # Now actually substitute the argument into the commands. 16.1271 + if test -n "$arg"; then 16.1272 + compile_command="$compile_command $arg" 16.1273 + finalize_command="$finalize_command $arg" 16.1274 + fi 16.1275 + done # argument parsing loop 16.1276 + 16.1277 + if test -n "$prev"; then 16.1278 + $echo "$modename: the \`$prevarg' option requires an argument" 1>&2 16.1279 + $echo "$help" 1>&2 16.1280 + exit 1 16.1281 + fi 16.1282 + 16.1283 + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then 16.1284 + eval arg=\"$export_dynamic_flag_spec\" 16.1285 + compile_command="$compile_command $arg" 16.1286 + finalize_command="$finalize_command $arg" 16.1287 + fi 16.1288 + 16.1289 + # calculate the name of the file, without its directory 16.1290 + outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'` 16.1291 + libobjs_save="$libobjs" 16.1292 + 16.1293 + if test -n "$shlibpath_var"; then 16.1294 + # get the directories listed in $shlibpath_var 16.1295 + eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\` 16.1296 + else 16.1297 + shlib_search_path= 16.1298 + fi 16.1299 + eval sys_lib_search_path=\"$sys_lib_search_path_spec\" 16.1300 + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\" 16.1301 + 16.1302 + output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'` 16.1303 + if test "X$output_objdir" = "X$output"; then 16.1304 + output_objdir="$objdir" 16.1305 + else 16.1306 + output_objdir="$output_objdir/$objdir" 16.1307 + fi 16.1308 + # Create the object directory. 16.1309 + if test ! -d $output_objdir; then 16.1310 + $show "$mkdir $output_objdir" 16.1311 + $run $mkdir $output_objdir 16.1312 + status=$? 16.1313 + if test $status -ne 0 && test ! -d $output_objdir; then 16.1314 + exit $status 16.1315 + fi 16.1316 + fi 16.1317 + 16.1318 + # Determine the type of output 16.1319 + case $output in 16.1320 + "") 16.1321 + $echo "$modename: you must specify an output file" 1>&2 16.1322 + $echo "$help" 1>&2 16.1323 + exit 1 16.1324 + ;; 16.1325 + *.$libext) linkmode=oldlib ;; 16.1326 + *.lo | *.$objext) linkmode=obj ;; 16.1327 + *.la) linkmode=lib ;; 16.1328 + *) linkmode=prog ;; # Anything else should be a program. 16.1329 + esac 16.1330 + 16.1331 + specialdeplibs= 16.1332 + libs= 16.1333 + # Find all interdependent deplibs by searching for libraries 16.1334 + # that are linked more than once (e.g. -la -lb -la) 16.1335 + for deplib in $deplibs; do 16.1336 + case "$libs " in 16.1337 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; 16.1338 + esac 16.1339 + libs="$libs $deplib" 16.1340 + done 16.1341 + deplibs= 16.1342 + newdependency_libs= 16.1343 + newlib_search_path= 16.1344 + need_relink=no # whether we're linking any uninstalled libtool libraries 16.1345 + notinst_deplibs= # not-installed libtool libraries 16.1346 + notinst_path= # paths that contain not-installed libtool libraries 16.1347 + case $linkmode in 16.1348 + lib) 16.1349 + passes="conv link" 16.1350 + for file in $dlfiles $dlprefiles; do 16.1351 + case $file in 16.1352 + *.la) ;; 16.1353 + *) 16.1354 + $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2 16.1355 + exit 1 16.1356 + ;; 16.1357 + esac 16.1358 + done 16.1359 + ;; 16.1360 + prog) 16.1361 + compile_deplibs= 16.1362 + finalize_deplibs= 16.1363 + alldeplibs=no 16.1364 + newdlfiles= 16.1365 + newdlprefiles= 16.1366 + passes="conv scan dlopen dlpreopen link" 16.1367 + ;; 16.1368 + *) passes="conv" 16.1369 + ;; 16.1370 + esac 16.1371 + for pass in $passes; do 16.1372 + if test $linkmode = prog; then 16.1373 + # Determine which files to process 16.1374 + case $pass in 16.1375 + dlopen) 16.1376 + libs="$dlfiles" 16.1377 + save_deplibs="$deplibs" # Collect dlpreopened libraries 16.1378 + deplibs= 16.1379 + ;; 16.1380 + dlpreopen) libs="$dlprefiles" ;; 16.1381 + link) libs="$deplibs %DEPLIBS% $dependency_libs" ;; 16.1382 + esac 16.1383 + fi 16.1384 + for deplib in $libs; do 16.1385 + lib= 16.1386 + found=no 16.1387 + case $deplib in 16.1388 + -l*) 16.1389 + if test $linkmode = oldlib && test $linkmode = obj; then 16.1390 + $echo "$modename: warning: \`-l' is ignored for archives/objects: $deplib" 1>&2 16.1391 + continue 16.1392 + fi 16.1393 + if test $pass = conv; then 16.1394 + deplibs="$deplib $deplibs" 16.1395 + continue 16.1396 + fi 16.1397 + name=`$echo "X$deplib" | $Xsed -e 's/^-l//'` 16.1398 + for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do 16.1399 + # Search the libtool library 16.1400 + lib="$searchdir/lib${name}.la" 16.1401 + if test -f "$lib"; then 16.1402 + found=yes 16.1403 + break 16.1404 + fi 16.1405 + done 16.1406 + if test "$found" != yes; then 16.1407 + # deplib doesn't seem to be a libtool library 16.1408 + if test "$linkmode,$pass" = "prog,link"; then 16.1409 + compile_deplibs="$deplib $compile_deplibs" 16.1410 + finalize_deplibs="$deplib $finalize_deplibs" 16.1411 + else 16.1412 + deplibs="$deplib $deplibs" 16.1413 + test $linkmode = lib && newdependency_libs="$deplib $newdependency_libs" 16.1414 + fi 16.1415 + continue 16.1416 + fi 16.1417 + ;; # -l 16.1418 + -L*) 16.1419 + case $linkmode in 16.1420 + lib) 16.1421 + deplibs="$deplib $deplibs" 16.1422 + test $pass = conv && continue 16.1423 + newdependency_libs="$deplib $newdependency_libs" 16.1424 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` 16.1425 + ;; 16.1426 + prog) 16.1427 + if test $pass = conv; then 16.1428 + deplibs="$deplib $deplibs" 16.1429 + continue 16.1430 + fi 16.1431 + if test $pass = scan; then 16.1432 + deplibs="$deplib $deplibs" 16.1433 + newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'` 16.1434 + else 16.1435 + compile_deplibs="$deplib $compile_deplibs" 16.1436 + finalize_deplibs="$deplib $finalize_deplibs" 16.1437 + fi 16.1438 + ;; 16.1439 + *) 16.1440 + $echo "$modename: warning: \`-L' is ignored for archives/objects: $deplib" 1>&2 16.1441 + ;; 16.1442 + esac # linkmode 16.1443 + continue 16.1444 + ;; # -L 16.1445 + -R*) 16.1446 + if test $pass = link; then 16.1447 + dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'` 16.1448 + # Make sure the xrpath contains only unique directories. 16.1449 + case "$xrpath " in 16.1450 + *" $dir "*) ;; 16.1451 + *) xrpath="$xrpath $dir" ;; 16.1452 + esac 16.1453 + fi 16.1454 + deplibs="$deplib $deplibs" 16.1455 + continue 16.1456 + ;; 16.1457 + *.la) lib="$deplib" ;; 16.1458 + *.$libext) 16.1459 + if test $pass = conv; then 16.1460 + deplibs="$deplib $deplibs" 16.1461 + continue 16.1462 + fi 16.1463 + case $linkmode in 16.1464 + lib) 16.1465 + if test "$deplibs_check_method" != pass_all; then 16.1466 + echo 16.1467 + echo "*** Warning: This library needs some functionality provided by $deplib." 16.1468 + echo "*** I have the capability to make that library automatically link in when" 16.1469 + echo "*** you link to this library. But I can only do this if you have a" 16.1470 + echo "*** shared version of the library, which you do not appear to have." 16.1471 + else 16.1472 + echo 16.1473 + echo "*** Warning: Linking the shared library $output against the" 16.1474 + echo "*** static library $deplib is not portable!" 16.1475 + deplibs="$deplib $deplibs" 16.1476 + fi 16.1477 + continue 16.1478 + ;; 16.1479 + prog) 16.1480 + if test $pass != link; then 16.1481 + deplibs="$deplib $deplibs" 16.1482 + else 16.1483 + compile_deplibs="$deplib $compile_deplibs" 16.1484 + finalize_deplibs="$deplib $finalize_deplibs" 16.1485 + fi 16.1486 + continue 16.1487 + ;; 16.1488 + esac # linkmode 16.1489 + ;; # *.$libext 16.1490 + *.lo | *.$objext) 16.1491 + if test $pass = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then 16.1492 + # If there is no dlopen support or we're linking statically, 16.1493 + # we need to preload. 16.1494 + newdlprefiles="$newdlprefiles $deplib" 16.1495 + compile_deplibs="$deplib $compile_deplibs" 16.1496 + finalize_deplibs="$deplib $finalize_deplibs" 16.1497 + else 16.1498 + newdlfiles="$newdlfiles $deplib" 16.1499 + fi 16.1500 + continue 16.1501 + ;; 16.1502 + %DEPLIBS%) 16.1503 + alldeplibs=yes 16.1504 + continue 16.1505 + ;; 16.1506 + esac # case $deplib 16.1507 + if test $found = yes || test -f "$lib"; then : 16.1508 + else 16.1509 + $echo "$modename: cannot find the library \`$lib'" 1>&2 16.1510 + exit 1 16.1511 + fi 16.1512 + 16.1513 + # Check to see that this really is a libtool archive. 16.1514 + if (sed -e '2q' $lib | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : 16.1515 + else 16.1516 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 16.1517 + exit 1 16.1518 + fi 16.1519 + 16.1520 + ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'` 16.1521 + test "X$ladir" = "X$lib" && ladir="." 16.1522 + 16.1523 + dlname= 16.1524 + dlopen= 16.1525 + dlpreopen= 16.1526 + libdir= 16.1527 + library_names= 16.1528 + old_library= 16.1529 + # If the library was installed with an old release of libtool, 16.1530 + # it will not redefine variable installed. 16.1531 + installed=yes 16.1532 + 16.1533 + # Read the .la file 16.1534 + case $lib in 16.1535 + */* | *\\*) . $lib ;; 16.1536 + *) . ./$lib ;; 16.1537 + esac 16.1538 + 16.1539 + if test "$linkmode,$pass" = "lib,link" || 16.1540 + test "$linkmode,$pass" = "prog,scan" || 16.1541 + { test $linkmode = oldlib && test $linkmode = obj; }; then 16.1542 + # Add dl[pre]opened files of deplib 16.1543 + test -n "$dlopen" && dlfiles="$dlfiles $dlopen" 16.1544 + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" 16.1545 + fi 16.1546 + 16.1547 + if test $pass = conv; then 16.1548 + # Only check for convenience libraries 16.1549 + deplibs="$lib $deplibs" 16.1550 + if test -z "$libdir"; then 16.1551 + if test -z "$old_library"; then 16.1552 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 16.1553 + exit 1 16.1554 + fi 16.1555 + # It is a libtool convenience library, so add in its objects. 16.1556 + convenience="$convenience $ladir/$objdir/$old_library" 16.1557 + old_convenience="$old_convenience $ladir/$objdir/$old_library" 16.1558 + tmp_libs= 16.1559 + for deplib in $dependency_libs; do 16.1560 + deplibs="$deplib $deplibs" 16.1561 + case "$tmp_libs " in 16.1562 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; 16.1563 + esac 16.1564 + tmp_libs="$tmp_libs $deplib" 16.1565 + done 16.1566 + elif test $linkmode != prog && test $linkmode != lib; then 16.1567 + $echo "$modename: \`$lib' is not a convenience library" 1>&2 16.1568 + exit 1 16.1569 + fi 16.1570 + continue 16.1571 + fi # $pass = conv 16.1572 + 16.1573 + # Get the name of the library we link against. 16.1574 + linklib= 16.1575 + for l in $old_library $library_names; do 16.1576 + linklib="$l" 16.1577 + done 16.1578 + if test -z "$linklib"; then 16.1579 + $echo "$modename: cannot find name of link library for \`$lib'" 1>&2 16.1580 + exit 1 16.1581 + fi 16.1582 + 16.1583 + # This library was specified with -dlopen. 16.1584 + if test $pass = dlopen; then 16.1585 + if test -z "$libdir"; then 16.1586 + $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2 16.1587 + exit 1 16.1588 + fi 16.1589 + if test -z "$dlname" || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then 16.1590 + # If there is no dlname, no dlopen support or we're linking 16.1591 + # statically, we need to preload. 16.1592 + dlprefiles="$dlprefiles $lib" 16.1593 + else 16.1594 + newdlfiles="$newdlfiles $lib" 16.1595 + fi 16.1596 + continue 16.1597 + fi # $pass = dlopen 16.1598 + 16.1599 + # We need an absolute path. 16.1600 + case $ladir in 16.1601 + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;; 16.1602 + *) 16.1603 + abs_ladir=`cd "$ladir" && pwd` 16.1604 + if test -z "$abs_ladir"; then 16.1605 + $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2 16.1606 + $echo "$modename: passing it literally to the linker, although it might fail" 1>&2 16.1607 + abs_ladir="$ladir" 16.1608 + fi 16.1609 + ;; 16.1610 + esac 16.1611 + laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` 16.1612 + 16.1613 + # Find the relevant object directory and library name. 16.1614 + if test "X$installed" = Xyes; then 16.1615 + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then 16.1616 + $echo "$modename: warning: library \`$lib' was moved." 1>&2 16.1617 + dir="$ladir" 16.1618 + absdir="$abs_ladir" 16.1619 + libdir="$abs_ladir" 16.1620 + else 16.1621 + dir="$libdir" 16.1622 + absdir="$libdir" 16.1623 + fi 16.1624 + else 16.1625 + dir="$ladir/$objdir" 16.1626 + absdir="$abs_ladir/$objdir" 16.1627 + # Remove this search path later 16.1628 + notinst_path="$notinst_path $abs_ladir" 16.1629 + fi # $installed = yes 16.1630 + name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` 16.1631 + 16.1632 + # This library was specified with -dlpreopen. 16.1633 + if test $pass = dlpreopen; then 16.1634 + if test -z "$libdir"; then 16.1635 + $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2 16.1636 + exit 1 16.1637 + fi 16.1638 + # Prefer using a static library (so that no silly _DYNAMIC symbols 16.1639 + # are required to link). 16.1640 + if test -n "$old_library"; then 16.1641 + newdlprefiles="$newdlprefiles $dir/$old_library" 16.1642 + # Otherwise, use the dlname, so that lt_dlopen finds it. 16.1643 + elif test -n "$dlname"; then 16.1644 + newdlprefiles="$newdlprefiles $dir/$dlname" 16.1645 + else 16.1646 + newdlprefiles="$newdlprefiles $dir/$linklib" 16.1647 + fi 16.1648 + fi # $pass = dlpreopen 16.1649 + 16.1650 + if test -z "$libdir"; then 16.1651 + # Link the convenience library 16.1652 + if test $linkmode = lib; then 16.1653 + deplibs="$dir/$old_library $deplibs" 16.1654 + elif test "$linkmode,$pass" = "prog,link"; then 16.1655 + compile_deplibs="$dir/$old_library $compile_deplibs" 16.1656 + finalize_deplibs="$dir/$old_library $finalize_deplibs" 16.1657 + else 16.1658 + deplibs="$lib $deplibs" 16.1659 + fi 16.1660 + continue 16.1661 + fi 16.1662 + 16.1663 + if test $linkmode = prog && test $pass != link; then 16.1664 + newlib_search_path="$newlib_search_path $ladir" 16.1665 + deplibs="$lib $deplibs" 16.1666 + 16.1667 + linkalldeplibs=no 16.1668 + if test "$link_all_deplibs" != no || test -z "$library_names" || 16.1669 + test "$build_libtool_libs" = no; then 16.1670 + linkalldeplibs=yes 16.1671 + fi 16.1672 + 16.1673 + tmp_libs= 16.1674 + for deplib in $dependency_libs; do 16.1675 + case $deplib in 16.1676 + -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test 16.1677 + esac 16.1678 + # Need to link against all dependency_libs? 16.1679 + if test $linkalldeplibs = yes; then 16.1680 + deplibs="$deplib $deplibs" 16.1681 + else 16.1682 + # Need to hardcode shared library paths 16.1683 + # or/and link against static libraries 16.1684 + newdependency_libs="$deplib $newdependency_libs" 16.1685 + fi 16.1686 + case "$tmp_libs " in 16.1687 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; 16.1688 + esac 16.1689 + tmp_libs="$tmp_libs $deplib" 16.1690 + done # for deplib 16.1691 + continue 16.1692 + fi # $linkmode = prog... 16.1693 + 16.1694 + link_static=no # Whether the deplib will be linked statically 16.1695 + if test -n "$library_names" && 16.1696 + { test "$prefer_static_libs" = no || test -z "$old_library"; }; then 16.1697 + # Link against this shared library 16.1698 + 16.1699 + if test "$linkmode,$pass" = "prog,link" || 16.1700 + { test $linkmode = lib && test $hardcode_into_libs = yes; }; then 16.1701 + # Hardcode the library path. 16.1702 + # Skip directories that are in the system default run-time 16.1703 + # search path. 16.1704 + case " $sys_lib_dlsearch_path " in 16.1705 + *" $absdir "*) ;; 16.1706 + *) 16.1707 + case "$compile_rpath " in 16.1708 + *" $absdir "*) ;; 16.1709 + *) compile_rpath="$compile_rpath $absdir" 16.1710 + esac 16.1711 + ;; 16.1712 + esac 16.1713 + case " $sys_lib_dlsearch_path " in 16.1714 + *" $libdir "*) ;; 16.1715 + *) 16.1716 + case "$finalize_rpath " in 16.1717 + *" $libdir "*) ;; 16.1718 + *) finalize_rpath="$finalize_rpath $libdir" 16.1719 + esac 16.1720 + ;; 16.1721 + esac 16.1722 + if test $linkmode = prog; then 16.1723 + # We need to hardcode the library path 16.1724 + if test -n "$shlibpath_var"; then 16.1725 + # Make sure the rpath contains only unique directories. 16.1726 + case "$temp_rpath " in 16.1727 + *" $dir "*) ;; 16.1728 + *" $absdir "*) ;; 16.1729 + *) temp_rpath="$temp_rpath $dir" ;; 16.1730 + esac 16.1731 + fi 16.1732 + fi 16.1733 + fi # $linkmode,$pass = prog,link... 16.1734 + 16.1735 + if test "$alldeplibs" = yes && 16.1736 + { test "$deplibs_check_method" = pass_all || 16.1737 + { test "$build_libtool_libs" = yes && 16.1738 + test -n "$library_names"; }; }; then 16.1739 + # We only need to search for static libraries 16.1740 + continue 16.1741 + fi 16.1742 + 16.1743 + if test "$installed" = no; then 16.1744 + notinst_deplibs="$notinst_deplibs $lib" 16.1745 + need_relink=yes 16.1746 + fi 16.1747 + 16.1748 + if test -n "$old_archive_from_expsyms_cmds"; then 16.1749 + # figure out the soname 16.1750 + set dummy $library_names 16.1751 + realname="$2" 16.1752 + shift; shift 16.1753 + libname=`eval \\$echo \"$libname_spec\"` 16.1754 + # use dlname if we got it. it's perfectly good, no? 16.1755 + if test -n "$dlname"; then 16.1756 + soname="$dlname" 16.1757 + elif test -n "$soname_spec"; then 16.1758 + # bleh windows 16.1759 + case $host in 16.1760 + *cygwin*) 16.1761 + major=`expr $current - $age` 16.1762 + versuffix="-$major" 16.1763 + ;; 16.1764 + esac 16.1765 + eval soname=\"$soname_spec\" 16.1766 + else 16.1767 + soname="$realname" 16.1768 + fi 16.1769 + 16.1770 + # Make a new name for the extract_expsyms_cmds to use 16.1771 + soroot="$soname" 16.1772 + soname=`echo $soroot | sed -e 's/^.*\///'` 16.1773 + newlib="libimp-`echo $soname | sed 's/^lib//;s/\.dll$//'`.a" 16.1774 + 16.1775 + # If the library has no export list, then create one now 16.1776 + if test -f "$output_objdir/$soname-def"; then : 16.1777 + else 16.1778 + $show "extracting exported symbol list from \`$soname'" 16.1779 + save_ifs="$IFS"; IFS='~' 16.1780 + eval cmds=\"$extract_expsyms_cmds\" 16.1781 + for cmd in $cmds; do 16.1782 + IFS="$save_ifs" 16.1783 + $show "$cmd" 16.1784 + $run eval "$cmd" || exit $? 16.1785 + done 16.1786 + IFS="$save_ifs" 16.1787 + fi 16.1788 + 16.1789 + # Create $newlib 16.1790 + if test -f "$output_objdir/$newlib"; then :; else 16.1791 + $show "generating import library for \`$soname'" 16.1792 + save_ifs="$IFS"; IFS='~' 16.1793 + eval cmds=\"$old_archive_from_expsyms_cmds\" 16.1794 + for cmd in $cmds; do 16.1795 + IFS="$save_ifs" 16.1796 + $show "$cmd" 16.1797 + $run eval "$cmd" || exit $? 16.1798 + done 16.1799 + IFS="$save_ifs" 16.1800 + fi 16.1801 + # make sure the library variables are pointing to the new library 16.1802 + dir=$output_objdir 16.1803 + linklib=$newlib 16.1804 + fi # test -n $old_archive_from_expsyms_cmds 16.1805 + 16.1806 + if test $linkmode = prog || test "$mode" != relink; then 16.1807 + add_shlibpath= 16.1808 + add_dir= 16.1809 + add= 16.1810 + lib_linked=yes 16.1811 + case $hardcode_action in 16.1812 + immediate | unsupported) 16.1813 + if test "$hardcode_direct" = no; then 16.1814 + add="$dir/$linklib" 16.1815 + elif test "$hardcode_minus_L" = no; then 16.1816 + case $host in 16.1817 + *-*-sunos*) add_shlibpath="$dir" ;; 16.1818 + esac 16.1819 + add_dir="-L$dir" 16.1820 + add="-l$name" 16.1821 + elif test "$hardcode_shlibpath_var" = no; then 16.1822 + add_shlibpath="$dir" 16.1823 + add="-l$name" 16.1824 + else 16.1825 + lib_linked=no 16.1826 + fi 16.1827 + ;; 16.1828 + relink) 16.1829 + if test "$hardcode_direct" = yes; then 16.1830 + add="$dir/$linklib" 16.1831 + elif test "$hardcode_minus_L" = yes; then 16.1832 + add_dir="-L$dir" 16.1833 + add="-l$name" 16.1834 + elif test "$hardcode_shlibpath_var" = yes; then 16.1835 + add_shlibpath="$dir" 16.1836 + add="-l$name" 16.1837 + else 16.1838 + lib_linked=no 16.1839 + fi 16.1840 + ;; 16.1841 + *) lib_linked=no ;; 16.1842 + esac 16.1843 + 16.1844 + if test "$lib_linked" != yes; then 16.1845 + $echo "$modename: configuration error: unsupported hardcode properties" 16.1846 + exit 1 16.1847 + fi 16.1848 + 16.1849 + if test -n "$add_shlibpath"; then 16.1850 + case :$compile_shlibpath: in 16.1851 + *":$add_shlibpath:"*) ;; 16.1852 + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; 16.1853 + esac 16.1854 + fi 16.1855 + if test $linkmode = prog; then 16.1856 + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs" 16.1857 + test -n "$add" && compile_deplibs="$add $compile_deplibs" 16.1858 + else 16.1859 + test -n "$add_dir" && deplibs="$add_dir $deplibs" 16.1860 + test -n "$add" && deplibs="$add $deplibs" 16.1861 + if test "$hardcode_direct" != yes && \ 16.1862 + test "$hardcode_minus_L" != yes && \ 16.1863 + test "$hardcode_shlibpath_var" = yes; then 16.1864 + case :$finalize_shlibpath: in 16.1865 + *":$libdir:"*) ;; 16.1866 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; 16.1867 + esac 16.1868 + fi 16.1869 + fi 16.1870 + fi 16.1871 + 16.1872 + if test $linkmode = prog || test "$mode" = relink; then 16.1873 + add_shlibpath= 16.1874 + add_dir= 16.1875 + add= 16.1876 + # Finalize command for both is simple: just hardcode it. 16.1877 + if test "$hardcode_direct" = yes; then 16.1878 + add="$libdir/$linklib" 16.1879 + elif test "$hardcode_minus_L" = yes; then 16.1880 + add_dir="-L$libdir" 16.1881 + add="-l$name" 16.1882 + elif test "$hardcode_shlibpath_var" = yes; then 16.1883 + case :$finalize_shlibpath: in 16.1884 + *":$libdir:"*) ;; 16.1885 + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; 16.1886 + esac 16.1887 + add="-l$name" 16.1888 + else 16.1889 + # We cannot seem to hardcode it, guess we'll fake it. 16.1890 + add_dir="-L$libdir" 16.1891 + add="-l$name" 16.1892 + fi 16.1893 + 16.1894 + if test $linkmode = prog; then 16.1895 + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs" 16.1896 + test -n "$add" && finalize_deplibs="$add $finalize_deplibs" 16.1897 + else 16.1898 + test -n "$add_dir" && deplibs="$add_dir $deplibs" 16.1899 + test -n "$add" && deplibs="$add $deplibs" 16.1900 + fi 16.1901 + fi 16.1902 + elif test $linkmode = prog; then 16.1903 + if test "$alldeplibs" = yes && 16.1904 + { test "$deplibs_check_method" = pass_all || 16.1905 + { test "$build_libtool_libs" = yes && 16.1906 + test -n "$library_names"; }; }; then 16.1907 + # We only need to search for static libraries 16.1908 + continue 16.1909 + fi 16.1910 + 16.1911 + # Try to link the static library 16.1912 + # Here we assume that one of hardcode_direct or hardcode_minus_L 16.1913 + # is not unsupported. This is valid on all known static and 16.1914 + # shared platforms. 16.1915 + if test "$hardcode_direct" != unsupported; then 16.1916 + test -n "$old_library" && linklib="$old_library" 16.1917 + compile_deplibs="$dir/$linklib $compile_deplibs" 16.1918 + finalize_deplibs="$dir/$linklib $finalize_deplibs" 16.1919 + else 16.1920 + compile_deplibs="-l$name -L$dir $compile_deplibs" 16.1921 + finalize_deplibs="-l$name -L$dir $finalize_deplibs" 16.1922 + fi 16.1923 + elif test "$build_libtool_libs" = yes; then 16.1924 + # Not a shared library 16.1925 + if test "$deplibs_check_method" != pass_all; then 16.1926 + # We're trying link a shared library against a static one 16.1927 + # but the system doesn't support it. 16.1928 + 16.1929 + # Just print a warning and add the library to dependency_libs so 16.1930 + # that the program can be linked against the static library. 16.1931 + echo 16.1932 + echo "*** Warning: This library needs some functionality provided by $lib." 16.1933 + echo "*** I have the capability to make that library automatically link in when" 16.1934 + echo "*** you link to this library. But I can only do this if you have a" 16.1935 + echo "*** shared version of the library, which you do not appear to have." 16.1936 + if test "$module" = yes; then 16.1937 + echo "*** Therefore, libtool will create a static module, that should work " 16.1938 + echo "*** as long as the dlopening application is linked with the -dlopen flag." 16.1939 + if test -z "$global_symbol_pipe"; then 16.1940 + echo 16.1941 + echo "*** However, this would only work if libtool was able to extract symbol" 16.1942 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" 16.1943 + echo "*** not find such a program. So, this module is probably useless." 16.1944 + echo "*** \`nm' from GNU binutils and a full rebuild may help." 16.1945 + fi 16.1946 + if test "$build_old_libs" = no; then 16.1947 + build_libtool_libs=module 16.1948 + build_old_libs=yes 16.1949 + else 16.1950 + build_libtool_libs=no 16.1951 + fi 16.1952 + fi 16.1953 + else 16.1954 + convenience="$convenience $dir/$old_library" 16.1955 + old_convenience="$old_convenience $dir/$old_library" 16.1956 + deplibs="$dir/$old_library $deplibs" 16.1957 + link_static=yes 16.1958 + fi 16.1959 + fi # link shared/static library? 16.1960 + 16.1961 + if test $linkmode = lib; then 16.1962 + if test -n "$dependency_libs" && 16.1963 + { test $hardcode_into_libs != yes || test $build_old_libs = yes || 16.1964 + test $link_static = yes; }; then 16.1965 + # Extract -R from dependency_libs 16.1966 + temp_deplibs= 16.1967 + for libdir in $dependency_libs; do 16.1968 + case $libdir in 16.1969 + -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'` 16.1970 + case " $xrpath " in 16.1971 + *" $temp_xrpath "*) ;; 16.1972 + *) xrpath="$xrpath $temp_xrpath";; 16.1973 + esac;; 16.1974 + *) temp_deplibs="$temp_deplibs $libdir";; 16.1975 + esac 16.1976 + done 16.1977 + dependency_libs="$temp_deplibs" 16.1978 + fi 16.1979 + 16.1980 + newlib_search_path="$newlib_search_path $absdir" 16.1981 + # Link against this library 16.1982 + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" 16.1983 + # ... and its dependency_libs 16.1984 + tmp_libs= 16.1985 + for deplib in $dependency_libs; do 16.1986 + newdependency_libs="$deplib $newdependency_libs" 16.1987 + case "$tmp_libs " in 16.1988 + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; 16.1989 + esac 16.1990 + tmp_libs="$tmp_libs $deplib" 16.1991 + done 16.1992 + 16.1993 + if test $link_all_deplibs != no; then 16.1994 + # Add the search paths of all dependency libraries 16.1995 + for deplib in $dependency_libs; do 16.1996 + case $deplib in 16.1997 + -L*) path="$deplib" ;; 16.1998 + *.la) 16.1999 + dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'` 16.2000 + test "X$dir" = "X$deplib" && dir="." 16.2001 + # We need an absolute path. 16.2002 + case $dir in 16.2003 + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; 16.2004 + *) 16.2005 + absdir=`cd "$dir" && pwd` 16.2006 + if test -z "$absdir"; then 16.2007 + $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2 16.2008 + absdir="$dir" 16.2009 + fi 16.2010 + ;; 16.2011 + esac 16.2012 + if grep "^installed=no" $deplib > /dev/null; then 16.2013 + path="-L$absdir/$objdir" 16.2014 + else 16.2015 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` 16.2016 + if test -z "$libdir"; then 16.2017 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 16.2018 + exit 1 16.2019 + fi 16.2020 + if test "$absdir" != "$libdir"; then 16.2021 + $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2 16.2022 + fi 16.2023 + path="-L$absdir" 16.2024 + fi 16.2025 + ;; 16.2026 + *) continue ;; 16.2027 + esac 16.2028 + case " $deplibs " in 16.2029 + *" $path "*) ;; 16.2030 + *) deplibs="$deplibs $path" ;; 16.2031 + esac 16.2032 + done 16.2033 + fi # link_all_deplibs != no 16.2034 + fi # linkmode = lib 16.2035 + done # for deplib in $libs 16.2036 + if test $pass = dlpreopen; then 16.2037 + # Link the dlpreopened libraries before other libraries 16.2038 + for deplib in $save_deplibs; do 16.2039 + deplibs="$deplib $deplibs" 16.2040 + done 16.2041 + fi 16.2042 + if test $pass != dlopen; then 16.2043 + test $pass != scan && dependency_libs="$newdependency_libs" 16.2044 + if test $pass != conv; then 16.2045 + # Make sure lib_search_path contains only unique directories. 16.2046 + lib_search_path= 16.2047 + for dir in $newlib_search_path; do 16.2048 + case "$lib_search_path " in 16.2049 + *" $dir "*) ;; 16.2050 + *) lib_search_path="$lib_search_path $dir" ;; 16.2051 + esac 16.2052 + done 16.2053 + newlib_search_path= 16.2054 + fi 16.2055 + 16.2056 + if test "$linkmode,$pass" != "prog,link"; then 16.2057 + vars="deplibs" 16.2058 + else 16.2059 + vars="compile_deplibs finalize_deplibs" 16.2060 + fi 16.2061 + for var in $vars dependency_libs; do 16.2062 + # Add libraries to $var in reverse order 16.2063 + eval tmp_libs=\"\$$var\" 16.2064 + new_libs= 16.2065 + for deplib in $tmp_libs; do 16.2066 + case $deplib in 16.2067 + -L*) new_libs="$deplib $new_libs" ;; 16.2068 + *) 16.2069 + case " $specialdeplibs " in 16.2070 + *" $deplib "*) new_libs="$deplib $new_libs" ;; 16.2071 + *) 16.2072 + case " $new_libs " in 16.2073 + *" $deplib "*) ;; 16.2074 + *) new_libs="$deplib $new_libs" ;; 16.2075 + esac 16.2076 + ;; 16.2077 + esac 16.2078 + ;; 16.2079 + esac 16.2080 + done 16.2081 + tmp_libs= 16.2082 + for deplib in $new_libs; do 16.2083 + case $deplib in 16.2084 + -L*) 16.2085 + case " $tmp_libs " in 16.2086 + *" $deplib "*) ;; 16.2087 + *) tmp_libs="$tmp_libs $deplib" ;; 16.2088 + esac 16.2089 + ;; 16.2090 + *) tmp_libs="$tmp_libs $deplib" ;; 16.2091 + esac 16.2092 + done 16.2093 + eval $var=\"$tmp_libs\" 16.2094 + done # for var 16.2095 + fi 16.2096 + if test "$pass" = "conv" && 16.2097 + { test "$linkmode" = "lib" || test "$linkmode" = "prog"; }; then 16.2098 + libs="$deplibs" # reset libs 16.2099 + deplibs= 16.2100 + fi 16.2101 + done # for pass 16.2102 + if test $linkmode = prog; then 16.2103 + dlfiles="$newdlfiles" 16.2104 + dlprefiles="$newdlprefiles" 16.2105 + fi 16.2106 + 16.2107 + case $linkmode in 16.2108 + oldlib) 16.2109 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then 16.2110 + $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2 16.2111 + fi 16.2112 + 16.2113 + if test -n "$rpath"; then 16.2114 + $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2 16.2115 + fi 16.2116 + 16.2117 + if test -n "$xrpath"; then 16.2118 + $echo "$modename: warning: \`-R' is ignored for archives" 1>&2 16.2119 + fi 16.2120 + 16.2121 + if test -n "$vinfo"; then 16.2122 + $echo "$modename: warning: \`-version-info' is ignored for archives" 1>&2 16.2123 + fi 16.2124 + 16.2125 + if test -n "$release"; then 16.2126 + $echo "$modename: warning: \`-release' is ignored for archives" 1>&2 16.2127 + fi 16.2128 + 16.2129 + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then 16.2130 + $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2 16.2131 + fi 16.2132 + 16.2133 + # Now set the variables for building old libraries. 16.2134 + build_libtool_libs=no 16.2135 + oldlibs="$output" 16.2136 + objs="$objs$old_deplibs" 16.2137 + ;; 16.2138 + 16.2139 + lib) 16.2140 + # Make sure we only generate libraries of the form `libNAME.la'. 16.2141 + case $outputname in 16.2142 + lib*) 16.2143 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'` 16.2144 + eval libname=\"$libname_spec\" 16.2145 + ;; 16.2146 + *) 16.2147 + if test "$module" = no; then 16.2148 + $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2 16.2149 + $echo "$help" 1>&2 16.2150 + exit 1 16.2151 + fi 16.2152 + if test "$need_lib_prefix" != no; then 16.2153 + # Add the "lib" prefix for modules if required 16.2154 + name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` 16.2155 + eval libname=\"$libname_spec\" 16.2156 + else 16.2157 + libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'` 16.2158 + fi 16.2159 + ;; 16.2160 + esac 16.2161 + 16.2162 + if test -n "$objs"; then 16.2163 + if test "$deplibs_check_method" != pass_all; then 16.2164 + $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1 16.2165 + exit 1 16.2166 + else 16.2167 + echo 16.2168 + echo "*** Warning: Linking the shared library $output against the non-libtool" 16.2169 + echo "*** objects $objs is not portable!" 16.2170 + libobjs="$libobjs $objs" 16.2171 + fi 16.2172 + fi 16.2173 + 16.2174 + if test "$dlself" != no; then 16.2175 + $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2 16.2176 + fi 16.2177 + 16.2178 + set dummy $rpath 16.2179 + if test $# -gt 2; then 16.2180 + $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2 16.2181 + fi 16.2182 + install_libdir="$2" 16.2183 + 16.2184 + oldlibs= 16.2185 + if test -z "$rpath"; then 16.2186 + if test "$build_libtool_libs" = yes; then 16.2187 + # Building a libtool convenience library. 16.2188 + libext=al 16.2189 + oldlibs="$output_objdir/$libname.$libext $oldlibs" 16.2190 + build_libtool_libs=convenience 16.2191 + build_old_libs=yes 16.2192 + fi 16.2193 + 16.2194 + if test -n "$vinfo"; then 16.2195 + $echo "$modename: warning: \`-version-info' is ignored for convenience libraries" 1>&2 16.2196 + fi 16.2197 + 16.2198 + if test -n "$release"; then 16.2199 + $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2 16.2200 + fi 16.2201 + else 16.2202 + 16.2203 + # Parse the version information argument. 16.2204 + save_ifs="$IFS"; IFS=':' 16.2205 + set dummy $vinfo 0 0 0 16.2206 + IFS="$save_ifs" 16.2207 + 16.2208 + if test -n "$8"; then 16.2209 + $echo "$modename: too many parameters to \`-version-info'" 1>&2 16.2210 + $echo "$help" 1>&2 16.2211 + exit 1 16.2212 + fi 16.2213 + 16.2214 + current="$2" 16.2215 + revision="$3" 16.2216 + age="$4" 16.2217 + 16.2218 + # Check that each of the things are valid numbers. 16.2219 + case $current in 16.2220 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; 16.2221 + *) 16.2222 + $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2 16.2223 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 16.2224 + exit 1 16.2225 + ;; 16.2226 + esac 16.2227 + 16.2228 + case $revision in 16.2229 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; 16.2230 + *) 16.2231 + $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2 16.2232 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 16.2233 + exit 1 16.2234 + ;; 16.2235 + esac 16.2236 + 16.2237 + case $age in 16.2238 + 0 | [1-9] | [1-9][0-9] | [1-9][0-9][0-9]) ;; 16.2239 + *) 16.2240 + $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2 16.2241 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 16.2242 + exit 1 16.2243 + ;; 16.2244 + esac 16.2245 + 16.2246 + if test $age -gt $current; then 16.2247 + $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2 16.2248 + $echo "$modename: \`$vinfo' is not valid version information" 1>&2 16.2249 + exit 1 16.2250 + fi 16.2251 + 16.2252 + # Calculate the version variables. 16.2253 + major= 16.2254 + versuffix= 16.2255 + verstring= 16.2256 + case $version_type in 16.2257 + none) ;; 16.2258 + 16.2259 + darwin) 16.2260 + # Like Linux, but with the current version available in 16.2261 + # verstring for coding it into the library header 16.2262 + major=.`expr $current - $age` 16.2263 + versuffix="$major.$age.$revision" 16.2264 + # Darwin ld doesn't like 0 for these options... 16.2265 + minor_current=`expr $current + 1` 16.2266 + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision" 16.2267 + ;; 16.2268 + 16.2269 + freebsd-aout) 16.2270 + major=".$current" 16.2271 + versuffix=".$current.$revision"; 16.2272 + ;; 16.2273 + 16.2274 + freebsd-elf) 16.2275 + major=".$current" 16.2276 + versuffix=".$current"; 16.2277 + ;; 16.2278 + 16.2279 + irix) 16.2280 + major=`expr $current - $age + 1` 16.2281 + verstring="sgi$major.$revision" 16.2282 + 16.2283 + # Add in all the interfaces that we are compatible with. 16.2284 + loop=$revision 16.2285 + while test $loop != 0; do 16.2286 + iface=`expr $revision - $loop` 16.2287 + loop=`expr $loop - 1` 16.2288 + verstring="sgi$major.$iface:$verstring" 16.2289 + done 16.2290 + 16.2291 + # Before this point, $major must not contain `.'. 16.2292 + major=.$major 16.2293 + versuffix="$major.$revision" 16.2294 + ;; 16.2295 + 16.2296 + linux) 16.2297 + major=.`expr $current - $age` 16.2298 + versuffix="$major.$age.$revision" 16.2299 + ;; 16.2300 + 16.2301 + osf) 16.2302 + major=`expr $current - $age` 16.2303 + versuffix=".$current.$age.$revision" 16.2304 + verstring="$current.$age.$revision" 16.2305 + 16.2306 + # Add in all the interfaces that we are compatible with. 16.2307 + loop=$age 16.2308 + while test $loop != 0; do 16.2309 + iface=`expr $current - $loop` 16.2310 + loop=`expr $loop - 1` 16.2311 + verstring="$verstring:${iface}.0" 16.2312 + done 16.2313 + 16.2314 + # Make executables depend on our current version. 16.2315 + verstring="$verstring:${current}.0" 16.2316 + ;; 16.2317 + 16.2318 + sunos) 16.2319 + major=".$current" 16.2320 + versuffix=".$current.$revision" 16.2321 + ;; 16.2322 + 16.2323 + windows) 16.2324 + # Use '-' rather than '.', since we only want one 16.2325 + # extension on DOS 8.3 filesystems. 16.2326 + major=`expr $current - $age` 16.2327 + versuffix="-$major" 16.2328 + ;; 16.2329 + 16.2330 + *) 16.2331 + $echo "$modename: unknown library version type \`$version_type'" 1>&2 16.2332 + echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2 16.2333 + exit 1 16.2334 + ;; 16.2335 + esac 16.2336 + 16.2337 + # Clear the version info if we defaulted, and they specified a release. 16.2338 + if test -z "$vinfo" && test -n "$release"; then 16.2339 + major= 16.2340 + verstring="0.0" 16.2341 + case $version_type in 16.2342 + darwin) 16.2343 + # we can't check for "0.0" in archive_cmds due to quoting 16.2344 + # problems, so we reset it completely 16.2345 + verstring="" 16.2346 + ;; 16.2347 + *) 16.2348 + verstring="0.0" 16.2349 + ;; 16.2350 + esac 16.2351 + if test "$need_version" = no; then 16.2352 + versuffix= 16.2353 + else 16.2354 + versuffix=".0.0" 16.2355 + fi 16.2356 + fi 16.2357 + 16.2358 + # Remove version info from name if versioning should be avoided 16.2359 + if test "$avoid_version" = yes && test "$need_version" = no; then 16.2360 + major= 16.2361 + versuffix= 16.2362 + verstring="" 16.2363 + fi 16.2364 + 16.2365 + # Check to see if the archive will have undefined symbols. 16.2366 + if test "$allow_undefined" = yes; then 16.2367 + if test "$allow_undefined_flag" = unsupported; then 16.2368 + $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2 16.2369 + build_libtool_libs=no 16.2370 + build_old_libs=yes 16.2371 + fi 16.2372 + else 16.2373 + # Don't allow undefined symbols. 16.2374 + allow_undefined_flag="$no_undefined_flag" 16.2375 + fi 16.2376 + fi 16.2377 + 16.2378 + if test "$mode" != relink; then 16.2379 + # Remove our outputs. 16.2380 + $show "${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.*" 16.2381 + $run ${rm}r $output_objdir/$outputname $output_objdir/$libname.* $output_objdir/${libname}${release}.* 16.2382 + fi 16.2383 + 16.2384 + # Now set the variables for building old libraries. 16.2385 + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then 16.2386 + oldlibs="$oldlibs $output_objdir/$libname.$libext" 16.2387 + 16.2388 + # Transform .lo files to .o files. 16.2389 + oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP` 16.2390 + fi 16.2391 + 16.2392 + # Eliminate all temporary directories. 16.2393 + for path in $notinst_path; do 16.2394 + lib_search_path=`echo "$lib_search_path " | sed -e 's% $path % %g'` 16.2395 + deplibs=`echo "$deplibs " | sed -e 's% -L$path % %g'` 16.2396 + dependency_libs=`echo "$dependency_libs " | sed -e 's% -L$path % %g'` 16.2397 + done 16.2398 + 16.2399 + if test -n "$xrpath"; then 16.2400 + # If the user specified any rpath flags, then add them. 16.2401 + temp_xrpath= 16.2402 + for libdir in $xrpath; do 16.2403 + temp_xrpath="$temp_xrpath -R$libdir" 16.2404 + case "$finalize_rpath " in 16.2405 + *" $libdir "*) ;; 16.2406 + *) finalize_rpath="$finalize_rpath $libdir" ;; 16.2407 + esac 16.2408 + done 16.2409 + if test $hardcode_into_libs != yes || test $build_old_libs = yes; then 16.2410 + dependency_libs="$temp_xrpath $dependency_libs" 16.2411 + fi 16.2412 + fi 16.2413 + 16.2414 + # Make sure dlfiles contains only unique files that won't be dlpreopened 16.2415 + old_dlfiles="$dlfiles" 16.2416 + dlfiles= 16.2417 + for lib in $old_dlfiles; do 16.2418 + case " $dlprefiles $dlfiles " in 16.2419 + *" $lib "*) ;; 16.2420 + *) dlfiles="$dlfiles $lib" ;; 16.2421 + esac 16.2422 + done 16.2423 + 16.2424 + # Make sure dlprefiles contains only unique files 16.2425 + old_dlprefiles="$dlprefiles" 16.2426 + dlprefiles= 16.2427 + for lib in $old_dlprefiles; do 16.2428 + case "$dlprefiles " in 16.2429 + *" $lib "*) ;; 16.2430 + *) dlprefiles="$dlprefiles $lib" ;; 16.2431 + esac 16.2432 + done 16.2433 + 16.2434 + if test "$build_libtool_libs" = yes; then 16.2435 + if test -n "$rpath"; then 16.2436 + case $host in 16.2437 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*) 16.2438 + # these systems don't actually have a c library (as such)! 16.2439 + ;; 16.2440 + *-*-rhapsody* | *-*-darwin1.[012]) 16.2441 + # Rhapsody C library is in the System framework 16.2442 + deplibs="$deplibs -framework System" 16.2443 + ;; 16.2444 + *-*-netbsd*) 16.2445 + # Don't link with libc until the a.out ld.so is fixed. 16.2446 + ;; 16.2447 + *-*-openbsd*) 16.2448 + # Do not include libc due to us having libc/libc_r. 16.2449 + ;; 16.2450 + *) 16.2451 + # Add libc to deplibs on all other systems if necessary. 16.2452 + if test $build_libtool_need_lc = "yes"; then 16.2453 + deplibs="$deplibs -lc" 16.2454 + fi 16.2455 + ;; 16.2456 + esac 16.2457 + fi 16.2458 + 16.2459 + # Transform deplibs into only deplibs that can be linked in shared. 16.2460 + name_save=$name 16.2461 + libname_save=$libname 16.2462 + release_save=$release 16.2463 + versuffix_save=$versuffix 16.2464 + major_save=$major 16.2465 + # I'm not sure if I'm treating the release correctly. I think 16.2466 + # release should show up in the -l (ie -lgmp5) so we don't want to 16.2467 + # add it in twice. Is that correct? 16.2468 + release="" 16.2469 + versuffix="" 16.2470 + major="" 16.2471 + newdeplibs= 16.2472 + droppeddeps=no 16.2473 + case $deplibs_check_method in 16.2474 + pass_all) 16.2475 + # Don't check for shared/static. Everything works. 16.2476 + # This might be a little naive. We might want to check 16.2477 + # whether the library exists or not. But this is on 16.2478 + # osf3 & osf4 and I'm not really sure... Just 16.2479 + # implementing what was already the behaviour. 16.2480 + newdeplibs=$deplibs 16.2481 + ;; 16.2482 + test_compile) 16.2483 + # This code stresses the "libraries are programs" paradigm to its 16.2484 + # limits. Maybe even breaks it. We compile a program, linking it 16.2485 + # against the deplibs as a proxy for the library. Then we can check 16.2486 + # whether they linked in statically or dynamically with ldd. 16.2487 + $rm conftest.c 16.2488 + cat > conftest.c <<EOF 16.2489 + int main() { return 0; } 16.2490 +EOF 16.2491 + $rm conftest 16.2492 + $CC -o conftest conftest.c $deplibs 16.2493 + if test $? -eq 0 ; then 16.2494 + ldd_output=`ldd conftest` 16.2495 + for i in $deplibs; do 16.2496 + name="`expr $i : '-l\(.*\)'`" 16.2497 + # If $name is empty we are operating on a -L argument. 16.2498 + if test -n "$name" && test "$name" != "0"; then 16.2499 + libname=`eval \\$echo \"$libname_spec\"` 16.2500 + deplib_matches=`eval \\$echo \"$library_names_spec\"` 16.2501 + set dummy $deplib_matches 16.2502 + deplib_match=$2 16.2503 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then 16.2504 + newdeplibs="$newdeplibs $i" 16.2505 + else 16.2506 + droppeddeps=yes 16.2507 + echo 16.2508 + echo "*** Warning: This library needs some functionality provided by $i." 16.2509 + echo "*** I have the capability to make that library automatically link in when" 16.2510 + echo "*** you link to this library. But I can only do this if you have a" 16.2511 + echo "*** shared version of the library, which you do not appear to have." 16.2512 + fi 16.2513 + else 16.2514 + newdeplibs="$newdeplibs $i" 16.2515 + fi 16.2516 + done 16.2517 + else 16.2518 + # Error occured in the first compile. Let's try to salvage the situation: 16.2519 + # Compile a seperate program for each library. 16.2520 + for i in $deplibs; do 16.2521 + name="`expr $i : '-l\(.*\)'`" 16.2522 + # If $name is empty we are operating on a -L argument. 16.2523 + if test -n "$name" && test "$name" != "0"; then 16.2524 + $rm conftest 16.2525 + $CC -o conftest conftest.c $i 16.2526 + # Did it work? 16.2527 + if test $? -eq 0 ; then 16.2528 + ldd_output=`ldd conftest` 16.2529 + libname=`eval \\$echo \"$libname_spec\"` 16.2530 + deplib_matches=`eval \\$echo \"$library_names_spec\"` 16.2531 + set dummy $deplib_matches 16.2532 + deplib_match=$2 16.2533 + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then 16.2534 + newdeplibs="$newdeplibs $i" 16.2535 + else 16.2536 + droppeddeps=yes 16.2537 + echo 16.2538 + echo "*** Warning: This library needs some functionality provided by $i." 16.2539 + echo "*** I have the capability to make that library automatically link in when" 16.2540 + echo "*** you link to this library. But I can only do this if you have a" 16.2541 + echo "*** shared version of the library, which you do not appear to have." 16.2542 + fi 16.2543 + else 16.2544 + droppeddeps=yes 16.2545 + echo 16.2546 + echo "*** Warning! Library $i is needed by this library but I was not able to" 16.2547 + echo "*** make it link in! You will probably need to install it or some" 16.2548 + echo "*** library that it depends on before this library will be fully" 16.2549 + echo "*** functional. Installing it before continuing would be even better." 16.2550 + fi 16.2551 + else 16.2552 + newdeplibs="$newdeplibs $i" 16.2553 + fi 16.2554 + done 16.2555 + fi 16.2556 + ;; 16.2557 + file_magic*) 16.2558 + set dummy $deplibs_check_method 16.2559 + file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 16.2560 + for a_deplib in $deplibs; do 16.2561 + name="`expr $a_deplib : '-l\(.*\)'`" 16.2562 + # If $name is empty we are operating on a -L argument. 16.2563 + if test -n "$name" && test "$name" != "0"; then 16.2564 + libname=`eval \\$echo \"$libname_spec\"` 16.2565 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do 16.2566 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` 16.2567 + for potent_lib in $potential_libs; do 16.2568 + # Follow soft links. 16.2569 + if ls -lLd "$potent_lib" 2>/dev/null \ 16.2570 + | grep " -> " >/dev/null; then 16.2571 + continue 16.2572 + fi 16.2573 + # The statement above tries to avoid entering an 16.2574 + # endless loop below, in case of cyclic links. 16.2575 + # We might still enter an endless loop, since a link 16.2576 + # loop can be closed while we follow links, 16.2577 + # but so what? 16.2578 + potlib="$potent_lib" 16.2579 + while test -h "$potlib" 2>/dev/null; do 16.2580 + potliblink=`ls -ld $potlib | sed 's/.* -> //'` 16.2581 + case $potliblink in 16.2582 + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";; 16.2583 + *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";; 16.2584 + esac 16.2585 + done 16.2586 + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \ 16.2587 + | sed 10q \ 16.2588 + | egrep "$file_magic_regex" > /dev/null; then 16.2589 + newdeplibs="$newdeplibs $a_deplib" 16.2590 + a_deplib="" 16.2591 + break 2 16.2592 + fi 16.2593 + done 16.2594 + done 16.2595 + if test -n "$a_deplib" ; then 16.2596 + droppeddeps=yes 16.2597 + echo 16.2598 + echo "*** Warning: This library needs some functionality provided by $a_deplib." 16.2599 + echo "*** I have the capability to make that library automatically link in when" 16.2600 + echo "*** you link to this library. But I can only do this if you have a" 16.2601 + echo "*** shared version of the library, which you do not appear to have." 16.2602 + fi 16.2603 + else 16.2604 + # Add a -L argument. 16.2605 + newdeplibs="$newdeplibs $a_deplib" 16.2606 + fi 16.2607 + done # Gone through all deplibs. 16.2608 + ;; 16.2609 + match_pattern*) 16.2610 + set dummy $deplibs_check_method 16.2611 + match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"` 16.2612 + for a_deplib in $deplibs; do 16.2613 + name="`expr $a_deplib : '-l\(.*\)'`" 16.2614 + # If $name is empty we are operating on a -L argument. 16.2615 + if test -n "$name" && test "$name" != "0"; then 16.2616 + libname=`eval \\$echo \"$libname_spec\"` 16.2617 + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do 16.2618 + potential_libs=`ls $i/$libname[.-]* 2>/dev/null` 16.2619 + for potent_lib in $potential_libs; do 16.2620 + if eval echo \"$potent_lib\" 2>/dev/null \ 16.2621 + | sed 10q \ 16.2622 + | egrep "$match_pattern_regex" > /dev/null; then 16.2623 + newdeplibs="$newdeplibs $a_deplib" 16.2624 + a_deplib="" 16.2625 + break 2 16.2626 + fi 16.2627 + done 16.2628 + done 16.2629 + if test -n "$a_deplib" ; then 16.2630 + droppeddeps=yes 16.2631 + echo 16.2632 + echo "*** Warning: This library needs some functionality provided by $a_deplib." 16.2633 + echo "*** I have the capability to make that library automatically link in when" 16.2634 + echo "*** you link to this library. But I can only do this if you have a" 16.2635 + echo "*** shared version of the library, which you do not appear to have." 16.2636 + fi 16.2637 + else 16.2638 + # Add a -L argument. 16.2639 + newdeplibs="$newdeplibs $a_deplib" 16.2640 + fi 16.2641 + done # Gone through all deplibs. 16.2642 + ;; 16.2643 + none | unknown | *) 16.2644 + newdeplibs="" 16.2645 + if $echo "X $deplibs" | $Xsed -e 's/ -lc$//' \ 16.2646 + -e 's/ -[LR][^ ]*//g' -e 's/[ ]//g' | 16.2647 + grep . >/dev/null; then 16.2648 + echo 16.2649 + if test "X$deplibs_check_method" = "Xnone"; then 16.2650 + echo "*** Warning: inter-library dependencies are not supported in this platform." 16.2651 + else 16.2652 + echo "*** Warning: inter-library dependencies are not known to be supported." 16.2653 + fi 16.2654 + echo "*** All declared inter-library dependencies are being dropped." 16.2655 + droppeddeps=yes 16.2656 + fi 16.2657 + ;; 16.2658 + esac 16.2659 + versuffix=$versuffix_save 16.2660 + major=$major_save 16.2661 + release=$release_save 16.2662 + libname=$libname_save 16.2663 + name=$name_save 16.2664 + 16.2665 + case $host in 16.2666 + *-*-rhapsody* | *-*-darwin1.[012]) 16.2667 + # On Rhapsody replace the C library is the System framework 16.2668 + newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'` 16.2669 + ;; 16.2670 + esac 16.2671 + 16.2672 + if test "$droppeddeps" = yes; then 16.2673 + if test "$module" = yes; then 16.2674 + echo 16.2675 + echo "*** Warning: libtool could not satisfy all declared inter-library" 16.2676 + echo "*** dependencies of module $libname. Therefore, libtool will create" 16.2677 + echo "*** a static module, that should work as long as the dlopening" 16.2678 + echo "*** application is linked with the -dlopen flag." 16.2679 + if test -z "$global_symbol_pipe"; then 16.2680 + echo 16.2681 + echo "*** However, this would only work if libtool was able to extract symbol" 16.2682 + echo "*** lists from a program, using \`nm' or equivalent, but libtool could" 16.2683 + echo "*** not find such a program. So, this module is probably useless." 16.2684 + echo "*** \`nm' from GNU binutils and a full rebuild may help." 16.2685 + fi 16.2686 + if test "$build_old_libs" = no; then 16.2687 + oldlibs="$output_objdir/$libname.$libext" 16.2688 + build_libtool_libs=module 16.2689 + build_old_libs=yes 16.2690 + else 16.2691 + build_libtool_libs=no 16.2692 + fi 16.2693 + else 16.2694 + echo "*** The inter-library dependencies that have been dropped here will be" 16.2695 + echo "*** automatically added whenever a program is linked with this library" 16.2696 + echo "*** or is declared to -dlopen it." 16.2697 + 16.2698 + if test $allow_undefined = no; then 16.2699 + echo 16.2700 + echo "*** Since this library must not contain undefined symbols," 16.2701 + echo "*** because either the platform does not support them or" 16.2702 + echo "*** it was explicitly requested with -no-undefined," 16.2703 + echo "*** libtool will only create a static version of it." 16.2704 + if test "$build_old_libs" = no; then 16.2705 + oldlibs="$output_objdir/$libname.$libext" 16.2706 + build_libtool_libs=module 16.2707 + build_old_libs=yes 16.2708 + else 16.2709 + build_libtool_libs=no 16.2710 + fi 16.2711 + fi 16.2712 + fi 16.2713 + fi 16.2714 + # Done checking deplibs! 16.2715 + deplibs=$newdeplibs 16.2716 + fi 16.2717 + 16.2718 + # All the library-specific variables (install_libdir is set above). 16.2719 + library_names= 16.2720 + old_library= 16.2721 + dlname= 16.2722 + 16.2723 + # Test again, we may have decided not to build it any more 16.2724 + if test "$build_libtool_libs" = yes; then 16.2725 + if test $hardcode_into_libs = yes; then 16.2726 + # Hardcode the library paths 16.2727 + hardcode_libdirs= 16.2728 + dep_rpath= 16.2729 + rpath="$finalize_rpath" 16.2730 + test "$mode" != relink && rpath="$compile_rpath$rpath" 16.2731 + for libdir in $rpath; do 16.2732 + if test -n "$hardcode_libdir_flag_spec"; then 16.2733 + if test -n "$hardcode_libdir_separator"; then 16.2734 + if test -z "$hardcode_libdirs"; then 16.2735 + hardcode_libdirs="$libdir" 16.2736 + else 16.2737 + # Just accumulate the unique libdirs. 16.2738 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in 16.2739 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) 16.2740 + ;; 16.2741 + *) 16.2742 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" 16.2743 + ;; 16.2744 + esac 16.2745 + fi 16.2746 + else 16.2747 + eval flag=\"$hardcode_libdir_flag_spec\" 16.2748 + dep_rpath="$dep_rpath $flag" 16.2749 + fi 16.2750 + elif test -n "$runpath_var"; then 16.2751 + case "$perm_rpath " in 16.2752 + *" $libdir "*) ;; 16.2753 + *) perm_rpath="$perm_rpath $libdir" ;; 16.2754 + esac 16.2755 + fi 16.2756 + done 16.2757 + # Substitute the hardcoded libdirs into the rpath. 16.2758 + if test -n "$hardcode_libdir_separator" && 16.2759 + test -n "$hardcode_libdirs"; then 16.2760 + libdir="$hardcode_libdirs" 16.2761 + eval dep_rpath=\"$hardcode_libdir_flag_spec\" 16.2762 + fi 16.2763 + if test -n "$runpath_var" && test -n "$perm_rpath"; then 16.2764 + # We should set the runpath_var. 16.2765 + rpath= 16.2766 + for dir in $perm_rpath; do 16.2767 + rpath="$rpath$dir:" 16.2768 + done 16.2769 + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" 16.2770 + fi 16.2771 + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs" 16.2772 + fi 16.2773 + 16.2774 + shlibpath="$finalize_shlibpath" 16.2775 + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" 16.2776 + if test -n "$shlibpath"; then 16.2777 + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" 16.2778 + fi 16.2779 + 16.2780 + # Get the real and link names of the library. 16.2781 + eval library_names=\"$library_names_spec\" 16.2782 + set dummy $library_names 16.2783 + realname="$2" 16.2784 + shift; shift 16.2785 + 16.2786 + if test -n "$soname_spec"; then 16.2787 + eval soname=\"$soname_spec\" 16.2788 + else 16.2789 + soname="$realname" 16.2790 + fi 16.2791 + test -z "$dlname" && dlname=$soname 16.2792 + 16.2793 + lib="$output_objdir/$realname" 16.2794 + for link 16.2795 + do 16.2796 + linknames="$linknames $link" 16.2797 + done 16.2798 + 16.2799 + # Ensure that we have .o objects for linkers which dislike .lo 16.2800 + # (e.g. aix) in case we are running --disable-static 16.2801 + for obj in $libobjs; do 16.2802 + xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'` 16.2803 + if test "X$xdir" = "X$obj"; then 16.2804 + xdir="." 16.2805 + else 16.2806 + xdir="$xdir" 16.2807 + fi 16.2808 + baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'` 16.2809 + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"` 16.2810 + if test ! -f $xdir/$oldobj; then 16.2811 + $show "(cd $xdir && ${LN_S} $baseobj $oldobj)" 16.2812 + $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $? 16.2813 + fi 16.2814 + done 16.2815 + 16.2816 + # Use standard objects if they are pic 16.2817 + test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` 16.2818 + 16.2819 + # Prepare the list of exported symbols 16.2820 + if test -z "$export_symbols"; then 16.2821 + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then 16.2822 + $show "generating symbol list for \`$libname.la'" 16.2823 + export_symbols="$output_objdir/$libname.exp" 16.2824 + $run $rm $export_symbols 16.2825 + eval cmds=\"$export_symbols_cmds\" 16.2826 + save_ifs="$IFS"; IFS='~' 16.2827 + for cmd in $cmds; do 16.2828 + IFS="$save_ifs" 16.2829 + $show "$cmd" 16.2830 + $run eval "$cmd" || exit $? 16.2831 + done 16.2832 + IFS="$save_ifs" 16.2833 + if test -n "$export_symbols_regex"; then 16.2834 + $show "egrep -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\"" 16.2835 + $run eval 'egrep -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"' 16.2836 + $show "$mv \"${export_symbols}T\" \"$export_symbols\"" 16.2837 + $run eval '$mv "${export_symbols}T" "$export_symbols"' 16.2838 + fi 16.2839 + fi 16.2840 + fi 16.2841 + 16.2842 + if test -n "$export_symbols" && test -n "$include_expsyms"; then 16.2843 + $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"' 16.2844 + fi 16.2845 + 16.2846 + if test -n "$convenience"; then 16.2847 + if test -n "$whole_archive_flag_spec"; then 16.2848 + eval libobjs=\"\$libobjs $whole_archive_flag_spec\" 16.2849 + else 16.2850 + gentop="$output_objdir/${outputname}x" 16.2851 + $show "${rm}r $gentop" 16.2852 + $run ${rm}r "$gentop" 16.2853 + $show "mkdir $gentop" 16.2854 + $run mkdir "$gentop" 16.2855 + status=$? 16.2856 + if test $status -ne 0 && test ! -d "$gentop"; then 16.2857 + exit $status 16.2858 + fi 16.2859 + generated="$generated $gentop" 16.2860 + 16.2861 + for xlib in $convenience; do 16.2862 + # Extract the objects. 16.2863 + case $xlib in 16.2864 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; 16.2865 + *) xabs=`pwd`"/$xlib" ;; 16.2866 + esac 16.2867 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` 16.2868 + xdir="$gentop/$xlib" 16.2869 + 16.2870 + $show "${rm}r $xdir" 16.2871 + $run ${rm}r "$xdir" 16.2872 + $show "mkdir $xdir" 16.2873 + $run mkdir "$xdir" 16.2874 + status=$? 16.2875 + if test $status -ne 0 && test ! -d "$xdir"; then 16.2876 + exit $status 16.2877 + fi 16.2878 + $show "(cd $xdir && $AR x $xabs)" 16.2879 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 16.2880 + 16.2881 + libobjs="$libobjs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP` 16.2882 + done 16.2883 + fi 16.2884 + fi 16.2885 + 16.2886 + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then 16.2887 + eval flag=\"$thread_safe_flag_spec\" 16.2888 + linker_flags="$linker_flags $flag" 16.2889 + fi 16.2890 + 16.2891 + # Make a backup of the uninstalled library when relinking 16.2892 + if test "$mode" = relink; then 16.2893 + $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $? 16.2894 + fi 16.2895 + 16.2896 + # Do each of the archive commands. 16.2897 + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then 16.2898 + eval cmds=\"$archive_expsym_cmds\" 16.2899 + else 16.2900 + eval cmds=\"$archive_cmds\" 16.2901 + fi 16.2902 + save_ifs="$IFS"; IFS='~' 16.2903 + for cmd in $cmds; do 16.2904 + IFS="$save_ifs" 16.2905 + $show "$cmd" 16.2906 + $run eval "$cmd" || exit $? 16.2907 + done 16.2908 + IFS="$save_ifs" 16.2909 + 16.2910 + # Restore the uninstalled library and exit 16.2911 + if test "$mode" = relink; then 16.2912 + $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $? 16.2913 + exit 0 16.2914 + fi 16.2915 + 16.2916 + # Create links to the real library. 16.2917 + for linkname in $linknames; do 16.2918 + if test "$realname" != "$linkname"; then 16.2919 + $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)" 16.2920 + $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $? 16.2921 + fi 16.2922 + done 16.2923 + 16.2924 + # If -module or -export-dynamic was specified, set the dlname. 16.2925 + if test "$module" = yes || test "$export_dynamic" = yes; then 16.2926 + # On all known operating systems, these are identical. 16.2927 + dlname="$soname" 16.2928 + fi 16.2929 + fi 16.2930 + ;; 16.2931 + 16.2932 + obj) 16.2933 + if test -n "$deplibs"; then 16.2934 + $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2 16.2935 + fi 16.2936 + 16.2937 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then 16.2938 + $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2 16.2939 + fi 16.2940 + 16.2941 + if test -n "$rpath"; then 16.2942 + $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2 16.2943 + fi 16.2944 + 16.2945 + if test -n "$xrpath"; then 16.2946 + $echo "$modename: warning: \`-R' is ignored for objects" 1>&2 16.2947 + fi 16.2948 + 16.2949 + if test -n "$vinfo"; then 16.2950 + $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2 16.2951 + fi 16.2952 + 16.2953 + if test -n "$release"; then 16.2954 + $echo "$modename: warning: \`-release' is ignored for objects" 1>&2 16.2955 + fi 16.2956 + 16.2957 + case $output in 16.2958 + *.lo) 16.2959 + if test -n "$objs$old_deplibs"; then 16.2960 + $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2 16.2961 + exit 1 16.2962 + fi 16.2963 + libobj="$output" 16.2964 + obj=`$echo "X$output" | $Xsed -e "$lo2o"` 16.2965 + ;; 16.2966 + *) 16.2967 + libobj= 16.2968 + obj="$output" 16.2969 + ;; 16.2970 + esac 16.2971 + 16.2972 + # Delete the old objects. 16.2973 + $run $rm $obj $libobj 16.2974 + 16.2975 + # Objects from convenience libraries. This assumes 16.2976 + # single-version convenience libraries. Whenever we create 16.2977 + # different ones for PIC/non-PIC, this we'll have to duplicate 16.2978 + # the extraction. 16.2979 + reload_conv_objs= 16.2980 + gentop= 16.2981 + # reload_cmds runs $LD directly, so let us get rid of 16.2982 + # -Wl from whole_archive_flag_spec 16.2983 + wl= 16.2984 + 16.2985 + if test -n "$convenience"; then 16.2986 + if test -n "$whole_archive_flag_spec"; then 16.2987 + eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\" 16.2988 + else 16.2989 + gentop="$output_objdir/${obj}x" 16.2990 + $show "${rm}r $gentop" 16.2991 + $run ${rm}r "$gentop" 16.2992 + $show "mkdir $gentop" 16.2993 + $run mkdir "$gentop" 16.2994 + status=$? 16.2995 + if test $status -ne 0 && test ! -d "$gentop"; then 16.2996 + exit $status 16.2997 + fi 16.2998 + generated="$generated $gentop" 16.2999 + 16.3000 + for xlib in $convenience; do 16.3001 + # Extract the objects. 16.3002 + case $xlib in 16.3003 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; 16.3004 + *) xabs=`pwd`"/$xlib" ;; 16.3005 + esac 16.3006 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` 16.3007 + xdir="$gentop/$xlib" 16.3008 + 16.3009 + $show "${rm}r $xdir" 16.3010 + $run ${rm}r "$xdir" 16.3011 + $show "mkdir $xdir" 16.3012 + $run mkdir "$xdir" 16.3013 + status=$? 16.3014 + if test $status -ne 0 && test ! -d "$xdir"; then 16.3015 + exit $status 16.3016 + fi 16.3017 + $show "(cd $xdir && $AR x $xabs)" 16.3018 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 16.3019 + 16.3020 + reload_conv_objs="$reload_objs "`find $xdir -name \*.o -print -o -name \*.lo -print | $NL2SP` 16.3021 + done 16.3022 + fi 16.3023 + fi 16.3024 + 16.3025 + # Create the old-style object. 16.3026 + reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test 16.3027 + 16.3028 + output="$obj" 16.3029 + eval cmds=\"$reload_cmds\" 16.3030 + save_ifs="$IFS"; IFS='~' 16.3031 + for cmd in $cmds; do 16.3032 + IFS="$save_ifs" 16.3033 + $show "$cmd" 16.3034 + $run eval "$cmd" || exit $? 16.3035 + done 16.3036 + IFS="$save_ifs" 16.3037 + 16.3038 + # Exit if we aren't doing a library object file. 16.3039 + if test -z "$libobj"; then 16.3040 + if test -n "$gentop"; then 16.3041 + $show "${rm}r $gentop" 16.3042 + $run ${rm}r $gentop 16.3043 + fi 16.3044 + 16.3045 + exit 0 16.3046 + fi 16.3047 + 16.3048 + if test "$build_libtool_libs" != yes; then 16.3049 + if test -n "$gentop"; then 16.3050 + $show "${rm}r $gentop" 16.3051 + $run ${rm}r $gentop 16.3052 + fi 16.3053 + 16.3054 + # Create an invalid libtool object if no PIC, so that we don't 16.3055 + # accidentally link it into a program. 16.3056 + $show "echo timestamp > $libobj" 16.3057 + $run eval "echo timestamp > $libobj" || exit $? 16.3058 + exit 0 16.3059 + fi 16.3060 + 16.3061 + if test -n "$pic_flag" || test "$pic_mode" != default; then 16.3062 + # Only do commands if we really have different PIC objects. 16.3063 + reload_objs="$libobjs $reload_conv_objs" 16.3064 + output="$libobj" 16.3065 + eval cmds=\"$reload_cmds\" 16.3066 + save_ifs="$IFS"; IFS='~' 16.3067 + for cmd in $cmds; do 16.3068 + IFS="$save_ifs" 16.3069 + $show "$cmd" 16.3070 + $run eval "$cmd" || exit $? 16.3071 + done 16.3072 + IFS="$save_ifs" 16.3073 + else 16.3074 + # Just create a symlink. 16.3075 + $show $rm $libobj 16.3076 + $run $rm $libobj 16.3077 + xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'` 16.3078 + if test "X$xdir" = "X$libobj"; then 16.3079 + xdir="." 16.3080 + else 16.3081 + xdir="$xdir" 16.3082 + fi 16.3083 + baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'` 16.3084 + oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"` 16.3085 + $show "(cd $xdir && $LN_S $oldobj $baseobj)" 16.3086 + $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $? 16.3087 + fi 16.3088 + 16.3089 + if test -n "$gentop"; then 16.3090 + $show "${rm}r $gentop" 16.3091 + $run ${rm}r $gentop 16.3092 + fi 16.3093 + 16.3094 + exit 0 16.3095 + ;; 16.3096 + 16.3097 + prog) 16.3098 + case $host in 16.3099 + *cygwin*) output=`echo $output | sed -e 's,.exe$,,;s,$,.exe,'` ;; 16.3100 + esac 16.3101 + if test -n "$vinfo"; then 16.3102 + $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2 16.3103 + fi 16.3104 + 16.3105 + if test -n "$release"; then 16.3106 + $echo "$modename: warning: \`-release' is ignored for programs" 1>&2 16.3107 + fi 16.3108 + 16.3109 + if test "$preload" = yes; then 16.3110 + if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown && 16.3111 + test "$dlopen_self_static" = unknown; then 16.3112 + $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support." 16.3113 + fi 16.3114 + fi 16.3115 + 16.3116 + case $host in 16.3117 + *-*-rhapsody* | *-*-darwin1.[012]) 16.3118 + # On Rhapsody replace the C library is the System framework 16.3119 + compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'` 16.3120 + finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'` 16.3121 + ;; 16.3122 + esac 16.3123 + 16.3124 + compile_command="$compile_command $compile_deplibs" 16.3125 + finalize_command="$finalize_command $finalize_deplibs" 16.3126 + 16.3127 + if test -n "$rpath$xrpath"; then 16.3128 + # If the user specified any rpath flags, then add them. 16.3129 + for libdir in $rpath $xrpath; do 16.3130 + # This is the magic to use -rpath. 16.3131 + case "$finalize_rpath " in 16.3132 + *" $libdir "*) ;; 16.3133 + *) finalize_rpath="$finalize_rpath $libdir" ;; 16.3134 + esac 16.3135 + done 16.3136 + fi 16.3137 + 16.3138 + # Now hardcode the library paths 16.3139 + rpath= 16.3140 + hardcode_libdirs= 16.3141 + for libdir in $compile_rpath $finalize_rpath; do 16.3142 + if test -n "$hardcode_libdir_flag_spec"; then 16.3143 + if test -n "$hardcode_libdir_separator"; then 16.3144 + if test -z "$hardcode_libdirs"; then 16.3145 + hardcode_libdirs="$libdir" 16.3146 + else 16.3147 + # Just accumulate the unique libdirs. 16.3148 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in 16.3149 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) 16.3150 + ;; 16.3151 + *) 16.3152 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" 16.3153 + ;; 16.3154 + esac 16.3155 + fi 16.3156 + else 16.3157 + eval flag=\"$hardcode_libdir_flag_spec\" 16.3158 + rpath="$rpath $flag" 16.3159 + fi 16.3160 + elif test -n "$runpath_var"; then 16.3161 + case "$perm_rpath " in 16.3162 + *" $libdir "*) ;; 16.3163 + *) perm_rpath="$perm_rpath $libdir" ;; 16.3164 + esac 16.3165 + fi 16.3166 + case $host in 16.3167 + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 16.3168 + case :$dllsearchpath: in 16.3169 + *":$libdir:"*) ;; 16.3170 + *) dllsearchpath="$dllsearchpath:$libdir";; 16.3171 + esac 16.3172 + ;; 16.3173 + esac 16.3174 + done 16.3175 + # Substitute the hardcoded libdirs into the rpath. 16.3176 + if test -n "$hardcode_libdir_separator" && 16.3177 + test -n "$hardcode_libdirs"; then 16.3178 + libdir="$hardcode_libdirs" 16.3179 + eval rpath=\" $hardcode_libdir_flag_spec\" 16.3180 + fi 16.3181 + compile_rpath="$rpath" 16.3182 + 16.3183 + rpath= 16.3184 + hardcode_libdirs= 16.3185 + for libdir in $finalize_rpath; do 16.3186 + if test -n "$hardcode_libdir_flag_spec"; then 16.3187 + if test -n "$hardcode_libdir_separator"; then 16.3188 + if test -z "$hardcode_libdirs"; then 16.3189 + hardcode_libdirs="$libdir" 16.3190 + else 16.3191 + # Just accumulate the unique libdirs. 16.3192 + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in 16.3193 + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) 16.3194 + ;; 16.3195 + *) 16.3196 + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" 16.3197 + ;; 16.3198 + esac 16.3199 + fi 16.3200 + else 16.3201 + eval flag=\"$hardcode_libdir_flag_spec\" 16.3202 + rpath="$rpath $flag" 16.3203 + fi 16.3204 + elif test -n "$runpath_var"; then 16.3205 + case "$finalize_perm_rpath " in 16.3206 + *" $libdir "*) ;; 16.3207 + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; 16.3208 + esac 16.3209 + fi 16.3210 + done 16.3211 + # Substitute the hardcoded libdirs into the rpath. 16.3212 + if test -n "$hardcode_libdir_separator" && 16.3213 + test -n "$hardcode_libdirs"; then 16.3214 + libdir="$hardcode_libdirs" 16.3215 + eval rpath=\" $hardcode_libdir_flag_spec\" 16.3216 + fi 16.3217 + finalize_rpath="$rpath" 16.3218 + 16.3219 + if test -n "$libobjs" && test "$build_old_libs" = yes; then 16.3220 + # Transform all the library objects into standard objects. 16.3221 + compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` 16.3222 + finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` 16.3223 + fi 16.3224 + 16.3225 + dlsyms= 16.3226 + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then 16.3227 + if test -n "$NM" && test -n "$global_symbol_pipe"; then 16.3228 + dlsyms="${outputname}S.c" 16.3229 + else 16.3230 + $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2 16.3231 + fi 16.3232 + fi 16.3233 + 16.3234 + if test -n "$dlsyms"; then 16.3235 + case $dlsyms in 16.3236 + "") ;; 16.3237 + *.c) 16.3238 + # Discover the nlist of each of the dlfiles. 16.3239 + nlist="$output_objdir/${outputname}.nm" 16.3240 + 16.3241 + $show "$rm $nlist ${nlist}S ${nlist}T" 16.3242 + $run $rm "$nlist" "${nlist}S" "${nlist}T" 16.3243 + 16.3244 + # Parse the name list into a source file. 16.3245 + $show "creating $output_objdir/$dlsyms" 16.3246 + 16.3247 + test -z "$run" && $echo > "$output_objdir/$dlsyms" "\ 16.3248 +/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */ 16.3249 +/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */ 16.3250 + 16.3251 +#ifdef __cplusplus 16.3252 +extern \"C\" { 16.3253 +#endif 16.3254 + 16.3255 +/* Prevent the only kind of declaration conflicts we can make. */ 16.3256 +#define lt_preloaded_symbols some_other_symbol 16.3257 + 16.3258 +/* External symbol declarations for the compiler. */\ 16.3259 +" 16.3260 + 16.3261 + if test "$dlself" = yes; then 16.3262 + $show "generating symbol list for \`$output'" 16.3263 + 16.3264 + test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist" 16.3265 + 16.3266 + # Add our own program objects to the symbol list. 16.3267 + progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP` 16.3268 + for arg in $progfiles; do 16.3269 + $show "extracting global C symbols from \`$arg'" 16.3270 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" 16.3271 + done 16.3272 + 16.3273 + if test -n "$exclude_expsyms"; then 16.3274 + $run eval 'egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T' 16.3275 + $run eval '$mv "$nlist"T "$nlist"' 16.3276 + fi 16.3277 + 16.3278 + if test -n "$export_symbols_regex"; then 16.3279 + $run eval 'egrep -e "$export_symbols_regex" "$nlist" > "$nlist"T' 16.3280 + $run eval '$mv "$nlist"T "$nlist"' 16.3281 + fi 16.3282 + 16.3283 + # Prepare the list of exported symbols 16.3284 + if test -z "$export_symbols"; then 16.3285 + export_symbols="$output_objdir/$output.exp" 16.3286 + $run $rm $export_symbols 16.3287 + $run eval "sed -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"' 16.3288 + else 16.3289 + $run eval "sed -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"' 16.3290 + $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T' 16.3291 + $run eval 'mv "$nlist"T "$nlist"' 16.3292 + fi 16.3293 + fi 16.3294 + 16.3295 + for arg in $dlprefiles; do 16.3296 + $show "extracting global C symbols from \`$arg'" 16.3297 + name=`echo "$arg" | sed -e 's%^.*/%%'` 16.3298 + $run eval 'echo ": $name " >> "$nlist"' 16.3299 + $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'" 16.3300 + done 16.3301 + 16.3302 + if test -z "$run"; then 16.3303 + # Make sure we have at least an empty file. 16.3304 + test -f "$nlist" || : > "$nlist" 16.3305 + 16.3306 + if test -n "$exclude_expsyms"; then 16.3307 + egrep -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T 16.3308 + $mv "$nlist"T "$nlist" 16.3309 + fi 16.3310 + 16.3311 + # Try sorting and uniquifying the output. 16.3312 + if grep -v "^: " < "$nlist" | sort +2 | uniq > "$nlist"S; then 16.3313 + : 16.3314 + else 16.3315 + grep -v "^: " < "$nlist" > "$nlist"S 16.3316 + fi 16.3317 + 16.3318 + if test -f "$nlist"S; then 16.3319 + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"' 16.3320 + else 16.3321 + echo '/* NONE */' >> "$output_objdir/$dlsyms" 16.3322 + fi 16.3323 + 16.3324 + $echo >> "$output_objdir/$dlsyms" "\ 16.3325 + 16.3326 +#undef lt_preloaded_symbols 16.3327 + 16.3328 +#if defined (__STDC__) && __STDC__ 16.3329 +# define lt_ptr void * 16.3330 +#else 16.3331 +# define lt_ptr char * 16.3332 +# define const 16.3333 +#endif 16.3334 + 16.3335 +/* The mapping between symbol names and symbols. */ 16.3336 +const struct { 16.3337 + const char *name; 16.3338 + lt_ptr address; 16.3339 +} 16.3340 +lt_preloaded_symbols[] = 16.3341 +{\ 16.3342 +" 16.3343 + 16.3344 + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms" 16.3345 + 16.3346 + $echo >> "$output_objdir/$dlsyms" "\ 16.3347 + {0, (lt_ptr) 0} 16.3348 +}; 16.3349 + 16.3350 +/* This works around a problem in FreeBSD linker */ 16.3351 +#ifdef FREEBSD_WORKAROUND 16.3352 +static const void *lt_preloaded_setup() { 16.3353 + return lt_preloaded_symbols; 16.3354 +} 16.3355 +#endif 16.3356 + 16.3357 +#ifdef __cplusplus 16.3358 +} 16.3359 +#endif\ 16.3360 +" 16.3361 + fi 16.3362 + 16.3363 + pic_flag_for_symtable= 16.3364 + case $host in 16.3365 + # compiling the symbol table file with pic_flag works around 16.3366 + # a FreeBSD bug that causes programs to crash when -lm is 16.3367 + # linked before any other PIC object. But we must not use 16.3368 + # pic_flag when linking with -static. The problem exists in 16.3369 + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1. 16.3370 + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*) 16.3371 + case "$compile_command " in 16.3372 + *" -static "*) ;; 16.3373 + *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";; 16.3374 + esac;; 16.3375 + *-*-hpux*) 16.3376 + case "$compile_command " in 16.3377 + *" -static "*) ;; 16.3378 + *) pic_flag_for_symtable=" $pic_flag -DPIC";; 16.3379 + esac 16.3380 + esac 16.3381 + 16.3382 + # Now compile the dynamic symbol file. 16.3383 + $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")" 16.3384 + $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $? 16.3385 + 16.3386 + # Clean up the generated files. 16.3387 + $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T" 16.3388 + $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T" 16.3389 + 16.3390 + # Transform the symbol file into the correct name. 16.3391 + compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 16.3392 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"` 16.3393 + ;; 16.3394 + *) 16.3395 + $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2 16.3396 + exit 1 16.3397 + ;; 16.3398 + esac 16.3399 + else 16.3400 + # We keep going just in case the user didn't refer to 16.3401 + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe 16.3402 + # really was required. 16.3403 + 16.3404 + # Nullify the symbol file. 16.3405 + compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"` 16.3406 + finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"` 16.3407 + fi 16.3408 + 16.3409 + if test $need_relink = no || test "$build_libtool_libs" != yes; then 16.3410 + # Replace the output file specification. 16.3411 + compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` 16.3412 + link_command="$compile_command$compile_rpath" 16.3413 + 16.3414 + # We have no uninstalled library dependencies, so finalize right now. 16.3415 + $show "$link_command" 16.3416 + $run eval "$link_command" 16.3417 + status=$? 16.3418 + 16.3419 + # Delete the generated files. 16.3420 + if test -n "$dlsyms"; then 16.3421 + $show "$rm $output_objdir/${outputname}S.${objext}" 16.3422 + $run $rm "$output_objdir/${outputname}S.${objext}" 16.3423 + fi 16.3424 + 16.3425 + exit $status 16.3426 + fi 16.3427 + 16.3428 + if test -n "$shlibpath_var"; then 16.3429 + # We should set the shlibpath_var 16.3430 + rpath= 16.3431 + for dir in $temp_rpath; do 16.3432 + case $dir in 16.3433 + [\\/]* | [A-Za-z]:[\\/]*) 16.3434 + # Absolute path. 16.3435 + rpath="$rpath$dir:" 16.3436 + ;; 16.3437 + *) 16.3438 + # Relative path: add a thisdir entry. 16.3439 + rpath="$rpath\$thisdir/$dir:" 16.3440 + ;; 16.3441 + esac 16.3442 + done 16.3443 + temp_rpath="$rpath" 16.3444 + fi 16.3445 + 16.3446 + if test -n "$compile_shlibpath$finalize_shlibpath"; then 16.3447 + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command" 16.3448 + fi 16.3449 + if test -n "$finalize_shlibpath"; then 16.3450 + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command" 16.3451 + fi 16.3452 + 16.3453 + compile_var= 16.3454 + finalize_var= 16.3455 + if test -n "$runpath_var"; then 16.3456 + if test -n "$perm_rpath"; then 16.3457 + # We should set the runpath_var. 16.3458 + rpath= 16.3459 + for dir in $perm_rpath; do 16.3460 + rpath="$rpath$dir:" 16.3461 + done 16.3462 + compile_var="$runpath_var=\"$rpath\$$runpath_var\" " 16.3463 + fi 16.3464 + if test -n "$finalize_perm_rpath"; then 16.3465 + # We should set the runpath_var. 16.3466 + rpath= 16.3467 + for dir in $finalize_perm_rpath; do 16.3468 + rpath="$rpath$dir:" 16.3469 + done 16.3470 + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " 16.3471 + fi 16.3472 + fi 16.3473 + 16.3474 + if test "$no_install" = yes; then 16.3475 + # We don't need to create a wrapper script. 16.3476 + link_command="$compile_var$compile_command$compile_rpath" 16.3477 + # Replace the output file specification. 16.3478 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'` 16.3479 + # Delete the old output file. 16.3480 + $run $rm $output 16.3481 + # Link the executable and exit 16.3482 + $show "$link_command" 16.3483 + $run eval "$link_command" || exit $? 16.3484 + exit 0 16.3485 + fi 16.3486 + 16.3487 + if test "$hardcode_action" = relink; then 16.3488 + # Fast installation is not supported 16.3489 + link_command="$compile_var$compile_command$compile_rpath" 16.3490 + relink_command="$finalize_var$finalize_command$finalize_rpath" 16.3491 + 16.3492 + $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2 16.3493 + $echo "$modename: \`$output' will be relinked during installation" 1>&2 16.3494 + else 16.3495 + if test "$fast_install" != no; then 16.3496 + link_command="$finalize_var$compile_command$finalize_rpath" 16.3497 + if test "$fast_install" = yes; then 16.3498 + relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'` 16.3499 + else 16.3500 + # fast_install is set to needless 16.3501 + relink_command= 16.3502 + fi 16.3503 + else 16.3504 + link_command="$compile_var$compile_command$compile_rpath" 16.3505 + relink_command="$finalize_var$finalize_command$finalize_rpath" 16.3506 + fi 16.3507 + fi 16.3508 + 16.3509 + # Replace the output file specification. 16.3510 + link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'` 16.3511 + 16.3512 + # Delete the old output files. 16.3513 + $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname 16.3514 + 16.3515 + $show "$link_command" 16.3516 + $run eval "$link_command" || exit $? 16.3517 + 16.3518 + # Now create the wrapper script. 16.3519 + $show "creating $output" 16.3520 + 16.3521 + # Quote the relink command for shipping. 16.3522 + if test -n "$relink_command"; then 16.3523 + # Preserve any variables that may affect compiler behavior 16.3524 + for var in $variables_saved_for_relink; do 16.3525 + if eval test -z \"\${$var+set}\"; then 16.3526 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" 16.3527 + elif eval var_value=\$$var; test -z "$var_value"; then 16.3528 + relink_command="$var=; export $var; $relink_command" 16.3529 + else 16.3530 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` 16.3531 + relink_command="$var=\"$var_value\"; export $var; $relink_command" 16.3532 + fi 16.3533 + done 16.3534 + relink_command="cd `pwd`; $relink_command" 16.3535 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` 16.3536 + fi 16.3537 + 16.3538 + # Quote $echo for shipping. 16.3539 + if test "X$echo" = "X$SHELL $0 --fallback-echo"; then 16.3540 + case $0 in 16.3541 + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $0 --fallback-echo";; 16.3542 + *) qecho="$SHELL `pwd`/$0 --fallback-echo";; 16.3543 + esac 16.3544 + qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"` 16.3545 + else 16.3546 + qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"` 16.3547 + fi 16.3548 + 16.3549 + # Only actually do things if our run command is non-null. 16.3550 + if test -z "$run"; then 16.3551 + # win32 will think the script is a binary if it has 16.3552 + # a .exe suffix, so we strip it off here. 16.3553 + case $output in 16.3554 + *.exe) output=`echo $output|sed 's,.exe$,,'` ;; 16.3555 + esac 16.3556 + # test for cygwin because mv fails w/o .exe extensions 16.3557 + case $host in 16.3558 + *cygwin*) exeext=.exe ;; 16.3559 + *) exeext= ;; 16.3560 + esac 16.3561 + $rm $output 16.3562 + trap "$rm $output; exit 1" 1 2 15 16.3563 + 16.3564 + $echo > $output "\ 16.3565 +#! $SHELL 16.3566 + 16.3567 +# $output - temporary wrapper script for $objdir/$outputname 16.3568 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP 16.3569 +# 16.3570 +# The $output program cannot be directly executed until all the libtool 16.3571 +# libraries that it depends on are installed. 16.3572 +# 16.3573 +# This wrapper script should never be moved out of the build directory. 16.3574 +# If it is, it will not operate correctly. 16.3575 + 16.3576 +# Sed substitution that helps us do robust quoting. It backslashifies 16.3577 +# metacharacters that are still active within double-quoted strings. 16.3578 +Xsed='sed -e 1s/^X//' 16.3579 +sed_quote_subst='$sed_quote_subst' 16.3580 + 16.3581 +# The HP-UX ksh and POSIX shell print the target directory to stdout 16.3582 +# if CDPATH is set. 16.3583 +if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi 16.3584 + 16.3585 +relink_command=\"$relink_command\" 16.3586 + 16.3587 +# This environment variable determines our operation mode. 16.3588 +if test \"\$libtool_install_magic\" = \"$magic\"; then 16.3589 + # install mode needs the following variable: 16.3590 + notinst_deplibs='$notinst_deplibs' 16.3591 +else 16.3592 + # When we are sourced in execute mode, \$file and \$echo are already set. 16.3593 + if test \"\$libtool_execute_magic\" != \"$magic\"; then 16.3594 + echo=\"$qecho\" 16.3595 + file=\"\$0\" 16.3596 + # Make sure echo works. 16.3597 + if test \"X\$1\" = X--no-reexec; then 16.3598 + # Discard the --no-reexec flag, and continue. 16.3599 + shift 16.3600 + elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then 16.3601 + # Yippee, \$echo works! 16.3602 + : 16.3603 + else 16.3604 + # Restart under the correct shell, and then maybe \$echo will work. 16.3605 + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"} 16.3606 + fi 16.3607 + fi\ 16.3608 +" 16.3609 + $echo >> $output "\ 16.3610 + 16.3611 + # Find the directory that this script lives in. 16.3612 + thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\` 16.3613 + test \"x\$thisdir\" = \"x\$file\" && thisdir=. 16.3614 + 16.3615 + # Follow symbolic links until we get to the real thisdir. 16.3616 + file=\`ls -ld \"\$file\" | sed -n 's/.*-> //p'\` 16.3617 + while test -n \"\$file\"; do 16.3618 + destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\` 16.3619 + 16.3620 + # If there was a directory component, then change thisdir. 16.3621 + if test \"x\$destdir\" != \"x\$file\"; then 16.3622 + case \"\$destdir\" in 16.3623 + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;; 16.3624 + *) thisdir=\"\$thisdir/\$destdir\" ;; 16.3625 + esac 16.3626 + fi 16.3627 + 16.3628 + file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\` 16.3629 + file=\`ls -ld \"\$thisdir/\$file\" | sed -n 's/.*-> //p'\` 16.3630 + done 16.3631 + 16.3632 + # Try to get the absolute directory name. 16.3633 + absdir=\`cd \"\$thisdir\" && pwd\` 16.3634 + test -n \"\$absdir\" && thisdir=\"\$absdir\" 16.3635 +" 16.3636 + 16.3637 + if test "$fast_install" = yes; then 16.3638 + echo >> $output "\ 16.3639 + program=lt-'$outputname'$exeext 16.3640 + progdir=\"\$thisdir/$objdir\" 16.3641 + 16.3642 + if test ! -f \"\$progdir/\$program\" || \\ 16.3643 + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | sed 1q\`; \\ 16.3644 + test \"X\$file\" != \"X\$progdir/\$program\"; }; then 16.3645 + 16.3646 + file=\"\$\$-\$program\" 16.3647 + 16.3648 + if test ! -d \"\$progdir\"; then 16.3649 + $mkdir \"\$progdir\" 16.3650 + else 16.3651 + $rm \"\$progdir/\$file\" 16.3652 + fi" 16.3653 + 16.3654 + echo >> $output "\ 16.3655 + 16.3656 + # relink executable if necessary 16.3657 + if test -n \"\$relink_command\"; then 16.3658 + if relink_command_output=\`eval \$relink_command 2>&1\`; then : 16.3659 + else 16.3660 + $echo \"\$relink_command_output\" >&2 16.3661 + $rm \"\$progdir/\$file\" 16.3662 + exit 1 16.3663 + fi 16.3664 + fi 16.3665 + 16.3666 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null || 16.3667 + { $rm \"\$progdir/\$program\"; 16.3668 + $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; } 16.3669 + $rm \"\$progdir/\$file\" 16.3670 + fi" 16.3671 + else 16.3672 + echo >> $output "\ 16.3673 + program='$outputname' 16.3674 + progdir=\"\$thisdir/$objdir\" 16.3675 +" 16.3676 + fi 16.3677 + 16.3678 + echo >> $output "\ 16.3679 + 16.3680 + if test -f \"\$progdir/\$program\"; then" 16.3681 + 16.3682 + # Export our shlibpath_var if we have one. 16.3683 + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then 16.3684 + $echo >> $output "\ 16.3685 + # Add our own library path to $shlibpath_var 16.3686 + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\" 16.3687 + 16.3688 + # Some systems cannot cope with colon-terminated $shlibpath_var 16.3689 + # The second colon is a workaround for a bug in BeOS R4 sed 16.3690 + $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\` 16.3691 + 16.3692 + export $shlibpath_var 16.3693 +" 16.3694 + fi 16.3695 + 16.3696 + # fixup the dll searchpath if we need to. 16.3697 + if test -n "$dllsearchpath"; then 16.3698 + $echo >> $output "\ 16.3699 + # Add the dll search path components to the executable PATH 16.3700 + PATH=$dllsearchpath:\$PATH 16.3701 +" 16.3702 + fi 16.3703 + 16.3704 + $echo >> $output "\ 16.3705 + if test \"\$libtool_execute_magic\" != \"$magic\"; then 16.3706 + # Run the actual program with our arguments. 16.3707 +" 16.3708 + case $host in 16.3709 + # win32 systems need to use the prog path for dll 16.3710 + # lookup to work 16.3711 + *-*-cygwin* | *-*-pw32*) 16.3712 + $echo >> $output "\ 16.3713 + exec \$progdir/\$program \${1+\"\$@\"} 16.3714 +" 16.3715 + ;; 16.3716 + 16.3717 + # Backslashes separate directories on plain windows 16.3718 + *-*-mingw | *-*-os2*) 16.3719 + $echo >> $output "\ 16.3720 + exec \$progdir\\\\\$program \${1+\"\$@\"} 16.3721 +" 16.3722 + ;; 16.3723 + 16.3724 + *) 16.3725 + $echo >> $output "\ 16.3726 + # Export the path to the program. 16.3727 + PATH=\"\$progdir:\$PATH\" 16.3728 + export PATH 16.3729 + 16.3730 + exec \$program \${1+\"\$@\"} 16.3731 +" 16.3732 + ;; 16.3733 + esac 16.3734 + $echo >> $output "\ 16.3735 + \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\" 16.3736 + exit 1 16.3737 + fi 16.3738 + else 16.3739 + # The program doesn't exist. 16.3740 + \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2 16.3741 + \$echo \"This script is just a wrapper for \$program.\" 1>&2 16.3742 + echo \"See the $PACKAGE documentation for more information.\" 1>&2 16.3743 + exit 1 16.3744 + fi 16.3745 +fi\ 16.3746 +" 16.3747 + chmod +x $output 16.3748 + fi 16.3749 + exit 0 16.3750 + ;; 16.3751 + esac 16.3752 + 16.3753 + # See if we need to build an old-fashioned archive. 16.3754 + for oldlib in $oldlibs; do 16.3755 + 16.3756 + if test "$build_libtool_libs" = convenience; then 16.3757 + oldobjs="$libobjs_save" 16.3758 + addlibs="$convenience" 16.3759 + build_libtool_libs=no 16.3760 + else 16.3761 + if test "$build_libtool_libs" = module; then 16.3762 + oldobjs="$libobjs_save" 16.3763 + build_libtool_libs=no 16.3764 + else 16.3765 + oldobjs="$objs$old_deplibs "`$echo "X$libobjs_save" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP` 16.3766 + fi 16.3767 + addlibs="$old_convenience" 16.3768 + fi 16.3769 + 16.3770 + if test -n "$addlibs"; then 16.3771 + gentop="$output_objdir/${outputname}x" 16.3772 + $show "${rm}r $gentop" 16.3773 + $run ${rm}r "$gentop" 16.3774 + $show "mkdir $gentop" 16.3775 + $run mkdir "$gentop" 16.3776 + status=$? 16.3777 + if test $status -ne 0 && test ! -d "$gentop"; then 16.3778 + exit $status 16.3779 + fi 16.3780 + generated="$generated $gentop" 16.3781 + 16.3782 + # Add in members from convenience archives. 16.3783 + for xlib in $addlibs; do 16.3784 + # Extract the objects. 16.3785 + case $xlib in 16.3786 + [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;; 16.3787 + *) xabs=`pwd`"/$xlib" ;; 16.3788 + esac 16.3789 + xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'` 16.3790 + xdir="$gentop/$xlib" 16.3791 + 16.3792 + $show "${rm}r $xdir" 16.3793 + $run ${rm}r "$xdir" 16.3794 + $show "mkdir $xdir" 16.3795 + $run mkdir "$xdir" 16.3796 + status=$? 16.3797 + if test $status -ne 0 && test ! -d "$xdir"; then 16.3798 + exit $status 16.3799 + fi 16.3800 + $show "(cd $xdir && $AR x $xabs)" 16.3801 + $run eval "(cd \$xdir && $AR x \$xabs)" || exit $? 16.3802 + 16.3803 + oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP` 16.3804 + done 16.3805 + fi 16.3806 + 16.3807 + # Do each command in the archive commands. 16.3808 + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then 16.3809 + eval cmds=\"$old_archive_from_new_cmds\" 16.3810 + else 16.3811 + # Ensure that we have .o objects in place in case we decided 16.3812 + # not to build a shared library, and have fallen back to building 16.3813 + # static libs even though --disable-static was passed! 16.3814 + for oldobj in $oldobjs; do 16.3815 + if test ! -f $oldobj; then 16.3816 + xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'` 16.3817 + if test "X$xdir" = "X$oldobj"; then 16.3818 + xdir="." 16.3819 + else 16.3820 + xdir="$xdir" 16.3821 + fi 16.3822 + baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'` 16.3823 + obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"` 16.3824 + $show "(cd $xdir && ${LN_S} $obj $baseobj)" 16.3825 + $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $? 16.3826 + fi 16.3827 + done 16.3828 + 16.3829 + eval cmds=\"$old_archive_cmds\" 16.3830 + fi 16.3831 + save_ifs="$IFS"; IFS='~' 16.3832 + for cmd in $cmds; do 16.3833 + IFS="$save_ifs" 16.3834 + $show "$cmd" 16.3835 + $run eval "$cmd" || exit $? 16.3836 + done 16.3837 + IFS="$save_ifs" 16.3838 + done 16.3839 + 16.3840 + if test -n "$generated"; then 16.3841 + $show "${rm}r$generated" 16.3842 + $run ${rm}r$generated 16.3843 + fi 16.3844 + 16.3845 + # Now create the libtool archive. 16.3846 + case $output in 16.3847 + *.la) 16.3848 + old_library= 16.3849 + test "$build_old_libs" = yes && old_library="$libname.$libext" 16.3850 + $show "creating $output" 16.3851 + 16.3852 + # Preserve any variables that may affect compiler behavior 16.3853 + for var in $variables_saved_for_relink; do 16.3854 + if eval test -z \"\${$var+set}\"; then 16.3855 + relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command" 16.3856 + elif eval var_value=\$$var; test -z "$var_value"; then 16.3857 + relink_command="$var=; export $var; $relink_command" 16.3858 + else 16.3859 + var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"` 16.3860 + relink_command="$var=\"$var_value\"; export $var; $relink_command" 16.3861 + fi 16.3862 + done 16.3863 + # Quote the link command for shipping. 16.3864 + relink_command="cd `pwd`; $SHELL $0 --mode=relink $libtool_args" 16.3865 + relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"` 16.3866 + 16.3867 + # Only create the output if not a dry run. 16.3868 + if test -z "$run"; then 16.3869 + for installed in no yes; do 16.3870 + if test "$installed" = yes; then 16.3871 + if test -z "$install_libdir"; then 16.3872 + break 16.3873 + fi 16.3874 + output="$output_objdir/$outputname"i 16.3875 + # Replace all uninstalled libtool libraries with the installed ones 16.3876 + newdependency_libs= 16.3877 + for deplib in $dependency_libs; do 16.3878 + case $deplib in 16.3879 + *.la) 16.3880 + name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'` 16.3881 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` 16.3882 + if test -z "$libdir"; then 16.3883 + $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2 16.3884 + exit 1 16.3885 + fi 16.3886 + newdependency_libs="$newdependency_libs $libdir/$name" 16.3887 + ;; 16.3888 + *) newdependency_libs="$newdependency_libs $deplib" ;; 16.3889 + esac 16.3890 + done 16.3891 + dependency_libs="$newdependency_libs" 16.3892 + newdlfiles= 16.3893 + for lib in $dlfiles; do 16.3894 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` 16.3895 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib` 16.3896 + if test -z "$libdir"; then 16.3897 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 16.3898 + exit 1 16.3899 + fi 16.3900 + newdlfiles="$newdlfiles $libdir/$name" 16.3901 + done 16.3902 + dlfiles="$newdlfiles" 16.3903 + newdlprefiles= 16.3904 + for lib in $dlprefiles; do 16.3905 + name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'` 16.3906 + eval libdir=`sed -n -e 's/^libdir=\(.*\)$/\1/p' $lib` 16.3907 + if test -z "$libdir"; then 16.3908 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 16.3909 + exit 1 16.3910 + fi 16.3911 + newdlprefiles="$newdlprefiles $libdir/$name" 16.3912 + done 16.3913 + dlprefiles="$newdlprefiles" 16.3914 + fi 16.3915 + $rm $output 16.3916 + # place dlname in correct position for cygwin 16.3917 + tdlname=$dlname 16.3918 + case $host,$output,$installed,$module,$dlname in 16.3919 + *cygwin*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;; 16.3920 + esac 16.3921 + $echo > $output "\ 16.3922 +# $outputname - a libtool library file 16.3923 +# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP 16.3924 +# 16.3925 +# Please DO NOT delete this file! 16.3926 +# It is necessary for linking the library. 16.3927 + 16.3928 +# The name that we can dlopen(3). 16.3929 +dlname='$tdlname' 16.3930 + 16.3931 +# Names of this library. 16.3932 +library_names='$library_names' 16.3933 + 16.3934 +# The name of the static archive. 16.3935 +old_library='$old_library' 16.3936 + 16.3937 +# Libraries that this one depends upon. 16.3938 +dependency_libs='$dependency_libs' 16.3939 + 16.3940 +# Version information for $libname. 16.3941 +current=$current 16.3942 +age=$age 16.3943 +revision=$revision 16.3944 + 16.3945 +# Is this an already installed library? 16.3946 +installed=$installed 16.3947 + 16.3948 +# Files to dlopen/dlpreopen 16.3949 +dlopen='$dlfiles' 16.3950 +dlpreopen='$dlprefiles' 16.3951 + 16.3952 +# Directory that this library needs to be installed in: 16.3953 +libdir='$install_libdir'" 16.3954 + if test "$installed" = no && test $need_relink = yes; then 16.3955 + $echo >> $output "\ 16.3956 +relink_command=\"$relink_command\"" 16.3957 + fi 16.3958 + done 16.3959 + fi 16.3960 + 16.3961 + # Do a symbolic link so that the libtool archive can be found in 16.3962 + # LD_LIBRARY_PATH before the program is installed. 16.3963 + $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)" 16.3964 + $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $? 16.3965 + ;; 16.3966 + esac 16.3967 + exit 0 16.3968 + ;; 16.3969 + 16.3970 + # libtool install mode 16.3971 + install) 16.3972 + modename="$modename: install" 16.3973 + 16.3974 + # There may be an optional sh(1) argument at the beginning of 16.3975 + # install_prog (especially on Windows NT). 16.3976 + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh || 16.3977 + # Allow the use of GNU shtool's install command. 16.3978 + $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then 16.3979 + # Aesthetically quote it. 16.3980 + arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"` 16.3981 + case $arg in 16.3982 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) 16.3983 + arg="\"$arg\"" 16.3984 + ;; 16.3985 + esac 16.3986 + install_prog="$arg " 16.3987 + arg="$1" 16.3988 + shift 16.3989 + else 16.3990 + install_prog= 16.3991 + arg="$nonopt" 16.3992 + fi 16.3993 + 16.3994 + # The real first argument should be the name of the installation program. 16.3995 + # Aesthetically quote it. 16.3996 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 16.3997 + case $arg in 16.3998 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) 16.3999 + arg="\"$arg\"" 16.4000 + ;; 16.4001 + esac 16.4002 + install_prog="$install_prog$arg" 16.4003 + 16.4004 + # We need to accept at least all the BSD install flags. 16.4005 + dest= 16.4006 + files= 16.4007 + opts= 16.4008 + prev= 16.4009 + install_type= 16.4010 + isdir=no 16.4011 + stripme= 16.4012 + for arg 16.4013 + do 16.4014 + if test -n "$dest"; then 16.4015 + files="$files $dest" 16.4016 + dest="$arg" 16.4017 + continue 16.4018 + fi 16.4019 + 16.4020 + case $arg in 16.4021 + -d) isdir=yes ;; 16.4022 + -f) prev="-f" ;; 16.4023 + -g) prev="-g" ;; 16.4024 + -m) prev="-m" ;; 16.4025 + -o) prev="-o" ;; 16.4026 + -s) 16.4027 + stripme=" -s" 16.4028 + continue 16.4029 + ;; 16.4030 + -*) ;; 16.4031 + 16.4032 + *) 16.4033 + # If the previous option needed an argument, then skip it. 16.4034 + if test -n "$prev"; then 16.4035 + prev= 16.4036 + else 16.4037 + dest="$arg" 16.4038 + continue 16.4039 + fi 16.4040 + ;; 16.4041 + esac 16.4042 + 16.4043 + # Aesthetically quote the argument. 16.4044 + arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"` 16.4045 + case $arg in 16.4046 + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) 16.4047 + arg="\"$arg\"" 16.4048 + ;; 16.4049 + esac 16.4050 + install_prog="$install_prog $arg" 16.4051 + done 16.4052 + 16.4053 + if test -z "$install_prog"; then 16.4054 + $echo "$modename: you must specify an install program" 1>&2 16.4055 + $echo "$help" 1>&2 16.4056 + exit 1 16.4057 + fi 16.4058 + 16.4059 + if test -n "$prev"; then 16.4060 + $echo "$modename: the \`$prev' option requires an argument" 1>&2 16.4061 + $echo "$help" 1>&2 16.4062 + exit 1 16.4063 + fi 16.4064 + 16.4065 + if test -z "$files"; then 16.4066 + if test -z "$dest"; then 16.4067 + $echo "$modename: no file or destination specified" 1>&2 16.4068 + else 16.4069 + $echo "$modename: you must specify a destination" 1>&2 16.4070 + fi 16.4071 + $echo "$help" 1>&2 16.4072 + exit 1 16.4073 + fi 16.4074 + 16.4075 + # Strip any trailing slash from the destination. 16.4076 + dest=`$echo "X$dest" | $Xsed -e 's%/$%%'` 16.4077 + 16.4078 + # Check to see that the destination is a directory. 16.4079 + test -d "$dest" && isdir=yes 16.4080 + if test "$isdir" = yes; then 16.4081 + destdir="$dest" 16.4082 + destname= 16.4083 + else 16.4084 + destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'` 16.4085 + test "X$destdir" = "X$dest" && destdir=. 16.4086 + destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'` 16.4087 + 16.4088 + # Not a directory, so check to see that there is only one file specified. 16.4089 + set dummy $files 16.4090 + if test $# -gt 2; then 16.4091 + $echo "$modename: \`$dest' is not a directory" 1>&2 16.4092 + $echo "$help" 1>&2 16.4093 + exit 1 16.4094 + fi 16.4095 + fi 16.4096 + case $destdir in 16.4097 + [\\/]* | [A-Za-z]:[\\/]*) ;; 16.4098 + *) 16.4099 + for file in $files; do 16.4100 + case $file in 16.4101 + *.lo) ;; 16.4102 + *) 16.4103 + $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2 16.4104 + $echo "$help" 1>&2 16.4105 + exit 1 16.4106 + ;; 16.4107 + esac 16.4108 + done 16.4109 + ;; 16.4110 + esac 16.4111 + 16.4112 + # This variable tells wrapper scripts just to set variables rather 16.4113 + # than running their programs. 16.4114 + libtool_install_magic="$magic" 16.4115 + 16.4116 + staticlibs= 16.4117 + future_libdirs= 16.4118 + current_libdirs= 16.4119 + for file in $files; do 16.4120 + 16.4121 + # Do each installation. 16.4122 + case $file in 16.4123 + *.$libext) 16.4124 + # Do the static libraries later. 16.4125 + staticlibs="$staticlibs $file" 16.4126 + ;; 16.4127 + 16.4128 + *.la) 16.4129 + # Check to see that this really is a libtool archive. 16.4130 + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : 16.4131 + else 16.4132 + $echo "$modename: \`$file' is not a valid libtool archive" 1>&2 16.4133 + $echo "$help" 1>&2 16.4134 + exit 1 16.4135 + fi 16.4136 + 16.4137 + library_names= 16.4138 + old_library= 16.4139 + relink_command= 16.4140 + # If there is no directory component, then add one. 16.4141 + case $file in 16.4142 + */* | *\\*) . $file ;; 16.4143 + *) . ./$file ;; 16.4144 + esac 16.4145 + 16.4146 + # Add the libdir to current_libdirs if it is the destination. 16.4147 + if test "X$destdir" = "X$libdir"; then 16.4148 + case "$current_libdirs " in 16.4149 + *" $libdir "*) ;; 16.4150 + *) current_libdirs="$current_libdirs $libdir" ;; 16.4151 + esac 16.4152 + else 16.4153 + # Note the libdir as a future libdir. 16.4154 + case "$future_libdirs " in 16.4155 + *" $libdir "*) ;; 16.4156 + *) future_libdirs="$future_libdirs $libdir" ;; 16.4157 + esac 16.4158 + fi 16.4159 + 16.4160 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/ 16.4161 + test "X$dir" = "X$file/" && dir= 16.4162 + dir="$dir$objdir" 16.4163 + 16.4164 + if test -n "$relink_command"; then 16.4165 + $echo "$modename: warning: relinking \`$file'" 1>&2 16.4166 + $show "$relink_command" 16.4167 + if $run eval "$relink_command"; then : 16.4168 + else 16.4169 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 16.4170 + continue 16.4171 + fi 16.4172 + fi 16.4173 + 16.4174 + # See the names of the shared library. 16.4175 + set dummy $library_names 16.4176 + if test -n "$2"; then 16.4177 + realname="$2" 16.4178 + shift 16.4179 + shift 16.4180 + 16.4181 + srcname="$realname" 16.4182 + test -n "$relink_command" && srcname="$realname"T 16.4183 + 16.4184 + # Install the shared library and build the symlinks. 16.4185 + $show "$install_prog $dir/$srcname $destdir/$realname" 16.4186 + $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $? 16.4187 + if test -n "$stripme" && test -n "$striplib"; then 16.4188 + $show "$striplib $destdir/$realname" 16.4189 + $run eval "$striplib $destdir/$realname" || exit $? 16.4190 + fi 16.4191 + 16.4192 + if test $# -gt 0; then 16.4193 + # Delete the old symlinks, and create new ones. 16.4194 + for linkname 16.4195 + do 16.4196 + if test "$linkname" != "$realname"; then 16.4197 + $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" 16.4198 + $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" 16.4199 + fi 16.4200 + done 16.4201 + fi 16.4202 + 16.4203 + # Do each command in the postinstall commands. 16.4204 + lib="$destdir/$realname" 16.4205 + eval cmds=\"$postinstall_cmds\" 16.4206 + save_ifs="$IFS"; IFS='~' 16.4207 + for cmd in $cmds; do 16.4208 + IFS="$save_ifs" 16.4209 + $show "$cmd" 16.4210 + $run eval "$cmd" || exit $? 16.4211 + done 16.4212 + IFS="$save_ifs" 16.4213 + fi 16.4214 + 16.4215 + # Install the pseudo-library for information purposes. 16.4216 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` 16.4217 + instname="$dir/$name"i 16.4218 + $show "$install_prog $instname $destdir/$name" 16.4219 + $run eval "$install_prog $instname $destdir/$name" || exit $? 16.4220 + 16.4221 + # Maybe install the static library, too. 16.4222 + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" 16.4223 + ;; 16.4224 + 16.4225 + *.lo) 16.4226 + # Install (i.e. copy) a libtool object. 16.4227 + 16.4228 + # Figure out destination file name, if it wasn't already specified. 16.4229 + if test -n "$destname"; then 16.4230 + destfile="$destdir/$destname" 16.4231 + else 16.4232 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` 16.4233 + destfile="$destdir/$destfile" 16.4234 + fi 16.4235 + 16.4236 + # Deduce the name of the destination old-style object file. 16.4237 + case $destfile in 16.4238 + *.lo) 16.4239 + staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"` 16.4240 + ;; 16.4241 + *.$objext) 16.4242 + staticdest="$destfile" 16.4243 + destfile= 16.4244 + ;; 16.4245 + *) 16.4246 + $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2 16.4247 + $echo "$help" 1>&2 16.4248 + exit 1 16.4249 + ;; 16.4250 + esac 16.4251 + 16.4252 + # Install the libtool object if requested. 16.4253 + if test -n "$destfile"; then 16.4254 + $show "$install_prog $file $destfile" 16.4255 + $run eval "$install_prog $file $destfile" || exit $? 16.4256 + fi 16.4257 + 16.4258 + # Install the old object if enabled. 16.4259 + if test "$build_old_libs" = yes; then 16.4260 + # Deduce the name of the old-style object file. 16.4261 + staticobj=`$echo "X$file" | $Xsed -e "$lo2o"` 16.4262 + 16.4263 + $show "$install_prog $staticobj $staticdest" 16.4264 + $run eval "$install_prog \$staticobj \$staticdest" || exit $? 16.4265 + fi 16.4266 + exit 0 16.4267 + ;; 16.4268 + 16.4269 + *) 16.4270 + # Figure out destination file name, if it wasn't already specified. 16.4271 + if test -n "$destname"; then 16.4272 + destfile="$destdir/$destname" 16.4273 + else 16.4274 + destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'` 16.4275 + destfile="$destdir/$destfile" 16.4276 + fi 16.4277 + 16.4278 + # Do a test to see if this is really a libtool program. 16.4279 + if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then 16.4280 + notinst_deplibs= 16.4281 + relink_command= 16.4282 + 16.4283 + # If there is no directory component, then add one. 16.4284 + case $file in 16.4285 + */* | *\\*) . $file ;; 16.4286 + *) . ./$file ;; 16.4287 + esac 16.4288 + 16.4289 + # Check the variables that should have been set. 16.4290 + if test -z "$notinst_deplibs"; then 16.4291 + $echo "$modename: invalid libtool wrapper script \`$file'" 1>&2 16.4292 + exit 1 16.4293 + fi 16.4294 + 16.4295 + finalize=yes 16.4296 + for lib in $notinst_deplibs; do 16.4297 + # Check to see that each library is installed. 16.4298 + libdir= 16.4299 + if test -f "$lib"; then 16.4300 + # If there is no directory component, then add one. 16.4301 + case $lib in 16.4302 + */* | *\\*) . $lib ;; 16.4303 + *) . ./$lib ;; 16.4304 + esac 16.4305 + fi 16.4306 + libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test 16.4307 + if test -n "$libdir" && test ! -f "$libfile"; then 16.4308 + $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2 16.4309 + finalize=no 16.4310 + fi 16.4311 + done 16.4312 + 16.4313 + relink_command= 16.4314 + # If there is no directory component, then add one. 16.4315 + case $file in 16.4316 + */* | *\\*) . $file ;; 16.4317 + *) . ./$file ;; 16.4318 + esac 16.4319 + 16.4320 + outputname= 16.4321 + if test "$fast_install" = no && test -n "$relink_command"; then 16.4322 + if test "$finalize" = yes && test -z "$run"; then 16.4323 + tmpdir="/tmp" 16.4324 + test -n "$TMPDIR" && tmpdir="$TMPDIR" 16.4325 + tmpdir="$tmpdir/libtool-$$" 16.4326 + if $mkdir -p "$tmpdir" && chmod 700 "$tmpdir"; then : 16.4327 + else 16.4328 + $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2 16.4329 + continue 16.4330 + fi 16.4331 + file=`$echo "X$file" | $Xsed -e 's%^.*/%%'` 16.4332 + outputname="$tmpdir/$file" 16.4333 + # Replace the output file specification. 16.4334 + relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'` 16.4335 + 16.4336 + $show "$relink_command" 16.4337 + if $run eval "$relink_command"; then : 16.4338 + else 16.4339 + $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2 16.4340 + ${rm}r "$tmpdir" 16.4341 + continue 16.4342 + fi 16.4343 + file="$outputname" 16.4344 + else 16.4345 + $echo "$modename: warning: cannot relink \`$file'" 1>&2 16.4346 + fi 16.4347 + else 16.4348 + # Install the binary that we compiled earlier. 16.4349 + file=`$echo "X$file" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"` 16.4350 + fi 16.4351 + fi 16.4352 + 16.4353 + # remove .exe since cygwin /usr/bin/install will append another 16.4354 + # one anyways 16.4355 + case $install_prog,$host in 16.4356 + /usr/bin/install*,*cygwin*) 16.4357 + case $file:$destfile in 16.4358 + *.exe:*.exe) 16.4359 + # this is ok 16.4360 + ;; 16.4361 + *.exe:*) 16.4362 + destfile=$destfile.exe 16.4363 + ;; 16.4364 + *:*.exe) 16.4365 + destfile=`echo $destfile | sed -e 's,.exe$,,'` 16.4366 + ;; 16.4367 + esac 16.4368 + ;; 16.4369 + esac 16.4370 + $show "$install_prog$stripme $file $destfile" 16.4371 + $run eval "$install_prog\$stripme \$file \$destfile" || exit $? 16.4372 + test -n "$outputname" && ${rm}r "$tmpdir" 16.4373 + ;; 16.4374 + esac 16.4375 + done 16.4376 + 16.4377 + for file in $staticlibs; do 16.4378 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` 16.4379 + 16.4380 + # Set up the ranlib parameters. 16.4381 + oldlib="$destdir/$name" 16.4382 + 16.4383 + $show "$install_prog $file $oldlib" 16.4384 + $run eval "$install_prog \$file \$oldlib" || exit $? 16.4385 + 16.4386 + if test -n "$stripme" && test -n "$striplib"; then 16.4387 + $show "$old_striplib $oldlib" 16.4388 + $run eval "$old_striplib $oldlib" || exit $? 16.4389 + fi 16.4390 + 16.4391 + # Do each command in the postinstall commands. 16.4392 + eval cmds=\"$old_postinstall_cmds\" 16.4393 + save_ifs="$IFS"; IFS='~' 16.4394 + for cmd in $cmds; do 16.4395 + IFS="$save_ifs" 16.4396 + $show "$cmd" 16.4397 + $run eval "$cmd" || exit $? 16.4398 + done 16.4399 + IFS="$save_ifs" 16.4400 + done 16.4401 + 16.4402 + if test -n "$future_libdirs"; then 16.4403 + $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2 16.4404 + fi 16.4405 + 16.4406 + if test -n "$current_libdirs"; then 16.4407 + # Maybe just do a dry run. 16.4408 + test -n "$run" && current_libdirs=" -n$current_libdirs" 16.4409 + exec_cmd='$SHELL $0 --finish$current_libdirs' 16.4410 + else 16.4411 + exit 0 16.4412 + fi 16.4413 + ;; 16.4414 + 16.4415 + # libtool finish mode 16.4416 + finish) 16.4417 + modename="$modename: finish" 16.4418 + libdirs="$nonopt" 16.4419 + admincmds= 16.4420 + 16.4421 + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then 16.4422 + for dir 16.4423 + do 16.4424 + libdirs="$libdirs $dir" 16.4425 + done 16.4426 + 16.4427 + for libdir in $libdirs; do 16.4428 + if test -n "$finish_cmds"; then 16.4429 + # Do each command in the finish commands. 16.4430 + eval cmds=\"$finish_cmds\" 16.4431 + save_ifs="$IFS"; IFS='~' 16.4432 + for cmd in $cmds; do 16.4433 + IFS="$save_ifs" 16.4434 + $show "$cmd" 16.4435 + $run eval "$cmd" || admincmds="$admincmds 16.4436 + $cmd" 16.4437 + done 16.4438 + IFS="$save_ifs" 16.4439 + fi 16.4440 + if test -n "$finish_eval"; then 16.4441 + # Do the single finish_eval. 16.4442 + eval cmds=\"$finish_eval\" 16.4443 + $run eval "$cmds" || admincmds="$admincmds 16.4444 + $cmds" 16.4445 + fi 16.4446 + done 16.4447 + fi 16.4448 + 16.4449 + # Exit here if they wanted silent mode. 16.4450 + test "$show" = ":" && exit 0 16.4451 + 16.4452 + echo "----------------------------------------------------------------------" 16.4453 + echo "Libraries have been installed in:" 16.4454 + for libdir in $libdirs; do 16.4455 + echo " $libdir" 16.4456 + done 16.4457 + echo 16.4458 + echo "If you ever happen to want to link against installed libraries" 16.4459 + echo "in a given directory, LIBDIR, you must either use libtool, and" 16.4460 + echo "specify the full pathname of the library, or use the \`-LLIBDIR'" 16.4461 + echo "flag during linking and do at least one of the following:" 16.4462 + if test -n "$shlibpath_var"; then 16.4463 + echo " - add LIBDIR to the \`$shlibpath_var' environment variable" 16.4464 + echo " during execution" 16.4465 + fi 16.4466 + if test -n "$runpath_var"; then 16.4467 + echo " - add LIBDIR to the \`$runpath_var' environment variable" 16.4468 + echo " during linking" 16.4469 + fi 16.4470 + if test -n "$hardcode_libdir_flag_spec"; then 16.4471 + libdir=LIBDIR 16.4472 + eval flag=\"$hardcode_libdir_flag_spec\" 16.4473 + 16.4474 + echo " - use the \`$flag' linker flag" 16.4475 + fi 16.4476 + if test -n "$admincmds"; then 16.4477 + echo " - have your system administrator run these commands:$admincmds" 16.4478 + fi 16.4479 + if test -f /etc/ld.so.conf; then 16.4480 + echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" 16.4481 + fi 16.4482 + echo 16.4483 + echo "See any operating system documentation about shared libraries for" 16.4484 + echo "more information, such as the ld(1) and ld.so(8) manual pages." 16.4485 + echo "----------------------------------------------------------------------" 16.4486 + exit 0 16.4487 + ;; 16.4488 + 16.4489 + # libtool execute mode 16.4490 + execute) 16.4491 + modename="$modename: execute" 16.4492 + 16.4493 + # The first argument is the command name. 16.4494 + cmd="$nonopt" 16.4495 + if test -z "$cmd"; then 16.4496 + $echo "$modename: you must specify a COMMAND" 1>&2 16.4497 + $echo "$help" 16.4498 + exit 1 16.4499 + fi 16.4500 + 16.4501 + # Handle -dlopen flags immediately. 16.4502 + for file in $execute_dlfiles; do 16.4503 + if test ! -f "$file"; then 16.4504 + $echo "$modename: \`$file' is not a file" 1>&2 16.4505 + $echo "$help" 1>&2 16.4506 + exit 1 16.4507 + fi 16.4508 + 16.4509 + dir= 16.4510 + case $file in 16.4511 + *.la) 16.4512 + # Check to see that this really is a libtool archive. 16.4513 + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then : 16.4514 + else 16.4515 + $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2 16.4516 + $echo "$help" 1>&2 16.4517 + exit 1 16.4518 + fi 16.4519 + 16.4520 + # Read the libtool library. 16.4521 + dlname= 16.4522 + library_names= 16.4523 + 16.4524 + # If there is no directory component, then add one. 16.4525 + case $file in 16.4526 + */* | *\\*) . $file ;; 16.4527 + *) . ./$file ;; 16.4528 + esac 16.4529 + 16.4530 + # Skip this library if it cannot be dlopened. 16.4531 + if test -z "$dlname"; then 16.4532 + # Warn if it was a shared library. 16.4533 + test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'" 16.4534 + continue 16.4535 + fi 16.4536 + 16.4537 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` 16.4538 + test "X$dir" = "X$file" && dir=. 16.4539 + 16.4540 + if test -f "$dir/$objdir/$dlname"; then 16.4541 + dir="$dir/$objdir" 16.4542 + else 16.4543 + $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2 16.4544 + exit 1 16.4545 + fi 16.4546 + ;; 16.4547 + 16.4548 + *.lo) 16.4549 + # Just add the directory containing the .lo file. 16.4550 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` 16.4551 + test "X$dir" = "X$file" && dir=. 16.4552 + ;; 16.4553 + 16.4554 + *) 16.4555 + $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2 16.4556 + continue 16.4557 + ;; 16.4558 + esac 16.4559 + 16.4560 + # Get the absolute pathname. 16.4561 + absdir=`cd "$dir" && pwd` 16.4562 + test -n "$absdir" && dir="$absdir" 16.4563 + 16.4564 + # Now add the directory to shlibpath_var. 16.4565 + if eval "test -z \"\$$shlibpath_var\""; then 16.4566 + eval "$shlibpath_var=\"\$dir\"" 16.4567 + else 16.4568 + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\"" 16.4569 + fi 16.4570 + done 16.4571 + 16.4572 + # This variable tells wrapper scripts just to set shlibpath_var 16.4573 + # rather than running their programs. 16.4574 + libtool_execute_magic="$magic" 16.4575 + 16.4576 + # Check if any of the arguments is a wrapper script. 16.4577 + args= 16.4578 + for file 16.4579 + do 16.4580 + case $file in 16.4581 + -*) ;; 16.4582 + *) 16.4583 + # Do a test to see if this is really a libtool program. 16.4584 + if (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then 16.4585 + # If there is no directory component, then add one. 16.4586 + case $file in 16.4587 + */* | *\\*) . $file ;; 16.4588 + *) . ./$file ;; 16.4589 + esac 16.4590 + 16.4591 + # Transform arg to wrapped name. 16.4592 + file="$progdir/$program" 16.4593 + fi 16.4594 + ;; 16.4595 + esac 16.4596 + # Quote arguments (to preserve shell metacharacters). 16.4597 + file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"` 16.4598 + args="$args \"$file\"" 16.4599 + done 16.4600 + 16.4601 + if test -z "$run"; then 16.4602 + if test -n "$shlibpath_var"; then 16.4603 + # Export the shlibpath_var. 16.4604 + eval "export $shlibpath_var" 16.4605 + fi 16.4606 + 16.4607 + # Restore saved enviroment variables 16.4608 + if test "${save_LC_ALL+set}" = set; then 16.4609 + LC_ALL="$save_LC_ALL"; export LC_ALL 16.4610 + fi 16.4611 + if test "${save_LANG+set}" = set; then 16.4612 + LANG="$save_LANG"; export LANG 16.4613 + fi 16.4614 + 16.4615 + # Now prepare to actually exec the command. 16.4616 + exec_cmd='"$cmd"$args' 16.4617 + else 16.4618 + # Display what would be done. 16.4619 + if test -n "$shlibpath_var"; then 16.4620 + eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\"" 16.4621 + $echo "export $shlibpath_var" 16.4622 + fi 16.4623 + $echo "$cmd$args" 16.4624 + exit 0 16.4625 + fi 16.4626 + ;; 16.4627 + 16.4628 + # libtool clean and uninstall mode 16.4629 + clean | uninstall) 16.4630 + modename="$modename: $mode" 16.4631 + rm="$nonopt" 16.4632 + files= 16.4633 + rmforce= 16.4634 + exit_status=0 16.4635 + 16.4636 + # This variable tells wrapper scripts just to set variables rather 16.4637 + # than running their programs. 16.4638 + libtool_install_magic="$magic" 16.4639 + 16.4640 + for arg 16.4641 + do 16.4642 + case $arg in 16.4643 + -f) rm="$rm $arg"; rmforce=yes ;; 16.4644 + -*) rm="$rm $arg" ;; 16.4645 + *) files="$files $arg" ;; 16.4646 + esac 16.4647 + done 16.4648 + 16.4649 + if test -z "$rm"; then 16.4650 + $echo "$modename: you must specify an RM program" 1>&2 16.4651 + $echo "$help" 1>&2 16.4652 + exit 1 16.4653 + fi 16.4654 + 16.4655 + rmdirs= 16.4656 + 16.4657 + for file in $files; do 16.4658 + dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'` 16.4659 + if test "X$dir" = "X$file"; then 16.4660 + dir=. 16.4661 + objdir="$objdir" 16.4662 + else 16.4663 + objdir="$dir/$objdir" 16.4664 + fi 16.4665 + name=`$echo "X$file" | $Xsed -e 's%^.*/%%'` 16.4666 + test $mode = uninstall && objdir="$dir" 16.4667 + 16.4668 + # Remember objdir for removal later, being careful to avoid duplicates 16.4669 + if test $mode = clean; then 16.4670 + case " $rmdirs " in 16.4671 + *" $objdir "*) ;; 16.4672 + *) rmdirs="$rmdirs $objdir" ;; 16.4673 + esac 16.4674 + fi 16.4675 + 16.4676 + # Don't error if the file doesn't exist and rm -f was used. 16.4677 + if (test -L "$file") >/dev/null 2>&1 \ 16.4678 + || (test -h "$file") >/dev/null 2>&1 \ 16.4679 + || test -f "$file"; then 16.4680 + : 16.4681 + elif test -d "$file"; then 16.4682 + exit_status=1 16.4683 + continue 16.4684 + elif test "$rmforce" = yes; then 16.4685 + continue 16.4686 + fi 16.4687 + 16.4688 + rmfiles="$file" 16.4689 + 16.4690 + case $name in 16.4691 + *.la) 16.4692 + # Possibly a libtool archive, so verify it. 16.4693 + if (sed -e '2q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then 16.4694 + . $dir/$name 16.4695 + 16.4696 + # Delete the libtool libraries and symlinks. 16.4697 + for n in $library_names; do 16.4698 + rmfiles="$rmfiles $objdir/$n" 16.4699 + done 16.4700 + test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" 16.4701 + test $mode = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" 16.4702 + 16.4703 + if test $mode = uninstall; then 16.4704 + if test -n "$library_names"; then 16.4705 + # Do each command in the postuninstall commands. 16.4706 + eval cmds=\"$postuninstall_cmds\" 16.4707 + save_ifs="$IFS"; IFS='~' 16.4708 + for cmd in $cmds; do 16.4709 + IFS="$save_ifs" 16.4710 + $show "$cmd" 16.4711 + $run eval "$cmd" 16.4712 + if test $? != 0 && test "$rmforce" != yes; then 16.4713 + exit_status=1 16.4714 + fi 16.4715 + done 16.4716 + IFS="$save_ifs" 16.4717 + fi 16.4718 + 16.4719 + if test -n "$old_library"; then 16.4720 + # Do each command in the old_postuninstall commands. 16.4721 + eval cmds=\"$old_postuninstall_cmds\" 16.4722 + save_ifs="$IFS"; IFS='~' 16.4723 + for cmd in $cmds; do 16.4724 + IFS="$save_ifs" 16.4725 + $show "$cmd" 16.4726 + $run eval "$cmd" 16.4727 + if test $? != 0 && test "$rmforce" != yes; then 16.4728 + exit_status=1 16.4729 + fi 16.4730 + done 16.4731 + IFS="$save_ifs" 16.4732 + fi 16.4733 + # FIXME: should reinstall the best remaining shared library. 16.4734 + fi 16.4735 + fi 16.4736 + ;; 16.4737 + 16.4738 + *.lo) 16.4739 + if test "$build_old_libs" = yes; then 16.4740 + oldobj=`$echo "X$name" | $Xsed -e "$lo2o"` 16.4741 + rmfiles="$rmfiles $dir/$oldobj" 16.4742 + fi 16.4743 + ;; 16.4744 + 16.4745 + *) 16.4746 + # Do a test to see if this is a libtool program. 16.4747 + if test $mode = clean && 16.4748 + (sed -e '4q' $file | egrep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then 16.4749 + relink_command= 16.4750 + . $dir/$file 16.4751 + 16.4752 + rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" 16.4753 + if test "$fast_install" = yes && test -n "$relink_command"; then 16.4754 + rmfiles="$rmfiles $objdir/lt-$name" 16.4755 + fi 16.4756 + fi 16.4757 + ;; 16.4758 + esac 16.4759 + $show "$rm $rmfiles" 16.4760 + $run $rm $rmfiles || exit_status=1 16.4761 + done 16.4762 + 16.4763 + # Try to remove the ${objdir}s in the directories where we deleted files 16.4764 + for dir in $rmdirs; do 16.4765 + if test -d "$dir"; then 16.4766 + $show "rmdir $dir" 16.4767 + $run rmdir $dir >/dev/null 2>&1 16.4768 + fi 16.4769 + done 16.4770 + 16.4771 + exit $exit_status 16.4772 + ;; 16.4773 + 16.4774 + "") 16.4775 + $echo "$modename: you must specify a MODE" 1>&2 16.4776 + $echo "$generic_help" 1>&2 16.4777 + exit 1 16.4778 + ;; 16.4779 + esac 16.4780 + 16.4781 + if test -z "$exec_cmd"; then 16.4782 + $echo "$modename: invalid operation mode \`$mode'" 1>&2 16.4783 + $echo "$generic_help" 1>&2 16.4784 + exit 1 16.4785 + fi 16.4786 +fi # test -z "$show_help" 16.4787 + 16.4788 +if test -n "$exec_cmd"; then 16.4789 + eval exec $exec_cmd 16.4790 + exit 1 16.4791 +fi 16.4792 + 16.4793 +# We need to display help for each of the modes. 16.4794 +case $mode in 16.4795 +"") $echo \ 16.4796 +"Usage: $modename [OPTION]... [MODE-ARG]... 16.4797 + 16.4798 +Provide generalized library-building support services. 16.4799 + 16.4800 + --config show all configuration variables 16.4801 + --debug enable verbose shell tracing 16.4802 +-n, --dry-run display commands without modifying any files 16.4803 + --features display basic configuration information and exit 16.4804 + --finish same as \`--mode=finish' 16.4805 + --help display this help message and exit 16.4806 + --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS] 16.4807 + --quiet same as \`--silent' 16.4808 + --silent don't print informational messages 16.4809 + --version print version information 16.4810 + 16.4811 +MODE must be one of the following: 16.4812 + 16.4813 + clean remove files from the build directory 16.4814 + compile compile a source file into a libtool object 16.4815 + execute automatically set library path, then run a program 16.4816 + finish complete the installation of libtool libraries 16.4817 + install install libraries or executables 16.4818 + link create a library or an executable 16.4819 + uninstall remove libraries from an installed directory 16.4820 + 16.4821 +MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for 16.4822 +a more detailed description of MODE." 16.4823 + exit 0 16.4824 + ;; 16.4825 + 16.4826 +clean) 16.4827 + $echo \ 16.4828 +"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE... 16.4829 + 16.4830 +Remove files from the build directory. 16.4831 + 16.4832 +RM is the name of the program to use to delete files associated with each FILE 16.4833 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed 16.4834 +to RM. 16.4835 + 16.4836 +If FILE is a libtool library, object or program, all the files associated 16.4837 +with it are deleted. Otherwise, only FILE itself is deleted using RM." 16.4838 + ;; 16.4839 + 16.4840 +compile) 16.4841 + $echo \ 16.4842 +"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE 16.4843 + 16.4844 +Compile a source file into a libtool library object. 16.4845 + 16.4846 +This mode accepts the following additional options: 16.4847 + 16.4848 + -o OUTPUT-FILE set the output file name to OUTPUT-FILE 16.4849 + -prefer-pic try to building PIC objects only 16.4850 + -prefer-non-pic try to building non-PIC objects only 16.4851 + -static always build a \`.o' file suitable for static linking 16.4852 + 16.4853 +COMPILE-COMMAND is a command to be used in creating a \`standard' object file 16.4854 +from the given SOURCEFILE. 16.4855 + 16.4856 +The output file name is determined by removing the directory component from 16.4857 +SOURCEFILE, then substituting the C source code suffix \`.c' with the 16.4858 +library object suffix, \`.lo'." 16.4859 + ;; 16.4860 + 16.4861 +execute) 16.4862 + $echo \ 16.4863 +"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]... 16.4864 + 16.4865 +Automatically set library path, then run a program. 16.4866 + 16.4867 +This mode accepts the following additional options: 16.4868 + 16.4869 + -dlopen FILE add the directory containing FILE to the library path 16.4870 + 16.4871 +This mode sets the library path environment variable according to \`-dlopen' 16.4872 +flags. 16.4873 + 16.4874 +If any of the ARGS are libtool executable wrappers, then they are translated 16.4875 +into their corresponding uninstalled binary, and any of their required library 16.4876 +directories are added to the library path. 16.4877 + 16.4878 +Then, COMMAND is executed, with ARGS as arguments." 16.4879 + ;; 16.4880 + 16.4881 +finish) 16.4882 + $echo \ 16.4883 +"Usage: $modename [OPTION]... --mode=finish [LIBDIR]... 16.4884 + 16.4885 +Complete the installation of libtool libraries. 16.4886 + 16.4887 +Each LIBDIR is a directory that contains libtool libraries. 16.4888 + 16.4889 +The commands that this mode executes may require superuser privileges. Use 16.4890 +the \`--dry-run' option if you just want to see what would be executed." 16.4891 + ;; 16.4892 + 16.4893 +install) 16.4894 + $echo \ 16.4895 +"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND... 16.4896 + 16.4897 +Install executables or libraries. 16.4898 + 16.4899 +INSTALL-COMMAND is the installation command. The first component should be 16.4900 +either the \`install' or \`cp' program. 16.4901 + 16.4902 +The rest of the components are interpreted as arguments to that command (only 16.4903 +BSD-compatible install options are recognized)." 16.4904 + ;; 16.4905 + 16.4906 +link) 16.4907 + $echo \ 16.4908 +"Usage: $modename [OPTION]... --mode=link LINK-COMMAND... 16.4909 + 16.4910 +Link object files or libraries together to form another library, or to 16.4911 +create an executable program. 16.4912 + 16.4913 +LINK-COMMAND is a command using the C compiler that you would use to create 16.4914 +a program from several object files. 16.4915 + 16.4916 +The following components of LINK-COMMAND are treated specially: 16.4917 + 16.4918 + -all-static do not do any dynamic linking at all 16.4919 + -avoid-version do not add a version suffix if possible 16.4920 + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime 16.4921 + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols 16.4922 + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3) 16.4923 + -export-symbols SYMFILE 16.4924 + try to export only the symbols listed in SYMFILE 16.4925 + -export-symbols-regex REGEX 16.4926 + try to export only the symbols matching REGEX 16.4927 + -LLIBDIR search LIBDIR for required installed libraries 16.4928 + -lNAME OUTPUT-FILE requires the installed library libNAME 16.4929 + -module build a library that can dlopened 16.4930 + -no-fast-install disable the fast-install mode 16.4931 + -no-install link a not-installable executable 16.4932 + -no-undefined declare that a library does not refer to external symbols 16.4933 + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects 16.4934 + -release RELEASE specify package release information 16.4935 + -rpath LIBDIR the created library will eventually be installed in LIBDIR 16.4936 + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries 16.4937 + -static do not do any dynamic linking of libtool libraries 16.4938 + -version-info CURRENT[:REVISION[:AGE]] 16.4939 + specify library version info [each variable defaults to 0] 16.4940 + 16.4941 +All other options (arguments beginning with \`-') are ignored. 16.4942 + 16.4943 +Every other argument is treated as a filename. Files ending in \`.la' are 16.4944 +treated as uninstalled libtool libraries, other files are standard or library 16.4945 +object files. 16.4946 + 16.4947 +If the OUTPUT-FILE ends in \`.la', then a libtool library is created, 16.4948 +only library objects (\`.lo' files) may be specified, and \`-rpath' is 16.4949 +required, except when creating a convenience library. 16.4950 + 16.4951 +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created 16.4952 +using \`ar' and \`ranlib', or on Windows using \`lib'. 16.4953 + 16.4954 +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file 16.4955 +is created, otherwise an executable program is created." 16.4956 + ;; 16.4957 + 16.4958 +uninstall) 16.4959 + $echo \ 16.4960 +"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE... 16.4961 + 16.4962 +Remove libraries from an installation directory. 16.4963 + 16.4964 +RM is the name of the program to use to delete files associated with each FILE 16.4965 +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed 16.4966 +to RM. 16.4967 + 16.4968 +If FILE is a libtool library, all the files associated with it are deleted. 16.4969 +Otherwise, only FILE itself is deleted using RM." 16.4970 + ;; 16.4971 + 16.4972 +*) 16.4973 + $echo "$modename: invalid operation mode \`$mode'" 1>&2 16.4974 + $echo "$help" 1>&2 16.4975 + exit 1 16.4976 + ;; 16.4977 +esac 16.4978 + 16.4979 +echo 16.4980 +$echo "Try \`$modename --help' for more information about other modes." 16.4981 + 16.4982 +exit 0 16.4983 + 16.4984 +# Local Variables: 16.4985 +# mode:shell-script 16.4986 +# sh-indentation:2 16.4987 +# End:
17.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 17.2 +++ b/cfg/missing Mon Jul 29 08:53:08 2002 +0000 17.3 @@ -0,0 +1,265 @@ 17.4 +#! /bin/sh 17.5 +# Common stub for a few missing GNU programs while installing. 17.6 +# Copyright 1996, 1997, 1999, 2000 Free Software Foundation, Inc. 17.7 +# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. 17.8 + 17.9 +# This program is free software; you can redistribute it and/or modify 17.10 +# it under the terms of the GNU General Public License as published by 17.11 +# the Free Software Foundation; either version 2, or (at your option) 17.12 +# any later version. 17.13 + 17.14 +# This program is distributed in the hope that it will be useful, 17.15 +# but WITHOUT ANY WARRANTY; without even the implied warranty of 17.16 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17.17 +# GNU General Public License for more details. 17.18 + 17.19 +# You should have received a copy of the GNU General Public License 17.20 +# along with this program; if not, write to the Free Software 17.21 +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 17.22 +# 02111-1307, USA. 17.23 + 17.24 +if test $# -eq 0; then 17.25 + echo 1>&2 "Try \`$0 --help' for more information" 17.26 + exit 1 17.27 +fi 17.28 + 17.29 +run=: 17.30 + 17.31 +case "$1" in 17.32 +--run) 17.33 + # Try to run requested program, and just exit if it succeeds. 17.34 + run= 17.35 + shift 17.36 + "$@" && exit 0 17.37 + ;; 17.38 +esac 17.39 + 17.40 +# If it does not exist, or fails to run (possibly an outdated version), 17.41 +# try to emulate it. 17.42 +case "$1" in 17.43 + 17.44 + -h|--h|--he|--hel|--help) 17.45 + echo "\ 17.46 +$0 [OPTION]... PROGRAM [ARGUMENT]... 17.47 + 17.48 +Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an 17.49 +error status if there is no known handling for PROGRAM. 17.50 + 17.51 +Options: 17.52 + -h, --help display this help and exit 17.53 + -v, --version output version information and exit 17.54 + --run try to run the given command, and emulate it if it fails 17.55 + 17.56 +Supported PROGRAM values: 17.57 + aclocal touch file \`aclocal.m4' 17.58 + autoconf touch file \`configure' 17.59 + autoheader touch file \`config.h.in' 17.60 + automake touch all \`Makefile.in' files 17.61 + bison create \`y.tab.[ch]', if possible, from existing .[ch] 17.62 + flex create \`lex.yy.c', if possible, from existing .c 17.63 + help2man touch the output file 17.64 + lex create \`lex.yy.c', if possible, from existing .c 17.65 + makeinfo touch the output file 17.66 + tar try tar, gnutar, gtar, then tar without non-portable flags 17.67 + yacc create \`y.tab.[ch]', if possible, from existing .[ch]" 17.68 + ;; 17.69 + 17.70 + -v|--v|--ve|--ver|--vers|--versi|--versio|--version) 17.71 + echo "missing 0.3 - GNU automake" 17.72 + ;; 17.73 + 17.74 + -*) 17.75 + echo 1>&2 "$0: Unknown \`$1' option" 17.76 + echo 1>&2 "Try \`$0 --help' for more information" 17.77 + exit 1 17.78 + ;; 17.79 + 17.80 + aclocal) 17.81 + echo 1>&2 "\ 17.82 +WARNING: \`$1' is missing on your system. You should only need it if 17.83 + you modified \`acinclude.m4' or \`configure.in'. You might want 17.84 + to install the \`Automake' and \`Perl' packages. Grab them from 17.85 + any GNU archive site." 17.86 + touch aclocal.m4 17.87 + ;; 17.88 + 17.89 + autoconf) 17.90 + echo 1>&2 "\ 17.91 +WARNING: \`$1' is missing on your system. You should only need it if 17.92 + you modified \`configure.in'. You might want to install the 17.93 + \`Autoconf' and \`GNU m4' packages. Grab them from any GNU 17.94 + archive site." 17.95 + touch configure 17.96 + ;; 17.97 + 17.98 + autoheader) 17.99 + echo 1>&2 "\ 17.100 +WARNING: \`$1' is missing on your system. You should only need it if 17.101 + you modified \`acconfig.h' or \`configure.in'. You might want 17.102 + to install the \`Autoconf' and \`GNU m4' packages. Grab them 17.103 + from any GNU archive site." 17.104 + files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' configure.in` 17.105 + test -z "$files" && files="config.h" 17.106 + touch_files= 17.107 + for f in $files; do 17.108 + case "$f" in 17.109 + *:*) touch_files="$touch_files "`echo "$f" | 17.110 + sed -e 's/^[^:]*://' -e 's/:.*//'`;; 17.111 + *) touch_files="$touch_files $f.in";; 17.112 + esac 17.113 + done 17.114 + touch $touch_files 17.115 + ;; 17.116 + 17.117 + automake) 17.118 + echo 1>&2 "\ 17.119 +WARNING: \`$1' is missing on your system. You should only need it if 17.120 + you modified \`Makefile.am', \`acinclude.m4' or \`configure.in'. 17.121 + You might want to install the \`Automake' and \`Perl' packages. 17.122 + Grab them from any GNU archive site." 17.123 + find . -type f -name Makefile.am -print | 17.124 + sed 's/\.am$/.in/' | 17.125 + while read f; do touch "$f"; done 17.126 + ;; 17.127 + 17.128 + bison|yacc) 17.129 + echo 1>&2 "\ 17.130 +WARNING: \`$1' is missing on your system. You should only need it if 17.131 + you modified a \`.y' file. You may need the \`Bison' package 17.132 + in order for those modifications to take effect. You can get 17.133 + \`Bison' from any GNU archive site." 17.134 + rm -f y.tab.c y.tab.h 17.135 + if [ $# -ne 1 ]; then 17.136 + eval LASTARG="\${$#}" 17.137 + case "$LASTARG" in 17.138 + *.y) 17.139 + SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'` 17.140 + if [ -f "$SRCFILE" ]; then 17.141 + cp "$SRCFILE" y.tab.c 17.142 + fi 17.143 + SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'` 17.144 + if [ -f "$SRCFILE" ]; then 17.145 + cp "$SRCFILE" y.tab.h 17.146 + fi 17.147 + ;; 17.148 + esac 17.149 + fi 17.150 + if [ ! -f y.tab.h ]; then 17.151 + echo >y.tab.h 17.152 + fi 17.153 + if [ ! -f y.tab.c ]; then 17.154 + echo 'main() { return 0; }' >y.tab.c 17.155 + fi 17.156 + ;; 17.157 + 17.158 + lex|flex) 17.159 + echo 1>&2 "\ 17.160 +WARNING: \`$1' is missing on your system. You should only need it if 17.161 + you modified a \`.l' file. You may need the \`Flex' package 17.162 + in order for those modifications to take effect. You can get 17.163 + \`Flex' from any GNU archive site." 17.164 + rm -f lex.yy.c 17.165 + if [ $# -ne 1 ]; then 17.166 + eval LASTARG="\${$#}" 17.167 + case "$LASTARG" in 17.168 + *.l) 17.169 + SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'` 17.170 + if [ -f "$SRCFILE" ]; then 17.171 + cp "$SRCFILE" lex.yy.c 17.172 + fi 17.173 + ;; 17.174 + esac 17.175 + fi 17.176 + if [ ! -f lex.yy.c ]; then 17.177 + echo 'main() { return 0; }' >lex.yy.c 17.178 + fi 17.179 + ;; 17.180 + 17.181 + help2man) 17.182 + echo 1>&2 "\ 17.183 +WARNING: \`$1' is missing on your system. You should only need it if 17.184 + you modified a dependency of a manual page. You may need the 17.185 + \`Help2man' package in order for those modifications to take 17.186 + effect. You can get \`Help2man' from any GNU archive site." 17.187 + 17.188 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 17.189 + if test -z "$file"; then 17.190 + file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'` 17.191 + fi 17.192 + if [ -f "$file" ]; then 17.193 + touch $file 17.194 + else 17.195 + test -z "$file" || exec >$file 17.196 + echo ".ab help2man is required to generate this page" 17.197 + exit 1 17.198 + fi 17.199 + ;; 17.200 + 17.201 + makeinfo) 17.202 + echo 1>&2 "\ 17.203 +WARNING: \`$1' is missing on your system. You should only need it if 17.204 + you modified a \`.texi' or \`.texinfo' file, or any other file 17.205 + indirectly affecting the aspect of the manual. The spurious 17.206 + call might also be the consequence of using a buggy \`make' (AIX, 17.207 + DU, IRIX). You might want to install the \`Texinfo' package or 17.208 + the \`GNU make' package. Grab either from any GNU archive site." 17.209 + file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'` 17.210 + if test -z "$file"; then 17.211 + file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'` 17.212 + file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file` 17.213 + fi 17.214 + touch $file 17.215 + ;; 17.216 + 17.217 + tar) 17.218 + shift 17.219 + if test -n "$run"; then 17.220 + echo 1>&2 "ERROR: \`tar' requires --run" 17.221 + exit 1 17.222 + fi 17.223 + 17.224 + # We have already tried tar in the generic part. 17.225 + # Look for gnutar/gtar before invocation to avoid ugly error 17.226 + # messages. 17.227 + if (gnutar --version > /dev/null 2>&1); then 17.228 + gnutar ${1+"$@"} && exit 0 17.229 + fi 17.230 + if (gtar --version > /dev/null 2>&1); then 17.231 + gtar ${1+"$@"} && exit 0 17.232 + fi 17.233 + firstarg="$1" 17.234 + if shift; then 17.235 + case "$firstarg" in 17.236 + *o*) 17.237 + firstarg=`echo "$firstarg" | sed s/o//` 17.238 + tar "$firstarg" ${1+"$@"} && exit 0 17.239 + ;; 17.240 + esac 17.241 + case "$firstarg" in 17.242 + *h*) 17.243 + firstarg=`echo "$firstarg" | sed s/h//` 17.244 + tar "$firstarg" ${1+"$@"} && exit 0 17.245 + ;; 17.246 + esac 17.247 + fi 17.248 + 17.249 + echo 1>&2 "\ 17.250 +WARNING: I can't seem to be able to run \`tar' with the given arguments. 17.251 + You may want to install GNU tar or Free paxutils, or check the 17.252 + command line arguments." 17.253 + exit 1 17.254 + ;; 17.255 + 17.256 + *) 17.257 + echo 1>&2 "\ 17.258 +WARNING: \`$1' is needed, and you do not seem to have it handy on your 17.259 + system. You might have modified some files without having the 17.260 + proper tools for further handling them. Check the \`README' file, 17.261 + it often tells you about the needed prerequirements for installing 17.262 + this package. You may also peek at any GNU archive site, in case 17.263 + some other package would contain this missing \`$1' program." 17.264 + exit 1 17.265 + ;; 17.266 +esac 17.267 + 17.268 +exit 0
18.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 18.2 +++ b/cfg/mkinstalldirs Mon Jul 29 08:53:08 2002 +0000 18.3 @@ -0,0 +1,40 @@ 18.4 +#! /bin/sh 18.5 +# mkinstalldirs --- make directory hierarchy 18.6 +# Author: Noah Friedman <friedman@prep.ai.mit.edu> 18.7 +# Created: 1993-05-16 18.8 +# Public domain 18.9 + 18.10 +# $Id$ 18.11 + 18.12 +errstatus=0 18.13 + 18.14 +for file 18.15 +do 18.16 + set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'` 18.17 + shift 18.18 + 18.19 + pathcomp= 18.20 + for d 18.21 + do 18.22 + pathcomp="$pathcomp$d" 18.23 + case "$pathcomp" in 18.24 + -* ) pathcomp=./$pathcomp ;; 18.25 + esac 18.26 + 18.27 + if test ! -d "$pathcomp"; then 18.28 + echo "mkdir $pathcomp" 18.29 + 18.30 + mkdir "$pathcomp" || lasterr=$? 18.31 + 18.32 + if test ! -d "$pathcomp"; then 18.33 + errstatus=$lasterr 18.34 + fi 18.35 + fi 18.36 + 18.37 + pathcomp="$pathcomp/" 18.38 + done 18.39 +done 18.40 + 18.41 +exit $errstatus 18.42 + 18.43 +# mkinstalldirs ends here
19.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 19.2 +++ b/config.h.in Mon Jul 29 08:53:08 2002 +0000 19.3 @@ -0,0 +1,85 @@ 19.4 +/* config.h.in. Generated from configure.in by autoheader. */ 19.5 + 19.6 +/* Define to 1 if you have the <ctype.h> header file. */ 19.7 +#undef HAVE_CTYPE_H 19.8 + 19.9 +/* Define to 1 if you have the <dirent.h> header file. */ 19.10 +#undef HAVE_DIRENT_H 19.11 + 19.12 +/* Define to 1 if you have the <dlfcn.h> header file. */ 19.13 +#undef HAVE_DLFCN_H 19.14 + 19.15 +/* Define to 1 if you have the <inttypes.h> header file. */ 19.16 +#undef HAVE_INTTYPES_H 19.17 + 19.18 +/* Define to 1 if you have the <memory.h> header file. */ 19.19 +#undef HAVE_MEMORY_H 19.20 + 19.21 +/* pthread extensions available */ 19.22 +#undef HAVE_PTHREAD 19.23 + 19.24 +/* Define to 1 if you have the <stdint.h> header file. */ 19.25 +#undef HAVE_STDINT_H 19.26 + 19.27 +/* Define to 1 if you have the <stdlib.h> header file. */ 19.28 +#undef HAVE_STDLIB_H 19.29 + 19.30 +/* Define to use BSD4.3 strncasecmp() */ 19.31 +#undef HAVE_STRCASECMP 19.32 + 19.33 +/* Define to use strcmpi() */ 19.34 +#undef HAVE_STRCMPI 19.35 + 19.36 +/* Define to 1 if you have the <strings.h> header file. */ 19.37 +#undef HAVE_STRINGS_H 19.38 + 19.39 +/* Define to 1 if you have the <string.h> header file. */ 19.40 +#undef HAVE_STRING_H 19.41 + 19.42 +/* Define to 1 if you have the <sys/stat.h> header file. */ 19.43 +#undef HAVE_SYS_STAT_H 19.44 + 19.45 +/* Define to 1 if you have the <sys/types.h> header file. */ 19.46 +#undef HAVE_SYS_TYPES_H 19.47 + 19.48 +/* Define to 1 if you have the <unistd.h> header file. */ 19.49 +#undef HAVE_UNISTD_H 19.50 + 19.51 +/* Define to 1 if you have the <windows.h> header file. */ 19.52 +#undef HAVE_WINDOWS_H 19.53 + 19.54 +/* Name of package */ 19.55 +#undef PACKAGE 19.56 + 19.57 +/* Define to the address where bug reports for this package should be sent. */ 19.58 +#undef PACKAGE_BUGREPORT 19.59 + 19.60 +/* Define to the full name of this package. */ 19.61 +#undef PACKAGE_NAME 19.62 + 19.63 +/* Define to the full name and version of this package. */ 19.64 +#undef PACKAGE_STRING 19.65 + 19.66 +/* Define to the one symbol short name of this package. */ 19.67 +#undef PACKAGE_TARNAME 19.68 + 19.69 +/* Define to the version of this package. */ 19.70 +#undef PACKAGE_VERSION 19.71 + 19.72 +/* Define to 1 if you have the ANSI C header files. */ 19.73 +#undef STDC_HEADERS 19.74 + 19.75 +/* Version number of package */ 19.76 +#undef VERSION 19.77 + 19.78 +/* define this to the libVolumeViz major version number */ 19.79 +#undef VOLUMEVIZ_MAJOR_VERSION 19.80 + 19.81 +/* define this to the libVolumeViz release version number */ 19.82 +#undef VOLUMEVIZ_MICRO_VERSION 19.83 + 19.84 +/* define this to the libVolumeViz minor version number */ 19.85 +#undef VOLUMEVIZ_MINOR_VERSION 19.86 + 19.87 +/* define this to the full libVolumeViz major.minor.micro version number */ 19.88 +#undef VOLUMEVIZ_VERSION
20.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 20.2 +++ b/configure Mon Jul 29 08:53:08 2002 +0000 20.3 @@ -0,0 +1,11361 @@ 20.4 +#! /bin/sh 20.5 +# Guess values for system-dependent variables and create Makefiles. 20.6 +# Generated by GNU Autoconf 2.53 for VolumeViz 1.0.0. 20.7 +# 20.8 +# Report bugs to <coin-bugs@coin3d.org>. 20.9 +# 20.10 +# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002 20.11 +# Free Software Foundation, Inc. 20.12 +# This configure script is free software; the Free Software Foundation 20.13 +# gives unlimited permission to copy, distribute and modify it. 20.14 + 20.15 +# Find the correct PATH separator. Usually this is `:', but 20.16 +# DJGPP uses `;' like DOS. 20.17 +if test "X${PATH_SEPARATOR+set}" != Xset; then 20.18 + UNAME=${UNAME-`uname 2>/dev/null`} 20.19 + case X$UNAME in 20.20 + *-DOS) lt_cv_sys_path_separator=';' ;; 20.21 + *) lt_cv_sys_path_separator=':' ;; 20.22 + esac 20.23 + PATH_SEPARATOR=$lt_cv_sys_path_separator 20.24 +fi 20.25 + 20.26 + 20.27 +# Check that we are running under the correct shell. 20.28 +SHELL=${CONFIG_SHELL-/bin/sh} 20.29 + 20.30 +case X$ECHO in 20.31 +X*--fallback-echo) 20.32 + # Remove one level of quotation (which was required for Make). 20.33 + ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 20.34 + ;; 20.35 +esac 20.36 + 20.37 +echo=${ECHO-echo} 20.38 +if test "X$1" = X--no-reexec; then 20.39 + # Discard the --no-reexec flag, and continue. 20.40 + shift 20.41 +elif test "X$1" = X--fallback-echo; then 20.42 + # Avoid inline document here, it may be left over 20.43 + : 20.44 +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then 20.45 + # Yippee, $echo works! 20.46 + : 20.47 +else 20.48 + # Restart under the correct shell. 20.49 + exec $SHELL "$0" --no-reexec ${1+"$@"} 20.50 +fi 20.51 + 20.52 +if test "X$1" = X--fallback-echo; then 20.53 + # used as fallback echo 20.54 + shift 20.55 + cat <<EOF 20.56 + 20.57 +EOF 20.58 + exit 0 20.59 +fi 20.60 + 20.61 +# The HP-UX ksh and POSIX shell print the target directory to stdout 20.62 +# if CDPATH is set. 20.63 +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 20.64 + 20.65 +if test -z "$ECHO"; then 20.66 +if test "X${echo_test_string+set}" != Xset; then 20.67 +# find a string as large as possible, as long as the shell can cope with it 20.68 + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 20.69 + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 20.70 + if (echo_test_string="`eval $cmd`") 2>/dev/null && 20.71 + echo_test_string="`eval $cmd`" && 20.72 + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 20.73 + then 20.74 + break 20.75 + fi 20.76 + done 20.77 +fi 20.78 + 20.79 +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 20.80 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 20.81 + test "X$echo_testing_string" = "X$echo_test_string"; then 20.82 + : 20.83 +else 20.84 + # The Solaris, AIX, and Digital Unix default echo programs unquote 20.85 + # backslashes. This makes it impossible to quote backslashes using 20.86 + # echo "$something" | sed 's/\\/\\\\/g' 20.87 + # 20.88 + # So, first we look for a working echo in the user's PATH. 20.89 + 20.90 + IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR 20.91 + for dir in $PATH /usr/ucb; do 20.92 + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 20.93 + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 20.94 + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 20.95 + test "X$echo_testing_string" = "X$echo_test_string"; then 20.96 + echo="$dir/echo" 20.97 + break 20.98 + fi 20.99 + done 20.100 + IFS="$save_ifs" 20.101 + 20.102 + if test "X$echo" = Xecho; then 20.103 + # We didn't find a better echo, so look for alternatives. 20.104 + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 20.105 + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 20.106 + test "X$echo_testing_string" = "X$echo_test_string"; then 20.107 + # This shell has a builtin print -r that does the trick. 20.108 + echo='print -r' 20.109 + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 20.110 + test "X$CONFIG_SHELL" != X/bin/ksh; then 20.111 + # If we have ksh, try running configure again with it. 20.112 + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 20.113 + export ORIGINAL_CONFIG_SHELL 20.114 + CONFIG_SHELL=/bin/ksh 20.115 + export CONFIG_SHELL 20.116 + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 20.117 + else 20.118 + # Try using printf. 20.119 + echo='printf %s\n' 20.120 + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 20.121 + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 20.122 + test "X$echo_testing_string" = "X$echo_test_string"; then 20.123 + # Cool, printf works 20.124 + : 20.125 + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 20.126 + test "X$echo_testing_string" = 'X\t' && 20.127 + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 20.128 + test "X$echo_testing_string" = "X$echo_test_string"; then 20.129 + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 20.130 + export CONFIG_SHELL 20.131 + SHELL="$CONFIG_SHELL" 20.132 + export SHELL 20.133 + echo="$CONFIG_SHELL $0 --fallback-echo" 20.134 + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 20.135 + test "X$echo_testing_string" = 'X\t' && 20.136 + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 20.137 + test "X$echo_testing_string" = "X$echo_test_string"; then 20.138 + echo="$CONFIG_SHELL $0 --fallback-echo" 20.139 + else 20.140 + # maybe with a smaller string... 20.141 + prev=: 20.142 + 20.143 + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 20.144 + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 20.145 + then 20.146 + break 20.147 + fi 20.148 + prev="$cmd" 20.149 + done 20.150 + 20.151 + if test "$prev" != 'sed 50q "$0"'; then 20.152 + echo_test_string=`eval $prev` 20.153 + export echo_test_string 20.154 + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 20.155 + else 20.156 + # Oops. We lost completely, so just stick with echo. 20.157 + echo=echo 20.158 + fi 20.159 + fi 20.160 + fi 20.161 + fi 20.162 +fi 20.163 +fi 20.164 + 20.165 +# Copy echo and quote the copy suitably for passing to libtool from 20.166 +# the Makefile, instead of quoting the original, which is used later. 20.167 +ECHO=$echo 20.168 +if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 20.169 + ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 20.170 +fi 20.171 + 20.172 + 20.173 + 20.174 +if expr a : '\(a\)' >/dev/null 2>&1; then 20.175 + as_expr=expr 20.176 +else 20.177 + as_expr=false 20.178 +fi 20.179 + 20.180 + 20.181 +## --------------------- ## 20.182 +## M4sh Initialization. ## 20.183 +## --------------------- ## 20.184 + 20.185 +# Be Bourne compatible 20.186 +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 20.187 + emulate sh 20.188 + NULLCMD=: 20.189 +elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20.190 + set -o posix 20.191 +fi 20.192 + 20.193 +# NLS nuisances. 20.194 +# Support unset when possible. 20.195 +if (FOO=FOO; unset FOO) >/dev/null 2>&1; then 20.196 + as_unset=unset 20.197 +else 20.198 + as_unset=false 20.199 +fi 20.200 + 20.201 +(set +x; test -n "`(LANG=C; export LANG) 2>&1`") && 20.202 + { $as_unset LANG || test "${LANG+set}" != set; } || 20.203 + { LANG=C; export LANG; } 20.204 +(set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && 20.205 + { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || 20.206 + { LC_ALL=C; export LC_ALL; } 20.207 +(set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && 20.208 + { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || 20.209 + { LC_TIME=C; export LC_TIME; } 20.210 +(set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && 20.211 + { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || 20.212 + { LC_CTYPE=C; export LC_CTYPE; } 20.213 +(set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && 20.214 + { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || 20.215 + { LANGUAGE=C; export LANGUAGE; } 20.216 +(set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && 20.217 + { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || 20.218 + { LC_COLLATE=C; export LC_COLLATE; } 20.219 +(set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && 20.220 + { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || 20.221 + { LC_NUMERIC=C; export LC_NUMERIC; } 20.222 +(set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && 20.223 + { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || 20.224 + { LC_MESSAGES=C; export LC_MESSAGES; } 20.225 + 20.226 + 20.227 +# Name of the executable. 20.228 +as_me=`(basename "$0") 2>/dev/null || 20.229 +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20.230 + X"$0" : 'X\(//\)$' \| \ 20.231 + X"$0" : 'X\(/\)$' \| \ 20.232 + . : '\(.\)' 2>/dev/null || 20.233 +echo X/"$0" | 20.234 + sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 20.235 + /^X\/\(\/\/\)$/{ s//\1/; q; } 20.236 + /^X\/\(\/\).*/{ s//\1/; q; } 20.237 + s/.*/./; q'` 20.238 + 20.239 +# PATH needs CR, and LINENO needs CR and PATH. 20.240 +# Avoid depending upon Character Ranges. 20.241 +as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20.242 +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20.243 +as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20.244 +as_cr_digits='0123456789' 20.245 +as_cr_alnum=$as_cr_Letters$as_cr_digits 20.246 + 20.247 +# The user is always right. 20.248 +if test "${PATH_SEPARATOR+set}" != set; then 20.249 + echo "#! /bin/sh" >conftest.sh 20.250 + echo "exit 0" >>conftest.sh 20.251 + chmod +x conftest.sh 20.252 + if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then 20.253 + PATH_SEPARATOR=';' 20.254 + else 20.255 + PATH_SEPARATOR=: 20.256 + fi 20.257 + rm -f conftest.sh 20.258 +fi 20.259 + 20.260 + 20.261 + as_lineno_1=$LINENO 20.262 + as_lineno_2=$LINENO 20.263 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20.264 + test "x$as_lineno_1" != "x$as_lineno_2" && 20.265 + test "x$as_lineno_3" = "x$as_lineno_2" || { 20.266 + # Find who we are. Look in the path if we contain no path at all 20.267 + # relative or not. 20.268 + case $0 in 20.269 + *[\\/]* ) as_myself=$0 ;; 20.270 + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20.271 +for as_dir in $PATH 20.272 +do 20.273 + IFS=$as_save_IFS 20.274 + test -z "$as_dir" && as_dir=. 20.275 + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20.276 +done 20.277 + 20.278 + ;; 20.279 + esac 20.280 + # We did not find ourselves, most probably we were run as `sh COMMAND' 20.281 + # in which case we are not to be found in the path. 20.282 + if test "x$as_myself" = x; then 20.283 + as_myself=$0 20.284 + fi 20.285 + if test ! -f "$as_myself"; then 20.286 + { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 20.287 + { (exit 1); exit 1; }; } 20.288 + fi 20.289 + case $CONFIG_SHELL in 20.290 + '') 20.291 + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20.292 +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 20.293 +do 20.294 + IFS=$as_save_IFS 20.295 + test -z "$as_dir" && as_dir=. 20.296 + for as_base in sh bash ksh sh5; do 20.297 + case $as_dir in 20.298 + /*) 20.299 + if ("$as_dir/$as_base" -c ' 20.300 + as_lineno_1=$LINENO 20.301 + as_lineno_2=$LINENO 20.302 + as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 20.303 + test "x$as_lineno_1" != "x$as_lineno_2" && 20.304 + test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 20.305 + CONFIG_SHELL=$as_dir/$as_base 20.306 + export CONFIG_SHELL 20.307 + exec "$CONFIG_SHELL" "$0" ${1+"$@"} 20.308 + fi;; 20.309 + esac 20.310 + done 20.311 +done 20.312 +;; 20.313 + esac 20.314 + 20.315 + # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 20.316 + # uniformly replaced by the line number. The first 'sed' inserts a 20.317 + # line-number line before each line; the second 'sed' does the real 20.318 + # work. The second script uses 'N' to pair each line-number line 20.319 + # with the numbered line, and appends trailing '-' during 20.320 + # substitution so that $LINENO is not a special case at line end. 20.321 + # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 20.322 + # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 20.323 + sed '=' <$as_myself | 20.324 + sed ' 20.325 + N 20.326 + s,$,-, 20.327 + : loop 20.328 + s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 20.329 + t loop 20.330 + s,-$,, 20.331 + s,^['$as_cr_digits']*\n,, 20.332 + ' >$as_me.lineno && 20.333 + chmod +x $as_me.lineno || 20.334 + { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 20.335 + { (exit 1); exit 1; }; } 20.336 + 20.337 + # Don't try to exec as it changes $[0], causing all sort of problems 20.338 + # (the dirname of $[0] is not the place where we might find the 20.339 + # original and so on. Autoconf is especially sensible to this). 20.340 + . ./$as_me.lineno 20.341 + # Exit status is that of the last command. 20.342 + exit 20.343 +} 20.344 + 20.345 + 20.346 +case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 20.347 + *c*,-n*) ECHO_N= ECHO_C=' 20.348 +' ECHO_T=' ' ;; 20.349 + *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 20.350 + *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 20.351 +esac 20.352 + 20.353 +if expr a : '\(a\)' >/dev/null 2>&1; then 20.354 + as_expr=expr 20.355 +else 20.356 + as_expr=false 20.357 +fi 20.358 + 20.359 +rm -f conf$$ conf$$.exe conf$$.file 20.360 +echo >conf$$.file 20.361 +if ln -s conf$$.file conf$$ 2>/dev/null; then 20.362 + # We could just check for DJGPP; but this test a) works b) is more generic 20.363 + # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 20.364 + if test -f conf$$.exe; then 20.365 + # Don't use ln at all; we don't have any links 20.366 + as_ln_s='cp -p' 20.367 + else 20.368 + as_ln_s='ln -s' 20.369 + fi 20.370 +elif ln conf$$.file conf$$ 2>/dev/null; then 20.371 + as_ln_s=ln 20.372 +else 20.373 + as_ln_s='cp -p' 20.374 +fi 20.375 +rm -f conf$$ conf$$.exe conf$$.file 20.376 + 20.377 +as_executable_p="test -f" 20.378 + 20.379 +# Sed expression to map a string onto a valid CPP name. 20.380 +as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" 20.381 + 20.382 +# Sed expression to map a string onto a valid variable name. 20.383 +as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" 20.384 + 20.385 + 20.386 +# IFS 20.387 +# We need space, tab and new line, in precisely that order. 20.388 +as_nl=' 20.389 +' 20.390 +IFS=" $as_nl" 20.391 + 20.392 +# CDPATH. 20.393 +$as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } 20.394 + 20.395 + 20.396 +# Name of the host. 20.397 +# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 20.398 +# so uname gets run too. 20.399 +ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 20.400 + 20.401 +exec 6>&1 20.402 + 20.403 +# 20.404 +# Initializations. 20.405 +# 20.406 +ac_default_prefix=/usr/local 20.407 +cross_compiling=no 20.408 +subdirs= 20.409 +MFLAGS= 20.410 +MAKEFLAGS= 20.411 +SHELL=${CONFIG_SHELL-/bin/sh} 20.412 + 20.413 +# Maximum number of lines to put in a shell here document. 20.414 +# This variable seems obsolete. It should probably be removed, and 20.415 +# only ac_max_sed_lines should be used. 20.416 +: ${ac_max_here_lines=38} 20.417 + 20.418 +# Identity of this package. 20.419 +PACKAGE_NAME='VolumeViz' 20.420 +PACKAGE_TARNAME='volumeviz' 20.421 +PACKAGE_VERSION='1.0.0' 20.422 +PACKAGE_STRING='VolumeViz 1.0.0' 20.423 +PACKAGE_BUGREPORT='coin-bugs@coin3d.org' 20.424 + 20.425 +ac_unique_file="lib/VolumeViz/nodes/SoVolumeData.cpp" 20.426 +# Factoring default headers for most tests. 20.427 +ac_includes_default="\ 20.428 +#include <stdio.h> 20.429 +#if HAVE_SYS_TYPES_H 20.430 +# include <sys/types.h> 20.431 +#endif 20.432 +#if HAVE_SYS_STAT_H 20.433 +# include <sys/stat.h> 20.434 +#endif 20.435 +#if STDC_HEADERS 20.436 +# include <stdlib.h> 20.437 +# include <stddef.h> 20.438 +#else 20.439 +# if HAVE_STDLIB_H 20.440 +# include <stdlib.h> 20.441 +# endif 20.442 +#endif 20.443 +#if HAVE_STRING_H 20.444 +# if !STDC_HEADERS && HAVE_MEMORY_H 20.445 +# include <memory.h> 20.446 +# endif 20.447 +# include <string.h> 20.448 +#endif 20.449 +#if HAVE_STRINGS_H 20.450 +# include <strings.h> 20.451 +#endif 20.452 +#if HAVE_INTTYPES_H 20.453 +# include <inttypes.h> 20.454 +#else 20.455 +# if HAVE_STDINT_H 20.456 +# include <stdint.h> 20.457 +# endif 20.458 +#endif 20.459 +#if HAVE_UNISTD_H 20.460 +# include <unistd.h> 20.461 +#endif" 20.462 + 20.463 + 20.464 +# Initialize some variables set by options. 20.465 +ac_init_help= 20.466 +ac_init_version=false 20.467 +# The variables have the same names as the options, with 20.468 +# dashes changed to underlines. 20.469 +cache_file=/dev/null 20.470 +exec_prefix=NONE 20.471 +no_create= 20.472 +no_recursion= 20.473 +prefix=NONE 20.474 +program_prefix=NONE 20.475 +program_suffix=NONE 20.476 +program_transform_name=s,x,x, 20.477 +silent= 20.478 +site= 20.479 +srcdir= 20.480 +verbose= 20.481 +x_includes=NONE 20.482 +x_libraries=NONE 20.483 + 20.484 +# Installation directory options. 20.485 +# These are left unexpanded so users can "make install exec_prefix=/foo" 20.486 +# and all the variables that are supposed to be based on exec_prefix 20.487 +# by default will actually change. 20.488 +# Use braces instead of parens because sh, perl, etc. also accept them. 20.489 +bindir='${exec_prefix}/bin' 20.490 +sbindir='${exec_prefix}/sbin' 20.491 +libexecdir='${exec_prefix}/libexec' 20.492 +datadir='${prefix}/share' 20.493 +sysconfdir='${prefix}/etc' 20.494 +sharedstatedir='${prefix}/com' 20.495 +localstatedir='${prefix}/var' 20.496 +libdir='${exec_prefix}/lib' 20.497 +includedir='${prefix}/include' 20.498 +oldincludedir='/usr/include' 20.499 +infodir='${prefix}/info' 20.500 +mandir='${prefix}/man' 20.501 + 20.502 +ac_prev= 20.503 +for ac_option 20.504 +do 20.505 + # If the previous option needs an argument, assign it. 20.506 + if test -n "$ac_prev"; then 20.507 + eval "$ac_prev=\$ac_option" 20.508 + ac_prev= 20.509 + continue 20.510 + fi 20.511 + 20.512 + ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 20.513 + 20.514 + # Accept the important Cygnus configure options, so we can diagnose typos. 20.515 + 20.516 + case $ac_option in 20.517 + 20.518 + -bindir | --bindir | --bindi | --bind | --bin | --bi) 20.519 + ac_prev=bindir ;; 20.520 + -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 20.521 + bindir=$ac_optarg ;; 20.522 + 20.523 + -build | --build | --buil | --bui | --bu) 20.524 + ac_prev=build_alias ;; 20.525 + -build=* | --build=* | --buil=* | --bui=* | --bu=*) 20.526 + build_alias=$ac_optarg ;; 20.527 + 20.528 + -cache-file | --cache-file | --cache-fil | --cache-fi \ 20.529 + | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 20.530 + ac_prev=cache_file ;; 20.531 + -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 20.532 + | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 20.533 + cache_file=$ac_optarg ;; 20.534 + 20.535 + --config-cache | -C) 20.536 + cache_file=config.cache ;; 20.537 + 20.538 + -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 20.539 + ac_prev=datadir ;; 20.540 + -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 20.541 + | --da=*) 20.542 + datadir=$ac_optarg ;; 20.543 + 20.544 + -disable-* | --disable-*) 20.545 + ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 20.546 + # Reject names that are not valid shell variable names. 20.547 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 20.548 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 20.549 + { (exit 1); exit 1; }; } 20.550 + ac_feature=`echo $ac_feature | sed 's/-/_/g'` 20.551 + eval "enable_$ac_feature=no" ;; 20.552 + 20.553 + -enable-* | --enable-*) 20.554 + ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 20.555 + # Reject names that are not valid shell variable names. 20.556 + expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 20.557 + { echo "$as_me: error: invalid feature name: $ac_feature" >&2 20.558 + { (exit 1); exit 1; }; } 20.559 + ac_feature=`echo $ac_feature | sed 's/-/_/g'` 20.560 + case $ac_option in 20.561 + *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 20.562 + *) ac_optarg=yes ;; 20.563 + esac 20.564 + eval "enable_$ac_feature='$ac_optarg'" ;; 20.565 + 20.566 + -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 20.567 + | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 20.568 + | --exec | --exe | --ex) 20.569 + ac_prev=exec_prefix ;; 20.570 + -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 20.571 + | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 20.572 + | --exec=* | --exe=* | --ex=*) 20.573 + exec_prefix=$ac_optarg ;; 20.574 + 20.575 + -gas | --gas | --ga | --g) 20.576 + # Obsolete; use --with-gas. 20.577 + with_gas=yes ;; 20.578 + 20.579 + -help | --help | --hel | --he | -h) 20.580 + ac_init_help=long ;; 20.581 + -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 20.582 + ac_init_help=recursive ;; 20.583 + -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 20.584 + ac_init_help=short ;; 20.585 + 20.586 + -host | --host | --hos | --ho) 20.587 + ac_prev=host_alias ;; 20.588 + -host=* | --host=* | --hos=* | --ho=*) 20.589 + host_alias=$ac_optarg ;; 20.590 + 20.591 + -includedir | --includedir | --includedi | --included | --include \ 20.592 + | --includ | --inclu | --incl | --inc) 20.593 + ac_prev=includedir ;; 20.594 + -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 20.595 + | --includ=* | --inclu=* | --incl=* | --inc=*) 20.596 + includedir=$ac_optarg ;; 20.597 + 20.598 + -infodir | --infodir | --infodi | --infod | --info | --inf) 20.599 + ac_prev=infodir ;; 20.600 + -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 20.601 + infodir=$ac_optarg ;; 20.602 + 20.603 + -libdir | --libdir | --libdi | --libd) 20.604 + ac_prev=libdir ;; 20.605 + -libdir=* | --libdir=* | --libdi=* | --libd=*) 20.606 + libdir=$ac_optarg ;; 20.607 + 20.608 + -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 20.609 + | --libexe | --libex | --libe) 20.610 + ac_prev=libexecdir ;; 20.611 + -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 20.612 + | --libexe=* | --libex=* | --libe=*) 20.613 + libexecdir=$ac_optarg ;; 20.614 + 20.615 + -localstatedir | --localstatedir | --localstatedi | --localstated \ 20.616 + | --localstate | --localstat | --localsta | --localst \ 20.617 + | --locals | --local | --loca | --loc | --lo) 20.618 + ac_prev=localstatedir ;; 20.619 + -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 20.620 + | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 20.621 + | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 20.622 + localstatedir=$ac_optarg ;; 20.623 + 20.624 + -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 20.625 + ac_prev=mandir ;; 20.626 + -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 20.627 + mandir=$ac_optarg ;; 20.628 + 20.629 + -nfp | --nfp | --nf) 20.630 + # Obsolete; use --without-fp. 20.631 + with_fp=no ;; 20.632 + 20.633 + -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 20.634 + | --no-cr | --no-c | -n) 20.635 + no_create=yes ;; 20.636 + 20.637 + -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 20.638 + | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 20.639 + no_recursion=yes ;; 20.640 + 20.641 + -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 20.642 + | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 20.643 + | --oldin | --oldi | --old | --ol | --o) 20.644 + ac_prev=oldincludedir ;; 20.645 + -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 20.646 + | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 20.647 + | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 20.648 + oldincludedir=$ac_optarg ;; 20.649 + 20.650 + -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 20.651 + ac_prev=prefix ;; 20.652 + -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 20.653 + prefix=$ac_optarg ;; 20.654 + 20.655 + -program-prefix | --program-prefix | --program-prefi | --program-pref \ 20.656 + | --program-pre | --program-pr | --program-p) 20.657 + ac_prev=program_prefix ;; 20.658 + -program-prefix=* | --program-prefix=* | --program-prefi=* \ 20.659 + | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 20.660 + program_prefix=$ac_optarg ;; 20.661 + 20.662 + -program-suffix | --program-suffix | --program-suffi | --program-suff \ 20.663 + | --program-suf | --program-su | --program-s) 20.664 + ac_prev=program_suffix ;; 20.665 + -program-suffix=* | --program-suffix=* | --program-suffi=* \ 20.666 + | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 20.667 + program_suffix=$ac_optarg ;; 20.668 + 20.669 + -program-transform-name | --program-transform-name \ 20.670 + | --program-transform-nam | --program-transform-na \ 20.671 + | --program-transform-n | --program-transform- \ 20.672 + | --program-transform | --program-transfor \ 20.673 + | --program-transfo | --program-transf \ 20.674 + | --program-trans | --program-tran \ 20.675 + | --progr-tra | --program-tr | --program-t) 20.676 + ac_prev=program_transform_name ;; 20.677 + -program-transform-name=* | --program-transform-name=* \ 20.678 + | --program-transform-nam=* | --program-transform-na=* \ 20.679 + | --program-transform-n=* | --program-transform-=* \ 20.680 + | --program-transform=* | --program-transfor=* \ 20.681 + | --program-transfo=* | --program-transf=* \ 20.682 + | --program-trans=* | --program-tran=* \ 20.683 + | --progr-tra=* | --program-tr=* | --program-t=*) 20.684 + program_transform_name=$ac_optarg ;; 20.685 + 20.686 + -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20.687 + | -silent | --silent | --silen | --sile | --sil) 20.688 + silent=yes ;; 20.689 + 20.690 + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 20.691 + ac_prev=sbindir ;; 20.692 + -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 20.693 + | --sbi=* | --sb=*) 20.694 + sbindir=$ac_optarg ;; 20.695 + 20.696 + -sharedstatedir | --sharedstatedir | --sharedstatedi \ 20.697 + | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 20.698 + | --sharedst | --shareds | --shared | --share | --shar \