Merge lp:~rodsmith/opencompute/dcmitool into lp:opencompute
- dcmitool
- Merge into facebook-opencompute
Proposed by
Rod Smith
Status: | Rejected |
---|---|
Rejected by: | Jeff Lane |
Proposed branch: | lp:~rodsmith/opencompute/dcmitool |
Merge into: | lp:opencompute |
Diff against target: |
124760 lines (+123735/-0) 200 files modified
Intel-BSD-license.txt (+13/-0) ReadMe.txt (+116/-0) dcmitool-1.8.10/ChangeLog (+330/-0) dcmitool-1.8.10/Makefile.am (+81/-0) dcmitool-1.8.10/Makefile.in (+722/-0) dcmitool-1.8.10/aclocal.m4 (+7022/-0) dcmitool-1.8.10/authors (+5/-0) dcmitool-1.8.10/build_all.bat (+169/-0) dcmitool-1.8.10/build_all.sh (+40/-0) dcmitool-1.8.10/config.guess (+1420/-0) dcmitool-1.8.10/config.h (+228/-0) dcmitool-1.8.10/config.h.in (+227/-0) dcmitool-1.8.10/config.status (+1285/-0) dcmitool-1.8.10/config.sub (+1793/-0) dcmitool-1.8.10/configure (+22545/-0) dcmitool-1.8.10/configure.in (+549/-0) dcmitool-1.8.10/contrib/Makefile.am (+38/-0) dcmitool-1.8.10/contrib/Makefile.in (+407/-0) dcmitool-1.8.10/contrib/bmclanconf (+308/-0) dcmitool-1.8.10/contrib/collect_data.sh (+29/-0) dcmitool-1.8.10/contrib/create_rrds.sh (+40/-0) dcmitool-1.8.10/contrib/create_webpage.sh (+211/-0) dcmitool-1.8.10/contrib/create_webpage_compact.sh (+151/-0) dcmitool-1.8.10/contrib/ipmi.init.basic (+17/-0) dcmitool-1.8.10/contrib/ipmi.init.redhat (+222/-0) dcmitool-1.8.10/contrib/oem_ibm_sel_map (+229/-0) dcmitool-1.8.10/contrib/readme (+95/-0) dcmitool-1.8.10/control/Makefile.am (+37/-0) dcmitool-1.8.10/control/Makefile.in (+388/-0) dcmitool-1.8.10/control/ipmitool.spec (+343/-0) dcmitool-1.8.10/control/ipmitool.spec.in (+343/-0) dcmitool-1.8.10/control/pkginfo (+10/-0) dcmitool-1.8.10/control/pkginfo.in (+10/-0) dcmitool-1.8.10/control/prototype (+10/-0) dcmitool-1.8.10/control/prototype.in (+10/-0) dcmitool-1.8.10/control/rpmmacros (+12/-0) dcmitool-1.8.10/control/rpmmacros.in (+12/-0) dcmitool-1.8.10/control/rpmrc (+8/-0) dcmitool-1.8.10/copying (+30/-0) dcmitool-1.8.10/cw.txt (+209/-0) dcmitool-1.8.10/debian-orig/changelog (+257/-0) dcmitool-1.8.10/debian-orig/control (+28/-0) dcmitool-1.8.10/debian-orig/copyright (+36/-0) dcmitool-1.8.10/debian-orig/dirs (+4/-0) dcmitool-1.8.10/debian-orig/docs (+2/-0) dcmitool-1.8.10/debian-orig/rules (+117/-0) dcmitool-1.8.10/debian/changelog (+5/-0) dcmitool-1.8.10/debian/compat (+1/-0) dcmitool-1.8.10/debian/control (+14/-0) dcmitool-1.8.10/debian/copyright (+30/-0) dcmitool-1.8.10/debian/patches/01_man_file_name.diff (+13/-0) dcmitool-1.8.10/debian/patches/02_ignore_nonexistent_doc_files.diff (+13/-0) dcmitool-1.8.10/debian/patches/series (+3/-0) dcmitool-1.8.10/debian/rules (+16/-0) dcmitool-1.8.10/depcomp (+529/-0) dcmitool-1.8.10/doc/Makefile.am (+36/-0) dcmitool-1.8.10/doc/Makefile.in (+473/-0) dcmitool-1.8.10/doc/dcmitool.1 (+1099/-0) dcmitool-1.8.10/include/Makefile.am (+34/-0) dcmitool-1.8.10/include/Makefile.in (+528/-0) dcmitool-1.8.10/include/ipmitool/Makefile.am (+41/-0) dcmitool-1.8.10/include/ipmitool/Makefile.in (+428/-0) dcmitool-1.8.10/include/ipmitool/bswap.h (+53/-0) dcmitool-1.8.10/include/ipmitool/dcmi.h (+133/-0) dcmitool-1.8.10/include/ipmitool/helper.h (+111/-0) dcmitool-1.8.10/include/ipmitool/ipmi.h (+275/-0) dcmitool-1.8.10/include/ipmitool/ipmi_cc.h (+76/-0) dcmitool-1.8.10/include/ipmitool/ipmi_channel.h (+229/-0) dcmitool-1.8.10/include/ipmitool/ipmi_chassis.h (+50/-0) dcmitool-1.8.10/include/ipmitool/ipmi_constants.h (+137/-0) dcmitool-1.8.10/include/ipmitool/ipmi_ekanalyzer.h (+68/-0) dcmitool-1.8.10/include/ipmitool/ipmi_entity.h (+47/-0) dcmitool-1.8.10/include/ipmitool/ipmi_event.h (+60/-0) dcmitool-1.8.10/include/ipmitool/ipmi_firewall.h (+106/-0) dcmitool-1.8.10/include/ipmitool/ipmi_fru.h (+466/-0) dcmitool-1.8.10/include/ipmitool/ipmi_fwum.h (+42/-0) dcmitool-1.8.10/include/ipmitool/ipmi_hpmfwupg.h (+41/-0) dcmitool-1.8.10/include/ipmitool/ipmi_intf.h (+210/-0) dcmitool-1.8.10/include/ipmitool/ipmi_isol.h (+57/-0) dcmitool-1.8.10/include/ipmitool/ipmi_kontronoem.h (+45/-0) dcmitool-1.8.10/include/ipmitool/ipmi_lanp.h (+137/-0) dcmitool-1.8.10/include/ipmitool/ipmi_main.h (+42/-0) dcmitool-1.8.10/include/ipmitool/ipmi_mc.h (+88/-0) dcmitool-1.8.10/include/ipmitool/ipmi_oem.h (+47/-0) dcmitool-1.8.10/include/ipmitool/ipmi_pef.h (+784/-0) dcmitool-1.8.10/include/ipmitool/ipmi_picmg.h (+177/-0) dcmitool-1.8.10/include/ipmitool/ipmi_raw.h (+41/-0) dcmitool-1.8.10/include/ipmitool/ipmi_sdr.h (+826/-0) dcmitool-1.8.10/include/ipmitool/ipmi_sel.h (+616/-0) dcmitool-1.8.10/include/ipmitool/ipmi_sensor.h (+75/-0) dcmitool-1.8.10/include/ipmitool/ipmi_session.h (+125/-0) dcmitool-1.8.10/include/ipmitool/ipmi_sol.h (+84/-0) dcmitool-1.8.10/include/ipmitool/ipmi_strings.h (+64/-0) dcmitool-1.8.10/include/ipmitool/ipmi_sunoem.h (+57/-0) dcmitool-1.8.10/include/ipmitool/ipmi_tsol.h (+46/-0) dcmitool-1.8.10/include/ipmitool/ipmi_user.h (+89/-0) dcmitool-1.8.10/include/ipmitool/log.h (+63/-0) dcmitool-1.8.10/install-sh (+323/-0) dcmitool-1.8.10/ipmitool.spec (+343/-0) dcmitool-1.8.10/lib/Makefile.am (+47/-0) dcmitool-1.8.10/lib/Makefile.in (+529/-0) dcmitool-1.8.10/lib/dcmi.c (+2011/-0) dcmitool-1.8.10/lib/dimm_spd.c (+827/-0) dcmitool-1.8.10/lib/helper.c (+461/-0) dcmitool-1.8.10/lib/ipmi_channel.c (+889/-0) dcmitool-1.8.10/lib/ipmi_chassis.c (+363/-0) dcmitool-1.8.10/lib/ipmi_ekanalyzer.c (+4025/-0) dcmitool-1.8.10/lib/ipmi_event.c (+637/-0) dcmitool-1.8.10/lib/ipmi_firewall.c (+1136/-0) dcmitool-1.8.10/lib/ipmi_fru.c (+3037/-0) dcmitool-1.8.10/lib/ipmi_fwum.c (+1624/-0) dcmitool-1.8.10/lib/ipmi_hpmfwupg.c (+3394/-0) dcmitool-1.8.10/lib/ipmi_isol.c (+828/-0) dcmitool-1.8.10/lib/ipmi_kontronoem.c (+682/-0) dcmitool-1.8.10/lib/ipmi_lanp.c (+1284/-0) dcmitool-1.8.10/lib/ipmi_main.c (+662/-0) dcmitool-1.8.10/lib/ipmi_mc.c (+253/-0) dcmitool-1.8.10/lib/ipmi_oem.c (+160/-0) dcmitool-1.8.10/lib/ipmi_pef.c (+872/-0) dcmitool-1.8.10/lib/ipmi_picmg.c (+1571/-0) dcmitool-1.8.10/lib/ipmi_raw.c (+137/-0) dcmitool-1.8.10/lib/ipmi_sdr.c (+3865/-0) dcmitool-1.8.10/lib/ipmi_sdradd.c (+413/-0) dcmitool-1.8.10/lib/ipmi_sel.c (+1873/-0) dcmitool-1.8.10/lib/ipmi_sensor.c (+651/-0) dcmitool-1.8.10/lib/ipmi_session.c (+452/-0) dcmitool-1.8.10/lib/ipmi_sol.c (+2138/-0) dcmitool-1.8.10/lib/ipmi_strings.c (+419/-0) dcmitool-1.8.10/lib/ipmi_sunoem.c (+849/-0) dcmitool-1.8.10/lib/ipmi_tsol.c (+588/-0) dcmitool-1.8.10/lib/ipmi_user.c (+772/-0) dcmitool-1.8.10/lib/log.c (+154/-0) dcmitool-1.8.10/libtool (+7147/-0) dcmitool-1.8.10/ltmain.sh (+6496/-0) dcmitool-1.8.10/missing (+357/-0) dcmitool-1.8.10/readme (+278/-0) dcmitool-1.8.10/src/Makefile.am (+39/-0) dcmitool-1.8.10/src/Makefile.in (+623/-0) dcmitool-1.8.10/src/ipmishell.c (+432/-0) dcmitool-1.8.10/src/ipmitool.c (+107/-0) dcmitool-1.8.10/src/plugins/Makefile.am (+42/-0) dcmitool-1.8.10/src/plugins/Makefile.in (+599/-0) dcmitool-1.8.10/src/plugins/bmc/Makefile.am (+41/-0) dcmitool-1.8.10/src/plugins/bmc/Makefile.in (+488/-0) dcmitool-1.8.10/src/plugins/bmc/bmc.c (+345/-0) dcmitool-1.8.10/src/plugins/bmc/bmc.h (+52/-0) dcmitool-1.8.10/src/plugins/bmc/bmc_intf.h (+207/-0) dcmitool-1.8.10/src/plugins/free/Makefile.am (+9/-0) dcmitool-1.8.10/src/plugins/free/Makefile.in (+456/-0) dcmitool-1.8.10/src/plugins/free/free.c (+274/-0) dcmitool-1.8.10/src/plugins/idc-hi/Makefile.am (+39/-0) dcmitool-1.8.10/src/plugins/idc-hi/Makefile.in (+486/-0) dcmitool-1.8.10/src/plugins/idc-hi/idchi.c (+129/-0) dcmitool-1.8.10/src/plugins/idc-hi/idchiapi.c (+2058/-0) dcmitool-1.8.10/src/plugins/idc-hi/idchiapi.h (+662/-0) dcmitool-1.8.10/src/plugins/imb/Makefile.am (+39/-0) dcmitool-1.8.10/src/plugins/imb/Makefile.in (+486/-0) dcmitool-1.8.10/src/plugins/imb/imb.c (+129/-0) dcmitool-1.8.10/src/plugins/imb/imbapi.c (+2081/-0) dcmitool-1.8.10/src/plugins/imb/imbapi.h (+660/-0) dcmitool-1.8.10/src/plugins/ipmi_intf.c (+300/-0) dcmitool-1.8.10/src/plugins/lan/Makefile.am (+39/-0) dcmitool-1.8.10/src/plugins/lan/Makefile.in (+487/-0) dcmitool-1.8.10/src/plugins/lan/asf.h (+69/-0) dcmitool-1.8.10/src/plugins/lan/auth.c (+220/-0) dcmitool-1.8.10/src/plugins/lan/auth.h (+40/-0) dcmitool-1.8.10/src/plugins/lan/lan.c (+2003/-0) dcmitool-1.8.10/src/plugins/lan/lan.h (+41/-0) dcmitool-1.8.10/src/plugins/lan/md5.c (+381/-0) dcmitool-1.8.10/src/plugins/lan/md5.h (+91/-0) dcmitool-1.8.10/src/plugins/lan/rmcp.h (+87/-0) dcmitool-1.8.10/src/plugins/lanplus/Makefile.am (+45/-0) dcmitool-1.8.10/src/plugins/lanplus/Makefile.in (+497/-0) dcmitool-1.8.10/src/plugins/lanplus/asf.h (+69/-0) dcmitool-1.8.10/src/plugins/lanplus/lanplus.c (+3731/-0) dcmitool-1.8.10/src/plugins/lanplus/lanplus.h (+129/-0) dcmitool-1.8.10/src/plugins/lanplus/lanplus_crypt.c (+920/-0) dcmitool-1.8.10/src/plugins/lanplus/lanplus_crypt.h (+75/-0) dcmitool-1.8.10/src/plugins/lanplus/lanplus_crypt_impl.c (+296/-0) dcmitool-1.8.10/src/plugins/lanplus/lanplus_crypt_impl.h (+66/-0) dcmitool-1.8.10/src/plugins/lanplus/lanplus_dump.c (+204/-0) dcmitool-1.8.10/src/plugins/lanplus/lanplus_dump.h (+45/-0) dcmitool-1.8.10/src/plugins/lanplus/lanplus_strings.c (+39/-0) dcmitool-1.8.10/src/plugins/lanplus/rmcp.h (+76/-0) dcmitool-1.8.10/src/plugins/lipmi/Makefile.am (+39/-0) dcmitool-1.8.10/src/plugins/lipmi/Makefile.in (+485/-0) dcmitool-1.8.10/src/plugins/lipmi/lipmi.c (+127/-0) dcmitool-1.8.10/src/plugins/open/Makefile.am (+39/-0) dcmitool-1.8.10/src/plugins/open/Makefile.in (+485/-0) dcmitool-1.8.10/src/plugins/open/open.c (+329/-0) dcmitool-1.8.10/src/plugins/open/open.h (+110/-0) dcmitool-1.8.10/stamp-h1 (+1/-0) debian-sams/changelog (+14/-0) debian-sams/compat (+1/-0) debian-sams/control (+15/-0) debian-sams/copyright (+30/-0) debian-sams/postinst (+31/-0) debian-sams/prerm (+30/-0) debian-sams/rules (+30/-0) debian-sams/source/format (+1/-0) |
To merge this branch: | bzr merge lp:~rodsmith/opencompute/dcmitool |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jeff Lane | Disapprove | ||
Review via email: mp+208375@code.launchpad.net |
Commit message
Description of the change
Source-based version of dcmitool rather than the original binary blob.
To post a comment you must log in.
Revision history for this message
Jeff Lane (bladernr) wrote : | # |
doh... was merged elsewhere and I forgot.
review:
Disapprove
Unmerged revisions
- 12. By Rod Smith
-
Further cleaning-up of Debian package issues
- 11. By Rod Smith
-
Renamed Samantha's original debian directory to avoid confusion; should probably be deleted or contents merged with my new one.
- 10. By Rod Smith
-
Actually applied the patches
- 9. By Rod Smith
-
Rearrangment and Debian patches
- 8. By Rod Smith
-
Attempts to get Debian packaging working.
- 7. By Rod Smith
-
Removed binary blob; added source code
- 6. By Samantha Jian-Pielak
-
add debian/postinst, debian/prerm for the libcrypto.so workaround.
- 5. By Samantha Jian-Pielak
-
remove shlibs from control because the lintian still presents.
- 4. By Samantha Jian-Pielak
-
add shlibs, and misc depends in debian/control
- 3. By Samantha Jian-Pielak
-
initial commit of debian packaging.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added file 'Intel-BSD-license.txt' |
2 | --- Intel-BSD-license.txt 1970-01-01 00:00:00 +0000 |
3 | +++ Intel-BSD-license.txt 2014-02-26 13:52:23 +0000 |
4 | @@ -0,0 +1,13 @@ |
5 | +/* |
6 | +Copyright (c) 2010, Intel Corporation |
7 | +All rights reserved. |
8 | + |
9 | +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: |
10 | + |
11 | + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. |
12 | + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. |
13 | + * Neither the name of Intel Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. |
14 | + |
15 | +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
16 | +*/ |
17 | + |
18 | |
19 | === added file 'ReadMe.txt' |
20 | --- ReadMe.txt 1970-01-01 00:00:00 +0000 |
21 | +++ ReadMe.txt 2014-02-26 13:52:23 +0000 |
22 | @@ -0,0 +1,116 @@ |
23 | +======================================================== |
24 | + CONSOLE APPLICATION : Dcmitool Overview |
25 | +======================================================== |
26 | + |
27 | +Dcmitool is a command line application based on IPMItool 1.8.10. |
28 | +that has been streamlined to support just the IPMI and DCMI commands required by the DCMI specification. |
29 | +Please see http://www.intel.com/technology/product/DCMI/Dcmitool-conditions.htm. |
30 | + |
31 | +The command set is expanded to include next generation DCMI features to accomplish the following: |
32 | +1. Asset management |
33 | +2. Additional DIMM Thermal sensor support |
34 | +3. Discovery |
35 | +4. Boot Control |
36 | +5. Thermal Control |
37 | + |
38 | +It is a host based tool to send DCMI commands over the IDC-HI interface. |
39 | +Remote tool to send DCMI commands OOB. |
40 | + |
41 | + |
42 | +Build instructions |
43 | + |
44 | +Linux Compilation |
45 | +The executable can be built using the following procedure. |
46 | +1. Enter Dcmitool and type “./build_all.sh run” or follow steps 2-6 |
47 | +2. Type "./configure" to set up proper makefiles. |
48 | +3. Type "make" in Dcmitool/lib directory and wait for completion. |
49 | +4. Type "make" in Dcmitool/src/plugins and wait for completion. |
50 | +5. Type "make" in Dcmitool/src and wait for completion. |
51 | +6. The executable "dcmitool" can be found in Dcmitool/src directory. |
52 | + |
53 | +Windows Compilation |
54 | +This package was tested using the following system configuration. |
55 | +1. Windows XP with service pack 3. |
56 | +2. During cygwin installation process, select the OpenSSL runtime environment version 0.9.7l-1 and 0.9.8l-1 (in Select Packages window). |
57 | +3. Open a cygwin command line prompt. |
58 | +4. Check cygwin version (type "uname -a" within the shell): |
59 | + CYGWIN_NT-5.1 XXXXX 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin |
60 | + Where XXXXX is the machine name. |
61 | +5. Enter Dcmitool and type “./build_all.bat run” or follow steps 6-8 |
62 | +6. Type ./configure CFLAGS=”-DWIN32 –fstack-protector” to set up proper makefiles. |
63 | +7. Follow the steps 3 to 6 for Linux to build the Windows executable. |
64 | +8. Note that KCS interface may not be available. |
65 | + |
66 | +Note: to run the windows executable on a separate machine, the following dll files are needed in the same directory: |
67 | +1. cygcrypto-0.9.8.dll |
68 | +2. cyggcc_s-1.dll |
69 | +3. cygwin1.dll |
70 | +4. cygssp-0.dll |
71 | + |
72 | +These files can be found in the Cygwin directory. |
73 | + |
74 | + |
75 | +Dependency files |
76 | + |
77 | +For compiling dcmitool for Windows, cygwin need to be installed in the system. Select the following packages listed in Cygwin during installation: |
78 | +1. gcc4-core: Core C compiler subpackage(version 4.1.2 or higher). |
79 | +2. gcc4-g++: G++ subpackage. |
80 | +3. libmpfr4: A library for multiple-precision floating-point arithmetic with exact rounding. |
81 | +4. libopenssl098: The OpenSSL runtime environment(version 0.9.8l-1). |
82 | +5. make: The GNU version ot the 'make' utility. |
83 | +6. openssl-devel: The OpenSSL development environment(version 0.9.8l-1). |
84 | + |
85 | +Running the tool |
86 | + |
87 | +dcmitool [options...] <command> |
88 | + |
89 | +The various options are: |
90 | + -h Help |
91 | + -V Show version information |
92 | + -v Verbose (can use multiple times) |
93 | + -c Display output in comma separated format |
94 | + -d N Specify a /dev/ipmiN device to use (default=0) |
95 | + -I intf Interface to use |
96 | + -H hostname Remote host name for LAN interface |
97 | + -p port Remote RMCP port [default=623] |
98 | + -U username Remote session username |
99 | + -f file Read remote session password from file |
100 | + -S sdr Use local file for remote SDR cache |
101 | + -a Prompt for remote password |
102 | + -e char Set SOL escape character |
103 | + -C ciphersuite Cipher suite to be used by lanplus interface |
104 | + -k key Use Kg key for IPMIv2 authentication |
105 | + -L level Remote session privilege level [default=ADMINISTRATOR] |
106 | + Append a '+' to use name/privilege lookup in RAKP1 |
107 | + -P password Remote session password |
108 | + -E Read password from IPMI_PASSWORD environment variable |
109 | + -m address Set local IPMB address |
110 | + -b channel Set destination channel for bridged request |
111 | + -t address Bridge request to remote target address |
112 | + -B channel Set transit channel for bridged request (dual bridge) |
113 | + -T address Set transit address for bridge request (dual bridge) |
114 | + -l lun Set destination lun for raw commands |
115 | + -o oemtype Setup for OEM (use 'list' to see available OEM types) |
116 | + -O seloem Use file for OEM SEL event descriptions |
117 | + |
118 | +Interfaces: |
119 | + idc-hi Intel IDC-HI Interface [default] |
120 | + imb Intel IMB Interface |
121 | + lanplus IPMI v2.0 RMCP+ LAN Interface |
122 | + |
123 | + |
124 | +Supported commands |
125 | + |
126 | + raw Send a RAW IPMI request and print response |
127 | + lan Configure LAN Channels |
128 | + chassis Get chassis status and set power state |
129 | + power Shortcut to chassis power commands |
130 | + mc Management Controller status and global enables |
131 | + sel Print System Event Log (SEL) |
132 | + sol Configure and connect IPMIv2.0 Serial-over-LAN |
133 | + user Configure Management Controller users |
134 | + channel Configure Management Controller channels |
135 | + session Print session information |
136 | + dcmi Data Center Management Interface |
137 | + exec Run list of commands from file |
138 | + set Set runtime variable for shell and exec |
139 | |
140 | === added directory 'dcmitool-1.8.10' |
141 | === added file 'dcmitool-1.8.10/ChangeLog' |
142 | --- dcmitool-1.8.10/ChangeLog 1970-01-01 00:00:00 +0000 |
143 | +++ dcmitool-1.8.10/ChangeLog 2014-02-26 13:52:23 +0000 |
144 | @@ -0,0 +1,330 @@ |
145 | +version 1.8.10 released 2010-08-28 |
146 | + |
147 | + * Dcmitool has been created based on ipmitool. |
148 | + * Added folowing commands: |
149 | + dcmi |
150 | + discover Displays supported DCMI capabilities. |
151 | + power Platform power limit command options. |
152 | + reading Get power related readings from the system |
153 | + get_limit Get the configured power limits |
154 | + set_limit Set a power limit option |
155 | + activate Activate the set power limit |
156 | + deactivate Deactivate the set power limit |
157 | + sensors Displays the available DCMI sensors. |
158 | + asset_tag Displays the platforms asset tag. |
159 | + set_asset_tag Sets the platforms asset tag. |
160 | + get_mc_id_string Get management controller id string. |
161 | + set_mc_id_string Set management controller id string. |
162 | + * Changed user summary command by additional parameter 'channel number'. |
163 | + user summary[<channel number>] |
164 | + * Below commands are not supported for dcmitool: |
165 | + - i2c |
166 | + - spd |
167 | + - alert |
168 | + - stats |
169 | + - chassis policy,restart_cause, poh, bootdev, bootparam, selftest |
170 | + - power cycle, diag |
171 | + - event |
172 | + - mc reset, watchdog, selftest, getenables, setenables |
173 | + - sensor |
174 | + - fru |
175 | + - sel info, delete, get, add, time, interpret |
176 | + - pef |
177 | + - tsol |
178 | + - isol |
179 | + - sunoem |
180 | + - kontronoem |
181 | + - picmg |
182 | + - fwum |
183 | + - firewall |
184 | + - hpm |
185 | + - ekanalyzer |
186 | + - user list, disable, enable, test |
187 | + |
188 | +version 1.8.10 released 2008-08-08 |
189 | + * Added support for BULL IANA number. |
190 | + * Fixed contrib build so the oem_ibm_sel_map file gets included in |
191 | + rpm builds again. |
192 | + * Added support for Debian packages to be built from CVS |
193 | + * Fix for sdr and sel timestamp reporting issues |
194 | + * Fix for discrete sensor state print routines to address state |
195 | + bits 8-14 |
196 | + * Change ipmi_chassis_status() to non-static so it can be used |
197 | + externally |
198 | + * Added retries to SOL keepalive |
199 | + * Fix to stop sensor list command from reporting a failure due |
200 | + to missing sensor |
201 | + * Fix bug in sdr free space reporting |
202 | + * Add support for IANA number to vendor name conversion for many |
203 | + vendors |
204 | + * Fix segfault bug in lan set command |
205 | + * Fix bug in population of raw i2c wdata buffer |
206 | + * Fix bug in ipmb sensor reading |
207 | + * Fix misspellings, typos, incorrect strncmp lengths, white space |
208 | + * Update/fix printed help and usages for many commands |
209 | + * Add and update support for all commands in ipmitool man page |
210 | + * Fix for lanplus session re-open when the target becomes unavailable |
211 | + following a fw upgrade activation |
212 | + * Add support for watchdog timer shutoff, reset, and get info |
213 | + * Add support for more ibm systems in oem_ibm_sel_map |
214 | + * Add more JEDEC support info for DIMMs; decrease request size |
215 | + for DIMM FRU info to 16 bytes at a time to allow more |
216 | + DIMM FRUs to respond. |
217 | + * Fix to change hpmfwupg to version 1.02; fix to reduce hpmfwupg |
218 | + buffer length more aggressively when no response from iol |
219 | + * Fix HPM firmware activation via IOL; fake a timeout after IOL |
220 | + session re-open to force get upgrade status retry; |
221 | + Added retries on 0xD3 completion code |
222 | + * Add support for freeipmi 0.6.0; adjust autoconf for changes |
223 | + * Fix for oemval2str size |
224 | + * Add support for product name resolution in mc info |
225 | + * Fix FRU display format |
226 | + * Added PICMG ekeying analyzer module support (ekanalyzer); |
227 | + display point to point physical connectivity and power |
228 | + supply information between carriers and AMC modules; |
229 | + display matched results of ekeying match between an |
230 | + on-carrier device and AMC module or between 2 AMC modules |
231 | + * Fix AMC GUID display support |
232 | + * Improved amcportstate operations |
233 | + * Added resolution for new sensor types |
234 | + * Fix segfault in SOL |
235 | + * Fix bug that caused infinite loop on BMCs with empty SDRs |
236 | + * Fix to move out Kontron OEM sensor resolution for other OEMs |
237 | + which could lead to bad event descriptions |
238 | + * Add new FRU edit mode thereby allowing serial numbers, etc. to be |
239 | + changed; improvements to OEM edit mode |
240 | + * Added SPD support for parms: channel number, max read size |
241 | + * Add SDR support for adding SDR records from a dumped file, |
242 | + clearing SDR, adding partial SDR records |
243 | + * Add updates and fixes to hpmfwupg: upload block size to 32 bytes |
244 | + for KCS, handle long response option, implement rollback |
245 | + override, garbage output fix |
246 | + * Add double bridge lan support , fix bridging issue |
247 | + * Add HPM support to pre-check which components need to be skipped |
248 | + * Fix autodetection of maximum packet size when using IPMB |
249 | + * Add new Kontron OEM command to set the BIOS boot option sequence |
250 | + * Add support for dual-bridge/ dual send message |
251 | + * Add auto-detect for local IPMB address using PICMG 2.X extension |
252 | + * Add support for HPM.1 1.0 specification compliance |
253 | + * Fix for improper lan/lanplus addressing |
254 | + * Added transit_channel and transit_addr to ipmi_intf struct |
255 | + * Fix bad password assertion bug due to rakp2 HMAC not being checked |
256 | + properly |
257 | + * Added ability to interpret PPS shelf manager clia sel dump |
258 | + * Corrected PICMG M7 state event definition macros |
259 | + * Added FRU parsing enhancements |
260 | + * Added "isol info", "isol set" and "isol activate" commands |
261 | + to support Intel IPMI v1.5 SOL functionality. Removed |
262 | + "isol setup" command. |
263 | + * Fix bug in ipmi_lan_recv_packet() in lan and lanplus interfaces. |
264 | + * Fix bug in "chassis poh" command. |
265 | + * Fix HPM.1 upgrade to apply to only given component when instructed |
266 | + to do so |
267 | + * Added configure auto-detection if dual bridge extension |
268 | + is supported by OpenIPMI |
269 | + |
270 | +version 1.8.9 released 2007-03-06 |
271 | + * Added initial AMC ekey query operation support |
272 | + * Improvements to ekeying support (PICMG 3.x only) |
273 | + * Added initial interactive edition support for multirec; added IANA |
274 | + verification before interpreting PICMG records. |
275 | + * Added edit support for AMC activation "Maximum Internal Current" |
276 | + * Fix bug generating garbage on the screen when handling GetDeviceId |
277 | + and sol traffic occurs |
278 | + * Added ability to map OEM sensor types to OEM description string using |
279 | + IANA number; moved IANA number table |
280 | + * Fix lan set access command to use value already saved within |
281 | + parameters for PEF and authentication |
282 | + * Fix bug in cmd ipmitool lan stats get 1 |
283 | + * Add support for name+privilege lookup for lanplus sessions |
284 | + * Fix time_t conversion bug for 64-bit OS |
285 | + * Fixed FWUM Get Info |
286 | + * Add set-in-progress flag support to chassis bootdev |
287 | + * Added new chassis bootdev options |
288 | + * Add sol payload enable/disable comman |
289 | + * Fix SOL set errors when commit-write not supported |
290 | + * Fix reset of session timeout for lanplus interface |
291 | + * Fixed lan interface accessibility timeout handling |
292 | + * Fix bug with Function Get Channel Cipher Suites command when |
293 | + more than 1 page used. |
294 | + * Fix missing firmware firewall top-level command |
295 | + * Fix bug in SOL keepalive functionality |
296 | + * Fix SOLv2 NACK and retry handling for Intel ESB2 BMC |
297 | + * Added ipmi_sel_get_oem_sensor* APIs |
298 | + * Added HPM.1 support |
299 | + * Fix segfault when incorrect oem option supplied |
300 | + * Fix bus problem with spd command |
301 | + * Fix segfault in SOL when remote BMC does not return packet |
302 | + * Adjust packet length for AMC.0 retricting IPMB packets to 32 bytes |
303 | + * Added lan packet size reduction mechanism |
304 | + * Fix bug with sendMessage of bad length with different target |
305 | + * Fix for big endian (PPC) architecture |
306 | + * NetBSD fixes |
307 | + * Fix segfault and channel problem with user priv command |
308 | + * Add support for bus/chan on i2c raw command |
309 | + * Add freeipmi interface support |
310 | + * Add remote spd printing |
311 | + * Add better detection of linux/compiler.h to config |
312 | + * Makefile changes to fix makedistcheck, etc. |
313 | + |
314 | +version 1.8.8 |
315 | + * Fix segfaults in sensor data repository list |
316 | + * Fix IPMIv1.5 authtype NONE to ignore supplied password |
317 | + * Fix cipher suite display bug in lan print |
318 | + * Fix typo in IPMIv2 SOL output when sending break |
319 | + * Fix improper LUN handling with Tyan SOL |
320 | + * Add LUN support to OpenIPMI interface |
321 | + * Add support for Kontron OEM commands |
322 | + * Update to Kontron Firmware Update command |
323 | + |
324 | +version 1.8.7 |
325 | + * Remove nuclear clause from license |
326 | + * Add Sun OEM command for blades |
327 | + * Increase argument size for raw commands in shell/exec |
328 | + * Fix handling of LUNs for LAN interfaces |
329 | + * Add IPMIv2 SOL loopback test |
330 | + * Add support for IBM OEM SEL messages |
331 | + * Disable file paranoia checks on read files by default |
332 | + * Support IPMIv2 SOL on older Intel boxes |
333 | + * Display message and exit if keepalive fails during SOL |
334 | + * Add support for setting VLAN id and priority |
335 | + * Add support for FreeBSD OpenIPMI-compatible driver |
336 | + * Add support for IPMIv2 Firmware Firewall |
337 | + * Fix gcc4 compile warnings |
338 | + |
339 | +version 1.8.6 |
340 | + * Fix memory corruption when sending encrypted SOL traffic |
341 | + * Add keepalive timer to IPMIv2 SOL sessions |
342 | + |
343 | +version 1.8.5 |
344 | + * Add support for settable SOL escape character with -e option |
345 | + * Add support for Kg BMC key for IPMIv2 authentication with -k option |
346 | + * Add support for Tyan IPMIv1.5 SOL with tsol command |
347 | + * Add support for PICMG devices |
348 | + * Add support for OEM SEL event parsing |
349 | + * Add support for command bridging over lan and lanplus interfaces |
350 | + * New 'chassis selftest' command |
351 | + * Many bufxies and patches from contributors |
352 | + |
353 | +version 1.8.3 |
354 | + * Add support for 'sel readraw' and 'sel writeraw' commands. |
355 | + * Add support for entering NetFn as a string for RAW commands. |
356 | + * Add support for appending distro tag to integrated RPM builds. |
357 | + * Fix LAN parameter printing to handle Invalid Data Field response |
358 | + without errors. |
359 | + * Add 5ms delay to IPMIv2 SOL retry packets |
360 | + * IPMIv2 interface will now correctly set session privilege level |
361 | + to requested level after session is opened. |
362 | + |
363 | +version 1.8.2 (released May 18 2005) |
364 | + * Fix FRU reading for large (>255 bytes) areas. |
365 | + * Fix LAN parameter segfault when no Ciphers supported by BMC. |
366 | + * Fix IPMIv2 support on Intel v2 BMCs (use -o intelplus). |
367 | + * Separate option parsing code from main ipmitool source file. |
368 | + * Add raw I2C support with IPMI Master Read-Write command. |
369 | + * Add support for new 'sdr elist' extended output format. |
370 | + * Add support for listing sensors by type with 'sdr type' command. |
371 | + * Add support for new 'sel elist' extended output format that |
372 | + cross-references events with sensors. |
373 | + * Add support for sending dynamically generated platform events |
374 | + based on existing sensor information. |
375 | + * New '-S' argument to read local SDR cache created with 'sdr dump'. |
376 | + |
377 | +version 1.8.0 |
378 | + * Fix IPMIv2.0 issues |
379 | + * Fix chassis boot parameter support |
380 | + * Add support for linear sensors |
381 | + |
382 | +version 1.7.1 |
383 | + * Update bmc plugin to work with new Solaris bmc driver (new ioctl |
384 | + for interface detection and new STREAMS message-based interface) |
385 | + |
386 | +version 1.7.0 |
387 | + * Propogate errors correctly so exit status will be useful |
388 | + * More consistent display of errors including completion code text |
389 | + * Errors and debug is send to stderr now |
390 | + * New "sel get" command that will print details about SEL entry |
391 | + and corresponding SDR records as well as FRUs via entity association |
392 | + * Improved event generator, now supports reading events from text file |
393 | + * New "-o oemtype" option for specifying OEM boards |
394 | + exsting types are "supermicro" and "intelwv2" |
395 | + * New PEF subsystem from Tim Murphy at Dell |
396 | + * New "bmc" plugin for Solaris 10 x86 |
397 | + * Many bugfixes and contributed patches |
398 | + |
399 | +version 1.6.2 |
400 | + * Support for Supermicro BMC OEM authentication method |
401 | + |
402 | +version 1.6.1 |
403 | + * Fix minor problem with LAN parameter setting |
404 | + |
405 | +version 1.6.0 |
406 | + * Add a README file |
407 | + * Add Solaris x86 interface plugin |
408 | + * Add support for building Solaris packages |
409 | + * Fix segfault when doing "sel list" (from Matthew Braithwaite) |
410 | + * Fix "chassis identify" on some BMCs (from ebrower@sourceforge) |
411 | + * Add command "bmc info" and related output (from ebrower@sourceforge) |
412 | + * Add support for IPMIv2 and Serial-over-LAN from Jeremy at Newisys |
413 | + * Add support for building RPMs as non-root user |
414 | + * Add new "shell" and "exec" commands |
415 | + * Lots of other contributed patches |
416 | + |
417 | +version 1.5.9 |
418 | + * Add ability to get a particular sensor by name |
419 | + * Add ability to set a particular sensor threshold |
420 | + * Add support for displaying V2 channel authentication levels |
421 | + * Add README for rrdtool scripts in contrib directory |
422 | + * Improve lan interface retry handling |
423 | + * Support prompting for password or reading from environment |
424 | + * Move chaninfo command into channel subcommand |
425 | + * Fix reservation ID handling when two sessions open to BMC |
426 | + * Fix reading of large FRU data |
427 | + * Add configure option for changing binary to ipmiadm for Solaris |
428 | + * Fix compile problem on Solaris 8 |
429 | + |
430 | +version 1.5.8 |
431 | + * Enable static compilation of interfaces |
432 | + * Fix types to be 64-bit safe |
433 | + * Fix compilation problems on Solaris |
434 | + * Fix multiple big-endian problems for Solaris/SPARC |
435 | + * Fix channel access to save settings to NVRAM |
436 | + * Set channel privilege limit to ADMIN during "access on" |
437 | + * Enable gratuitous ARP in bmcautoconf.sh |
438 | + * Add support for Linux kernel panic messages in SEL output |
439 | + * Add support for type 3 SDR records |
440 | + |
441 | +version 1.5.7 |
442 | + * Add IPMIv1.5 eratta fixes |
443 | + * Additions to FRU printing and FRU multirecords |
444 | + * Better handling of SDR printing |
445 | + * Contrib scripts for creating rrdtool graphs |
446 | + |
447 | +version 1.5.6 |
448 | + * Fix SEL event decoding for generic events |
449 | + * Handle empty SEL gracefully when doing "sel list" |
450 | + * Fix sdr handling of sensors that do not return a reading |
451 | + * Fix for CSV display of sensor readings/units from Fredrik �hrn |
452 | + |
453 | +version 1.5.5 |
454 | + * Add -U option for setting LAN username |
455 | + * Fix -v usage for plugin interfaces |
456 | + |
457 | +version 1.5.4 |
458 | + * Put interface plugin API into library |
459 | + |
460 | +version 1.5.3 |
461 | + * Add -g option to work with grizzly bmc |
462 | + |
463 | +version 1.5.2 |
464 | + * Add support for setting gratuitous arp interval |
465 | + |
466 | +version 1.5.1 |
467 | + * Better SEL support |
468 | + * Fix display bug in SDR list |
469 | + |
470 | +version 1.5.0 |
471 | + * More robust UDP packet handling |
472 | + * Add Intel IMB driver support |
473 | + * Use autoconf/automake/libtool |
474 | + |
475 | |
476 | === added file 'dcmitool-1.8.10/Makefile.am' |
477 | --- dcmitool-1.8.10/Makefile.am 1970-01-01 00:00:00 +0000 |
478 | +++ dcmitool-1.8.10/Makefile.am 2014-02-26 13:52:23 +0000 |
479 | @@ -0,0 +1,81 @@ |
480 | +# Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. |
481 | +# |
482 | +# Redistribution and use in source and binary forms, with or without |
483 | +# modification, are permitted provided that the following conditions |
484 | +# are met: |
485 | +# |
486 | +# Redistribution of source code must retain the above copyright |
487 | +# notice, this list of conditions and the following disclaimer. |
488 | +# |
489 | +# Redistribution in binary form must reproduce the above copyright |
490 | +# notice, this list of conditions and the following disclaimer in the |
491 | +# documentation and/or other materials provided with the distribution. |
492 | +# |
493 | +# Neither the name of Sun Microsystems, Inc. or the names of |
494 | +# contributors may be used to endorse or promote products derived |
495 | +# from this software without specific prior written permission. |
496 | +# |
497 | +# This software is provided "AS IS," without a warranty of any kind. |
498 | +# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, |
499 | +# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A |
500 | +# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. |
501 | +# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE |
502 | +# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING |
503 | +# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL |
504 | +# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, |
505 | +# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR |
506 | +# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF |
507 | +# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, |
508 | +# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
509 | + |
510 | +DOCDIR = $(datadir)/doc/$(PACKAGE) |
511 | +DOCLIST = $(top_srcdir)/ChangeLog |
512 | + |
513 | +EXTRA_DIST = $(DOCLIST) \ |
514 | + debian/changelog debian/control debian/copyright \ |
515 | + debian/dirs debian/docs debian/rules |
516 | + |
517 | +AUTOMAKE_OPTIONS = dist-bzip2 |
518 | + |
519 | +MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure configure-stamp \ |
520 | + config.guess config.sub depcomp install-sh ltmain.sh missing \ |
521 | + mkinstalldirs config.h.in stamp-h.in \ |
522 | + $(distdir).tar.gz $(distdir).tar.bz2 |
523 | + |
524 | +SUBDIRS = lib src include doc contrib control |
525 | + |
526 | +dist-hook: |
527 | + cp control/ipmitool.spec $(distdir) |
528 | + |
529 | +install-data-local: |
530 | + mkdir -p $(DESTDIR)$(DOCDIR) |
531 | + $(INSTALL_DATA) $(DOCLIST) $(DESTDIR)$(DOCDIR) |
532 | + |
533 | +uninstall-local: |
534 | + -rm -rf $(DESTDIR)$(DOCDIR) |
535 | + |
536 | +.PHONY: pkg |
537 | +pkg: PKG := ipmitool-@VERSION@-@OS@-@ARCH@ |
538 | +pkg: control/pkginfo |
539 | + $(STRIP) src/ipmitool |
540 | + $(STRIP) src/ipmitool |
541 | + (cd control ; pkgmk -o -d /tmp) |
542 | + pkgtrans -s /tmp $(PKG) ipmitool |
543 | + gzip -c /tmp/$(PKG) > $(PKG).gz |
544 | + -rm -rf /tmp/ipmitool /tmp/$(PKG) |
545 | + |
546 | +BUILDDIR = ${shell cd $(top_builddir) ; pwd | sed -e 's,^[^:\\/]:[\\/],/,'} |
547 | +SRCDIR = ${shell cd $(top_srcdir) ; pwd | sed -e 's,^[^:\\/]:[\\/],/,'} |
548 | +RPMDIR = $(BUILDDIR)/rpmbuild |
549 | + |
550 | +.PHONY: rpm |
551 | +rpm: control/ipmitool.spec dist |
552 | + mkdir -p $(RPMDIR)/{BUILD,RPMS,SRPMS,SOURCES,SPECS,tmp} |
553 | + cp control/ipmitool.spec $(RPMDIR)/SPECS |
554 | + BUILDDIR=$(RPMDIR) CONFIGDIR=$(BUILDDIR)/control \ |
555 | + @RPMBUILD@ -ba --rcfile $(SRCDIR)/control/rpmrc \ |
556 | + $(RPMDIR)/SPECS/ipmitool.spec |
557 | + |
558 | +.PHONY: clean-rpm |
559 | +clean-rpm: |
560 | + -rm -rf $(RPMDIR) |
561 | |
562 | === added file 'dcmitool-1.8.10/Makefile.in' |
563 | --- dcmitool-1.8.10/Makefile.in 1970-01-01 00:00:00 +0000 |
564 | +++ dcmitool-1.8.10/Makefile.in 2014-02-26 13:52:23 +0000 |
565 | @@ -0,0 +1,722 @@ |
566 | +# Makefile.in generated by automake 1.9.6 from Makefile.am. |
567 | +# @configure_input@ |
568 | + |
569 | +# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, |
570 | +# 2003, 2004, 2005 Free Software Foundation, Inc. |
571 | +# This Makefile.in is free software; the Free Software Foundation |
572 | +# gives unlimited permission to copy and/or distribute it, |
573 | +# with or without modifications, as long as this notice is preserved. |
574 | + |
575 | +# This program is distributed in the hope that it will be useful, |
576 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
577 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
578 | +# PARTICULAR PURPOSE. |
579 | + |
580 | +@SET_MAKE@ |
581 | + |
582 | +# Copyright (c) 2003 Sun Microsystems, Inc. All Rights Reserved. |
583 | +# |
584 | +# Redistribution and use in source and binary forms, with or without |
585 | +# modification, are permitted provided that the following conditions |
586 | +# are met: |
587 | +# |
588 | +# Redistribution of source code must retain the above copyright |
589 | +# notice, this list of conditions and the following disclaimer. |
590 | +# |
591 | +# Redistribution in binary form must reproduce the above copyright |
592 | +# notice, this list of conditions and the following disclaimer in the |
593 | +# documentation and/or other materials provided with the distribution. |
594 | +# |
595 | +# Neither the name of Sun Microsystems, Inc. or the names of |
596 | +# contributors may be used to endorse or promote products derived |
597 | +# from this software without specific prior written permission. |
598 | +# |
599 | +# This software is provided "AS IS," without a warranty of any kind. |
600 | +# ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, |
601 | +# INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A |
602 | +# PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. |
603 | +# SUN MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE |
604 | +# FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING |
605 | +# OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL |
606 | +# SUN OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, |
607 | +# OR FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR |
608 | +# PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF |
609 | +# LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, |
610 | +# EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. |
611 | +srcdir = @srcdir@ |
612 | +top_srcdir = @top_srcdir@ |
613 | +VPATH = @srcdir@ |
614 | +pkgdatadir = $(datadir)/@PACKAGE@ |
615 | +pkglibdir = $(libdir)/@PACKAGE@ |
616 | +pkgincludedir = $(includedir)/@PACKAGE@ |
617 | +top_builddir = . |
618 | +am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd |
619 | +INSTALL = @INSTALL@ |
620 | +install_sh_DATA = $(install_sh) -c -m 644 |
621 | +install_sh_PROGRAM = $(install_sh) -c |
622 | +install_sh_SCRIPT = $(install_sh) -c |
623 | +INSTALL_HEADER = $(INSTALL_DATA) |
624 | +transform = $(program_transform_name) |
625 | +NORMAL_INSTALL = : |
626 | +PRE_INSTALL = : |
627 | +POST_INSTALL = : |
628 | +NORMAL_UNINSTALL = : |
629 | +PRE_UNINSTALL = : |
630 | +POST_UNINSTALL = : |
631 | +build_triplet = @build@ |
632 | +host_triplet = @host@ |
633 | +target_triplet = @target@ |
634 | +DIST_COMMON = $(am__configure_deps) $(srcdir)/Makefile.am \ |
635 | + $(srcdir)/Makefile.in $(srcdir)/config.h.in \ |
636 | + $(top_srcdir)/configure ChangeLog config.guess config.sub \ |
637 | + depcomp install-sh ltmain.sh missing |
638 | +subdir = . |
639 | +ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
640 | +am__aclocal_m4_deps = $(top_srcdir)/configure.in |
641 | +am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
642 | + $(ACLOCAL_M4) |
643 | +am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
644 | + configure.lineno configure.status.lineno |
645 | +mkinstalldirs = $(install_sh) -d |
646 | +CONFIG_HEADER = config.h |
647 | +CONFIG_CLEAN_FILES = |
648 | +SOURCES = |
649 | +DIST_SOURCES = |
650 | +RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ |
651 | + html-recursive info-recursive install-data-recursive \ |
652 | + install-exec-recursive install-info-recursive \ |
653 | + install-recursive installcheck-recursive installdirs-recursive \ |
654 | + pdf-recursive ps-recursive uninstall-info-recursive \ |
655 | + uninstall-recursive |
656 | +ETAGS = etags |
657 | +CTAGS = ctags |
658 | +DIST_SUBDIRS = $(SUBDIRS) |
659 | +DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
660 | +distdir = $(PACKAGE)-$(VERSION) |
661 | +top_distdir = $(distdir) |
662 | +am__remove_distdir = \ |
663 | + { test ! -d $(distdir) \ |
664 | + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ |
665 | + && rm -fr $(distdir); }; } |
666 | +DIST_ARCHIVES = $(distdir).tar.gz $(distdir).tar.bz2 |
667 | +GZIP_ENV = --best |
668 | +distuninstallcheck_listfiles = find . -type f -print |
669 | +distcleancheck_listfiles = find . -type f -print |
670 | +ACLOCAL = @ACLOCAL@ |
671 | +AMDEP_FALSE = @AMDEP_FALSE@ |
672 | +AMDEP_TRUE = @AMDEP_TRUE@ |
673 | +AMTAR = @AMTAR@ |
674 | +AR = @AR@ |
675 | +ARCH = @ARCH@ |
676 | +AUTOCONF = @AUTOCONF@ |
677 | +AUTOHEADER = @AUTOHEADER@ |
678 | +AUTOMAKE = @AUTOMAKE@ |
679 | +AWK = @AWK@ |
680 | +BASEDIR = @BASEDIR@ |
681 | +CC = @CC@ |
682 | +CCDEPMODE = @CCDEPMODE@ |
683 | +CFLAGS = @CFLAGS@ |
684 | +CPP = @CPP@ |
685 | +CPPFLAGS = @CPPFLAGS@ |
686 | +CXX = @CXX@ |
687 | +CXXCPP = @CXXCPP@ |
688 | +CXXDEPMODE = @CXXDEPMODE@ |
689 | +CXXFLAGS = @CXXFLAGS@ |
690 | +CYGPATH_W = @CYGPATH_W@ |
691 | +DEFS = @DEFS@ |
692 | +DEPDIR = @DEPDIR@ |
693 | +DISTRO = @DISTRO@ |
694 | +ECHO = @ECHO@ |
695 | +ECHO_C = @ECHO_C@ |
696 | +ECHO_N = @ECHO_N@ |
697 | +ECHO_T = @ECHO_T@ |
698 | +EGREP = @EGREP@ |
699 | +EXEEXT = @EXEEXT@ |
700 | +F77 = @F77@ |
701 | +FFLAGS = @FFLAGS@ |
702 | +INSTALL_DATA = @INSTALL_DATA@ |
703 | +INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
704 | +INSTALL_SCRIPT = @INSTALL_SCRIPT@ |
705 | +INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ |
706 | +INTF_BMC = @INTF_BMC@ |
707 | +INTF_BMC_LIB = @INTF_BMC_LIB@ |
708 | +INTF_FREE = @INTF_FREE@ |
709 | +INTF_FREE_LIB = @INTF_FREE_LIB@ |
710 | +INTF_IDC_HI = @INTF_IDC_HI@ |
711 | +INTF_IDC_HI_LIB = @INTF_IDC_HI_LIB@ |
712 | +INTF_IMB = @INTF_IMB@ |
713 | +INTF_IMB_LIB = @INTF_IMB_LIB@ |
714 | +INTF_LAN = @INTF_LAN@ |
715 | +INTF_LANPLUS = @INTF_LANPLUS@ |
716 | +INTF_LANPLUS_LIB = @INTF_LANPLUS_LIB@ |
717 | +INTF_LAN_LIB = @INTF_LAN_LIB@ |
718 | +INTF_LIPMI = @INTF_LIPMI@ |
719 | +INTF_LIPMI_LIB = @INTF_LIPMI_LIB@ |
720 | +INTF_OPEN = @INTF_OPEN@ |
721 | +INTF_OPEN_LIB = @INTF_OPEN_LIB@ |
722 | +IPMITOOL_INTF_LIB = @IPMITOOL_INTF_LIB@ |
723 | +LDFLAGS = @LDFLAGS@ |
724 | +LIBOBJS = @LIBOBJS@ |
725 | +LIBS = @LIBS@ |
726 | +LIBTOOL = @LIBTOOL@ |
727 | +LN_S = @LN_S@ |
728 | +LTLIBOBJS = @LTLIBOBJS@ |
729 | +MAKEINFO = @MAKEINFO@ |
730 | +OBJEXT = @OBJEXT@ |
731 | +OS = @OS@ |
732 | +PACKAGE = @PACKAGE@ |
733 | +PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ |
734 | +PACKAGE_NAME = @PACKAGE_NAME@ |
735 | +PACKAGE_STRING = @PACKAGE_STRING@ |
736 | +PACKAGE_TARNAME = @PACKAGE_TARNAME@ |
737 | +PACKAGE_VERSION = @PACKAGE_VERSION@ |
738 | +PATH_SEPARATOR = @PATH_SEPARATOR@ |
739 | +POW_LIB = @POW_LIB@ |
740 | +PSTAMP = @PSTAMP@ |
741 | +RANLIB = @RANLIB@ |
742 | +RPMBUILD = @RPMBUILD@ |
743 | +RPM_RELEASE = @RPM_RELEASE@ |
744 | +SED = @SED@ |
745 | +SET_MAKE = @SET_MAKE@ |
746 | +SHELL = @SHELL@ |
747 | +STRIP = @STRIP@ |
748 | +VERSION = @VERSION@ |
749 | +ac_configure_args = @ac_configure_args@ |
750 | +ac_ct_AR = @ac_ct_AR@ |
751 | +ac_ct_CC = @ac_ct_CC@ |
752 | +ac_ct_CXX = @ac_ct_CXX@ |
753 | +ac_ct_F77 = @ac_ct_F77@ |
754 | +ac_ct_RANLIB = @ac_ct_RANLIB@ |
755 | +ac_ct_STRIP = @ac_ct_STRIP@ |
756 | +am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ |
757 | +am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ |
758 | +am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ |
759 | +am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ |
760 | +am__include = @am__include@ |
761 | +am__leading_dot = @am__leading_dot@ |
762 | +am__quote = @am__quote@ |
763 | +am__tar = @am__tar@ |
764 | +am__untar = @am__untar@ |
765 | +bindir = @bindir@ |
766 | +build = @build@ |
767 | +build_alias = @build_alias@ |
768 | +build_cpu = @build_cpu@ |
769 | +build_os = @build_os@ |
770 | +build_vendor = @build_vendor@ |
771 | +datadir = @datadir@ |
772 | +exec_prefix = @exec_prefix@ |
773 | +host = @host@ |
774 | +host_alias = @host_alias@ |
775 | +host_cpu = @host_cpu@ |
776 | +host_os = @host_os@ |
777 | +host_vendor = @host_vendor@ |
778 | +includedir = @includedir@ |
779 | +infodir = @infodir@ |
780 | +install_sh = @install_sh@ |
781 | +libdir = @libdir@ |
782 | +libexecdir = @libexecdir@ |
783 | +localstatedir = @localstatedir@ |
784 | +mandir = @mandir@ |
785 | +mkdir_p = @mkdir_p@ |
786 | +oldincludedir = @oldincludedir@ |
787 | +prefix = @prefix@ |
788 | +program_transform_name = @program_transform_name@ |
789 | +sbindir = @sbindir@ |
790 | +sharedstatedir = @sharedstatedir@ |
791 | +sysconfdir = @sysconfdir@ |
792 | +target = @target@ |
793 | +target_alias = @target_alias@ |
794 | +target_cpu = @target_cpu@ |
795 | +target_os = @target_os@ |
796 | +target_vendor = @target_vendor@ |
797 | +DOCDIR = $(datadir)/doc/$(PACKAGE) |
798 | +DOCLIST = $(top_srcdir)/ChangeLog |
799 | +EXTRA_DIST = $(DOCLIST) \ |
800 | + debian/changelog debian/control debian/copyright \ |
801 | + debian/dirs debian/docs debian/rules |
802 | + |
803 | +AUTOMAKE_OPTIONS = dist-bzip2 |
804 | +MAINTAINERCLEANFILES = Makefile.in aclocal.m4 configure configure-stamp \ |
805 | + config.guess config.sub depcomp install-sh ltmain.sh missing \ |
806 | + mkinstalldirs config.h.in stamp-h.in \ |
807 | + $(distdir).tar.gz $(distdir).tar.bz2 |
808 | + |
809 | +SUBDIRS = lib src include doc contrib control |
810 | +BUILDDIR = ${shell cd $(top_builddir) ; pwd | sed -e 's,^[^:\\/]:[\\/],/,'} |
811 | +SRCDIR = ${shell cd $(top_srcdir) ; pwd | sed -e 's,^[^:\\/]:[\\/],/,'} |
812 | +RPMDIR = $(BUILDDIR)/rpmbuild |
813 | +all: config.h |
814 | + $(MAKE) $(AM_MAKEFLAGS) all-recursive |
815 | + |
816 | +.SUFFIXES: |
817 | +am--refresh: |
818 | + @: |
819 | +$(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) |
820 | + @for dep in $?; do \ |
821 | + case '$(am__configure_deps)' in \ |
822 | + *$$dep*) \ |
823 | + echo ' cd $(srcdir) && $(AUTOMAKE) --foreign '; \ |
824 | + cd $(srcdir) && $(AUTOMAKE) --foreign \ |
825 | + && exit 0; \ |
826 | + exit 1;; \ |
827 | + esac; \ |
828 | + done; \ |
829 | + echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign Makefile'; \ |
830 | + cd $(top_srcdir) && \ |
831 | + $(AUTOMAKE) --foreign Makefile |
832 | +.PRECIOUS: Makefile |
833 | +Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status |
834 | + @case '$?' in \ |
835 | + *config.status*) \ |
836 | + echo ' $(SHELL) ./config.status'; \ |
837 | + $(SHELL) ./config.status;; \ |
838 | + *) \ |
839 | + echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \ |
840 | + cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \ |
841 | + esac; |
842 | + |
843 | +$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) |
844 | + $(SHELL) ./config.status --recheck |
845 | + |
846 | +$(top_srcdir)/configure: $(am__configure_deps) |
847 | + cd $(srcdir) && $(AUTOCONF) |
848 | +$(ACLOCAL_M4): $(am__aclocal_m4_deps) |
849 | + cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS) |
850 | + |
851 | +config.h: stamp-h1 |
852 | + @if test ! -f $@; then \ |
853 | + rm -f stamp-h1; \ |
854 | + $(MAKE) stamp-h1; \ |
855 | + else :; fi |
856 | + |
857 | +stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status |
858 | + @rm -f stamp-h1 |
859 | + cd $(top_builddir) && $(SHELL) ./config.status config.h |
860 | +$(srcdir)/config.h.in: $(am__configure_deps) |
861 | + cd $(top_srcdir) && $(AUTOHEADER) |
862 | + rm -f stamp-h1 |
863 | + touch $@ |
864 | + |
865 | +distclean-hdr: |
866 | + -rm -f config.h stamp-h1 |
867 | + |
868 | +mostlyclean-libtool: |
869 | + -rm -f *.lo |
870 | + |
871 | +clean-libtool: |
872 | + -rm -rf .libs _libs |
873 | + |
874 | +distclean-libtool: |
875 | + -rm -f libtool |
876 | +uninstall-info-am: |
877 | + |
878 | +# This directory's subdirectories are mostly independent; you can cd |
879 | +# into them and run `make' without going through this Makefile. |
880 | +# To change the values of `make' variables: instead of editing Makefiles, |
881 | +# (1) if the variable is set in `config.status', edit `config.status' |
882 | +# (which will cause the Makefiles to be regenerated when you run `make'); |
883 | +# (2) otherwise, pass the desired values on the `make' command line. |
884 | +$(RECURSIVE_TARGETS): |
885 | + @failcom='exit 1'; \ |
886 | + for f in x $$MAKEFLAGS; do \ |
887 | + case $$f in \ |
888 | + *=* | --[!k]*);; \ |
889 | + *k*) failcom='fail=yes';; \ |
890 | + esac; \ |
891 | + done; \ |
892 | + dot_seen=no; \ |
893 | + target=`echo $@ | sed s/-recursive//`; \ |
894 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
895 | + echo "Making $$target in $$subdir"; \ |
896 | + if test "$$subdir" = "."; then \ |
897 | + dot_seen=yes; \ |
898 | + local_target="$$target-am"; \ |
899 | + else \ |
900 | + local_target="$$target"; \ |
901 | + fi; \ |
902 | + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
903 | + || eval $$failcom; \ |
904 | + done; \ |
905 | + if test "$$dot_seen" = "no"; then \ |
906 | + $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \ |
907 | + fi; test -z "$$fail" |
908 | + |
909 | +mostlyclean-recursive clean-recursive distclean-recursive \ |
910 | +maintainer-clean-recursive: |
911 | + @failcom='exit 1'; \ |
912 | + for f in x $$MAKEFLAGS; do \ |
913 | + case $$f in \ |
914 | + *=* | --[!k]*);; \ |
915 | + *k*) failcom='fail=yes';; \ |
916 | + esac; \ |
917 | + done; \ |
918 | + dot_seen=no; \ |
919 | + case "$@" in \ |
920 | + distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \ |
921 | + *) list='$(SUBDIRS)' ;; \ |
922 | + esac; \ |
923 | + rev=''; for subdir in $$list; do \ |
924 | + if test "$$subdir" = "."; then :; else \ |
925 | + rev="$$subdir $$rev"; \ |
926 | + fi; \ |
927 | + done; \ |
928 | + rev="$$rev ."; \ |
929 | + target=`echo $@ | sed s/-recursive//`; \ |
930 | + for subdir in $$rev; do \ |
931 | + echo "Making $$target in $$subdir"; \ |
932 | + if test "$$subdir" = "."; then \ |
933 | + local_target="$$target-am"; \ |
934 | + else \ |
935 | + local_target="$$target"; \ |
936 | + fi; \ |
937 | + (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \ |
938 | + || eval $$failcom; \ |
939 | + done && test -z "$$fail" |
940 | +tags-recursive: |
941 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
942 | + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \ |
943 | + done |
944 | +ctags-recursive: |
945 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
946 | + test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \ |
947 | + done |
948 | + |
949 | +ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) |
950 | + list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ |
951 | + unique=`for i in $$list; do \ |
952 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
953 | + done | \ |
954 | + $(AWK) ' { files[$$0] = 1; } \ |
955 | + END { for (i in files) print i; }'`; \ |
956 | + mkid -fID $$unique |
957 | +tags: TAGS |
958 | + |
959 | +TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
960 | + $(TAGS_FILES) $(LISP) |
961 | + tags=; \ |
962 | + here=`pwd`; \ |
963 | + if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \ |
964 | + include_option=--etags-include; \ |
965 | + empty_fix=.; \ |
966 | + else \ |
967 | + include_option=--include; \ |
968 | + empty_fix=; \ |
969 | + fi; \ |
970 | + list='$(SUBDIRS)'; for subdir in $$list; do \ |
971 | + if test "$$subdir" = .; then :; else \ |
972 | + test ! -f $$subdir/TAGS || \ |
973 | + tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \ |
974 | + fi; \ |
975 | + done; \ |
976 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
977 | + unique=`for i in $$list; do \ |
978 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
979 | + done | \ |
980 | + $(AWK) ' { files[$$0] = 1; } \ |
981 | + END { for (i in files) print i; }'`; \ |
982 | + if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \ |
983 | + test -n "$$unique" || unique=$$empty_fix; \ |
984 | + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ |
985 | + $$tags $$unique; \ |
986 | + fi |
987 | +ctags: CTAGS |
988 | +CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \ |
989 | + $(TAGS_FILES) $(LISP) |
990 | + tags=; \ |
991 | + here=`pwd`; \ |
992 | + list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \ |
993 | + unique=`for i in $$list; do \ |
994 | + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ |
995 | + done | \ |
996 | + $(AWK) ' { files[$$0] = 1; } \ |
997 | + END { for (i in files) print i; }'`; \ |
998 | + test -z "$(CTAGS_ARGS)$$tags$$unique" \ |
999 | + || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ |
1000 | + $$tags $$unique |
1001 | + |
1002 | +GTAGS: |
1003 | + here=`$(am__cd) $(top_builddir) && pwd` \ |
1004 | + && cd $(top_srcdir) \ |
1005 | + && gtags -i $(GTAGS_ARGS) $$here |
1006 | + |
1007 | +distclean-tags: |
1008 | + -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags |
1009 | + |
1010 | +distdir: $(DISTFILES) |
1011 | + $(am__remove_distdir) |
1012 | + mkdir $(distdir) |
1013 | + $(mkdir_p) $(distdir)/$(top_srcdir) $(distdir)/control $(distdir)/debian |
1014 | + @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ |
1015 | + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ |
1016 | + list='$(DISTFILES)'; for file in $$list; do \ |
1017 | + case $$file in \ |
1018 | + $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ |
1019 | + $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ |
1020 | + esac; \ |
1021 | + if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ |
1022 | + dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ |
1023 | + if test "$$dir" != "$$file" && test "$$dir" != "."; then \ |
1024 | + dir="/$$dir"; \ |
1025 | + $(mkdir_p) "$(distdir)$$dir"; \ |
1026 | + else \ |
1027 | + dir=''; \ |
1028 | + fi; \ |
1029 | + if test -d $$d/$$file; then \ |
1030 | + if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ |
1031 | + cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ |
1032 | + fi; \ |
1033 | + cp -pR $$d/$$file $(distdir)$$dir || exit 1; \ |
1034 | + else \ |
1035 | + test -f $(distdir)/$$file \ |
1036 | + || cp -p $$d/$$file $(distdir)/$$file \ |
1037 | + || exit 1; \ |
1038 | + fi; \ |
1039 | + done |
1040 | + list='$(DIST_SUBDIRS)'; for subdir in $$list; do \ |
1041 | + if test "$$subdir" = .; then :; else \ |
1042 | + test -d "$(distdir)/$$subdir" \ |
1043 | + || $(mkdir_p) "$(distdir)/$$subdir" \ |
1044 | + || exit 1; \ |
1045 | + distdir=`$(am__cd) $(distdir) && pwd`; \ |
1046 | + top_distdir=`$(am__cd) $(top_distdir) && pwd`; \ |
1047 | + (cd $$subdir && \ |
1048 | + $(MAKE) $(AM_MAKEFLAGS) \ |
1049 | + top_distdir="$$top_distdir" \ |
1050 | + distdir="$$distdir/$$subdir" \ |
1051 | + distdir) \ |
1052 | + || exit 1; \ |
1053 | + fi; \ |
1054 | + done |
1055 | + $(MAKE) $(AM_MAKEFLAGS) \ |
1056 | + top_distdir="$(top_distdir)" distdir="$(distdir)" \ |
1057 | + dist-hook |
1058 | + -find $(distdir) -type d ! -perm -755 -exec chmod a+rwx,go+rx {} \; -o \ |
1059 | + ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \ |
1060 | + ! -type d ! -perm -400 -exec chmod a+r {} \; -o \ |
1061 | + ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \ |
1062 | + || chmod -R a+r $(distdir) |
1063 | +dist-gzip: distdir |
1064 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
1065 | + $(am__remove_distdir) |
1066 | +dist-bzip2: distdir |
1067 | + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 |
1068 | + $(am__remove_distdir) |
1069 | + |
1070 | +dist-tarZ: distdir |
1071 | + tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z |
1072 | + $(am__remove_distdir) |
1073 | + |
1074 | +dist-shar: distdir |
1075 | + shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz |
1076 | + $(am__remove_distdir) |
1077 | + |
1078 | +dist-zip: distdir |
1079 | + -rm -f $(distdir).zip |
1080 | + zip -rq $(distdir).zip $(distdir) |
1081 | + $(am__remove_distdir) |
1082 | + |
1083 | +dist dist-all: distdir |
1084 | + tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz |
1085 | + tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2 |
1086 | + $(am__remove_distdir) |
1087 | + |
1088 | +# This target untars the dist file and tries a VPATH configuration. Then |
1089 | +# it guarantees that the distribution is self-contained by making another |
1090 | +# tarfile. |
1091 | +distcheck: dist |
1092 | + case '$(DIST_ARCHIVES)' in \ |
1093 | + *.tar.gz*) \ |
1094 | + GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\ |
1095 | + *.tar.bz2*) \ |
1096 | + bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\ |
1097 | + *.tar.Z*) \ |
1098 | + uncompress -c $(distdir).tar.Z | $(am__untar) ;;\ |
1099 | + *.shar.gz*) \ |
1100 | + GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\ |
1101 | + *.zip*) \ |
1102 | + unzip $(distdir).zip ;;\ |
1103 | + esac |
1104 | + chmod -R a-w $(distdir); chmod a+w $(distdir) |
1105 | + mkdir $(distdir)/_build |
1106 | + mkdir $(distdir)/_inst |
1107 | + chmod a-w $(distdir) |
1108 | + dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \ |
1109 | + && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \ |
1110 | + && cd $(distdir)/_build \ |
1111 | + && ../configure --srcdir=.. --prefix="$$dc_install_base" \ |
1112 | + $(DISTCHECK_CONFIGURE_FLAGS) \ |
1113 | + && $(MAKE) $(AM_MAKEFLAGS) \ |
1114 | + && $(MAKE) $(AM_MAKEFLAGS) dvi \ |
1115 | + && $(MAKE) $(AM_MAKEFLAGS) check \ |
1116 | + && $(MAKE) $(AM_MAKEFLAGS) install \ |
1117 | + && $(MAKE) $(AM_MAKEFLAGS) installcheck \ |
1118 | + && $(MAKE) $(AM_MAKEFLAGS) uninstall \ |
1119 | + && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \ |
1120 | + distuninstallcheck \ |
1121 | + && chmod -R a-w "$$dc_install_base" \ |
1122 | + && ({ \ |
1123 | + (cd ../.. && umask 077 && mkdir "$$dc_destdir") \ |
1124 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \ |
1125 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \ |
1126 | + && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \ |
1127 | + distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \ |
1128 | + } || { rm -rf "$$dc_destdir"; exit 1; }) \ |
1129 | + && rm -rf "$$dc_destdir" \ |
1130 | + && $(MAKE) $(AM_MAKEFLAGS) dist \ |
1131 | + && rm -rf $(DIST_ARCHIVES) \ |
1132 | + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck |
1133 | + $(am__remove_distdir) |
1134 | + @(echo "$(distdir) archives ready for distribution: "; \ |
1135 | + list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \ |
1136 | + sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}' |
1137 | +distuninstallcheck: |
1138 | + @cd $(distuninstallcheck_dir) \ |
1139 | + && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \ |
1140 | + || { echo "ERROR: files left after uninstall:" ; \ |
1141 | + if test -n "$(DESTDIR)"; then \ |
1142 | + echo " (check DESTDIR support)"; \ |
1143 | + fi ; \ |
1144 | + $(distuninstallcheck_listfiles) ; \ |
1145 | + exit 1; } >&2 |
1146 | +distcleancheck: distclean |
1147 | + @if test '$(srcdir)' = . ; then \ |
1148 | + echo "ERROR: distcleancheck can only run from a VPATH build" ; \ |
1149 | + exit 1 ; \ |
1150 | + fi |
1151 | + @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \ |
1152 | + || { echo "ERROR: files left in build directory after distclean:" ; \ |
1153 | + $(distcleancheck_listfiles) ; \ |
1154 | + exit 1; } >&2 |
1155 | +check-am: all-am |
1156 | +check: check-recursive |
1157 | +all-am: Makefile config.h |
1158 | +installdirs: installdirs-recursive |
1159 | +installdirs-am: |
1160 | +install: install-recursive |
1161 | +install-exec: install-exec-recursive |
1162 | +install-data: install-data-recursive |
1163 | +uninstall: uninstall-recursive |
1164 | + |
1165 | +install-am: all-am |
1166 | + @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am |
1167 | + |
1168 | +installcheck: installcheck-recursive |
1169 | +install-strip: |
1170 | + $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ |
1171 | + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ |
1172 | + `test -z '$(STRIP)' || \ |
1173 | + echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install |
1174 | +mostlyclean-generic: |
1175 | + |
1176 | +clean-generic: |
1177 | + |
1178 | +distclean-generic: |
1179 | + -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) |
1180 | + |
1181 | +maintainer-clean-generic: |
1182 | + @echo "This command is intended for maintainers to use" |
1183 | + @echo "it deletes files that may require special tools to rebuild." |
1184 | + -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) |
1185 | +clean: clean-recursive |
1186 | + |
1187 | +clean-am: clean-generic clean-libtool mostlyclean-am |
1188 | + |
1189 | +distclean: distclean-recursive |
1190 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1191 | + -rm -f Makefile |
1192 | +distclean-am: clean-am distclean-generic distclean-hdr \ |
1193 | + distclean-libtool distclean-tags |
1194 | + |
1195 | +dvi: dvi-recursive |
1196 | + |
1197 | +dvi-am: |
1198 | + |
1199 | +html: html-recursive |
1200 | + |
1201 | +info: info-recursive |
1202 | + |
1203 | +info-am: |
1204 | + |
1205 | +install-data-am: install-data-local |
1206 | + |
1207 | +install-exec-am: |
1208 | + |
1209 | +install-info: install-info-recursive |
1210 | + |
1211 | +install-man: |
1212 | + |
1213 | +installcheck-am: |
1214 | + |
1215 | +maintainer-clean: maintainer-clean-recursive |
1216 | + -rm -f $(am__CONFIG_DISTCLEAN_FILES) |
1217 | + -rm -rf $(top_srcdir)/autom4te.cache |
1218 | + -rm -f Makefile |
1219 | +maintainer-clean-am: distclean-am maintainer-clean-generic |
1220 | + |
1221 | +mostlyclean: mostlyclean-recursive |
1222 | + |
1223 | +mostlyclean-am: mostlyclean-generic mostlyclean-libtool |
1224 | + |
1225 | +pdf: pdf-recursive |
1226 | + |
1227 | +pdf-am: |
1228 | + |
1229 | +ps: ps-recursive |
1230 | + |
1231 | +ps-am: |
1232 | + |
1233 | +uninstall-am: uninstall-info-am uninstall-local |
1234 | + |
1235 | +uninstall-info: uninstall-info-recursive |
1236 | + |
1237 | +.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \ |
1238 | + check-am clean clean-generic clean-libtool clean-recursive \ |
1239 | + ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \ |
1240 | + dist-hook dist-shar dist-tarZ dist-zip distcheck distclean \ |
1241 | + distclean-generic distclean-hdr distclean-libtool \ |
1242 | + distclean-recursive distclean-tags distcleancheck distdir \ |
1243 | + distuninstallcheck dvi dvi-am html html-am info info-am \ |
1244 | + install install-am install-data install-data-am \ |
1245 | + install-data-local install-exec install-exec-am install-info \ |
1246 | + install-info-am install-man install-strip installcheck \ |
1247 | + installcheck-am installdirs installdirs-am maintainer-clean \ |
1248 | + maintainer-clean-generic maintainer-clean-recursive \ |
1249 | + mostlyclean mostlyclean-generic mostlyclean-libtool \ |
1250 | + mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \ |
1251 | + uninstall uninstall-am uninstall-info-am uninstall-local |
1252 | + |
1253 | + |
1254 | +dist-hook: |
1255 | + cp control/ipmitool.spec $(distdir) |
1256 | + |
1257 | +install-data-local: |
1258 | + mkdir -p $(DESTDIR)$(DOCDIR) |
1259 | + $(INSTALL_DATA) $(DOCLIST) $(DESTDIR)$(DOCDIR) |
1260 | + |
1261 | +uninstall-local: |
1262 | + -rm -rf $(DESTDIR)$(DOCDIR) |
1263 | + |
1264 | +.PHONY: pkg |
1265 | +pkg: PKG := ipmitool-@VERSION@-@OS@-@ARCH@ |
1266 | +pkg: control/pkginfo |
1267 | + $(STRIP) src/ipmitool |
1268 | + $(STRIP) src/ipmitool |
1269 | + (cd control ; pkgmk -o -d /tmp) |
1270 | + pkgtrans -s /tmp $(PKG) ipmitool |
1271 | + gzip -c /tmp/$(PKG) > $(PKG).gz |
1272 | + -rm -rf /tmp/ipmitool /tmp/$(PKG) |
1273 | + |
1274 | +.PHONY: rpm |
1275 | +rpm: control/ipmitool.spec dist |
1276 | + mkdir -p $(RPMDIR)/{BUILD,RPMS,SRPMS,SOURCES,SPECS,tmp} |
1277 | + cp control/ipmitool.spec $(RPMDIR)/SPECS |
1278 | + BUILDDIR=$(RPMDIR) CONFIGDIR=$(BUILDDIR)/control \ |
1279 | + @RPMBUILD@ -ba --rcfile $(SRCDIR)/control/rpmrc \ |
1280 | + $(RPMDIR)/SPECS/ipmitool.spec |
1281 | + |
1282 | +.PHONY: clean-rpm |
1283 | +clean-rpm: |
1284 | + -rm -rf $(RPMDIR) |
1285 | +# Tell versions [3.59,3.63) of GNU make to not export all variables. |
1286 | +# Otherwise a system limit (for SysV at least) may be exceeded. |
1287 | +.NOEXPORT: |
1288 | |
1289 | === added file 'dcmitool-1.8.10/aclocal.m4' |
1290 | --- dcmitool-1.8.10/aclocal.m4 1970-01-01 00:00:00 +0000 |
1291 | +++ dcmitool-1.8.10/aclocal.m4 2014-02-26 13:52:23 +0000 |
1292 | @@ -0,0 +1,7022 @@ |
1293 | +# generated automatically by aclocal 1.9.5 -*- Autoconf -*- |
1294 | + |
1295 | +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, |
1296 | +# 2005 Free Software Foundation, Inc. |
1297 | +# This file is free software; the Free Software Foundation |
1298 | +# gives unlimited permission to copy and/or distribute it, |
1299 | +# with or without modifications, as long as this notice is preserved. |
1300 | + |
1301 | +# This program is distributed in the hope that it will be useful, |
1302 | +# but WITHOUT ANY WARRANTY, to the extent permitted by law; without |
1303 | +# even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
1304 | +# PARTICULAR PURPOSE. |
1305 | + |
1306 | +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- |
1307 | + |
1308 | +# serial 47 AC_PROG_LIBTOOL |
1309 | + |
1310 | + |
1311 | +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) |
1312 | +# ----------------------------------------------------------- |
1313 | +# If this macro is not defined by Autoconf, define it here. |
1314 | +m4_ifdef([AC_PROVIDE_IFELSE], |
1315 | + [], |
1316 | + [m4_define([AC_PROVIDE_IFELSE], |
1317 | + [m4_ifdef([AC_PROVIDE_$1], |
1318 | + [$2], [$3])])]) |
1319 | + |
1320 | + |
1321 | +# AC_PROG_LIBTOOL |
1322 | +# --------------- |
1323 | +AC_DEFUN([AC_PROG_LIBTOOL], |
1324 | +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl |
1325 | +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX |
1326 | +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. |
1327 | + AC_PROVIDE_IFELSE([AC_PROG_CXX], |
1328 | + [AC_LIBTOOL_CXX], |
1329 | + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX |
1330 | + ])]) |
1331 | +dnl And a similar setup for Fortran 77 support |
1332 | + AC_PROVIDE_IFELSE([AC_PROG_F77], |
1333 | + [AC_LIBTOOL_F77], |
1334 | + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 |
1335 | +])]) |
1336 | + |
1337 | +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
1338 | +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
1339 | +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
1340 | + AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
1341 | + [AC_LIBTOOL_GCJ], |
1342 | + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
1343 | + [AC_LIBTOOL_GCJ], |
1344 | + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
1345 | + [AC_LIBTOOL_GCJ], |
1346 | + [ifdef([AC_PROG_GCJ], |
1347 | + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
1348 | + ifdef([A][M_PROG_GCJ], |
1349 | + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) |
1350 | + ifdef([LT_AC_PROG_GCJ], |
1351 | + [define([LT_AC_PROG_GCJ], |
1352 | + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) |
1353 | +])])# AC_PROG_LIBTOOL |
1354 | + |
1355 | + |
1356 | +# _AC_PROG_LIBTOOL |
1357 | +# ---------------- |
1358 | +AC_DEFUN([_AC_PROG_LIBTOOL], |
1359 | +[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl |
1360 | +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl |
1361 | +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl |
1362 | +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl |
1363 | + |
1364 | +# This can be used to rebuild libtool when needed |
1365 | +LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
1366 | + |
1367 | +# Always use our own libtool. |
1368 | +LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
1369 | +AC_SUBST(LIBTOOL)dnl |
1370 | + |
1371 | +# Prevent multiple expansion |
1372 | +define([AC_PROG_LIBTOOL], []) |
1373 | +])# _AC_PROG_LIBTOOL |
1374 | + |
1375 | + |
1376 | +# AC_LIBTOOL_SETUP |
1377 | +# ---------------- |
1378 | +AC_DEFUN([AC_LIBTOOL_SETUP], |
1379 | +[AC_PREREQ(2.50)dnl |
1380 | +AC_REQUIRE([AC_ENABLE_SHARED])dnl |
1381 | +AC_REQUIRE([AC_ENABLE_STATIC])dnl |
1382 | +AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
1383 | +AC_REQUIRE([AC_CANONICAL_HOST])dnl |
1384 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
1385 | +AC_REQUIRE([AC_PROG_CC])dnl |
1386 | +AC_REQUIRE([AC_PROG_LD])dnl |
1387 | +AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl |
1388 | +AC_REQUIRE([AC_PROG_NM])dnl |
1389 | + |
1390 | +AC_REQUIRE([AC_PROG_LN_S])dnl |
1391 | +AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl |
1392 | +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
1393 | +AC_REQUIRE([AC_OBJEXT])dnl |
1394 | +AC_REQUIRE([AC_EXEEXT])dnl |
1395 | +dnl |
1396 | + |
1397 | +AC_LIBTOOL_SYS_MAX_CMD_LEN |
1398 | +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
1399 | +AC_LIBTOOL_OBJDIR |
1400 | + |
1401 | +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
1402 | +_LT_AC_PROG_ECHO_BACKSLASH |
1403 | + |
1404 | +case $host_os in |
1405 | +aix3*) |
1406 | + # AIX sometimes has problems with the GCC collect2 program. For some |
1407 | + # reason, if we set the COLLECT_NAMES environment variable, the problems |
1408 | + # vanish in a puff of smoke. |
1409 | + if test "X${COLLECT_NAMES+set}" != Xset; then |
1410 | + COLLECT_NAMES= |
1411 | + export COLLECT_NAMES |
1412 | + fi |
1413 | + ;; |
1414 | +esac |
1415 | + |
1416 | +# Sed substitution that helps us do robust quoting. It backslashifies |
1417 | +# metacharacters that are still active within double-quoted strings. |
1418 | +Xsed='sed -e 1s/^X//' |
1419 | +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] |
1420 | + |
1421 | +# Same as above, but do not quote variable references. |
1422 | +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] |
1423 | + |
1424 | +# Sed substitution to delay expansion of an escaped shell variable in a |
1425 | +# double_quote_subst'ed string. |
1426 | +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
1427 | + |
1428 | +# Sed substitution to avoid accidental globbing in evaled expressions |
1429 | +no_glob_subst='s/\*/\\\*/g' |
1430 | + |
1431 | +# Constants: |
1432 | +rm="rm -f" |
1433 | + |
1434 | +# Global variables: |
1435 | +default_ofile=libtool |
1436 | +can_build_shared=yes |
1437 | + |
1438 | +# All known linkers require a `.a' archive for static linking (except M$VC, |
1439 | +# which needs '.lib'). |
1440 | +libext=a |
1441 | +ltmain="$ac_aux_dir/ltmain.sh" |
1442 | +ofile="$default_ofile" |
1443 | +with_gnu_ld="$lt_cv_prog_gnu_ld" |
1444 | + |
1445 | +AC_CHECK_TOOL(AR, ar, false) |
1446 | +AC_CHECK_TOOL(RANLIB, ranlib, :) |
1447 | +AC_CHECK_TOOL(STRIP, strip, :) |
1448 | + |
1449 | +old_CC="$CC" |
1450 | +old_CFLAGS="$CFLAGS" |
1451 | + |
1452 | +# Set sane defaults for various variables |
1453 | +test -z "$AR" && AR=ar |
1454 | +test -z "$AR_FLAGS" && AR_FLAGS=cru |
1455 | +test -z "$AS" && AS=as |
1456 | +test -z "$CC" && CC=cc |
1457 | +test -z "$LTCC" && LTCC=$CC |
1458 | +test -z "$DLLTOOL" && DLLTOOL=dlltool |
1459 | +test -z "$LD" && LD=ld |
1460 | +test -z "$LN_S" && LN_S="ln -s" |
1461 | +test -z "$MAGIC_CMD" && MAGIC_CMD=file |
1462 | +test -z "$NM" && NM=nm |
1463 | +test -z "$SED" && SED=sed |
1464 | +test -z "$OBJDUMP" && OBJDUMP=objdump |
1465 | +test -z "$RANLIB" && RANLIB=: |
1466 | +test -z "$STRIP" && STRIP=: |
1467 | +test -z "$ac_objext" && ac_objext=o |
1468 | + |
1469 | +# Determine commands to create old-style static archives. |
1470 | +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
1471 | +old_postinstall_cmds='chmod 644 $oldlib' |
1472 | +old_postuninstall_cmds= |
1473 | + |
1474 | +if test -n "$RANLIB"; then |
1475 | + case $host_os in |
1476 | + openbsd*) |
1477 | + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
1478 | + ;; |
1479 | + *) |
1480 | + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
1481 | + ;; |
1482 | + esac |
1483 | + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
1484 | +fi |
1485 | + |
1486 | +_LT_CC_BASENAME([$compiler]) |
1487 | + |
1488 | +# Only perform the check for file, if the check method requires it |
1489 | +case $deplibs_check_method in |
1490 | +file_magic*) |
1491 | + if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
1492 | + AC_PATH_MAGIC |
1493 | + fi |
1494 | + ;; |
1495 | +esac |
1496 | + |
1497 | +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) |
1498 | +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
1499 | +enable_win32_dll=yes, enable_win32_dll=no) |
1500 | + |
1501 | +AC_ARG_ENABLE([libtool-lock], |
1502 | + [AC_HELP_STRING([--disable-libtool-lock], |
1503 | + [avoid locking (might break parallel builds)])]) |
1504 | +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1505 | + |
1506 | +AC_ARG_WITH([pic], |
1507 | + [AC_HELP_STRING([--with-pic], |
1508 | + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], |
1509 | + [pic_mode="$withval"], |
1510 | + [pic_mode=default]) |
1511 | +test -z "$pic_mode" && pic_mode=default |
1512 | + |
1513 | +# Use C for the default configuration in the libtool script |
1514 | +tagname= |
1515 | +AC_LIBTOOL_LANG_C_CONFIG |
1516 | +_LT_AC_TAGCONFIG |
1517 | +])# AC_LIBTOOL_SETUP |
1518 | + |
1519 | + |
1520 | +# _LT_AC_SYS_COMPILER |
1521 | +# ------------------- |
1522 | +AC_DEFUN([_LT_AC_SYS_COMPILER], |
1523 | +[AC_REQUIRE([AC_PROG_CC])dnl |
1524 | + |
1525 | +# If no C compiler was specified, use CC. |
1526 | +LTCC=${LTCC-"$CC"} |
1527 | + |
1528 | +# Allow CC to be a program name with arguments. |
1529 | +compiler=$CC |
1530 | +])# _LT_AC_SYS_COMPILER |
1531 | + |
1532 | + |
1533 | +# _LT_CC_BASENAME(CC) |
1534 | +# ------------------- |
1535 | +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. |
1536 | +AC_DEFUN([_LT_CC_BASENAME], |
1537 | +[for cc_temp in $1""; do |
1538 | + case $cc_temp in |
1539 | + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; |
1540 | + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; |
1541 | + \-*) ;; |
1542 | + *) break;; |
1543 | + esac |
1544 | +done |
1545 | +cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
1546 | +]) |
1547 | + |
1548 | + |
1549 | +# _LT_COMPILER_BOILERPLATE |
1550 | +# ------------------------ |
1551 | +# Check for compiler boilerplate output or warnings with |
1552 | +# the simple compiler test code. |
1553 | +AC_DEFUN([_LT_COMPILER_BOILERPLATE], |
1554 | +[ac_outfile=conftest.$ac_objext |
1555 | +printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
1556 | +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
1557 | +_lt_compiler_boilerplate=`cat conftest.err` |
1558 | +$rm conftest* |
1559 | +])# _LT_COMPILER_BOILERPLATE |
1560 | + |
1561 | + |
1562 | +# _LT_LINKER_BOILERPLATE |
1563 | +# ---------------------- |
1564 | +# Check for linker boilerplate output or warnings with |
1565 | +# the simple link test code. |
1566 | +AC_DEFUN([_LT_LINKER_BOILERPLATE], |
1567 | +[ac_outfile=conftest.$ac_objext |
1568 | +printf "$lt_simple_link_test_code" >conftest.$ac_ext |
1569 | +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
1570 | +_lt_linker_boilerplate=`cat conftest.err` |
1571 | +$rm conftest* |
1572 | +])# _LT_LINKER_BOILERPLATE |
1573 | + |
1574 | + |
1575 | +# _LT_AC_SYS_LIBPATH_AIX |
1576 | +# ---------------------- |
1577 | +# Links a minimal program and checks the executable |
1578 | +# for the system default hardcoded library path. In most cases, |
1579 | +# this is /usr/lib:/lib, but when the MPI compilers are used |
1580 | +# the location of the communication and MPI libs are included too. |
1581 | +# If we don't find anything, use the default library path according |
1582 | +# to the aix ld manual. |
1583 | +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], |
1584 | +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[ |
1585 | +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
1586 | +}'` |
1587 | +# Check for a 64-bit object if we didn't find anything. |
1588 | +if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
1589 | +}'`; fi],[]) |
1590 | +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
1591 | +])# _LT_AC_SYS_LIBPATH_AIX |
1592 | + |
1593 | + |
1594 | +# _LT_AC_SHELL_INIT(ARG) |
1595 | +# ---------------------- |
1596 | +AC_DEFUN([_LT_AC_SHELL_INIT], |
1597 | +[ifdef([AC_DIVERSION_NOTICE], |
1598 | + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], |
1599 | + [AC_DIVERT_PUSH(NOTICE)]) |
1600 | +$1 |
1601 | +AC_DIVERT_POP |
1602 | +])# _LT_AC_SHELL_INIT |
1603 | + |
1604 | + |
1605 | +# _LT_AC_PROG_ECHO_BACKSLASH |
1606 | +# -------------------------- |
1607 | +# Add some code to the start of the generated configure script which |
1608 | +# will find an echo command which doesn't interpret backslashes. |
1609 | +AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], |
1610 | +[_LT_AC_SHELL_INIT([ |
1611 | +# Check that we are running under the correct shell. |
1612 | +SHELL=${CONFIG_SHELL-/bin/sh} |
1613 | + |
1614 | +case X$ECHO in |
1615 | +X*--fallback-echo) |
1616 | + # Remove one level of quotation (which was required for Make). |
1617 | + ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` |
1618 | + ;; |
1619 | +esac |
1620 | + |
1621 | +echo=${ECHO-echo} |
1622 | +if test "X[$]1" = X--no-reexec; then |
1623 | + # Discard the --no-reexec flag, and continue. |
1624 | + shift |
1625 | +elif test "X[$]1" = X--fallback-echo; then |
1626 | + # Avoid inline document here, it may be left over |
1627 | + : |
1628 | +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
1629 | + # Yippee, $echo works! |
1630 | + : |
1631 | +else |
1632 | + # Restart under the correct shell. |
1633 | + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} |
1634 | +fi |
1635 | + |
1636 | +if test "X[$]1" = X--fallback-echo; then |
1637 | + # used as fallback echo |
1638 | + shift |
1639 | + cat <<EOF |
1640 | +[$]* |
1641 | +EOF |
1642 | + exit 0 |
1643 | +fi |
1644 | + |
1645 | +# The HP-UX ksh and POSIX shell print the target directory to stdout |
1646 | +# if CDPATH is set. |
1647 | +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
1648 | + |
1649 | +if test -z "$ECHO"; then |
1650 | +if test "X${echo_test_string+set}" != Xset; then |
1651 | +# find a string as large as possible, as long as the shell can cope with it |
1652 | + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do |
1653 | + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
1654 | + if (echo_test_string="`eval $cmd`") 2>/dev/null && |
1655 | + echo_test_string="`eval $cmd`" && |
1656 | + (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
1657 | + then |
1658 | + break |
1659 | + fi |
1660 | + done |
1661 | +fi |
1662 | + |
1663 | +if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
1664 | + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
1665 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1666 | + : |
1667 | +else |
1668 | + # The Solaris, AIX, and Digital Unix default echo programs unquote |
1669 | + # backslashes. This makes it impossible to quote backslashes using |
1670 | + # echo "$something" | sed 's/\\/\\\\/g' |
1671 | + # |
1672 | + # So, first we look for a working echo in the user's PATH. |
1673 | + |
1674 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
1675 | + for dir in $PATH /usr/ucb; do |
1676 | + IFS="$lt_save_ifs" |
1677 | + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
1678 | + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
1679 | + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
1680 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1681 | + echo="$dir/echo" |
1682 | + break |
1683 | + fi |
1684 | + done |
1685 | + IFS="$lt_save_ifs" |
1686 | + |
1687 | + if test "X$echo" = Xecho; then |
1688 | + # We didn't find a better echo, so look for alternatives. |
1689 | + if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
1690 | + echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
1691 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1692 | + # This shell has a builtin print -r that does the trick. |
1693 | + echo='print -r' |
1694 | + elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
1695 | + test "X$CONFIG_SHELL" != X/bin/ksh; then |
1696 | + # If we have ksh, try running configure again with it. |
1697 | + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
1698 | + export ORIGINAL_CONFIG_SHELL |
1699 | + CONFIG_SHELL=/bin/ksh |
1700 | + export CONFIG_SHELL |
1701 | + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} |
1702 | + else |
1703 | + # Try using printf. |
1704 | + echo='printf %s\n' |
1705 | + if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
1706 | + echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
1707 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1708 | + # Cool, printf works |
1709 | + : |
1710 | + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
1711 | + test "X$echo_testing_string" = 'X\t' && |
1712 | + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
1713 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1714 | + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
1715 | + export CONFIG_SHELL |
1716 | + SHELL="$CONFIG_SHELL" |
1717 | + export SHELL |
1718 | + echo="$CONFIG_SHELL [$]0 --fallback-echo" |
1719 | + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && |
1720 | + test "X$echo_testing_string" = 'X\t' && |
1721 | + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
1722 | + test "X$echo_testing_string" = "X$echo_test_string"; then |
1723 | + echo="$CONFIG_SHELL [$]0 --fallback-echo" |
1724 | + else |
1725 | + # maybe with a smaller string... |
1726 | + prev=: |
1727 | + |
1728 | + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do |
1729 | + if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
1730 | + then |
1731 | + break |
1732 | + fi |
1733 | + prev="$cmd" |
1734 | + done |
1735 | + |
1736 | + if test "$prev" != 'sed 50q "[$]0"'; then |
1737 | + echo_test_string=`eval $prev` |
1738 | + export echo_test_string |
1739 | + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} |
1740 | + else |
1741 | + # Oops. We lost completely, so just stick with echo. |
1742 | + echo=echo |
1743 | + fi |
1744 | + fi |
1745 | + fi |
1746 | + fi |
1747 | +fi |
1748 | +fi |
1749 | + |
1750 | +# Copy echo and quote the copy suitably for passing to libtool from |
1751 | +# the Makefile, instead of quoting the original, which is used later. |
1752 | +ECHO=$echo |
1753 | +if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then |
1754 | + ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" |
1755 | +fi |
1756 | + |
1757 | +AC_SUBST(ECHO) |
1758 | +])])# _LT_AC_PROG_ECHO_BACKSLASH |
1759 | + |
1760 | + |
1761 | +# _LT_AC_LOCK |
1762 | +# ----------- |
1763 | +AC_DEFUN([_LT_AC_LOCK], |
1764 | +[AC_ARG_ENABLE([libtool-lock], |
1765 | + [AC_HELP_STRING([--disable-libtool-lock], |
1766 | + [avoid locking (might break parallel builds)])]) |
1767 | +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
1768 | + |
1769 | +# Some flags need to be propagated to the compiler or linker for good |
1770 | +# libtool support. |
1771 | +case $host in |
1772 | +ia64-*-hpux*) |
1773 | + # Find out which ABI we are using. |
1774 | + echo 'int i;' > conftest.$ac_ext |
1775 | + if AC_TRY_EVAL(ac_compile); then |
1776 | + case `/usr/bin/file conftest.$ac_objext` in |
1777 | + *ELF-32*) |
1778 | + HPUX_IA64_MODE="32" |
1779 | + ;; |
1780 | + *ELF-64*) |
1781 | + HPUX_IA64_MODE="64" |
1782 | + ;; |
1783 | + esac |
1784 | + fi |
1785 | + rm -rf conftest* |
1786 | + ;; |
1787 | +*-*-irix6*) |
1788 | + # Find out which ABI we are using. |
1789 | + echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
1790 | + if AC_TRY_EVAL(ac_compile); then |
1791 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
1792 | + case `/usr/bin/file conftest.$ac_objext` in |
1793 | + *32-bit*) |
1794 | + LD="${LD-ld} -melf32bsmip" |
1795 | + ;; |
1796 | + *N32*) |
1797 | + LD="${LD-ld} -melf32bmipn32" |
1798 | + ;; |
1799 | + *64-bit*) |
1800 | + LD="${LD-ld} -melf64bmip" |
1801 | + ;; |
1802 | + esac |
1803 | + else |
1804 | + case `/usr/bin/file conftest.$ac_objext` in |
1805 | + *32-bit*) |
1806 | + LD="${LD-ld} -32" |
1807 | + ;; |
1808 | + *N32*) |
1809 | + LD="${LD-ld} -n32" |
1810 | + ;; |
1811 | + *64-bit*) |
1812 | + LD="${LD-ld} -64" |
1813 | + ;; |
1814 | + esac |
1815 | + fi |
1816 | + fi |
1817 | + rm -rf conftest* |
1818 | + ;; |
1819 | + |
1820 | +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
1821 | + # Find out which ABI we are using. |
1822 | + echo 'int i;' > conftest.$ac_ext |
1823 | + if AC_TRY_EVAL(ac_compile); then |
1824 | + case "`/usr/bin/file conftest.o`" in |
1825 | + *32-bit*) |
1826 | + case $host in |
1827 | + x86_64-*linux*) |
1828 | + LD="${LD-ld} -m elf_i386" |
1829 | + ;; |
1830 | + ppc64-*linux*|powerpc64-*linux*) |
1831 | + LD="${LD-ld} -m elf32ppclinux" |
1832 | + ;; |
1833 | + s390x-*linux*) |
1834 | + LD="${LD-ld} -m elf_s390" |
1835 | + ;; |
1836 | + sparc64-*linux*) |
1837 | + LD="${LD-ld} -m elf32_sparc" |
1838 | + ;; |
1839 | + esac |
1840 | + ;; |
1841 | + *64-bit*) |
1842 | + case $host in |
1843 | + x86_64-*linux*) |
1844 | + LD="${LD-ld} -m elf_x86_64" |
1845 | + ;; |
1846 | + ppc*-*linux*|powerpc*-*linux*) |
1847 | + LD="${LD-ld} -m elf64ppc" |
1848 | + ;; |
1849 | + s390*-*linux*) |
1850 | + LD="${LD-ld} -m elf64_s390" |
1851 | + ;; |
1852 | + sparc*-*linux*) |
1853 | + LD="${LD-ld} -m elf64_sparc" |
1854 | + ;; |
1855 | + esac |
1856 | + ;; |
1857 | + esac |
1858 | + fi |
1859 | + rm -rf conftest* |
1860 | + ;; |
1861 | + |
1862 | +*-*-sco3.2v5*) |
1863 | + # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
1864 | + SAVE_CFLAGS="$CFLAGS" |
1865 | + CFLAGS="$CFLAGS -belf" |
1866 | + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
1867 | + [AC_LANG_PUSH(C) |
1868 | + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
1869 | + AC_LANG_POP]) |
1870 | + if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
1871 | + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
1872 | + CFLAGS="$SAVE_CFLAGS" |
1873 | + fi |
1874 | + ;; |
1875 | +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
1876 | +[*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
1877 | + AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
1878 | + AC_CHECK_TOOL(AS, as, false) |
1879 | + AC_CHECK_TOOL(OBJDUMP, objdump, false) |
1880 | + ;; |
1881 | + ]) |
1882 | +esac |
1883 | + |
1884 | +need_locks="$enable_libtool_lock" |
1885 | + |
1886 | +])# _LT_AC_LOCK |
1887 | + |
1888 | + |
1889 | +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1890 | +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) |
1891 | +# ---------------------------------------------------------------- |
1892 | +# Check whether the given compiler option works |
1893 | +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], |
1894 | +[AC_REQUIRE([LT_AC_PROG_SED]) |
1895 | +AC_CACHE_CHECK([$1], [$2], |
1896 | + [$2=no |
1897 | + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) |
1898 | + printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
1899 | + lt_compiler_flag="$3" |
1900 | + # Insert the option either (1) after the last *FLAGS variable, or |
1901 | + # (2) before a word containing "conftest.", or (3) at the end. |
1902 | + # Note that $ac_compile itself does not contain backslashes and begins |
1903 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
1904 | + # The option is referenced via a variable to avoid confusing sed. |
1905 | + lt_compile=`echo "$ac_compile" | $SED \ |
1906 | + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
1907 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
1908 | + -e 's:$: $lt_compiler_flag:'` |
1909 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
1910 | + (eval "$lt_compile" 2>conftest.err) |
1911 | + ac_status=$? |
1912 | + cat conftest.err >&AS_MESSAGE_LOG_FD |
1913 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
1914 | + if (exit $ac_status) && test -s "$ac_outfile"; then |
1915 | + # The compiler can only warn and ignore the option if not recognized |
1916 | + # So say no if there are warnings other than the usual output. |
1917 | + $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
1918 | + $SED '/^$/d' conftest.err >conftest.er2 |
1919 | + if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
1920 | + $2=yes |
1921 | + fi |
1922 | + fi |
1923 | + $rm conftest* |
1924 | +]) |
1925 | + |
1926 | +if test x"[$]$2" = xyes; then |
1927 | + ifelse([$5], , :, [$5]) |
1928 | +else |
1929 | + ifelse([$6], , :, [$6]) |
1930 | +fi |
1931 | +])# AC_LIBTOOL_COMPILER_OPTION |
1932 | + |
1933 | + |
1934 | +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
1935 | +# [ACTION-SUCCESS], [ACTION-FAILURE]) |
1936 | +# ------------------------------------------------------------ |
1937 | +# Check whether the given compiler option works |
1938 | +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
1939 | +[AC_CACHE_CHECK([$1], [$2], |
1940 | + [$2=no |
1941 | + save_LDFLAGS="$LDFLAGS" |
1942 | + LDFLAGS="$LDFLAGS $3" |
1943 | + printf "$lt_simple_link_test_code" > conftest.$ac_ext |
1944 | + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
1945 | + # The compiler can only warn and ignore the option if not recognized |
1946 | + # So say no if there are warnings |
1947 | + if test -s conftest.err; then |
1948 | + # Append any errors to the config.log. |
1949 | + cat conftest.err 1>&AS_MESSAGE_LOG_FD |
1950 | + $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp |
1951 | + $SED '/^$/d' conftest.err >conftest.er2 |
1952 | + if diff conftest.exp conftest.er2 >/dev/null; then |
1953 | + $2=yes |
1954 | + fi |
1955 | + else |
1956 | + $2=yes |
1957 | + fi |
1958 | + fi |
1959 | + $rm conftest* |
1960 | + LDFLAGS="$save_LDFLAGS" |
1961 | +]) |
1962 | + |
1963 | +if test x"[$]$2" = xyes; then |
1964 | + ifelse([$4], , :, [$4]) |
1965 | +else |
1966 | + ifelse([$5], , :, [$5]) |
1967 | +fi |
1968 | +])# AC_LIBTOOL_LINKER_OPTION |
1969 | + |
1970 | + |
1971 | +# AC_LIBTOOL_SYS_MAX_CMD_LEN |
1972 | +# -------------------------- |
1973 | +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], |
1974 | +[# find the maximum length of command line arguments |
1975 | +AC_MSG_CHECKING([the maximum length of command line arguments]) |
1976 | +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl |
1977 | + i=0 |
1978 | + teststring="ABCD" |
1979 | + |
1980 | + case $build_os in |
1981 | + msdosdjgpp*) |
1982 | + # On DJGPP, this test can blow up pretty badly due to problems in libc |
1983 | + # (any single argument exceeding 2000 bytes causes a buffer overrun |
1984 | + # during glob expansion). Even if it were fixed, the result of this |
1985 | + # check would be larger than it should be. |
1986 | + lt_cv_sys_max_cmd_len=12288; # 12K is about right |
1987 | + ;; |
1988 | + |
1989 | + gnu*) |
1990 | + # Under GNU Hurd, this test is not required because there is |
1991 | + # no limit to the length of command line arguments. |
1992 | + # Libtool will interpret -1 as no limit whatsoever |
1993 | + lt_cv_sys_max_cmd_len=-1; |
1994 | + ;; |
1995 | + |
1996 | + cygwin* | mingw*) |
1997 | + # On Win9x/ME, this test blows up -- it succeeds, but takes |
1998 | + # about 5 minutes as the teststring grows exponentially. |
1999 | + # Worse, since 9x/ME are not pre-emptively multitasking, |
2000 | + # you end up with a "frozen" computer, even though with patience |
2001 | + # the test eventually succeeds (with a max line length of 256k). |
2002 | + # Instead, let's just punt: use the minimum linelength reported by |
2003 | + # all of the supported platforms: 8192 (on NT/2K/XP). |
2004 | + lt_cv_sys_max_cmd_len=8192; |
2005 | + ;; |
2006 | + |
2007 | + amigaos*) |
2008 | + # On AmigaOS with pdksh, this test takes hours, literally. |
2009 | + # So we just punt and use a minimum line length of 8192. |
2010 | + lt_cv_sys_max_cmd_len=8192; |
2011 | + ;; |
2012 | + |
2013 | + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
2014 | + # This has been around since 386BSD, at least. Likely further. |
2015 | + if test -x /sbin/sysctl; then |
2016 | + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
2017 | + elif test -x /usr/sbin/sysctl; then |
2018 | + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
2019 | + else |
2020 | + lt_cv_sys_max_cmd_len=65536 # usable default for *BSD |
2021 | + fi |
2022 | + # And add a safety zone |
2023 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
2024 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
2025 | + ;; |
2026 | + osf*) |
2027 | + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
2028 | + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
2029 | + # nice to cause kernel panics so lets avoid the loop below. |
2030 | + # First set a reasonable default. |
2031 | + lt_cv_sys_max_cmd_len=16384 |
2032 | + # |
2033 | + if test -x /sbin/sysconfig; then |
2034 | + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
2035 | + *1*) lt_cv_sys_max_cmd_len=-1 ;; |
2036 | + esac |
2037 | + fi |
2038 | + ;; |
2039 | + *) |
2040 | + # If test is not a shell built-in, we'll probably end up computing a |
2041 | + # maximum length that is only half of the actual maximum length, but |
2042 | + # we can't tell. |
2043 | + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
2044 | + while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ |
2045 | + = "XX$teststring") >/dev/null 2>&1 && |
2046 | + new_result=`expr "X$teststring" : ".*" 2>&1` && |
2047 | + lt_cv_sys_max_cmd_len=$new_result && |
2048 | + test $i != 17 # 1/2 MB should be enough |
2049 | + do |
2050 | + i=`expr $i + 1` |
2051 | + teststring=$teststring$teststring |
2052 | + done |
2053 | + teststring= |
2054 | + # Add a significant safety factor because C++ compilers can tack on massive |
2055 | + # amounts of additional arguments before passing them to the linker. |
2056 | + # It appears as though 1/2 is a usable value. |
2057 | + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
2058 | + ;; |
2059 | + esac |
2060 | +]) |
2061 | +if test -n $lt_cv_sys_max_cmd_len ; then |
2062 | + AC_MSG_RESULT($lt_cv_sys_max_cmd_len) |
2063 | +else |
2064 | + AC_MSG_RESULT(none) |
2065 | +fi |
2066 | +])# AC_LIBTOOL_SYS_MAX_CMD_LEN |
2067 | + |
2068 | + |
2069 | +# _LT_AC_CHECK_DLFCN |
2070 | +# -------------------- |
2071 | +AC_DEFUN([_LT_AC_CHECK_DLFCN], |
2072 | +[AC_CHECK_HEADERS(dlfcn.h)dnl |
2073 | +])# _LT_AC_CHECK_DLFCN |
2074 | + |
2075 | + |
2076 | +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, |
2077 | +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) |
2078 | +# ------------------------------------------------------------------ |
2079 | +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], |
2080 | +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
2081 | +if test "$cross_compiling" = yes; then : |
2082 | + [$4] |
2083 | +else |
2084 | + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
2085 | + lt_status=$lt_dlunknown |
2086 | + cat > conftest.$ac_ext <<EOF |
2087 | +[#line __oline__ "configure" |
2088 | +#include "confdefs.h" |
2089 | + |
2090 | +#if HAVE_DLFCN_H |
2091 | +#include <dlfcn.h> |
2092 | +#endif |
2093 | + |
2094 | +#include <stdio.h> |
2095 | + |
2096 | +#ifdef RTLD_GLOBAL |
2097 | +# define LT_DLGLOBAL RTLD_GLOBAL |
2098 | +#else |
2099 | +# ifdef DL_GLOBAL |
2100 | +# define LT_DLGLOBAL DL_GLOBAL |
2101 | +# else |
2102 | +# define LT_DLGLOBAL 0 |
2103 | +# endif |
2104 | +#endif |
2105 | + |
2106 | +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
2107 | + find out it does not work in some platform. */ |
2108 | +#ifndef LT_DLLAZY_OR_NOW |
2109 | +# ifdef RTLD_LAZY |
2110 | +# define LT_DLLAZY_OR_NOW RTLD_LAZY |
2111 | +# else |
2112 | +# ifdef DL_LAZY |
2113 | +# define LT_DLLAZY_OR_NOW DL_LAZY |
2114 | +# else |
2115 | +# ifdef RTLD_NOW |
2116 | +# define LT_DLLAZY_OR_NOW RTLD_NOW |
2117 | +# else |
2118 | +# ifdef DL_NOW |
2119 | +# define LT_DLLAZY_OR_NOW DL_NOW |
2120 | +# else |
2121 | +# define LT_DLLAZY_OR_NOW 0 |
2122 | +# endif |
2123 | +# endif |
2124 | +# endif |
2125 | +# endif |
2126 | +#endif |
2127 | + |
2128 | +#ifdef __cplusplus |
2129 | +extern "C" void exit (int); |
2130 | +#endif |
2131 | + |
2132 | +void fnord() { int i=42;} |
2133 | +int main () |
2134 | +{ |
2135 | + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
2136 | + int status = $lt_dlunknown; |
2137 | + |
2138 | + if (self) |
2139 | + { |
2140 | + if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
2141 | + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
2142 | + /* dlclose (self); */ |
2143 | + } |
2144 | + |
2145 | + exit (status); |
2146 | +}] |
2147 | +EOF |
2148 | + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then |
2149 | + (./conftest; exit; ) 2>/dev/null |
2150 | + lt_status=$? |
2151 | + case x$lt_status in |
2152 | + x$lt_dlno_uscore) $1 ;; |
2153 | + x$lt_dlneed_uscore) $2 ;; |
2154 | + x$lt_unknown|x*) $3 ;; |
2155 | + esac |
2156 | + else : |
2157 | + # compilation failed |
2158 | + $3 |
2159 | + fi |
2160 | +fi |
2161 | +rm -fr conftest* |
2162 | +])# _LT_AC_TRY_DLOPEN_SELF |
2163 | + |
2164 | + |
2165 | +# AC_LIBTOOL_DLOPEN_SELF |
2166 | +# ------------------- |
2167 | +AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], |
2168 | +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl |
2169 | +if test "x$enable_dlopen" != xyes; then |
2170 | + enable_dlopen=unknown |
2171 | + enable_dlopen_self=unknown |
2172 | + enable_dlopen_self_static=unknown |
2173 | +else |
2174 | + lt_cv_dlopen=no |
2175 | + lt_cv_dlopen_libs= |
2176 | + |
2177 | + case $host_os in |
2178 | + beos*) |
2179 | + lt_cv_dlopen="load_add_on" |
2180 | + lt_cv_dlopen_libs= |
2181 | + lt_cv_dlopen_self=yes |
2182 | + ;; |
2183 | + |
2184 | + mingw* | pw32*) |
2185 | + lt_cv_dlopen="LoadLibrary" |
2186 | + lt_cv_dlopen_libs= |
2187 | + ;; |
2188 | + |
2189 | + cygwin*) |
2190 | + lt_cv_dlopen="dlopen" |
2191 | + lt_cv_dlopen_libs= |
2192 | + ;; |
2193 | + |
2194 | + darwin*) |
2195 | + # if libdl is installed we need to link against it |
2196 | + AC_CHECK_LIB([dl], [dlopen], |
2197 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ |
2198 | + lt_cv_dlopen="dyld" |
2199 | + lt_cv_dlopen_libs= |
2200 | + lt_cv_dlopen_self=yes |
2201 | + ]) |
2202 | + ;; |
2203 | + |
2204 | + *) |
2205 | + AC_CHECK_FUNC([shl_load], |
2206 | + [lt_cv_dlopen="shl_load"], |
2207 | + [AC_CHECK_LIB([dld], [shl_load], |
2208 | + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], |
2209 | + [AC_CHECK_FUNC([dlopen], |
2210 | + [lt_cv_dlopen="dlopen"], |
2211 | + [AC_CHECK_LIB([dl], [dlopen], |
2212 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], |
2213 | + [AC_CHECK_LIB([svld], [dlopen], |
2214 | + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], |
2215 | + [AC_CHECK_LIB([dld], [dld_link], |
2216 | + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) |
2217 | + ]) |
2218 | + ]) |
2219 | + ]) |
2220 | + ]) |
2221 | + ]) |
2222 | + ;; |
2223 | + esac |
2224 | + |
2225 | + if test "x$lt_cv_dlopen" != xno; then |
2226 | + enable_dlopen=yes |
2227 | + else |
2228 | + enable_dlopen=no |
2229 | + fi |
2230 | + |
2231 | + case $lt_cv_dlopen in |
2232 | + dlopen) |
2233 | + save_CPPFLAGS="$CPPFLAGS" |
2234 | + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
2235 | + |
2236 | + save_LDFLAGS="$LDFLAGS" |
2237 | + eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
2238 | + |
2239 | + save_LIBS="$LIBS" |
2240 | + LIBS="$lt_cv_dlopen_libs $LIBS" |
2241 | + |
2242 | + AC_CACHE_CHECK([whether a program can dlopen itself], |
2243 | + lt_cv_dlopen_self, [dnl |
2244 | + _LT_AC_TRY_DLOPEN_SELF( |
2245 | + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, |
2246 | + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) |
2247 | + ]) |
2248 | + |
2249 | + if test "x$lt_cv_dlopen_self" = xyes; then |
2250 | + LDFLAGS="$LDFLAGS $link_static_flag" |
2251 | + AC_CACHE_CHECK([whether a statically linked program can dlopen itself], |
2252 | + lt_cv_dlopen_self_static, [dnl |
2253 | + _LT_AC_TRY_DLOPEN_SELF( |
2254 | + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, |
2255 | + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) |
2256 | + ]) |
2257 | + fi |
2258 | + |
2259 | + CPPFLAGS="$save_CPPFLAGS" |
2260 | + LDFLAGS="$save_LDFLAGS" |
2261 | + LIBS="$save_LIBS" |
2262 | + ;; |
2263 | + esac |
2264 | + |
2265 | + case $lt_cv_dlopen_self in |
2266 | + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
2267 | + *) enable_dlopen_self=unknown ;; |
2268 | + esac |
2269 | + |
2270 | + case $lt_cv_dlopen_self_static in |
2271 | + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
2272 | + *) enable_dlopen_self_static=unknown ;; |
2273 | + esac |
2274 | +fi |
2275 | +])# AC_LIBTOOL_DLOPEN_SELF |
2276 | + |
2277 | + |
2278 | +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) |
2279 | +# --------------------------------- |
2280 | +# Check to see if options -c and -o are simultaneously supported by compiler |
2281 | +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], |
2282 | +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
2283 | +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], |
2284 | + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], |
2285 | + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no |
2286 | + $rm -r conftest 2>/dev/null |
2287 | + mkdir conftest |
2288 | + cd conftest |
2289 | + mkdir out |
2290 | + printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
2291 | + |
2292 | + lt_compiler_flag="-o out/conftest2.$ac_objext" |
2293 | + # Insert the option either (1) after the last *FLAGS variable, or |
2294 | + # (2) before a word containing "conftest.", or (3) at the end. |
2295 | + # Note that $ac_compile itself does not contain backslashes and begins |
2296 | + # with a dollar sign (not a hyphen), so the echo should work correctly. |
2297 | + lt_compile=`echo "$ac_compile" | $SED \ |
2298 | + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ |
2299 | + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ |
2300 | + -e 's:$: $lt_compiler_flag:'` |
2301 | + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) |
2302 | + (eval "$lt_compile" 2>out/conftest.err) |
2303 | + ac_status=$? |
2304 | + cat out/conftest.err >&AS_MESSAGE_LOG_FD |
2305 | + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD |
2306 | + if (exit $ac_status) && test -s out/conftest2.$ac_objext |
2307 | + then |
2308 | + # The compiler can only warn and ignore the option if not recognized |
2309 | + # So say no if there are warnings |
2310 | + $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
2311 | + $SED '/^$/d' out/conftest.err >out/conftest.er2 |
2312 | + if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
2313 | + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes |
2314 | + fi |
2315 | + fi |
2316 | + chmod u+w . |
2317 | + $rm conftest* |
2318 | + # SGI C++ compiler will create directory out/ii_files/ for |
2319 | + # template instantiation |
2320 | + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
2321 | + $rm out/* && rmdir out |
2322 | + cd .. |
2323 | + rmdir conftest |
2324 | + $rm conftest* |
2325 | +]) |
2326 | +])# AC_LIBTOOL_PROG_CC_C_O |
2327 | + |
2328 | + |
2329 | +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) |
2330 | +# ----------------------------------------- |
2331 | +# Check to see if we can do hard links to lock some files if needed |
2332 | +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], |
2333 | +[AC_REQUIRE([_LT_AC_LOCK])dnl |
2334 | + |
2335 | +hard_links="nottested" |
2336 | +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then |
2337 | + # do not overwrite the value of need_locks provided by the user |
2338 | + AC_MSG_CHECKING([if we can lock with hard links]) |
2339 | + hard_links=yes |
2340 | + $rm conftest* |
2341 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
2342 | + touch conftest.a |
2343 | + ln conftest.a conftest.b 2>&5 || hard_links=no |
2344 | + ln conftest.a conftest.b 2>/dev/null && hard_links=no |
2345 | + AC_MSG_RESULT([$hard_links]) |
2346 | + if test "$hard_links" = no; then |
2347 | + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) |
2348 | + need_locks=warn |
2349 | + fi |
2350 | +else |
2351 | + need_locks=no |
2352 | +fi |
2353 | +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS |
2354 | + |
2355 | + |
2356 | +# AC_LIBTOOL_OBJDIR |
2357 | +# ----------------- |
2358 | +AC_DEFUN([AC_LIBTOOL_OBJDIR], |
2359 | +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir], |
2360 | +[rm -f .libs 2>/dev/null |
2361 | +mkdir .libs 2>/dev/null |
2362 | +if test -d .libs; then |
2363 | + lt_cv_objdir=.libs |
2364 | +else |
2365 | + # MS-DOS does not allow filenames that begin with a dot. |
2366 | + lt_cv_objdir=_libs |
2367 | +fi |
2368 | +rmdir .libs 2>/dev/null]) |
2369 | +objdir=$lt_cv_objdir |
2370 | +])# AC_LIBTOOL_OBJDIR |
2371 | + |
2372 | + |
2373 | +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) |
2374 | +# ---------------------------------------------- |
2375 | +# Check hardcoding attributes. |
2376 | +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], |
2377 | +[AC_MSG_CHECKING([how to hardcode library paths into programs]) |
2378 | +_LT_AC_TAGVAR(hardcode_action, $1)= |
2379 | +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ |
2380 | + test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ |
2381 | + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then |
2382 | + |
2383 | + # We can hardcode non-existant directories. |
2384 | + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && |
2385 | + # If the only mechanism to avoid hardcoding is shlibpath_var, we |
2386 | + # have to relink, otherwise we might link with an installed library |
2387 | + # when we should be linking with a yet-to-be-installed one |
2388 | + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && |
2389 | + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then |
2390 | + # Linking always hardcodes the temporary library directory. |
2391 | + _LT_AC_TAGVAR(hardcode_action, $1)=relink |
2392 | + else |
2393 | + # We can link without hardcoding, and we can hardcode nonexisting dirs. |
2394 | + _LT_AC_TAGVAR(hardcode_action, $1)=immediate |
2395 | + fi |
2396 | +else |
2397 | + # We cannot hardcode anything, or else we can only hardcode existing |
2398 | + # directories. |
2399 | + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported |
2400 | +fi |
2401 | +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) |
2402 | + |
2403 | +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then |
2404 | + # Fast installation is not supported |
2405 | + enable_fast_install=no |
2406 | +elif test "$shlibpath_overrides_runpath" = yes || |
2407 | + test "$enable_shared" = no; then |
2408 | + # Fast installation is not necessary |
2409 | + enable_fast_install=needless |
2410 | +fi |
2411 | +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH |
2412 | + |
2413 | + |
2414 | +# AC_LIBTOOL_SYS_LIB_STRIP |
2415 | +# ------------------------ |
2416 | +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], |
2417 | +[striplib= |
2418 | +old_striplib= |
2419 | +AC_MSG_CHECKING([whether stripping libraries is possible]) |
2420 | +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
2421 | + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
2422 | + test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
2423 | + AC_MSG_RESULT([yes]) |
2424 | +else |
2425 | +# FIXME - insert some real tests, host_os isn't really good enough |
2426 | + case $host_os in |
2427 | + darwin*) |
2428 | + if test -n "$STRIP" ; then |
2429 | + striplib="$STRIP -x" |
2430 | + AC_MSG_RESULT([yes]) |
2431 | + else |
2432 | + AC_MSG_RESULT([no]) |
2433 | +fi |
2434 | + ;; |
2435 | + *) |
2436 | + AC_MSG_RESULT([no]) |
2437 | + ;; |
2438 | + esac |
2439 | +fi |
2440 | +])# AC_LIBTOOL_SYS_LIB_STRIP |
2441 | + |
2442 | + |
2443 | +# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
2444 | +# ----------------------------- |
2445 | +# PORTME Fill in your ld.so characteristics |
2446 | +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], |
2447 | +[AC_MSG_CHECKING([dynamic linker characteristics]) |
2448 | +library_names_spec= |
2449 | +libname_spec='lib$name' |
2450 | +soname_spec= |
2451 | +shrext_cmds=".so" |
2452 | +postinstall_cmds= |
2453 | +postuninstall_cmds= |
2454 | +finish_cmds= |
2455 | +finish_eval= |
2456 | +shlibpath_var= |
2457 | +shlibpath_overrides_runpath=unknown |
2458 | +version_type=none |
2459 | +dynamic_linker="$host_os ld.so" |
2460 | +sys_lib_dlsearch_path_spec="/lib /usr/lib" |
2461 | +if test "$GCC" = yes; then |
2462 | + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2463 | + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
2464 | + # if the path contains ";" then we assume it to be the separator |
2465 | + # otherwise default to the standard path separator (i.e. ":") - it is |
2466 | + # assumed that no part of a normal pathname contains ";" but that should |
2467 | + # okay in the real world where ";" in dirpaths is itself problematic. |
2468 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
2469 | + else |
2470 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2471 | + fi |
2472 | +else |
2473 | + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
2474 | +fi |
2475 | +need_lib_prefix=unknown |
2476 | +hardcode_into_libs=no |
2477 | + |
2478 | +# when you set need_version to no, make sure it does not cause -set_version |
2479 | +# flags to be left without arguments |
2480 | +need_version=unknown |
2481 | + |
2482 | +case $host_os in |
2483 | +aix3*) |
2484 | + version_type=linux |
2485 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
2486 | + shlibpath_var=LIBPATH |
2487 | + |
2488 | + # AIX 3 has no versioning support, so we append a major version to the name. |
2489 | + soname_spec='${libname}${release}${shared_ext}$major' |
2490 | + ;; |
2491 | + |
2492 | +aix4* | aix5*) |
2493 | + version_type=linux |
2494 | + need_lib_prefix=no |
2495 | + need_version=no |
2496 | + hardcode_into_libs=yes |
2497 | + if test "$host_cpu" = ia64; then |
2498 | + # AIX 5 supports IA64 |
2499 | + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
2500 | + shlibpath_var=LD_LIBRARY_PATH |
2501 | + else |
2502 | + # With GCC up to 2.95.x, collect2 would create an import file |
2503 | + # for dependence libraries. The import file would start with |
2504 | + # the line `#! .'. This would cause the generated library to |
2505 | + # depend on `.', always an invalid library. This was fixed in |
2506 | + # development snapshots of GCC prior to 3.0. |
2507 | + case $host_os in |
2508 | + aix4 | aix4.[[01]] | aix4.[[01]].*) |
2509 | + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
2510 | + echo ' yes ' |
2511 | + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
2512 | + : |
2513 | + else |
2514 | + can_build_shared=no |
2515 | + fi |
2516 | + ;; |
2517 | + esac |
2518 | + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
2519 | + # soname into executable. Probably we can add versioning support to |
2520 | + # collect2, so additional links can be useful in future. |
2521 | + if test "$aix_use_runtimelinking" = yes; then |
2522 | + # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
2523 | + # instead of lib<name>.a to let people know that these are not |
2524 | + # typical AIX shared libraries. |
2525 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2526 | + else |
2527 | + # We preserve .a as extension for shared libraries through AIX4.2 |
2528 | + # and later when we are not doing run time linking. |
2529 | + library_names_spec='${libname}${release}.a $libname.a' |
2530 | + soname_spec='${libname}${release}${shared_ext}$major' |
2531 | + fi |
2532 | + shlibpath_var=LIBPATH |
2533 | + fi |
2534 | + ;; |
2535 | + |
2536 | +amigaos*) |
2537 | + library_names_spec='$libname.ixlibrary $libname.a' |
2538 | + # Create ${libname}_ixlibrary.a entries in /sys/libs. |
2539 | + 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' |
2540 | + ;; |
2541 | + |
2542 | +beos*) |
2543 | + library_names_spec='${libname}${shared_ext}' |
2544 | + dynamic_linker="$host_os ld.so" |
2545 | + shlibpath_var=LIBRARY_PATH |
2546 | + ;; |
2547 | + |
2548 | +bsdi[[45]]*) |
2549 | + version_type=linux |
2550 | + need_version=no |
2551 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2552 | + soname_spec='${libname}${release}${shared_ext}$major' |
2553 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
2554 | + shlibpath_var=LD_LIBRARY_PATH |
2555 | + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
2556 | + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
2557 | + # the default ld.so.conf also contains /usr/contrib/lib and |
2558 | + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
2559 | + # libtool to hard-code these into programs |
2560 | + ;; |
2561 | + |
2562 | +cygwin* | mingw* | pw32*) |
2563 | + version_type=windows |
2564 | + shrext_cmds=".dll" |
2565 | + need_version=no |
2566 | + need_lib_prefix=no |
2567 | + |
2568 | + case $GCC,$host_os in |
2569 | + yes,cygwin* | yes,mingw* | yes,pw32*) |
2570 | + library_names_spec='$libname.dll.a' |
2571 | + # DLL is installed to $(libdir)/../bin by postinstall_cmds |
2572 | + postinstall_cmds='base_file=`basename \${file}`~ |
2573 | + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
2574 | + dldir=$destdir/`dirname \$dlpath`~ |
2575 | + test -d \$dldir || mkdir -p \$dldir~ |
2576 | + $install_prog $dir/$dlname \$dldir/$dlname' |
2577 | + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
2578 | + dlpath=$dir/\$dldll~ |
2579 | + $rm \$dlpath' |
2580 | + shlibpath_overrides_runpath=yes |
2581 | + |
2582 | + case $host_os in |
2583 | + cygwin*) |
2584 | + # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
2585 | + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2586 | + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
2587 | + ;; |
2588 | + mingw*) |
2589 | + # MinGW DLLs use traditional 'lib' prefix |
2590 | + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2591 | + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
2592 | + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then |
2593 | + # It is most probably a Windows format PATH printed by |
2594 | + # mingw gcc, but we are running on Cygwin. Gcc prints its search |
2595 | + # path with ; separators, and with drive letters. We can handle the |
2596 | + # drive letters (cygwin fileutils understands them), so leave them, |
2597 | + # especially as we might pass files found there to a mingw objdump, |
2598 | + # which wouldn't understand a cygwinified path. Ahh. |
2599 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
2600 | + else |
2601 | + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
2602 | + fi |
2603 | + ;; |
2604 | + pw32*) |
2605 | + # pw32 DLLs use 'pw' prefix rather than 'lib' |
2606 | + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
2607 | + ;; |
2608 | + esac |
2609 | + ;; |
2610 | + |
2611 | + *) |
2612 | + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
2613 | + ;; |
2614 | + esac |
2615 | + dynamic_linker='Win32 ld.exe' |
2616 | + # FIXME: first we should search . and the directory the executable is in |
2617 | + shlibpath_var=PATH |
2618 | + ;; |
2619 | + |
2620 | +darwin* | rhapsody*) |
2621 | + dynamic_linker="$host_os dyld" |
2622 | + version_type=darwin |
2623 | + need_lib_prefix=no |
2624 | + need_version=no |
2625 | + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
2626 | + soname_spec='${libname}${release}${major}$shared_ext' |
2627 | + shlibpath_overrides_runpath=yes |
2628 | + shlibpath_var=DYLD_LIBRARY_PATH |
2629 | + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' |
2630 | + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
2631 | + if test "$GCC" = yes; then |
2632 | + sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
2633 | + else |
2634 | + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
2635 | + fi |
2636 | + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
2637 | + ;; |
2638 | + |
2639 | +dgux*) |
2640 | + version_type=linux |
2641 | + need_lib_prefix=no |
2642 | + need_version=no |
2643 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
2644 | + soname_spec='${libname}${release}${shared_ext}$major' |
2645 | + shlibpath_var=LD_LIBRARY_PATH |
2646 | + ;; |
2647 | + |
2648 | +freebsd1*) |
2649 | + dynamic_linker=no |
2650 | + ;; |
2651 | + |
2652 | +kfreebsd*-gnu) |
2653 | + version_type=linux |
2654 | + need_lib_prefix=no |
2655 | + need_version=no |
2656 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2657 | + soname_spec='${libname}${release}${shared_ext}$major' |
2658 | + shlibpath_var=LD_LIBRARY_PATH |
2659 | + shlibpath_overrides_runpath=no |
2660 | + hardcode_into_libs=yes |
2661 | + dynamic_linker='GNU ld.so' |
2662 | + ;; |
2663 | + |
2664 | +freebsd* | dragonfly*) |
2665 | + # DragonFly does not have aout. When/if they implement a new |
2666 | + # versioning mechanism, adjust this. |
2667 | + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` |
2668 | + version_type=freebsd-$objformat |
2669 | + case $version_type in |
2670 | + freebsd-elf*) |
2671 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
2672 | + need_version=no |
2673 | + need_lib_prefix=no |
2674 | + ;; |
2675 | + freebsd-*) |
2676 | + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
2677 | + need_version=yes |
2678 | + ;; |
2679 | + esac |
2680 | + shlibpath_var=LD_LIBRARY_PATH |
2681 | + case $host_os in |
2682 | + freebsd2*) |
2683 | + shlibpath_overrides_runpath=yes |
2684 | + ;; |
2685 | + freebsd3.[[01]]* | freebsdelf3.[[01]]*) |
2686 | + shlibpath_overrides_runpath=yes |
2687 | + hardcode_into_libs=yes |
2688 | + ;; |
2689 | + *) # from 3.2 on |
2690 | + shlibpath_overrides_runpath=no |
2691 | + hardcode_into_libs=yes |
2692 | + ;; |
2693 | + esac |
2694 | + ;; |
2695 | + |
2696 | +gnu*) |
2697 | + version_type=linux |
2698 | + need_lib_prefix=no |
2699 | + need_version=no |
2700 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
2701 | + soname_spec='${libname}${release}${shared_ext}$major' |
2702 | + shlibpath_var=LD_LIBRARY_PATH |
2703 | + hardcode_into_libs=yes |
2704 | + ;; |
2705 | + |
2706 | +hpux9* | hpux10* | hpux11*) |
2707 | + # Give a soname corresponding to the major version so that dld.sl refuses to |
2708 | + # link against other versions. |
2709 | + version_type=sunos |
2710 | + need_lib_prefix=no |
2711 | + need_version=no |
2712 | + case "$host_cpu" in |
2713 | + ia64*) |
2714 | + shrext_cmds='.so' |
2715 | + hardcode_into_libs=yes |
2716 | + dynamic_linker="$host_os dld.so" |
2717 | + shlibpath_var=LD_LIBRARY_PATH |
2718 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2719 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2720 | + soname_spec='${libname}${release}${shared_ext}$major' |
2721 | + if test "X$HPUX_IA64_MODE" = X32; then |
2722 | + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
2723 | + else |
2724 | + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
2725 | + fi |
2726 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2727 | + ;; |
2728 | + hppa*64*) |
2729 | + shrext_cmds='.sl' |
2730 | + hardcode_into_libs=yes |
2731 | + dynamic_linker="$host_os dld.sl" |
2732 | + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
2733 | + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
2734 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2735 | + soname_spec='${libname}${release}${shared_ext}$major' |
2736 | + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
2737 | + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
2738 | + ;; |
2739 | + *) |
2740 | + shrext_cmds='.sl' |
2741 | + dynamic_linker="$host_os dld.sl" |
2742 | + shlibpath_var=SHLIB_PATH |
2743 | + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
2744 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2745 | + soname_spec='${libname}${release}${shared_ext}$major' |
2746 | + ;; |
2747 | + esac |
2748 | + # HP-UX runs *really* slowly unless shared libraries are mode 555. |
2749 | + postinstall_cmds='chmod 555 $lib' |
2750 | + ;; |
2751 | + |
2752 | +irix5* | irix6* | nonstopux*) |
2753 | + case $host_os in |
2754 | + nonstopux*) version_type=nonstopux ;; |
2755 | + *) |
2756 | + if test "$lt_cv_prog_gnu_ld" = yes; then |
2757 | + version_type=linux |
2758 | + else |
2759 | + version_type=irix |
2760 | + fi ;; |
2761 | + esac |
2762 | + need_lib_prefix=no |
2763 | + need_version=no |
2764 | + soname_spec='${libname}${release}${shared_ext}$major' |
2765 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
2766 | + case $host_os in |
2767 | + irix5* | nonstopux*) |
2768 | + libsuff= shlibsuff= |
2769 | + ;; |
2770 | + *) |
2771 | + case $LD in # libtool.m4 will add one of these switches to LD |
2772 | + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
2773 | + libsuff= shlibsuff= libmagic=32-bit;; |
2774 | + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
2775 | + libsuff=32 shlibsuff=N32 libmagic=N32;; |
2776 | + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
2777 | + libsuff=64 shlibsuff=64 libmagic=64-bit;; |
2778 | + *) libsuff= shlibsuff= libmagic=never-match;; |
2779 | + esac |
2780 | + ;; |
2781 | + esac |
2782 | + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
2783 | + shlibpath_overrides_runpath=no |
2784 | + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
2785 | + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
2786 | + hardcode_into_libs=yes |
2787 | + ;; |
2788 | + |
2789 | +# No shared lib support for Linux oldld, aout, or coff. |
2790 | +linux*oldld* | linux*aout* | linux*coff*) |
2791 | + dynamic_linker=no |
2792 | + ;; |
2793 | + |
2794 | +# This must be Linux ELF. |
2795 | +linux*) |
2796 | + version_type=linux |
2797 | + need_lib_prefix=no |
2798 | + need_version=no |
2799 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2800 | + soname_spec='${libname}${release}${shared_ext}$major' |
2801 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
2802 | + shlibpath_var=LD_LIBRARY_PATH |
2803 | + shlibpath_overrides_runpath=no |
2804 | + # This implies no fast_install, which is unacceptable. |
2805 | + # Some rework will be needed to allow for fast_install |
2806 | + # before this can be enabled. |
2807 | + hardcode_into_libs=yes |
2808 | + |
2809 | + # find out which ABI we are using |
2810 | + libsuff= |
2811 | + case "$host_cpu" in |
2812 | + x86_64*|s390x*|powerpc64*) |
2813 | + echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
2814 | + if AC_TRY_EVAL(ac_compile); then |
2815 | + case `/usr/bin/file conftest.$ac_objext` in |
2816 | + *64-bit*) |
2817 | + libsuff=64 |
2818 | + sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
2819 | + ;; |
2820 | + esac |
2821 | + fi |
2822 | + rm -rf conftest* |
2823 | + ;; |
2824 | + esac |
2825 | + |
2826 | + # Append ld.so.conf contents to the search path |
2827 | + if test -f /etc/ld.so.conf; then |
2828 | + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
2829 | + sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
2830 | + fi |
2831 | + |
2832 | + # We used to test for /lib/ld.so.1 and disable shared libraries on |
2833 | + # powerpc, because MkLinux only supported shared libraries with the |
2834 | + # GNU dynamic linker. Since this was broken with cross compilers, |
2835 | + # most powerpc-linux boxes support dynamic linking these days and |
2836 | + # people can always --disable-shared, the test was removed, and we |
2837 | + # assume the GNU/Linux dynamic linker is in use. |
2838 | + dynamic_linker='GNU/Linux ld.so' |
2839 | + ;; |
2840 | + |
2841 | +knetbsd*-gnu) |
2842 | + version_type=linux |
2843 | + need_lib_prefix=no |
2844 | + need_version=no |
2845 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2846 | + soname_spec='${libname}${release}${shared_ext}$major' |
2847 | + shlibpath_var=LD_LIBRARY_PATH |
2848 | + shlibpath_overrides_runpath=no |
2849 | + hardcode_into_libs=yes |
2850 | + dynamic_linker='GNU ld.so' |
2851 | + ;; |
2852 | + |
2853 | +netbsd*) |
2854 | + version_type=sunos |
2855 | + need_lib_prefix=no |
2856 | + need_version=no |
2857 | + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
2858 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
2859 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
2860 | + dynamic_linker='NetBSD (a.out) ld.so' |
2861 | + else |
2862 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
2863 | + soname_spec='${libname}${release}${shared_ext}$major' |
2864 | + dynamic_linker='NetBSD ld.elf_so' |
2865 | + fi |
2866 | + shlibpath_var=LD_LIBRARY_PATH |
2867 | + shlibpath_overrides_runpath=yes |
2868 | + hardcode_into_libs=yes |
2869 | + ;; |
2870 | + |
2871 | +newsos6) |
2872 | + version_type=linux |
2873 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2874 | + shlibpath_var=LD_LIBRARY_PATH |
2875 | + shlibpath_overrides_runpath=yes |
2876 | + ;; |
2877 | + |
2878 | +nto-qnx*) |
2879 | + version_type=linux |
2880 | + need_lib_prefix=no |
2881 | + need_version=no |
2882 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2883 | + soname_spec='${libname}${release}${shared_ext}$major' |
2884 | + shlibpath_var=LD_LIBRARY_PATH |
2885 | + shlibpath_overrides_runpath=yes |
2886 | + ;; |
2887 | + |
2888 | +openbsd*) |
2889 | + version_type=sunos |
2890 | + need_lib_prefix=no |
2891 | + need_version=no |
2892 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
2893 | + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
2894 | + shlibpath_var=LD_LIBRARY_PATH |
2895 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
2896 | + case $host_os in |
2897 | + openbsd2.[[89]] | openbsd2.[[89]].*) |
2898 | + shlibpath_overrides_runpath=no |
2899 | + ;; |
2900 | + *) |
2901 | + shlibpath_overrides_runpath=yes |
2902 | + ;; |
2903 | + esac |
2904 | + else |
2905 | + shlibpath_overrides_runpath=yes |
2906 | + fi |
2907 | + ;; |
2908 | + |
2909 | +os2*) |
2910 | + libname_spec='$name' |
2911 | + shrext_cmds=".dll" |
2912 | + need_lib_prefix=no |
2913 | + library_names_spec='$libname${shared_ext} $libname.a' |
2914 | + dynamic_linker='OS/2 ld.exe' |
2915 | + shlibpath_var=LIBPATH |
2916 | + ;; |
2917 | + |
2918 | +osf3* | osf4* | osf5*) |
2919 | + version_type=osf |
2920 | + need_lib_prefix=no |
2921 | + need_version=no |
2922 | + soname_spec='${libname}${release}${shared_ext}$major' |
2923 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2924 | + shlibpath_var=LD_LIBRARY_PATH |
2925 | + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
2926 | + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
2927 | + ;; |
2928 | + |
2929 | +sco3.2v5*) |
2930 | + version_type=osf |
2931 | + soname_spec='${libname}${release}${shared_ext}$major' |
2932 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2933 | + shlibpath_var=LD_LIBRARY_PATH |
2934 | + ;; |
2935 | + |
2936 | +solaris*) |
2937 | + version_type=linux |
2938 | + need_lib_prefix=no |
2939 | + need_version=no |
2940 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2941 | + soname_spec='${libname}${release}${shared_ext}$major' |
2942 | + shlibpath_var=LD_LIBRARY_PATH |
2943 | + shlibpath_overrides_runpath=yes |
2944 | + hardcode_into_libs=yes |
2945 | + # ldd complains unless libraries are executable |
2946 | + postinstall_cmds='chmod +x $lib' |
2947 | + ;; |
2948 | + |
2949 | +sunos4*) |
2950 | + version_type=sunos |
2951 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
2952 | + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
2953 | + shlibpath_var=LD_LIBRARY_PATH |
2954 | + shlibpath_overrides_runpath=yes |
2955 | + if test "$with_gnu_ld" = yes; then |
2956 | + need_lib_prefix=no |
2957 | + fi |
2958 | + need_version=yes |
2959 | + ;; |
2960 | + |
2961 | +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
2962 | + version_type=linux |
2963 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2964 | + soname_spec='${libname}${release}${shared_ext}$major' |
2965 | + shlibpath_var=LD_LIBRARY_PATH |
2966 | + case $host_vendor in |
2967 | + sni) |
2968 | + shlibpath_overrides_runpath=no |
2969 | + need_lib_prefix=no |
2970 | + export_dynamic_flag_spec='${wl}-Blargedynsym' |
2971 | + runpath_var=LD_RUN_PATH |
2972 | + ;; |
2973 | + siemens) |
2974 | + need_lib_prefix=no |
2975 | + ;; |
2976 | + motorola) |
2977 | + need_lib_prefix=no |
2978 | + need_version=no |
2979 | + shlibpath_overrides_runpath=no |
2980 | + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
2981 | + ;; |
2982 | + esac |
2983 | + ;; |
2984 | + |
2985 | +sysv4*MP*) |
2986 | + if test -d /usr/nec ;then |
2987 | + version_type=linux |
2988 | + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
2989 | + soname_spec='$libname${shared_ext}.$major' |
2990 | + shlibpath_var=LD_LIBRARY_PATH |
2991 | + fi |
2992 | + ;; |
2993 | + |
2994 | +uts4*) |
2995 | + version_type=linux |
2996 | + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
2997 | + soname_spec='${libname}${release}${shared_ext}$major' |
2998 | + shlibpath_var=LD_LIBRARY_PATH |
2999 | + ;; |
3000 | + |
3001 | +*) |
3002 | + dynamic_linker=no |
3003 | + ;; |
3004 | +esac |
3005 | +AC_MSG_RESULT([$dynamic_linker]) |
3006 | +test "$dynamic_linker" = no && can_build_shared=no |
3007 | +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER |
3008 | + |
3009 | + |
3010 | +# _LT_AC_TAGCONFIG |
3011 | +# ---------------- |
3012 | +AC_DEFUN([_LT_AC_TAGCONFIG], |
3013 | +[AC_ARG_WITH([tags], |
3014 | + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], |
3015 | + [include additional configurations @<:@automatic@:>@])], |
3016 | + [tagnames="$withval"]) |
3017 | + |
3018 | +if test -f "$ltmain" && test -n "$tagnames"; then |
3019 | + if test ! -f "${ofile}"; then |
3020 | + AC_MSG_WARN([output file `$ofile' does not exist]) |
3021 | + fi |
3022 | + |
3023 | + if test -z "$LTCC"; then |
3024 | + eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
3025 | + if test -z "$LTCC"; then |
3026 | + AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) |
3027 | + else |
3028 | + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) |
3029 | + fi |
3030 | + fi |
3031 | + |
3032 | + # Extract list of available tagged configurations in $ofile. |
3033 | + # Note that this assumes the entire list is on one line. |
3034 | + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
3035 | + |
3036 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3037 | + for tagname in $tagnames; do |
3038 | + IFS="$lt_save_ifs" |
3039 | + # Check whether tagname contains only valid characters |
3040 | + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in |
3041 | + "") ;; |
3042 | + *) AC_MSG_ERROR([invalid tag name: $tagname]) |
3043 | + ;; |
3044 | + esac |
3045 | + |
3046 | + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
3047 | + then |
3048 | + AC_MSG_ERROR([tag name \"$tagname\" already exists]) |
3049 | + fi |
3050 | + |
3051 | + # Update the list of available tags. |
3052 | + if test -n "$tagname"; then |
3053 | + echo appending configuration tag \"$tagname\" to $ofile |
3054 | + |
3055 | + case $tagname in |
3056 | + CXX) |
3057 | + if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
3058 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
3059 | + (test "X$CXX" != "Xg++"))) ; then |
3060 | + AC_LIBTOOL_LANG_CXX_CONFIG |
3061 | + else |
3062 | + tagname="" |
3063 | + fi |
3064 | + ;; |
3065 | + |
3066 | + F77) |
3067 | + if test -n "$F77" && test "X$F77" != "Xno"; then |
3068 | + AC_LIBTOOL_LANG_F77_CONFIG |
3069 | + else |
3070 | + tagname="" |
3071 | + fi |
3072 | + ;; |
3073 | + |
3074 | + GCJ) |
3075 | + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
3076 | + AC_LIBTOOL_LANG_GCJ_CONFIG |
3077 | + else |
3078 | + tagname="" |
3079 | + fi |
3080 | + ;; |
3081 | + |
3082 | + RC) |
3083 | + AC_LIBTOOL_LANG_RC_CONFIG |
3084 | + ;; |
3085 | + |
3086 | + *) |
3087 | + AC_MSG_ERROR([Unsupported tag name: $tagname]) |
3088 | + ;; |
3089 | + esac |
3090 | + |
3091 | + # Append the new tag name to the list of available tags. |
3092 | + if test -n "$tagname" ; then |
3093 | + available_tags="$available_tags $tagname" |
3094 | + fi |
3095 | + fi |
3096 | + done |
3097 | + IFS="$lt_save_ifs" |
3098 | + |
3099 | + # Now substitute the updated list of available tags. |
3100 | + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
3101 | + mv "${ofile}T" "$ofile" |
3102 | + chmod +x "$ofile" |
3103 | + else |
3104 | + rm -f "${ofile}T" |
3105 | + AC_MSG_ERROR([unable to update list of available tagged configurations.]) |
3106 | + fi |
3107 | +fi |
3108 | +])# _LT_AC_TAGCONFIG |
3109 | + |
3110 | + |
3111 | +# AC_LIBTOOL_DLOPEN |
3112 | +# ----------------- |
3113 | +# enable checks for dlopen support |
3114 | +AC_DEFUN([AC_LIBTOOL_DLOPEN], |
3115 | + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) |
3116 | +])# AC_LIBTOOL_DLOPEN |
3117 | + |
3118 | + |
3119 | +# AC_LIBTOOL_WIN32_DLL |
3120 | +# -------------------- |
3121 | +# declare package support for building win32 dll's |
3122 | +AC_DEFUN([AC_LIBTOOL_WIN32_DLL], |
3123 | +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) |
3124 | +])# AC_LIBTOOL_WIN32_DLL |
3125 | + |
3126 | + |
3127 | +# AC_ENABLE_SHARED([DEFAULT]) |
3128 | +# --------------------------- |
3129 | +# implement the --enable-shared flag |
3130 | +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
3131 | +AC_DEFUN([AC_ENABLE_SHARED], |
3132 | +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl |
3133 | +AC_ARG_ENABLE([shared], |
3134 | + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], |
3135 | + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], |
3136 | + [p=${PACKAGE-default} |
3137 | + case $enableval in |
3138 | + yes) enable_shared=yes ;; |
3139 | + no) enable_shared=no ;; |
3140 | + *) |
3141 | + enable_shared=no |
3142 | + # Look at the argument we got. We use all the common list separators. |
3143 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3144 | + for pkg in $enableval; do |
3145 | + IFS="$lt_save_ifs" |
3146 | + if test "X$pkg" = "X$p"; then |
3147 | + enable_shared=yes |
3148 | + fi |
3149 | + done |
3150 | + IFS="$lt_save_ifs" |
3151 | + ;; |
3152 | + esac], |
3153 | + [enable_shared=]AC_ENABLE_SHARED_DEFAULT) |
3154 | +])# AC_ENABLE_SHARED |
3155 | + |
3156 | + |
3157 | +# AC_DISABLE_SHARED |
3158 | +# ----------------- |
3159 | +#- set the default shared flag to --disable-shared |
3160 | +AC_DEFUN([AC_DISABLE_SHARED], |
3161 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3162 | +AC_ENABLE_SHARED(no) |
3163 | +])# AC_DISABLE_SHARED |
3164 | + |
3165 | + |
3166 | +# AC_ENABLE_STATIC([DEFAULT]) |
3167 | +# --------------------------- |
3168 | +# implement the --enable-static flag |
3169 | +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
3170 | +AC_DEFUN([AC_ENABLE_STATIC], |
3171 | +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl |
3172 | +AC_ARG_ENABLE([static], |
3173 | + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], |
3174 | + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], |
3175 | + [p=${PACKAGE-default} |
3176 | + case $enableval in |
3177 | + yes) enable_static=yes ;; |
3178 | + no) enable_static=no ;; |
3179 | + *) |
3180 | + enable_static=no |
3181 | + # Look at the argument we got. We use all the common list separators. |
3182 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3183 | + for pkg in $enableval; do |
3184 | + IFS="$lt_save_ifs" |
3185 | + if test "X$pkg" = "X$p"; then |
3186 | + enable_static=yes |
3187 | + fi |
3188 | + done |
3189 | + IFS="$lt_save_ifs" |
3190 | + ;; |
3191 | + esac], |
3192 | + [enable_static=]AC_ENABLE_STATIC_DEFAULT) |
3193 | +])# AC_ENABLE_STATIC |
3194 | + |
3195 | + |
3196 | +# AC_DISABLE_STATIC |
3197 | +# ----------------- |
3198 | +# set the default static flag to --disable-static |
3199 | +AC_DEFUN([AC_DISABLE_STATIC], |
3200 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3201 | +AC_ENABLE_STATIC(no) |
3202 | +])# AC_DISABLE_STATIC |
3203 | + |
3204 | + |
3205 | +# AC_ENABLE_FAST_INSTALL([DEFAULT]) |
3206 | +# --------------------------------- |
3207 | +# implement the --enable-fast-install flag |
3208 | +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. |
3209 | +AC_DEFUN([AC_ENABLE_FAST_INSTALL], |
3210 | +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl |
3211 | +AC_ARG_ENABLE([fast-install], |
3212 | + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], |
3213 | + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], |
3214 | + [p=${PACKAGE-default} |
3215 | + case $enableval in |
3216 | + yes) enable_fast_install=yes ;; |
3217 | + no) enable_fast_install=no ;; |
3218 | + *) |
3219 | + enable_fast_install=no |
3220 | + # Look at the argument we got. We use all the common list separators. |
3221 | + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3222 | + for pkg in $enableval; do |
3223 | + IFS="$lt_save_ifs" |
3224 | + if test "X$pkg" = "X$p"; then |
3225 | + enable_fast_install=yes |
3226 | + fi |
3227 | + done |
3228 | + IFS="$lt_save_ifs" |
3229 | + ;; |
3230 | + esac], |
3231 | + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) |
3232 | +])# AC_ENABLE_FAST_INSTALL |
3233 | + |
3234 | + |
3235 | +# AC_DISABLE_FAST_INSTALL |
3236 | +# ----------------------- |
3237 | +# set the default to --disable-fast-install |
3238 | +AC_DEFUN([AC_DISABLE_FAST_INSTALL], |
3239 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3240 | +AC_ENABLE_FAST_INSTALL(no) |
3241 | +])# AC_DISABLE_FAST_INSTALL |
3242 | + |
3243 | + |
3244 | +# AC_LIBTOOL_PICMODE([MODE]) |
3245 | +# -------------------------- |
3246 | +# implement the --with-pic flag |
3247 | +# MODE is either `yes' or `no'. If omitted, it defaults to `both'. |
3248 | +AC_DEFUN([AC_LIBTOOL_PICMODE], |
3249 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3250 | +pic_mode=ifelse($#,1,$1,default) |
3251 | +])# AC_LIBTOOL_PICMODE |
3252 | + |
3253 | + |
3254 | +# AC_PROG_EGREP |
3255 | +# ------------- |
3256 | +# This is predefined starting with Autoconf 2.54, so this conditional |
3257 | +# definition can be removed once we require Autoconf 2.54 or later. |
3258 | +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], |
3259 | +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], |
3260 | + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
3261 | + then ac_cv_prog_egrep='grep -E' |
3262 | + else ac_cv_prog_egrep='egrep' |
3263 | + fi]) |
3264 | + EGREP=$ac_cv_prog_egrep |
3265 | + AC_SUBST([EGREP]) |
3266 | +])]) |
3267 | + |
3268 | + |
3269 | +# AC_PATH_TOOL_PREFIX |
3270 | +# ------------------- |
3271 | +# find a file program which can recognise shared library |
3272 | +AC_DEFUN([AC_PATH_TOOL_PREFIX], |
3273 | +[AC_REQUIRE([AC_PROG_EGREP])dnl |
3274 | +AC_MSG_CHECKING([for $1]) |
3275 | +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, |
3276 | +[case $MAGIC_CMD in |
3277 | +[[\\/*] | ?:[\\/]*]) |
3278 | + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
3279 | + ;; |
3280 | +*) |
3281 | + lt_save_MAGIC_CMD="$MAGIC_CMD" |
3282 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3283 | +dnl $ac_dummy forces splitting on constant user-supplied paths. |
3284 | +dnl POSIX.2 word splitting is done only on the output of word expansions, |
3285 | +dnl not every word. This closes a longstanding sh security hole. |
3286 | + ac_dummy="ifelse([$2], , $PATH, [$2])" |
3287 | + for ac_dir in $ac_dummy; do |
3288 | + IFS="$lt_save_ifs" |
3289 | + test -z "$ac_dir" && ac_dir=. |
3290 | + if test -f $ac_dir/$1; then |
3291 | + lt_cv_path_MAGIC_CMD="$ac_dir/$1" |
3292 | + if test -n "$file_magic_test_file"; then |
3293 | + case $deplibs_check_method in |
3294 | + "file_magic "*) |
3295 | + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" |
3296 | + MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3297 | + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3298 | + $EGREP "$file_magic_regex" > /dev/null; then |
3299 | + : |
3300 | + else |
3301 | + cat <<EOF 1>&2 |
3302 | + |
3303 | +*** Warning: the command libtool uses to detect shared libraries, |
3304 | +*** $file_magic_cmd, produces output that libtool cannot recognize. |
3305 | +*** The result is that libtool may fail to recognize shared libraries |
3306 | +*** as such. This will affect the creation of libtool libraries that |
3307 | +*** depend on shared libraries, but programs linked with such libtool |
3308 | +*** libraries will work regardless of this problem. Nevertheless, you |
3309 | +*** may want to report the problem to your system manager and/or to |
3310 | +*** bug-libtool@gnu.org |
3311 | + |
3312 | +EOF |
3313 | + fi ;; |
3314 | + esac |
3315 | + fi |
3316 | + break |
3317 | + fi |
3318 | + done |
3319 | + IFS="$lt_save_ifs" |
3320 | + MAGIC_CMD="$lt_save_MAGIC_CMD" |
3321 | + ;; |
3322 | +esac]) |
3323 | +MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3324 | +if test -n "$MAGIC_CMD"; then |
3325 | + AC_MSG_RESULT($MAGIC_CMD) |
3326 | +else |
3327 | + AC_MSG_RESULT(no) |
3328 | +fi |
3329 | +])# AC_PATH_TOOL_PREFIX |
3330 | + |
3331 | + |
3332 | +# AC_PATH_MAGIC |
3333 | +# ------------- |
3334 | +# find a file program which can recognise a shared library |
3335 | +AC_DEFUN([AC_PATH_MAGIC], |
3336 | +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
3337 | +if test -z "$lt_cv_path_MAGIC_CMD"; then |
3338 | + if test -n "$ac_tool_prefix"; then |
3339 | + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) |
3340 | + else |
3341 | + MAGIC_CMD=: |
3342 | + fi |
3343 | +fi |
3344 | +])# AC_PATH_MAGIC |
3345 | + |
3346 | + |
3347 | +# AC_PROG_LD |
3348 | +# ---------- |
3349 | +# find the pathname to the GNU or non-GNU linker |
3350 | +AC_DEFUN([AC_PROG_LD], |
3351 | +[AC_ARG_WITH([gnu-ld], |
3352 | + [AC_HELP_STRING([--with-gnu-ld], |
3353 | + [assume the C compiler uses GNU ld @<:@default=no@:>@])], |
3354 | + [test "$withval" = no || with_gnu_ld=yes], |
3355 | + [with_gnu_ld=no]) |
3356 | +AC_REQUIRE([LT_AC_PROG_SED])dnl |
3357 | +AC_REQUIRE([AC_PROG_CC])dnl |
3358 | +AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3359 | +AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
3360 | +ac_prog=ld |
3361 | +if test "$GCC" = yes; then |
3362 | + # Check if gcc -print-prog-name=ld gives a path. |
3363 | + AC_MSG_CHECKING([for ld used by $CC]) |
3364 | + case $host in |
3365 | + *-*-mingw*) |
3366 | + # gcc leaves a trailing carriage return which upsets mingw |
3367 | + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3368 | + *) |
3369 | + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3370 | + esac |
3371 | + case $ac_prog in |
3372 | + # Accept absolute paths. |
3373 | + [[\\/]]* | ?:[[\\/]]*) |
3374 | + re_direlt='/[[^/]][[^/]]*/\.\./' |
3375 | + # Canonicalize the pathname of ld |
3376 | + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3377 | + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3378 | + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3379 | + done |
3380 | + test -z "$LD" && LD="$ac_prog" |
3381 | + ;; |
3382 | + "") |
3383 | + # If it fails, then pretend we aren't using GCC. |
3384 | + ac_prog=ld |
3385 | + ;; |
3386 | + *) |
3387 | + # If it is relative, then search for the first ld in PATH. |
3388 | + with_gnu_ld=unknown |
3389 | + ;; |
3390 | + esac |
3391 | +elif test "$with_gnu_ld" = yes; then |
3392 | + AC_MSG_CHECKING([for GNU ld]) |
3393 | +else |
3394 | + AC_MSG_CHECKING([for non-GNU ld]) |
3395 | +fi |
3396 | +AC_CACHE_VAL(lt_cv_path_LD, |
3397 | +[if test -z "$LD"; then |
3398 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3399 | + for ac_dir in $PATH; do |
3400 | + IFS="$lt_save_ifs" |
3401 | + test -z "$ac_dir" && ac_dir=. |
3402 | + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3403 | + lt_cv_path_LD="$ac_dir/$ac_prog" |
3404 | + # Check to see if the program is GNU ld. I'd rather use --version, |
3405 | + # but apparently some GNU ld's only accept -v. |
3406 | + # Break only if it was the GNU/non-GNU ld that we prefer. |
3407 | + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3408 | + *GNU* | *'with BFD'*) |
3409 | + test "$with_gnu_ld" != no && break |
3410 | + ;; |
3411 | + *) |
3412 | + test "$with_gnu_ld" != yes && break |
3413 | + ;; |
3414 | + esac |
3415 | + fi |
3416 | + done |
3417 | + IFS="$lt_save_ifs" |
3418 | +else |
3419 | + lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3420 | +fi]) |
3421 | +LD="$lt_cv_path_LD" |
3422 | +if test -n "$LD"; then |
3423 | + AC_MSG_RESULT($LD) |
3424 | +else |
3425 | + AC_MSG_RESULT(no) |
3426 | +fi |
3427 | +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
3428 | +AC_PROG_LD_GNU |
3429 | +])# AC_PROG_LD |
3430 | + |
3431 | + |
3432 | +# AC_PROG_LD_GNU |
3433 | +# -------------- |
3434 | +AC_DEFUN([AC_PROG_LD_GNU], |
3435 | +[AC_REQUIRE([AC_PROG_EGREP])dnl |
3436 | +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
3437 | +[# I'd rather use --version here, but apparently some GNU ld's only accept -v. |
3438 | +case `$LD -v 2>&1 </dev/null` in |
3439 | +*GNU* | *'with BFD'*) |
3440 | + lt_cv_prog_gnu_ld=yes |
3441 | + ;; |
3442 | +*) |
3443 | + lt_cv_prog_gnu_ld=no |
3444 | + ;; |
3445 | +esac]) |
3446 | +with_gnu_ld=$lt_cv_prog_gnu_ld |
3447 | +])# AC_PROG_LD_GNU |
3448 | + |
3449 | + |
3450 | +# AC_PROG_LD_RELOAD_FLAG |
3451 | +# ---------------------- |
3452 | +# find reload flag for linker |
3453 | +# -- PORTME Some linkers may need a different reload flag. |
3454 | +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], |
3455 | +[AC_CACHE_CHECK([for $LD option to reload object files], |
3456 | + lt_cv_ld_reload_flag, |
3457 | + [lt_cv_ld_reload_flag='-r']) |
3458 | +reload_flag=$lt_cv_ld_reload_flag |
3459 | +case $reload_flag in |
3460 | +"" | " "*) ;; |
3461 | +*) reload_flag=" $reload_flag" ;; |
3462 | +esac |
3463 | +reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3464 | +case $host_os in |
3465 | + darwin*) |
3466 | + if test "$GCC" = yes; then |
3467 | + reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
3468 | + else |
3469 | + reload_cmds='$LD$reload_flag -o $output$reload_objs' |
3470 | + fi |
3471 | + ;; |
3472 | +esac |
3473 | +])# AC_PROG_LD_RELOAD_FLAG |
3474 | + |
3475 | + |
3476 | +# AC_DEPLIBS_CHECK_METHOD |
3477 | +# ----------------------- |
3478 | +# how to check for library dependencies |
3479 | +# -- PORTME fill in with the dynamic library characteristics |
3480 | +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], |
3481 | +[AC_CACHE_CHECK([how to recognise dependent libraries], |
3482 | +lt_cv_deplibs_check_method, |
3483 | +[lt_cv_file_magic_cmd='$MAGIC_CMD' |
3484 | +lt_cv_file_magic_test_file= |
3485 | +lt_cv_deplibs_check_method='unknown' |
3486 | +# Need to set the preceding variable on all platforms that support |
3487 | +# interlibrary dependencies. |
3488 | +# 'none' -- dependencies not supported. |
3489 | +# `unknown' -- same as none, but documents that we really don't know. |
3490 | +# 'pass_all' -- all dependencies passed with no checks. |
3491 | +# 'test_compile' -- check by making test program. |
3492 | +# 'file_magic [[regex]]' -- check by looking for files in library path |
3493 | +# which responds to the $file_magic_cmd with a given extended regex. |
3494 | +# If you have `file' or equivalent on your system and you're not sure |
3495 | +# whether `pass_all' will *always* work, you probably want this one. |
3496 | + |
3497 | +case $host_os in |
3498 | +aix4* | aix5*) |
3499 | + lt_cv_deplibs_check_method=pass_all |
3500 | + ;; |
3501 | + |
3502 | +beos*) |
3503 | + lt_cv_deplibs_check_method=pass_all |
3504 | + ;; |
3505 | + |
3506 | +bsdi[[45]]*) |
3507 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' |
3508 | + lt_cv_file_magic_cmd='/usr/bin/file -L' |
3509 | + lt_cv_file_magic_test_file=/shlib/libc.so |
3510 | + ;; |
3511 | + |
3512 | +cygwin*) |
3513 | + # func_win32_libid is a shell function defined in ltmain.sh |
3514 | + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
3515 | + lt_cv_file_magic_cmd='func_win32_libid' |
3516 | + ;; |
3517 | + |
3518 | +mingw* | pw32*) |
3519 | + # Base MSYS/MinGW do not provide the 'file' command needed by |
3520 | + # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
3521 | + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
3522 | + lt_cv_file_magic_cmd='$OBJDUMP -f' |
3523 | + ;; |
3524 | + |
3525 | +darwin* | rhapsody*) |
3526 | + lt_cv_deplibs_check_method=pass_all |
3527 | + ;; |
3528 | + |
3529 | +freebsd* | kfreebsd*-gnu | dragonfly*) |
3530 | + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3531 | + case $host_cpu in |
3532 | + i*86 ) |
3533 | + # Not sure whether the presence of OpenBSD here was a mistake. |
3534 | + # Let's accept both of them until this is cleared up. |
3535 | + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' |
3536 | + lt_cv_file_magic_cmd=/usr/bin/file |
3537 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3538 | + ;; |
3539 | + esac |
3540 | + else |
3541 | + lt_cv_deplibs_check_method=pass_all |
3542 | + fi |
3543 | + ;; |
3544 | + |
3545 | +gnu*) |
3546 | + lt_cv_deplibs_check_method=pass_all |
3547 | + ;; |
3548 | + |
3549 | +hpux10.20* | hpux11*) |
3550 | + lt_cv_file_magic_cmd=/usr/bin/file |
3551 | + case "$host_cpu" in |
3552 | + ia64*) |
3553 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' |
3554 | + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
3555 | + ;; |
3556 | + hppa*64*) |
3557 | + [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] |
3558 | + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
3559 | + ;; |
3560 | + *) |
3561 | + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' |
3562 | + lt_cv_file_magic_test_file=/usr/lib/libc.sl |
3563 | + ;; |
3564 | + esac |
3565 | + ;; |
3566 | + |
3567 | +irix5* | irix6* | nonstopux*) |
3568 | + case $LD in |
3569 | + *-32|*"-32 ") libmagic=32-bit;; |
3570 | + *-n32|*"-n32 ") libmagic=N32;; |
3571 | + *-64|*"-64 ") libmagic=64-bit;; |
3572 | + *) libmagic=never-match;; |
3573 | + esac |
3574 | + lt_cv_deplibs_check_method=pass_all |
3575 | + ;; |
3576 | + |
3577 | +# This must be Linux ELF. |
3578 | +linux*) |
3579 | + lt_cv_deplibs_check_method=pass_all |
3580 | + ;; |
3581 | + |
3582 | +netbsd*) |
3583 | + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
3584 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3585 | + else |
3586 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' |
3587 | + fi |
3588 | + ;; |
3589 | + |
3590 | +newos6*) |
3591 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' |
3592 | + lt_cv_file_magic_cmd=/usr/bin/file |
3593 | + lt_cv_file_magic_test_file=/usr/lib/libnls.so |
3594 | + ;; |
3595 | + |
3596 | +nto-qnx*) |
3597 | + lt_cv_deplibs_check_method=unknown |
3598 | + ;; |
3599 | + |
3600 | +openbsd*) |
3601 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
3602 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' |
3603 | + else |
3604 | + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' |
3605 | + fi |
3606 | + ;; |
3607 | + |
3608 | +osf3* | osf4* | osf5*) |
3609 | + lt_cv_deplibs_check_method=pass_all |
3610 | + ;; |
3611 | + |
3612 | +sco3.2v5*) |
3613 | + lt_cv_deplibs_check_method=pass_all |
3614 | + ;; |
3615 | + |
3616 | +solaris*) |
3617 | + lt_cv_deplibs_check_method=pass_all |
3618 | + ;; |
3619 | + |
3620 | +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
3621 | + case $host_vendor in |
3622 | + motorola) |
3623 | + 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]]' |
3624 | + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
3625 | + ;; |
3626 | + ncr) |
3627 | + lt_cv_deplibs_check_method=pass_all |
3628 | + ;; |
3629 | + sequent) |
3630 | + lt_cv_file_magic_cmd='/bin/file' |
3631 | + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' |
3632 | + ;; |
3633 | + sni) |
3634 | + lt_cv_file_magic_cmd='/bin/file' |
3635 | + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" |
3636 | + lt_cv_file_magic_test_file=/lib/libc.so |
3637 | + ;; |
3638 | + siemens) |
3639 | + lt_cv_deplibs_check_method=pass_all |
3640 | + ;; |
3641 | + esac |
3642 | + ;; |
3643 | + |
3644 | +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*) |
3645 | + lt_cv_deplibs_check_method=pass_all |
3646 | + ;; |
3647 | +esac |
3648 | +]) |
3649 | +file_magic_cmd=$lt_cv_file_magic_cmd |
3650 | +deplibs_check_method=$lt_cv_deplibs_check_method |
3651 | +test -z "$deplibs_check_method" && deplibs_check_method=unknown |
3652 | +])# AC_DEPLIBS_CHECK_METHOD |
3653 | + |
3654 | + |
3655 | +# AC_PROG_NM |
3656 | +# ---------- |
3657 | +# find the pathname to a BSD-compatible name lister |
3658 | +AC_DEFUN([AC_PROG_NM], |
3659 | +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, |
3660 | +[if test -n "$NM"; then |
3661 | + # Let the user override the test. |
3662 | + lt_cv_path_NM="$NM" |
3663 | +else |
3664 | + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3665 | + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
3666 | + IFS="$lt_save_ifs" |
3667 | + test -z "$ac_dir" && ac_dir=. |
3668 | + tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
3669 | + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
3670 | + # Check to see if the nm accepts a BSD-compat flag. |
3671 | + # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
3672 | + # nm: unknown option "B" ignored |
3673 | + # Tru64's nm complains that /dev/null is an invalid object file |
3674 | + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3675 | + */dev/null* | *'Invalid file or object type'*) |
3676 | + lt_cv_path_NM="$tmp_nm -B" |
3677 | + break |
3678 | + ;; |
3679 | + *) |
3680 | + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
3681 | + */dev/null*) |
3682 | + lt_cv_path_NM="$tmp_nm -p" |
3683 | + break |
3684 | + ;; |
3685 | + *) |
3686 | + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
3687 | + continue # so that we can try to find one that supports BSD flags |
3688 | + ;; |
3689 | + esac |
3690 | + esac |
3691 | + fi |
3692 | + done |
3693 | + IFS="$lt_save_ifs" |
3694 | + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
3695 | +fi]) |
3696 | +NM="$lt_cv_path_NM" |
3697 | +])# AC_PROG_NM |
3698 | + |
3699 | + |
3700 | +# AC_CHECK_LIBM |
3701 | +# ------------- |
3702 | +# check for math library |
3703 | +AC_DEFUN([AC_CHECK_LIBM], |
3704 | +[AC_REQUIRE([AC_CANONICAL_HOST])dnl |
3705 | +LIBM= |
3706 | +case $host in |
3707 | +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
3708 | + # These system don't have libm, or don't need it |
3709 | + ;; |
3710 | +*-ncr-sysv4.3*) |
3711 | + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
3712 | + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
3713 | + ;; |
3714 | +*) |
3715 | + AC_CHECK_LIB(m, cos, LIBM="-lm") |
3716 | + ;; |
3717 | +esac |
3718 | +])# AC_CHECK_LIBM |
3719 | + |
3720 | + |
3721 | +# AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
3722 | +# ----------------------------------- |
3723 | +# sets LIBLTDL to the link flags for the libltdl convenience library and |
3724 | +# LTDLINCL to the include flags for the libltdl header and adds |
3725 | +# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL |
3726 | +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
3727 | +# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will |
3728 | +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with |
3729 | +# '${top_srcdir}/' (note the single quotes!). If your package is not |
3730 | +# flat and you're not using automake, define top_builddir and |
3731 | +# top_srcdir appropriately in the Makefiles. |
3732 | +AC_DEFUN([AC_LIBLTDL_CONVENIENCE], |
3733 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3734 | + case $enable_ltdl_convenience in |
3735 | + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
3736 | + "") enable_ltdl_convenience=yes |
3737 | + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
3738 | + esac |
3739 | + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
3740 | + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
3741 | + # For backwards non-gettext consistent compatibility... |
3742 | + INCLTDL="$LTDLINCL" |
3743 | +])# AC_LIBLTDL_CONVENIENCE |
3744 | + |
3745 | + |
3746 | +# AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
3747 | +# ----------------------------------- |
3748 | +# sets LIBLTDL to the link flags for the libltdl installable library and |
3749 | +# LTDLINCL to the include flags for the libltdl header and adds |
3750 | +# --enable-ltdl-install to the configure arguments. Note that LIBLTDL |
3751 | +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If |
3752 | +# DIRECTORY is not provided and an installed libltdl is not found, it is |
3753 | +# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/' |
3754 | +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single |
3755 | +# quotes!). If your package is not flat and you're not using automake, |
3756 | +# define top_builddir and top_srcdir appropriately in the Makefiles. |
3757 | +# In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
3758 | +AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
3759 | +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3760 | + AC_CHECK_LIB(ltdl, lt_dlinit, |
3761 | + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
3762 | + [if test x"$enable_ltdl_install" = xno; then |
3763 | + AC_MSG_WARN([libltdl not installed, but installation disabled]) |
3764 | + else |
3765 | + enable_ltdl_install=yes |
3766 | + fi |
3767 | + ]) |
3768 | + if test x"$enable_ltdl_install" = x"yes"; then |
3769 | + ac_configure_args="$ac_configure_args --enable-ltdl-install" |
3770 | + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
3771 | + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
3772 | + else |
3773 | + ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
3774 | + LIBLTDL="-lltdl" |
3775 | + LTDLINCL= |
3776 | + fi |
3777 | + # For backwards non-gettext consistent compatibility... |
3778 | + INCLTDL="$LTDLINCL" |
3779 | +])# AC_LIBLTDL_INSTALLABLE |
3780 | + |
3781 | + |
3782 | +# AC_LIBTOOL_CXX |
3783 | +# -------------- |
3784 | +# enable support for C++ libraries |
3785 | +AC_DEFUN([AC_LIBTOOL_CXX], |
3786 | +[AC_REQUIRE([_LT_AC_LANG_CXX]) |
3787 | +])# AC_LIBTOOL_CXX |
3788 | + |
3789 | + |
3790 | +# _LT_AC_LANG_CXX |
3791 | +# --------------- |
3792 | +AC_DEFUN([_LT_AC_LANG_CXX], |
3793 | +[AC_REQUIRE([AC_PROG_CXX]) |
3794 | +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
3795 | +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) |
3796 | +])# _LT_AC_LANG_CXX |
3797 | + |
3798 | +# _LT_AC_PROG_CXXCPP |
3799 | +# --------------- |
3800 | +AC_DEFUN([_LT_AC_PROG_CXXCPP], |
3801 | +[ |
3802 | +AC_REQUIRE([AC_PROG_CXX]) |
3803 | +if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
3804 | + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
3805 | + (test "X$CXX" != "Xg++"))) ; then |
3806 | + AC_PROG_CXXCPP |
3807 | +fi |
3808 | +])# _LT_AC_PROG_CXXCPP |
3809 | + |
3810 | +# AC_LIBTOOL_F77 |
3811 | +# -------------- |
3812 | +# enable support for Fortran 77 libraries |
3813 | +AC_DEFUN([AC_LIBTOOL_F77], |
3814 | +[AC_REQUIRE([_LT_AC_LANG_F77]) |
3815 | +])# AC_LIBTOOL_F77 |
3816 | + |
3817 | + |
3818 | +# _LT_AC_LANG_F77 |
3819 | +# --------------- |
3820 | +AC_DEFUN([_LT_AC_LANG_F77], |
3821 | +[AC_REQUIRE([AC_PROG_F77]) |
3822 | +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) |
3823 | +])# _LT_AC_LANG_F77 |
3824 | + |
3825 | + |
3826 | +# AC_LIBTOOL_GCJ |
3827 | +# -------------- |
3828 | +# enable support for GCJ libraries |
3829 | +AC_DEFUN([AC_LIBTOOL_GCJ], |
3830 | +[AC_REQUIRE([_LT_AC_LANG_GCJ]) |
3831 | +])# AC_LIBTOOL_GCJ |
3832 | + |
3833 | + |
3834 | +# _LT_AC_LANG_GCJ |
3835 | +# --------------- |
3836 | +AC_DEFUN([_LT_AC_LANG_GCJ], |
3837 | +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], |
3838 | + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], |
3839 | + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], |
3840 | + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], |
3841 | + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], |
3842 | + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) |
3843 | +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) |
3844 | +])# _LT_AC_LANG_GCJ |
3845 | + |
3846 | + |
3847 | +# AC_LIBTOOL_RC |
3848 | +# -------------- |
3849 | +# enable support for Windows resource files |
3850 | +AC_DEFUN([AC_LIBTOOL_RC], |
3851 | +[AC_REQUIRE([LT_AC_PROG_RC]) |
3852 | +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) |
3853 | +])# AC_LIBTOOL_RC |
3854 | + |
3855 | + |
3856 | +# AC_LIBTOOL_LANG_C_CONFIG |
3857 | +# ------------------------ |
3858 | +# Ensure that the configuration vars for the C compiler are |
3859 | +# suitably defined. Those variables are subsequently used by |
3860 | +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
3861 | +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) |
3862 | +AC_DEFUN([_LT_AC_LANG_C_CONFIG], |
3863 | +[lt_save_CC="$CC" |
3864 | +AC_LANG_PUSH(C) |
3865 | + |
3866 | +# Source file extension for C test sources. |
3867 | +ac_ext=c |
3868 | + |
3869 | +# Object file extension for compiled C test sources. |
3870 | +objext=o |
3871 | +_LT_AC_TAGVAR(objext, $1)=$objext |
3872 | + |
3873 | +# Code to be used in simple compile tests |
3874 | +lt_simple_compile_test_code="int some_variable = 0;\n" |
3875 | + |
3876 | +# Code to be used in simple link tests |
3877 | +lt_simple_link_test_code='int main(){return(0);}\n' |
3878 | + |
3879 | +_LT_AC_SYS_COMPILER |
3880 | + |
3881 | +# save warnings/boilerplate of simple test code |
3882 | +_LT_COMPILER_BOILERPLATE |
3883 | +_LT_LINKER_BOILERPLATE |
3884 | + |
3885 | +# |
3886 | +# Check for any special shared library compilation flags. |
3887 | +# |
3888 | +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)= |
3889 | +if test "$GCC" = no; then |
3890 | + case $host_os in |
3891 | + sco3.2v5*) |
3892 | + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf' |
3893 | + ;; |
3894 | + esac |
3895 | +fi |
3896 | +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then |
3897 | + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries]) |
3898 | + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then : |
3899 | + else |
3900 | + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure]) |
3901 | + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no |
3902 | + fi |
3903 | +fi |
3904 | + |
3905 | + |
3906 | +# |
3907 | +# Check to make sure the static flag actually works. |
3908 | +# |
3909 | +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works], |
3910 | + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), |
3911 | + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1), |
3912 | + [], |
3913 | + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) |
3914 | + |
3915 | + |
3916 | +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) |
3917 | +AC_LIBTOOL_PROG_COMPILER_PIC($1) |
3918 | +AC_LIBTOOL_PROG_CC_C_O($1) |
3919 | +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
3920 | +AC_LIBTOOL_PROG_LD_SHLIBS($1) |
3921 | +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
3922 | +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
3923 | +AC_LIBTOOL_SYS_LIB_STRIP |
3924 | +AC_LIBTOOL_DLOPEN_SELF($1) |
3925 | + |
3926 | +# Report which librarie types wil actually be built |
3927 | +AC_MSG_CHECKING([if libtool supports shared libraries]) |
3928 | +AC_MSG_RESULT([$can_build_shared]) |
3929 | + |
3930 | +AC_MSG_CHECKING([whether to build shared libraries]) |
3931 | +test "$can_build_shared" = "no" && enable_shared=no |
3932 | + |
3933 | +# On AIX, shared libraries and static libraries use the same namespace, and |
3934 | +# are all built from PIC. |
3935 | +case "$host_os" in |
3936 | +aix3*) |
3937 | + test "$enable_shared" = yes && enable_static=no |
3938 | + if test -n "$RANLIB"; then |
3939 | + archive_cmds="$archive_cmds~\$RANLIB \$lib" |
3940 | + postinstall_cmds='$RANLIB $lib' |
3941 | + fi |
3942 | + ;; |
3943 | + |
3944 | +aix4* | aix5*) |
3945 | + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
3946 | + test "$enable_shared" = yes && enable_static=no |
3947 | + fi |
3948 | + ;; |
3949 | +esac |
3950 | +AC_MSG_RESULT([$enable_shared]) |
3951 | + |
3952 | +AC_MSG_CHECKING([whether to build static libraries]) |
3953 | +# Make sure either enable_shared or enable_static is yes. |
3954 | +test "$enable_shared" = yes || enable_static=yes |
3955 | +AC_MSG_RESULT([$enable_static]) |
3956 | + |
3957 | +AC_LIBTOOL_CONFIG($1) |
3958 | + |
3959 | +AC_LANG_POP |
3960 | +CC="$lt_save_CC" |
3961 | +])# AC_LIBTOOL_LANG_C_CONFIG |
3962 | + |
3963 | + |
3964 | +# AC_LIBTOOL_LANG_CXX_CONFIG |
3965 | +# -------------------------- |
3966 | +# Ensure that the configuration vars for the C compiler are |
3967 | +# suitably defined. Those variables are subsequently used by |
3968 | +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. |
3969 | +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) |
3970 | +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], |
3971 | +[AC_LANG_PUSH(C++) |
3972 | +AC_REQUIRE([AC_PROG_CXX]) |
3973 | +AC_REQUIRE([_LT_AC_PROG_CXXCPP]) |
3974 | + |
3975 | +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
3976 | +_LT_AC_TAGVAR(allow_undefined_flag, $1)= |
3977 | +_LT_AC_TAGVAR(always_export_symbols, $1)=no |
3978 | +_LT_AC_TAGVAR(archive_expsym_cmds, $1)= |
3979 | +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= |
3980 | +_LT_AC_TAGVAR(hardcode_direct, $1)=no |
3981 | +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= |
3982 | +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= |
3983 | +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
3984 | +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no |
3985 | +_LT_AC_TAGVAR(hardcode_automatic, $1)=no |
3986 | +_LT_AC_TAGVAR(module_cmds, $1)= |
3987 | +_LT_AC_TAGVAR(module_expsym_cmds, $1)= |
3988 | +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown |
3989 | +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds |
3990 | +_LT_AC_TAGVAR(no_undefined_flag, $1)= |
3991 | +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
3992 | +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no |
3993 | + |
3994 | +# Dependencies to place before and after the object being linked: |
3995 | +_LT_AC_TAGVAR(predep_objects, $1)= |
3996 | +_LT_AC_TAGVAR(postdep_objects, $1)= |
3997 | +_LT_AC_TAGVAR(predeps, $1)= |
3998 | +_LT_AC_TAGVAR(postdeps, $1)= |
3999 | +_LT_AC_TAGVAR(compiler_lib_search_path, $1)= |
4000 | + |
4001 | +# Source file extension for C++ test sources. |
4002 | +ac_ext=cc |
4003 | + |
4004 | +# Object file extension for compiled C++ test sources. |
4005 | +objext=o |
4006 | +_LT_AC_TAGVAR(objext, $1)=$objext |
4007 | + |
4008 | +# Code to be used in simple compile tests |
4009 | +lt_simple_compile_test_code="int some_variable = 0;\n" |
4010 | + |
4011 | +# Code to be used in simple link tests |
4012 | +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
4013 | + |
4014 | +# ltmain only uses $CC for tagged configurations so make sure $CC is set. |
4015 | +_LT_AC_SYS_COMPILER |
4016 | + |
4017 | +# save warnings/boilerplate of simple test code |
4018 | +_LT_COMPILER_BOILERPLATE |
4019 | +_LT_LINKER_BOILERPLATE |
4020 | + |
4021 | +# Allow CC to be a program name with arguments. |
4022 | +lt_save_CC=$CC |
4023 | +lt_save_LD=$LD |
4024 | +lt_save_GCC=$GCC |
4025 | +GCC=$GXX |
4026 | +lt_save_with_gnu_ld=$with_gnu_ld |
4027 | +lt_save_path_LD=$lt_cv_path_LD |
4028 | +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
4029 | + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
4030 | +else |
4031 | + unset lt_cv_prog_gnu_ld |
4032 | +fi |
4033 | +if test -n "${lt_cv_path_LDCXX+set}"; then |
4034 | + lt_cv_path_LD=$lt_cv_path_LDCXX |
4035 | +else |
4036 | + unset lt_cv_path_LD |
4037 | +fi |
4038 | +test -z "${LDCXX+set}" || LD=$LDCXX |
4039 | +CC=${CXX-"c++"} |
4040 | +compiler=$CC |
4041 | +_LT_AC_TAGVAR(compiler, $1)=$CC |
4042 | +_LT_CC_BASENAME([$compiler]) |
4043 | + |
4044 | +# We don't want -fno-exception wen compiling C++ code, so set the |
4045 | +# no_builtin_flag separately |
4046 | +if test "$GXX" = yes; then |
4047 | + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' |
4048 | +else |
4049 | + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= |
4050 | +fi |
4051 | + |
4052 | +if test "$GXX" = yes; then |
4053 | + # Set up default GNU C++ configuration |
4054 | + |
4055 | + AC_PROG_LD |
4056 | + |
4057 | + # Check if GNU C++ uses GNU ld as the underlying linker, since the |
4058 | + # archiving commands below assume that GNU ld is being used. |
4059 | + if test "$with_gnu_ld" = yes; then |
4060 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4061 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
4062 | + |
4063 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
4064 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4065 | + |
4066 | + # If archive_cmds runs LD, not CC, wlarc should be empty |
4067 | + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
4068 | + # investigate it a little bit more. (MM) |
4069 | + wlarc='${wl}' |
4070 | + |
4071 | + # ancient GNU ld didn't support --whole-archive et. al. |
4072 | + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
4073 | + grep 'no-whole-archive' > /dev/null; then |
4074 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
4075 | + else |
4076 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= |
4077 | + fi |
4078 | + else |
4079 | + with_gnu_ld=no |
4080 | + wlarc= |
4081 | + |
4082 | + # A generic and very simple default shared library creation |
4083 | + # command for GNU C++ for the case where it uses the native |
4084 | + # linker, instead of GNU ld. If possible, this setting should |
4085 | + # overridden to take advantage of the native linker features on |
4086 | + # the platform it is being used on. |
4087 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
4088 | + fi |
4089 | + |
4090 | + # Commands to make compiler produce verbose output that lists |
4091 | + # what "hidden" libraries, object files and flags are used when |
4092 | + # linking a shared library. |
4093 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
4094 | + |
4095 | +else |
4096 | + GXX=no |
4097 | + with_gnu_ld=no |
4098 | + wlarc= |
4099 | +fi |
4100 | + |
4101 | +# PORTME: fill in a description of your system's C++ link characteristics |
4102 | +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
4103 | +_LT_AC_TAGVAR(ld_shlibs, $1)=yes |
4104 | +case $host_os in |
4105 | + aix3*) |
4106 | + # FIXME: insert proper C++ library support |
4107 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4108 | + ;; |
4109 | + aix4* | aix5*) |
4110 | + if test "$host_cpu" = ia64; then |
4111 | + # On IA64, the linker does run time linking by default, so we don't |
4112 | + # have to do anything special. |
4113 | + aix_use_runtimelinking=no |
4114 | + exp_sym_flag='-Bexport' |
4115 | + no_entry_flag="" |
4116 | + else |
4117 | + aix_use_runtimelinking=no |
4118 | + |
4119 | + # Test if we are trying to use run time linking or normal |
4120 | + # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
4121 | + # need to do runtime linking. |
4122 | + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) |
4123 | + for ld_flag in $LDFLAGS; do |
4124 | + case $ld_flag in |
4125 | + *-brtl*) |
4126 | + aix_use_runtimelinking=yes |
4127 | + break |
4128 | + ;; |
4129 | + esac |
4130 | + done |
4131 | + esac |
4132 | + |
4133 | + exp_sym_flag='-bexport' |
4134 | + no_entry_flag='-bnoentry' |
4135 | + fi |
4136 | + |
4137 | + # When large executables or shared objects are built, AIX ld can |
4138 | + # have problems creating the table of contents. If linking a library |
4139 | + # or program results in "error TOC overflow" add -mminimal-toc to |
4140 | + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
4141 | + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
4142 | + |
4143 | + _LT_AC_TAGVAR(archive_cmds, $1)='' |
4144 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4145 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' |
4146 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4147 | + |
4148 | + if test "$GXX" = yes; then |
4149 | + case $host_os in aix4.[[012]]|aix4.[[012]].*) |
4150 | + # We only want to do this on AIX 4.2 and lower, the check |
4151 | + # below for broken collect2 doesn't work under 4.3+ |
4152 | + collect2name=`${CC} -print-prog-name=collect2` |
4153 | + if test -f "$collect2name" && \ |
4154 | + strings "$collect2name" | grep resolve_lib_name >/dev/null |
4155 | + then |
4156 | + # We have reworked collect2 |
4157 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4158 | + else |
4159 | + # We have old collect2 |
4160 | + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported |
4161 | + # It fails to find uninstalled libraries when the uninstalled |
4162 | + # path is not listed in the libpath. Setting hardcode_minus_L |
4163 | + # to unsupported forces relinking |
4164 | + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes |
4165 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4166 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= |
4167 | + fi |
4168 | + esac |
4169 | + shared_flag='-shared' |
4170 | + if test "$aix_use_runtimelinking" = yes; then |
4171 | + shared_flag="$shared_flag "'${wl}-G' |
4172 | + fi |
4173 | + else |
4174 | + # not using gcc |
4175 | + if test "$host_cpu" = ia64; then |
4176 | + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
4177 | + # chokes on -Wl,-G. The following line is correct: |
4178 | + shared_flag='-G' |
4179 | + else |
4180 | + if test "$aix_use_runtimelinking" = yes; then |
4181 | + shared_flag='${wl}-G' |
4182 | + else |
4183 | + shared_flag='${wl}-bM:SRE' |
4184 | + fi |
4185 | + fi |
4186 | + fi |
4187 | + |
4188 | + # It seems that -bexpall does not export symbols beginning with |
4189 | + # underscore (_), so it is better to generate a list of symbols to export. |
4190 | + _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4191 | + if test "$aix_use_runtimelinking" = yes; then |
4192 | + # Warning - without using the other runtime loading flags (-brtl), |
4193 | + # -berok will link without error, but may produce a broken library. |
4194 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' |
4195 | + # Determine the default libpath from the value encoded in an empty executable. |
4196 | + _LT_AC_SYS_LIBPATH_AIX |
4197 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4198 | + |
4199 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$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" |
4200 | + else |
4201 | + if test "$host_cpu" = ia64; then |
4202 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' |
4203 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" |
4204 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
4205 | + else |
4206 | + # Determine the default libpath from the value encoded in an empty executable. |
4207 | + _LT_AC_SYS_LIBPATH_AIX |
4208 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
4209 | + # Warning - without using the other run time loading flags, |
4210 | + # -berok will link without error, but may produce a broken library. |
4211 | + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' |
4212 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' |
4213 | + # -bexpall does not export symbols beginning with underscore (_) |
4214 | + _LT_AC_TAGVAR(always_export_symbols, $1)=yes |
4215 | + # Exported symbols can be pulled into shared objects from archives |
4216 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' ' |
4217 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes |
4218 | + # This is similar to how AIX traditionally builds it's shared libraries. |
4219 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
4220 | + fi |
4221 | + fi |
4222 | + ;; |
4223 | + chorus*) |
4224 | + case $cc_basename in |
4225 | + *) |
4226 | + # FIXME: insert proper C++ library support |
4227 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4228 | + ;; |
4229 | + esac |
4230 | + ;; |
4231 | + |
4232 | + |
4233 | + cygwin* | mingw* | pw32*) |
4234 | + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, |
4235 | + # as there is no search path for DLLs. |
4236 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4237 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported |
4238 | + _LT_AC_TAGVAR(always_export_symbols, $1)=no |
4239 | + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
4240 | + |
4241 | + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
4242 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
4243 | + # If the export-symbols file already is a .def file (1st line |
4244 | + # is EXPORTS), use it as is; otherwise, prepend... |
4245 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
4246 | + cp $export_symbols $output_objdir/$soname.def; |
4247 | + else |
4248 | + echo EXPORTS > $output_objdir/$soname.def; |
4249 | + cat $export_symbols >> $output_objdir/$soname.def; |
4250 | + fi~ |
4251 | + $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
4252 | + else |
4253 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4254 | + fi |
4255 | + ;; |
4256 | + darwin* | rhapsody*) |
4257 | + case "$host_os" in |
4258 | + rhapsody* | darwin1.[[012]]) |
4259 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' |
4260 | + ;; |
4261 | + *) # Darwin 1.3 on |
4262 | + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
4263 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
4264 | + else |
4265 | + case ${MACOSX_DEPLOYMENT_TARGET} in |
4266 | + 10.[[012]]) |
4267 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
4268 | + ;; |
4269 | + 10.*) |
4270 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' |
4271 | + ;; |
4272 | + esac |
4273 | + fi |
4274 | + ;; |
4275 | + esac |
4276 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4277 | + _LT_AC_TAGVAR(hardcode_direct, $1)=no |
4278 | + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes |
4279 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported |
4280 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
4281 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4282 | + |
4283 | + if test "$GXX" = yes ; then |
4284 | + lt_int_apple_cc_single_mod=no |
4285 | + output_verbose_link_cmd='echo' |
4286 | + if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
4287 | + lt_int_apple_cc_single_mod=yes |
4288 | + fi |
4289 | + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
4290 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
4291 | + else |
4292 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
4293 | + fi |
4294 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
4295 | + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
4296 | + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
4297 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4298 | + else |
4299 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4300 | + fi |
4301 | + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4302 | + else |
4303 | + case $cc_basename in |
4304 | + xlc*) |
4305 | + output_verbose_link_cmd='echo' |
4306 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
4307 | + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
4308 | + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's |
4309 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4310 | + _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
4311 | + ;; |
4312 | + *) |
4313 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4314 | + ;; |
4315 | + esac |
4316 | + fi |
4317 | + ;; |
4318 | + |
4319 | + dgux*) |
4320 | + case $cc_basename in |
4321 | + ec++*) |
4322 | + # FIXME: insert proper C++ library support |
4323 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4324 | + ;; |
4325 | + ghcx*) |
4326 | + # Green Hills C++ Compiler |
4327 | + # FIXME: insert proper C++ library support |
4328 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4329 | + ;; |
4330 | + *) |
4331 | + # FIXME: insert proper C++ library support |
4332 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4333 | + ;; |
4334 | + esac |
4335 | + ;; |
4336 | + freebsd[[12]]*) |
4337 | + # C++ shared libraries reported to be fairly broken before switch to ELF |
4338 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4339 | + ;; |
4340 | + freebsd-elf*) |
4341 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4342 | + ;; |
4343 | + freebsd* | kfreebsd*-gnu | dragonfly*) |
4344 | + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
4345 | + # conventions |
4346 | + _LT_AC_TAGVAR(ld_shlibs, $1)=yes |
4347 | + ;; |
4348 | + gnu*) |
4349 | + ;; |
4350 | + hpux9*) |
4351 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4352 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4353 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4354 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4355 | + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
4356 | + # but as the default |
4357 | + # location of the library. |
4358 | + |
4359 | + case $cc_basename in |
4360 | + CC*) |
4361 | + # FIXME: insert proper C++ library support |
4362 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4363 | + ;; |
4364 | + aCC*) |
4365 | + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
4366 | + # Commands to make compiler produce verbose output that lists |
4367 | + # what "hidden" libraries, object files and flags are used when |
4368 | + # linking a shared library. |
4369 | + # |
4370 | + # There doesn't appear to be a way to prevent this compiler from |
4371 | + # explicitly linking system object files so we need to strip them |
4372 | + # from the output so that they don't get included in the library |
4373 | + # dependencies. |
4374 | + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4375 | + ;; |
4376 | + *) |
4377 | + if test "$GXX" = yes; then |
4378 | + _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
4379 | + else |
4380 | + # FIXME: insert proper C++ library support |
4381 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4382 | + fi |
4383 | + ;; |
4384 | + esac |
4385 | + ;; |
4386 | + hpux10*|hpux11*) |
4387 | + if test $with_gnu_ld = no; then |
4388 | + case "$host_cpu" in |
4389 | + hppa*64*) |
4390 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4391 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' |
4392 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4393 | + ;; |
4394 | + ia64*) |
4395 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' |
4396 | + ;; |
4397 | + *) |
4398 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' |
4399 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4400 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4401 | + ;; |
4402 | + esac |
4403 | + fi |
4404 | + case "$host_cpu" in |
4405 | + hppa*64*) |
4406 | + _LT_AC_TAGVAR(hardcode_direct, $1)=no |
4407 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4408 | + ;; |
4409 | + ia64*) |
4410 | + _LT_AC_TAGVAR(hardcode_direct, $1)=no |
4411 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4412 | + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
4413 | + # but as the default |
4414 | + # location of the library. |
4415 | + ;; |
4416 | + *) |
4417 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4418 | + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, |
4419 | + # but as the default |
4420 | + # location of the library. |
4421 | + ;; |
4422 | + esac |
4423 | + |
4424 | + case $cc_basename in |
4425 | + CC*) |
4426 | + # FIXME: insert proper C++ library support |
4427 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4428 | + ;; |
4429 | + aCC*) |
4430 | + case "$host_cpu" in |
4431 | + hppa*64*|ia64*) |
4432 | + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
4433 | + ;; |
4434 | + *) |
4435 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
4436 | + ;; |
4437 | + esac |
4438 | + # Commands to make compiler produce verbose output that lists |
4439 | + # what "hidden" libraries, object files and flags are used when |
4440 | + # linking a shared library. |
4441 | + # |
4442 | + # There doesn't appear to be a way to prevent this compiler from |
4443 | + # explicitly linking system object files so we need to strip them |
4444 | + # from the output so that they don't get included in the library |
4445 | + # dependencies. |
4446 | + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4447 | + ;; |
4448 | + *) |
4449 | + if test "$GXX" = yes; then |
4450 | + if test $with_gnu_ld = no; then |
4451 | + case "$host_cpu" in |
4452 | + ia64*|hppa*64*) |
4453 | + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
4454 | + ;; |
4455 | + *) |
4456 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
4457 | + ;; |
4458 | + esac |
4459 | + fi |
4460 | + else |
4461 | + # FIXME: insert proper C++ library support |
4462 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4463 | + fi |
4464 | + ;; |
4465 | + esac |
4466 | + ;; |
4467 | + irix5* | irix6*) |
4468 | + case $cc_basename in |
4469 | + CC*) |
4470 | + # SGI C++ |
4471 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
4472 | + |
4473 | + # Archives containing C++ object files must be created using |
4474 | + # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
4475 | + # necessary to make sure instantiated templates are included |
4476 | + # in the archive. |
4477 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' |
4478 | + ;; |
4479 | + *) |
4480 | + if test "$GXX" = yes; then |
4481 | + if test "$with_gnu_ld" = no; then |
4482 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' |
4483 | + else |
4484 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' |
4485 | + fi |
4486 | + fi |
4487 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4488 | + ;; |
4489 | + esac |
4490 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4491 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4492 | + ;; |
4493 | + linux*) |
4494 | + case $cc_basename in |
4495 | + KCC*) |
4496 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
4497 | + |
4498 | + # KCC will only create a shared library if the output file |
4499 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
4500 | + # to its proper name (with version) after linking. |
4501 | + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
4502 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' |
4503 | + # Commands to make compiler produce verbose output that lists |
4504 | + # what "hidden" libraries, object files and flags are used when |
4505 | + # linking a shared library. |
4506 | + # |
4507 | + # There doesn't appear to be a way to prevent this compiler from |
4508 | + # explicitly linking system object files so we need to strip them |
4509 | + # from the output so that they don't get included in the library |
4510 | + # dependencies. |
4511 | + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4512 | + |
4513 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' |
4514 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4515 | + |
4516 | + # Archives containing C++ object files must be created using |
4517 | + # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
4518 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
4519 | + ;; |
4520 | + icpc*) |
4521 | + # Intel C++ |
4522 | + with_gnu_ld=yes |
4523 | + # version 8.0 and above of icpc choke on multiply defined symbols |
4524 | + # if we add $predep_objects and $postdep_objects, however 7.1 and |
4525 | + # earlier do not add the objects themselves. |
4526 | + case `$CC -V 2>&1` in |
4527 | + *"Version 7."*) |
4528 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4529 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
4530 | + ;; |
4531 | + *) # Version 8.0 or newer |
4532 | + tmp_idyn= |
4533 | + case $host_cpu in |
4534 | + ia64*) tmp_idyn=' -i_dynamic';; |
4535 | + esac |
4536 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4537 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
4538 | + ;; |
4539 | + esac |
4540 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4541 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4542 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4543 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
4544 | + ;; |
4545 | + pgCC*) |
4546 | + # Portland Group C++ compiler |
4547 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
4548 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' |
4549 | + |
4550 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' |
4551 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
4552 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' |
4553 | + ;; |
4554 | + cxx*) |
4555 | + # Compaq C++ |
4556 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
4557 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' |
4558 | + |
4559 | + runpath_var=LD_RUN_PATH |
4560 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4561 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4562 | + |
4563 | + # Commands to make compiler produce verbose output that lists |
4564 | + # what "hidden" libraries, object files and flags are used when |
4565 | + # linking a shared library. |
4566 | + # |
4567 | + # There doesn't appear to be a way to prevent this compiler from |
4568 | + # explicitly linking system object files so we need to strip them |
4569 | + # from the output so that they don't get included in the library |
4570 | + # dependencies. |
4571 | + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4572 | + ;; |
4573 | + esac |
4574 | + ;; |
4575 | + lynxos*) |
4576 | + # FIXME: insert proper C++ library support |
4577 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4578 | + ;; |
4579 | + m88k*) |
4580 | + # FIXME: insert proper C++ library support |
4581 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4582 | + ;; |
4583 | + mvs*) |
4584 | + case $cc_basename in |
4585 | + cxx*) |
4586 | + # FIXME: insert proper C++ library support |
4587 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4588 | + ;; |
4589 | + *) |
4590 | + # FIXME: insert proper C++ library support |
4591 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4592 | + ;; |
4593 | + esac |
4594 | + ;; |
4595 | + netbsd*) |
4596 | + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
4597 | + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
4598 | + wlarc= |
4599 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4600 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4601 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4602 | + fi |
4603 | + # Workaround some broken pre-1.5 toolchains |
4604 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
4605 | + ;; |
4606 | + openbsd2*) |
4607 | + # C++ shared libraries are fairly broken |
4608 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4609 | + ;; |
4610 | + openbsd*) |
4611 | + _LT_AC_TAGVAR(hardcode_direct, $1)=yes |
4612 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4613 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
4614 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4615 | + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4616 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
4617 | + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' |
4618 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
4619 | + fi |
4620 | + output_verbose_link_cmd='echo' |
4621 | + ;; |
4622 | + osf3*) |
4623 | + case $cc_basename in |
4624 | + KCC*) |
4625 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
4626 | + |
4627 | + # KCC will only create a shared library if the output file |
4628 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
4629 | + # to its proper name (with version) after linking. |
4630 | + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
4631 | + |
4632 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4633 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4634 | + |
4635 | + # Archives containing C++ object files must be created using |
4636 | + # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
4637 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' |
4638 | + |
4639 | + ;; |
4640 | + RCC*) |
4641 | + # Rational C++ 2.4.1 |
4642 | + # FIXME: insert proper C++ library support |
4643 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4644 | + ;; |
4645 | + cxx*) |
4646 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4647 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
4648 | + |
4649 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4650 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4651 | + |
4652 | + # Commands to make compiler produce verbose output that lists |
4653 | + # what "hidden" libraries, object files and flags are used when |
4654 | + # linking a shared library. |
4655 | + # |
4656 | + # There doesn't appear to be a way to prevent this compiler from |
4657 | + # explicitly linking system object files so we need to strip them |
4658 | + # from the output so that they don't get included in the library |
4659 | + # dependencies. |
4660 | + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4661 | + ;; |
4662 | + *) |
4663 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
4664 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4665 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' |
4666 | + |
4667 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4668 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4669 | + |
4670 | + # Commands to make compiler produce verbose output that lists |
4671 | + # what "hidden" libraries, object files and flags are used when |
4672 | + # linking a shared library. |
4673 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
4674 | + |
4675 | + else |
4676 | + # FIXME: insert proper C++ library support |
4677 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4678 | + fi |
4679 | + ;; |
4680 | + esac |
4681 | + ;; |
4682 | + osf4* | osf5*) |
4683 | + case $cc_basename in |
4684 | + KCC*) |
4685 | + # Kuck and Associates, Inc. (KAI) C++ Compiler |
4686 | + |
4687 | + # KCC will only create a shared library if the output file |
4688 | + # ends with ".so" (or ".sl" for HP-UX), so rename the library |
4689 | + # to its proper name (with version) after linking. |
4690 | + _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' |
4691 | + |
4692 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' |
4693 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4694 | + |
4695 | + # Archives containing C++ object files must be created using |
4696 | + # the KAI C++ compiler. |
4697 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' |
4698 | + ;; |
4699 | + RCC*) |
4700 | + # Rational C++ 2.4.1 |
4701 | + # FIXME: insert proper C++ library support |
4702 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4703 | + ;; |
4704 | + cxx*) |
4705 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
4706 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' |
4707 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
4708 | + echo "-hidden">> $lib.exp~ |
4709 | + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ |
4710 | + $rm $lib.exp' |
4711 | + |
4712 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' |
4713 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4714 | + |
4715 | + # Commands to make compiler produce verbose output that lists |
4716 | + # what "hidden" libraries, object files and flags are used when |
4717 | + # linking a shared library. |
4718 | + # |
4719 | + # There doesn't appear to be a way to prevent this compiler from |
4720 | + # explicitly linking system object files so we need to strip them |
4721 | + # from the output so that they don't get included in the library |
4722 | + # dependencies. |
4723 | + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4724 | + ;; |
4725 | + *) |
4726 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
4727 | + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
4728 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' |
4729 | + |
4730 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
4731 | + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: |
4732 | + |
4733 | + # Commands to make compiler produce verbose output that lists |
4734 | + # what "hidden" libraries, object files and flags are used when |
4735 | + # linking a shared library. |
4736 | + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
4737 | + |
4738 | + else |
4739 | + # FIXME: insert proper C++ library support |
4740 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4741 | + fi |
4742 | + ;; |
4743 | + esac |
4744 | + ;; |
4745 | + psos*) |
4746 | + # FIXME: insert proper C++ library support |
4747 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4748 | + ;; |
4749 | + sco*) |
4750 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4751 | + case $cc_basename in |
4752 | + CC*) |
4753 | + # FIXME: insert proper C++ library support |
4754 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4755 | + ;; |
4756 | + *) |
4757 | + # FIXME: insert proper C++ library support |
4758 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4759 | + ;; |
4760 | + esac |
4761 | + ;; |
4762 | + sunos4*) |
4763 | + case $cc_basename in |
4764 | + CC*) |
4765 | + # Sun C++ 4.x |
4766 | + # FIXME: insert proper C++ library support |
4767 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4768 | + ;; |
4769 | + lcc*) |
4770 | + # Lucid |
4771 | + # FIXME: insert proper C++ library support |
4772 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4773 | + ;; |
4774 | + *) |
4775 | + # FIXME: insert proper C++ library support |
4776 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4777 | + ;; |
4778 | + esac |
4779 | + ;; |
4780 | + solaris*) |
4781 | + case $cc_basename in |
4782 | + CC*) |
4783 | + # Sun C++ 4.2, 5.x and Centerline C++ |
4784 | + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' |
4785 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
4786 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4787 | + $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
4788 | + |
4789 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
4790 | + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no |
4791 | + case $host_os in |
4792 | + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; |
4793 | + *) |
4794 | + # The C++ compiler is used as linker so we must use $wl |
4795 | + # flag to pass the commands to the underlying system |
4796 | + # linker. We must also pass each convience library through |
4797 | + # to the system linker between allextract/defaultextract. |
4798 | + # The C++ compiler will combine linker options so we |
4799 | + # cannot just pass the convience library names through |
4800 | + # without $wl. |
4801 | + # Supported since Solaris 2.6 (maybe 2.5.1?) |
4802 | + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
4803 | + ;; |
4804 | + esac |
4805 | + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes |
4806 | + |
4807 | + # Commands to make compiler produce verbose output that lists |
4808 | + # what "hidden" libraries, object files and flags are used when |
4809 | + # linking a shared library. |
4810 | + # |
4811 | + # There doesn't appear to be a way to prevent this compiler from |
4812 | + # explicitly linking system object files so we need to strip them |
4813 | + # from the output so that they don't get included in the library |
4814 | + # dependencies. |
4815 | + output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[[LR]]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' |
4816 | + |
4817 | + # Archives containing C++ object files must be created using |
4818 | + # "CC -xar", where "CC" is the Sun C++ compiler. This is |
4819 | + # necessary to make sure instantiated templates are included |
4820 | + # in the archive. |
4821 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' |
4822 | + ;; |
4823 | + gcx*) |
4824 | + # Green Hills C++ Compiler |
4825 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
4826 | + |
4827 | + # The C++ compiler must be used to create the archive. |
4828 | + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
4829 | + ;; |
4830 | + *) |
4831 | + # GNU C++ compiler with Solaris linker |
4832 | + if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
4833 | + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
4834 | + if $CC --version | grep -v '^2\.7' > /dev/null; then |
4835 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
4836 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4837 | + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
4838 | + |
4839 | + # Commands to make compiler produce verbose output that lists |
4840 | + # what "hidden" libraries, object files and flags are used when |
4841 | + # linking a shared library. |
4842 | + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
4843 | + else |
4844 | + # g++ 2.7 appears to require `-G' NOT `-shared' on this |
4845 | + # platform. |
4846 | + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
4847 | + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
4848 | + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
4849 | + |
4850 | + # Commands to make compiler produce verbose output that lists |
4851 | + # what "hidden" libraries, object files and flags are used when |
4852 | + # linking a shared library. |
4853 | + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
4854 | + fi |
4855 | + |
4856 | + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' |
4857 | + fi |
4858 | + ;; |
4859 | + esac |
4860 | + ;; |
4861 | + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*) |
4862 | + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no |
4863 | + ;; |
4864 | + tandem*) |
4865 | + case $cc_basename in |
4866 | + NCC*) |
4867 | + # NonStop-UX NCC 3.20 |
4868 | + # FIXME: insert proper C++ library support |
4869 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4870 | + ;; |
4871 | + *) |
4872 | + # FIXME: insert proper C++ library support |
4873 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4874 | + ;; |
4875 | + esac |
4876 | + ;; |
4877 | + vxworks*) |
4878 | + # FIXME: insert proper C++ library support |
4879 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4880 | + ;; |
4881 | + *) |
4882 | + # FIXME: insert proper C++ library support |
4883 | + _LT_AC_TAGVAR(ld_shlibs, $1)=no |
4884 | + ;; |
4885 | +esac |
4886 | +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) |
4887 | +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no |
4888 | + |
4889 | +_LT_AC_TAGVAR(GCC, $1)="$GXX" |
4890 | +_LT_AC_TAGVAR(LD, $1)="$LD" |
4891 | + |
4892 | +AC_LIBTOOL_POSTDEP_PREDEP($1) |
4893 | +AC_LIBTOOL_PROG_COMPILER_PIC($1) |
4894 | +AC_LIBTOOL_PROG_CC_C_O($1) |
4895 | +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) |
4896 | +AC_LIBTOOL_PROG_LD_SHLIBS($1) |
4897 | +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) |
4898 | +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) |
4899 | +AC_LIBTOOL_SYS_LIB_STRIP |
4900 | +AC_LIBTOOL_DLOPEN_SELF($1) |
4901 | + |
4902 | +AC_LIBTOOL_CONFIG($1) |
4903 | + |
4904 | +AC_LANG_POP |
4905 | +CC=$lt_save_CC |
4906 | +LDCXX=$LD |
4907 | +LD=$lt_save_LD |
4908 | +GCC=$lt_save_GCC |
4909 | +with_gnu_ldcxx=$with_gnu_ld |
4910 | +with_gnu_ld=$lt_save_with_gnu_ld |
4911 | +lt_cv_path_LDCXX=$lt_cv_path_LD |
4912 | +lt_cv_path_LD=$lt_save_path_LD |
4913 | +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
4914 | +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
4915 | +])# AC_LIBTOOL_LANG_CXX_CONFIG |
4916 | + |
4917 | +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) |
4918 | +# ------------------------ |
4919 | +# Figure out "hidden" library dependencies from verbose |
4920 | +# compiler output when linking a shared library. |
4921 | +# Parse the compiler output and extract the necessary |
4922 | +# objects, libraries and library flags. |
4923 | +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ |
4924 | +dnl we can't use the lt_simple_compile_test_code here, |
4925 | +dnl because it contains code intended for an executable, |
4926 | +dnl not a library. It's possible we should let each |
4927 | +dnl tag define a new lt_????_link_test_code variable, |
4928 | +dnl but it's only used here... |
4929 | +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF |
4930 | +int a; |
4931 | +void foo (void) { a = 0; } |
4932 | +EOF |
4933 | +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF |
4934 | +class Foo |
4935 | +{ |
4936 | +public: |
4937 | + Foo (void) { a = 0; } |
4938 | +private: |
4939 | + int a; |
4940 | +}; |
4941 | +EOF |
4942 | +],[$1],[F77],[cat > conftest.$ac_ext <<EOF |
4943 | + subroutine foo |
4944 | + implicit none |
4945 | + integer*4 a |
4946 | + a=0 |
4947 | + return |
4948 | + end |
4949 | +EOF |
4950 | +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF |
4951 | +public class foo { |
4952 | + private int a; |
4953 | + public void bar (void) { |
4954 | + a = 0; |
4955 | + } |
4956 | +}; |
4957 | +EOF |
4958 | +]) |
4959 | +dnl Parse the compiler output and extract the necessary |
4960 | +dnl objects, libraries and library flags. |
4961 | +if AC_TRY_EVAL(ac_compile); then |
4962 | + # Parse the compiler output and extract the necessary |
4963 | + # objects, libraries and library flags. |
4964 | + |
4965 | + # Sentinel used to keep track of whether or not we are before |
4966 | + # the conftest object file. |
4967 | + pre_test_object_deps_done=no |
4968 | + |
4969 | + # The `*' in the case matches for architectures that use `case' in |
4970 | + # $output_verbose_cmd can trigger glob expansion during the loop |
4971 | + # eval without this substitution. |
4972 | + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" |
4973 | + |
4974 | + for p in `eval $output_verbose_link_cmd`; do |
4975 | + case $p in |
4976 | + |
4977 | + -L* | -R* | -l*) |
4978 | + # Some compilers place space between "-{L,R}" and the path. |
4979 | + # Remove the space. |
4980 | + if test $p = "-L" \ |
4981 | + || test $p = "-R"; then |
4982 | + prev=$p |
4983 | + continue |
4984 | + else |
4985 | + prev= |
4986 | + fi |
4987 | + |
4988 | + if test "$pre_test_object_deps_done" = no; then |
4989 | + case $p in |
4990 | + -L* | -R*) |
4991 | + # Internal compiler library paths should come after those |
4992 | + # provided the user. The postdeps already come after the |
4993 | + # user supplied libs so there is no need to process them. |
4994 | + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then |
4995 | + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" |
4996 | + else |
4997 | + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" |
4998 | + fi |
4999 | + ;; |
5000 | + # The "-l" case would never come before the object being |
The diff has been truncated for viewing.
OK, lets see what she does. Builds locally just fine.