Codebase list faad2 / b5c4c7e
Imported Upstream version 2.7 Andres Mejia 14 years ago
282 changed file(s) with 50674 addition(s) and 12173 deletion(s). Raw diff Collapse all Expand all
(No changes)
(No changes)
0 21 january 2005 gpascutto(at)nero.com
1 - hcr.c, drm_dec.c: updates for DRM PS standard, error resilience changes
2 - reverted above error resilience changes
3
4 8 december 2004 mbakker(at)nero.com
5 - ps_dec.c, ps_syntax.c: PS fixes (OPD huffman table and modulo decoding)
6
7 6 december 2004 gpascutto(at)nero.com
8 - drm_dec.c, drm_dec.h, sbr_dec.c: DRM PS Standards update
9
10 5 december 2004 gpascutto(at)nero.com
11 - syntax.c, hcr.c, decoder.c, sbr_syntax.c, specrec.c:
12 Improved (DRM) error resilience
13
14 18 october 2004 mbakker(at)nero.com
15 - sbr_dec.c, sbr_hfadj.c, common.h: fixed Low Power SBR decoding
16
17 18 october 2004 mbakker(at)nero.com
18 - main.c: added "quiet" option to frontend
19
20 5 october 2004 mbakker(at)nero.com
21 - decoder.c: skip ID3 tags in library
22
23 24 september 2004 mbakker(at)nero.com
24 - syntax.c,h, lt_predict.c, mp4.c, decoder.c:
25 Added stereo DRM support, removed fake scalable support
26
27 21 september 2004 mbakker(at)nero.com
28 - specrec.c, bits.h, common.h, error.h, sbr_hfadj.h, structs.h,
29 decoder.c, error.c, hcr.c, sbr_dec.c, sbr_hfadj.c, sbr_syntax.c, syntax.c:
30 Improved error detection and handling.
31
32 16 september 2004 mbakker(at)nero.com
33 - specrec.c, bits.h, common.h, error.h, sbr_hfadj.h, structs.h,
34 decoder.c, error.c, hcr.c, sbr_dec.c, sbr_hfadj.c, sbr_syntax.c, syntax.c:
35 Improved error detection and handling.
36
37 8 september 2004 mbakker(at)nero.com
38 - specrec.c: fixed compilation without PS
39
40 4 september 2004 mbakker(at)nero.com
41 - sbr_fbt.c, sbr_hfgen.c: fixed possible lockup with bad data.
42
43 4 september 2004 mbakker(at)nero.com
44 - cfft.c,h, common.c,h, filtbank.c,h, mdct.h, sbr_qmf.h, structs.h, decoder.c, specrec.c:
45 Removed USE_SSE
46
47 4 september 2004 gpascutto(at)nero.com
48 - specrec.c: small optimizations to inverse quant
49
50 3 september 2004 mbakker(at)nero.com
51 - neaacdec.h, decoder.c, syntax.c, structs.h: added output flag for PS
52
53 3 september 2004 mbakker(at)nero.com
54 - common.c: added log2_fix()
55
56 28 august 2004 gpascutto(at)nero.com
57 - sbr_syntax.c: bugfix with PS_DEC and DRM_PS defines
58
59 21 august 2004 mbakker(at)nero.com
60 - cfft.c, cfft_tab.h: added size 128 fixed point FFT tables for HVXC
61
62 18 august 2004 mbakker(at)nero.com
63 - sbr_syntax.c: allow only 1 PS data element per SBR extension data
64
65 18 august 2004 gpascutto(at)nero.com
66 - specrec.c: safeguard against PS suddenly going on
67
68 4 august 2004 gpascutto(at)nero.com
69 - drm_dec.c: make sure we still copy to the right channel if there's no data
70
71 2 august 2004 gpascutto(at)nero.com
72 - hcr.c: bugfix
73
74 31 july 2004 gpascutto(at)nero.com
75 - hcr.c: Rewritten and optimized
76
77 29 july 2004 mbakker(at)nero.com
78 - /mp4ff/mp4ff.c,mp4atoms.c: support video decoding better
79
80 28 july 2004 gpascutto(at)nero.com
81 - drm_dec.*, sbr_dec.c, syntax.c: improved error concealment
82
83 27 july 2004 gpascutto(at)nero.com
84 - sbr_dec.c, sbr_syntax.c: duplicate code removal
85
86 25 july 2004 gpascutto(at)nero.com
87 - syntax.c: re-enable SBR CRC checking for DRM
88
89 22 july 2004 gpascutto(at)nero.com
90 - drm_dec.*: changed delay filter to 2 samples plus fractional delay, as in normal PS AAC
91 (DRM standard is wrong here)
92
93 2 july 2004 mbakker(at)nero.com
94 - huffman.c: Implemented VCB11 error concealment
95
96 22 june 2004 mbakker(at)nero.com
97 - ps_dec.c: Removed samplerate dependancy in PS, likely to be updated in corrigendum
98
99 15 june 2004 mbakker(at)nero.com
100 - sbr_dct.c,h: Removed huge ugly DCT_4_64...
101 - sbr_qmf.c: replaced DCT_IV in qmf synthesis
102
103 13 june 2004 mbakker(at)nero.com
104 - ps_dec.c: Fixed fixed point code, no more cos() and sin() used
105
106 7 june 2004 mbakker(at)nero.com
107 - sbr_*.c,h: Overall speedups and improvements in SBR code.
108
109 4 june 2004 gpascutto(at)nero.com
110 - drm_dec.c: Fixed a bug in the standard (PAN mixing)
111
112 3 june 2004 mbakker(at)nero.com
113 - ps_syntax.c: fixed a bug in one of the huffman tables
114
115 2 june 2004 gpascutto(at)nero.com
116 - drm_dec.c: Fully working fixed point support
117
118 27 may 2004 mbakker(at)nero.com
119 - sbr_qmf.c, sbr_dec.h: Fixed fixed point problems with downsampled QMF
120
121 17 may 2004 mbakker(at)nero.com
122 - syntax.c, decoder.c: Added some logging output
123
124 17 may 2004 mbakker(at)nero.com
125 - mp4atom.c: Fixed an issue with broken MP4 files
126
127 16 may 2004 mbakker(at)nero.com
128 - ps_dec.c: fixed point: forgot to convert a few multiplies
129
130 14 may 2004 mbakker(at)nero.com
131 - sbr_*.c: reduced memory usage
132
133 6 may 2004 mbakker(at)nero.com
134 - common.c: added some bit tricks and fixed point log2/pow2
135 - sbr_hfadj.c: log2/pow2 based gain calculation for SBR
136 - sbr_hfgen.c: use block exponent instead of stupid search to find max value
137
138 5 may 2004 mbakker(at)nero.com
139 - decoder.c, neaacdec.h, decoder.h: added extra decode function to which a
140 buffer can be provided. Instead of the library providing a buffer.
141
142 5 may 2004 mbakker(at)nero.com
143 - mdct.c: fixed fixed point MDCT with framesizes 960, 480, 120
144
145 2 may 2004 mbakker(at)nero.com
146 - mdct_tab.h, mdct.c: Added tables for MDCT, for increased accuracy in fixed point
147 - specrec.c: Moved quantisation, scaling and reordering to 1 function
148
149 20 april 2004 gpacutto(at)nero.com
150 - drm_dec.c, drm_dec.h: Don't do PS processing if no data was read this frame.
151 Fix for bitstread reading bug in specification.
152
153 15 april 2004 mbakker(at)nero.com
154 - sbr_hfadj.c: fixed buffer overflow
155 - multiple: fixed some eVC problems
156
157 12 april 2004 mbakker(at)nero.com
158 - common.h, ps_dec.c: Updates for PS fixed point, should completely work now
159
160 12 april 2004 gpascutto(at)nero.com
161 - drm_dec.c, drm_dec.h: eliminated sqrt and SA mapping/dequantization from DRM PS decoder
162
0 2009-02-02 - Version 2.7
1 * DAB+ support
2 * Use public headers internally to prevent duplicate declarations
3 * Explicitly typedef all types as signed
4 * Made sure MAIN prediction can't be started after the first frame
5 * Lot's of compilation issues solved
6 * Bugfix in SBR envelope border calculation
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
4 Software Foundation, Inc.
5
6 This file is free documentation; the Free Software Foundation gives
7 unlimited permission to copy, distribute and modify it.
8
9 Basic Installation
10 ==================
11
12 These are generic installation instructions.
13
14 The `configure' shell script attempts to guess correct values for
15 various system-dependent variables used during compilation. It uses
16 those values to create a `Makefile' in each directory of the package.
17 It may also create one or more `.h' files containing system-dependent
18 definitions. Finally, it creates a shell script `config.status' that
19 you can run in the future to recreate the current configuration, and a
20 file `config.log' containing compiler output (useful mainly for
21 debugging `configure').
22
23 It can also use an optional file (typically called `config.cache'
24 and enabled with `--cache-file=config.cache' or simply `-C') that saves
25 the results of its tests to speed up reconfiguring. (Caching is
26 disabled by default to prevent problems with accidental use of stale
27 cache files.)
28
29 If you need to do unusual things to compile the package, please try
30 to figure out how `configure' could check whether to do them, and mail
31 diffs or instructions to the address given in the `README' so they can
32 be considered for the next release. If you are using the cache, and at
33 some point `config.cache' contains results you don't want to keep, you
34 may remove or edit it.
35
36 The file `configure.ac' (or `configure.in') is used to create
37 `configure' by a program called `autoconf'. You only need
38 `configure.ac' if you want to change it or regenerate `configure' using
39 a newer version of `autoconf'.
40
41 The simplest way to compile this package is:
42
43 1. `cd' to the directory containing the package's source code and type
44 `./configure' to configure the package for your system. If you're
45 using `csh' on an old version of System V, you might need to type
46 `sh ./configure' instead to prevent `csh' from trying to execute
47 `configure' itself.
48
49 Running `configure' takes awhile. While running, it prints some
50 messages telling which features it is checking for.
51
52 2. Type `make' to compile the package.
53
54 3. Optionally, type `make check' to run any self-tests that come with
55 the package.
56
57 4. Type `make install' to install the programs and any data files and
58 documentation.
59
60 5. You can remove the program binaries and object files from the
61 source code directory by typing `make clean'. To also remove the
62 files that `configure' created (so you can compile the package for
63 a different kind of computer), type `make distclean'. There is
64 also a `make maintainer-clean' target, but that is intended mainly
65 for the package's developers. If you use it, you may have to get
66 all sorts of other programs in order to regenerate files that came
67 with the distribution.
68
69 Compilers and Options
70 =====================
71
72 Some systems require unusual options for compilation or linking that the
73 `configure' script does not know about. Run `./configure --help' for
74 details on some of the pertinent environment variables.
75
76 You can give `configure' initial values for configuration parameters
77 by setting variables in the command line or in the environment. Here
78 is an example:
79
80 ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
81
82 *Note Defining Variables::, for more details.
83
84 Compiling For Multiple Architectures
85 ====================================
86
87 You can compile the package for more than one kind of computer at the
88 same time, by placing the object files for each architecture in their
89 own directory. To do this, you must use a version of `make' that
90 supports the `VPATH' variable, such as GNU `make'. `cd' to the
91 directory where you want the object files and executables to go and run
92 the `configure' script. `configure' automatically checks for the
93 source code in the directory that `configure' is in and in `..'.
94
95 If you have to use a `make' that does not support the `VPATH'
96 variable, you have to compile the package for one architecture at a
97 time in the source code directory. After you have installed the
98 package for one architecture, use `make distclean' before reconfiguring
99 for another architecture.
100
101 Installation Names
102 ==================
103
104 By default, `make install' installs the package's commands under
105 `/usr/local/bin', include files under `/usr/local/include', etc. You
106 can specify an installation prefix other than `/usr/local' by giving
107 `configure' the option `--prefix=PREFIX'.
108
109 You can specify separate installation prefixes for
110 architecture-specific files and architecture-independent files. If you
111 pass the option `--exec-prefix=PREFIX' to `configure', the package uses
112 PREFIX as the prefix for installing programs and libraries.
113 Documentation and other data files still use the regular prefix.
114
115 In addition, if you use an unusual directory layout you can give
116 options like `--bindir=DIR' to specify different values for particular
117 kinds of files. Run `configure --help' for a list of the directories
118 you can set and what kinds of files go in them.
119
120 If the package supports it, you can cause programs to be installed
121 with an extra prefix or suffix on their names by giving `configure' the
122 option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
123
124 Optional Features
125 =================
126
127 Some packages pay attention to `--enable-FEATURE' options to
128 `configure', where FEATURE indicates an optional part of the package.
129 They may also pay attention to `--with-PACKAGE' options, where PACKAGE
130 is something like `gnu-as' or `x' (for the X Window System). The
131 `README' should mention any `--enable-' and `--with-' options that the
132 package recognizes.
133
134 For packages that use the X Window System, `configure' can usually
135 find the X include and library files automatically, but if it doesn't,
136 you can use the `configure' options `--x-includes=DIR' and
137 `--x-libraries=DIR' to specify their locations.
138
139 Specifying the System Type
140 ==========================
141
142 There may be some features `configure' cannot figure out automatically,
143 but needs to determine by the type of machine the package will run on.
144 Usually, assuming the package is built to be run on the _same_
145 architectures, `configure' can figure that out, but if it prints a
146 message saying it cannot guess the machine type, give it the
147 `--build=TYPE' option. TYPE can either be a short name for the system
148 type, such as `sun4', or a canonical name which has the form:
149
150 CPU-COMPANY-SYSTEM
151
152 where SYSTEM can have one of these forms:
153
154 OS KERNEL-OS
155
156 See the file `config.sub' for the possible values of each field. If
157 `config.sub' isn't included in this package, then this package doesn't
158 need to know the machine type.
159
160 If you are _building_ compiler tools for cross-compiling, you should
161 use the option `--target=TYPE' to select the type of system they will
162 produce code for.
163
164 If you want to _use_ a cross compiler, that generates code for a
165 platform different from the build platform, you should specify the
166 "host" platform (i.e., that on which the generated programs will
167 eventually be run) with `--host=TYPE'.
168
169 Sharing Defaults
170 ================
171
172 If you want to set default values for `configure' scripts to share, you
173 can create a site shell script called `config.site' that gives default
174 values for variables like `CC', `cache_file', and `prefix'.
175 `configure' looks for `PREFIX/share/config.site' if it exists, then
176 `PREFIX/etc/config.site' if it exists. Or, you can set the
177 `CONFIG_SITE' environment variable to the location of the site script.
178 A warning: not all `configure' scripts look for a site script.
179
180 Defining Variables
181 ==================
182
183 Variables not defined in a site shell script can be set in the
184 environment passed to `configure'. However, some packages may run
185 configure again during the build, and the customized values of these
186 variables may be lost. In order to avoid this problem, you should set
187 them in the `configure' command line, using `VAR=value'. For example:
188
189 ./configure CC=/usr/local2/bin/gcc
190
191 causes the specified `gcc' to be used as the C compiler (unless it is
192 overridden in the site shell script). Here is a another example:
193
194 /bin/bash ./configure CONFIG_SHELL=/bin/bash
195
196 Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
197 configuration-related scripts to be executed by `/bin/bash'.
198
199 `configure' Invocation
200 ======================
201
202 `configure' recognizes the following options to control how it operates.
203
204 `--help'
205 `-h'
206 Print a summary of the options to `configure', and exit.
207
208 `--version'
209 `-V'
210 Print the version of Autoconf used to generate the `configure'
211 script, and exit.
212
213 `--cache-file=FILE'
214 Enable the cache: use and save the results of the tests in FILE,
215 traditionally `config.cache'. FILE defaults to `/dev/null' to
216 disable caching.
217
218 `--config-cache'
219 `-C'
220 Alias for `--cache-file=config.cache'.
221
222 `--quiet'
223 `--silent'
224 `-q'
225 Do not print messages saying which checks are being made. To
226 suppress all normal output, redirect it to `/dev/null' (any error
227 messages will still be shown).
228
229 `--srcdir=DIR'
230 Look for the package's source code in directory DIR. Usually
231 `configure' can determine that directory automatically.
232
233 `configure' also accepts some other, not widely useful, options. Run
234 `configure --help' for more details.
235
(No changes)
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = .
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
38 $(srcdir)/Makefile.in $(srcdir)/config.h.in \
39 $(srcdir)/faad2.spec.in $(top_srcdir)/configure AUTHORS \
40 COPYING ChangeLog INSTALL NEWS TODO compile config.guess \
41 config.sub depcomp install-sh ltmain.sh missing
42 subdir = .
43 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
44 am__aclocal_m4_deps = $(top_srcdir)/configure.in
45 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
46 $(ACLOCAL_M4)
47 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
48 configure.lineno configure.status.lineno
49 mkinstalldirs = $(install_sh) -d
50 CONFIG_HEADER = config.h
51 CONFIG_CLEAN_FILES = faad2.spec
52 SOURCES =
53 DIST_SOURCES =
54 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
55 html-recursive info-recursive install-data-recursive \
56 install-exec-recursive install-info-recursive \
57 install-recursive installcheck-recursive installdirs-recursive \
58 pdf-recursive ps-recursive uninstall-info-recursive \
59 uninstall-recursive
60 ETAGS = etags
61 CTAGS = ctags
62 DIST_SUBDIRS = $(SUBDIRS)
63 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
64 distdir = $(PACKAGE)-$(VERSION)
65 top_distdir = $(distdir)
66 am__remove_distdir = \
67 { test ! -d $(distdir) \
68 || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
69 && rm -fr $(distdir); }; }
70 DIST_ARCHIVES = $(distdir).tar.gz
71 GZIP_ENV = --best
72 distuninstallcheck_listfiles = find . -type f -print
73 distcleancheck_listfiles = find . -type f -print
74 ACLOCAL = @ACLOCAL@
75 AMDEP_FALSE = @AMDEP_FALSE@
76 AMDEP_TRUE = @AMDEP_TRUE@
77 AMTAR = @AMTAR@
78 AR = @AR@
79 AUTOCONF = @AUTOCONF@
80 AUTOHEADER = @AUTOHEADER@
81 AUTOMAKE = @AUTOMAKE@
82 AWK = @AWK@
83 CC = @CC@
84 CCDEPMODE = @CCDEPMODE@
85 CFLAGS = @CFLAGS@
86 CPP = @CPP@
87 CPPFLAGS = @CPPFLAGS@
88 CXX = @CXX@
89 CXXCPP = @CXXCPP@
90 CXXDEPMODE = @CXXDEPMODE@
91 CXXFLAGS = @CXXFLAGS@
92 CYGPATH_W = @CYGPATH_W@
93 DEFS = @DEFS@
94 DEPDIR = @DEPDIR@
95 ECHO = @ECHO@
96 ECHO_C = @ECHO_C@
97 ECHO_N = @ECHO_N@
98 ECHO_T = @ECHO_T@
99 EGREP = @EGREP@
100 EXEEXT = @EXEEXT@
101 F77 = @F77@
102 FFLAGS = @FFLAGS@
103 GREP = @GREP@
104 GTK_CONFIG = @GTK_CONFIG@
105 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
106 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
107 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
108 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
109 INSTALL_DATA = @INSTALL_DATA@
110 INSTALL_PROGRAM = @INSTALL_PROGRAM@
111 INSTALL_SCRIPT = @INSTALL_SCRIPT@
112 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
113 LDFLAGS = @LDFLAGS@
114 LIBOBJS = @LIBOBJS@
115 LIBS = @LIBS@
116 LIBTOOL = @LIBTOOL@
117 LIBTOOL_DEPS = @LIBTOOL_DEPS@
118 LN_S = @LN_S@
119 LTLIBOBJS = @LTLIBOBJS@
120 MAKEINFO = @MAKEINFO@
121 MP4FF_LIBS = @MP4FF_LIBS@
122 OBJEXT = @OBJEXT@
123 PACKAGE = @PACKAGE@
124 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
125 PACKAGE_NAME = @PACKAGE_NAME@
126 PACKAGE_STRING = @PACKAGE_STRING@
127 PACKAGE_TARNAME = @PACKAGE_TARNAME@
128 PACKAGE_VERSION = @PACKAGE_VERSION@
129 PATH_SEPARATOR = @PATH_SEPARATOR@
130 RANLIB = @RANLIB@
131 RPMBUILD = @RPMBUILD@
132 SET_MAKE = @SET_MAKE@
133 SHELL = @SHELL@
134 STRIP = @STRIP@
135 VERSION = @VERSION@
136 XMMS_CONFIG = @XMMS_CONFIG@
137 ac_ct_CC = @ac_ct_CC@
138 ac_ct_CXX = @ac_ct_CXX@
139 ac_ct_F77 = @ac_ct_F77@
140 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
141 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
142 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
143 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
144 am__include = @am__include@
145 am__leading_dot = @am__leading_dot@
146 am__quote = @am__quote@
147 am__tar = @am__tar@
148 am__untar = @am__untar@
149 bindir = @bindir@
150 build = @build@
151 build_alias = @build_alias@
152 build_cpu = @build_cpu@
153 build_os = @build_os@
154 build_vendor = @build_vendor@
155 datadir = @datadir@
156 datarootdir = @datarootdir@
157 docdir = @docdir@
158 dvidir = @dvidir@
159 exec_prefix = @exec_prefix@
160 external_mp4v2 = @external_mp4v2@
161 host = @host@
162 host_alias = @host_alias@
163 host_cpu = @host_cpu@
164 host_os = @host_os@
165 host_vendor = @host_vendor@
166 htmldir = @htmldir@
167 includedir = @includedir@
168 infodir = @infodir@
169 install_sh = @install_sh@
170 libdir = @libdir@
171 libexecdir = @libexecdir@
172 localedir = @localedir@
173 localstatedir = @localstatedir@
174 mandir = @mandir@
175 mkdir_p = @mkdir_p@
176 oldincludedir = @oldincludedir@
177 pdfdir = @pdfdir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 psdir = @psdir@
181 sbindir = @sbindir@
182 sharedstatedir = @sharedstatedir@
183 sysconfdir = @sysconfdir@
184 target_alias = @target_alias@
185 SUBDIRS = libfaad common frontend plugins
186 EXTRA_DIST = faad2.spec
187 all: config.h
188 $(MAKE) $(AM_MAKEFLAGS) all-recursive
189
190 .SUFFIXES:
191 am--refresh:
192 @:
193 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
194 @for dep in $?; do \
195 case '$(am__configure_deps)' in \
196 *$$dep*) \
197 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
198 cd $(srcdir) && $(AUTOMAKE) --gnu \
199 && exit 0; \
200 exit 1;; \
201 esac; \
202 done; \
203 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
204 cd $(top_srcdir) && \
205 $(AUTOMAKE) --gnu Makefile
206 .PRECIOUS: Makefile
207 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
208 @case '$?' in \
209 *config.status*) \
210 echo ' $(SHELL) ./config.status'; \
211 $(SHELL) ./config.status;; \
212 *) \
213 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
214 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
215 esac;
216
217 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
218 $(SHELL) ./config.status --recheck
219
220 $(top_srcdir)/configure: $(am__configure_deps)
221 cd $(srcdir) && $(AUTOCONF)
222 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
223 cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
224
225 config.h: stamp-h1
226 @if test ! -f $@; then \
227 rm -f stamp-h1; \
228 $(MAKE) stamp-h1; \
229 else :; fi
230
231 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
232 @rm -f stamp-h1
233 cd $(top_builddir) && $(SHELL) ./config.status config.h
234 $(srcdir)/config.h.in: $(am__configure_deps)
235 cd $(top_srcdir) && $(AUTOHEADER)
236 rm -f stamp-h1
237 touch $@
238
239 distclean-hdr:
240 -rm -f config.h stamp-h1
241 faad2.spec: $(top_builddir)/config.status $(srcdir)/faad2.spec.in
242 cd $(top_builddir) && $(SHELL) ./config.status $@
243
244 mostlyclean-libtool:
245 -rm -f *.lo
246
247 clean-libtool:
248 -rm -rf .libs _libs
249
250 distclean-libtool:
251 -rm -f libtool
252 uninstall-info-am:
253
254 # This directory's subdirectories are mostly independent; you can cd
255 # into them and run `make' without going through this Makefile.
256 # To change the values of `make' variables: instead of editing Makefiles,
257 # (1) if the variable is set in `config.status', edit `config.status'
258 # (which will cause the Makefiles to be regenerated when you run `make');
259 # (2) otherwise, pass the desired values on the `make' command line.
260 $(RECURSIVE_TARGETS):
261 @failcom='exit 1'; \
262 for f in x $$MAKEFLAGS; do \
263 case $$f in \
264 *=* | --[!k]*);; \
265 *k*) failcom='fail=yes';; \
266 esac; \
267 done; \
268 dot_seen=no; \
269 target=`echo $@ | sed s/-recursive//`; \
270 list='$(SUBDIRS)'; for subdir in $$list; do \
271 echo "Making $$target in $$subdir"; \
272 if test "$$subdir" = "."; then \
273 dot_seen=yes; \
274 local_target="$$target-am"; \
275 else \
276 local_target="$$target"; \
277 fi; \
278 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
279 || eval $$failcom; \
280 done; \
281 if test "$$dot_seen" = "no"; then \
282 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
283 fi; test -z "$$fail"
284
285 mostlyclean-recursive clean-recursive distclean-recursive \
286 maintainer-clean-recursive:
287 @failcom='exit 1'; \
288 for f in x $$MAKEFLAGS; do \
289 case $$f in \
290 *=* | --[!k]*);; \
291 *k*) failcom='fail=yes';; \
292 esac; \
293 done; \
294 dot_seen=no; \
295 case "$@" in \
296 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
297 *) list='$(SUBDIRS)' ;; \
298 esac; \
299 rev=''; for subdir in $$list; do \
300 if test "$$subdir" = "."; then :; else \
301 rev="$$subdir $$rev"; \
302 fi; \
303 done; \
304 rev="$$rev ."; \
305 target=`echo $@ | sed s/-recursive//`; \
306 for subdir in $$rev; do \
307 echo "Making $$target in $$subdir"; \
308 if test "$$subdir" = "."; then \
309 local_target="$$target-am"; \
310 else \
311 local_target="$$target"; \
312 fi; \
313 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
314 || eval $$failcom; \
315 done && test -z "$$fail"
316 tags-recursive:
317 list='$(SUBDIRS)'; for subdir in $$list; do \
318 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
319 done
320 ctags-recursive:
321 list='$(SUBDIRS)'; for subdir in $$list; do \
322 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
323 done
324
325 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
326 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
327 unique=`for i in $$list; do \
328 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
329 done | \
330 $(AWK) ' { files[$$0] = 1; } \
331 END { for (i in files) print i; }'`; \
332 mkid -fID $$unique
333 tags: TAGS
334
335 TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
336 $(TAGS_FILES) $(LISP)
337 tags=; \
338 here=`pwd`; \
339 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
340 include_option=--etags-include; \
341 empty_fix=.; \
342 else \
343 include_option=--include; \
344 empty_fix=; \
345 fi; \
346 list='$(SUBDIRS)'; for subdir in $$list; do \
347 if test "$$subdir" = .; then :; else \
348 test ! -f $$subdir/TAGS || \
349 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
350 fi; \
351 done; \
352 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
353 unique=`for i in $$list; do \
354 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
355 done | \
356 $(AWK) ' { files[$$0] = 1; } \
357 END { for (i in files) print i; }'`; \
358 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
359 test -n "$$unique" || unique=$$empty_fix; \
360 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
361 $$tags $$unique; \
362 fi
363 ctags: CTAGS
364 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
365 $(TAGS_FILES) $(LISP)
366 tags=; \
367 here=`pwd`; \
368 list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
369 unique=`for i in $$list; do \
370 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
371 done | \
372 $(AWK) ' { files[$$0] = 1; } \
373 END { for (i in files) print i; }'`; \
374 test -z "$(CTAGS_ARGS)$$tags$$unique" \
375 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
376 $$tags $$unique
377
378 GTAGS:
379 here=`$(am__cd) $(top_builddir) && pwd` \
380 && cd $(top_srcdir) \
381 && gtags -i $(GTAGS_ARGS) $$here
382
383 distclean-tags:
384 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
385
386 distdir: $(DISTFILES)
387 $(am__remove_distdir)
388 mkdir $(distdir)
389 $(mkdir_p) $(distdir)/.
390 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
391 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
392 list='$(DISTFILES)'; for file in $$list; do \
393 case $$file in \
394 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
395 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
396 esac; \
397 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
398 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
399 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
400 dir="/$$dir"; \
401 $(mkdir_p) "$(distdir)$$dir"; \
402 else \
403 dir=''; \
404 fi; \
405 if test -d $$d/$$file; then \
406 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
407 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
408 fi; \
409 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
410 else \
411 test -f $(distdir)/$$file \
412 || cp -p $$d/$$file $(distdir)/$$file \
413 || exit 1; \
414 fi; \
415 done
416 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
417 if test "$$subdir" = .; then :; else \
418 test -d "$(distdir)/$$subdir" \
419 || $(mkdir_p) "$(distdir)/$$subdir" \
420 || exit 1; \
421 distdir=`$(am__cd) $(distdir) && pwd`; \
422 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
423 (cd $$subdir && \
424 $(MAKE) $(AM_MAKEFLAGS) \
425 top_distdir="$$top_distdir" \
426 distdir="$$distdir/$$subdir" \
427 distdir) \
428 || exit 1; \
429 fi; \
430 done
431 -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
432 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
433 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
434 ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
435 || chmod -R a+r $(distdir)
436 dist-gzip: distdir
437 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
438 $(am__remove_distdir)
439
440 dist-bzip2: distdir
441 tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
442 $(am__remove_distdir)
443
444 dist-tarZ: distdir
445 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
446 $(am__remove_distdir)
447
448 dist-shar: distdir
449 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
450 $(am__remove_distdir)
451
452 dist-zip: distdir
453 -rm -f $(distdir).zip
454 zip -rq $(distdir).zip $(distdir)
455 $(am__remove_distdir)
456
457 dist dist-all: distdir
458 tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
459 $(am__remove_distdir)
460
461 # This target untars the dist file and tries a VPATH configuration. Then
462 # it guarantees that the distribution is self-contained by making another
463 # tarfile.
464 distcheck: dist
465 case '$(DIST_ARCHIVES)' in \
466 *.tar.gz*) \
467 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
468 *.tar.bz2*) \
469 bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
470 *.tar.Z*) \
471 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
472 *.shar.gz*) \
473 GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
474 *.zip*) \
475 unzip $(distdir).zip ;;\
476 esac
477 chmod -R a-w $(distdir); chmod a+w $(distdir)
478 mkdir $(distdir)/_build
479 mkdir $(distdir)/_inst
480 chmod a-w $(distdir)
481 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
482 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
483 && cd $(distdir)/_build \
484 && ../configure --srcdir=.. --prefix="$$dc_install_base" \
485 $(DISTCHECK_CONFIGURE_FLAGS) \
486 && $(MAKE) $(AM_MAKEFLAGS) \
487 && $(MAKE) $(AM_MAKEFLAGS) dvi \
488 && $(MAKE) $(AM_MAKEFLAGS) check \
489 && $(MAKE) $(AM_MAKEFLAGS) install \
490 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
491 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
492 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
493 distuninstallcheck \
494 && chmod -R a-w "$$dc_install_base" \
495 && ({ \
496 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
497 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
498 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
499 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
500 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
501 } || { rm -rf "$$dc_destdir"; exit 1; }) \
502 && rm -rf "$$dc_destdir" \
503 && $(MAKE) $(AM_MAKEFLAGS) dist \
504 && rm -rf $(DIST_ARCHIVES) \
505 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
506 $(am__remove_distdir)
507 @(echo "$(distdir) archives ready for distribution: "; \
508 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
509 sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
510 distuninstallcheck:
511 @cd $(distuninstallcheck_dir) \
512 && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
513 || { echo "ERROR: files left after uninstall:" ; \
514 if test -n "$(DESTDIR)"; then \
515 echo " (check DESTDIR support)"; \
516 fi ; \
517 $(distuninstallcheck_listfiles) ; \
518 exit 1; } >&2
519 distcleancheck: distclean
520 @if test '$(srcdir)' = . ; then \
521 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
522 exit 1 ; \
523 fi
524 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
525 || { echo "ERROR: files left in build directory after distclean:" ; \
526 $(distcleancheck_listfiles) ; \
527 exit 1; } >&2
528 check-am: all-am
529 check: check-recursive
530 all-am: Makefile config.h
531 installdirs: installdirs-recursive
532 installdirs-am:
533 install: install-recursive
534 install-exec: install-exec-recursive
535 install-data: install-data-recursive
536 uninstall: uninstall-recursive
537
538 install-am: all-am
539 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
540
541 installcheck: installcheck-recursive
542 install-strip:
543 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
544 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
545 `test -z '$(STRIP)' || \
546 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
547 mostlyclean-generic:
548
549 clean-generic:
550
551 distclean-generic:
552 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
553
554 maintainer-clean-generic:
555 @echo "This command is intended for maintainers to use"
556 @echo "it deletes files that may require special tools to rebuild."
557 clean: clean-recursive
558
559 clean-am: clean-generic clean-libtool mostlyclean-am
560
561 distclean: distclean-recursive
562 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
563 -rm -f Makefile
564 distclean-am: clean-am distclean-generic distclean-hdr \
565 distclean-libtool distclean-tags
566
567 dvi: dvi-recursive
568
569 dvi-am:
570
571 html: html-recursive
572
573 info: info-recursive
574
575 info-am:
576
577 install-data-am:
578
579 install-exec-am:
580
581 install-info: install-info-recursive
582
583 install-man:
584
585 installcheck-am:
586
587 maintainer-clean: maintainer-clean-recursive
588 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
589 -rm -rf $(top_srcdir)/autom4te.cache
590 -rm -f Makefile
591 maintainer-clean-am: distclean-am maintainer-clean-generic
592
593 mostlyclean: mostlyclean-recursive
594
595 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
596
597 pdf: pdf-recursive
598
599 pdf-am:
600
601 ps: ps-recursive
602
603 ps-am:
604
605 uninstall-am: uninstall-info-am
606
607 uninstall-info: uninstall-info-recursive
608
609 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
610 check-am clean clean-generic clean-libtool clean-recursive \
611 ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
612 dist-shar dist-tarZ dist-zip distcheck distclean \
613 distclean-generic distclean-hdr distclean-libtool \
614 distclean-recursive distclean-tags distcleancheck distdir \
615 distuninstallcheck dvi dvi-am html html-am info info-am \
616 install install-am install-data install-data-am install-exec \
617 install-exec-am install-info install-info-am install-man \
618 install-strip installcheck installcheck-am installdirs \
619 installdirs-am maintainer-clean maintainer-clean-generic \
620 maintainer-clean-recursive mostlyclean mostlyclean-generic \
621 mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
622 tags tags-recursive uninstall uninstall-am uninstall-info-am
623
624
625 rpm: Makefile
626 make dist
627 $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz
628 rm $(PACKAGE)-$(VERSION).tar.gz
629 # Tell versions [3.59,3.63) of GNU make to not export all variables.
630 # Otherwise a system limit (for SysV at least) may be exceeded.
631 .NOEXPORT:
(No changes)
(No changes)
11 ----------------------
22 just run :
33
4 autoreconf -vif
54 ./configure --with-mp4v2
65 make
76 sudo make install
(No changes)
(No changes)
+0
-163
aacDECdrop/aacDECdrop/aacDECdrop.dsp less more
0 # Microsoft Developer Studio Project File - Name="aacDECdrop" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Application" 0x0101
5
6 CFG=aacDECdrop - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "aacDECdrop.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "aacDECdrop.mak" CFG="aacDECdrop - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "aacDECdrop - Win32 Release" (based on "Win32 (x86) Application")
20 !MESSAGE "aacDECdrop - Win32 Debug" (based on "Win32 (x86) Application")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=cl.exe
28 MTL=midl.exe
29 RSC=rc.exe
30
31 !IF "$(CFG)" == "aacDECdrop - Win32 Release"
32
33 # PROP BASE Use_MFC 0
34 # PROP BASE Use_Debug_Libraries 0
35 # PROP BASE Output_Dir "Release"
36 # PROP BASE Intermediate_Dir "Release"
37 # PROP BASE Target_Dir ""
38 # PROP Use_MFC 0
39 # PROP Use_Debug_Libraries 0
40 # PROP Output_Dir "Release"
41 # PROP Intermediate_Dir "Release"
42 # PROP Ignore_Export_Lib 0
43 # PROP Target_Dir ""
44 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
45 # ADD CPP /nologo /G6 /MD /GX /O2 /I "..\..\include" /I "..\..\common\mp4ff" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /QaxK /Qsox- /Qip /c
46 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
47 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
48 # ADD BASE RSC /l 0x809 /d "NDEBUG"
49 # ADD RSC /l 0x809 /d "NDEBUG"
50 BSC32=bscmake.exe
51 # ADD BASE BSC32 /nologo
52 # ADD BSC32 /nologo
53 LINK32=link.exe
54 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
55 # ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib winmm.lib /nologo /subsystem:windows /machine:I386 /nodefaultlib:"LIBCMT.lib"
56
57 !ELSEIF "$(CFG)" == "aacDECdrop - Win32 Debug"
58
59 # PROP BASE Use_MFC 0
60 # PROP BASE Use_Debug_Libraries 1
61 # PROP BASE Output_Dir "Debug"
62 # PROP BASE Intermediate_Dir "Debug"
63 # PROP BASE Target_Dir ""
64 # PROP Use_MFC 0
65 # PROP Use_Debug_Libraries 1
66 # PROP Output_Dir "Debug"
67 # PROP Intermediate_Dir "Debug"
68 # PROP Ignore_Export_Lib 0
69 # PROP Target_Dir ""
70 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
71 # ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\..\include" /I "..\..\common\mp4ff" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /GZ /c
72 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
73 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
74 # ADD BASE RSC /l 0x809 /d "_DEBUG"
75 # ADD RSC /l 0x809 /d "_DEBUG"
76 BSC32=bscmake.exe
77 # ADD BASE BSC32 /nologo
78 # ADD BSC32 /nologo
79 LINK32=link.exe
80 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
81 # ADD LINK32 ws2_32.lib winmm.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
82
83 !ENDIF
84
85 # Begin Target
86
87 # Name "aacDECdrop - Win32 Release"
88 # Name "aacDECdrop - Win32 Debug"
89 # Begin Group "Source Files"
90
91 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
92 # Begin Source File
93
94 SOURCE=..\audio.c
95 # End Source File
96 # Begin Source File
97
98 SOURCE=..\decode.c
99 # End Source File
100 # Begin Source File
101
102 SOURCE=..\decthread.c
103 # End Source File
104 # Begin Source File
105
106 SOURCE=..\main.c
107 # End Source File
108 # Begin Source File
109
110 SOURCE=..\misc.c
111 # End Source File
112 # Begin Source File
113
114 SOURCE=..\wave_out.c
115 # End Source File
116 # End Group
117 # Begin Group "Header Files"
118
119 # PROP Default_Filter "h;hpp;hxx;hm;inl"
120 # Begin Source File
121
122 SOURCE=..\audio.h
123 # End Source File
124 # Begin Source File
125
126 SOURCE=..\decode.h
127 # End Source File
128 # Begin Source File
129
130 SOURCE=..\decthread.h
131 # End Source File
132 # Begin Source File
133
134 SOURCE=..\misc.h
135 # End Source File
136 # Begin Source File
137
138 SOURCE=..\resource.h
139 # End Source File
140 # Begin Source File
141
142 SOURCE=..\wave_out.h
143 # End Source File
144 # End Group
145 # Begin Group "Resource Files"
146
147 # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
148 # Begin Source File
149
150 SOURCE=..\resource\AAC01.bmp
151 # End Source File
152 # Begin Source File
153
154 SOURCE=..\resource\AAC01.ico
155 # End Source File
156 # Begin Source File
157
158 SOURCE=..\Script.rc
159 # End Source File
160 # End Group
161 # End Target
162 # End Project
+0
-59
aacDECdrop/aacDECdrop/aacDECdrop.dsw less more
0 Microsoft Developer Studio Workspace File, Format Version 6.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "aacDECdrop"=.\aacDECdrop.dsp - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 Begin Project Dependency
14 Project_Dep_Name libfaad
15 End Project Dependency
16 Begin Project Dependency
17 Project_Dep_Name mp4ff
18 End Project Dependency
19 }}}
20
21 ###############################################################################
22
23 Project: "libfaad"=..\..\libfaad\libfaad.dsp - Package Owner=<4>
24
25 Package=<5>
26 {{{
27 }}}
28
29 Package=<4>
30 {{{
31 }}}
32
33 ###############################################################################
34
35 Project: "mp4ff"=..\..\common\mp4ff\mp4ff.dsp - Package Owner=<4>
36
37 Package=<5>
38 {{{
39 }}}
40
41 Package=<4>
42 {{{
43 }}}
44
45 ###############################################################################
46
47 Global:
48
49 Package=<5>
50 {{{
51 }}}
52
53 Package=<3>
54 {{{
55 }}}
56
57 ###############################################################################
58
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
0 # generated automatically by aclocal 1.9.6 -*- Autoconf -*-
1
2 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
3 # 2005 Free Software Foundation, Inc.
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
14
15 # serial 48 Debian 1.5.22-4 AC_PROG_LIBTOOL
16
17
18 # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
19 # -----------------------------------------------------------
20 # If this macro is not defined by Autoconf, define it here.
21 m4_ifdef([AC_PROVIDE_IFELSE],
22 [],
23 [m4_define([AC_PROVIDE_IFELSE],
24 [m4_ifdef([AC_PROVIDE_$1],
25 [$2], [$3])])])
26
27
28 # AC_PROG_LIBTOOL
29 # ---------------
30 AC_DEFUN([AC_PROG_LIBTOOL],
31 [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
32 dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
33 dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
34 AC_PROVIDE_IFELSE([AC_PROG_CXX],
35 [AC_LIBTOOL_CXX],
36 [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
37 ])])
38 dnl And a similar setup for Fortran 77 support
39 AC_PROVIDE_IFELSE([AC_PROG_F77],
40 [AC_LIBTOOL_F77],
41 [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
42 ])])
43
44 dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
45 dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
46 dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
47 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
48 [AC_LIBTOOL_GCJ],
49 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
50 [AC_LIBTOOL_GCJ],
51 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
52 [AC_LIBTOOL_GCJ],
53 [ifdef([AC_PROG_GCJ],
54 [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
55 ifdef([A][M_PROG_GCJ],
56 [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
57 ifdef([LT_AC_PROG_GCJ],
58 [define([LT_AC_PROG_GCJ],
59 defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
60 ])])# AC_PROG_LIBTOOL
61
62
63 # _AC_PROG_LIBTOOL
64 # ----------------
65 AC_DEFUN([_AC_PROG_LIBTOOL],
66 [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
67 AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
68 AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
69 AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
70
71 # This can be used to rebuild libtool when needed
72 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
73
74 # Always use our own libtool.
75 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
76 AC_SUBST(LIBTOOL)dnl
77
78 # Prevent multiple expansion
79 define([AC_PROG_LIBTOOL], [])
80 ])# _AC_PROG_LIBTOOL
81
82
83 # AC_LIBTOOL_SETUP
84 # ----------------
85 AC_DEFUN([AC_LIBTOOL_SETUP],
86 [AC_PREREQ(2.50)dnl
87 AC_REQUIRE([AC_ENABLE_SHARED])dnl
88 AC_REQUIRE([AC_ENABLE_STATIC])dnl
89 AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
90 AC_REQUIRE([AC_CANONICAL_HOST])dnl
91 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
92 AC_REQUIRE([AC_PROG_CC])dnl
93 AC_REQUIRE([AC_PROG_LD])dnl
94 AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
95 AC_REQUIRE([AC_PROG_NM])dnl
96
97 AC_REQUIRE([AC_PROG_LN_S])dnl
98 AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
99 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
100 AC_REQUIRE([AC_OBJEXT])dnl
101 AC_REQUIRE([AC_EXEEXT])dnl
102 dnl
103
104 AC_LIBTOOL_SYS_MAX_CMD_LEN
105 AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
106 AC_LIBTOOL_OBJDIR
107
108 AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
109 _LT_AC_PROG_ECHO_BACKSLASH
110
111 case $host_os in
112 aix3*)
113 # AIX sometimes has problems with the GCC collect2 program. For some
114 # reason, if we set the COLLECT_NAMES environment variable, the problems
115 # vanish in a puff of smoke.
116 if test "X${COLLECT_NAMES+set}" != Xset; then
117 COLLECT_NAMES=
118 export COLLECT_NAMES
119 fi
120 ;;
121 esac
122
123 # Sed substitution that helps us do robust quoting. It backslashifies
124 # metacharacters that are still active within double-quoted strings.
125 Xsed='sed -e 1s/^X//'
126 [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
127
128 # Same as above, but do not quote variable references.
129 [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
130
131 # Sed substitution to delay expansion of an escaped shell variable in a
132 # double_quote_subst'ed string.
133 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
134
135 # Sed substitution to avoid accidental globbing in evaled expressions
136 no_glob_subst='s/\*/\\\*/g'
137
138 # Constants:
139 rm="rm -f"
140
141 # Global variables:
142 default_ofile=libtool
143 can_build_shared=yes
144
145 # All known linkers require a `.a' archive for static linking (except MSVC,
146 # which needs '.lib').
147 libext=a
148 ltmain="$ac_aux_dir/ltmain.sh"
149 ofile="$default_ofile"
150 with_gnu_ld="$lt_cv_prog_gnu_ld"
151
152 AC_CHECK_TOOL(AR, ar, false)
153 AC_CHECK_TOOL(RANLIB, ranlib, :)
154 AC_CHECK_TOOL(STRIP, strip, :)
155
156 old_CC="$CC"
157 old_CFLAGS="$CFLAGS"
158
159 # Set sane defaults for various variables
160 test -z "$AR" && AR=ar
161 test -z "$AR_FLAGS" && AR_FLAGS=cru
162 test -z "$AS" && AS=as
163 test -z "$CC" && CC=cc
164 test -z "$LTCC" && LTCC=$CC
165 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
166 test -z "$DLLTOOL" && DLLTOOL=dlltool
167 test -z "$LD" && LD=ld
168 test -z "$LN_S" && LN_S="ln -s"
169 test -z "$MAGIC_CMD" && MAGIC_CMD=file
170 test -z "$NM" && NM=nm
171 test -z "$SED" && SED=sed
172 test -z "$OBJDUMP" && OBJDUMP=objdump
173 test -z "$RANLIB" && RANLIB=:
174 test -z "$STRIP" && STRIP=:
175 test -z "$ac_objext" && ac_objext=o
176
177 # Determine commands to create old-style static archives.
178 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
179 old_postinstall_cmds='chmod 644 $oldlib'
180 old_postuninstall_cmds=
181
182 if test -n "$RANLIB"; then
183 case $host_os in
184 openbsd*)
185 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
186 ;;
187 *)
188 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
189 ;;
190 esac
191 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
192 fi
193
194 _LT_CC_BASENAME([$compiler])
195
196 # Only perform the check for file, if the check method requires it
197 case $deplibs_check_method in
198 file_magic*)
199 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
200 AC_PATH_MAGIC
201 fi
202 ;;
203 esac
204
205 AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
206 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
207 enable_win32_dll=yes, enable_win32_dll=no)
208
209 AC_ARG_ENABLE([libtool-lock],
210 [AC_HELP_STRING([--disable-libtool-lock],
211 [avoid locking (might break parallel builds)])])
212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
213
214 AC_ARG_WITH([pic],
215 [AC_HELP_STRING([--with-pic],
216 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
217 [pic_mode="$withval"],
218 [pic_mode=default])
219 test -z "$pic_mode" && pic_mode=default
220
221 # Use C for the default configuration in the libtool script
222 tagname=
223 AC_LIBTOOL_LANG_C_CONFIG
224 _LT_AC_TAGCONFIG
225 ])# AC_LIBTOOL_SETUP
226
227
228 # _LT_AC_SYS_COMPILER
229 # -------------------
230 AC_DEFUN([_LT_AC_SYS_COMPILER],
231 [AC_REQUIRE([AC_PROG_CC])dnl
232
233 # If no C compiler was specified, use CC.
234 LTCC=${LTCC-"$CC"}
235
236 # If no C compiler flags were specified, use CFLAGS.
237 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
238
239 # Allow CC to be a program name with arguments.
240 compiler=$CC
241 ])# _LT_AC_SYS_COMPILER
242
243
244 # _LT_CC_BASENAME(CC)
245 # -------------------
246 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
247 AC_DEFUN([_LT_CC_BASENAME],
248 [for cc_temp in $1""; do
249 case $cc_temp in
250 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
251 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
252 \-*) ;;
253 *) break;;
254 esac
255 done
256 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
257 ])
258
259
260 # _LT_COMPILER_BOILERPLATE
261 # ------------------------
262 # Check for compiler boilerplate output or warnings with
263 # the simple compiler test code.
264 AC_DEFUN([_LT_COMPILER_BOILERPLATE],
265 [ac_outfile=conftest.$ac_objext
266 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
267 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
268 _lt_compiler_boilerplate=`cat conftest.err`
269 $rm conftest*
270 ])# _LT_COMPILER_BOILERPLATE
271
272
273 # _LT_LINKER_BOILERPLATE
274 # ----------------------
275 # Check for linker boilerplate output or warnings with
276 # the simple link test code.
277 AC_DEFUN([_LT_LINKER_BOILERPLATE],
278 [ac_outfile=conftest.$ac_objext
279 printf "$lt_simple_link_test_code" >conftest.$ac_ext
280 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
281 _lt_linker_boilerplate=`cat conftest.err`
282 $rm conftest*
283 ])# _LT_LINKER_BOILERPLATE
284
285
286 # _LT_AC_SYS_LIBPATH_AIX
287 # ----------------------
288 # Links a minimal program and checks the executable
289 # for the system default hardcoded library path. In most cases,
290 # this is /usr/lib:/lib, but when the MPI compilers are used
291 # the location of the communication and MPI libs are included too.
292 # If we don't find anything, use the default library path according
293 # to the aix ld manual.
294 AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
295 [AC_LINK_IFELSE(AC_LANG_PROGRAM,[
296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
297 }'`
298 # Check for a 64-bit object if we didn't find anything.
299 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; }
300 }'`; fi],[])
301 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
302 ])# _LT_AC_SYS_LIBPATH_AIX
303
304
305 # _LT_AC_SHELL_INIT(ARG)
306 # ----------------------
307 AC_DEFUN([_LT_AC_SHELL_INIT],
308 [ifdef([AC_DIVERSION_NOTICE],
309 [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
310 [AC_DIVERT_PUSH(NOTICE)])
311 $1
312 AC_DIVERT_POP
313 ])# _LT_AC_SHELL_INIT
314
315
316 # _LT_AC_PROG_ECHO_BACKSLASH
317 # --------------------------
318 # Add some code to the start of the generated configure script which
319 # will find an echo command which doesn't interpret backslashes.
320 AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
321 [_LT_AC_SHELL_INIT([
322 # Check that we are running under the correct shell.
323 SHELL=${CONFIG_SHELL-/bin/sh}
324
325 case X$ECHO in
326 X*--fallback-echo)
327 # Remove one level of quotation (which was required for Make).
328 ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
329 ;;
330 esac
331
332 echo=${ECHO-echo}
333 if test "X[$]1" = X--no-reexec; then
334 # Discard the --no-reexec flag, and continue.
335 shift
336 elif test "X[$]1" = X--fallback-echo; then
337 # Avoid inline document here, it may be left over
338 :
339 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
340 # Yippee, $echo works!
341 :
342 else
343 # Restart under the correct shell.
344 exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
345 fi
346
347 if test "X[$]1" = X--fallback-echo; then
348 # used as fallback echo
349 shift
350 cat <<EOF
351 [$]*
352 EOF
353 exit 0
354 fi
355
356 # The HP-UX ksh and POSIX shell print the target directory to stdout
357 # if CDPATH is set.
358 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
359
360 if test -z "$ECHO"; then
361 if test "X${echo_test_string+set}" != Xset; then
362 # find a string as large as possible, as long as the shell can cope with it
363 for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
364 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
365 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
366 echo_test_string=`eval $cmd` &&
367 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
368 then
369 break
370 fi
371 done
372 fi
373
374 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
375 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
376 test "X$echo_testing_string" = "X$echo_test_string"; then
377 :
378 else
379 # The Solaris, AIX, and Digital Unix default echo programs unquote
380 # backslashes. This makes it impossible to quote backslashes using
381 # echo "$something" | sed 's/\\/\\\\/g'
382 #
383 # So, first we look for a working echo in the user's PATH.
384
385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
386 for dir in $PATH /usr/ucb; do
387 IFS="$lt_save_ifs"
388 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
389 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
390 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
391 test "X$echo_testing_string" = "X$echo_test_string"; then
392 echo="$dir/echo"
393 break
394 fi
395 done
396 IFS="$lt_save_ifs"
397
398 if test "X$echo" = Xecho; then
399 # We didn't find a better echo, so look for alternatives.
400 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
401 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
402 test "X$echo_testing_string" = "X$echo_test_string"; then
403 # This shell has a builtin print -r that does the trick.
404 echo='print -r'
405 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
406 test "X$CONFIG_SHELL" != X/bin/ksh; then
407 # If we have ksh, try running configure again with it.
408 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
409 export ORIGINAL_CONFIG_SHELL
410 CONFIG_SHELL=/bin/ksh
411 export CONFIG_SHELL
412 exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
413 else
414 # Try using printf.
415 echo='printf %s\n'
416 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
417 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
418 test "X$echo_testing_string" = "X$echo_test_string"; then
419 # Cool, printf works
420 :
421 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
422 test "X$echo_testing_string" = 'X\t' &&
423 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
424 test "X$echo_testing_string" = "X$echo_test_string"; then
425 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
426 export CONFIG_SHELL
427 SHELL="$CONFIG_SHELL"
428 export SHELL
429 echo="$CONFIG_SHELL [$]0 --fallback-echo"
430 elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
431 test "X$echo_testing_string" = 'X\t' &&
432 echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
433 test "X$echo_testing_string" = "X$echo_test_string"; then
434 echo="$CONFIG_SHELL [$]0 --fallback-echo"
435 else
436 # maybe with a smaller string...
437 prev=:
438
439 for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
440 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
441 then
442 break
443 fi
444 prev="$cmd"
445 done
446
447 if test "$prev" != 'sed 50q "[$]0"'; then
448 echo_test_string=`eval $prev`
449 export echo_test_string
450 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
451 else
452 # Oops. We lost completely, so just stick with echo.
453 echo=echo
454 fi
455 fi
456 fi
457 fi
458 fi
459 fi
460
461 # Copy echo and quote the copy suitably for passing to libtool from
462 # the Makefile, instead of quoting the original, which is used later.
463 ECHO=$echo
464 if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
465 ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
466 fi
467
468 AC_SUBST(ECHO)
469 ])])# _LT_AC_PROG_ECHO_BACKSLASH
470
471
472 # _LT_AC_LOCK
473 # -----------
474 AC_DEFUN([_LT_AC_LOCK],
475 [AC_ARG_ENABLE([libtool-lock],
476 [AC_HELP_STRING([--disable-libtool-lock],
477 [avoid locking (might break parallel builds)])])
478 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
479
480 # Some flags need to be propagated to the compiler or linker for good
481 # libtool support.
482 case $host in
483 ia64-*-hpux*)
484 # Find out which ABI we are using.
485 echo 'int i;' > conftest.$ac_ext
486 if AC_TRY_EVAL(ac_compile); then
487 case `/usr/bin/file conftest.$ac_objext` in
488 *ELF-32*)
489 HPUX_IA64_MODE="32"
490 ;;
491 *ELF-64*)
492 HPUX_IA64_MODE="64"
493 ;;
494 esac
495 fi
496 rm -rf conftest*
497 ;;
498 *-*-irix6*)
499 # Find out which ABI we are using.
500 echo '[#]line __oline__ "configure"' > conftest.$ac_ext
501 if AC_TRY_EVAL(ac_compile); then
502 if test "$lt_cv_prog_gnu_ld" = yes; then
503 case `/usr/bin/file conftest.$ac_objext` in
504 *32-bit*)
505 LD="${LD-ld} -melf32bsmip"
506 ;;
507 *N32*)
508 LD="${LD-ld} -melf32bmipn32"
509 ;;
510 *64-bit*)
511 LD="${LD-ld} -melf64bmip"
512 ;;
513 esac
514 else
515 case `/usr/bin/file conftest.$ac_objext` in
516 *32-bit*)
517 LD="${LD-ld} -32"
518 ;;
519 *N32*)
520 LD="${LD-ld} -n32"
521 ;;
522 *64-bit*)
523 LD="${LD-ld} -64"
524 ;;
525 esac
526 fi
527 fi
528 rm -rf conftest*
529 ;;
530
531 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
532 # Find out which ABI we are using.
533 echo 'int i;' > conftest.$ac_ext
534 if AC_TRY_EVAL(ac_compile); then
535 case `/usr/bin/file conftest.o` in
536 *32-bit*)
537 case $host in
538 x86_64-*linux*)
539 LD="${LD-ld} -m elf_i386"
540 ;;
541 ppc64-*linux*|powerpc64-*linux*)
542 LD="${LD-ld} -m elf32ppclinux"
543 ;;
544 s390x-*linux*)
545 LD="${LD-ld} -m elf_s390"
546 ;;
547 sparc64-*linux*)
548 LD="${LD-ld} -m elf32_sparc"
549 ;;
550 esac
551 ;;
552 *64-bit*)
553 case $host in
554 x86_64-*linux*)
555 LD="${LD-ld} -m elf_x86_64"
556 ;;
557 ppc*-*linux*|powerpc*-*linux*)
558 LD="${LD-ld} -m elf64ppc"
559 ;;
560 s390*-*linux*)
561 LD="${LD-ld} -m elf64_s390"
562 ;;
563 sparc*-*linux*)
564 LD="${LD-ld} -m elf64_sparc"
565 ;;
566 esac
567 ;;
568 esac
569 fi
570 rm -rf conftest*
571 ;;
572
573 *-*-sco3.2v5*)
574 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
575 SAVE_CFLAGS="$CFLAGS"
576 CFLAGS="$CFLAGS -belf"
577 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
578 [AC_LANG_PUSH(C)
579 AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
580 AC_LANG_POP])
581 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
582 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
583 CFLAGS="$SAVE_CFLAGS"
584 fi
585 ;;
586 sparc*-*solaris*)
587 # Find out which ABI we are using.
588 echo 'int i;' > conftest.$ac_ext
589 if AC_TRY_EVAL(ac_compile); then
590 case `/usr/bin/file conftest.o` in
591 *64-bit*)
592 case $lt_cv_prog_gnu_ld in
593 yes*) LD="${LD-ld} -m elf64_sparc" ;;
594 *) LD="${LD-ld} -64" ;;
595 esac
596 ;;
597 esac
598 fi
599 rm -rf conftest*
600 ;;
601
602 AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
603 [*-*-cygwin* | *-*-mingw* | *-*-pw32*)
604 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
605 AC_CHECK_TOOL(AS, as, false)
606 AC_CHECK_TOOL(OBJDUMP, objdump, false)
607 ;;
608 ])
609 esac
610
611 need_locks="$enable_libtool_lock"
612
613 ])# _LT_AC_LOCK
614
615
616 # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
617 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
618 # ----------------------------------------------------------------
619 # Check whether the given compiler option works
620 AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
621 [AC_REQUIRE([LT_AC_PROG_SED])
622 AC_CACHE_CHECK([$1], [$2],
623 [$2=no
624 ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
625 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
626 lt_compiler_flag="$3"
627 # Insert the option either (1) after the last *FLAGS variable, or
628 # (2) before a word containing "conftest.", or (3) at the end.
629 # Note that $ac_compile itself does not contain backslashes and begins
630 # with a dollar sign (not a hyphen), so the echo should work correctly.
631 # The option is referenced via a variable to avoid confusing sed.
632 lt_compile=`echo "$ac_compile" | $SED \
633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
634 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
635 -e 's:$: $lt_compiler_flag:'`
636 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
637 (eval "$lt_compile" 2>conftest.err)
638 ac_status=$?
639 cat conftest.err >&AS_MESSAGE_LOG_FD
640 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
641 if (exit $ac_status) && test -s "$ac_outfile"; then
642 # The compiler can only warn and ignore the option if not recognized
643 # So say no if there are warnings other than the usual output.
644 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
647 $2=yes
648 fi
649 fi
650 $rm conftest*
651 ])
652
653 if test x"[$]$2" = xyes; then
654 ifelse([$5], , :, [$5])
655 else
656 ifelse([$6], , :, [$6])
657 fi
658 ])# AC_LIBTOOL_COMPILER_OPTION
659
660
661 # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
662 # [ACTION-SUCCESS], [ACTION-FAILURE])
663 # ------------------------------------------------------------
664 # Check whether the given compiler option works
665 AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
666 [AC_CACHE_CHECK([$1], [$2],
667 [$2=no
668 save_LDFLAGS="$LDFLAGS"
669 LDFLAGS="$LDFLAGS $3"
670 printf "$lt_simple_link_test_code" > conftest.$ac_ext
671 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
672 # The linker can only warn and ignore the option if not recognized
673 # So say no if there are warnings
674 if test -s conftest.err; then
675 # Append any errors to the config.log.
676 cat conftest.err 1>&AS_MESSAGE_LOG_FD
677 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
679 if diff conftest.exp conftest.er2 >/dev/null; then
680 $2=yes
681 fi
682 else
683 $2=yes
684 fi
685 fi
686 $rm conftest*
687 LDFLAGS="$save_LDFLAGS"
688 ])
689
690 if test x"[$]$2" = xyes; then
691 ifelse([$4], , :, [$4])
692 else
693 ifelse([$5], , :, [$5])
694 fi
695 ])# AC_LIBTOOL_LINKER_OPTION
696
697
698 # AC_LIBTOOL_SYS_MAX_CMD_LEN
699 # --------------------------
700 AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
701 [# find the maximum length of command line arguments
702 AC_MSG_CHECKING([the maximum length of command line arguments])
703 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
704 i=0
705 teststring="ABCD"
706
707 case $build_os in
708 msdosdjgpp*)
709 # On DJGPP, this test can blow up pretty badly due to problems in libc
710 # (any single argument exceeding 2000 bytes causes a buffer overrun
711 # during glob expansion). Even if it were fixed, the result of this
712 # check would be larger than it should be.
713 lt_cv_sys_max_cmd_len=12288; # 12K is about right
714 ;;
715
716 gnu*)
717 # Under GNU Hurd, this test is not required because there is
718 # no limit to the length of command line arguments.
719 # Libtool will interpret -1 as no limit whatsoever
720 lt_cv_sys_max_cmd_len=-1;
721 ;;
722
723 cygwin* | mingw*)
724 # On Win9x/ME, this test blows up -- it succeeds, but takes
725 # about 5 minutes as the teststring grows exponentially.
726 # Worse, since 9x/ME are not pre-emptively multitasking,
727 # you end up with a "frozen" computer, even though with patience
728 # the test eventually succeeds (with a max line length of 256k).
729 # Instead, let's just punt: use the minimum linelength reported by
730 # all of the supported platforms: 8192 (on NT/2K/XP).
731 lt_cv_sys_max_cmd_len=8192;
732 ;;
733
734 amigaos*)
735 # On AmigaOS with pdksh, this test takes hours, literally.
736 # So we just punt and use a minimum line length of 8192.
737 lt_cv_sys_max_cmd_len=8192;
738 ;;
739
740 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
741 # This has been around since 386BSD, at least. Likely further.
742 if test -x /sbin/sysctl; then
743 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
744 elif test -x /usr/sbin/sysctl; then
745 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
746 else
747 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
748 fi
749 # And add a safety zone
750 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
751 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
752 ;;
753
754 interix*)
755 # We know the value 262144 and hardcode it with a safety zone (like BSD)
756 lt_cv_sys_max_cmd_len=196608
757 ;;
758
759 osf*)
760 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
761 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
762 # nice to cause kernel panics so lets avoid the loop below.
763 # First set a reasonable default.
764 lt_cv_sys_max_cmd_len=16384
765 #
766 if test -x /sbin/sysconfig; then
767 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
768 *1*) lt_cv_sys_max_cmd_len=-1 ;;
769 esac
770 fi
771 ;;
772 sco3.2v5*)
773 lt_cv_sys_max_cmd_len=102400
774 ;;
775 sysv5* | sco5v6* | sysv4.2uw2*)
776 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
777 if test -n "$kargmax"; then
778 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
779 else
780 lt_cv_sys_max_cmd_len=32768
781 fi
782 ;;
783 *)
784 # If test is not a shell built-in, we'll probably end up computing a
785 # maximum length that is only half of the actual maximum length, but
786 # we can't tell.
787 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
788 while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
789 = "XX$teststring") >/dev/null 2>&1 &&
790 new_result=`expr "X$teststring" : ".*" 2>&1` &&
791 lt_cv_sys_max_cmd_len=$new_result &&
792 test $i != 17 # 1/2 MB should be enough
793 do
794 i=`expr $i + 1`
795 teststring=$teststring$teststring
796 done
797 teststring=
798 # Add a significant safety factor because C++ compilers can tack on massive
799 # amounts of additional arguments before passing them to the linker.
800 # It appears as though 1/2 is a usable value.
801 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
802 ;;
803 esac
804 ])
805 if test -n $lt_cv_sys_max_cmd_len ; then
806 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
807 else
808 AC_MSG_RESULT(none)
809 fi
810 ])# AC_LIBTOOL_SYS_MAX_CMD_LEN
811
812
813 # _LT_AC_CHECK_DLFCN
814 # ------------------
815 AC_DEFUN([_LT_AC_CHECK_DLFCN],
816 [AC_CHECK_HEADERS(dlfcn.h)dnl
817 ])# _LT_AC_CHECK_DLFCN
818
819
820 # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
821 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
822 # ---------------------------------------------------------------------
823 AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
824 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
825 if test "$cross_compiling" = yes; then :
826 [$4]
827 else
828 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
829 lt_status=$lt_dlunknown
830 cat > conftest.$ac_ext <<EOF
831 [#line __oline__ "configure"
832 #include "confdefs.h"
833
834 #if HAVE_DLFCN_H
835 #include <dlfcn.h>
836 #endif
837
838 #include <stdio.h>
839
840 #ifdef RTLD_GLOBAL
841 # define LT_DLGLOBAL RTLD_GLOBAL
842 #else
843 # ifdef DL_GLOBAL
844 # define LT_DLGLOBAL DL_GLOBAL
845 # else
846 # define LT_DLGLOBAL 0
847 # endif
848 #endif
849
850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
851 find out it does not work in some platform. */
852 #ifndef LT_DLLAZY_OR_NOW
853 # ifdef RTLD_LAZY
854 # define LT_DLLAZY_OR_NOW RTLD_LAZY
855 # else
856 # ifdef DL_LAZY
857 # define LT_DLLAZY_OR_NOW DL_LAZY
858 # else
859 # ifdef RTLD_NOW
860 # define LT_DLLAZY_OR_NOW RTLD_NOW
861 # else
862 # ifdef DL_NOW
863 # define LT_DLLAZY_OR_NOW DL_NOW
864 # else
865 # define LT_DLLAZY_OR_NOW 0
866 # endif
867 # endif
868 # endif
869 # endif
870 #endif
871
872 #ifdef __cplusplus
873 extern "C" void exit (int);
874 #endif
875
876 void fnord() { int i=42;}
877 int main ()
878 {
879 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
880 int status = $lt_dlunknown;
881
882 if (self)
883 {
884 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
885 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
886 /* dlclose (self); */
887 }
888 else
889 puts (dlerror ());
890
891 exit (status);
892 }]
893 EOF
894 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
895 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
896 lt_status=$?
897 case x$lt_status in
898 x$lt_dlno_uscore) $1 ;;
899 x$lt_dlneed_uscore) $2 ;;
900 x$lt_dlunknown|x*) $3 ;;
901 esac
902 else :
903 # compilation failed
904 $3
905 fi
906 fi
907 rm -fr conftest*
908 ])# _LT_AC_TRY_DLOPEN_SELF
909
910
911 # AC_LIBTOOL_DLOPEN_SELF
912 # ----------------------
913 AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
914 [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
915 if test "x$enable_dlopen" != xyes; then
916 enable_dlopen=unknown
917 enable_dlopen_self=unknown
918 enable_dlopen_self_static=unknown
919 else
920 lt_cv_dlopen=no
921 lt_cv_dlopen_libs=
922
923 case $host_os in
924 beos*)
925 lt_cv_dlopen="load_add_on"
926 lt_cv_dlopen_libs=
927 lt_cv_dlopen_self=yes
928 ;;
929
930 mingw* | pw32*)
931 lt_cv_dlopen="LoadLibrary"
932 lt_cv_dlopen_libs=
933 ;;
934
935 cygwin*)
936 lt_cv_dlopen="dlopen"
937 lt_cv_dlopen_libs=
938 ;;
939
940 darwin*)
941 # if libdl is installed we need to link against it
942 AC_CHECK_LIB([dl], [dlopen],
943 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
944 lt_cv_dlopen="dyld"
945 lt_cv_dlopen_libs=
946 lt_cv_dlopen_self=yes
947 ])
948 ;;
949
950 *)
951 AC_CHECK_FUNC([shl_load],
952 [lt_cv_dlopen="shl_load"],
953 [AC_CHECK_LIB([dld], [shl_load],
954 [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
955 [AC_CHECK_FUNC([dlopen],
956 [lt_cv_dlopen="dlopen"],
957 [AC_CHECK_LIB([dl], [dlopen],
958 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
959 [AC_CHECK_LIB([svld], [dlopen],
960 [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
961 [AC_CHECK_LIB([dld], [dld_link],
962 [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
963 ])
964 ])
965 ])
966 ])
967 ])
968 ;;
969 esac
970
971 if test "x$lt_cv_dlopen" != xno; then
972 enable_dlopen=yes
973 else
974 enable_dlopen=no
975 fi
976
977 case $lt_cv_dlopen in
978 dlopen)
979 save_CPPFLAGS="$CPPFLAGS"
980 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
981
982 save_LDFLAGS="$LDFLAGS"
983 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
984
985 save_LIBS="$LIBS"
986 LIBS="$lt_cv_dlopen_libs $LIBS"
987
988 AC_CACHE_CHECK([whether a program can dlopen itself],
989 lt_cv_dlopen_self, [dnl
990 _LT_AC_TRY_DLOPEN_SELF(
991 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
992 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
993 ])
994
995 if test "x$lt_cv_dlopen_self" = xyes; then
996 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
997 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
998 lt_cv_dlopen_self_static, [dnl
999 _LT_AC_TRY_DLOPEN_SELF(
1000 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
1001 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
1002 ])
1003 fi
1004
1005 CPPFLAGS="$save_CPPFLAGS"
1006 LDFLAGS="$save_LDFLAGS"
1007 LIBS="$save_LIBS"
1008 ;;
1009 esac
1010
1011 case $lt_cv_dlopen_self in
1012 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
1013 *) enable_dlopen_self=unknown ;;
1014 esac
1015
1016 case $lt_cv_dlopen_self_static in
1017 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
1018 *) enable_dlopen_self_static=unknown ;;
1019 esac
1020 fi
1021 ])# AC_LIBTOOL_DLOPEN_SELF
1022
1023
1024 # AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
1025 # ---------------------------------
1026 # Check to see if options -c and -o are simultaneously supported by compiler
1027 AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
1028 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
1029 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
1030 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
1031 [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
1032 $rm -r conftest 2>/dev/null
1033 mkdir conftest
1034 cd conftest
1035 mkdir out
1036 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
1037
1038 lt_compiler_flag="-o out/conftest2.$ac_objext"
1039 # Insert the option either (1) after the last *FLAGS variable, or
1040 # (2) before a word containing "conftest.", or (3) at the end.
1041 # Note that $ac_compile itself does not contain backslashes and begins
1042 # with a dollar sign (not a hyphen), so the echo should work correctly.
1043 lt_compile=`echo "$ac_compile" | $SED \
1044 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1045 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1046 -e 's:$: $lt_compiler_flag:'`
1047 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1048 (eval "$lt_compile" 2>out/conftest.err)
1049 ac_status=$?
1050 cat out/conftest.err >&AS_MESSAGE_LOG_FD
1051 echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1052 if (exit $ac_status) && test -s out/conftest2.$ac_objext
1053 then
1054 # The compiler can only warn and ignore the option if not recognized
1055 # So say no if there are warnings
1056 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
1057 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
1058 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
1059 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
1060 fi
1061 fi
1062 chmod u+w . 2>&AS_MESSAGE_LOG_FD
1063 $rm conftest*
1064 # SGI C++ compiler will create directory out/ii_files/ for
1065 # template instantiation
1066 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
1067 $rm out/* && rmdir out
1068 cd ..
1069 rmdir conftest
1070 $rm conftest*
1071 ])
1072 ])# AC_LIBTOOL_PROG_CC_C_O
1073
1074
1075 # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
1076 # -----------------------------------------
1077 # Check to see if we can do hard links to lock some files if needed
1078 AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
1079 [AC_REQUIRE([_LT_AC_LOCK])dnl
1080
1081 hard_links="nottested"
1082 if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
1083 # do not overwrite the value of need_locks provided by the user
1084 AC_MSG_CHECKING([if we can lock with hard links])
1085 hard_links=yes
1086 $rm conftest*
1087 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1088 touch conftest.a
1089 ln conftest.a conftest.b 2>&5 || hard_links=no
1090 ln conftest.a conftest.b 2>/dev/null && hard_links=no
1091 AC_MSG_RESULT([$hard_links])
1092 if test "$hard_links" = no; then
1093 AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
1094 need_locks=warn
1095 fi
1096 else
1097 need_locks=no
1098 fi
1099 ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
1100
1101
1102 # AC_LIBTOOL_OBJDIR
1103 # -----------------
1104 AC_DEFUN([AC_LIBTOOL_OBJDIR],
1105 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
1106 [rm -f .libs 2>/dev/null
1107 mkdir .libs 2>/dev/null
1108 if test -d .libs; then
1109 lt_cv_objdir=.libs
1110 else
1111 # MS-DOS does not allow filenames that begin with a dot.
1112 lt_cv_objdir=_libs
1113 fi
1114 rmdir .libs 2>/dev/null])
1115 objdir=$lt_cv_objdir
1116 ])# AC_LIBTOOL_OBJDIR
1117
1118
1119 # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
1120 # ----------------------------------------------
1121 # Check hardcoding attributes.
1122 AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
1123 [AC_MSG_CHECKING([how to hardcode library paths into programs])
1124 _LT_AC_TAGVAR(hardcode_action, $1)=
1125 if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
1126 test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
1127 test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
1128
1129 # We can hardcode non-existant directories.
1130 if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
1131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
1132 # have to relink, otherwise we might link with an installed library
1133 # when we should be linking with a yet-to-be-installed one
1134 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
1135 test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
1136 # Linking always hardcodes the temporary library directory.
1137 _LT_AC_TAGVAR(hardcode_action, $1)=relink
1138 else
1139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
1140 _LT_AC_TAGVAR(hardcode_action, $1)=immediate
1141 fi
1142 else
1143 # We cannot hardcode anything, or else we can only hardcode existing
1144 # directories.
1145 _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
1146 fi
1147 AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
1148
1149 if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
1150 # Fast installation is not supported
1151 enable_fast_install=no
1152 elif test "$shlibpath_overrides_runpath" = yes ||
1153 test "$enable_shared" = no; then
1154 # Fast installation is not necessary
1155 enable_fast_install=needless
1156 fi
1157 ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
1158
1159
1160 # AC_LIBTOOL_SYS_LIB_STRIP
1161 # ------------------------
1162 AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
1163 [striplib=
1164 old_striplib=
1165 AC_MSG_CHECKING([whether stripping libraries is possible])
1166 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
1167 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
1168 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
1169 AC_MSG_RESULT([yes])
1170 else
1171 # FIXME - insert some real tests, host_os isn't really good enough
1172 case $host_os in
1173 darwin*)
1174 if test -n "$STRIP" ; then
1175 striplib="$STRIP -x"
1176 AC_MSG_RESULT([yes])
1177 else
1178 AC_MSG_RESULT([no])
1179 fi
1180 ;;
1181 *)
1182 AC_MSG_RESULT([no])
1183 ;;
1184 esac
1185 fi
1186 ])# AC_LIBTOOL_SYS_LIB_STRIP
1187
1188
1189 # AC_LIBTOOL_SYS_DYNAMIC_LINKER
1190 # -----------------------------
1191 # PORTME Fill in your ld.so characteristics
1192 AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
1193 [AC_MSG_CHECKING([dynamic linker characteristics])
1194 library_names_spec=
1195 libname_spec='lib$name'
1196 soname_spec=
1197 shrext_cmds=".so"
1198 postinstall_cmds=
1199 postuninstall_cmds=
1200 finish_cmds=
1201 finish_eval=
1202 shlibpath_var=
1203 shlibpath_overrides_runpath=unknown
1204 version_type=none
1205 dynamic_linker="$host_os ld.so"
1206 sys_lib_dlsearch_path_spec="/lib /usr/lib"
1207 if test "$GCC" = yes; then
1208 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1209 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
1210 # if the path contains ";" then we assume it to be the separator
1211 # otherwise default to the standard path separator (i.e. ":") - it is
1212 # assumed that no part of a normal pathname contains ";" but that should
1213 # okay in the real world where ";" in dirpaths is itself problematic.
1214 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1215 else
1216 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1217 fi
1218 else
1219 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
1220 fi
1221 need_lib_prefix=unknown
1222 hardcode_into_libs=no
1223
1224 # when you set need_version to no, make sure it does not cause -set_version
1225 # flags to be left without arguments
1226 need_version=unknown
1227
1228 case $host_os in
1229 aix3*)
1230 version_type=linux
1231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
1232 shlibpath_var=LIBPATH
1233
1234 # AIX 3 has no versioning support, so we append a major version to the name.
1235 soname_spec='${libname}${release}${shared_ext}$major'
1236 ;;
1237
1238 aix4* | aix5*)
1239 version_type=linux
1240 need_lib_prefix=no
1241 need_version=no
1242 hardcode_into_libs=yes
1243 if test "$host_cpu" = ia64; then
1244 # AIX 5 supports IA64
1245 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
1246 shlibpath_var=LD_LIBRARY_PATH
1247 else
1248 # With GCC up to 2.95.x, collect2 would create an import file
1249 # for dependence libraries. The import file would start with
1250 # the line `#! .'. This would cause the generated library to
1251 # depend on `.', always an invalid library. This was fixed in
1252 # development snapshots of GCC prior to 3.0.
1253 case $host_os in
1254 aix4 | aix4.[[01]] | aix4.[[01]].*)
1255 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
1256 echo ' yes '
1257 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
1258 :
1259 else
1260 can_build_shared=no
1261 fi
1262 ;;
1263 esac
1264 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
1265 # soname into executable. Probably we can add versioning support to
1266 # collect2, so additional links can be useful in future.
1267 if test "$aix_use_runtimelinking" = yes; then
1268 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
1269 # instead of lib<name>.a to let people know that these are not
1270 # typical AIX shared libraries.
1271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1272 else
1273 # We preserve .a as extension for shared libraries through AIX4.2
1274 # and later when we are not doing run time linking.
1275 library_names_spec='${libname}${release}.a $libname.a'
1276 soname_spec='${libname}${release}${shared_ext}$major'
1277 fi
1278 shlibpath_var=LIBPATH
1279 fi
1280 ;;
1281
1282 amigaos*)
1283 library_names_spec='$libname.ixlibrary $libname.a'
1284 # Create ${libname}_ixlibrary.a entries in /sys/libs.
1285 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'
1286 ;;
1287
1288 beos*)
1289 library_names_spec='${libname}${shared_ext}'
1290 dynamic_linker="$host_os ld.so"
1291 shlibpath_var=LIBRARY_PATH
1292 ;;
1293
1294 bsdi[[45]]*)
1295 version_type=linux
1296 need_version=no
1297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1298 soname_spec='${libname}${release}${shared_ext}$major'
1299 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
1300 shlibpath_var=LD_LIBRARY_PATH
1301 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
1302 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
1303 # the default ld.so.conf also contains /usr/contrib/lib and
1304 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
1305 # libtool to hard-code these into programs
1306 ;;
1307
1308 cygwin* | mingw* | pw32*)
1309 version_type=windows
1310 shrext_cmds=".dll"
1311 need_version=no
1312 need_lib_prefix=no
1313
1314 case $GCC,$host_os in
1315 yes,cygwin* | yes,mingw* | yes,pw32*)
1316 library_names_spec='$libname.dll.a'
1317 # DLL is installed to $(libdir)/../bin by postinstall_cmds
1318 postinstall_cmds='base_file=`basename \${file}`~
1319 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
1320 dldir=$destdir/`dirname \$dlpath`~
1321 test -d \$dldir || mkdir -p \$dldir~
1322 $install_prog $dir/$dlname \$dldir/$dlname~
1323 chmod a+x \$dldir/$dlname'
1324 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
1325 dlpath=$dir/\$dldll~
1326 $rm \$dlpath'
1327 shlibpath_overrides_runpath=yes
1328
1329 case $host_os in
1330 cygwin*)
1331 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
1332 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1333 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
1334 ;;
1335 mingw*)
1336 # MinGW DLLs use traditional 'lib' prefix
1337 soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1338 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
1339 if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
1340 # It is most probably a Windows format PATH printed by
1341 # mingw gcc, but we are running on Cygwin. Gcc prints its search
1342 # path with ; separators, and with drive letters. We can handle the
1343 # drive letters (cygwin fileutils understands them), so leave them,
1344 # especially as we might pass files found there to a mingw objdump,
1345 # which wouldn't understand a cygwinified path. Ahh.
1346 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
1347 else
1348 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
1349 fi
1350 ;;
1351 pw32*)
1352 # pw32 DLLs use 'pw' prefix rather than 'lib'
1353 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
1354 ;;
1355 esac
1356 ;;
1357
1358 *)
1359 library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
1360 ;;
1361 esac
1362 dynamic_linker='Win32 ld.exe'
1363 # FIXME: first we should search . and the directory the executable is in
1364 shlibpath_var=PATH
1365 ;;
1366
1367 darwin* | rhapsody*)
1368 dynamic_linker="$host_os dyld"
1369 version_type=darwin
1370 need_lib_prefix=no
1371 need_version=no
1372 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
1373 soname_spec='${libname}${release}${major}$shared_ext'
1374 shlibpath_overrides_runpath=yes
1375 shlibpath_var=DYLD_LIBRARY_PATH
1376 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
1377 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
1378 if test "$GCC" = yes; then
1379 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"`
1380 else
1381 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
1382 fi
1383 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
1384 ;;
1385
1386 dgux*)
1387 version_type=linux
1388 need_lib_prefix=no
1389 need_version=no
1390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
1391 soname_spec='${libname}${release}${shared_ext}$major'
1392 shlibpath_var=LD_LIBRARY_PATH
1393 ;;
1394
1395 freebsd1*)
1396 dynamic_linker=no
1397 ;;
1398
1399 freebsd* | dragonfly*)
1400 # DragonFly does not have aout. When/if they implement a new
1401 # versioning mechanism, adjust this.
1402 if test -x /usr/bin/objformat; then
1403 objformat=`/usr/bin/objformat`
1404 else
1405 case $host_os in
1406 freebsd[[123]]*) objformat=aout ;;
1407 *) objformat=elf ;;
1408 esac
1409 fi
1410 version_type=freebsd-$objformat
1411 case $version_type in
1412 freebsd-elf*)
1413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1414 need_version=no
1415 need_lib_prefix=no
1416 ;;
1417 freebsd-*)
1418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
1419 need_version=yes
1420 ;;
1421 esac
1422 shlibpath_var=LD_LIBRARY_PATH
1423 case $host_os in
1424 freebsd2*)
1425 shlibpath_overrides_runpath=yes
1426 ;;
1427 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
1428 shlibpath_overrides_runpath=yes
1429 hardcode_into_libs=yes
1430 ;;
1431 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
1432 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
1433 shlibpath_overrides_runpath=no
1434 hardcode_into_libs=yes
1435 ;;
1436 freebsd*) # from 4.6 on
1437 shlibpath_overrides_runpath=yes
1438 hardcode_into_libs=yes
1439 ;;
1440 esac
1441 ;;
1442
1443 gnu*)
1444 version_type=linux
1445 need_lib_prefix=no
1446 need_version=no
1447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
1448 soname_spec='${libname}${release}${shared_ext}$major'
1449 shlibpath_var=LD_LIBRARY_PATH
1450 hardcode_into_libs=yes
1451 ;;
1452
1453 hpux9* | hpux10* | hpux11*)
1454 # Give a soname corresponding to the major version so that dld.sl refuses to
1455 # link against other versions.
1456 version_type=sunos
1457 need_lib_prefix=no
1458 need_version=no
1459 case $host_cpu in
1460 ia64*)
1461 shrext_cmds='.so'
1462 hardcode_into_libs=yes
1463 dynamic_linker="$host_os dld.so"
1464 shlibpath_var=LD_LIBRARY_PATH
1465 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1467 soname_spec='${libname}${release}${shared_ext}$major'
1468 if test "X$HPUX_IA64_MODE" = X32; then
1469 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
1470 else
1471 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
1472 fi
1473 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1474 ;;
1475 hppa*64*)
1476 shrext_cmds='.sl'
1477 hardcode_into_libs=yes
1478 dynamic_linker="$host_os dld.sl"
1479 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
1480 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
1481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1482 soname_spec='${libname}${release}${shared_ext}$major'
1483 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
1484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
1485 ;;
1486 *)
1487 shrext_cmds='.sl'
1488 dynamic_linker="$host_os dld.sl"
1489 shlibpath_var=SHLIB_PATH
1490 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
1491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1492 soname_spec='${libname}${release}${shared_ext}$major'
1493 ;;
1494 esac
1495 # HP-UX runs *really* slowly unless shared libraries are mode 555.
1496 postinstall_cmds='chmod 555 $lib'
1497 ;;
1498
1499 interix3*)
1500 version_type=linux
1501 need_lib_prefix=no
1502 need_version=no
1503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1504 soname_spec='${libname}${release}${shared_ext}$major'
1505 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
1506 shlibpath_var=LD_LIBRARY_PATH
1507 shlibpath_overrides_runpath=no
1508 hardcode_into_libs=yes
1509 ;;
1510
1511 irix5* | irix6* | nonstopux*)
1512 case $host_os in
1513 nonstopux*) version_type=nonstopux ;;
1514 *)
1515 if test "$lt_cv_prog_gnu_ld" = yes; then
1516 version_type=linux
1517 else
1518 version_type=irix
1519 fi ;;
1520 esac
1521 need_lib_prefix=no
1522 need_version=no
1523 soname_spec='${libname}${release}${shared_ext}$major'
1524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
1525 case $host_os in
1526 irix5* | nonstopux*)
1527 libsuff= shlibsuff=
1528 ;;
1529 *)
1530 case $LD in # libtool.m4 will add one of these switches to LD
1531 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
1532 libsuff= shlibsuff= libmagic=32-bit;;
1533 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
1534 libsuff=32 shlibsuff=N32 libmagic=N32;;
1535 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
1536 libsuff=64 shlibsuff=64 libmagic=64-bit;;
1537 *) libsuff= shlibsuff= libmagic=never-match;;
1538 esac
1539 ;;
1540 esac
1541 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
1542 shlibpath_overrides_runpath=no
1543 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
1544 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
1545 hardcode_into_libs=yes
1546 ;;
1547
1548 # No shared lib support for Linux oldld, aout, or coff.
1549 linux*oldld* | linux*aout* | linux*coff*)
1550 dynamic_linker=no
1551 ;;
1552
1553 # This must be Linux ELF.
1554 linux* | k*bsd*-gnu)
1555 version_type=linux
1556 need_lib_prefix=no
1557 need_version=no
1558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1559 soname_spec='${libname}${release}${shared_ext}$major'
1560 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
1561 shlibpath_var=LD_LIBRARY_PATH
1562 shlibpath_overrides_runpath=no
1563 # This implies no fast_install, which is unacceptable.
1564 # Some rework will be needed to allow for fast_install
1565 # before this can be enabled.
1566 hardcode_into_libs=yes
1567
1568 # Append ld.so.conf contents to the search path
1569 if test -f /etc/ld.so.conf; then
1570 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
1571 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
1572 fi
1573
1574 # We used to test for /lib/ld.so.1 and disable shared libraries on
1575 # powerpc, because MkLinux only supported shared libraries with the
1576 # GNU dynamic linker. Since this was broken with cross compilers,
1577 # most powerpc-linux boxes support dynamic linking these days and
1578 # people can always --disable-shared, the test was removed, and we
1579 # assume the GNU/Linux dynamic linker is in use.
1580 dynamic_linker='GNU/Linux ld.so'
1581 ;;
1582
1583 netbsdelf*-gnu)
1584 version_type=linux
1585 need_lib_prefix=no
1586 need_version=no
1587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1588 soname_spec='${libname}${release}${shared_ext}$major'
1589 shlibpath_var=LD_LIBRARY_PATH
1590 shlibpath_overrides_runpath=no
1591 hardcode_into_libs=yes
1592 dynamic_linker='NetBSD ld.elf_so'
1593 ;;
1594
1595 netbsd*)
1596 version_type=sunos
1597 need_lib_prefix=no
1598 need_version=no
1599 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
1600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1601 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1602 dynamic_linker='NetBSD (a.out) ld.so'
1603 else
1604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
1605 soname_spec='${libname}${release}${shared_ext}$major'
1606 dynamic_linker='NetBSD ld.elf_so'
1607 fi
1608 shlibpath_var=LD_LIBRARY_PATH
1609 shlibpath_overrides_runpath=yes
1610 hardcode_into_libs=yes
1611 ;;
1612
1613 newsos6)
1614 version_type=linux
1615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1616 shlibpath_var=LD_LIBRARY_PATH
1617 shlibpath_overrides_runpath=yes
1618 ;;
1619
1620 nto-qnx*)
1621 version_type=linux
1622 need_lib_prefix=no
1623 need_version=no
1624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1625 soname_spec='${libname}${release}${shared_ext}$major'
1626 shlibpath_var=LD_LIBRARY_PATH
1627 shlibpath_overrides_runpath=yes
1628 ;;
1629
1630 openbsd*)
1631 version_type=sunos
1632 sys_lib_dlsearch_path_spec="/usr/lib"
1633 need_lib_prefix=no
1634 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
1635 case $host_os in
1636 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
1637 *) need_version=no ;;
1638 esac
1639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
1641 shlibpath_var=LD_LIBRARY_PATH
1642 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
1643 case $host_os in
1644 openbsd2.[[89]] | openbsd2.[[89]].*)
1645 shlibpath_overrides_runpath=no
1646 ;;
1647 *)
1648 shlibpath_overrides_runpath=yes
1649 ;;
1650 esac
1651 else
1652 shlibpath_overrides_runpath=yes
1653 fi
1654 ;;
1655
1656 os2*)
1657 libname_spec='$name'
1658 shrext_cmds=".dll"
1659 need_lib_prefix=no
1660 library_names_spec='$libname${shared_ext} $libname.a'
1661 dynamic_linker='OS/2 ld.exe'
1662 shlibpath_var=LIBPATH
1663 ;;
1664
1665 osf3* | osf4* | osf5*)
1666 version_type=osf
1667 need_lib_prefix=no
1668 need_version=no
1669 soname_spec='${libname}${release}${shared_ext}$major'
1670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1671 shlibpath_var=LD_LIBRARY_PATH
1672 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
1673 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
1674 ;;
1675
1676 solaris*)
1677 version_type=linux
1678 need_lib_prefix=no
1679 need_version=no
1680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1681 soname_spec='${libname}${release}${shared_ext}$major'
1682 shlibpath_var=LD_LIBRARY_PATH
1683 shlibpath_overrides_runpath=yes
1684 hardcode_into_libs=yes
1685 # ldd complains unless libraries are executable
1686 postinstall_cmds='chmod +x $lib'
1687 ;;
1688
1689 sunos4*)
1690 version_type=sunos
1691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
1692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
1693 shlibpath_var=LD_LIBRARY_PATH
1694 shlibpath_overrides_runpath=yes
1695 if test "$with_gnu_ld" = yes; then
1696 need_lib_prefix=no
1697 fi
1698 need_version=yes
1699 ;;
1700
1701 sysv4 | sysv4.3*)
1702 version_type=linux
1703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1704 soname_spec='${libname}${release}${shared_ext}$major'
1705 shlibpath_var=LD_LIBRARY_PATH
1706 case $host_vendor in
1707 sni)
1708 shlibpath_overrides_runpath=no
1709 need_lib_prefix=no
1710 export_dynamic_flag_spec='${wl}-Blargedynsym'
1711 runpath_var=LD_RUN_PATH
1712 ;;
1713 siemens)
1714 need_lib_prefix=no
1715 ;;
1716 motorola)
1717 need_lib_prefix=no
1718 need_version=no
1719 shlibpath_overrides_runpath=no
1720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
1721 ;;
1722 esac
1723 ;;
1724
1725 sysv4*MP*)
1726 if test -d /usr/nec ;then
1727 version_type=linux
1728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
1729 soname_spec='$libname${shared_ext}.$major'
1730 shlibpath_var=LD_LIBRARY_PATH
1731 fi
1732 ;;
1733
1734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
1735 version_type=freebsd-elf
1736 need_lib_prefix=no
1737 need_version=no
1738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
1739 soname_spec='${libname}${release}${shared_ext}$major'
1740 shlibpath_var=LD_LIBRARY_PATH
1741 hardcode_into_libs=yes
1742 if test "$with_gnu_ld" = yes; then
1743 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
1744 shlibpath_overrides_runpath=no
1745 else
1746 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
1747 shlibpath_overrides_runpath=yes
1748 case $host_os in
1749 sco3.2v5*)
1750 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
1751 ;;
1752 esac
1753 fi
1754 sys_lib_dlsearch_path_spec='/usr/lib'
1755 ;;
1756
1757 uts4*)
1758 version_type=linux
1759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
1760 soname_spec='${libname}${release}${shared_ext}$major'
1761 shlibpath_var=LD_LIBRARY_PATH
1762 ;;
1763
1764 *)
1765 dynamic_linker=no
1766 ;;
1767 esac
1768 AC_MSG_RESULT([$dynamic_linker])
1769 test "$dynamic_linker" = no && can_build_shared=no
1770
1771 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
1772 if test "$GCC" = yes; then
1773 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
1774 fi
1775 ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
1776
1777
1778 # _LT_AC_TAGCONFIG
1779 # ----------------
1780 AC_DEFUN([_LT_AC_TAGCONFIG],
1781 [AC_ARG_WITH([tags],
1782 [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
1783 [include additional configurations @<:@automatic@:>@])],
1784 [tagnames="$withval"])
1785
1786 if test -f "$ltmain" && test -n "$tagnames"; then
1787 if test ! -f "${ofile}"; then
1788 AC_MSG_WARN([output file `$ofile' does not exist])
1789 fi
1790
1791 if test -z "$LTCC"; then
1792 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
1793 if test -z "$LTCC"; then
1794 AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
1795 else
1796 AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
1797 fi
1798 fi
1799 if test -z "$LTCFLAGS"; then
1800 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
1801 fi
1802
1803 # Extract list of available tagged configurations in $ofile.
1804 # Note that this assumes the entire list is on one line.
1805 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
1806
1807 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1808 for tagname in $tagnames; do
1809 IFS="$lt_save_ifs"
1810 # Check whether tagname contains only valid characters
1811 case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
1812 "") ;;
1813 *) AC_MSG_ERROR([invalid tag name: $tagname])
1814 ;;
1815 esac
1816
1817 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
1818 then
1819 AC_MSG_ERROR([tag name \"$tagname\" already exists])
1820 fi
1821
1822 # Update the list of available tags.
1823 if test -n "$tagname"; then
1824 echo appending configuration tag \"$tagname\" to $ofile
1825
1826 case $tagname in
1827 CXX)
1828 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
1829 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
1830 (test "X$CXX" != "Xg++"))) ; then
1831 AC_LIBTOOL_LANG_CXX_CONFIG
1832 else
1833 tagname=""
1834 fi
1835 ;;
1836
1837 F77)
1838 if test -n "$F77" && test "X$F77" != "Xno"; then
1839 AC_LIBTOOL_LANG_F77_CONFIG
1840 else
1841 tagname=""
1842 fi
1843 ;;
1844
1845 GCJ)
1846 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
1847 AC_LIBTOOL_LANG_GCJ_CONFIG
1848 else
1849 tagname=""
1850 fi
1851 ;;
1852
1853 RC)
1854 AC_LIBTOOL_LANG_RC_CONFIG
1855 ;;
1856
1857 *)
1858 AC_MSG_ERROR([Unsupported tag name: $tagname])
1859 ;;
1860 esac
1861
1862 # Append the new tag name to the list of available tags.
1863 if test -n "$tagname" ; then
1864 available_tags="$available_tags $tagname"
1865 fi
1866 fi
1867 done
1868 IFS="$lt_save_ifs"
1869
1870 # Now substitute the updated list of available tags.
1871 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
1872 mv "${ofile}T" "$ofile"
1873 chmod +x "$ofile"
1874 else
1875 rm -f "${ofile}T"
1876 AC_MSG_ERROR([unable to update list of available tagged configurations.])
1877 fi
1878 fi
1879 ])# _LT_AC_TAGCONFIG
1880
1881
1882 # AC_LIBTOOL_DLOPEN
1883 # -----------------
1884 # enable checks for dlopen support
1885 AC_DEFUN([AC_LIBTOOL_DLOPEN],
1886 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
1887 ])# AC_LIBTOOL_DLOPEN
1888
1889
1890 # AC_LIBTOOL_WIN32_DLL
1891 # --------------------
1892 # declare package support for building win32 DLLs
1893 AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
1894 [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
1895 ])# AC_LIBTOOL_WIN32_DLL
1896
1897
1898 # AC_ENABLE_SHARED([DEFAULT])
1899 # ---------------------------
1900 # implement the --enable-shared flag
1901 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1902 AC_DEFUN([AC_ENABLE_SHARED],
1903 [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
1904 AC_ARG_ENABLE([shared],
1905 [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
1906 [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
1907 [p=${PACKAGE-default}
1908 case $enableval in
1909 yes) enable_shared=yes ;;
1910 no) enable_shared=no ;;
1911 *)
1912 enable_shared=no
1913 # Look at the argument we got. We use all the common list separators.
1914 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1915 for pkg in $enableval; do
1916 IFS="$lt_save_ifs"
1917 if test "X$pkg" = "X$p"; then
1918 enable_shared=yes
1919 fi
1920 done
1921 IFS="$lt_save_ifs"
1922 ;;
1923 esac],
1924 [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
1925 ])# AC_ENABLE_SHARED
1926
1927
1928 # AC_DISABLE_SHARED
1929 # -----------------
1930 # set the default shared flag to --disable-shared
1931 AC_DEFUN([AC_DISABLE_SHARED],
1932 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1933 AC_ENABLE_SHARED(no)
1934 ])# AC_DISABLE_SHARED
1935
1936
1937 # AC_ENABLE_STATIC([DEFAULT])
1938 # ---------------------------
1939 # implement the --enable-static flag
1940 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1941 AC_DEFUN([AC_ENABLE_STATIC],
1942 [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
1943 AC_ARG_ENABLE([static],
1944 [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
1945 [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
1946 [p=${PACKAGE-default}
1947 case $enableval in
1948 yes) enable_static=yes ;;
1949 no) enable_static=no ;;
1950 *)
1951 enable_static=no
1952 # Look at the argument we got. We use all the common list separators.
1953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1954 for pkg in $enableval; do
1955 IFS="$lt_save_ifs"
1956 if test "X$pkg" = "X$p"; then
1957 enable_static=yes
1958 fi
1959 done
1960 IFS="$lt_save_ifs"
1961 ;;
1962 esac],
1963 [enable_static=]AC_ENABLE_STATIC_DEFAULT)
1964 ])# AC_ENABLE_STATIC
1965
1966
1967 # AC_DISABLE_STATIC
1968 # -----------------
1969 # set the default static flag to --disable-static
1970 AC_DEFUN([AC_DISABLE_STATIC],
1971 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
1972 AC_ENABLE_STATIC(no)
1973 ])# AC_DISABLE_STATIC
1974
1975
1976 # AC_ENABLE_FAST_INSTALL([DEFAULT])
1977 # ---------------------------------
1978 # implement the --enable-fast-install flag
1979 # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
1980 AC_DEFUN([AC_ENABLE_FAST_INSTALL],
1981 [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
1982 AC_ARG_ENABLE([fast-install],
1983 [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
1984 [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
1985 [p=${PACKAGE-default}
1986 case $enableval in
1987 yes) enable_fast_install=yes ;;
1988 no) enable_fast_install=no ;;
1989 *)
1990 enable_fast_install=no
1991 # Look at the argument we got. We use all the common list separators.
1992 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1993 for pkg in $enableval; do
1994 IFS="$lt_save_ifs"
1995 if test "X$pkg" = "X$p"; then
1996 enable_fast_install=yes
1997 fi
1998 done
1999 IFS="$lt_save_ifs"
2000 ;;
2001 esac],
2002 [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
2003 ])# AC_ENABLE_FAST_INSTALL
2004
2005
2006 # AC_DISABLE_FAST_INSTALL
2007 # -----------------------
2008 # set the default to --disable-fast-install
2009 AC_DEFUN([AC_DISABLE_FAST_INSTALL],
2010 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2011 AC_ENABLE_FAST_INSTALL(no)
2012 ])# AC_DISABLE_FAST_INSTALL
2013
2014
2015 # AC_LIBTOOL_PICMODE([MODE])
2016 # --------------------------
2017 # implement the --with-pic flag
2018 # MODE is either `yes' or `no'. If omitted, it defaults to `both'.
2019 AC_DEFUN([AC_LIBTOOL_PICMODE],
2020 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2021 pic_mode=ifelse($#,1,$1,default)
2022 ])# AC_LIBTOOL_PICMODE
2023
2024
2025 # AC_PROG_EGREP
2026 # -------------
2027 # This is predefined starting with Autoconf 2.54, so this conditional
2028 # definition can be removed once we require Autoconf 2.54 or later.
2029 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
2030 [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
2031 [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2032 then ac_cv_prog_egrep='grep -E'
2033 else ac_cv_prog_egrep='egrep'
2034 fi])
2035 EGREP=$ac_cv_prog_egrep
2036 AC_SUBST([EGREP])
2037 ])])
2038
2039
2040 # AC_PATH_TOOL_PREFIX
2041 # -------------------
2042 # find a file program which can recognise shared library
2043 AC_DEFUN([AC_PATH_TOOL_PREFIX],
2044 [AC_REQUIRE([AC_PROG_EGREP])dnl
2045 AC_MSG_CHECKING([for $1])
2046 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
2047 [case $MAGIC_CMD in
2048 [[\\/*] | ?:[\\/]*])
2049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
2050 ;;
2051 *)
2052 lt_save_MAGIC_CMD="$MAGIC_CMD"
2053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2054 dnl $ac_dummy forces splitting on constant user-supplied paths.
2055 dnl POSIX.2 word splitting is done only on the output of word expansions,
2056 dnl not every word. This closes a longstanding sh security hole.
2057 ac_dummy="ifelse([$2], , $PATH, [$2])"
2058 for ac_dir in $ac_dummy; do
2059 IFS="$lt_save_ifs"
2060 test -z "$ac_dir" && ac_dir=.
2061 if test -f $ac_dir/$1; then
2062 lt_cv_path_MAGIC_CMD="$ac_dir/$1"
2063 if test -n "$file_magic_test_file"; then
2064 case $deplibs_check_method in
2065 "file_magic "*)
2066 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
2067 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2068 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
2069 $EGREP "$file_magic_regex" > /dev/null; then
2070 :
2071 else
2072 cat <<EOF 1>&2
2073
2074 *** Warning: the command libtool uses to detect shared libraries,
2075 *** $file_magic_cmd, produces output that libtool cannot recognize.
2076 *** The result is that libtool may fail to recognize shared libraries
2077 *** as such. This will affect the creation of libtool libraries that
2078 *** depend on shared libraries, but programs linked with such libtool
2079 *** libraries will work regardless of this problem. Nevertheless, you
2080 *** may want to report the problem to your system manager and/or to
2081 *** bug-libtool@gnu.org
2082
2083 EOF
2084 fi ;;
2085 esac
2086 fi
2087 break
2088 fi
2089 done
2090 IFS="$lt_save_ifs"
2091 MAGIC_CMD="$lt_save_MAGIC_CMD"
2092 ;;
2093 esac])
2094 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
2095 if test -n "$MAGIC_CMD"; then
2096 AC_MSG_RESULT($MAGIC_CMD)
2097 else
2098 AC_MSG_RESULT(no)
2099 fi
2100 ])# AC_PATH_TOOL_PREFIX
2101
2102
2103 # AC_PATH_MAGIC
2104 # -------------
2105 # find a file program which can recognise a shared library
2106 AC_DEFUN([AC_PATH_MAGIC],
2107 [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
2108 if test -z "$lt_cv_path_MAGIC_CMD"; then
2109 if test -n "$ac_tool_prefix"; then
2110 AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
2111 else
2112 MAGIC_CMD=:
2113 fi
2114 fi
2115 ])# AC_PATH_MAGIC
2116
2117
2118 # AC_PROG_LD
2119 # ----------
2120 # find the pathname to the GNU or non-GNU linker
2121 AC_DEFUN([AC_PROG_LD],
2122 [AC_ARG_WITH([gnu-ld],
2123 [AC_HELP_STRING([--with-gnu-ld],
2124 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
2125 [test "$withval" = no || with_gnu_ld=yes],
2126 [with_gnu_ld=no])
2127 AC_REQUIRE([LT_AC_PROG_SED])dnl
2128 AC_REQUIRE([AC_PROG_CC])dnl
2129 AC_REQUIRE([AC_CANONICAL_HOST])dnl
2130 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
2131 ac_prog=ld
2132 if test "$GCC" = yes; then
2133 # Check if gcc -print-prog-name=ld gives a path.
2134 AC_MSG_CHECKING([for ld used by $CC])
2135 case $host in
2136 *-*-mingw*)
2137 # gcc leaves a trailing carriage return which upsets mingw
2138 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2139 *)
2140 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2141 esac
2142 case $ac_prog in
2143 # Accept absolute paths.
2144 [[\\/]]* | ?:[[\\/]]*)
2145 re_direlt='/[[^/]][[^/]]*/\.\./'
2146 # Canonicalize the pathname of ld
2147 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2148 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2149 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2150 done
2151 test -z "$LD" && LD="$ac_prog"
2152 ;;
2153 "")
2154 # If it fails, then pretend we aren't using GCC.
2155 ac_prog=ld
2156 ;;
2157 *)
2158 # If it is relative, then search for the first ld in PATH.
2159 with_gnu_ld=unknown
2160 ;;
2161 esac
2162 elif test "$with_gnu_ld" = yes; then
2163 AC_MSG_CHECKING([for GNU ld])
2164 else
2165 AC_MSG_CHECKING([for non-GNU ld])
2166 fi
2167 AC_CACHE_VAL(lt_cv_path_LD,
2168 [if test -z "$LD"; then
2169 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2170 for ac_dir in $PATH; do
2171 IFS="$lt_save_ifs"
2172 test -z "$ac_dir" && ac_dir=.
2173 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2174 lt_cv_path_LD="$ac_dir/$ac_prog"
2175 # Check to see if the program is GNU ld. I'd rather use --version,
2176 # but apparently some variants of GNU ld only accept -v.
2177 # Break only if it was the GNU/non-GNU ld that we prefer.
2178 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2179 *GNU* | *'with BFD'*)
2180 test "$with_gnu_ld" != no && break
2181 ;;
2182 *)
2183 test "$with_gnu_ld" != yes && break
2184 ;;
2185 esac
2186 fi
2187 done
2188 IFS="$lt_save_ifs"
2189 else
2190 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2191 fi])
2192 LD="$lt_cv_path_LD"
2193 if test -n "$LD"; then
2194 AC_MSG_RESULT($LD)
2195 else
2196 AC_MSG_RESULT(no)
2197 fi
2198 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
2199 AC_PROG_LD_GNU
2200 ])# AC_PROG_LD
2201
2202
2203 # AC_PROG_LD_GNU
2204 # --------------
2205 AC_DEFUN([AC_PROG_LD_GNU],
2206 [AC_REQUIRE([AC_PROG_EGREP])dnl
2207 AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
2208 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
2209 case `$LD -v 2>&1 </dev/null` in
2210 *GNU* | *'with BFD'*)
2211 lt_cv_prog_gnu_ld=yes
2212 ;;
2213 *)
2214 lt_cv_prog_gnu_ld=no
2215 ;;
2216 esac])
2217 with_gnu_ld=$lt_cv_prog_gnu_ld
2218 ])# AC_PROG_LD_GNU
2219
2220
2221 # AC_PROG_LD_RELOAD_FLAG
2222 # ----------------------
2223 # find reload flag for linker
2224 # -- PORTME Some linkers may need a different reload flag.
2225 AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
2226 [AC_CACHE_CHECK([for $LD option to reload object files],
2227 lt_cv_ld_reload_flag,
2228 [lt_cv_ld_reload_flag='-r'])
2229 reload_flag=$lt_cv_ld_reload_flag
2230 case $reload_flag in
2231 "" | " "*) ;;
2232 *) reload_flag=" $reload_flag" ;;
2233 esac
2234 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2235 case $host_os in
2236 darwin*)
2237 if test "$GCC" = yes; then
2238 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
2239 else
2240 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2241 fi
2242 ;;
2243 esac
2244 ])# AC_PROG_LD_RELOAD_FLAG
2245
2246
2247 # AC_DEPLIBS_CHECK_METHOD
2248 # -----------------------
2249 # how to check for library dependencies
2250 # -- PORTME fill in with the dynamic library characteristics
2251 AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
2252 [AC_CACHE_CHECK([how to recognise dependent libraries],
2253 lt_cv_deplibs_check_method,
2254 [lt_cv_file_magic_cmd='$MAGIC_CMD'
2255 lt_cv_file_magic_test_file=
2256 lt_cv_deplibs_check_method='unknown'
2257 # Need to set the preceding variable on all platforms that support
2258 # interlibrary dependencies.
2259 # 'none' -- dependencies not supported.
2260 # `unknown' -- same as none, but documents that we really don't know.
2261 # 'pass_all' -- all dependencies passed with no checks.
2262 # 'test_compile' -- check by making test program.
2263 # 'file_magic [[regex]]' -- check by looking for files in library path
2264 # which responds to the $file_magic_cmd with a given extended regex.
2265 # If you have `file' or equivalent on your system and you're not sure
2266 # whether `pass_all' will *always* work, you probably want this one.
2267
2268 case $host_os in
2269 aix4* | aix5*)
2270 lt_cv_deplibs_check_method=pass_all
2271 ;;
2272
2273 beos*)
2274 lt_cv_deplibs_check_method=pass_all
2275 ;;
2276
2277 bsdi[[45]]*)
2278 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
2279 lt_cv_file_magic_cmd='/usr/bin/file -L'
2280 lt_cv_file_magic_test_file=/shlib/libc.so
2281 ;;
2282
2283 cygwin*)
2284 # func_win32_libid is a shell function defined in ltmain.sh
2285 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2286 lt_cv_file_magic_cmd='func_win32_libid'
2287 ;;
2288
2289 mingw* | pw32*)
2290 # Base MSYS/MinGW do not provide the 'file' command needed by
2291 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
2292 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
2293 lt_cv_file_magic_cmd='$OBJDUMP -f'
2294 ;;
2295
2296 darwin* | rhapsody*)
2297 lt_cv_deplibs_check_method=pass_all
2298 ;;
2299
2300 freebsd* | dragonfly*)
2301 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2302 case $host_cpu in
2303 i*86 )
2304 # Not sure whether the presence of OpenBSD here was a mistake.
2305 # Let's accept both of them until this is cleared up.
2306 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
2307 lt_cv_file_magic_cmd=/usr/bin/file
2308 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
2309 ;;
2310 esac
2311 else
2312 lt_cv_deplibs_check_method=pass_all
2313 fi
2314 ;;
2315
2316 gnu*)
2317 lt_cv_deplibs_check_method=pass_all
2318 ;;
2319
2320 hpux10.20* | hpux11*)
2321 lt_cv_file_magic_cmd=/usr/bin/file
2322 case $host_cpu in
2323 ia64*)
2324 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
2325 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
2326 ;;
2327 hppa*64*)
2328 [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]']
2329 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
2330 ;;
2331 *)
2332 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
2333 lt_cv_file_magic_test_file=/usr/lib/libc.sl
2334 ;;
2335 esac
2336 ;;
2337
2338 interix3*)
2339 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
2340 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
2341 ;;
2342
2343 irix5* | irix6* | nonstopux*)
2344 case $LD in
2345 *-32|*"-32 ") libmagic=32-bit;;
2346 *-n32|*"-n32 ") libmagic=N32;;
2347 *-64|*"-64 ") libmagic=64-bit;;
2348 *) libmagic=never-match;;
2349 esac
2350 lt_cv_deplibs_check_method=pass_all
2351 ;;
2352
2353 # This must be Linux ELF.
2354 linux* | k*bsd*-gnu)
2355 lt_cv_deplibs_check_method=pass_all
2356 ;;
2357
2358 netbsd* | netbsdelf*-gnu)
2359 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
2360 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2361 else
2362 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
2363 fi
2364 ;;
2365
2366 newos6*)
2367 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
2368 lt_cv_file_magic_cmd=/usr/bin/file
2369 lt_cv_file_magic_test_file=/usr/lib/libnls.so
2370 ;;
2371
2372 nto-qnx*)
2373 lt_cv_deplibs_check_method=unknown
2374 ;;
2375
2376 openbsd*)
2377 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
2378 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
2379 else
2380 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
2381 fi
2382 ;;
2383
2384 osf3* | osf4* | osf5*)
2385 lt_cv_deplibs_check_method=pass_all
2386 ;;
2387
2388 solaris*)
2389 lt_cv_deplibs_check_method=pass_all
2390 ;;
2391
2392 sysv4 | sysv4.3*)
2393 case $host_vendor in
2394 motorola)
2395 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]]'
2396 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
2397 ;;
2398 ncr)
2399 lt_cv_deplibs_check_method=pass_all
2400 ;;
2401 sequent)
2402 lt_cv_file_magic_cmd='/bin/file'
2403 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
2404 ;;
2405 sni)
2406 lt_cv_file_magic_cmd='/bin/file'
2407 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
2408 lt_cv_file_magic_test_file=/lib/libc.so
2409 ;;
2410 siemens)
2411 lt_cv_deplibs_check_method=pass_all
2412 ;;
2413 pc)
2414 lt_cv_deplibs_check_method=pass_all
2415 ;;
2416 esac
2417 ;;
2418
2419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
2420 lt_cv_deplibs_check_method=pass_all
2421 ;;
2422 esac
2423 ])
2424 file_magic_cmd=$lt_cv_file_magic_cmd
2425 deplibs_check_method=$lt_cv_deplibs_check_method
2426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
2427 ])# AC_DEPLIBS_CHECK_METHOD
2428
2429
2430 # AC_PROG_NM
2431 # ----------
2432 # find the pathname to a BSD-compatible name lister
2433 AC_DEFUN([AC_PROG_NM],
2434 [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
2435 [if test -n "$NM"; then
2436 # Let the user override the test.
2437 lt_cv_path_NM="$NM"
2438 else
2439 lt_nm_to_check="${ac_tool_prefix}nm"
2440 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
2441 lt_nm_to_check="$lt_nm_to_check nm"
2442 fi
2443 for lt_tmp_nm in $lt_nm_to_check; do
2444 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2445 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
2446 IFS="$lt_save_ifs"
2447 test -z "$ac_dir" && ac_dir=.
2448 tmp_nm="$ac_dir/$lt_tmp_nm"
2449 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2450 # Check to see if the nm accepts a BSD-compat flag.
2451 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2452 # nm: unknown option "B" ignored
2453 # Tru64's nm complains that /dev/null is an invalid object file
2454 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2455 */dev/null* | *'Invalid file or object type'*)
2456 lt_cv_path_NM="$tmp_nm -B"
2457 break
2458 ;;
2459 *)
2460 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2461 */dev/null*)
2462 lt_cv_path_NM="$tmp_nm -p"
2463 break
2464 ;;
2465 *)
2466 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2467 continue # so that we can try to find one that supports BSD flags
2468 ;;
2469 esac
2470 ;;
2471 esac
2472 fi
2473 done
2474 IFS="$lt_save_ifs"
2475 done
2476 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2477 fi])
2478 NM="$lt_cv_path_NM"
2479 ])# AC_PROG_NM
2480
2481
2482 # AC_CHECK_LIBM
2483 # -------------
2484 # check for math library
2485 AC_DEFUN([AC_CHECK_LIBM],
2486 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2487 LIBM=
2488 case $host in
2489 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
2490 # These system don't have libm, or don't need it
2491 ;;
2492 *-ncr-sysv4.3*)
2493 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
2494 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
2495 ;;
2496 *)
2497 AC_CHECK_LIB(m, cos, LIBM="-lm")
2498 ;;
2499 esac
2500 ])# AC_CHECK_LIBM
2501
2502
2503 # AC_LIBLTDL_CONVENIENCE([DIRECTORY])
2504 # -----------------------------------
2505 # sets LIBLTDL to the link flags for the libltdl convenience library and
2506 # LTDLINCL to the include flags for the libltdl header and adds
2507 # --enable-ltdl-convenience to the configure arguments. Note that
2508 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2509 # it is assumed to be `libltdl'. LIBLTDL will be prefixed with
2510 # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/'
2511 # (note the single quotes!). If your package is not flat and you're not
2512 # using automake, define top_builddir and top_srcdir appropriately in
2513 # the Makefiles.
2514 AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
2515 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2516 case $enable_ltdl_convenience in
2517 no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
2518 "") enable_ltdl_convenience=yes
2519 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
2520 esac
2521 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
2522 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2523 # For backwards non-gettext consistent compatibility...
2524 INCLTDL="$LTDLINCL"
2525 ])# AC_LIBLTDL_CONVENIENCE
2526
2527
2528 # AC_LIBLTDL_INSTALLABLE([DIRECTORY])
2529 # -----------------------------------
2530 # sets LIBLTDL to the link flags for the libltdl installable library and
2531 # LTDLINCL to the include flags for the libltdl header and adds
2532 # --enable-ltdl-install to the configure arguments. Note that
2533 # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided,
2534 # and an installed libltdl is not found, it is assumed to be `libltdl'.
2535 # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with
2536 # '${top_srcdir}/' (note the single quotes!). If your package is not
2537 # flat and you're not using automake, define top_builddir and top_srcdir
2538 # appropriately in the Makefiles.
2539 # In the future, this macro may have to be called after AC_PROG_LIBTOOL.
2540 AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
2541 [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
2542 AC_CHECK_LIB(ltdl, lt_dlinit,
2543 [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
2544 [if test x"$enable_ltdl_install" = xno; then
2545 AC_MSG_WARN([libltdl not installed, but installation disabled])
2546 else
2547 enable_ltdl_install=yes
2548 fi
2549 ])
2550 if test x"$enable_ltdl_install" = x"yes"; then
2551 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2552 LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
2553 LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
2554 else
2555 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
2556 LIBLTDL="-lltdl"
2557 LTDLINCL=
2558 fi
2559 # For backwards non-gettext consistent compatibility...
2560 INCLTDL="$LTDLINCL"
2561 ])# AC_LIBLTDL_INSTALLABLE
2562
2563
2564 # AC_LIBTOOL_CXX
2565 # --------------
2566 # enable support for C++ libraries
2567 AC_DEFUN([AC_LIBTOOL_CXX],
2568 [AC_REQUIRE([_LT_AC_LANG_CXX])
2569 ])# AC_LIBTOOL_CXX
2570
2571
2572 # _LT_AC_LANG_CXX
2573 # ---------------
2574 AC_DEFUN([_LT_AC_LANG_CXX],
2575 [AC_REQUIRE([AC_PROG_CXX])
2576 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2577 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
2578 ])# _LT_AC_LANG_CXX
2579
2580 # _LT_AC_PROG_CXXCPP
2581 # ------------------
2582 AC_DEFUN([_LT_AC_PROG_CXXCPP],
2583 [
2584 AC_REQUIRE([AC_PROG_CXX])
2585 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
2586 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
2587 (test "X$CXX" != "Xg++"))) ; then
2588 AC_PROG_CXXCPP
2589 fi
2590 ])# _LT_AC_PROG_CXXCPP
2591
2592 # AC_LIBTOOL_F77
2593 # --------------
2594 # enable support for Fortran 77 libraries
2595 AC_DEFUN([AC_LIBTOOL_F77],
2596 [AC_REQUIRE([_LT_AC_LANG_F77])
2597 ])# AC_LIBTOOL_F77
2598
2599
2600 # _LT_AC_LANG_F77
2601 # ---------------
2602 AC_DEFUN([_LT_AC_LANG_F77],
2603 [AC_REQUIRE([AC_PROG_F77])
2604 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
2605 ])# _LT_AC_LANG_F77
2606
2607
2608 # AC_LIBTOOL_GCJ
2609 # --------------
2610 # enable support for GCJ libraries
2611 AC_DEFUN([AC_LIBTOOL_GCJ],
2612 [AC_REQUIRE([_LT_AC_LANG_GCJ])
2613 ])# AC_LIBTOOL_GCJ
2614
2615
2616 # _LT_AC_LANG_GCJ
2617 # ---------------
2618 AC_DEFUN([_LT_AC_LANG_GCJ],
2619 [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
2620 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
2621 [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
2622 [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
2623 [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
2624 [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
2625 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
2626 ])# _LT_AC_LANG_GCJ
2627
2628
2629 # AC_LIBTOOL_RC
2630 # -------------
2631 # enable support for Windows resource files
2632 AC_DEFUN([AC_LIBTOOL_RC],
2633 [AC_REQUIRE([LT_AC_PROG_RC])
2634 _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
2635 ])# AC_LIBTOOL_RC
2636
2637
2638 # AC_LIBTOOL_LANG_C_CONFIG
2639 # ------------------------
2640 # Ensure that the configuration vars for the C compiler are
2641 # suitably defined. Those variables are subsequently used by
2642 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2643 AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
2644 AC_DEFUN([_LT_AC_LANG_C_CONFIG],
2645 [lt_save_CC="$CC"
2646 AC_LANG_PUSH(C)
2647
2648 # Source file extension for C test sources.
2649 ac_ext=c
2650
2651 # Object file extension for compiled C test sources.
2652 objext=o
2653 _LT_AC_TAGVAR(objext, $1)=$objext
2654
2655 # Code to be used in simple compile tests
2656 lt_simple_compile_test_code="int some_variable = 0;\n"
2657
2658 # Code to be used in simple link tests
2659 lt_simple_link_test_code='int main(){return(0);}\n'
2660
2661 _LT_AC_SYS_COMPILER
2662
2663 # save warnings/boilerplate of simple test code
2664 _LT_COMPILER_BOILERPLATE
2665 _LT_LINKER_BOILERPLATE
2666
2667 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
2668 AC_LIBTOOL_PROG_COMPILER_PIC($1)
2669 AC_LIBTOOL_PROG_CC_C_O($1)
2670 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
2671 AC_LIBTOOL_PROG_LD_SHLIBS($1)
2672 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
2673 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
2674 AC_LIBTOOL_SYS_LIB_STRIP
2675 AC_LIBTOOL_DLOPEN_SELF
2676
2677 # Report which library types will actually be built
2678 AC_MSG_CHECKING([if libtool supports shared libraries])
2679 AC_MSG_RESULT([$can_build_shared])
2680
2681 AC_MSG_CHECKING([whether to build shared libraries])
2682 test "$can_build_shared" = "no" && enable_shared=no
2683
2684 # On AIX, shared libraries and static libraries use the same namespace, and
2685 # are all built from PIC.
2686 case $host_os in
2687 aix3*)
2688 test "$enable_shared" = yes && enable_static=no
2689 if test -n "$RANLIB"; then
2690 archive_cmds="$archive_cmds~\$RANLIB \$lib"
2691 postinstall_cmds='$RANLIB $lib'
2692 fi
2693 ;;
2694
2695 aix4* | aix5*)
2696 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
2697 test "$enable_shared" = yes && enable_static=no
2698 fi
2699 ;;
2700 esac
2701 AC_MSG_RESULT([$enable_shared])
2702
2703 AC_MSG_CHECKING([whether to build static libraries])
2704 # Make sure either enable_shared or enable_static is yes.
2705 test "$enable_shared" = yes || enable_static=yes
2706 AC_MSG_RESULT([$enable_static])
2707
2708 AC_LIBTOOL_CONFIG($1)
2709
2710 AC_LANG_POP
2711 CC="$lt_save_CC"
2712 ])# AC_LIBTOOL_LANG_C_CONFIG
2713
2714
2715 # AC_LIBTOOL_LANG_CXX_CONFIG
2716 # --------------------------
2717 # Ensure that the configuration vars for the C compiler are
2718 # suitably defined. Those variables are subsequently used by
2719 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
2720 AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
2721 AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
2722 [AC_LANG_PUSH(C++)
2723 AC_REQUIRE([AC_PROG_CXX])
2724 AC_REQUIRE([_LT_AC_PROG_CXXCPP])
2725
2726 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
2727 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
2728 _LT_AC_TAGVAR(always_export_symbols, $1)=no
2729 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
2730 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
2731 _LT_AC_TAGVAR(hardcode_direct, $1)=no
2732 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
2733 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
2734 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2735 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
2736 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
2737 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
2738 _LT_AC_TAGVAR(module_cmds, $1)=
2739 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
2740 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
2741 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
2742 _LT_AC_TAGVAR(no_undefined_flag, $1)=
2743 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2744 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
2745
2746 # Dependencies to place before and after the object being linked:
2747 _LT_AC_TAGVAR(predep_objects, $1)=
2748 _LT_AC_TAGVAR(postdep_objects, $1)=
2749 _LT_AC_TAGVAR(predeps, $1)=
2750 _LT_AC_TAGVAR(postdeps, $1)=
2751 _LT_AC_TAGVAR(compiler_lib_search_path, $1)=
2752
2753 # Source file extension for C++ test sources.
2754 ac_ext=cpp
2755
2756 # Object file extension for compiled C++ test sources.
2757 objext=o
2758 _LT_AC_TAGVAR(objext, $1)=$objext
2759
2760 # Code to be used in simple compile tests
2761 lt_simple_compile_test_code="int some_variable = 0;\n"
2762
2763 # Code to be used in simple link tests
2764 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n'
2765
2766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
2767 _LT_AC_SYS_COMPILER
2768
2769 # save warnings/boilerplate of simple test code
2770 _LT_COMPILER_BOILERPLATE
2771 _LT_LINKER_BOILERPLATE
2772
2773 # Allow CC to be a program name with arguments.
2774 lt_save_CC=$CC
2775 lt_save_LD=$LD
2776 lt_save_GCC=$GCC
2777 GCC=$GXX
2778 lt_save_with_gnu_ld=$with_gnu_ld
2779 lt_save_path_LD=$lt_cv_path_LD
2780 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
2781 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
2782 else
2783 $as_unset lt_cv_prog_gnu_ld
2784 fi
2785 if test -n "${lt_cv_path_LDCXX+set}"; then
2786 lt_cv_path_LD=$lt_cv_path_LDCXX
2787 else
2788 $as_unset lt_cv_path_LD
2789 fi
2790 test -z "${LDCXX+set}" || LD=$LDCXX
2791 CC=${CXX-"c++"}
2792 compiler=$CC
2793 _LT_AC_TAGVAR(compiler, $1)=$CC
2794 _LT_CC_BASENAME([$compiler])
2795
2796 # We don't want -fno-exception wen compiling C++ code, so set the
2797 # no_builtin_flag separately
2798 if test "$GXX" = yes; then
2799 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
2800 else
2801 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
2802 fi
2803
2804 if test "$GXX" = yes; then
2805 # Set up default GNU C++ configuration
2806
2807 AC_PROG_LD
2808
2809 # Check if GNU C++ uses GNU ld as the underlying linker, since the
2810 # archiving commands below assume that GNU ld is being used.
2811 if test "$with_gnu_ld" = yes; then
2812 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
2813 _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'
2814
2815 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
2816 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
2817
2818 # If archive_cmds runs LD, not CC, wlarc should be empty
2819 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
2820 # investigate it a little bit more. (MM)
2821 wlarc='${wl}'
2822
2823 # ancient GNU ld didn't support --whole-archive et. al.
2824 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
2825 grep 'no-whole-archive' > /dev/null; then
2826 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
2827 else
2828 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
2829 fi
2830 else
2831 with_gnu_ld=no
2832 wlarc=
2833
2834 # A generic and very simple default shared library creation
2835 # command for GNU C++ for the case where it uses the native
2836 # linker, instead of GNU ld. If possible, this setting should
2837 # overridden to take advantage of the native linker features on
2838 # the platform it is being used on.
2839 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
2840 fi
2841
2842 # Commands to make compiler produce verbose output that lists
2843 # what "hidden" libraries, object files and flags are used when
2844 # linking a shared library.
2845 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
2846
2847 else
2848 GXX=no
2849 with_gnu_ld=no
2850 wlarc=
2851 fi
2852
2853 # PORTME: fill in a description of your system's C++ link characteristics
2854 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
2855 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
2856 case $host_os in
2857 aix3*)
2858 # FIXME: insert proper C++ library support
2859 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2860 ;;
2861 aix4* | aix5*)
2862 if test "$host_cpu" = ia64; then
2863 # On IA64, the linker does run time linking by default, so we don't
2864 # have to do anything special.
2865 aix_use_runtimelinking=no
2866 exp_sym_flag='-Bexport'
2867 no_entry_flag=""
2868 else
2869 aix_use_runtimelinking=no
2870
2871 # Test if we are trying to use run time linking or normal
2872 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
2873 # need to do runtime linking.
2874 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
2875 for ld_flag in $LDFLAGS; do
2876 case $ld_flag in
2877 *-brtl*)
2878 aix_use_runtimelinking=yes
2879 break
2880 ;;
2881 esac
2882 done
2883 ;;
2884 esac
2885
2886 exp_sym_flag='-bexport'
2887 no_entry_flag='-bnoentry'
2888 fi
2889
2890 # When large executables or shared objects are built, AIX ld can
2891 # have problems creating the table of contents. If linking a library
2892 # or program results in "error TOC overflow" add -mminimal-toc to
2893 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
2894 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
2895
2896 _LT_AC_TAGVAR(archive_cmds, $1)=''
2897 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2898 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
2899 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
2900
2901 if test "$GXX" = yes; then
2902 case $host_os in aix4.[[012]]|aix4.[[012]].*)
2903 # We only want to do this on AIX 4.2 and lower, the check
2904 # below for broken collect2 doesn't work under 4.3+
2905 collect2name=`${CC} -print-prog-name=collect2`
2906 if test -f "$collect2name" && \
2907 strings "$collect2name" | grep resolve_lib_name >/dev/null
2908 then
2909 # We have reworked collect2
2910 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
2911 else
2912 # We have old collect2
2913 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
2914 # It fails to find uninstalled libraries when the uninstalled
2915 # path is not listed in the libpath. Setting hardcode_minus_L
2916 # to unsupported forces relinking
2917 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
2918 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2919 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
2920 fi
2921 ;;
2922 esac
2923 shared_flag='-shared'
2924 if test "$aix_use_runtimelinking" = yes; then
2925 shared_flag="$shared_flag "'${wl}-G'
2926 fi
2927 else
2928 # not using gcc
2929 if test "$host_cpu" = ia64; then
2930 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
2931 # chokes on -Wl,-G. The following line is correct:
2932 shared_flag='-G'
2933 else
2934 if test "$aix_use_runtimelinking" = yes; then
2935 shared_flag='${wl}-G'
2936 else
2937 shared_flag='${wl}-bM:SRE'
2938 fi
2939 fi
2940 fi
2941
2942 # It seems that -bexpall does not export symbols beginning with
2943 # underscore (_), so it is better to generate a list of symbols to export.
2944 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
2945 if test "$aix_use_runtimelinking" = yes; then
2946 # Warning - without using the other runtime loading flags (-brtl),
2947 # -berok will link without error, but may produce a broken library.
2948 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
2949 # Determine the default libpath from the value encoded in an empty executable.
2950 _LT_AC_SYS_LIBPATH_AIX
2951 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2952
2953 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
2954 else
2955 if test "$host_cpu" = ia64; then
2956 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
2957 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
2958 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
2959 else
2960 # Determine the default libpath from the value encoded in an empty executable.
2961 _LT_AC_SYS_LIBPATH_AIX
2962 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
2963 # Warning - without using the other run time loading flags,
2964 # -berok will link without error, but may produce a broken library.
2965 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
2966 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
2967 # Exported symbols can be pulled into shared objects from archives
2968 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
2969 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
2970 # This is similar to how AIX traditionally builds its shared libraries.
2971 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
2972 fi
2973 fi
2974 ;;
2975
2976 beos*)
2977 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
2978 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
2979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
2980 # support --undefined. This deserves some investigation. FIXME
2981 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
2982 else
2983 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2984 fi
2985 ;;
2986
2987 chorus*)
2988 case $cc_basename in
2989 *)
2990 # FIXME: insert proper C++ library support
2991 _LT_AC_TAGVAR(ld_shlibs, $1)=no
2992 ;;
2993 esac
2994 ;;
2995
2996 cygwin* | mingw* | pw32*)
2997 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
2998 # as there is no search path for DLLs.
2999 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
3000 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
3001 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3002 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
3003
3004 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
3005 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3006 # If the export-symbols file already is a .def file (1st line
3007 # is EXPORTS), use it as is; otherwise, prepend...
3008 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
3009 cp $export_symbols $output_objdir/$soname.def;
3010 else
3011 echo EXPORTS > $output_objdir/$soname.def;
3012 cat $export_symbols >> $output_objdir/$soname.def;
3013 fi~
3014 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
3015 else
3016 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3017 fi
3018 ;;
3019 darwin* | rhapsody*)
3020 case $host_os in
3021 rhapsody* | darwin1.[[012]])
3022 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
3023 ;;
3024 *) # Darwin 1.3 on
3025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
3026 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3027 else
3028 case ${MACOSX_DEPLOYMENT_TARGET} in
3029 10.[[012]])
3030 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
3031 ;;
3032 10.*)
3033 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
3034 ;;
3035 esac
3036 fi
3037 ;;
3038 esac
3039 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3040 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3041 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
3042 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
3043 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
3044 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3045
3046 if test "$GXX" = yes ; then
3047 lt_int_apple_cc_single_mod=no
3048 output_verbose_link_cmd='echo'
3049 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
3050 lt_int_apple_cc_single_mod=yes
3051 fi
3052 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3053 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
3054 else
3055 _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'
3056 fi
3057 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3058 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3059 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
3060 _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}'
3061 else
3062 _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}'
3063 fi
3064 _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}'
3065 else
3066 case $cc_basename in
3067 xlc*)
3068 output_verbose_link_cmd='echo'
3069 _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'
3070 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
3071 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
3072 _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}'
3073 _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}'
3074 ;;
3075 *)
3076 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3077 ;;
3078 esac
3079 fi
3080 ;;
3081
3082 dgux*)
3083 case $cc_basename in
3084 ec++*)
3085 # FIXME: insert proper C++ library support
3086 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3087 ;;
3088 ghcx*)
3089 # Green Hills C++ Compiler
3090 # FIXME: insert proper C++ library support
3091 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3092 ;;
3093 *)
3094 # FIXME: insert proper C++ library support
3095 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3096 ;;
3097 esac
3098 ;;
3099 freebsd[[12]]*)
3100 # C++ shared libraries reported to be fairly broken before switch to ELF
3101 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3102 ;;
3103 freebsd-elf*)
3104 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3105 ;;
3106 freebsd* | dragonfly*)
3107 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
3108 # conventions
3109 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
3110 ;;
3111 gnu*)
3112 ;;
3113 hpux9*)
3114 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3115 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3116 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3117 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3118 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3119 # but as the default
3120 # location of the library.
3121
3122 case $cc_basename in
3123 CC*)
3124 # FIXME: insert proper C++ library support
3125 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3126 ;;
3127 aCC*)
3128 _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'
3129 # Commands to make compiler produce verbose output that lists
3130 # what "hidden" libraries, object files and flags are used when
3131 # linking a shared library.
3132 #
3133 # There doesn't appear to be a way to prevent this compiler from
3134 # explicitly linking system object files so we need to strip them
3135 # from the output so that they don't get included in the library
3136 # dependencies.
3137 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'
3138 ;;
3139 *)
3140 if test "$GXX" = yes; then
3141 _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'
3142 else
3143 # FIXME: insert proper C++ library support
3144 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3145 fi
3146 ;;
3147 esac
3148 ;;
3149 hpux10*|hpux11*)
3150 if test $with_gnu_ld = no; then
3151 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
3152 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3153
3154 case $host_cpu in
3155 hppa*64*|ia64*)
3156 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
3157 ;;
3158 *)
3159 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3160 ;;
3161 esac
3162 fi
3163 case $host_cpu in
3164 hppa*64*|ia64*)
3165 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3166 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3167 ;;
3168 *)
3169 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3170 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
3171 # but as the default
3172 # location of the library.
3173 ;;
3174 esac
3175
3176 case $cc_basename in
3177 CC*)
3178 # FIXME: insert proper C++ library support
3179 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3180 ;;
3181 aCC*)
3182 case $host_cpu in
3183 hppa*64*)
3184 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3185 ;;
3186 ia64*)
3187 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3188 ;;
3189 *)
3190 _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'
3191 ;;
3192 esac
3193 # Commands to make compiler produce verbose output that lists
3194 # what "hidden" libraries, object files and flags are used when
3195 # linking a shared library.
3196 #
3197 # There doesn't appear to be a way to prevent this compiler from
3198 # explicitly linking system object files so we need to strip them
3199 # from the output so that they don't get included in the library
3200 # dependencies.
3201 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'
3202 ;;
3203 *)
3204 if test "$GXX" = yes; then
3205 if test $with_gnu_ld = no; then
3206 case $host_cpu in
3207 hppa*64*)
3208 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3209 ;;
3210 ia64*)
3211 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3212 ;;
3213 *)
3214 _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'
3215 ;;
3216 esac
3217 fi
3218 else
3219 # FIXME: insert proper C++ library support
3220 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3221 fi
3222 ;;
3223 esac
3224 ;;
3225 interix3*)
3226 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3227 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3228 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3229 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3230 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
3231 # Instead, shared libraries are loaded at an image base (0x10000000 by
3232 # default) and relocated if they conflict, which is a slow very memory
3233 # consuming and fragmenting process. To avoid this, we pick a random,
3234 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
3235 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
3236 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3237 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
3238 ;;
3239 irix5* | irix6*)
3240 case $cc_basename in
3241 CC*)
3242 # SGI C++
3243 _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'
3244
3245 # Archives containing C++ object files must be created using
3246 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
3247 # necessary to make sure instantiated templates are included
3248 # in the archive.
3249 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
3250 ;;
3251 *)
3252 if test "$GXX" = yes; then
3253 if test "$with_gnu_ld" = no; then
3254 _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'
3255 else
3256 _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'
3257 fi
3258 fi
3259 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3260 ;;
3261 esac
3262 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3263 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3264 ;;
3265 linux* | k*bsd*-gnu)
3266 case $cc_basename in
3267 KCC*)
3268 # Kuck and Associates, Inc. (KAI) C++ Compiler
3269
3270 # KCC will only create a shared library if the output file
3271 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3272 # to its proper name (with version) after linking.
3273 _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'
3274 _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'
3275 # Commands to make compiler produce verbose output that lists
3276 # what "hidden" libraries, object files and flags are used when
3277 # linking a shared library.
3278 #
3279 # There doesn't appear to be a way to prevent this compiler from
3280 # explicitly linking system object files so we need to strip them
3281 # from the output so that they don't get included in the library
3282 # dependencies.
3283 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'
3284
3285 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
3286 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3287
3288 # Archives containing C++ object files must be created using
3289 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3290 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3291 ;;
3292 icpc*)
3293 # Intel C++
3294 with_gnu_ld=yes
3295 # version 8.0 and above of icpc choke on multiply defined symbols
3296 # if we add $predep_objects and $postdep_objects, however 7.1 and
3297 # earlier do not add the objects themselves.
3298 case `$CC -V 2>&1` in
3299 *"Version 7."*)
3300 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3301 _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'
3302 ;;
3303 *) # Version 8.0 or newer
3304 tmp_idyn=
3305 case $host_cpu in
3306 ia64*) tmp_idyn=' -i_dynamic';;
3307 esac
3308 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
3309 _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'
3310 ;;
3311 esac
3312 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3313 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3314 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3315 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
3316 ;;
3317 pgCC*)
3318 # Portland Group C++ compiler
3319 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
3320 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
3321
3322 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
3323 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
3324 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
3325 ;;
3326 cxx*)
3327 # Compaq C++
3328 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
3329 _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'
3330
3331 runpath_var=LD_RUN_PATH
3332 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3333 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3334
3335 # Commands to make compiler produce verbose output that lists
3336 # what "hidden" libraries, object files and flags are used when
3337 # linking a shared library.
3338 #
3339 # There doesn't appear to be a way to prevent this compiler from
3340 # explicitly linking system object files so we need to strip them
3341 # from the output so that they don't get included in the library
3342 # dependencies.
3343 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'
3344 ;;
3345 esac
3346 ;;
3347 lynxos*)
3348 # FIXME: insert proper C++ library support
3349 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3350 ;;
3351 m88k*)
3352 # FIXME: insert proper C++ library support
3353 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3354 ;;
3355 mvs*)
3356 case $cc_basename in
3357 cxx*)
3358 # FIXME: insert proper C++ library support
3359 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3360 ;;
3361 *)
3362 # FIXME: insert proper C++ library support
3363 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3364 ;;
3365 esac
3366 ;;
3367 netbsd* | netbsdelf*-gnu)
3368 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
3369 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
3370 wlarc=
3371 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3372 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3373 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3374 fi
3375 # Workaround some broken pre-1.5 toolchains
3376 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
3377 ;;
3378 openbsd2*)
3379 # C++ shared libraries are fairly broken
3380 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3381 ;;
3382 openbsd*)
3383 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
3384 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3385 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
3386 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3388 _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'
3389 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
3390 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
3391 fi
3392 output_verbose_link_cmd='echo'
3393 ;;
3394 osf3*)
3395 case $cc_basename in
3396 KCC*)
3397 # Kuck and Associates, Inc. (KAI) C++ Compiler
3398
3399 # KCC will only create a shared library if the output file
3400 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3401 # to its proper name (with version) after linking.
3402 _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'
3403
3404 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3405 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3406
3407 # Archives containing C++ object files must be created using
3408 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
3409 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
3410
3411 ;;
3412 RCC*)
3413 # Rational C++ 2.4.1
3414 # FIXME: insert proper C++ library support
3415 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3416 ;;
3417 cxx*)
3418 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3419 _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'
3420
3421 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3422 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3423
3424 # Commands to make compiler produce verbose output that lists
3425 # what "hidden" libraries, object files and flags are used when
3426 # linking a shared library.
3427 #
3428 # There doesn't appear to be a way to prevent this compiler from
3429 # explicitly linking system object files so we need to strip them
3430 # from the output so that they don't get included in the library
3431 # dependencies.
3432 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'
3433 ;;
3434 *)
3435 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3436 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3437 _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'
3438
3439 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3440 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3441
3442 # Commands to make compiler produce verbose output that lists
3443 # what "hidden" libraries, object files and flags are used when
3444 # linking a shared library.
3445 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3446
3447 else
3448 # FIXME: insert proper C++ library support
3449 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3450 fi
3451 ;;
3452 esac
3453 ;;
3454 osf4* | osf5*)
3455 case $cc_basename in
3456 KCC*)
3457 # Kuck and Associates, Inc. (KAI) C++ Compiler
3458
3459 # KCC will only create a shared library if the output file
3460 # ends with ".so" (or ".sl" for HP-UX), so rename the library
3461 # to its proper name (with version) after linking.
3462 _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'
3463
3464 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
3465 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3466
3467 # Archives containing C++ object files must be created using
3468 # the KAI C++ compiler.
3469 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
3470 ;;
3471 RCC*)
3472 # Rational C++ 2.4.1
3473 # FIXME: insert proper C++ library support
3474 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3475 ;;
3476 cxx*)
3477 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
3478 _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'
3479 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
3480 echo "-hidden">> $lib.exp~
3481 $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~
3482 $rm $lib.exp'
3483
3484 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
3485 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3486
3487 # Commands to make compiler produce verbose output that lists
3488 # what "hidden" libraries, object files and flags are used when
3489 # linking a shared library.
3490 #
3491 # There doesn't appear to be a way to prevent this compiler from
3492 # explicitly linking system object files so we need to strip them
3493 # from the output so that they don't get included in the library
3494 # dependencies.
3495 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'
3496 ;;
3497 *)
3498 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3499 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
3500 _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'
3501
3502 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
3503 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
3504
3505 # Commands to make compiler produce verbose output that lists
3506 # what "hidden" libraries, object files and flags are used when
3507 # linking a shared library.
3508 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
3509
3510 else
3511 # FIXME: insert proper C++ library support
3512 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3513 fi
3514 ;;
3515 esac
3516 ;;
3517 psos*)
3518 # FIXME: insert proper C++ library support
3519 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3520 ;;
3521 sunos4*)
3522 case $cc_basename in
3523 CC*)
3524 # Sun C++ 4.x
3525 # FIXME: insert proper C++ library support
3526 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3527 ;;
3528 lcc*)
3529 # Lucid
3530 # FIXME: insert proper C++ library support
3531 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3532 ;;
3533 *)
3534 # FIXME: insert proper C++ library support
3535 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3536 ;;
3537 esac
3538 ;;
3539 solaris*)
3540 case $cc_basename in
3541 CC*)
3542 # Sun C++ 4.2, 5.x and Centerline C++
3543 _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes
3544 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
3545 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
3546 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3547 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3548
3549 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
3550 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3551 case $host_os in
3552 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
3553 *)
3554 # The C++ compiler is used as linker so we must use $wl
3555 # flag to pass the commands to the underlying system
3556 # linker. We must also pass each convience library through
3557 # to the system linker between allextract/defaultextract.
3558 # The C++ compiler will combine linker options so we
3559 # cannot just pass the convience library names through
3560 # without $wl.
3561 # Supported since Solaris 2.6 (maybe 2.5.1?)
3562 _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'
3563 ;;
3564 esac
3565 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3566
3567 output_verbose_link_cmd='echo'
3568
3569 # Archives containing C++ object files must be created using
3570 # "CC -xar", where "CC" is the Sun C++ compiler. This is
3571 # necessary to make sure instantiated templates are included
3572 # in the archive.
3573 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
3574 ;;
3575 gcx*)
3576 # Green Hills C++ Compiler
3577 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3578
3579 # The C++ compiler must be used to create the archive.
3580 _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
3581 ;;
3582 *)
3583 # GNU C++ compiler with Solaris linker
3584 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
3585 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
3586 if $CC --version | grep -v '^2\.7' > /dev/null; then
3587 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3588 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3589 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3590
3591 # Commands to make compiler produce verbose output that lists
3592 # what "hidden" libraries, object files and flags are used when
3593 # linking a shared library.
3594 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3595 else
3596 # g++ 2.7 appears to require `-G' NOT `-shared' on this
3597 # platform.
3598 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
3599 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
3600 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
3601
3602 # Commands to make compiler produce verbose output that lists
3603 # what "hidden" libraries, object files and flags are used when
3604 # linking a shared library.
3605 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
3606 fi
3607
3608 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
3609 fi
3610 ;;
3611 esac
3612 ;;
3613 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
3614 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3615 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3616 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3617 runpath_var='LD_RUN_PATH'
3618
3619 case $cc_basename in
3620 CC*)
3621 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3622 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3623 ;;
3624 *)
3625 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3626 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
3627 ;;
3628 esac
3629 ;;
3630 sysv5* | sco3.2v5* | sco5v6*)
3631 # Note: We can NOT use -z defs as we might desire, because we do not
3632 # link with -lc, and that would cause any symbols used from libc to
3633 # always be unresolved, which means just about no library would
3634 # ever link correctly. If we're not using GNU ld we use -z text
3635 # though, which does catch some bad symbols but isn't as heavy-handed
3636 # as -z defs.
3637 # For security reasons, it is highly recommended that you always
3638 # use absolute paths for naming shared libraries, and exclude the
3639 # DT_RUNPATH tag from executables and libraries. But doing so
3640 # requires that you compile everything twice, which is a pain.
3641 # So that behaviour is only enabled if SCOABSPATH is set to a
3642 # non-empty value in the environment. Most likely only useful for
3643 # creating official distributions of packages.
3644 # This is a hack until libtool officially supports absolute path
3645 # names for shared libraries.
3646 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
3647 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
3648 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3649 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
3650 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
3651 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
3652 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
3653 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
3654 runpath_var='LD_RUN_PATH'
3655
3656 case $cc_basename in
3657 CC*)
3658 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3659 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3660 ;;
3661 *)
3662 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3663 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
3664 ;;
3665 esac
3666 ;;
3667 tandem*)
3668 case $cc_basename in
3669 NCC*)
3670 # NonStop-UX NCC 3.20
3671 # FIXME: insert proper C++ library support
3672 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3673 ;;
3674 *)
3675 # FIXME: insert proper C++ library support
3676 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3677 ;;
3678 esac
3679 ;;
3680 vxworks*)
3681 # FIXME: insert proper C++ library support
3682 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3683 ;;
3684 *)
3685 # FIXME: insert proper C++ library support
3686 _LT_AC_TAGVAR(ld_shlibs, $1)=no
3687 ;;
3688 esac
3689 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
3690 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
3691
3692 _LT_AC_TAGVAR(GCC, $1)="$GXX"
3693 _LT_AC_TAGVAR(LD, $1)="$LD"
3694
3695 AC_LIBTOOL_POSTDEP_PREDEP($1)
3696 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3697 AC_LIBTOOL_PROG_CC_C_O($1)
3698 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3699 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3700 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3701 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3702
3703 AC_LIBTOOL_CONFIG($1)
3704
3705 AC_LANG_POP
3706 CC=$lt_save_CC
3707 LDCXX=$LD
3708 LD=$lt_save_LD
3709 GCC=$lt_save_GCC
3710 with_gnu_ldcxx=$with_gnu_ld
3711 with_gnu_ld=$lt_save_with_gnu_ld
3712 lt_cv_path_LDCXX=$lt_cv_path_LD
3713 lt_cv_path_LD=$lt_save_path_LD
3714 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
3715 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
3716 ])# AC_LIBTOOL_LANG_CXX_CONFIG
3717
3718 # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
3719 # ------------------------------------
3720 # Figure out "hidden" library dependencies from verbose
3721 # compiler output when linking a shared library.
3722 # Parse the compiler output and extract the necessary
3723 # objects, libraries and library flags.
3724 AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
3725 dnl we can't use the lt_simple_compile_test_code here,
3726 dnl because it contains code intended for an executable,
3727 dnl not a library. It's possible we should let each
3728 dnl tag define a new lt_????_link_test_code variable,
3729 dnl but it's only used here...
3730 ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
3731 int a;
3732 void foo (void) { a = 0; }
3733 EOF
3734 ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
3735 class Foo
3736 {
3737 public:
3738 Foo (void) { a = 0; }
3739 private:
3740 int a;
3741 };
3742 EOF
3743 ],[$1],[F77],[cat > conftest.$ac_ext <<EOF
3744 subroutine foo
3745 implicit none
3746 integer*4 a
3747 a=0
3748 return
3749 end
3750 EOF
3751 ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
3752 public class foo {
3753 private int a;
3754 public void bar (void) {
3755 a = 0;
3756 }
3757 };
3758 EOF
3759 ])
3760 dnl Parse the compiler output and extract the necessary
3761 dnl objects, libraries and library flags.
3762 if AC_TRY_EVAL(ac_compile); then
3763 # Parse the compiler output and extract the necessary
3764 # objects, libraries and library flags.
3765
3766 # Sentinel used to keep track of whether or not we are before
3767 # the conftest object file.
3768 pre_test_object_deps_done=no
3769
3770 # The `*' in the case matches for architectures that use `case' in
3771 # $output_verbose_cmd can trigger glob expansion during the loop
3772 # eval without this substitution.
3773 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
3774
3775 for p in `eval $output_verbose_link_cmd`; do
3776 case $p in
3777
3778 -L* | -R* | -l*)
3779 # Some compilers place space between "-{L,R}" and the path.
3780 # Remove the space.
3781 if test $p = "-L" \
3782 || test $p = "-R"; then
3783 prev=$p
3784 continue
3785 else
3786 prev=
3787 fi
3788
3789 if test "$pre_test_object_deps_done" = no; then
3790 case $p in
3791 -L* | -R*)
3792 # Internal compiler library paths should come after those
3793 # provided the user. The postdeps already come after the
3794 # user supplied libs so there is no need to process them.
3795 if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
3796 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
3797 else
3798 _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
3799 fi
3800 ;;
3801 # The "-l" case would never come before the object being
3802 # linked, so don't bother handling this case.
3803 esac
3804 else
3805 if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
3806 _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
3807 else
3808 _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
3809 fi
3810 fi
3811 ;;
3812
3813 *.$objext)
3814 # This assumes that the test object file only shows up
3815 # once in the compiler output.
3816 if test "$p" = "conftest.$objext"; then
3817 pre_test_object_deps_done=yes
3818 continue
3819 fi
3820
3821 if test "$pre_test_object_deps_done" = no; then
3822 if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
3823 _LT_AC_TAGVAR(predep_objects, $1)="$p"
3824 else
3825 _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
3826 fi
3827 else
3828 if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
3829 _LT_AC_TAGVAR(postdep_objects, $1)="$p"
3830 else
3831 _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
3832 fi
3833 fi
3834 ;;
3835
3836 *) ;; # Ignore the rest.
3837
3838 esac
3839 done
3840
3841 # Clean up.
3842 rm -f a.out a.exe
3843 else
3844 echo "libtool.m4: error: problem compiling $1 test program"
3845 fi
3846
3847 $rm -f confest.$objext
3848
3849 # PORTME: override above test on systems where it is broken
3850 ifelse([$1],[CXX],
3851 [case $host_os in
3852 interix3*)
3853 # Interix 3.5 installs completely hosed .la files for C++, so rather than
3854 # hack all around it, let's just trust "g++" to DTRT.
3855 _LT_AC_TAGVAR(predep_objects,$1)=
3856 _LT_AC_TAGVAR(postdep_objects,$1)=
3857 _LT_AC_TAGVAR(postdeps,$1)=
3858 ;;
3859
3860 solaris*)
3861 case $cc_basename in
3862 CC*)
3863 # Adding this requires a known-good setup of shared libraries for
3864 # Sun compiler versions before 5.6, else PIC objects from an old
3865 # archive will be linked into the output, leading to subtle bugs.
3866 _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun'
3867 ;;
3868 esac
3869 ;;
3870 esac
3871 ])
3872
3873 case " $_LT_AC_TAGVAR(postdeps, $1) " in
3874 *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
3875 esac
3876 ])# AC_LIBTOOL_POSTDEP_PREDEP
3877
3878 # AC_LIBTOOL_LANG_F77_CONFIG
3879 # --------------------------
3880 # Ensure that the configuration vars for the C compiler are
3881 # suitably defined. Those variables are subsequently used by
3882 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3883 AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
3884 AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
3885 [AC_REQUIRE([AC_PROG_F77])
3886 AC_LANG_PUSH(Fortran 77)
3887
3888 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
3889 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
3890 _LT_AC_TAGVAR(always_export_symbols, $1)=no
3891 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
3892 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
3893 _LT_AC_TAGVAR(hardcode_direct, $1)=no
3894 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
3895 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
3896 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
3897 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
3898 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
3899 _LT_AC_TAGVAR(module_cmds, $1)=
3900 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
3901 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
3902 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
3903 _LT_AC_TAGVAR(no_undefined_flag, $1)=
3904 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
3905 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
3906
3907 # Source file extension for f77 test sources.
3908 ac_ext=f
3909
3910 # Object file extension for compiled f77 test sources.
3911 objext=o
3912 _LT_AC_TAGVAR(objext, $1)=$objext
3913
3914 # Code to be used in simple compile tests
3915 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
3916
3917 # Code to be used in simple link tests
3918 lt_simple_link_test_code=" program t\n end\n"
3919
3920 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
3921 _LT_AC_SYS_COMPILER
3922
3923 # save warnings/boilerplate of simple test code
3924 _LT_COMPILER_BOILERPLATE
3925 _LT_LINKER_BOILERPLATE
3926
3927 # Allow CC to be a program name with arguments.
3928 lt_save_CC="$CC"
3929 CC=${F77-"f77"}
3930 compiler=$CC
3931 _LT_AC_TAGVAR(compiler, $1)=$CC
3932 _LT_CC_BASENAME([$compiler])
3933
3934 AC_MSG_CHECKING([if libtool supports shared libraries])
3935 AC_MSG_RESULT([$can_build_shared])
3936
3937 AC_MSG_CHECKING([whether to build shared libraries])
3938 test "$can_build_shared" = "no" && enable_shared=no
3939
3940 # On AIX, shared libraries and static libraries use the same namespace, and
3941 # are all built from PIC.
3942 case $host_os in
3943 aix3*)
3944 test "$enable_shared" = yes && enable_static=no
3945 if test -n "$RANLIB"; then
3946 archive_cmds="$archive_cmds~\$RANLIB \$lib"
3947 postinstall_cmds='$RANLIB $lib'
3948 fi
3949 ;;
3950 aix4* | aix5*)
3951 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
3952 test "$enable_shared" = yes && enable_static=no
3953 fi
3954 ;;
3955 esac
3956 AC_MSG_RESULT([$enable_shared])
3957
3958 AC_MSG_CHECKING([whether to build static libraries])
3959 # Make sure either enable_shared or enable_static is yes.
3960 test "$enable_shared" = yes || enable_static=yes
3961 AC_MSG_RESULT([$enable_static])
3962
3963 _LT_AC_TAGVAR(GCC, $1)="$G77"
3964 _LT_AC_TAGVAR(LD, $1)="$LD"
3965
3966 AC_LIBTOOL_PROG_COMPILER_PIC($1)
3967 AC_LIBTOOL_PROG_CC_C_O($1)
3968 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
3969 AC_LIBTOOL_PROG_LD_SHLIBS($1)
3970 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
3971 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
3972
3973 AC_LIBTOOL_CONFIG($1)
3974
3975 AC_LANG_POP
3976 CC="$lt_save_CC"
3977 ])# AC_LIBTOOL_LANG_F77_CONFIG
3978
3979
3980 # AC_LIBTOOL_LANG_GCJ_CONFIG
3981 # --------------------------
3982 # Ensure that the configuration vars for the C compiler are
3983 # suitably defined. Those variables are subsequently used by
3984 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
3985 AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
3986 AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
3987 [AC_LANG_SAVE
3988
3989 # Source file extension for Java test sources.
3990 ac_ext=java
3991
3992 # Object file extension for compiled Java test sources.
3993 objext=o
3994 _LT_AC_TAGVAR(objext, $1)=$objext
3995
3996 # Code to be used in simple compile tests
3997 lt_simple_compile_test_code="class foo {}\n"
3998
3999 # Code to be used in simple link tests
4000 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
4001
4002 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4003 _LT_AC_SYS_COMPILER
4004
4005 # save warnings/boilerplate of simple test code
4006 _LT_COMPILER_BOILERPLATE
4007 _LT_LINKER_BOILERPLATE
4008
4009 # Allow CC to be a program name with arguments.
4010 lt_save_CC="$CC"
4011 CC=${GCJ-"gcj"}
4012 compiler=$CC
4013 _LT_AC_TAGVAR(compiler, $1)=$CC
4014 _LT_CC_BASENAME([$compiler])
4015
4016 # GCJ did not exist at the time GCC didn't implicitly link libc in.
4017 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
4018
4019 _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
4020
4021 AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
4022 AC_LIBTOOL_PROG_COMPILER_PIC($1)
4023 AC_LIBTOOL_PROG_CC_C_O($1)
4024 AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
4025 AC_LIBTOOL_PROG_LD_SHLIBS($1)
4026 AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
4027 AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
4028
4029 AC_LIBTOOL_CONFIG($1)
4030
4031 AC_LANG_RESTORE
4032 CC="$lt_save_CC"
4033 ])# AC_LIBTOOL_LANG_GCJ_CONFIG
4034
4035
4036 # AC_LIBTOOL_LANG_RC_CONFIG
4037 # -------------------------
4038 # Ensure that the configuration vars for the Windows resource compiler are
4039 # suitably defined. Those variables are subsequently used by
4040 # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
4041 AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
4042 AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
4043 [AC_LANG_SAVE
4044
4045 # Source file extension for RC test sources.
4046 ac_ext=rc
4047
4048 # Object file extension for compiled RC test sources.
4049 objext=o
4050 _LT_AC_TAGVAR(objext, $1)=$objext
4051
4052 # Code to be used in simple compile tests
4053 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
4054
4055 # Code to be used in simple link tests
4056 lt_simple_link_test_code="$lt_simple_compile_test_code"
4057
4058 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
4059 _LT_AC_SYS_COMPILER
4060
4061 # save warnings/boilerplate of simple test code
4062 _LT_COMPILER_BOILERPLATE
4063 _LT_LINKER_BOILERPLATE
4064
4065 # Allow CC to be a program name with arguments.
4066 lt_save_CC="$CC"
4067 CC=${RC-"windres"}
4068 compiler=$CC
4069 _LT_AC_TAGVAR(compiler, $1)=$CC
4070 _LT_CC_BASENAME([$compiler])
4071 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
4072
4073 AC_LIBTOOL_CONFIG($1)
4074
4075 AC_LANG_RESTORE
4076 CC="$lt_save_CC"
4077 ])# AC_LIBTOOL_LANG_RC_CONFIG
4078
4079
4080 # AC_LIBTOOL_CONFIG([TAGNAME])
4081 # ----------------------------
4082 # If TAGNAME is not passed, then create an initial libtool script
4083 # with a default configuration from the untagged config vars. Otherwise
4084 # add code to config.status for appending the configuration named by
4085 # TAGNAME from the matching tagged config vars.
4086 AC_DEFUN([AC_LIBTOOL_CONFIG],
4087 [# The else clause should only fire when bootstrapping the
4088 # libtool distribution, otherwise you forgot to ship ltmain.sh
4089 # with your package, and you will get complaints that there are
4090 # no rules to generate ltmain.sh.
4091 if test -f "$ltmain"; then
4092 # See if we are running on zsh, and set the options which allow our commands through
4093 # without removal of \ escapes.
4094 if test -n "${ZSH_VERSION+set}" ; then
4095 setopt NO_GLOB_SUBST
4096 fi
4097 # Now quote all the things that may contain metacharacters while being
4098 # careful not to overquote the AC_SUBSTed values. We take copies of the
4099 # variables and quote the copies for generation of the libtool script.
4100 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
4101 SED SHELL STRIP \
4102 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
4103 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
4104 deplibs_check_method reload_flag reload_cmds need_locks \
4105 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
4106 lt_cv_sys_global_symbol_to_c_name_address \
4107 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
4108 old_postinstall_cmds old_postuninstall_cmds \
4109 _LT_AC_TAGVAR(compiler, $1) \
4110 _LT_AC_TAGVAR(CC, $1) \
4111 _LT_AC_TAGVAR(LD, $1) \
4112 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
4113 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
4114 _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
4115 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
4116 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
4117 _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
4118 _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
4119 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
4120 _LT_AC_TAGVAR(old_archive_cmds, $1) \
4121 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
4122 _LT_AC_TAGVAR(predep_objects, $1) \
4123 _LT_AC_TAGVAR(postdep_objects, $1) \
4124 _LT_AC_TAGVAR(predeps, $1) \
4125 _LT_AC_TAGVAR(postdeps, $1) \
4126 _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
4127 _LT_AC_TAGVAR(archive_cmds, $1) \
4128 _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
4129 _LT_AC_TAGVAR(postinstall_cmds, $1) \
4130 _LT_AC_TAGVAR(postuninstall_cmds, $1) \
4131 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
4132 _LT_AC_TAGVAR(allow_undefined_flag, $1) \
4133 _LT_AC_TAGVAR(no_undefined_flag, $1) \
4134 _LT_AC_TAGVAR(export_symbols_cmds, $1) \
4135 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
4136 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
4137 _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
4138 _LT_AC_TAGVAR(hardcode_automatic, $1) \
4139 _LT_AC_TAGVAR(module_cmds, $1) \
4140 _LT_AC_TAGVAR(module_expsym_cmds, $1) \
4141 _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
4142 _LT_AC_TAGVAR(exclude_expsyms, $1) \
4143 _LT_AC_TAGVAR(include_expsyms, $1); do
4144
4145 case $var in
4146 _LT_AC_TAGVAR(old_archive_cmds, $1) | \
4147 _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
4148 _LT_AC_TAGVAR(archive_cmds, $1) | \
4149 _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
4150 _LT_AC_TAGVAR(module_cmds, $1) | \
4151 _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
4152 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
4153 _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
4154 extract_expsyms_cmds | reload_cmds | finish_cmds | \
4155 postinstall_cmds | postuninstall_cmds | \
4156 old_postinstall_cmds | old_postuninstall_cmds | \
4157 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
4158 # Double-quote double-evaled strings.
4159 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
4160 ;;
4161 *)
4162 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
4163 ;;
4164 esac
4165 done
4166
4167 case $lt_echo in
4168 *'\[$]0 --fallback-echo"')
4169 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
4170 ;;
4171 esac
4172
4173 ifelse([$1], [],
4174 [cfgfile="${ofile}T"
4175 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
4176 $rm -f "$cfgfile"
4177 AC_MSG_NOTICE([creating $ofile])],
4178 [cfgfile="$ofile"])
4179
4180 cat <<__EOF__ >> "$cfgfile"
4181 ifelse([$1], [],
4182 [#! $SHELL
4183
4184 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
4185 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
4186 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
4187 #
4188 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
4189 # Free Software Foundation, Inc.
4190 #
4191 # This file is part of GNU Libtool:
4192 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
4193 #
4194 # This program is free software; you can redistribute it and/or modify
4195 # it under the terms of the GNU General Public License as published by
4196 # the Free Software Foundation; either version 2 of the License, or
4197 # (at your option) any later version.
4198 #
4199 # This program is distributed in the hope that it will be useful, but
4200 # WITHOUT ANY WARRANTY; without even the implied warranty of
4201 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
4202 # General Public License for more details.
4203 #
4204 # You should have received a copy of the GNU General Public License
4205 # along with this program; if not, write to the Free Software
4206 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
4207 #
4208 # As a special exception to the GNU General Public License, if you
4209 # distribute this file as part of a program that contains a
4210 # configuration script generated by Autoconf, you may include it under
4211 # the same distribution terms that you use for the rest of that program.
4212
4213 # A sed program that does not truncate output.
4214 SED=$lt_SED
4215
4216 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
4217 Xsed="$SED -e 1s/^X//"
4218
4219 # The HP-UX ksh and POSIX shell print the target directory to stdout
4220 # if CDPATH is set.
4221 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4222
4223 # The names of the tagged configurations supported by this script.
4224 available_tags=
4225
4226 # ### BEGIN LIBTOOL CONFIG],
4227 [# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
4228
4229 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4230
4231 # Shell to use when invoking shell scripts.
4232 SHELL=$lt_SHELL
4233
4234 # Whether or not to build shared libraries.
4235 build_libtool_libs=$enable_shared
4236
4237 # Whether or not to build static libraries.
4238 build_old_libs=$enable_static
4239
4240 # Whether or not to add -lc for building shared libraries.
4241 build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
4242
4243 # Whether or not to disallow shared libs when runtime libs are static
4244 allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
4245
4246 # Whether or not to optimize for fast installation.
4247 fast_install=$enable_fast_install
4248
4249 # The host system.
4250 host_alias=$host_alias
4251 host=$host
4252 host_os=$host_os
4253
4254 # The build system.
4255 build_alias=$build_alias
4256 build=$build
4257 build_os=$build_os
4258
4259 # An echo program that does not interpret backslashes.
4260 echo=$lt_echo
4261
4262 # The archiver.
4263 AR=$lt_AR
4264 AR_FLAGS=$lt_AR_FLAGS
4265
4266 # A C compiler.
4267 LTCC=$lt_LTCC
4268
4269 # LTCC compiler flags.
4270 LTCFLAGS=$lt_LTCFLAGS
4271
4272 # A language-specific compiler.
4273 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
4274
4275 # Is the compiler the GNU C compiler?
4276 with_gcc=$_LT_AC_TAGVAR(GCC, $1)
4277
4278 # An ERE matcher.
4279 EGREP=$lt_EGREP
4280
4281 # The linker used to build libraries.
4282 LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
4283
4284 # Whether we need hard or soft links.
4285 LN_S=$lt_LN_S
4286
4287 # A BSD-compatible nm program.
4288 NM=$lt_NM
4289
4290 # A symbol stripping program
4291 STRIP=$lt_STRIP
4292
4293 # Used to examine libraries when file_magic_cmd begins "file"
4294 MAGIC_CMD=$MAGIC_CMD
4295
4296 # Used on cygwin: DLL creation program.
4297 DLLTOOL="$DLLTOOL"
4298
4299 # Used on cygwin: object dumper.
4300 OBJDUMP="$OBJDUMP"
4301
4302 # Used on cygwin: assembler.
4303 AS="$AS"
4304
4305 # The name of the directory that contains temporary libtool files.
4306 objdir=$objdir
4307
4308 # How to create reloadable object files.
4309 reload_flag=$lt_reload_flag
4310 reload_cmds=$lt_reload_cmds
4311
4312 # How to pass a linker flag through the compiler.
4313 wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
4314
4315 # Object file suffix (normally "o").
4316 objext="$ac_objext"
4317
4318 # Old archive suffix (normally "a").
4319 libext="$libext"
4320
4321 # Shared library suffix (normally ".so").
4322 shrext_cmds='$shrext_cmds'
4323
4324 # Executable file suffix (normally "").
4325 exeext="$exeext"
4326
4327 # Additional compiler flags for building library objects.
4328 pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
4329 pic_mode=$pic_mode
4330
4331 # What is the maximum length of a command?
4332 max_cmd_len=$lt_cv_sys_max_cmd_len
4333
4334 # Does compiler simultaneously support -c and -o options?
4335 compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
4336
4337 # Must we lock files when doing compilation?
4338 need_locks=$lt_need_locks
4339
4340 # Do we need the lib prefix for modules?
4341 need_lib_prefix=$need_lib_prefix
4342
4343 # Do we need a version for libraries?
4344 need_version=$need_version
4345
4346 # Whether dlopen is supported.
4347 dlopen_support=$enable_dlopen
4348
4349 # Whether dlopen of programs is supported.
4350 dlopen_self=$enable_dlopen_self
4351
4352 # Whether dlopen of statically linked programs is supported.
4353 dlopen_self_static=$enable_dlopen_self_static
4354
4355 # Compiler flag to prevent dynamic linking.
4356 link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
4357
4358 # Compiler flag to turn off builtin functions.
4359 no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
4360
4361 # Compiler flag to allow reflexive dlopens.
4362 export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
4363
4364 # Compiler flag to generate shared objects directly from archives.
4365 whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
4366
4367 # Compiler flag to generate thread-safe objects.
4368 thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
4369
4370 # Library versioning type.
4371 version_type=$version_type
4372
4373 # Format of library name prefix.
4374 libname_spec=$lt_libname_spec
4375
4376 # List of archive names. First name is the real one, the rest are links.
4377 # The last name is the one that the linker finds with -lNAME.
4378 library_names_spec=$lt_library_names_spec
4379
4380 # The coded name of the library, if different from the real name.
4381 soname_spec=$lt_soname_spec
4382
4383 # Commands used to build and install an old-style archive.
4384 RANLIB=$lt_RANLIB
4385 old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
4386 old_postinstall_cmds=$lt_old_postinstall_cmds
4387 old_postuninstall_cmds=$lt_old_postuninstall_cmds
4388
4389 # Create an old-style archive from a shared archive.
4390 old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
4391
4392 # Create a temporary old-style archive to link instead of a shared archive.
4393 old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
4394
4395 # Commands used to build and install a shared archive.
4396 archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
4397 archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
4398 postinstall_cmds=$lt_postinstall_cmds
4399 postuninstall_cmds=$lt_postuninstall_cmds
4400
4401 # Commands used to build a loadable module (assumed same as above if empty)
4402 module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
4403 module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
4404
4405 # Commands to strip libraries.
4406 old_striplib=$lt_old_striplib
4407 striplib=$lt_striplib
4408
4409 # Dependencies to place before the objects being linked to create a
4410 # shared library.
4411 predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
4412
4413 # Dependencies to place after the objects being linked to create a
4414 # shared library.
4415 postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
4416
4417 # Dependencies to place before the objects being linked to create a
4418 # shared library.
4419 predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
4420
4421 # Dependencies to place after the objects being linked to create a
4422 # shared library.
4423 postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
4424
4425 # The library search path used internally by the compiler when linking
4426 # a shared library.
4427 compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
4428
4429 # Method to check whether dependent libraries are shared objects.
4430 deplibs_check_method=$lt_deplibs_check_method
4431
4432 # Command to use when deplibs_check_method == file_magic.
4433 file_magic_cmd=$lt_file_magic_cmd
4434
4435 # Flag that allows shared libraries with undefined symbols to be built.
4436 allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
4437
4438 # Flag that forces no undefined symbols.
4439 no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
4440
4441 # Commands used to finish a libtool library installation in a directory.
4442 finish_cmds=$lt_finish_cmds
4443
4444 # Same as above, but a single script fragment to be evaled but not shown.
4445 finish_eval=$lt_finish_eval
4446
4447 # Take the output of nm and produce a listing of raw symbols and C names.
4448 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
4449
4450 # Transform the output of nm in a proper C declaration
4451 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
4452
4453 # Transform the output of nm in a C name address pair
4454 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
4455
4456 # This is the shared library runtime path variable.
4457 runpath_var=$runpath_var
4458
4459 # This is the shared library path variable.
4460 shlibpath_var=$shlibpath_var
4461
4462 # Is shlibpath searched before the hard-coded library search path?
4463 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
4464
4465 # How to hardcode a shared library path into an executable.
4466 hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
4467
4468 # Whether we should hardcode library paths into libraries.
4469 hardcode_into_libs=$hardcode_into_libs
4470
4471 # Flag to hardcode \$libdir into a binary during linking.
4472 # This must work even if \$libdir does not exist.
4473 hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
4474
4475 # If ld is used when linking, flag to hardcode \$libdir into
4476 # a binary during linking. This must work even if \$libdir does
4477 # not exist.
4478 hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
4479
4480 # Whether we need a single -rpath flag with a separated argument.
4481 hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
4482
4483 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
4484 # resulting binary.
4485 hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
4486
4487 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
4488 # resulting binary.
4489 hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
4490
4491 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
4492 # the resulting binary.
4493 hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
4494
4495 # Set to yes if building a shared library automatically hardcodes DIR into the library
4496 # and all subsequent libraries and executables linked against it.
4497 hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
4498
4499 # Variables whose values should be saved in libtool wrapper scripts and
4500 # restored at relink time.
4501 variables_saved_for_relink="$variables_saved_for_relink"
4502
4503 # Whether libtool must link a program against all its dependency libraries.
4504 link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
4505
4506 # Compile-time system search path for libraries
4507 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
4508
4509 # Run-time system search path for libraries
4510 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
4511
4512 # Fix the shell variable \$srcfile for the compiler.
4513 fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
4514
4515 # Set to yes if exported symbols are required.
4516 always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
4517
4518 # The commands to list exported symbols.
4519 export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
4520
4521 # The commands to extract the exported symbol list from a shared archive.
4522 extract_expsyms_cmds=$lt_extract_expsyms_cmds
4523
4524 # Symbols that should not be listed in the preloaded symbols.
4525 exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
4526
4527 # Symbols that must always be exported.
4528 include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
4529
4530 ifelse([$1],[],
4531 [# ### END LIBTOOL CONFIG],
4532 [# ### END LIBTOOL TAG CONFIG: $tagname])
4533
4534 __EOF__
4535
4536 ifelse([$1],[], [
4537 case $host_os in
4538 aix3*)
4539 cat <<\EOF >> "$cfgfile"
4540
4541 # AIX sometimes has problems with the GCC collect2 program. For some
4542 # reason, if we set the COLLECT_NAMES environment variable, the problems
4543 # vanish in a puff of smoke.
4544 if test "X${COLLECT_NAMES+set}" != Xset; then
4545 COLLECT_NAMES=
4546 export COLLECT_NAMES
4547 fi
4548 EOF
4549 ;;
4550 esac
4551
4552 # We use sed instead of cat because bash on DJGPP gets confused if
4553 # if finds mixed CR/LF and LF-only lines. Since sed operates in
4554 # text mode, it properly converts lines to CR/LF. This bash problem
4555 # is reportedly fixed, but why not run on old versions too?
4556 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
4557
4558 mv -f "$cfgfile" "$ofile" || \
4559 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
4560 chmod +x "$ofile"
4561 ])
4562 else
4563 # If there is no Makefile yet, we rely on a make rule to execute
4564 # `config.status --recheck' to rerun these tests and create the
4565 # libtool script then.
4566 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
4567 if test -f "$ltmain_in"; then
4568 test -f Makefile && make "$ltmain"
4569 fi
4570 fi
4571 ])# AC_LIBTOOL_CONFIG
4572
4573
4574 # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
4575 # -------------------------------------------
4576 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
4577 [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
4578
4579 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
4580
4581 if test "$GCC" = yes; then
4582 _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
4583
4584 AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
4585 lt_cv_prog_compiler_rtti_exceptions,
4586 [-fno-rtti -fno-exceptions], [],
4587 [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
4588 fi
4589 ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
4590
4591
4592 # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4593 # ---------------------------------
4594 AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
4595 [AC_REQUIRE([AC_CANONICAL_HOST])
4596 AC_REQUIRE([AC_PROG_NM])
4597 AC_REQUIRE([AC_OBJEXT])
4598 # Check for command to grab the raw symbol name followed by C symbol from nm.
4599 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
4600 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
4601 [
4602 # These are sane defaults that work on at least a few old systems.
4603 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4604
4605 # Character class describing NM global symbol codes.
4606 symcode='[[BCDEGRST]]'
4607
4608 # Regexp to match symbols that can be accessed directly from C.
4609 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
4610
4611 # Transform an extracted symbol line into a proper C declaration
4612 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4613
4614 # Transform an extracted symbol line into symbol name and symbol address
4615 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4616
4617 # Define system-specific variables.
4618 case $host_os in
4619 aix*)
4620 symcode='[[BCDT]]'
4621 ;;
4622 cygwin* | mingw* | pw32*)
4623 symcode='[[ABCDGISTW]]'
4624 ;;
4625 hpux*) # Its linker distinguishes data from code symbols
4626 if test "$host_cpu" = ia64; then
4627 symcode='[[ABCDEGRST]]'
4628 fi
4629 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4630 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4631 ;;
4632 linux* | k*bsd*-gnu)
4633 if test "$host_cpu" = ia64; then
4634 symcode='[[ABCDGIRSTW]]'
4635 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4636 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
4637 fi
4638 ;;
4639 irix* | nonstopux*)
4640 symcode='[[BCDEGRST]]'
4641 ;;
4642 osf*)
4643 symcode='[[BCDEGQRST]]'
4644 ;;
4645 solaris*)
4646 symcode='[[BDRT]]'
4647 ;;
4648 sco3.2v5*)
4649 symcode='[[DT]]'
4650 ;;
4651 sysv4.2uw2*)
4652 symcode='[[DT]]'
4653 ;;
4654 sysv5* | sco5v6* | unixware* | OpenUNIX*)
4655 symcode='[[ABDT]]'
4656 ;;
4657 sysv4)
4658 symcode='[[DFNSTU]]'
4659 ;;
4660 esac
4661
4662 # Handle CRLF in mingw tool chain
4663 opt_cr=
4664 case $build_os in
4665 mingw*)
4666 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4667 ;;
4668 esac
4669
4670 # If we're using GNU nm, then use its standard symbol codes.
4671 case `$NM -V 2>&1` in
4672 *GNU* | *'with BFD'*)
4673 symcode='[[ABCDGIRSTW]]' ;;
4674 esac
4675
4676 # Try without a prefix undercore, then with it.
4677 for ac_symprfx in "" "_"; do
4678
4679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4680 symxfrm="\\1 $ac_symprfx\\2 \\2"
4681
4682 # Write the raw and C identifiers.
4683 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4684
4685 # Check to see that the pipe works correctly.
4686 pipe_works=no
4687
4688 rm -f conftest*
4689 cat > conftest.$ac_ext <<EOF
4690 #ifdef __cplusplus
4691 extern "C" {
4692 #endif
4693 char nm_test_var;
4694 void nm_test_func(){}
4695 #ifdef __cplusplus
4696 }
4697 #endif
4698 int main(){nm_test_var='a';nm_test_func();return(0);}
4699 EOF
4700
4701 if AC_TRY_EVAL(ac_compile); then
4702 # Now try to grab the symbols.
4703 nlist=conftest.nm
4704 if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
4705 # Try sorting and uniquifying the output.
4706 if sort "$nlist" | uniq > "$nlist"T; then
4707 mv -f "$nlist"T "$nlist"
4708 else
4709 rm -f "$nlist"T
4710 fi
4711
4712 # Make sure that we snagged all the symbols we need.
4713 if grep ' nm_test_var$' "$nlist" >/dev/null; then
4714 if grep ' nm_test_func$' "$nlist" >/dev/null; then
4715 cat <<EOF > conftest.$ac_ext
4716 #ifdef __cplusplus
4717 extern "C" {
4718 #endif
4719
4720 EOF
4721 # Now generate the symbol file.
4722 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
4723
4724 cat <<EOF >> conftest.$ac_ext
4725 #if defined (__STDC__) && __STDC__
4726 # define lt_ptr_t void *
4727 #else
4728 # define lt_ptr_t char *
4729 # define const
4730 #endif
4731
4732 /* The mapping between symbol names and symbols. */
4733 const struct {
4734 const char *name;
4735 lt_ptr_t address;
4736 }
4737 lt_preloaded_symbols[[]] =
4738 {
4739 EOF
4740 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
4741 cat <<\EOF >> conftest.$ac_ext
4742 {0, (lt_ptr_t) 0}
4743 };
4744
4745 #ifdef __cplusplus
4746 }
4747 #endif
4748 EOF
4749 # Now try linking the two files.
4750 mv conftest.$ac_objext conftstm.$ac_objext
4751 lt_save_LIBS="$LIBS"
4752 lt_save_CFLAGS="$CFLAGS"
4753 LIBS="conftstm.$ac_objext"
4754 CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4755 if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
4756 pipe_works=yes
4757 fi
4758 LIBS="$lt_save_LIBS"
4759 CFLAGS="$lt_save_CFLAGS"
4760 else
4761 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4762 fi
4763 else
4764 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4765 fi
4766 else
4767 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4768 fi
4769 else
4770 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4771 cat conftest.$ac_ext >&5
4772 fi
4773 rm -f conftest* conftst*
4774
4775 # Do not use the global_symbol_pipe unless it works.
4776 if test "$pipe_works" = yes; then
4777 break
4778 else
4779 lt_cv_sys_global_symbol_pipe=
4780 fi
4781 done
4782 ])
4783 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4784 lt_cv_sys_global_symbol_to_cdecl=
4785 fi
4786 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4787 AC_MSG_RESULT(failed)
4788 else
4789 AC_MSG_RESULT(ok)
4790 fi
4791 ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
4792
4793
4794 # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
4795 # ---------------------------------------
4796 AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
4797 [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
4798 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4799 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
4800
4801 AC_MSG_CHECKING([for $compiler option to produce PIC])
4802 ifelse([$1],[CXX],[
4803 # C++ specific cases for pic, static, wl, etc.
4804 if test "$GXX" = yes; then
4805 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4806 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4807
4808 case $host_os in
4809 aix*)
4810 # All AIX code is PIC.
4811 if test "$host_cpu" = ia64; then
4812 # AIX 5 now supports IA64 processor
4813 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4814 fi
4815 ;;
4816 amigaos*)
4817 # FIXME: we need at least 68020 code to build shared libraries, but
4818 # adding the `-m68020' flag to GCC prevents building anything better,
4819 # like `-m68040'.
4820 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4821 ;;
4822 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4823 # PIC is the default for these OSes.
4824 ;;
4825 mingw* | os2* | pw32*)
4826 # This hack is so that the source file can tell whether it is being
4827 # built for inclusion in a dll (and should export symbols for example).
4828 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
4829 ;;
4830 darwin* | rhapsody*)
4831 # PIC is the default on this platform
4832 # Common symbols not allowed in MH_DYLIB files
4833 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4834 ;;
4835 *djgpp*)
4836 # DJGPP does not support shared libraries at all
4837 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4838 ;;
4839 interix3*)
4840 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4841 # Instead, we relocate shared libraries at runtime.
4842 ;;
4843 sysv4*MP*)
4844 if test -d /usr/nec; then
4845 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4846 fi
4847 ;;
4848 hpux*)
4849 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4850 # not for PA HP-UX.
4851 case $host_cpu in
4852 hppa*64*|ia64*)
4853 ;;
4854 *)
4855 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4856 ;;
4857 esac
4858 ;;
4859 *)
4860 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4861 ;;
4862 esac
4863 else
4864 case $host_os in
4865 aix4* | aix5*)
4866 # All AIX code is PIC.
4867 if test "$host_cpu" = ia64; then
4868 # AIX 5 now supports IA64 processor
4869 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4870 else
4871 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4872 fi
4873 ;;
4874 chorus*)
4875 case $cc_basename in
4876 cxch68*)
4877 # Green Hills C++ Compiler
4878 # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
4879 ;;
4880 esac
4881 ;;
4882 darwin*)
4883 # PIC is the default on this platform
4884 # Common symbols not allowed in MH_DYLIB files
4885 case $cc_basename in
4886 xlc*)
4887 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
4888 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4889 ;;
4890 esac
4891 ;;
4892 dgux*)
4893 case $cc_basename in
4894 ec++*)
4895 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4896 ;;
4897 ghcx*)
4898 # Green Hills C++ Compiler
4899 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4900 ;;
4901 *)
4902 ;;
4903 esac
4904 ;;
4905 freebsd* | dragonfly*)
4906 # FreeBSD uses GNU C++
4907 ;;
4908 hpux9* | hpux10* | hpux11*)
4909 case $cc_basename in
4910 CC*)
4911 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4912 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4913 if test "$host_cpu" != ia64; then
4914 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4915 fi
4916 ;;
4917 aCC*)
4918 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4919 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
4920 case $host_cpu in
4921 hppa*64*|ia64*)
4922 # +Z the default
4923 ;;
4924 *)
4925 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4926 ;;
4927 esac
4928 ;;
4929 *)
4930 ;;
4931 esac
4932 ;;
4933 interix*)
4934 # This is c89, which is MS Visual C++ (no shared libs)
4935 # Anyone wants to do a port?
4936 ;;
4937 irix5* | irix6* | nonstopux*)
4938 case $cc_basename in
4939 CC*)
4940 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4941 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4942 # CC pic flag -KPIC is the default.
4943 ;;
4944 *)
4945 ;;
4946 esac
4947 ;;
4948 linux* | k*bsd*-gnu)
4949 case $cc_basename in
4950 KCC*)
4951 # KAI C++ Compiler
4952 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4953 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4954 ;;
4955 icpc* | ecpc*)
4956 # Intel C++
4957 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4958 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4959 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
4960 ;;
4961 pgCC*)
4962 # Portland Group C++ compiler.
4963 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4964 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4965 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4966 ;;
4967 cxx*)
4968 # Compaq C++
4969 # Make sure the PIC flag is empty. It appears that all Alpha
4970 # Linux and Compaq Tru64 Unix objects are PIC.
4971 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
4972 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4973 ;;
4974 *)
4975 ;;
4976 esac
4977 ;;
4978 lynxos*)
4979 ;;
4980 m88k*)
4981 ;;
4982 mvs*)
4983 case $cc_basename in
4984 cxx*)
4985 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4986 ;;
4987 *)
4988 ;;
4989 esac
4990 ;;
4991 netbsd* | netbsdelf*-gnu)
4992 ;;
4993 osf3* | osf4* | osf5*)
4994 case $cc_basename in
4995 KCC*)
4996 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4997 ;;
4998 RCC*)
4999 # Rational C++ 2.4.1
5000 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5001 ;;
5002 cxx*)
5003 # Digital/Compaq C++
5004 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5005 # Make sure the PIC flag is empty. It appears that all Alpha
5006 # Linux and Compaq Tru64 Unix objects are PIC.
5007 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5008 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5009 ;;
5010 *)
5011 ;;
5012 esac
5013 ;;
5014 psos*)
5015 ;;
5016 solaris*)
5017 case $cc_basename in
5018 CC*)
5019 # Sun C++ 4.2, 5.x and Centerline C++
5020 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5021 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5022 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5023 ;;
5024 gcx*)
5025 # Green Hills C++ Compiler
5026 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5027 ;;
5028 *)
5029 ;;
5030 esac
5031 ;;
5032 sunos4*)
5033 case $cc_basename in
5034 CC*)
5035 # Sun C++ 4.x
5036 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5037 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5038 ;;
5039 lcc*)
5040 # Lucid
5041 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5042 ;;
5043 *)
5044 ;;
5045 esac
5046 ;;
5047 tandem*)
5048 case $cc_basename in
5049 NCC*)
5050 # NonStop-UX NCC 3.20
5051 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5052 ;;
5053 *)
5054 ;;
5055 esac
5056 ;;
5057 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5058 case $cc_basename in
5059 CC*)
5060 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5061 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5062 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5063 ;;
5064 esac
5065 ;;
5066 vxworks*)
5067 ;;
5068 *)
5069 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5070 ;;
5071 esac
5072 fi
5073 ],
5074 [
5075 if test "$GCC" = yes; then
5076 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5077 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5078
5079 case $host_os in
5080 aix*)
5081 # All AIX code is PIC.
5082 if test "$host_cpu" = ia64; then
5083 # AIX 5 now supports IA64 processor
5084 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5085 fi
5086 ;;
5087
5088 amigaos*)
5089 # FIXME: we need at least 68020 code to build shared libraries, but
5090 # adding the `-m68020' flag to GCC prevents building anything better,
5091 # like `-m68040'.
5092 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
5093 ;;
5094
5095 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5096 # PIC is the default for these OSes.
5097 ;;
5098
5099 mingw* | pw32* | os2*)
5100 # This hack is so that the source file can tell whether it is being
5101 # built for inclusion in a dll (and should export symbols for example).
5102 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5103 ;;
5104
5105 darwin* | rhapsody*)
5106 # PIC is the default on this platform
5107 # Common symbols not allowed in MH_DYLIB files
5108 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
5109 ;;
5110
5111 interix3*)
5112 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
5113 # Instead, we relocate shared libraries at runtime.
5114 ;;
5115
5116 msdosdjgpp*)
5117 # Just because we use GCC doesn't mean we suddenly get shared libraries
5118 # on systems that don't support them.
5119 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5120 enable_shared=no
5121 ;;
5122
5123 sysv4*MP*)
5124 if test -d /usr/nec; then
5125 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
5126 fi
5127 ;;
5128
5129 hpux*)
5130 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5131 # not for PA HP-UX.
5132 case $host_cpu in
5133 hppa*64*|ia64*)
5134 # +Z the default
5135 ;;
5136 *)
5137 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5138 ;;
5139 esac
5140 ;;
5141
5142 *)
5143 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
5144 ;;
5145 esac
5146 else
5147 # PORTME Check for flag to pass linker flags through the system compiler.
5148 case $host_os in
5149 aix*)
5150 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5151 if test "$host_cpu" = ia64; then
5152 # AIX 5 now supports IA64 processor
5153 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5154 else
5155 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
5156 fi
5157 ;;
5158 darwin*)
5159 # PIC is the default on this platform
5160 # Common symbols not allowed in MH_DYLIB files
5161 case $cc_basename in
5162 xlc*)
5163 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
5164 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5165 ;;
5166 esac
5167 ;;
5168
5169 mingw* | pw32* | os2*)
5170 # This hack is so that the source file can tell whether it is being
5171 # built for inclusion in a dll (and should export symbols for example).
5172 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
5173 ;;
5174
5175 hpux9* | hpux10* | hpux11*)
5176 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5177 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5178 # not for PA HP-UX.
5179 case $host_cpu in
5180 hppa*64*|ia64*)
5181 # +Z the default
5182 ;;
5183 *)
5184 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
5185 ;;
5186 esac
5187 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5188 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
5189 ;;
5190
5191 irix5* | irix6* | nonstopux*)
5192 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5193 # PIC (with -KPIC) is the default.
5194 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5195 ;;
5196
5197 newsos6)
5198 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5199 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5200 ;;
5201
5202 linux* | k*bsd*-gnu)
5203 case $cc_basename in
5204 icc* | ecc*)
5205 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5206 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5207 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
5208 ;;
5209 pgcc* | pgf77* | pgf90* | pgf95*)
5210 # Portland Group compilers (*not* the Pentium gcc compiler,
5211 # which looks to be a dead project)
5212 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5213 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
5214 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5215 ;;
5216 ccc*)
5217 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5218 # All Alpha code is PIC.
5219 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5220 ;;
5221 esac
5222 ;;
5223
5224 osf3* | osf4* | osf5*)
5225 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5226 # All OSF/1 code is PIC.
5227 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
5228 ;;
5229
5230 solaris*)
5231 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5232 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5233 case $cc_basename in
5234 f77* | f90* | f95*)
5235 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
5236 *)
5237 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
5238 esac
5239 ;;
5240
5241 sunos4*)
5242 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
5243 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
5244 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5245 ;;
5246
5247 sysv4 | sysv4.2uw2* | sysv4.3*)
5248 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5249 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5250 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5251 ;;
5252
5253 sysv4*MP*)
5254 if test -d /usr/nec ;then
5255 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
5256 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5257 fi
5258 ;;
5259
5260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
5261 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5262 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
5263 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5264 ;;
5265
5266 unicos*)
5267 _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
5268 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5269 ;;
5270
5271 uts4*)
5272 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
5273 _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
5274 ;;
5275
5276 *)
5277 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
5278 ;;
5279 esac
5280 fi
5281 ])
5282 AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
5283
5284 #
5285 # Check to make sure the PIC flag actually works.
5286 #
5287 if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
5288 AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
5289 _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
5290 [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
5291 [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
5292 "" | " "*) ;;
5293 *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
5294 esac],
5295 [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5296 _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
5297 fi
5298 case $host_os in
5299 # For platforms which do not support PIC, -DPIC is meaningless:
5300 *djgpp*)
5301 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
5302 ;;
5303 *)
5304 _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
5305 ;;
5306 esac
5307
5308 #
5309 # Check to make sure the static flag actually works.
5310 #
5311 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\"
5312 AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
5313 _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
5314 $lt_tmp_static_flag,
5315 [],
5316 [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
5317 ])
5318
5319
5320 # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
5321 # ------------------------------------
5322 # See if the linker supports building shared libraries.
5323 AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
5324 [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
5325 ifelse([$1],[CXX],[
5326 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5327 case $host_os in
5328 aix4* | aix5*)
5329 # If we're using GNU nm, then we don't want the "-C" option.
5330 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5331 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5332 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5333 else
5334 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5335 fi
5336 ;;
5337 pw32*)
5338 _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
5339 ;;
5340 cygwin* | mingw*)
5341 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5342 ;;
5343 linux* | k*bsd*-gnu)
5344 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5345 ;;
5346 *)
5347 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5348 ;;
5349 esac
5350 ],[
5351 runpath_var=
5352 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
5353 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
5354 _LT_AC_TAGVAR(archive_cmds, $1)=
5355 _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
5356 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
5357 _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
5358 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5359 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5360 _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
5361 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5362 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
5363 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5364 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5365 _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
5366 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5367 _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
5368 _LT_AC_TAGVAR(hardcode_automatic, $1)=no
5369 _LT_AC_TAGVAR(module_cmds, $1)=
5370 _LT_AC_TAGVAR(module_expsym_cmds, $1)=
5371 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5372 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
5373 # include_expsyms should be a list of space-separated symbols to be *always*
5374 # included in the symbol list
5375 _LT_AC_TAGVAR(include_expsyms, $1)=
5376 # exclude_expsyms can be an extended regexp of symbols to exclude
5377 # it will be wrapped by ` (' and `)$', so one must not match beginning or
5378 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
5379 # as well as any symbol that contains `d'.
5380 _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
5381 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
5382 # platforms (ab)use it in PIC code, but their linkers get confused if
5383 # the symbol is explicitly referenced. Since portable code cannot
5384 # rely on this symbol name, it's probably fine to never include it in
5385 # preloaded symbol tables.
5386 extract_expsyms_cmds=
5387 # Just being paranoid about ensuring that cc_basename is set.
5388 _LT_CC_BASENAME([$compiler])
5389 case $host_os in
5390 cygwin* | mingw* | pw32*)
5391 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5392 # When not using gcc, we currently assume that we are using
5393 # Microsoft Visual C++.
5394 if test "$GCC" != yes; then
5395 with_gnu_ld=no
5396 fi
5397 ;;
5398 interix*)
5399 # we just hope/assume this is gcc and not c89 (= MSVC++)
5400 with_gnu_ld=yes
5401 ;;
5402 openbsd*)
5403 with_gnu_ld=no
5404 ;;
5405 esac
5406
5407 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
5408 if test "$with_gnu_ld" = yes; then
5409 # If archive_cmds runs LD, not CC, wlarc should be empty
5410 wlarc='${wl}'
5411
5412 # Set some defaults for GNU ld with shared library support. These
5413 # are reset later if shared libraries are not supported. Putting them
5414 # here allows them to be overridden if necessary.
5415 runpath_var=LD_RUN_PATH
5416 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
5417 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
5418 # ancient GNU ld didn't support --whole-archive et. al.
5419 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
5420 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
5421 else
5422 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5423 fi
5424 supports_anon_versioning=no
5425 case `$LD -v 2>/dev/null` in
5426 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5427 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5428 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5429 *\ 2.11.*) ;; # other 2.11 versions
5430 *) supports_anon_versioning=yes ;;
5431 esac
5432
5433 # See if GNU ld supports shared libraries.
5434 case $host_os in
5435 aix3* | aix4* | aix5*)
5436 # On AIX/PPC, the GNU linker is very broken
5437 if test "$host_cpu" != ia64; then
5438 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5439 cat <<EOF 1>&2
5440
5441 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
5442 *** to be unable to reliably create shared libraries on AIX.
5443 *** Therefore, libtool is disabling shared libraries support. If you
5444 *** really care for shared libraries, you may want to modify your PATH
5445 *** so that a non-GNU linker is found, and then restart.
5446
5447 EOF
5448 fi
5449 ;;
5450
5451 amigaos*)
5452 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5453 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5454 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5455
5456 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
5457 # that the semantics of dynamic libraries on AmigaOS, at least up
5458 # to version 4, is to share data among multiple programs linked
5459 # with the same dynamic library. Since this doesn't match the
5460 # behavior of shared libraries on other platforms, we can't use
5461 # them.
5462 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5463 ;;
5464
5465 beos*)
5466 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5467 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5469 # support --undefined. This deserves some investigation. FIXME
5470 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5471 else
5472 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5473 fi
5474 ;;
5475
5476 cygwin* | mingw* | pw32*)
5477 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5478 # as there is no search path for DLLs.
5479 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5480 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5481 _LT_AC_TAGVAR(always_export_symbols, $1)=no
5482 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5483 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
5484
5485 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
5486 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5487 # If the export-symbols file already is a .def file (1st line
5488 # is EXPORTS), use it as is; otherwise, prepend...
5489 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
5490 cp $export_symbols $output_objdir/$soname.def;
5491 else
5492 echo EXPORTS > $output_objdir/$soname.def;
5493 cat $export_symbols >> $output_objdir/$soname.def;
5494 fi~
5495 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5496 else
5497 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5498 fi
5499 ;;
5500
5501 interix3*)
5502 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5503 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5504 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
5505 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5507 # Instead, shared libraries are loaded at an image base (0x10000000 by
5508 # default) and relocated if they conflict, which is a slow very memory
5509 # consuming and fragmenting process. To avoid this, we pick a random,
5510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5512 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5513 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
5514 ;;
5515
5516 linux* | k*bsd*-gnu)
5517 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5518 tmp_addflag=
5519 case $cc_basename,$host_cpu in
5520 pgcc*) # Portland Group C compiler
5521 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5522 tmp_addflag=' $pic_flag'
5523 ;;
5524 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
5525 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
5526 tmp_addflag=' $pic_flag -Mnomain' ;;
5527 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5528 tmp_addflag=' -i_dynamic' ;;
5529 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5530 tmp_addflag=' -i_dynamic -nofor_main' ;;
5531 ifc* | ifort*) # Intel Fortran compiler
5532 tmp_addflag=' -nofor_main' ;;
5533 esac
5534 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5535
5536 if test $supports_anon_versioning = yes; then
5537 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
5538 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5539 $echo "local: *; };" >> $output_objdir/$libname.ver~
5540 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
5541 fi
5542 _LT_AC_TAGVAR(link_all_deplibs, $1)=no
5543 else
5544 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5545 fi
5546 ;;
5547
5548 netbsd* | netbsdelf*-gnu)
5549 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5550 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5551 wlarc=
5552 else
5553 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5554 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5555 fi
5556 ;;
5557
5558 solaris*)
5559 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
5560 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5561 cat <<EOF 1>&2
5562
5563 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5564 *** create shared libraries on Solaris systems. Therefore, libtool
5565 *** is disabling shared libraries support. We urge you to upgrade GNU
5566 *** binutils to release 2.9.1 or newer. Another option is to modify
5567 *** your PATH or compiler configuration so that the native linker is
5568 *** used, and then restart.
5569
5570 EOF
5571 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5572 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5573 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5574 else
5575 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5576 fi
5577 ;;
5578
5579 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5580 case `$LD -v 2>&1` in
5581 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5582 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5583 cat <<_LT_EOF 1>&2
5584
5585 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
5586 *** reliably create shared libraries on SCO systems. Therefore, libtool
5587 *** is disabling shared libraries support. We urge you to upgrade GNU
5588 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5589 *** your PATH or compiler configuration so that the native linker is
5590 *** used, and then restart.
5591
5592 _LT_EOF
5593 ;;
5594 *)
5595 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5596 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
5597 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
5598 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
5599 else
5600 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5601 fi
5602 ;;
5603 esac
5604 ;;
5605
5606 sunos4*)
5607 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5608 wlarc=
5609 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5610 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5611 ;;
5612
5613 *)
5614 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
5615 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
5616 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
5617 else
5618 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5619 fi
5620 ;;
5621 esac
5622
5623 if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
5624 runpath_var=
5625 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
5626 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
5627 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
5628 fi
5629 else
5630 # PORTME fill in a description of your system's linker (not GNU ld)
5631 case $host_os in
5632 aix3*)
5633 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5634 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5635 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
5636 # Note: this linker hardcodes the directories in LIBPATH if there
5637 # are no directories specified by -L.
5638 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5639 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
5640 # Neither direct hardcoding nor static linking is supported with a
5641 # broken collect2.
5642 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5643 fi
5644 ;;
5645
5646 aix4* | aix5*)
5647 if test "$host_cpu" = ia64; then
5648 # On IA64, the linker does run time linking by default, so we don't
5649 # have to do anything special.
5650 aix_use_runtimelinking=no
5651 exp_sym_flag='-Bexport'
5652 no_entry_flag=""
5653 else
5654 # If we're using GNU nm, then we don't want the "-C" option.
5655 # -C means demangle to AIX nm, but means don't demangle with GNU nm
5656 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
5657 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5658 else
5659 _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
5660 fi
5661 aix_use_runtimelinking=no
5662
5663 # Test if we are trying to use run time linking or normal
5664 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5665 # need to do runtime linking.
5666 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
5667 for ld_flag in $LDFLAGS; do
5668 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
5669 aix_use_runtimelinking=yes
5670 break
5671 fi
5672 done
5673 ;;
5674 esac
5675
5676 exp_sym_flag='-bexport'
5677 no_entry_flag='-bnoentry'
5678 fi
5679
5680 # When large executables or shared objects are built, AIX ld can
5681 # have problems creating the table of contents. If linking a library
5682 # or program results in "error TOC overflow" add -mminimal-toc to
5683 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5684 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5685
5686 _LT_AC_TAGVAR(archive_cmds, $1)=''
5687 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5688 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
5689 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5690
5691 if test "$GCC" = yes; then
5692 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5693 # We only want to do this on AIX 4.2 and lower, the check
5694 # below for broken collect2 doesn't work under 4.3+
5695 collect2name=`${CC} -print-prog-name=collect2`
5696 if test -f "$collect2name" && \
5697 strings "$collect2name" | grep resolve_lib_name >/dev/null
5698 then
5699 # We have reworked collect2
5700 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5701 else
5702 # We have old collect2
5703 _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
5704 # It fails to find uninstalled libraries when the uninstalled
5705 # path is not listed in the libpath. Setting hardcode_minus_L
5706 # to unsupported forces relinking
5707 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5708 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5709 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
5710 fi
5711 ;;
5712 esac
5713 shared_flag='-shared'
5714 if test "$aix_use_runtimelinking" = yes; then
5715 shared_flag="$shared_flag "'${wl}-G'
5716 fi
5717 else
5718 # not using gcc
5719 if test "$host_cpu" = ia64; then
5720 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5721 # chokes on -Wl,-G. The following line is correct:
5722 shared_flag='-G'
5723 else
5724 if test "$aix_use_runtimelinking" = yes; then
5725 shared_flag='${wl}-G'
5726 else
5727 shared_flag='${wl}-bM:SRE'
5728 fi
5729 fi
5730 fi
5731
5732 # It seems that -bexpall does not export symbols beginning with
5733 # underscore (_), so it is better to generate a list of symbols to export.
5734 _LT_AC_TAGVAR(always_export_symbols, $1)=yes
5735 if test "$aix_use_runtimelinking" = yes; then
5736 # Warning - without using the other runtime loading flags (-brtl),
5737 # -berok will link without error, but may produce a broken library.
5738 _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
5739 # Determine the default libpath from the value encoded in an empty executable.
5740 _LT_AC_SYS_LIBPATH_AIX
5741 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5742 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
5743 else
5744 if test "$host_cpu" = ia64; then
5745 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
5746 _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5747 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
5748 else
5749 # Determine the default libpath from the value encoded in an empty executable.
5750 _LT_AC_SYS_LIBPATH_AIX
5751 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
5752 # Warning - without using the other run time loading flags,
5753 # -berok will link without error, but may produce a broken library.
5754 _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
5755 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
5756 # Exported symbols can be pulled into shared objects from archives
5757 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5758 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
5759 # This is similar to how AIX traditionally builds its shared libraries.
5760 _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
5761 fi
5762 fi
5763 ;;
5764
5765 amigaos*)
5766 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
5767 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5768 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5769 # see comment about different semantics on the GNU ld section
5770 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5771 ;;
5772
5773 bsdi[[45]]*)
5774 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5775 ;;
5776
5777 cygwin* | mingw* | pw32*)
5778 # When not using gcc, we currently assume that we are using
5779 # Microsoft Visual C++.
5780 # hardcode_libdir_flag_spec is actually meaningless, as there is
5781 # no search path for DLLs.
5782 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5783 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
5784 # Tell ltmain to make .lib files, not .a files.
5785 libext=lib
5786 # Tell ltmain to make .dll files, not .so files.
5787 shrext_cmds=".dll"
5788 # FIXME: Setting linknames here is a bad hack.
5789 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
5790 # The linker will automatically build a .lib file if we build a DLL.
5791 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
5792 # FIXME: Should let the user specify the lib program.
5793 _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
5794 _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
5795 _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5796 ;;
5797
5798 darwin* | rhapsody*)
5799 case $host_os in
5800 rhapsody* | darwin1.[[012]])
5801 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
5802 ;;
5803 *) # Darwin 1.3 on
5804 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
5805 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5806 else
5807 case ${MACOSX_DEPLOYMENT_TARGET} in
5808 10.[[012]])
5809 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
5810 ;;
5811 10.*)
5812 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
5813 ;;
5814 esac
5815 fi
5816 ;;
5817 esac
5818 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
5819 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5820 _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
5821 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
5822 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
5823 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5824 if test "$GCC" = yes ; then
5825 output_verbose_link_cmd='echo'
5826 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
5827 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5828 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5829 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5830 _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}'
5831 else
5832 case $cc_basename in
5833 xlc*)
5834 output_verbose_link_cmd='echo'
5835 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
5836 _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
5837 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
5838 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
5839 _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}'
5840 ;;
5841 *)
5842 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5843 ;;
5844 esac
5845 fi
5846 ;;
5847
5848 dgux*)
5849 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5850 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5851 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5852 ;;
5853
5854 freebsd1*)
5855 _LT_AC_TAGVAR(ld_shlibs, $1)=no
5856 ;;
5857
5858 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5859 # support. Future versions do this automatically, but an explicit c++rt0.o
5860 # does not break anything, and helps significantly (at the cost of a little
5861 # extra space).
5862 freebsd2.2*)
5863 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5864 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5865 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5866 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5867 ;;
5868
5869 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5870 freebsd2*)
5871 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5872 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5873 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5874 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5875 ;;
5876
5877 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5878 freebsd* | dragonfly*)
5879 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
5880 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5881 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5882 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5883 ;;
5884
5885 hpux9*)
5886 if test "$GCC" = yes; then
5887 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5888 else
5889 _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
5890 fi
5891 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5892 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5893 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5894
5895 # hardcode_minus_L: Not really in the search PATH,
5896 # but as the default location of the library.
5897 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5898 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5899 ;;
5900
5901 hpux10*)
5902 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5903 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5904 else
5905 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5906 fi
5907 if test "$with_gnu_ld" = no; then
5908 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5909 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5910
5911 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5912 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5913
5914 # hardcode_minus_L: Not really in the search PATH,
5915 # but as the default location of the library.
5916 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5917 fi
5918 ;;
5919
5920 hpux11*)
5921 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
5922 case $host_cpu in
5923 hppa*64*)
5924 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5925 ;;
5926 ia64*)
5927 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5928 ;;
5929 *)
5930 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5931 ;;
5932 esac
5933 else
5934 case $host_cpu in
5935 hppa*64*)
5936 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
5937 ;;
5938 ia64*)
5939 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5940 ;;
5941 *)
5942 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5943 ;;
5944 esac
5945 fi
5946 if test "$with_gnu_ld" = no; then
5947 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
5948 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5949
5950 case $host_cpu in
5951 hppa*64*|ia64*)
5952 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
5953 _LT_AC_TAGVAR(hardcode_direct, $1)=no
5954 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5955 ;;
5956 *)
5957 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5958 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
5959
5960 # hardcode_minus_L: Not really in the search PATH,
5961 # but as the default location of the library.
5962 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
5963 ;;
5964 esac
5965 fi
5966 ;;
5967
5968 irix5* | irix6* | nonstopux*)
5969 if test "$GCC" = yes; then
5970 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
5971 else
5972 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
5973 _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
5974 fi
5975 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5976 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5977 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
5978 ;;
5979
5980 netbsd* | netbsdelf*-gnu)
5981 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
5982 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5983 else
5984 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5985 fi
5986 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5987 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5988 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5989 ;;
5990
5991 newsos6)
5992 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5993 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
5994 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
5995 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
5996 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
5997 ;;
5998
5999 openbsd*)
6000 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6001 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6002 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6003 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6004 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6005 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6006 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
6007 else
6008 case $host_os in
6009 openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
6010 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6011 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6012 ;;
6013 *)
6014 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6015 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
6016 ;;
6017 esac
6018 fi
6019 ;;
6020
6021 os2*)
6022 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6023 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6024 _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
6025 _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
6026 _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6027 ;;
6028
6029 osf3*)
6030 if test "$GCC" = yes; then
6031 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6032 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6033 else
6034 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6035 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6036 fi
6037 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6038 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6039 ;;
6040
6041 osf4* | osf5*) # as osf3* with the addition of -msym flag
6042 if test "$GCC" = yes; then
6043 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
6044 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
6045 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
6046 else
6047 _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
6048 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
6049 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6050 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
6051
6052 # Both c and cxx compiler support -rpath directly
6053 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
6054 fi
6055 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
6056 ;;
6057
6058 solaris*)
6059 _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
6060 if test "$GCC" = yes; then
6061 wlarc='${wl}'
6062 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6063 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6064 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6065 else
6066 wlarc=''
6067 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6068 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6069 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6070 fi
6071 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
6072 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6073 case $host_os in
6074 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
6075 *)
6076 # The compiler driver will combine linker options so we
6077 # cannot just pass the convience library names through
6078 # without $wl, iff we do not link with $LD.
6079 # Luckily, gcc supports the same syntax we need for Sun Studio.
6080 # Supported since Solaris 2.6 (maybe 2.5.1?)
6081 case $wlarc in
6082 '')
6083 _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
6084 *)
6085 _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' ;;
6086 esac ;;
6087 esac
6088 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6089 ;;
6090
6091 sunos4*)
6092 if test "x$host_vendor" = xsequent; then
6093 # Use $CC to link under sequent, because it throws in some extra .o
6094 # files that make .init and .fini sections work.
6095 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6096 else
6097 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6098 fi
6099 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6100 _LT_AC_TAGVAR(hardcode_direct, $1)=yes
6101 _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
6102 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6103 ;;
6104
6105 sysv4)
6106 case $host_vendor in
6107 sni)
6108 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6109 _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
6110 ;;
6111 siemens)
6112 ## LD is ld it makes a PLAMLIB
6113 ## CC just makes a GrossModule.
6114 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6115 _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
6116 _LT_AC_TAGVAR(hardcode_direct, $1)=no
6117 ;;
6118 motorola)
6119 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6120 _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
6121 ;;
6122 esac
6123 runpath_var='LD_RUN_PATH'
6124 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6125 ;;
6126
6127 sysv4.3*)
6128 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6129 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6130 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
6131 ;;
6132
6133 sysv4*MP*)
6134 if test -d /usr/nec; then
6135 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6136 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6137 runpath_var=LD_RUN_PATH
6138 hardcode_runpath_var=yes
6139 _LT_AC_TAGVAR(ld_shlibs, $1)=yes
6140 fi
6141 ;;
6142
6143 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*)
6144 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6145 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6146 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6147 runpath_var='LD_RUN_PATH'
6148
6149 if test "$GCC" = yes; then
6150 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6151 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6152 else
6153 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6154 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6155 fi
6156 ;;
6157
6158 sysv5* | sco3.2v5* | sco5v6*)
6159 # Note: We can NOT use -z defs as we might desire, because we do not
6160 # link with -lc, and that would cause any symbols used from libc to
6161 # always be unresolved, which means just about no library would
6162 # ever link correctly. If we're not using GNU ld we use -z text
6163 # though, which does catch some bad symbols but isn't as heavy-handed
6164 # as -z defs.
6165 _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
6166 _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
6167 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6168 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6169 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
6170 _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
6171 _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
6172 _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
6173 runpath_var='LD_RUN_PATH'
6174
6175 if test "$GCC" = yes; then
6176 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6177 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6178 else
6179 _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6180 _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
6181 fi
6182 ;;
6183
6184 uts4*)
6185 _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6186 _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6187 _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
6188 ;;
6189
6190 *)
6191 _LT_AC_TAGVAR(ld_shlibs, $1)=no
6192 ;;
6193 esac
6194 fi
6195 ])
6196 AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
6197 test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
6198
6199 #
6200 # Do we need to explicitly link libc?
6201 #
6202 case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
6203 x|xyes)
6204 # Assume -lc should be added
6205 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6206
6207 if test "$enable_shared" = yes && test "$GCC" = yes; then
6208 case $_LT_AC_TAGVAR(archive_cmds, $1) in
6209 *'~'*)
6210 # FIXME: we may have to deal with multi-command sequences.
6211 ;;
6212 '$CC '*)
6213 # Test whether the compiler implicitly links with -lc since on some
6214 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6215 # to ld, don't add -lc before -lgcc.
6216 AC_MSG_CHECKING([whether -lc should be explicitly linked in])
6217 $rm conftest*
6218 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6219
6220 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6221 soname=conftest
6222 lib=conftest
6223 libobjs=conftest.$ac_objext
6224 deplibs=
6225 wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
6226 pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
6227 compiler_flags=-v
6228 linker_flags=-v
6229 verstring=
6230 output_objdir=.
6231 libname=conftest
6232 lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
6233 _LT_AC_TAGVAR(allow_undefined_flag, $1)=
6234 if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
6235 then
6236 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
6237 else
6238 _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
6239 fi
6240 _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6241 else
6242 cat conftest.err 1>&5
6243 fi
6244 $rm conftest*
6245 AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
6246 ;;
6247 esac
6248 fi
6249 ;;
6250 esac
6251 ])# AC_LIBTOOL_PROG_LD_SHLIBS
6252
6253
6254 # _LT_AC_FILE_LTDLL_C
6255 # -------------------
6256 # Be careful that the start marker always follows a newline.
6257 AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
6258 # /* ltdll.c starts here */
6259 # #define WIN32_LEAN_AND_MEAN
6260 # #include <windows.h>
6261 # #undef WIN32_LEAN_AND_MEAN
6262 # #include <stdio.h>
6263 #
6264 # #ifndef __CYGWIN__
6265 # # ifdef __CYGWIN32__
6266 # # define __CYGWIN__ __CYGWIN32__
6267 # # endif
6268 # #endif
6269 #
6270 # #ifdef __cplusplus
6271 # extern "C" {
6272 # #endif
6273 # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
6274 # #ifdef __cplusplus
6275 # }
6276 # #endif
6277 #
6278 # #ifdef __CYGWIN__
6279 # #include <cygwin/cygwin_dll.h>
6280 # DECLARE_CYGWIN_DLL( DllMain );
6281 # #endif
6282 # HINSTANCE __hDllInstance_base;
6283 #
6284 # BOOL APIENTRY
6285 # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
6286 # {
6287 # __hDllInstance_base = hInst;
6288 # return TRUE;
6289 # }
6290 # /* ltdll.c ends here */
6291 ])# _LT_AC_FILE_LTDLL_C
6292
6293
6294 # _LT_AC_TAGVAR(VARNAME, [TAGNAME])
6295 # ---------------------------------
6296 AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
6297
6298
6299 # old names
6300 AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
6301 AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
6302 AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
6303 AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
6304 AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
6305 AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
6306 AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
6307
6308 # This is just to silence aclocal about the macro not being used
6309 ifelse([AC_DISABLE_FAST_INSTALL])
6310
6311 AC_DEFUN([LT_AC_PROG_GCJ],
6312 [AC_CHECK_TOOL(GCJ, gcj, no)
6313 test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
6314 AC_SUBST(GCJFLAGS)
6315 ])
6316
6317 AC_DEFUN([LT_AC_PROG_RC],
6318 [AC_CHECK_TOOL(RC, windres, no)
6319 ])
6320
6321 # NOTE: This macro has been submitted for inclusion into #
6322 # GNU Autoconf as AC_PROG_SED. When it is available in #
6323 # a released version of Autoconf we should remove this #
6324 # macro and use it instead. #
6325 # LT_AC_PROG_SED
6326 # --------------
6327 # Check for a fully-functional sed program, that truncates
6328 # as few characters as possible. Prefer GNU sed if found.
6329 AC_DEFUN([LT_AC_PROG_SED],
6330 [AC_MSG_CHECKING([for a sed that does not truncate output])
6331 AC_CACHE_VAL(lt_cv_path_SED,
6332 [# Loop through the user's path and test for sed and gsed.
6333 # Then use that list of sed's as ones to test for truncation.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335 for as_dir in $PATH
6336 do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
6339 for lt_ac_prog in sed gsed; do
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
6342 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
6343 fi
6344 done
6345 done
6346 done
6347 lt_ac_max=0
6348 lt_ac_count=0
6349 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
6350 # along with /bin/sed that truncates output.
6351 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
6352 test ! -f $lt_ac_sed && continue
6353 cat /dev/null > conftest.in
6354 lt_ac_count=0
6355 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
6356 # Check for GNU sed and select it if it is found.
6357 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
6358 lt_cv_path_SED=$lt_ac_sed
6359 break
6360 fi
6361 while true; do
6362 cat conftest.in conftest.in >conftest.tmp
6363 mv conftest.tmp conftest.in
6364 cp conftest.in conftest.nl
6365 echo >>conftest.nl
6366 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
6367 cmp -s conftest.out conftest.nl || break
6368 # 10000 chars as input seems more than enough
6369 test $lt_ac_count -gt 10 && break
6370 lt_ac_count=`expr $lt_ac_count + 1`
6371 if test $lt_ac_count -gt $lt_ac_max; then
6372 lt_ac_max=$lt_ac_count
6373 lt_cv_path_SED=$lt_ac_sed
6374 fi
6375 done
6376 done
6377 ])
6378 SED=$lt_cv_path_SED
6379 AC_MSG_RESULT([$SED])
6380 ])
6381
6382 # Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
6383 #
6384 # This file is free software; the Free Software Foundation
6385 # gives unlimited permission to copy and/or distribute it,
6386 # with or without modifications, as long as this notice is preserved.
6387
6388 # AM_AUTOMAKE_VERSION(VERSION)
6389 # ----------------------------
6390 # Automake X.Y traces this macro to ensure aclocal.m4 has been
6391 # generated from the m4 files accompanying Automake X.Y.
6392 AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
6393
6394 # AM_SET_CURRENT_AUTOMAKE_VERSION
6395 # -------------------------------
6396 # Call AM_AUTOMAKE_VERSION so it can be traced.
6397 # This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
6398 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
6399 [AM_AUTOMAKE_VERSION([1.9.6])])
6400
6401 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
6402
6403 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6404 #
6405 # This file is free software; the Free Software Foundation
6406 # gives unlimited permission to copy and/or distribute it,
6407 # with or without modifications, as long as this notice is preserved.
6408
6409 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
6410 # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to
6411 # `$srcdir', `$srcdir/..', or `$srcdir/../..'.
6412 #
6413 # Of course, Automake must honor this variable whenever it calls a
6414 # tool from the auxiliary directory. The problem is that $srcdir (and
6415 # therefore $ac_aux_dir as well) can be either absolute or relative,
6416 # depending on how configure is run. This is pretty annoying, since
6417 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
6418 # source directory, any form will work fine, but in subdirectories a
6419 # relative path needs to be adjusted first.
6420 #
6421 # $ac_aux_dir/missing
6422 # fails when called from a subdirectory if $ac_aux_dir is relative
6423 # $top_srcdir/$ac_aux_dir/missing
6424 # fails if $ac_aux_dir is absolute,
6425 # fails when called from a subdirectory in a VPATH build with
6426 # a relative $ac_aux_dir
6427 #
6428 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
6429 # are both prefixed by $srcdir. In an in-source build this is usually
6430 # harmless because $srcdir is `.', but things will broke when you
6431 # start a VPATH build or use an absolute $srcdir.
6432 #
6433 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
6434 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
6435 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
6436 # and then we would define $MISSING as
6437 # MISSING="\${SHELL} $am_aux_dir/missing"
6438 # This will work as long as MISSING is not called from configure, because
6439 # unfortunately $(top_srcdir) has no meaning in configure.
6440 # However there are other variables, like CC, which are often used in
6441 # configure, and could therefore not use this "fixed" $ac_aux_dir.
6442 #
6443 # Another solution, used here, is to always expand $ac_aux_dir to an
6444 # absolute PATH. The drawback is that using absolute paths prevent a
6445 # configured tree to be moved without reconfiguration.
6446
6447 AC_DEFUN([AM_AUX_DIR_EXPAND],
6448 [dnl Rely on autoconf to set up CDPATH properly.
6449 AC_PREREQ([2.50])dnl
6450 # expand $ac_aux_dir to an absolute path
6451 am_aux_dir=`cd $ac_aux_dir && pwd`
6452 ])
6453
6454 # AM_CONDITIONAL -*- Autoconf -*-
6455
6456 # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
6457 # Free Software Foundation, Inc.
6458 #
6459 # This file is free software; the Free Software Foundation
6460 # gives unlimited permission to copy and/or distribute it,
6461 # with or without modifications, as long as this notice is preserved.
6462
6463 # serial 7
6464
6465 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
6466 # -------------------------------------
6467 # Define a conditional.
6468 AC_DEFUN([AM_CONDITIONAL],
6469 [AC_PREREQ(2.52)dnl
6470 ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
6471 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
6472 AC_SUBST([$1_TRUE])
6473 AC_SUBST([$1_FALSE])
6474 if $2; then
6475 $1_TRUE=
6476 $1_FALSE='#'
6477 else
6478 $1_TRUE='#'
6479 $1_FALSE=
6480 fi
6481 AC_CONFIG_COMMANDS_PRE(
6482 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
6483 AC_MSG_ERROR([[conditional "$1" was never defined.
6484 Usually this means the macro was only invoked conditionally.]])
6485 fi])])
6486
6487
6488 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6489 # Free Software Foundation, Inc.
6490 #
6491 # This file is free software; the Free Software Foundation
6492 # gives unlimited permission to copy and/or distribute it,
6493 # with or without modifications, as long as this notice is preserved.
6494
6495 # serial 8
6496
6497 # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
6498 # written in clear, in which case automake, when reading aclocal.m4,
6499 # will think it sees a *use*, and therefore will trigger all it's
6500 # C support machinery. Also note that it means that autoscan, seeing
6501 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
6502
6503
6504 # _AM_DEPENDENCIES(NAME)
6505 # ----------------------
6506 # See how the compiler implements dependency checking.
6507 # NAME is "CC", "CXX", "GCJ", or "OBJC".
6508 # We try a few techniques and use that to set a single cache variable.
6509 #
6510 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
6511 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
6512 # dependency, and given that the user is not expected to run this macro,
6513 # just rely on AC_PROG_CC.
6514 AC_DEFUN([_AM_DEPENDENCIES],
6515 [AC_REQUIRE([AM_SET_DEPDIR])dnl
6516 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
6517 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
6518 AC_REQUIRE([AM_DEP_TRACK])dnl
6519
6520 ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
6521 [$1], CXX, [depcc="$CXX" am_compiler_list=],
6522 [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
6523 [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
6524 [depcc="$$1" am_compiler_list=])
6525
6526 AC_CACHE_CHECK([dependency style of $depcc],
6527 [am_cv_$1_dependencies_compiler_type],
6528 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6529 # We make a subdir and do the tests there. Otherwise we can end up
6530 # making bogus files that we don't know about and never remove. For
6531 # instance it was reported that on HP-UX the gcc test will end up
6532 # making a dummy file named `D' -- because `-MD' means `put the output
6533 # in D'.
6534 mkdir conftest.dir
6535 # Copy depcomp to subdir because otherwise we won't find it if we're
6536 # using a relative directory.
6537 cp "$am_depcomp" conftest.dir
6538 cd conftest.dir
6539 # We will build objects and dependencies in a subdirectory because
6540 # it helps to detect inapplicable dependency modes. For instance
6541 # both Tru64's cc and ICC support -MD to output dependencies as a
6542 # side effect of compilation, but ICC will put the dependencies in
6543 # the current directory while Tru64 will put them in the object
6544 # directory.
6545 mkdir sub
6546
6547 am_cv_$1_dependencies_compiler_type=none
6548 if test "$am_compiler_list" = ""; then
6549 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
6550 fi
6551 for depmode in $am_compiler_list; do
6552 # Setup a source with many dependencies, because some compilers
6553 # like to wrap large dependency lists on column 80 (with \), and
6554 # we should not choose a depcomp mode which is confused by this.
6555 #
6556 # We need to recreate these files for each test, as the compiler may
6557 # overwrite some of them when testing with obscure command lines.
6558 # This happens at least with the AIX C compiler.
6559 : > sub/conftest.c
6560 for i in 1 2 3 4 5 6; do
6561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6562 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6563 # Solaris 8's {/usr,}/bin/sh.
6564 touch sub/conftst$i.h
6565 done
6566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6567
6568 case $depmode in
6569 nosideeffect)
6570 # after this tag, mechanisms are not by side-effect, so they'll
6571 # only be used when explicitly requested
6572 if test "x$enable_dependency_tracking" = xyes; then
6573 continue
6574 else
6575 break
6576 fi
6577 ;;
6578 none) break ;;
6579 esac
6580 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6581 # mode. It turns out that the SunPro C++ compiler does not properly
6582 # handle `-M -o', and we need to detect this.
6583 if depmode=$depmode \
6584 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6585 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6586 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6587 >/dev/null 2>conftest.err &&
6588 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6589 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6590 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6591 # icc doesn't choke on unknown options, it will just issue warnings
6592 # or remarks (even with -Werror). So we grep stderr for any message
6593 # that says an option was ignored or not supported.
6594 # When given -MP, icc 7.0 and 7.1 complain thusly:
6595 # icc: Command line warning: ignoring option '-M'; no argument required
6596 # The diagnosis changed in icc 8.0:
6597 # icc: Command line remark: option '-MP' not supported
6598 if (grep 'ignoring option' conftest.err ||
6599 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6600 am_cv_$1_dependencies_compiler_type=$depmode
6601 break
6602 fi
6603 fi
6604 done
6605
6606 cd ..
6607 rm -rf conftest.dir
6608 else
6609 am_cv_$1_dependencies_compiler_type=none
6610 fi
6611 ])
6612 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
6613 AM_CONDITIONAL([am__fastdep$1], [
6614 test "x$enable_dependency_tracking" != xno \
6615 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
6616 ])
6617
6618
6619 # AM_SET_DEPDIR
6620 # -------------
6621 # Choose a directory name for dependency files.
6622 # This macro is AC_REQUIREd in _AM_DEPENDENCIES
6623 AC_DEFUN([AM_SET_DEPDIR],
6624 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6625 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
6626 ])
6627
6628
6629 # AM_DEP_TRACK
6630 # ------------
6631 AC_DEFUN([AM_DEP_TRACK],
6632 [AC_ARG_ENABLE(dependency-tracking,
6633 [ --disable-dependency-tracking speeds up one-time build
6634 --enable-dependency-tracking do not reject slow dependency extractors])
6635 if test "x$enable_dependency_tracking" != xno; then
6636 am_depcomp="$ac_aux_dir/depcomp"
6637 AMDEPBACKSLASH='\'
6638 fi
6639 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
6640 AC_SUBST([AMDEPBACKSLASH])
6641 ])
6642
6643 # Generate code to set up dependency tracking. -*- Autoconf -*-
6644
6645 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
6646 # Free Software Foundation, Inc.
6647 #
6648 # This file is free software; the Free Software Foundation
6649 # gives unlimited permission to copy and/or distribute it,
6650 # with or without modifications, as long as this notice is preserved.
6651
6652 #serial 3
6653
6654 # _AM_OUTPUT_DEPENDENCY_COMMANDS
6655 # ------------------------------
6656 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
6657 [for mf in $CONFIG_FILES; do
6658 # Strip MF so we end up with the name of the file.
6659 mf=`echo "$mf" | sed -e 's/:.*$//'`
6660 # Check whether this is an Automake generated Makefile or not.
6661 # We used to match only the files named `Makefile.in', but
6662 # some people rename them; so instead we look at the file content.
6663 # Grep'ing the first line is not enough: some people post-process
6664 # each Makefile.in and add a new line on top of each file to say so.
6665 # So let's grep whole file.
6666 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
6667 dirpart=`AS_DIRNAME("$mf")`
6668 else
6669 continue
6670 fi
6671 # Extract the definition of DEPDIR, am__include, and am__quote
6672 # from the Makefile without running `make'.
6673 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6674 test -z "$DEPDIR" && continue
6675 am__include=`sed -n 's/^am__include = //p' < "$mf"`
6676 test -z "am__include" && continue
6677 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6678 # When using ansi2knr, U may be empty or an underscore; expand it
6679 U=`sed -n 's/^U = //p' < "$mf"`
6680 # Find all dependency output files, they are included files with
6681 # $(DEPDIR) in their names. We invoke sed twice because it is the
6682 # simplest approach to changing $(DEPDIR) to its actual value in the
6683 # expansion.
6684 for file in `sed -n "
6685 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6686 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6687 # Make sure the directory exists.
6688 test -f "$dirpart/$file" && continue
6689 fdir=`AS_DIRNAME(["$file"])`
6690 AS_MKDIR_P([$dirpart/$fdir])
6691 # echo "creating $dirpart/$file"
6692 echo '# dummy' > "$dirpart/$file"
6693 done
6694 done
6695 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
6696
6697
6698 # AM_OUTPUT_DEPENDENCY_COMMANDS
6699 # -----------------------------
6700 # This macro should only be invoked once -- use via AC_REQUIRE.
6701 #
6702 # This code is only required when automatic dependency tracking
6703 # is enabled. FIXME. This creates each `.P' file that we will
6704 # need in order to bootstrap the dependency handling code.
6705 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
6706 [AC_CONFIG_COMMANDS([depfiles],
6707 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
6708 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
6709 ])
6710
6711 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
6712 # Free Software Foundation, Inc.
6713 #
6714 # This file is free software; the Free Software Foundation
6715 # gives unlimited permission to copy and/or distribute it,
6716 # with or without modifications, as long as this notice is preserved.
6717
6718 # serial 8
6719
6720 # AM_CONFIG_HEADER is obsolete. It has been replaced by AC_CONFIG_HEADERS.
6721 AU_DEFUN([AM_CONFIG_HEADER], [AC_CONFIG_HEADERS($@)])
6722
6723 # Do all the work for Automake. -*- Autoconf -*-
6724
6725 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
6726 # Free Software Foundation, Inc.
6727 #
6728 # This file is free software; the Free Software Foundation
6729 # gives unlimited permission to copy and/or distribute it,
6730 # with or without modifications, as long as this notice is preserved.
6731
6732 # serial 12
6733
6734 # This macro actually does too much. Some checks are only needed if
6735 # your package does certain things. But this isn't really a big deal.
6736
6737 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
6738 # AM_INIT_AUTOMAKE([OPTIONS])
6739 # -----------------------------------------------
6740 # The call with PACKAGE and VERSION arguments is the old style
6741 # call (pre autoconf-2.50), which is being phased out. PACKAGE
6742 # and VERSION should now be passed to AC_INIT and removed from
6743 # the call to AM_INIT_AUTOMAKE.
6744 # We support both call styles for the transition. After
6745 # the next Automake release, Autoconf can make the AC_INIT
6746 # arguments mandatory, and then we can depend on a new Autoconf
6747 # release and drop the old call support.
6748 AC_DEFUN([AM_INIT_AUTOMAKE],
6749 [AC_PREREQ([2.58])dnl
6750 dnl Autoconf wants to disallow AM_ names. We explicitly allow
6751 dnl the ones we care about.
6752 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
6753 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
6754 AC_REQUIRE([AC_PROG_INSTALL])dnl
6755 # test to see if srcdir already configured
6756 if test "`cd $srcdir && pwd`" != "`pwd`" &&
6757 test -f $srcdir/config.status; then
6758 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
6759 fi
6760
6761 # test whether we have cygpath
6762 if test -z "$CYGPATH_W"; then
6763 if (cygpath --version) >/dev/null 2>/dev/null; then
6764 CYGPATH_W='cygpath -w'
6765 else
6766 CYGPATH_W=echo
6767 fi
6768 fi
6769 AC_SUBST([CYGPATH_W])
6770
6771 # Define the identity of the package.
6772 dnl Distinguish between old-style and new-style calls.
6773 m4_ifval([$2],
6774 [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
6775 AC_SUBST([PACKAGE], [$1])dnl
6776 AC_SUBST([VERSION], [$2])],
6777 [_AM_SET_OPTIONS([$1])dnl
6778 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
6779 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
6780
6781 _AM_IF_OPTION([no-define],,
6782 [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
6783 AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl
6784
6785 # Some tools Automake needs.
6786 AC_REQUIRE([AM_SANITY_CHECK])dnl
6787 AC_REQUIRE([AC_ARG_PROGRAM])dnl
6788 AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version})
6789 AM_MISSING_PROG(AUTOCONF, autoconf)
6790 AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
6791 AM_MISSING_PROG(AUTOHEADER, autoheader)
6792 AM_MISSING_PROG(MAKEINFO, makeinfo)
6793 AM_PROG_INSTALL_SH
6794 AM_PROG_INSTALL_STRIP
6795 AC_REQUIRE([AM_PROG_MKDIR_P])dnl
6796 # We need awk for the "check" target. The system "awk" is bad on
6797 # some platforms.
6798 AC_REQUIRE([AC_PROG_AWK])dnl
6799 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
6800 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
6801 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
6802 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
6803 [_AM_PROG_TAR([v7])])])
6804 _AM_IF_OPTION([no-dependencies],,
6805 [AC_PROVIDE_IFELSE([AC_PROG_CC],
6806 [_AM_DEPENDENCIES(CC)],
6807 [define([AC_PROG_CC],
6808 defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
6809 AC_PROVIDE_IFELSE([AC_PROG_CXX],
6810 [_AM_DEPENDENCIES(CXX)],
6811 [define([AC_PROG_CXX],
6812 defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
6813 ])
6814 ])
6815
6816
6817 # When config.status generates a header, we must update the stamp-h file.
6818 # This file resides in the same directory as the config header
6819 # that is generated. The stamp files are numbered to have different names.
6820
6821 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
6822 # loop where config.status creates the headers, so we can generate
6823 # our stamp files there.
6824 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
6825 [# Compute $1's index in $config_headers.
6826 _am_stamp_count=1
6827 for _am_header in $config_headers :; do
6828 case $_am_header in
6829 $1 | $1:* )
6830 break ;;
6831 * )
6832 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6833 esac
6834 done
6835 echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
6836
6837 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
6838 #
6839 # This file is free software; the Free Software Foundation
6840 # gives unlimited permission to copy and/or distribute it,
6841 # with or without modifications, as long as this notice is preserved.
6842
6843 # AM_PROG_INSTALL_SH
6844 # ------------------
6845 # Define $install_sh.
6846 AC_DEFUN([AM_PROG_INSTALL_SH],
6847 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6848 install_sh=${install_sh-"$am_aux_dir/install-sh"}
6849 AC_SUBST(install_sh)])
6850
6851 # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
6852 #
6853 # This file is free software; the Free Software Foundation
6854 # gives unlimited permission to copy and/or distribute it,
6855 # with or without modifications, as long as this notice is preserved.
6856
6857 # serial 2
6858
6859 # Check whether the underlying file-system supports filenames
6860 # with a leading dot. For instance MS-DOS doesn't.
6861 AC_DEFUN([AM_SET_LEADING_DOT],
6862 [rm -rf .tst 2>/dev/null
6863 mkdir .tst 2>/dev/null
6864 if test -d .tst; then
6865 am__leading_dot=.
6866 else
6867 am__leading_dot=_
6868 fi
6869 rmdir .tst 2>/dev/null
6870 AC_SUBST([am__leading_dot])])
6871
6872 # Check to see how 'make' treats includes. -*- Autoconf -*-
6873
6874 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
6875 #
6876 # This file is free software; the Free Software Foundation
6877 # gives unlimited permission to copy and/or distribute it,
6878 # with or without modifications, as long as this notice is preserved.
6879
6880 # serial 3
6881
6882 # AM_MAKE_INCLUDE()
6883 # -----------------
6884 # Check to see how make treats includes.
6885 AC_DEFUN([AM_MAKE_INCLUDE],
6886 [am_make=${MAKE-make}
6887 cat > confinc << 'END'
6888 am__doit:
6889 @echo done
6890 .PHONY: am__doit
6891 END
6892 # If we don't find an include directive, just comment out the code.
6893 AC_MSG_CHECKING([for style of include used by $am_make])
6894 am__include="#"
6895 am__quote=
6896 _am_result=none
6897 # First try GNU make style include.
6898 echo "include confinc" > confmf
6899 # We grep out `Entering directory' and `Leaving directory'
6900 # messages which can occur if `w' ends up in MAKEFLAGS.
6901 # In particular we don't look at `^make:' because GNU make might
6902 # be invoked under some other name (usually "gmake"), in which
6903 # case it prints its new name instead of `make'.
6904 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
6905 am__include=include
6906 am__quote=
6907 _am_result=GNU
6908 fi
6909 # Now try BSD make style include.
6910 if test "$am__include" = "#"; then
6911 echo '.include "confinc"' > confmf
6912 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
6913 am__include=.include
6914 am__quote="\""
6915 _am_result=BSD
6916 fi
6917 fi
6918 AC_SUBST([am__include])
6919 AC_SUBST([am__quote])
6920 AC_MSG_RESULT([$_am_result])
6921 rm -f confinc confmf
6922 ])
6923
6924 # Copyright (C) 1999, 2000, 2001, 2003, 2005 Free Software Foundation, Inc.
6925 #
6926 # This file is free software; the Free Software Foundation
6927 # gives unlimited permission to copy and/or distribute it,
6928 # with or without modifications, as long as this notice is preserved.
6929
6930 # serial 3
6931
6932 # AM_PROG_CC_C_O
6933 # --------------
6934 # Like AC_PROG_CC_C_O, but changed for automake.
6935 AC_DEFUN([AM_PROG_CC_C_O],
6936 [AC_REQUIRE([AC_PROG_CC_C_O])dnl
6937 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6938 # FIXME: we rely on the cache variable name because
6939 # there is no other way.
6940 set dummy $CC
6941 ac_cc=`echo $[2] | sed ['s/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/']`
6942 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
6943 # Losing compiler, so override with the script.
6944 # FIXME: It is wrong to rewrite CC.
6945 # But if we don't then we get into trouble of one sort or another.
6946 # A longer-term fix would be to have automake use am__CC in this case,
6947 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6948 CC="$am_aux_dir/compile $CC"
6949 fi
6950 ])
6951
6952 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
6953
6954 # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
6955 # Free Software Foundation, Inc.
6956 #
6957 # This file is free software; the Free Software Foundation
6958 # gives unlimited permission to copy and/or distribute it,
6959 # with or without modifications, as long as this notice is preserved.
6960
6961 # serial 4
6962
6963 # AM_MISSING_PROG(NAME, PROGRAM)
6964 # ------------------------------
6965 AC_DEFUN([AM_MISSING_PROG],
6966 [AC_REQUIRE([AM_MISSING_HAS_RUN])
6967 $1=${$1-"${am_missing_run}$2"}
6968 AC_SUBST($1)])
6969
6970
6971 # AM_MISSING_HAS_RUN
6972 # ------------------
6973 # Define MISSING if not defined so far and test if it supports --run.
6974 # If it does, set am_missing_run to use it, otherwise, to nothing.
6975 AC_DEFUN([AM_MISSING_HAS_RUN],
6976 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
6977 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
6978 # Use eval to expand $SHELL
6979 if eval "$MISSING --run true"; then
6980 am_missing_run="$MISSING --run "
6981 else
6982 am_missing_run=
6983 AC_MSG_WARN([`missing' script is too old or missing])
6984 fi
6985 ])
6986
6987 # Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
6988 #
6989 # This file is free software; the Free Software Foundation
6990 # gives unlimited permission to copy and/or distribute it,
6991 # with or without modifications, as long as this notice is preserved.
6992
6993 # AM_PROG_MKDIR_P
6994 # ---------------
6995 # Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
6996 #
6997 # Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
6998 # created by `make install' are always world readable, even if the
6999 # installer happens to have an overly restrictive umask (e.g. 077).
7000 # This was a mistake. There are at least two reasons why we must not
7001 # use `-m 0755':
7002 # - it causes special bits like SGID to be ignored,
7003 # - it may be too restrictive (some setups expect 775 directories).
7004 #
7005 # Do not use -m 0755 and let people choose whatever they expect by
7006 # setting umask.
7007 #
7008 # We cannot accept any implementation of `mkdir' that recognizes `-p'.
7009 # Some implementations (such as Solaris 8's) are not thread-safe: if a
7010 # parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
7011 # concurrently, both version can detect that a/ is missing, but only
7012 # one can create it and the other will error out. Consequently we
7013 # restrict ourselves to GNU make (using the --version option ensures
7014 # this.)
7015 AC_DEFUN([AM_PROG_MKDIR_P],
7016 [if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
7017 # We used to keeping the `.' as first argument, in order to
7018 # allow $(mkdir_p) to be used without argument. As in
7019 # $(mkdir_p) $(somedir)
7020 # where $(somedir) is conditionally defined. However this is wrong
7021 # for two reasons:
7022 # 1. if the package is installed by a user who cannot write `.'
7023 # make install will fail,
7024 # 2. the above comment should most certainly read
7025 # $(mkdir_p) $(DESTDIR)$(somedir)
7026 # so it does not work when $(somedir) is undefined and
7027 # $(DESTDIR) is not.
7028 # To support the latter case, we have to write
7029 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
7030 # so the `.' trick is pointless.
7031 mkdir_p='mkdir -p --'
7032 else
7033 # On NextStep and OpenStep, the `mkdir' command does not
7034 # recognize any option. It will interpret all options as
7035 # directories to create, and then abort because `.' already
7036 # exists.
7037 for d in ./-p ./--version;
7038 do
7039 test -d $d && rmdir $d
7040 done
7041 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
7042 if test -f "$ac_aux_dir/mkinstalldirs"; then
7043 mkdir_p='$(mkinstalldirs)'
7044 else
7045 mkdir_p='$(install_sh) -d'
7046 fi
7047 fi
7048 AC_SUBST([mkdir_p])])
7049
7050 # Helper functions for option handling. -*- Autoconf -*-
7051
7052 # Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
7053 #
7054 # This file is free software; the Free Software Foundation
7055 # gives unlimited permission to copy and/or distribute it,
7056 # with or without modifications, as long as this notice is preserved.
7057
7058 # serial 3
7059
7060 # _AM_MANGLE_OPTION(NAME)
7061 # -----------------------
7062 AC_DEFUN([_AM_MANGLE_OPTION],
7063 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
7064
7065 # _AM_SET_OPTION(NAME)
7066 # ------------------------------
7067 # Set option NAME. Presently that only means defining a flag for this option.
7068 AC_DEFUN([_AM_SET_OPTION],
7069 [m4_define(_AM_MANGLE_OPTION([$1]), 1)])
7070
7071 # _AM_SET_OPTIONS(OPTIONS)
7072 # ----------------------------------
7073 # OPTIONS is a space-separated list of Automake options.
7074 AC_DEFUN([_AM_SET_OPTIONS],
7075 [AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
7076
7077 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
7078 # -------------------------------------------
7079 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
7080 AC_DEFUN([_AM_IF_OPTION],
7081 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
7082
7083 # Check to make sure that the build environment is sane. -*- Autoconf -*-
7084
7085 # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
7086 # Free Software Foundation, Inc.
7087 #
7088 # This file is free software; the Free Software Foundation
7089 # gives unlimited permission to copy and/or distribute it,
7090 # with or without modifications, as long as this notice is preserved.
7091
7092 # serial 4
7093
7094 # AM_SANITY_CHECK
7095 # ---------------
7096 AC_DEFUN([AM_SANITY_CHECK],
7097 [AC_MSG_CHECKING([whether build environment is sane])
7098 # Just in case
7099 sleep 1
7100 echo timestamp > conftest.file
7101 # Do `set' in a subshell so we don't clobber the current shell's
7102 # arguments. Must try -L first in case configure is actually a
7103 # symlink; some systems play weird games with the mod time of symlinks
7104 # (eg FreeBSD returns the mod time of the symlink's containing
7105 # directory).
7106 if (
7107 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
7108 if test "$[*]" = "X"; then
7109 # -L didn't work.
7110 set X `ls -t $srcdir/configure conftest.file`
7111 fi
7112 rm -f conftest.file
7113 if test "$[*]" != "X $srcdir/configure conftest.file" \
7114 && test "$[*]" != "X conftest.file $srcdir/configure"; then
7115
7116 # If neither matched, then we have a broken ls. This can happen
7117 # if, for instance, CONFIG_SHELL is bash and it inherits a
7118 # broken ls alias from the environment. This has actually
7119 # happened. Such a system could not be considered "sane".
7120 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
7121 alias in your environment])
7122 fi
7123
7124 test "$[2]" = conftest.file
7125 )
7126 then
7127 # Ok.
7128 :
7129 else
7130 AC_MSG_ERROR([newly created file is older than distributed files!
7131 Check your system clock])
7132 fi
7133 AC_MSG_RESULT(yes)])
7134
7135 # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
7136 #
7137 # This file is free software; the Free Software Foundation
7138 # gives unlimited permission to copy and/or distribute it,
7139 # with or without modifications, as long as this notice is preserved.
7140
7141 # AM_PROG_INSTALL_STRIP
7142 # ---------------------
7143 # One issue with vendor `install' (even GNU) is that you can't
7144 # specify the program used to strip binaries. This is especially
7145 # annoying in cross-compiling environments, where the build's strip
7146 # is unlikely to handle the host's binaries.
7147 # Fortunately install-sh will honor a STRIPPROG variable, so we
7148 # always use install-sh in `make install-strip', and initialize
7149 # STRIPPROG with the value of the STRIP variable (set by the user).
7150 AC_DEFUN([AM_PROG_INSTALL_STRIP],
7151 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
7152 # Installed binaries are usually stripped using `strip' when the user
7153 # run `make install-strip'. However `strip' might not be the right
7154 # tool to use in cross-compilation environments, therefore Automake
7155 # will honor the `STRIP' environment variable to overrule this program.
7156 dnl Don't test for $cross_compiling = yes, because it might be `maybe'.
7157 if test "$cross_compiling" != no; then
7158 AC_CHECK_TOOL([STRIP], [strip], :)
7159 fi
7160 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
7161 AC_SUBST([INSTALL_STRIP_PROGRAM])])
7162
7163 # Check how to create a tarball. -*- Autoconf -*-
7164
7165 # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
7166 #
7167 # This file is free software; the Free Software Foundation
7168 # gives unlimited permission to copy and/or distribute it,
7169 # with or without modifications, as long as this notice is preserved.
7170
7171 # serial 2
7172
7173 # _AM_PROG_TAR(FORMAT)
7174 # --------------------
7175 # Check how to create a tarball in format FORMAT.
7176 # FORMAT should be one of `v7', `ustar', or `pax'.
7177 #
7178 # Substitute a variable $(am__tar) that is a command
7179 # writing to stdout a FORMAT-tarball containing the directory
7180 # $tardir.
7181 # tardir=directory && $(am__tar) > result.tar
7182 #
7183 # Substitute a variable $(am__untar) that extract such
7184 # a tarball read from stdin.
7185 # $(am__untar) < result.tar
7186 AC_DEFUN([_AM_PROG_TAR],
7187 [# Always define AMTAR for backward compatibility.
7188 AM_MISSING_PROG([AMTAR], [tar])
7189 m4_if([$1], [v7],
7190 [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'],
7191 [m4_case([$1], [ustar],, [pax],,
7192 [m4_fatal([Unknown tar format])])
7193 AC_MSG_CHECKING([how to create a $1 tar archive])
7194 # Loop over all known methods to create a tar archive until one works.
7195 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
7196 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
7197 # Do not fold the above two line into one, because Tru64 sh and
7198 # Solaris sh will not grok spaces in the rhs of `-'.
7199 for _am_tool in $_am_tools
7200 do
7201 case $_am_tool in
7202 gnutar)
7203 for _am_tar in tar gnutar gtar;
7204 do
7205 AM_RUN_LOG([$_am_tar --version]) && break
7206 done
7207 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
7208 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
7209 am__untar="$_am_tar -xf -"
7210 ;;
7211 plaintar)
7212 # Must skip GNU tar: if it does not support --format= it doesn't create
7213 # ustar tarball either.
7214 (tar --version) >/dev/null 2>&1 && continue
7215 am__tar='tar chf - "$$tardir"'
7216 am__tar_='tar chf - "$tardir"'
7217 am__untar='tar xf -'
7218 ;;
7219 pax)
7220 am__tar='pax -L -x $1 -w "$$tardir"'
7221 am__tar_='pax -L -x $1 -w "$tardir"'
7222 am__untar='pax -r'
7223 ;;
7224 cpio)
7225 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
7226 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
7227 am__untar='cpio -i -H $1 -d'
7228 ;;
7229 none)
7230 am__tar=false
7231 am__tar_=false
7232 am__untar=false
7233 ;;
7234 esac
7235
7236 # If the value was cached, stop now. We just wanted to have am__tar
7237 # and am__untar set.
7238 test -n "${am_cv_prog_tar_$1}" && break
7239
7240 # tar/untar a dummy directory, and stop if the command works
7241 rm -rf conftest.dir
7242 mkdir conftest.dir
7243 echo GrepMe > conftest.dir/file
7244 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
7245 rm -rf conftest.dir
7246 if test -s conftest.tar; then
7247 AM_RUN_LOG([$am__untar <conftest.tar])
7248 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
7249 fi
7250 done
7251 rm -rf conftest.dir
7252
7253 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
7254 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
7255 AC_SUBST([am__tar])
7256 AC_SUBST([am__untar])
7257 ]) # _AM_PROG_TAR
7258
(No changes)
(No changes)
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = common
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/configure.in
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 SOURCES =
47 DIST_SOURCES =
48 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
49 html-recursive info-recursive install-data-recursive \
50 install-exec-recursive install-info-recursive \
51 install-recursive installcheck-recursive installdirs-recursive \
52 pdf-recursive ps-recursive uninstall-info-recursive \
53 uninstall-recursive
54 ETAGS = etags
55 CTAGS = ctags
56 DIST_SUBDIRS = $(SUBDIRS)
57 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
58 ACLOCAL = @ACLOCAL@
59 AMDEP_FALSE = @AMDEP_FALSE@
60 AMDEP_TRUE = @AMDEP_TRUE@
61 AMTAR = @AMTAR@
62 AR = @AR@
63 AUTOCONF = @AUTOCONF@
64 AUTOHEADER = @AUTOHEADER@
65 AUTOMAKE = @AUTOMAKE@
66 AWK = @AWK@
67 CC = @CC@
68 CCDEPMODE = @CCDEPMODE@
69 CFLAGS = @CFLAGS@
70 CPP = @CPP@
71 CPPFLAGS = @CPPFLAGS@
72 CXX = @CXX@
73 CXXCPP = @CXXCPP@
74 CXXDEPMODE = @CXXDEPMODE@
75 CXXFLAGS = @CXXFLAGS@
76 CYGPATH_W = @CYGPATH_W@
77 DEFS = @DEFS@
78 DEPDIR = @DEPDIR@
79 ECHO = @ECHO@
80 ECHO_C = @ECHO_C@
81 ECHO_N = @ECHO_N@
82 ECHO_T = @ECHO_T@
83 EGREP = @EGREP@
84 EXEEXT = @EXEEXT@
85 F77 = @F77@
86 FFLAGS = @FFLAGS@
87 GREP = @GREP@
88 GTK_CONFIG = @GTK_CONFIG@
89 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
90 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
91 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
92 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
93 INSTALL_DATA = @INSTALL_DATA@
94 INSTALL_PROGRAM = @INSTALL_PROGRAM@
95 INSTALL_SCRIPT = @INSTALL_SCRIPT@
96 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
97 LDFLAGS = @LDFLAGS@
98 LIBOBJS = @LIBOBJS@
99 LIBS = @LIBS@
100 LIBTOOL = @LIBTOOL@
101 LIBTOOL_DEPS = @LIBTOOL_DEPS@
102 LN_S = @LN_S@
103 LTLIBOBJS = @LTLIBOBJS@
104 MAKEINFO = @MAKEINFO@
105 MP4FF_LIBS = @MP4FF_LIBS@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 RANLIB = @RANLIB@
115 RPMBUILD = @RPMBUILD@
116 SET_MAKE = @SET_MAKE@
117 SHELL = @SHELL@
118 STRIP = @STRIP@
119 VERSION = @VERSION@
120 XMMS_CONFIG = @XMMS_CONFIG@
121 ac_ct_CC = @ac_ct_CC@
122 ac_ct_CXX = @ac_ct_CXX@
123 ac_ct_F77 = @ac_ct_F77@
124 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
125 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
126 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
127 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
128 am__include = @am__include@
129 am__leading_dot = @am__leading_dot@
130 am__quote = @am__quote@
131 am__tar = @am__tar@
132 am__untar = @am__untar@
133 bindir = @bindir@
134 build = @build@
135 build_alias = @build_alias@
136 build_cpu = @build_cpu@
137 build_os = @build_os@
138 build_vendor = @build_vendor@
139 datadir = @datadir@
140 datarootdir = @datarootdir@
141 docdir = @docdir@
142 dvidir = @dvidir@
143 exec_prefix = @exec_prefix@
144 external_mp4v2 = @external_mp4v2@
145 host = @host@
146 host_alias = @host_alias@
147 host_cpu = @host_cpu@
148 host_os = @host_os@
149 host_vendor = @host_vendor@
150 htmldir = @htmldir@
151 includedir = @includedir@
152 infodir = @infodir@
153 install_sh = @install_sh@
154 libdir = @libdir@
155 libexecdir = @libexecdir@
156 localedir = @localedir@
157 localstatedir = @localstatedir@
158 mandir = @mandir@
159 mkdir_p = @mkdir_p@
160 oldincludedir = @oldincludedir@
161 pdfdir = @pdfdir@
162 prefix = @prefix@
163 program_transform_name = @program_transform_name@
164 psdir = @psdir@
165 sbindir = @sbindir@
166 sharedstatedir = @sharedstatedir@
167 sysconfdir = @sysconfdir@
168 target_alias = @target_alias@
169 SUBDIRS = mp4ff
170 all: all-recursive
171
172 .SUFFIXES:
173 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
174 @for dep in $?; do \
175 case '$(am__configure_deps)' in \
176 *$$dep*) \
177 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
178 && exit 0; \
179 exit 1;; \
180 esac; \
181 done; \
182 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu common/Makefile'; \
183 cd $(top_srcdir) && \
184 $(AUTOMAKE) --gnu common/Makefile
185 .PRECIOUS: Makefile
186 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
187 @case '$?' in \
188 *config.status*) \
189 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
190 *) \
191 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
192 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
193 esac;
194
195 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
196 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
197
198 $(top_srcdir)/configure: $(am__configure_deps)
199 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
200 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
201 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
202
203 mostlyclean-libtool:
204 -rm -f *.lo
205
206 clean-libtool:
207 -rm -rf .libs _libs
208
209 distclean-libtool:
210 -rm -f libtool
211 uninstall-info-am:
212
213 # This directory's subdirectories are mostly independent; you can cd
214 # into them and run `make' without going through this Makefile.
215 # To change the values of `make' variables: instead of editing Makefiles,
216 # (1) if the variable is set in `config.status', edit `config.status'
217 # (which will cause the Makefiles to be regenerated when you run `make');
218 # (2) otherwise, pass the desired values on the `make' command line.
219 $(RECURSIVE_TARGETS):
220 @failcom='exit 1'; \
221 for f in x $$MAKEFLAGS; do \
222 case $$f in \
223 *=* | --[!k]*);; \
224 *k*) failcom='fail=yes';; \
225 esac; \
226 done; \
227 dot_seen=no; \
228 target=`echo $@ | sed s/-recursive//`; \
229 list='$(SUBDIRS)'; for subdir in $$list; do \
230 echo "Making $$target in $$subdir"; \
231 if test "$$subdir" = "."; then \
232 dot_seen=yes; \
233 local_target="$$target-am"; \
234 else \
235 local_target="$$target"; \
236 fi; \
237 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
238 || eval $$failcom; \
239 done; \
240 if test "$$dot_seen" = "no"; then \
241 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
242 fi; test -z "$$fail"
243
244 mostlyclean-recursive clean-recursive distclean-recursive \
245 maintainer-clean-recursive:
246 @failcom='exit 1'; \
247 for f in x $$MAKEFLAGS; do \
248 case $$f in \
249 *=* | --[!k]*);; \
250 *k*) failcom='fail=yes';; \
251 esac; \
252 done; \
253 dot_seen=no; \
254 case "$@" in \
255 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
256 *) list='$(SUBDIRS)' ;; \
257 esac; \
258 rev=''; for subdir in $$list; do \
259 if test "$$subdir" = "."; then :; else \
260 rev="$$subdir $$rev"; \
261 fi; \
262 done; \
263 rev="$$rev ."; \
264 target=`echo $@ | sed s/-recursive//`; \
265 for subdir in $$rev; do \
266 echo "Making $$target in $$subdir"; \
267 if test "$$subdir" = "."; then \
268 local_target="$$target-am"; \
269 else \
270 local_target="$$target"; \
271 fi; \
272 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
273 || eval $$failcom; \
274 done && test -z "$$fail"
275 tags-recursive:
276 list='$(SUBDIRS)'; for subdir in $$list; do \
277 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
278 done
279 ctags-recursive:
280 list='$(SUBDIRS)'; for subdir in $$list; do \
281 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
282 done
283
284 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
285 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
286 unique=`for i in $$list; do \
287 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
288 done | \
289 $(AWK) ' { files[$$0] = 1; } \
290 END { for (i in files) print i; }'`; \
291 mkid -fID $$unique
292 tags: TAGS
293
294 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
295 $(TAGS_FILES) $(LISP)
296 tags=; \
297 here=`pwd`; \
298 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
299 include_option=--etags-include; \
300 empty_fix=.; \
301 else \
302 include_option=--include; \
303 empty_fix=; \
304 fi; \
305 list='$(SUBDIRS)'; for subdir in $$list; do \
306 if test "$$subdir" = .; then :; else \
307 test ! -f $$subdir/TAGS || \
308 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
309 fi; \
310 done; \
311 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
312 unique=`for i in $$list; do \
313 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
314 done | \
315 $(AWK) ' { files[$$0] = 1; } \
316 END { for (i in files) print i; }'`; \
317 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
318 test -n "$$unique" || unique=$$empty_fix; \
319 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
320 $$tags $$unique; \
321 fi
322 ctags: CTAGS
323 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
324 $(TAGS_FILES) $(LISP)
325 tags=; \
326 here=`pwd`; \
327 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
328 unique=`for i in $$list; do \
329 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
330 done | \
331 $(AWK) ' { files[$$0] = 1; } \
332 END { for (i in files) print i; }'`; \
333 test -z "$(CTAGS_ARGS)$$tags$$unique" \
334 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
335 $$tags $$unique
336
337 GTAGS:
338 here=`$(am__cd) $(top_builddir) && pwd` \
339 && cd $(top_srcdir) \
340 && gtags -i $(GTAGS_ARGS) $$here
341
342 distclean-tags:
343 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
344
345 distdir: $(DISTFILES)
346 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
347 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
348 list='$(DISTFILES)'; for file in $$list; do \
349 case $$file in \
350 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
351 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
352 esac; \
353 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
354 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
355 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
356 dir="/$$dir"; \
357 $(mkdir_p) "$(distdir)$$dir"; \
358 else \
359 dir=''; \
360 fi; \
361 if test -d $$d/$$file; then \
362 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
363 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
364 fi; \
365 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
366 else \
367 test -f $(distdir)/$$file \
368 || cp -p $$d/$$file $(distdir)/$$file \
369 || exit 1; \
370 fi; \
371 done
372 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
373 if test "$$subdir" = .; then :; else \
374 test -d "$(distdir)/$$subdir" \
375 || $(mkdir_p) "$(distdir)/$$subdir" \
376 || exit 1; \
377 distdir=`$(am__cd) $(distdir) && pwd`; \
378 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
379 (cd $$subdir && \
380 $(MAKE) $(AM_MAKEFLAGS) \
381 top_distdir="$$top_distdir" \
382 distdir="$$distdir/$$subdir" \
383 distdir) \
384 || exit 1; \
385 fi; \
386 done
387 check-am: all-am
388 check: check-recursive
389 all-am: Makefile
390 installdirs: installdirs-recursive
391 installdirs-am:
392 install: install-recursive
393 install-exec: install-exec-recursive
394 install-data: install-data-recursive
395 uninstall: uninstall-recursive
396
397 install-am: all-am
398 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
399
400 installcheck: installcheck-recursive
401 install-strip:
402 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
403 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
404 `test -z '$(STRIP)' || \
405 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
406 mostlyclean-generic:
407
408 clean-generic:
409
410 distclean-generic:
411 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
412
413 maintainer-clean-generic:
414 @echo "This command is intended for maintainers to use"
415 @echo "it deletes files that may require special tools to rebuild."
416 clean: clean-recursive
417
418 clean-am: clean-generic clean-libtool mostlyclean-am
419
420 distclean: distclean-recursive
421 -rm -f Makefile
422 distclean-am: clean-am distclean-generic distclean-libtool \
423 distclean-tags
424
425 dvi: dvi-recursive
426
427 dvi-am:
428
429 html: html-recursive
430
431 info: info-recursive
432
433 info-am:
434
435 install-data-am:
436
437 install-exec-am:
438
439 install-info: install-info-recursive
440
441 install-man:
442
443 installcheck-am:
444
445 maintainer-clean: maintainer-clean-recursive
446 -rm -f Makefile
447 maintainer-clean-am: distclean-am maintainer-clean-generic
448
449 mostlyclean: mostlyclean-recursive
450
451 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
452
453 pdf: pdf-recursive
454
455 pdf-am:
456
457 ps: ps-recursive
458
459 ps-am:
460
461 uninstall-am: uninstall-info-am
462
463 uninstall-info: uninstall-info-recursive
464
465 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
466 clean clean-generic clean-libtool clean-recursive ctags \
467 ctags-recursive distclean distclean-generic distclean-libtool \
468 distclean-recursive distclean-tags distdir dvi dvi-am html \
469 html-am info info-am install install-am install-data \
470 install-data-am install-exec install-exec-am install-info \
471 install-info-am install-man install-strip installcheck \
472 installcheck-am installdirs installdirs-am maintainer-clean \
473 maintainer-clean-generic maintainer-clean-recursive \
474 mostlyclean mostlyclean-generic mostlyclean-libtool \
475 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
476 uninstall uninstall-am uninstall-info-am
477
478 # Tell versions [3.59,3.63) of GNU make to not export all variables.
479 # Otherwise a system limit (for SysV at least) may be exceeded.
480 .NOEXPORT:
(No changes)
+0
-110
common/faad/aacinfo.dsp less more
0 # Microsoft Developer Studio Project File - Name="aacinfo" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Console Application" 0x0103
5
6 CFG=aacinfo - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "aacinfo.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "aacinfo.mak" CFG="aacinfo - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "aacinfo - Win32 Release" (based on "Win32 (x86) Console Application")
20 !MESSAGE "aacinfo - Win32 Debug" (based on "Win32 (x86) Console Application")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=xicl6.exe
28 RSC=rc.exe
29
30 !IF "$(CFG)" == "aacinfo - Win32 Release"
31
32 # PROP BASE Use_MFC 0
33 # PROP BASE Use_Debug_Libraries 0
34 # PROP BASE Output_Dir "Release"
35 # PROP BASE Intermediate_Dir "Release"
36 # PROP BASE Target_Dir ""
37 # PROP Use_MFC 0
38 # PROP Use_Debug_Libraries 0
39 # PROP Output_Dir "Release"
40 # PROP Intermediate_Dir "Release"
41 # PROP Ignore_Export_Lib 0
42 # PROP Target_Dir ""
43 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
44 # ADD CPP /nologo /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "TEST" /YX /FD /c
45 # ADD BASE RSC /l 0x413 /d "NDEBUG"
46 # ADD RSC /l 0x413 /d "NDEBUG"
47 BSC32=bscmake.exe
48 # ADD BASE BSC32 /nologo
49 # ADD BSC32 /nologo
50 LINK32=xilink6.exe
51 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
52 # ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
53
54 !ELSEIF "$(CFG)" == "aacinfo - Win32 Debug"
55
56 # PROP BASE Use_MFC 0
57 # PROP BASE Use_Debug_Libraries 1
58 # PROP BASE Output_Dir "Debug"
59 # PROP BASE Intermediate_Dir "Debug"
60 # PROP BASE Target_Dir ""
61 # PROP Use_MFC 0
62 # PROP Use_Debug_Libraries 1
63 # PROP Output_Dir "Debug"
64 # PROP Intermediate_Dir "Debug"
65 # PROP Ignore_Export_Lib 0
66 # PROP Target_Dir ""
67 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
68 # ADD CPP /nologo /W3 /Gm /GX /ZI /Od /D "_DEBUG" /D "WIN32" /D "_CONSOLE" /D "_MBCS" /D "TEST" /YX /FD /GZ /c
69 # ADD BASE RSC /l 0x413 /d "_DEBUG"
70 # ADD RSC /l 0x413 /d "_DEBUG"
71 BSC32=bscmake.exe
72 # ADD BASE BSC32 /nologo
73 # ADD BSC32 /nologo
74 LINK32=xilink6.exe
75 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
76 # ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
77
78 !ENDIF
79
80 # Begin Target
81
82 # Name "aacinfo - Win32 Release"
83 # Name "aacinfo - Win32 Debug"
84 # Begin Group "Source Files"
85
86 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
87 # Begin Source File
88
89 SOURCE=.\aacinfo.c
90 # End Source File
91 # Begin Source File
92
93 SOURCE=.\filestream.c
94 # End Source File
95 # End Group
96 # Begin Group "Header Files"
97
98 # PROP Default_Filter "h;hpp;hxx;hm;inl"
99 # Begin Source File
100
101 SOURCE=.\aacinfo.h
102 # End Source File
103 # Begin Source File
104
105 SOURCE=.\filestream.h
106 # End Source File
107 # End Group
108 # End Target
109 # End Project
+0
-29
common/faad/aacinfo.dsw less more
0 Microsoft Developer Studio Workspace File, Format Version 6.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "aacinfo"=.\aacinfo.dsp - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 }}}
14
15 ###############################################################################
16
17 Global:
18
19 Package=<5>
20 {{{
21 }}}
22
23 Package=<3>
24 {{{
25 }}}
26
27 ###############################################################################
28
(No changes)
0 Microsoft Visual Studio Solution File, Format Version 7.00
0 Microsoft Visual Studio Solution File, Format Version 9.00
1 # Visual Studio 2005
12 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "aacinfo", "aacinfo.vcproj", "{FE985E4D-79DB-4DD3-BFED-824B4677A161}"
23 EndProject
34 Global
4 GlobalSection(SolutionConfiguration) = preSolution
5 ConfigName.0 = Debug
6 ConfigName.1 = Release
5 GlobalSection(SolutionConfigurationPlatforms) = preSolution
6 Debug|Win32 = Debug|Win32
7 Release|Win32 = Release|Win32
78 EndGlobalSection
8 GlobalSection(ProjectDependencies) = postSolution
9 GlobalSection(ProjectConfigurationPlatforms) = postSolution
10 {FE985E4D-79DB-4DD3-BFED-824B4677A161}.Debug|Win32.ActiveCfg = Debug|Win32
11 {FE985E4D-79DB-4DD3-BFED-824B4677A161}.Debug|Win32.Build.0 = Debug|Win32
12 {FE985E4D-79DB-4DD3-BFED-824B4677A161}.Release|Win32.ActiveCfg = Release|Win32
13 {FE985E4D-79DB-4DD3-BFED-824B4677A161}.Release|Win32.Build.0 = Release|Win32
914 EndGlobalSection
10 GlobalSection(ProjectConfiguration) = postSolution
11 {FE985E4D-79DB-4DD3-BFED-824B4677A161}.Debug.ActiveCfg = Debug|Win32
12 {FE985E4D-79DB-4DD3-BFED-824B4677A161}.Debug.Build.0 = Debug|Win32
13 {FE985E4D-79DB-4DD3-BFED-824B4677A161}.Release.ActiveCfg = Release|Win32
14 {FE985E4D-79DB-4DD3-BFED-824B4677A161}.Release.Build.0 = Release|Win32
15 EndGlobalSection
16 GlobalSection(ExtensibilityGlobals) = postSolution
17 EndGlobalSection
18 GlobalSection(ExtensibilityAddIns) = postSolution
15 GlobalSection(SolutionProperties) = preSolution
16 HideSolutionNode = FALSE
1917 EndGlobalSection
2018 EndGlobal
0 <?xml version="1.0" encoding = "Windows-1252"?>
0 <?xml version="1.0" encoding="Windows-1252"?>
11 <VisualStudioProject
22 ProjectType="Visual C++"
3 Version="7.00"
3 Version="8.00"
44 Name="aacinfo"
5 SccProjectName=""
6 SccLocalPath="">
5 ProjectGUID="{FE985E4D-79DB-4DD3-BFED-824B4677A161}"
6 >
77 <Platforms>
88 <Platform
9 Name="Win32"/>
9 Name="Win32"
10 />
1011 </Platforms>
12 <ToolFiles>
13 </ToolFiles>
1114 <Configurations>
1215 <Configuration
1316 Name="Debug|Win32"
1417 OutputDirectory=".\Debug"
1518 IntermediateDirectory=".\Debug"
1619 ConfigurationType="1"
20 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
1721 UseOfMFC="0"
18 ATLMinimizesCRunTimeLibraryUsage="FALSE"
19 CharacterSet="2">
22 ATLMinimizesCRunTimeLibraryUsage="false"
23 CharacterSet="2"
24 >
25 <Tool
26 Name="VCPreBuildEventTool"
27 />
28 <Tool
29 Name="VCCustomBuildTool"
30 />
31 <Tool
32 Name="VCXMLDataGeneratorTool"
33 />
34 <Tool
35 Name="VCWebServiceProxyGeneratorTool"
36 />
37 <Tool
38 Name="VCMIDLTool"
39 TypeLibraryName=".\Debug/aacinfo.tlb"
40 />
2041 <Tool
2142 Name="VCCLCompilerTool"
2243 Optimization="0"
2344 PreprocessorDefinitions="_DEBUG,WIN32,_CONSOLE,TEST"
2445 BasicRuntimeChecks="3"
25 RuntimeLibrary="5"
26 UsePrecompiledHeader="2"
46 RuntimeLibrary="1"
47 UsePrecompiledHeader="0"
2748 PrecompiledHeaderFile=".\Debug/aacinfo.pch"
2849 AssemblerListingLocation=".\Debug/"
2950 ObjectFile=".\Debug/"
3051 ProgramDataBaseFileName=".\Debug/"
3152 WarningLevel="3"
32 SuppressStartupBanner="TRUE"
33 DebugInformationFormat="4"/>
34 <Tool
35 Name="VCCustomBuildTool"/>
53 SuppressStartupBanner="true"
54 DebugInformationFormat="4"
55 />
56 <Tool
57 Name="VCManagedResourceCompilerTool"
58 />
59 <Tool
60 Name="VCResourceCompilerTool"
61 PreprocessorDefinitions="_DEBUG"
62 Culture="1043"
63 />
64 <Tool
65 Name="VCPreLinkEventTool"
66 />
3667 <Tool
3768 Name="VCLinkerTool"
3869 AdditionalOptions="/MACHINE:I386"
3970 AdditionalDependencies="ws2_32.lib odbc32.lib odbccp32.lib"
4071 OutputFile=".\Debug/aacinfo.exe"
4172 LinkIncremental="2"
42 SuppressStartupBanner="TRUE"
43 GenerateDebugInformation="TRUE"
73 SuppressStartupBanner="true"
74 GenerateDebugInformation="true"
4475 ProgramDatabaseFile=".\Debug/aacinfo.pdb"
45 SubSystem="1"/>
46 <Tool
47 Name="VCMIDLTool"
48 TypeLibraryName=".\Debug/aacinfo.tlb"/>
49 <Tool
50 Name="VCPostBuildEventTool"/>
51 <Tool
52 Name="VCPreBuildEventTool"/>
53 <Tool
54 Name="VCPreLinkEventTool"/>
55 <Tool
56 Name="VCResourceCompilerTool"
57 PreprocessorDefinitions="_DEBUG"
58 Culture="1043"/>
59 <Tool
60 Name="VCWebServiceProxyGeneratorTool"/>
61 <Tool
62 Name="VCWebDeploymentTool"/>
76 SubSystem="1"
77 />
78 <Tool
79 Name="VCALinkTool"
80 />
81 <Tool
82 Name="VCManifestTool"
83 />
84 <Tool
85 Name="VCXDCMakeTool"
86 />
87 <Tool
88 Name="VCBscMakeTool"
89 />
90 <Tool
91 Name="VCFxCopTool"
92 />
93 <Tool
94 Name="VCAppVerifierTool"
95 />
96 <Tool
97 Name="VCWebDeploymentTool"
98 />
99 <Tool
100 Name="VCPostBuildEventTool"
101 />
63102 </Configuration>
64103 <Configuration
65104 Name="Release|Win32"
66105 OutputDirectory=".\Release"
67106 IntermediateDirectory=".\Release"
68107 ConfigurationType="1"
108 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
69109 UseOfMFC="0"
70 ATLMinimizesCRunTimeLibraryUsage="FALSE"
71 CharacterSet="2">
110 ATLMinimizesCRunTimeLibraryUsage="false"
111 CharacterSet="2"
112 >
113 <Tool
114 Name="VCPreBuildEventTool"
115 />
116 <Tool
117 Name="VCCustomBuildTool"
118 />
119 <Tool
120 Name="VCXMLDataGeneratorTool"
121 />
122 <Tool
123 Name="VCWebServiceProxyGeneratorTool"
124 />
125 <Tool
126 Name="VCMIDLTool"
127 TypeLibraryName=".\Release/aacinfo.tlb"
128 />
72129 <Tool
73130 Name="VCCLCompilerTool"
74131 InlineFunctionExpansion="1"
75132 PreprocessorDefinitions="NDEBUG,WIN32,_CONSOLE,TEST"
76 StringPooling="TRUE"
77 RuntimeLibrary="4"
78 EnableFunctionLevelLinking="TRUE"
79 UsePrecompiledHeader="2"
133 StringPooling="true"
134 RuntimeLibrary="0"
135 EnableFunctionLevelLinking="true"
136 UsePrecompiledHeader="0"
80137 PrecompiledHeaderFile=".\Release/aacinfo.pch"
81138 AssemblerListingLocation=".\Release/"
82139 ObjectFile=".\Release/"
83140 ProgramDataBaseFileName=".\Release/"
84141 WarningLevel="3"
85 SuppressStartupBanner="TRUE"/>
86 <Tool
87 Name="VCCustomBuildTool"/>
142 SuppressStartupBanner="true"
143 />
144 <Tool
145 Name="VCManagedResourceCompilerTool"
146 />
147 <Tool
148 Name="VCResourceCompilerTool"
149 PreprocessorDefinitions="NDEBUG"
150 Culture="1043"
151 />
152 <Tool
153 Name="VCPreLinkEventTool"
154 />
88155 <Tool
89156 Name="VCLinkerTool"
90157 AdditionalOptions="/MACHINE:I386"
91158 AdditionalDependencies="ws2_32.lib odbc32.lib odbccp32.lib"
92159 OutputFile=".\Release/aacinfo.exe"
93160 LinkIncremental="1"
94 SuppressStartupBanner="TRUE"
161 SuppressStartupBanner="true"
95162 ProgramDatabaseFile=".\Release/aacinfo.pdb"
96 SubSystem="1"/>
97 <Tool
98 Name="VCMIDLTool"
99 TypeLibraryName=".\Release/aacinfo.tlb"/>
100 <Tool
101 Name="VCPostBuildEventTool"/>
102 <Tool
103 Name="VCPreBuildEventTool"/>
104 <Tool
105 Name="VCPreLinkEventTool"/>
106 <Tool
107 Name="VCResourceCompilerTool"
108 PreprocessorDefinitions="NDEBUG"
109 Culture="1043"/>
110 <Tool
111 Name="VCWebServiceProxyGeneratorTool"/>
112 <Tool
113 Name="VCWebDeploymentTool"/>
163 SubSystem="1"
164 />
165 <Tool
166 Name="VCALinkTool"
167 />
168 <Tool
169 Name="VCManifestTool"
170 />
171 <Tool
172 Name="VCXDCMakeTool"
173 />
174 <Tool
175 Name="VCBscMakeTool"
176 />
177 <Tool
178 Name="VCFxCopTool"
179 />
180 <Tool
181 Name="VCAppVerifierTool"
182 />
183 <Tool
184 Name="VCWebDeploymentTool"
185 />
186 <Tool
187 Name="VCPostBuildEventTool"
188 />
114189 </Configuration>
115190 </Configurations>
191 <References>
192 </References>
116193 <Files>
117194 <Filter
118195 Name="Source Files"
119 Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
120 <File
121 RelativePath=".\aacinfo.c">
122 </File>
123 <File
124 RelativePath=".\filestream.c">
196 Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
197 >
198 <File
199 RelativePath=".\aacinfo.c"
200 >
201 </File>
202 <File
203 RelativePath=".\filestream.c"
204 >
125205 </File>
126206 </Filter>
127207 <Filter
128208 Name="Header Files"
129 Filter="h;hpp;hxx;hm;inl">
130 <File
131 RelativePath=".\aacinfo.h">
132 </File>
133 <File
134 RelativePath=".\filestream.h">
209 Filter="h;hpp;hxx;hm;inl"
210 >
211 <File
212 RelativePath=".\aacinfo.h"
213 >
214 </File>
215 <File
216 RelativePath=".\filestream.h"
217 >
135218 </File>
136219 </Filter>
137220 </Files>
(No changes)
(No changes)
0 noinst_LTLIBRARIES = libmp4ff.la
0 lib_LIBRARIES = libmp4ff.a
1 include_HEADERS = mp4ff.h mp4ffint.h
12
2 libmp4ff_la_CFLAGS = -DUSE_TAGGING=1
3 libmp4ff_a_CFLAGS = -DUSE_TAGGING=1
34
4 libmp4ff_la_SOURCES = mp4ff.c mp4atom.c mp4meta.c mp4sample.c mp4util.c \
5 mp4tagupdate.c mp4ff.h mp4ffint.h mp4ff_int_types.h \
6 drms.h drms.c drmstables.h
7
5 libmp4ff_a_SOURCES = mp4ff.c mp4atom.c mp4meta.c mp4sample.c mp4util.c \
6 mp4tagupdate.c mp4ff.h mp4ffint.h mp4ff_int_types.h
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = ../..
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 build_triplet = @build@
38 host_triplet = @host@
39 subdir = common/mp4ff
40 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
41 $(srcdir)/Makefile.in
42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/config.h
48 CONFIG_CLEAN_FILES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
56 libLIBRARIES_INSTALL = $(INSTALL_DATA)
57 LIBRARIES = $(lib_LIBRARIES)
58 ARFLAGS = cru
59 libmp4ff_a_AR = $(AR) $(ARFLAGS)
60 libmp4ff_a_LIBADD =
61 am_libmp4ff_a_OBJECTS = libmp4ff_a-mp4ff.$(OBJEXT) \
62 libmp4ff_a-mp4atom.$(OBJEXT) libmp4ff_a-mp4meta.$(OBJEXT) \
63 libmp4ff_a-mp4sample.$(OBJEXT) libmp4ff_a-mp4util.$(OBJEXT) \
64 libmp4ff_a-mp4tagupdate.$(OBJEXT)
65 libmp4ff_a_OBJECTS = $(am_libmp4ff_a_OBJECTS)
66 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
67 depcomp = $(SHELL) $(top_srcdir)/depcomp
68 am__depfiles_maybe = depfiles
69 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
70 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
71 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
72 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
73 $(AM_CFLAGS) $(CFLAGS)
74 CCLD = $(CC)
75 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
76 $(AM_LDFLAGS) $(LDFLAGS) -o $@
77 SOURCES = $(libmp4ff_a_SOURCES)
78 DIST_SOURCES = $(libmp4ff_a_SOURCES)
79 includeHEADERS_INSTALL = $(INSTALL_HEADER)
80 HEADERS = $(include_HEADERS)
81 ETAGS = etags
82 CTAGS = ctags
83 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
84 ACLOCAL = @ACLOCAL@
85 AMDEP_FALSE = @AMDEP_FALSE@
86 AMDEP_TRUE = @AMDEP_TRUE@
87 AMTAR = @AMTAR@
88 AR = @AR@
89 AUTOCONF = @AUTOCONF@
90 AUTOHEADER = @AUTOHEADER@
91 AUTOMAKE = @AUTOMAKE@
92 AWK = @AWK@
93 CC = @CC@
94 CCDEPMODE = @CCDEPMODE@
95 CFLAGS = @CFLAGS@
96 CPP = @CPP@
97 CPPFLAGS = @CPPFLAGS@
98 CXX = @CXX@
99 CXXCPP = @CXXCPP@
100 CXXDEPMODE = @CXXDEPMODE@
101 CXXFLAGS = @CXXFLAGS@
102 CYGPATH_W = @CYGPATH_W@
103 DEFS = @DEFS@
104 DEPDIR = @DEPDIR@
105 ECHO = @ECHO@
106 ECHO_C = @ECHO_C@
107 ECHO_N = @ECHO_N@
108 ECHO_T = @ECHO_T@
109 EGREP = @EGREP@
110 EXEEXT = @EXEEXT@
111 F77 = @F77@
112 FFLAGS = @FFLAGS@
113 GREP = @GREP@
114 GTK_CONFIG = @GTK_CONFIG@
115 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
116 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
117 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
118 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
119 INSTALL_DATA = @INSTALL_DATA@
120 INSTALL_PROGRAM = @INSTALL_PROGRAM@
121 INSTALL_SCRIPT = @INSTALL_SCRIPT@
122 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
123 LDFLAGS = @LDFLAGS@
124 LIBOBJS = @LIBOBJS@
125 LIBS = @LIBS@
126 LIBTOOL = @LIBTOOL@
127 LIBTOOL_DEPS = @LIBTOOL_DEPS@
128 LN_S = @LN_S@
129 LTLIBOBJS = @LTLIBOBJS@
130 MAKEINFO = @MAKEINFO@
131 MP4FF_LIBS = @MP4FF_LIBS@
132 OBJEXT = @OBJEXT@
133 PACKAGE = @PACKAGE@
134 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
135 PACKAGE_NAME = @PACKAGE_NAME@
136 PACKAGE_STRING = @PACKAGE_STRING@
137 PACKAGE_TARNAME = @PACKAGE_TARNAME@
138 PACKAGE_VERSION = @PACKAGE_VERSION@
139 PATH_SEPARATOR = @PATH_SEPARATOR@
140 RANLIB = @RANLIB@
141 RPMBUILD = @RPMBUILD@
142 SET_MAKE = @SET_MAKE@
143 SHELL = @SHELL@
144 STRIP = @STRIP@
145 VERSION = @VERSION@
146 XMMS_CONFIG = @XMMS_CONFIG@
147 ac_ct_CC = @ac_ct_CC@
148 ac_ct_CXX = @ac_ct_CXX@
149 ac_ct_F77 = @ac_ct_F77@
150 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
151 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
152 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
153 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
154 am__include = @am__include@
155 am__leading_dot = @am__leading_dot@
156 am__quote = @am__quote@
157 am__tar = @am__tar@
158 am__untar = @am__untar@
159 bindir = @bindir@
160 build = @build@
161 build_alias = @build_alias@
162 build_cpu = @build_cpu@
163 build_os = @build_os@
164 build_vendor = @build_vendor@
165 datadir = @datadir@
166 datarootdir = @datarootdir@
167 docdir = @docdir@
168 dvidir = @dvidir@
169 exec_prefix = @exec_prefix@
170 external_mp4v2 = @external_mp4v2@
171 host = @host@
172 host_alias = @host_alias@
173 host_cpu = @host_cpu@
174 host_os = @host_os@
175 host_vendor = @host_vendor@
176 htmldir = @htmldir@
177 includedir = @includedir@
178 infodir = @infodir@
179 install_sh = @install_sh@
180 libdir = @libdir@
181 libexecdir = @libexecdir@
182 localedir = @localedir@
183 localstatedir = @localstatedir@
184 mandir = @mandir@
185 mkdir_p = @mkdir_p@
186 oldincludedir = @oldincludedir@
187 pdfdir = @pdfdir@
188 prefix = @prefix@
189 program_transform_name = @program_transform_name@
190 psdir = @psdir@
191 sbindir = @sbindir@
192 sharedstatedir = @sharedstatedir@
193 sysconfdir = @sysconfdir@
194 target_alias = @target_alias@
195 lib_LIBRARIES = libmp4ff.a
196 include_HEADERS = mp4ff.h mp4ffint.h
197 libmp4ff_a_CFLAGS = -DUSE_TAGGING=1
198 libmp4ff_a_SOURCES = mp4ff.c mp4atom.c mp4meta.c mp4sample.c mp4util.c \
199 mp4tagupdate.c mp4ff.h mp4ffint.h mp4ff_int_types.h
200
201 all: all-am
202
203 .SUFFIXES:
204 .SUFFIXES: .c .lo .o .obj
205 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
206 @for dep in $?; do \
207 case '$(am__configure_deps)' in \
208 *$$dep*) \
209 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
210 && exit 0; \
211 exit 1;; \
212 esac; \
213 done; \
214 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu common/mp4ff/Makefile'; \
215 cd $(top_srcdir) && \
216 $(AUTOMAKE) --gnu common/mp4ff/Makefile
217 .PRECIOUS: Makefile
218 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
219 @case '$?' in \
220 *config.status*) \
221 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
222 *) \
223 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
224 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
225 esac;
226
227 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
229
230 $(top_srcdir)/configure: $(am__configure_deps)
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
232 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
234 install-libLIBRARIES: $(lib_LIBRARIES)
235 @$(NORMAL_INSTALL)
236 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
237 @list='$(lib_LIBRARIES)'; for p in $$list; do \
238 if test -f $$p; then \
239 f=$(am__strip_dir) \
240 echo " $(libLIBRARIES_INSTALL) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
241 $(libLIBRARIES_INSTALL) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
242 else :; fi; \
243 done
244 @$(POST_INSTALL)
245 @list='$(lib_LIBRARIES)'; for p in $$list; do \
246 if test -f $$p; then \
247 p=$(am__strip_dir) \
248 echo " $(RANLIB) '$(DESTDIR)$(libdir)/$$p'"; \
249 $(RANLIB) "$(DESTDIR)$(libdir)/$$p"; \
250 else :; fi; \
251 done
252
253 uninstall-libLIBRARIES:
254 @$(NORMAL_UNINSTALL)
255 @list='$(lib_LIBRARIES)'; for p in $$list; do \
256 p=$(am__strip_dir) \
257 echo " rm -f '$(DESTDIR)$(libdir)/$$p'"; \
258 rm -f "$(DESTDIR)$(libdir)/$$p"; \
259 done
260
261 clean-libLIBRARIES:
262 -test -z "$(lib_LIBRARIES)" || rm -f $(lib_LIBRARIES)
263 libmp4ff.a: $(libmp4ff_a_OBJECTS) $(libmp4ff_a_DEPENDENCIES)
264 -rm -f libmp4ff.a
265 $(libmp4ff_a_AR) libmp4ff.a $(libmp4ff_a_OBJECTS) $(libmp4ff_a_LIBADD)
266 $(RANLIB) libmp4ff.a
267
268 mostlyclean-compile:
269 -rm -f *.$(OBJEXT)
270
271 distclean-compile:
272 -rm -f *.tab.c
273
274 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4ff_a-mp4atom.Po@am__quote@
275 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4ff_a-mp4ff.Po@am__quote@
276 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4ff_a-mp4meta.Po@am__quote@
277 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4ff_a-mp4sample.Po@am__quote@
278 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4ff_a-mp4tagupdate.Po@am__quote@
279 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4ff_a-mp4util.Po@am__quote@
280
281 .c.o:
282 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
283 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
284 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
285 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
286 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
287
288 .c.obj:
289 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
290 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
291 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
292 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
293 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
294
295 .c.lo:
296 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
297 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
298 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
299 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
300 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
301
302 libmp4ff_a-mp4ff.o: mp4ff.c
303 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4ff.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo" -c -o libmp4ff_a-mp4ff.o `test -f 'mp4ff.c' || echo '$(srcdir)/'`mp4ff.c; \
304 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo" "$(DEPDIR)/libmp4ff_a-mp4ff.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo"; exit 1; fi
305 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4ff.c' object='libmp4ff_a-mp4ff.o' libtool=no @AMDEPBACKSLASH@
306 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
307 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4ff.o `test -f 'mp4ff.c' || echo '$(srcdir)/'`mp4ff.c
308
309 libmp4ff_a-mp4ff.obj: mp4ff.c
310 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4ff.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo" -c -o libmp4ff_a-mp4ff.obj `if test -f 'mp4ff.c'; then $(CYGPATH_W) 'mp4ff.c'; else $(CYGPATH_W) '$(srcdir)/mp4ff.c'; fi`; \
311 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo" "$(DEPDIR)/libmp4ff_a-mp4ff.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4ff.Tpo"; exit 1; fi
312 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4ff.c' object='libmp4ff_a-mp4ff.obj' libtool=no @AMDEPBACKSLASH@
313 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
314 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4ff.obj `if test -f 'mp4ff.c'; then $(CYGPATH_W) 'mp4ff.c'; else $(CYGPATH_W) '$(srcdir)/mp4ff.c'; fi`
315
316 libmp4ff_a-mp4atom.o: mp4atom.c
317 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4atom.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo" -c -o libmp4ff_a-mp4atom.o `test -f 'mp4atom.c' || echo '$(srcdir)/'`mp4atom.c; \
318 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo" "$(DEPDIR)/libmp4ff_a-mp4atom.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo"; exit 1; fi
319 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4atom.c' object='libmp4ff_a-mp4atom.o' libtool=no @AMDEPBACKSLASH@
320 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
321 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4atom.o `test -f 'mp4atom.c' || echo '$(srcdir)/'`mp4atom.c
322
323 libmp4ff_a-mp4atom.obj: mp4atom.c
324 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4atom.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo" -c -o libmp4ff_a-mp4atom.obj `if test -f 'mp4atom.c'; then $(CYGPATH_W) 'mp4atom.c'; else $(CYGPATH_W) '$(srcdir)/mp4atom.c'; fi`; \
325 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo" "$(DEPDIR)/libmp4ff_a-mp4atom.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4atom.Tpo"; exit 1; fi
326 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4atom.c' object='libmp4ff_a-mp4atom.obj' libtool=no @AMDEPBACKSLASH@
327 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
328 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4atom.obj `if test -f 'mp4atom.c'; then $(CYGPATH_W) 'mp4atom.c'; else $(CYGPATH_W) '$(srcdir)/mp4atom.c'; fi`
329
330 libmp4ff_a-mp4meta.o: mp4meta.c
331 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4meta.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo" -c -o libmp4ff_a-mp4meta.o `test -f 'mp4meta.c' || echo '$(srcdir)/'`mp4meta.c; \
332 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo" "$(DEPDIR)/libmp4ff_a-mp4meta.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo"; exit 1; fi
333 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4meta.c' object='libmp4ff_a-mp4meta.o' libtool=no @AMDEPBACKSLASH@
334 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
335 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4meta.o `test -f 'mp4meta.c' || echo '$(srcdir)/'`mp4meta.c
336
337 libmp4ff_a-mp4meta.obj: mp4meta.c
338 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4meta.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo" -c -o libmp4ff_a-mp4meta.obj `if test -f 'mp4meta.c'; then $(CYGPATH_W) 'mp4meta.c'; else $(CYGPATH_W) '$(srcdir)/mp4meta.c'; fi`; \
339 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo" "$(DEPDIR)/libmp4ff_a-mp4meta.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4meta.Tpo"; exit 1; fi
340 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4meta.c' object='libmp4ff_a-mp4meta.obj' libtool=no @AMDEPBACKSLASH@
341 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
342 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4meta.obj `if test -f 'mp4meta.c'; then $(CYGPATH_W) 'mp4meta.c'; else $(CYGPATH_W) '$(srcdir)/mp4meta.c'; fi`
343
344 libmp4ff_a-mp4sample.o: mp4sample.c
345 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4sample.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo" -c -o libmp4ff_a-mp4sample.o `test -f 'mp4sample.c' || echo '$(srcdir)/'`mp4sample.c; \
346 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo" "$(DEPDIR)/libmp4ff_a-mp4sample.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo"; exit 1; fi
347 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4sample.c' object='libmp4ff_a-mp4sample.o' libtool=no @AMDEPBACKSLASH@
348 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
349 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4sample.o `test -f 'mp4sample.c' || echo '$(srcdir)/'`mp4sample.c
350
351 libmp4ff_a-mp4sample.obj: mp4sample.c
352 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4sample.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo" -c -o libmp4ff_a-mp4sample.obj `if test -f 'mp4sample.c'; then $(CYGPATH_W) 'mp4sample.c'; else $(CYGPATH_W) '$(srcdir)/mp4sample.c'; fi`; \
353 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo" "$(DEPDIR)/libmp4ff_a-mp4sample.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4sample.Tpo"; exit 1; fi
354 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4sample.c' object='libmp4ff_a-mp4sample.obj' libtool=no @AMDEPBACKSLASH@
355 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
356 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4sample.obj `if test -f 'mp4sample.c'; then $(CYGPATH_W) 'mp4sample.c'; else $(CYGPATH_W) '$(srcdir)/mp4sample.c'; fi`
357
358 libmp4ff_a-mp4util.o: mp4util.c
359 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4util.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4util.Tpo" -c -o libmp4ff_a-mp4util.o `test -f 'mp4util.c' || echo '$(srcdir)/'`mp4util.c; \
360 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4util.Tpo" "$(DEPDIR)/libmp4ff_a-mp4util.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4util.Tpo"; exit 1; fi
361 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4util.c' object='libmp4ff_a-mp4util.o' libtool=no @AMDEPBACKSLASH@
362 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
363 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4util.o `test -f 'mp4util.c' || echo '$(srcdir)/'`mp4util.c
364
365 libmp4ff_a-mp4util.obj: mp4util.c
366 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4util.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4util.Tpo" -c -o libmp4ff_a-mp4util.obj `if test -f 'mp4util.c'; then $(CYGPATH_W) 'mp4util.c'; else $(CYGPATH_W) '$(srcdir)/mp4util.c'; fi`; \
367 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4util.Tpo" "$(DEPDIR)/libmp4ff_a-mp4util.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4util.Tpo"; exit 1; fi
368 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4util.c' object='libmp4ff_a-mp4util.obj' libtool=no @AMDEPBACKSLASH@
369 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
370 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4util.obj `if test -f 'mp4util.c'; then $(CYGPATH_W) 'mp4util.c'; else $(CYGPATH_W) '$(srcdir)/mp4util.c'; fi`
371
372 libmp4ff_a-mp4tagupdate.o: mp4tagupdate.c
373 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4tagupdate.o -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo" -c -o libmp4ff_a-mp4tagupdate.o `test -f 'mp4tagupdate.c' || echo '$(srcdir)/'`mp4tagupdate.c; \
374 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo" "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo"; exit 1; fi
375 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4tagupdate.c' object='libmp4ff_a-mp4tagupdate.o' libtool=no @AMDEPBACKSLASH@
376 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
377 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4tagupdate.o `test -f 'mp4tagupdate.c' || echo '$(srcdir)/'`mp4tagupdate.c
378
379 libmp4ff_a-mp4tagupdate.obj: mp4tagupdate.c
380 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -MT libmp4ff_a-mp4tagupdate.obj -MD -MP -MF "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo" -c -o libmp4ff_a-mp4tagupdate.obj `if test -f 'mp4tagupdate.c'; then $(CYGPATH_W) 'mp4tagupdate.c'; else $(CYGPATH_W) '$(srcdir)/mp4tagupdate.c'; fi`; \
381 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo" "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Po"; else rm -f "$(DEPDIR)/libmp4ff_a-mp4tagupdate.Tpo"; exit 1; fi
382 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4tagupdate.c' object='libmp4ff_a-mp4tagupdate.obj' libtool=no @AMDEPBACKSLASH@
383 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
384 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4ff_a_CFLAGS) $(CFLAGS) -c -o libmp4ff_a-mp4tagupdate.obj `if test -f 'mp4tagupdate.c'; then $(CYGPATH_W) 'mp4tagupdate.c'; else $(CYGPATH_W) '$(srcdir)/mp4tagupdate.c'; fi`
385
386 mostlyclean-libtool:
387 -rm -f *.lo
388
389 clean-libtool:
390 -rm -rf .libs _libs
391
392 distclean-libtool:
393 -rm -f libtool
394 uninstall-info-am:
395 install-includeHEADERS: $(include_HEADERS)
396 @$(NORMAL_INSTALL)
397 test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
398 @list='$(include_HEADERS)'; for p in $$list; do \
399 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
400 f=$(am__strip_dir) \
401 echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
402 $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
403 done
404
405 uninstall-includeHEADERS:
406 @$(NORMAL_UNINSTALL)
407 @list='$(include_HEADERS)'; for p in $$list; do \
408 f=$(am__strip_dir) \
409 echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
410 rm -f "$(DESTDIR)$(includedir)/$$f"; \
411 done
412
413 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
414 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
415 unique=`for i in $$list; do \
416 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
417 done | \
418 $(AWK) ' { files[$$0] = 1; } \
419 END { for (i in files) print i; }'`; \
420 mkid -fID $$unique
421 tags: TAGS
422
423 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
424 $(TAGS_FILES) $(LISP)
425 tags=; \
426 here=`pwd`; \
427 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
428 unique=`for i in $$list; do \
429 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
430 done | \
431 $(AWK) ' { files[$$0] = 1; } \
432 END { for (i in files) print i; }'`; \
433 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
434 test -n "$$unique" || unique=$$empty_fix; \
435 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
436 $$tags $$unique; \
437 fi
438 ctags: CTAGS
439 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
440 $(TAGS_FILES) $(LISP)
441 tags=; \
442 here=`pwd`; \
443 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
444 unique=`for i in $$list; do \
445 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
446 done | \
447 $(AWK) ' { files[$$0] = 1; } \
448 END { for (i in files) print i; }'`; \
449 test -z "$(CTAGS_ARGS)$$tags$$unique" \
450 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
451 $$tags $$unique
452
453 GTAGS:
454 here=`$(am__cd) $(top_builddir) && pwd` \
455 && cd $(top_srcdir) \
456 && gtags -i $(GTAGS_ARGS) $$here
457
458 distclean-tags:
459 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
460
461 distdir: $(DISTFILES)
462 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
463 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
464 list='$(DISTFILES)'; for file in $$list; do \
465 case $$file in \
466 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
467 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
468 esac; \
469 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
470 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
471 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
472 dir="/$$dir"; \
473 $(mkdir_p) "$(distdir)$$dir"; \
474 else \
475 dir=''; \
476 fi; \
477 if test -d $$d/$$file; then \
478 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
479 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
480 fi; \
481 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
482 else \
483 test -f $(distdir)/$$file \
484 || cp -p $$d/$$file $(distdir)/$$file \
485 || exit 1; \
486 fi; \
487 done
488 check-am: all-am
489 check: check-am
490 all-am: Makefile $(LIBRARIES) $(HEADERS)
491 installdirs:
492 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
493 test -z "$$dir" || $(mkdir_p) "$$dir"; \
494 done
495 install: install-am
496 install-exec: install-exec-am
497 install-data: install-data-am
498 uninstall: uninstall-am
499
500 install-am: all-am
501 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
502
503 installcheck: installcheck-am
504 install-strip:
505 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
506 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
507 `test -z '$(STRIP)' || \
508 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
509 mostlyclean-generic:
510
511 clean-generic:
512
513 distclean-generic:
514 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
515
516 maintainer-clean-generic:
517 @echo "This command is intended for maintainers to use"
518 @echo "it deletes files that may require special tools to rebuild."
519 clean: clean-am
520
521 clean-am: clean-generic clean-libLIBRARIES clean-libtool \
522 mostlyclean-am
523
524 distclean: distclean-am
525 -rm -rf ./$(DEPDIR)
526 -rm -f Makefile
527 distclean-am: clean-am distclean-compile distclean-generic \
528 distclean-libtool distclean-tags
529
530 dvi: dvi-am
531
532 dvi-am:
533
534 html: html-am
535
536 info: info-am
537
538 info-am:
539
540 install-data-am: install-includeHEADERS
541
542 install-exec-am: install-libLIBRARIES
543
544 install-info: install-info-am
545
546 install-man:
547
548 installcheck-am:
549
550 maintainer-clean: maintainer-clean-am
551 -rm -rf ./$(DEPDIR)
552 -rm -f Makefile
553 maintainer-clean-am: distclean-am maintainer-clean-generic
554
555 mostlyclean: mostlyclean-am
556
557 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
558 mostlyclean-libtool
559
560 pdf: pdf-am
561
562 pdf-am:
563
564 ps: ps-am
565
566 ps-am:
567
568 uninstall-am: uninstall-includeHEADERS uninstall-info-am \
569 uninstall-libLIBRARIES
570
571 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
572 clean-libLIBRARIES clean-libtool ctags distclean \
573 distclean-compile distclean-generic distclean-libtool \
574 distclean-tags distdir dvi dvi-am html html-am info info-am \
575 install install-am install-data install-data-am install-exec \
576 install-exec-am install-includeHEADERS install-info \
577 install-info-am install-libLIBRARIES install-man install-strip \
578 installcheck installcheck-am installdirs maintainer-clean \
579 maintainer-clean-generic mostlyclean mostlyclean-compile \
580 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
581 tags uninstall uninstall-am uninstall-includeHEADERS \
582 uninstall-info-am uninstall-libLIBRARIES
583
584 # Tell versions [3.59,3.63) of GNU make to not export all variables.
585 # Otherwise a system limit (for SysV at least) may be exceeded.
586 .NOEXPORT:
+0
-1321
common/mp4ff/drms.c less more
0 /*****************************************************************************
1 * drms.c: DRMS
2 *****************************************************************************
3 * Copyright (C) 2004 VideoLAN
4 * $Id: drms.c,v 1.7 2005/02/01 13:15:55 menno Exp $
5 *
6 * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
7 * Sam Hocevar <sam@zoy.org>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
23
24 #include <stdlib.h> /* malloc(), free() */
25
26 #ifndef _WIN32
27 #include "config.h"
28 #endif
29 #include "mp4ffint.h"
30
31 #ifdef ITUNES_DRM
32
33 #ifdef _WIN32
34 # include <io.h>
35 # include <stdio.h>
36 # include <sys/stat.h>
37 # define PATH_MAX MAX_PATH
38 #else
39 # include <stdio.h>
40 #endif
41
42 #ifdef HAVE_ERRNO_H
43 # include <errno.h>
44 #endif
45
46 #ifdef _WIN32
47 # include <tchar.h>
48 # include <shlobj.h>
49 # include <windows.h>
50 #endif
51
52 #ifdef HAVE_SYS_STAT_H
53 # include <sys/stat.h>
54 #endif
55 #ifdef HAVE_SYS_TYPES_H
56 # include <sys/types.h>
57 #endif
58
59 /* In Solaris (and perhaps others) PATH_MAX is in limits.h. */
60 #ifdef HAVE_LIMITS_H
61 # include <limits.h>
62 #endif
63
64 #ifdef HAVE_IOKIT_IOKITLIB_H
65 # include <mach/mach.h>
66 # include <IOKit/IOKitLib.h>
67 # include <CoreFoundation/CFNumber.h>
68 #endif
69
70 #ifdef HAVE_SYSFS_LIBSYSFS_H
71 # include <sysfs/libsysfs.h>
72 #endif
73
74 #include "drms.h"
75 #include "drmstables.h"
76
77 /*****************************************************************************
78 * aes_s: AES keys structure
79 *****************************************************************************
80 * This structure stores a set of keys usable for encryption and decryption
81 * with the AES/Rijndael algorithm.
82 *****************************************************************************/
83 struct aes_s
84 {
85 uint32_t pp_enc_keys[ AES_KEY_COUNT + 1 ][ 4 ];
86 uint32_t pp_dec_keys[ AES_KEY_COUNT + 1 ][ 4 ];
87 };
88
89 /*****************************************************************************
90 * md5_s: MD5 message structure
91 *****************************************************************************
92 * This structure stores the static information needed to compute an MD5
93 * hash. It has an extra data buffer to allow non-aligned writes.
94 *****************************************************************************/
95 struct md5_s
96 {
97 uint64_t i_bits; /* Total written bits */
98 uint32_t p_digest[4]; /* The MD5 digest */
99 uint32_t p_data[16]; /* Buffer to cache non-aligned writes */
100 };
101
102 /*****************************************************************************
103 * shuffle_s: shuffle structure
104 *****************************************************************************
105 * This structure stores the static information needed to shuffle data using
106 * a custom algorithm.
107 *****************************************************************************/
108 struct shuffle_s
109 {
110 uint32_t p_commands[ 20 ];
111 uint32_t p_bordel[ 16 ];
112 };
113
114 /*****************************************************************************
115 * drms_s: DRMS structure
116 *****************************************************************************
117 * This structure stores the static information needed to decrypt DRMS data.
118 *****************************************************************************/
119 struct drms_s
120 {
121 uint32_t i_user;
122 uint32_t i_key;
123 uint8_t p_iviv[ 16 ];
124 uint8_t *p_name;
125
126 uint32_t p_key[ 4 ];
127 struct aes_s aes;
128
129 char psz_homedir[ PATH_MAX ];
130 };
131
132 /*****************************************************************************
133 * Local prototypes
134 *****************************************************************************/
135 static void InitAES ( struct aes_s *, uint32_t * );
136 static void DecryptAES ( struct aes_s *, uint32_t *, const uint32_t * );
137
138 static void InitMD5 ( struct md5_s * );
139 static void AddMD5 ( struct md5_s *, const uint8_t *, uint32_t );
140 static void EndMD5 ( struct md5_s * );
141 static void Digest ( struct md5_s *, uint32_t * );
142
143 static void InitShuffle ( struct shuffle_s *, uint32_t * );
144 static void DoShuffle ( struct shuffle_s *, uint32_t *, uint32_t );
145
146 static int GetSystemKey ( uint32_t *, uint32_t );
147 static int WriteUserKey ( void *, uint32_t * );
148 static int ReadUserKey ( void *, uint32_t * );
149 static int GetUserKey ( void *, uint32_t * );
150
151 static int GetSCIData ( char *, uint32_t **, uint32_t * );
152 static int HashSystemInfo ( uint32_t * );
153 static int GetiPodID ( int64_t * );
154
155 #ifdef WORDS_BIGENDIAN
156 /*****************************************************************************
157 * Reverse: reverse byte order
158 *****************************************************************************/
159 static __inline void Reverse( uint32_t *p_buffer, int n )
160 {
161 int i;
162
163 for( i = 0; i < n; i++ )
164 {
165 p_buffer[ i ] = GetDWLE(&p_buffer[ i ]);
166 }
167 }
168 # define REVERSE( p, n ) Reverse( p, n )
169 #else
170 # define REVERSE( p, n )
171 #endif
172
173 /*****************************************************************************
174 * BlockXOR: XOR two 128 bit blocks
175 *****************************************************************************/
176 static __inline void BlockXOR( uint32_t *p_dest, uint32_t *p_s1, uint32_t *p_s2 )
177 {
178 int i;
179
180 for( i = 0; i < 4; i++ )
181 {
182 p_dest[ i ] = p_s1[ i ] ^ p_s2[ i ];
183 }
184 }
185
186 /*****************************************************************************
187 * drms_alloc: allocate a DRMS structure
188 *****************************************************************************/
189 void *drms_alloc( char *psz_homedir )
190 {
191 struct drms_s *p_drms;
192
193 p_drms = malloc( sizeof(struct drms_s) );
194
195 if( p_drms == NULL )
196 {
197 return NULL;
198 }
199
200 memset( p_drms, 0, sizeof(struct drms_s) );
201
202 strncpy( p_drms->psz_homedir, psz_homedir, PATH_MAX );
203 p_drms->psz_homedir[ PATH_MAX - 1 ] = '\0';
204
205 return (void *)p_drms;
206 }
207
208 /*****************************************************************************
209 * drms_free: free a previously allocated DRMS structure
210 *****************************************************************************/
211 void drms_free( void *_p_drms )
212 {
213 struct drms_s *p_drms = (struct drms_s *)_p_drms;
214
215 if( p_drms->p_name != NULL )
216 {
217 free( (void *)p_drms->p_name );
218 }
219
220 free( p_drms );
221 }
222
223 /*****************************************************************************
224 * drms_decrypt: unscramble a chunk of data
225 *****************************************************************************/
226 void drms_decrypt( void *_p_drms, uint32_t *p_buffer, uint32_t i_bytes )
227 {
228 struct drms_s *p_drms = (struct drms_s *)_p_drms;
229 uint32_t p_key[ 4 ];
230 unsigned int i_blocks;
231
232 /* AES is a block cypher, round down the byte count */
233 i_blocks = i_bytes / 16;
234 i_bytes = i_blocks * 16;
235
236 /* Initialise the key */
237 memcpy( p_key, p_drms->p_key, 16 );
238
239 /* Unscramble */
240 while( i_blocks-- )
241 {
242 uint32_t p_tmp[ 4 ];
243
244 REVERSE( p_buffer, 4 );
245 DecryptAES( &p_drms->aes, p_tmp, p_buffer );
246 BlockXOR( p_tmp, p_key, p_tmp );
247
248 /* Use the previous scrambled data as the key for next block */
249 memcpy( p_key, p_buffer, 16 );
250
251 /* Copy unscrambled data back to the buffer */
252 memcpy( p_buffer, p_tmp, 16 );
253 REVERSE( p_buffer, 4 );
254
255 p_buffer += 4;
256 }
257 }
258
259 /*****************************************************************************
260 * drms_init: initialise a DRMS structure
261 *****************************************************************************/
262 int drms_init( void *_p_drms, uint32_t i_type,
263 uint8_t *p_info, uint32_t i_len )
264 {
265 struct drms_s *p_drms = (struct drms_s *)_p_drms;
266 int i_ret = 0;
267
268 switch( i_type )
269 {
270 case FOURCC_user:
271 if( i_len < sizeof(p_drms->i_user) )
272 {
273 i_ret = -1;
274 break;
275 }
276
277 p_drms->i_user = U32_AT( p_info );
278 break;
279
280 case FOURCC_key:
281 if( i_len < sizeof(p_drms->i_key) )
282 {
283 i_ret = -1;
284 break;
285 }
286
287 p_drms->i_key = U32_AT( p_info );
288 break;
289
290 case FOURCC_iviv:
291 if( i_len < sizeof(p_drms->p_key) )
292 {
293 i_ret = -1;
294 break;
295 }
296
297 memcpy( p_drms->p_iviv, p_info, 16 );
298 break;
299
300 case FOURCC_name:
301 p_drms->p_name = strdup( p_info );
302
303 if( p_drms->p_name == NULL )
304 {
305 i_ret = -1;
306 }
307 break;
308
309 case FOURCC_priv:
310 {
311 uint32_t p_priv[ 64 ];
312 struct md5_s md5;
313
314 if( i_len < 64 )
315 {
316 i_ret = -1;
317 break;
318 }
319
320 InitMD5( &md5 );
321 AddMD5( &md5, p_drms->p_name, strlen( p_drms->p_name ) );
322 AddMD5( &md5, p_drms->p_iviv, 16 );
323 EndMD5( &md5 );
324
325 if( GetUserKey( p_drms, p_drms->p_key ) )
326 {
327 i_ret = -1;
328 break;
329 }
330
331 InitAES( &p_drms->aes, p_drms->p_key );
332
333 memcpy( p_priv, p_info, 64 );
334 memcpy( p_drms->p_key, md5.p_digest, 16 );
335 drms_decrypt( p_drms, p_priv, 64 );
336 REVERSE( p_priv, 64 );
337
338 if( p_priv[ 0 ] != 0x6e757469 ) /* itun */
339 {
340 i_ret = -1;
341 break;
342 }
343
344 InitAES( &p_drms->aes, p_priv + 6 );
345 memcpy( p_drms->p_key, p_priv + 12, 16 );
346
347 free( (void *)p_drms->p_name );
348 p_drms->p_name = NULL;
349 }
350 break;
351 }
352
353 return i_ret;
354 }
355
356 /* The following functions are local */
357
358 /*****************************************************************************
359 * InitAES: initialise AES/Rijndael encryption/decryption tables
360 *****************************************************************************
361 * The Advanced Encryption Standard (AES) is described in RFC 3268
362 *****************************************************************************/
363 static void InitAES( struct aes_s *p_aes, uint32_t *p_key )
364 {
365 unsigned int i, t;
366 uint32_t i_key, i_seed;
367
368 memset( p_aes->pp_enc_keys[1], 0, 16 );
369 memcpy( p_aes->pp_enc_keys[0], p_key, 16 );
370
371 /* Generate the key tables */
372 i_seed = p_aes->pp_enc_keys[ 0 ][ 3 ];
373
374 for( i_key = 0; i_key < AES_KEY_COUNT; i_key++ )
375 {
376 uint32_t j;
377
378 i_seed = AES_ROR( i_seed, 8 );
379
380 j = p_aes_table[ i_key ];
381
382 j ^= p_aes_encrypt[ (i_seed >> 24) & 0xff ]
383 ^ AES_ROR( p_aes_encrypt[ (i_seed >> 16) & 0xff ], 8 )
384 ^ AES_ROR( p_aes_encrypt[ (i_seed >> 8) & 0xff ], 16 )
385 ^ AES_ROR( p_aes_encrypt[ i_seed & 0xff ], 24 );
386
387 j ^= p_aes->pp_enc_keys[ i_key ][ 0 ];
388 p_aes->pp_enc_keys[ i_key + 1 ][ 0 ] = j;
389 j ^= p_aes->pp_enc_keys[ i_key ][ 1 ];
390 p_aes->pp_enc_keys[ i_key + 1 ][ 1 ] = j;
391 j ^= p_aes->pp_enc_keys[ i_key ][ 2 ];
392 p_aes->pp_enc_keys[ i_key + 1 ][ 2 ] = j;
393 j ^= p_aes->pp_enc_keys[ i_key ][ 3 ];
394 p_aes->pp_enc_keys[ i_key + 1 ][ 3 ] = j;
395
396 i_seed = j;
397 }
398
399 memcpy( p_aes->pp_dec_keys[ 0 ],
400 p_aes->pp_enc_keys[ 0 ], 16 );
401
402 for( i = 1; i < AES_KEY_COUNT; i++ )
403 {
404 for( t = 0; t < 4; t++ )
405 {
406 uint32_t j, k, l, m, n;
407
408 j = p_aes->pp_enc_keys[ i ][ t ];
409
410 k = (((j >> 7) & 0x01010101) * 27) ^ ((j & 0xff7f7f7f) << 1);
411 l = (((k >> 7) & 0x01010101) * 27) ^ ((k & 0xff7f7f7f) << 1);
412 m = (((l >> 7) & 0x01010101) * 27) ^ ((l & 0xff7f7f7f) << 1);
413
414 j ^= m;
415
416 n = AES_ROR( l ^ j, 16 ) ^ AES_ROR( k ^ j, 8 ) ^ AES_ROR( j, 24 );
417
418 p_aes->pp_dec_keys[ i ][ t ] = k ^ l ^ m ^ n;
419 }
420 }
421 }
422
423 /*****************************************************************************
424 * DecryptAES: decrypt an AES/Rijndael 128 bit block
425 *****************************************************************************/
426 static void DecryptAES( struct aes_s *p_aes,
427 uint32_t *p_dest, const uint32_t *p_src )
428 {
429 uint32_t p_wtxt[ 4 ]; /* Working cyphertext */
430 uint32_t p_tmp[ 4 ];
431 unsigned int i_round, t;
432
433 for( t = 0; t < 4; t++ )
434 {
435 /* FIXME: are there any endianness issues here? */
436 p_wtxt[ t ] = p_src[ t ] ^ p_aes->pp_enc_keys[ AES_KEY_COUNT ][ t ];
437 }
438
439 /* Rounds 0 - 8 */
440 for( i_round = 0; i_round < (AES_KEY_COUNT - 1); i_round++ )
441 {
442 for( t = 0; t < 4; t++ )
443 {
444 p_tmp[ t ] = AES_XOR_ROR( p_aes_itable, p_wtxt );
445 }
446
447 for( t = 0; t < 4; t++ )
448 {
449 p_wtxt[ t ] = p_tmp[ t ]
450 ^ p_aes->pp_dec_keys[ (AES_KEY_COUNT - 1) - i_round ][ t ];
451 }
452 }
453
454 /* Final round (9) */
455 for( t = 0; t < 4; t++ )
456 {
457 p_dest[ t ] = AES_XOR_ROR( p_aes_decrypt, p_wtxt );
458 p_dest[ t ] ^= p_aes->pp_dec_keys[ 0 ][ t ];
459 }
460 }
461
462 /*****************************************************************************
463 * InitMD5: initialise an MD5 message
464 *****************************************************************************
465 * The MD5 message-digest algorithm is described in RFC 1321
466 *****************************************************************************/
467 static void InitMD5( struct md5_s *p_md5 )
468 {
469 p_md5->p_digest[ 0 ] = 0x67452301;
470 p_md5->p_digest[ 1 ] = 0xefcdab89;
471 p_md5->p_digest[ 2 ] = 0x98badcfe;
472 p_md5->p_digest[ 3 ] = 0x10325476;
473
474 memset( p_md5->p_data, 0, 64 );
475 p_md5->i_bits = 0;
476 }
477
478 /*****************************************************************************
479 * AddMD5: add i_len bytes to an MD5 message
480 *****************************************************************************/
481 static void AddMD5( struct md5_s *p_md5, const uint8_t *p_src, uint32_t i_len )
482 {
483 unsigned int i_current; /* Current bytes in the spare buffer */
484 unsigned int i_offset = 0;
485
486 i_current = (p_md5->i_bits / 8) & 63;
487
488 p_md5->i_bits += 8 * i_len;
489
490 /* If we can complete our spare buffer to 64 bytes, do it and add the
491 * resulting buffer to the MD5 message */
492 if( i_len >= (64 - i_current) )
493 {
494 memcpy( ((uint8_t *)p_md5->p_data) + i_current, p_src,
495 (64 - i_current) );
496 Digest( p_md5, p_md5->p_data );
497
498 i_offset += (64 - i_current);
499 i_len -= (64 - i_current);
500 i_current = 0;
501 }
502
503 /* Add as many entire 64 bytes blocks as we can to the MD5 message */
504 while( i_len >= 64 )
505 {
506 uint32_t p_tmp[ 16 ];
507 memcpy( p_tmp, p_src + i_offset, 64 );
508 Digest( p_md5, p_tmp );
509 i_offset += 64;
510 i_len -= 64;
511 }
512
513 /* Copy our remaining data to the message's spare buffer */
514 memcpy( ((uint8_t *)p_md5->p_data) + i_current, p_src + i_offset, i_len );
515 }
516
517 /*****************************************************************************
518 * EndMD5: finish an MD5 message
519 *****************************************************************************
520 * This function adds adequate padding to the end of the message, and appends
521 * the bit count so that we end at a block boundary.
522 *****************************************************************************/
523 static void EndMD5( struct md5_s *p_md5 )
524 {
525 unsigned int i_current;
526
527 i_current = (p_md5->i_bits / 8) & 63;
528
529 /* Append 0x80 to our buffer. No boundary check because the temporary
530 * buffer cannot be full, otherwise AddMD5 would have emptied it. */
531 ((uint8_t *)p_md5->p_data)[ i_current++ ] = 0x80;
532
533 /* If less than 8 bytes are available at the end of the block, complete
534 * this 64 bytes block with zeros and add it to the message. We'll add
535 * our length at the end of the next block. */
536 if( i_current > 56 )
537 {
538 memset( ((uint8_t *)p_md5->p_data) + i_current, 0, (64 - i_current) );
539 Digest( p_md5, p_md5->p_data );
540 i_current = 0;
541 }
542
543 /* Fill the unused space in our last block with zeroes and put the
544 * message length at the end. */
545 memset( ((uint8_t *)p_md5->p_data) + i_current, 0, (56 - i_current) );
546 p_md5->p_data[ 14 ] = p_md5->i_bits & 0xffffffff;
547 p_md5->p_data[ 15 ] = (p_md5->i_bits >> 32);
548 REVERSE( &p_md5->p_data[ 14 ], 2 );
549
550 Digest( p_md5, p_md5->p_data );
551 }
552
553 #define F1( x, y, z ) ((z) ^ ((x) & ((y) ^ (z))))
554 #define F2( x, y, z ) F1((z), (x), (y))
555 #define F3( x, y, z ) ((x) ^ (y) ^ (z))
556 #define F4( x, y, z ) ((y) ^ ((x) | ~(z)))
557
558 #define MD5_DO( f, w, x, y, z, data, s ) \
559 ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x )
560
561 /*****************************************************************************
562 * Digest: update the MD5 digest with 64 bytes of data
563 *****************************************************************************/
564 static void Digest( struct md5_s *p_md5, uint32_t *p_input )
565 {
566 uint32_t a, b, c, d;
567
568 REVERSE( p_input, 16 );
569
570 a = p_md5->p_digest[ 0 ];
571 b = p_md5->p_digest[ 1 ];
572 c = p_md5->p_digest[ 2 ];
573 d = p_md5->p_digest[ 3 ];
574
575 MD5_DO( F1, a, b, c, d, p_input[ 0 ] + 0xd76aa478, 7 );
576 MD5_DO( F1, d, a, b, c, p_input[ 1 ] + 0xe8c7b756, 12 );
577 MD5_DO( F1, c, d, a, b, p_input[ 2 ] + 0x242070db, 17 );
578 MD5_DO( F1, b, c, d, a, p_input[ 3 ] + 0xc1bdceee, 22 );
579 MD5_DO( F1, a, b, c, d, p_input[ 4 ] + 0xf57c0faf, 7 );
580 MD5_DO( F1, d, a, b, c, p_input[ 5 ] + 0x4787c62a, 12 );
581 MD5_DO( F1, c, d, a, b, p_input[ 6 ] + 0xa8304613, 17 );
582 MD5_DO( F1, b, c, d, a, p_input[ 7 ] + 0xfd469501, 22 );
583 MD5_DO( F1, a, b, c, d, p_input[ 8 ] + 0x698098d8, 7 );
584 MD5_DO( F1, d, a, b, c, p_input[ 9 ] + 0x8b44f7af, 12 );
585 MD5_DO( F1, c, d, a, b, p_input[ 10 ] + 0xffff5bb1, 17 );
586 MD5_DO( F1, b, c, d, a, p_input[ 11 ] + 0x895cd7be, 22 );
587 MD5_DO( F1, a, b, c, d, p_input[ 12 ] + 0x6b901122, 7 );
588 MD5_DO( F1, d, a, b, c, p_input[ 13 ] + 0xfd987193, 12 );
589 MD5_DO( F1, c, d, a, b, p_input[ 14 ] + 0xa679438e, 17 );
590 MD5_DO( F1, b, c, d, a, p_input[ 15 ] + 0x49b40821, 22 );
591
592 MD5_DO( F2, a, b, c, d, p_input[ 1 ] + 0xf61e2562, 5 );
593 MD5_DO( F2, d, a, b, c, p_input[ 6 ] + 0xc040b340, 9 );
594 MD5_DO( F2, c, d, a, b, p_input[ 11 ] + 0x265e5a51, 14 );
595 MD5_DO( F2, b, c, d, a, p_input[ 0 ] + 0xe9b6c7aa, 20 );
596 MD5_DO( F2, a, b, c, d, p_input[ 5 ] + 0xd62f105d, 5 );
597 MD5_DO( F2, d, a, b, c, p_input[ 10 ] + 0x02441453, 9 );
598 MD5_DO( F2, c, d, a, b, p_input[ 15 ] + 0xd8a1e681, 14 );
599 MD5_DO( F2, b, c, d, a, p_input[ 4 ] + 0xe7d3fbc8, 20 );
600 MD5_DO( F2, a, b, c, d, p_input[ 9 ] + 0x21e1cde6, 5 );
601 MD5_DO( F2, d, a, b, c, p_input[ 14 ] + 0xc33707d6, 9 );
602 MD5_DO( F2, c, d, a, b, p_input[ 3 ] + 0xf4d50d87, 14 );
603 MD5_DO( F2, b, c, d, a, p_input[ 8 ] + 0x455a14ed, 20 );
604 MD5_DO( F2, a, b, c, d, p_input[ 13 ] + 0xa9e3e905, 5 );
605 MD5_DO( F2, d, a, b, c, p_input[ 2 ] + 0xfcefa3f8, 9 );
606 MD5_DO( F2, c, d, a, b, p_input[ 7 ] + 0x676f02d9, 14 );
607 MD5_DO( F2, b, c, d, a, p_input[ 12 ] + 0x8d2a4c8a, 20 );
608
609 MD5_DO( F3, a, b, c, d, p_input[ 5 ] + 0xfffa3942, 4 );
610 MD5_DO( F3, d, a, b, c, p_input[ 8 ] + 0x8771f681, 11 );
611 MD5_DO( F3, c, d, a, b, p_input[ 11 ] + 0x6d9d6122, 16 );
612 MD5_DO( F3, b, c, d, a, p_input[ 14 ] + 0xfde5380c, 23 );
613 MD5_DO( F3, a, b, c, d, p_input[ 1 ] + 0xa4beea44, 4 );
614 MD5_DO( F3, d, a, b, c, p_input[ 4 ] + 0x4bdecfa9, 11 );
615 MD5_DO( F3, c, d, a, b, p_input[ 7 ] + 0xf6bb4b60, 16 );
616 MD5_DO( F3, b, c, d, a, p_input[ 10 ] + 0xbebfbc70, 23 );
617 MD5_DO( F3, a, b, c, d, p_input[ 13 ] + 0x289b7ec6, 4 );
618 MD5_DO( F3, d, a, b, c, p_input[ 0 ] + 0xeaa127fa, 11 );
619 MD5_DO( F3, c, d, a, b, p_input[ 3 ] + 0xd4ef3085, 16 );
620 MD5_DO( F3, b, c, d, a, p_input[ 6 ] + 0x04881d05, 23 );
621 MD5_DO( F3, a, b, c, d, p_input[ 9 ] + 0xd9d4d039, 4 );
622 MD5_DO( F3, d, a, b, c, p_input[ 12 ] + 0xe6db99e5, 11 );
623 MD5_DO( F3, c, d, a, b, p_input[ 15 ] + 0x1fa27cf8, 16 );
624 MD5_DO( F3, b, c, d, a, p_input[ 2 ] + 0xc4ac5665, 23 );
625
626 MD5_DO( F4, a, b, c, d, p_input[ 0 ] + 0xf4292244, 6 );
627 MD5_DO( F4, d, a, b, c, p_input[ 7 ] + 0x432aff97, 10 );
628 MD5_DO( F4, c, d, a, b, p_input[ 14 ] + 0xab9423a7, 15 );
629 MD5_DO( F4, b, c, d, a, p_input[ 5 ] + 0xfc93a039, 21 );
630 MD5_DO( F4, a, b, c, d, p_input[ 12 ] + 0x655b59c3, 6 );
631 MD5_DO( F4, d, a, b, c, p_input[ 3 ] + 0x8f0ccc92, 10 );
632 MD5_DO( F4, c, d, a, b, p_input[ 10 ] + 0xffeff47d, 15 );
633 MD5_DO( F4, b, c, d, a, p_input[ 1 ] + 0x85845dd1, 21 );
634 MD5_DO( F4, a, b, c, d, p_input[ 8 ] + 0x6fa87e4f, 6 );
635 MD5_DO( F4, d, a, b, c, p_input[ 15 ] + 0xfe2ce6e0, 10 );
636 MD5_DO( F4, c, d, a, b, p_input[ 6 ] + 0xa3014314, 15 );
637 MD5_DO( F4, b, c, d, a, p_input[ 13 ] + 0x4e0811a1, 21 );
638 MD5_DO( F4, a, b, c, d, p_input[ 4 ] + 0xf7537e82, 6 );
639 MD5_DO( F4, d, a, b, c, p_input[ 11 ] + 0xbd3af235, 10 );
640 MD5_DO( F4, c, d, a, b, p_input[ 2 ] + 0x2ad7d2bb, 15 );
641 MD5_DO( F4, b, c, d, a, p_input[ 9 ] + 0xeb86d391, 21 );
642
643 p_md5->p_digest[ 0 ] += a;
644 p_md5->p_digest[ 1 ] += b;
645 p_md5->p_digest[ 2 ] += c;
646 p_md5->p_digest[ 3 ] += d;
647 }
648
649 /*****************************************************************************
650 * InitShuffle: initialise a shuffle structure
651 *****************************************************************************
652 * This function initialises tables in the p_shuffle structure that will be
653 * used later by DoShuffle. The only external parameter is p_sys_key.
654 *****************************************************************************/
655 static void InitShuffle( struct shuffle_s *p_shuffle, uint32_t *p_sys_key )
656 {
657 char p_secret1[] = "Tv!*";
658 static char const p_secret2[] = "v8rhvsaAvOKMFfUH%798=[;."
659 "f8677680a634ba87fnOIf)(*";
660 unsigned int i;
661
662 /* Fill p_commands using the key and a secret seed */
663 for( i = 0; i < 20; i++ )
664 {
665 struct md5_s md5;
666 int32_t i_hash;
667
668 InitMD5( &md5 );
669 AddMD5( &md5, (uint8_t *)p_sys_key, 16 );
670 AddMD5( &md5, (uint8_t *)p_secret1, 4 );
671 EndMD5( &md5 );
672
673 p_secret1[ 3 ]++;
674
675 REVERSE( md5.p_digest, 1 );
676 i_hash = ((int32_t)U32_AT(md5.p_digest)) % 1024;
677
678 p_shuffle->p_commands[ i ] = i_hash < 0 ? i_hash * -1 : i_hash;
679 }
680
681 /* Fill p_bordel with completely meaningless initial values. */
682 for( i = 0; i < 4; i++ )
683 {
684 p_shuffle->p_bordel[ 4 * i ] = U32_AT(p_sys_key + i);
685 memcpy( p_shuffle->p_bordel + 4 * i + 1, p_secret2 + 12 * i, 12 );
686 REVERSE( p_shuffle->p_bordel + 4 * i + 1, 3 );
687 }
688 }
689
690 /*****************************************************************************
691 * DoShuffle: shuffle buffer
692 *****************************************************************************
693 * This is so ugly and uses so many MD5 checksums that it is most certainly
694 * one-way, though why it needs to be so complicated is beyond me.
695 *****************************************************************************/
696 static void DoShuffle( struct shuffle_s *p_shuffle,
697 uint32_t *p_buffer, uint32_t i_size )
698 {
699 struct md5_s md5;
700 uint32_t p_big_bordel[ 16 ];
701 uint32_t *p_bordel = p_shuffle->p_bordel;
702 unsigned int i;
703
704 /* Using the MD5 hash of a memory block is probably not one-way enough
705 * for the iTunes people. This function randomises p_bordel depending on
706 * the values in p_commands to make things even more messy in p_bordel. */
707 for( i = 0; i < 20; i++ )
708 {
709 uint8_t i_command, i_index;
710
711 if( !p_shuffle->p_commands[ i ] )
712 {
713 continue;
714 }
715
716 i_command = (p_shuffle->p_commands[ i ] & 0x300) >> 8;
717 i_index = p_shuffle->p_commands[ i ] & 0xff;
718
719 switch( i_command )
720 {
721 case 0x3:
722 p_bordel[ i_index & 0xf ] = p_bordel[ i_index >> 4 ]
723 + p_bordel[ ((i_index + 0x10) >> 4) & 0xf ];
724 break;
725 case 0x2:
726 p_bordel[ i_index >> 4 ] ^= p_shuffle_xor[ 0xff - i_index ];
727 break;
728 case 0x1:
729 p_bordel[ i_index >> 4 ] -= p_shuffle_sub[ 0xff - i_index ];
730 break;
731 default:
732 p_bordel[ i_index >> 4 ] += p_shuffle_add[ 0xff - i_index ];
733 break;
734 }
735 }
736
737 /* Convert our newly randomised p_bordel to big endianness and take
738 * its MD5 hash. */
739 InitMD5( &md5 );
740 for( i = 0; i < 16; i++ )
741 {
742 p_big_bordel[ i ] = U32_AT(p_bordel + i);
743 }
744 AddMD5( &md5, (uint8_t *)p_big_bordel, 64 );
745 EndMD5( &md5 );
746
747 /* XOR our buffer with the computed checksum */
748 for( i = 0; i < i_size; i++ )
749 {
750 p_buffer[ i ] ^= md5.p_digest[ i ];
751 }
752 }
753
754 /*****************************************************************************
755 * GetSystemKey: get the system key
756 *****************************************************************************
757 * Compute the system key from various system information, see HashSystemInfo.
758 *****************************************************************************/
759 static int GetSystemKey( uint32_t *p_sys_key, uint32_t b_ipod )
760 {
761 static char const p_secret1[ 8 ] = "YuaFlafu";
762 static char const p_secret2[ 8 ] = "zPif98ga";
763 struct md5_s md5;
764 int64_t i_ipod_id;
765 uint32_t p_system_hash[ 4 ];
766
767 /* Compute the MD5 hash of our system info */
768 if( ( !b_ipod && HashSystemInfo( p_system_hash ) ) ||
769 ( b_ipod && GetiPodID( &i_ipod_id ) ) )
770 {
771 return -1;
772 }
773
774 /* Combine our system info hash with additional secret data. The resulting
775 * MD5 hash will be our system key. */
776 InitMD5( &md5 );
777 AddMD5( &md5, p_secret1, 8 );
778
779 if( !b_ipod )
780 {
781 AddMD5( &md5, (uint8_t *)p_system_hash, 6 );
782 AddMD5( &md5, (uint8_t *)p_system_hash, 6 );
783 AddMD5( &md5, (uint8_t *)p_system_hash, 6 );
784 AddMD5( &md5, p_secret2, 8 );
785 }
786 else
787 {
788 i_ipod_id = U64_AT(&i_ipod_id);
789 AddMD5( &md5, (uint8_t *)&i_ipod_id, sizeof(i_ipod_id) );
790 AddMD5( &md5, (uint8_t *)&i_ipod_id, sizeof(i_ipod_id) );
791 AddMD5( &md5, (uint8_t *)&i_ipod_id, sizeof(i_ipod_id) );
792 }
793
794 EndMD5( &md5 );
795
796 memcpy( p_sys_key, md5.p_digest, 16 );
797
798 return 0;
799 }
800
801 #ifdef _WIN32
802 # define DRMS_DIRNAME "drms"
803 #else
804 # define DRMS_DIRNAME ".drms"
805 #endif
806
807 /*****************************************************************************
808 * WriteUserKey: write the user key to hard disk
809 *****************************************************************************
810 * Write the user key to the hard disk so that it can be reused later or used
811 * on operating systems other than Win32.
812 *****************************************************************************/
813 static int WriteUserKey( void *_p_drms, uint32_t *p_user_key )
814 {
815 struct drms_s *p_drms = (struct drms_s *)_p_drms;
816 FILE *file;
817 int i_ret = -1;
818 char psz_path[ PATH_MAX ];
819
820 sprintf( psz_path, /* PATH_MAX - 1, */
821 "%s/" DRMS_DIRNAME, p_drms->psz_homedir );
822
823 #if defined( HAVE_ERRNO_H )
824 # if defined( _WIN32 )
825 if( !mkdir( psz_path ) || errno == EEXIST )
826 # else
827 if( !mkdir( psz_path, 0755 ) || errno == EEXIST )
828 # endif
829 #else
830 if( !mkdir( psz_path ) )
831 #endif
832 {
833 sprintf( psz_path, /*PATH_MAX - 1,*/ "%s/" DRMS_DIRNAME "/%08X.%03d",
834 p_drms->psz_homedir, p_drms->i_user, p_drms->i_key );
835
836 file = fopen( psz_path, "w" );
837 if( file != NULL )
838 {
839 i_ret = fwrite( p_user_key, sizeof(uint32_t),
840 4, file ) == 4 ? 0 : -1;
841 fclose( file );
842 }
843 }
844
845 return i_ret;
846 }
847
848 /*****************************************************************************
849 * ReadUserKey: read the user key from hard disk
850 *****************************************************************************
851 * Retrieve the user key from the hard disk if available.
852 *****************************************************************************/
853 static int ReadUserKey( void *_p_drms, uint32_t *p_user_key )
854 {
855 struct drms_s *p_drms = (struct drms_s *)_p_drms;
856 FILE *file;
857 int i_ret = -1;
858 char psz_path[ PATH_MAX ];
859
860 sprintf( psz_path, /*PATH_MAX - 1,*/
861 "%s/" DRMS_DIRNAME "/%08X.%03d", p_drms->psz_homedir,
862 p_drms->i_user, p_drms->i_key );
863
864 file = fopen( psz_path, "r" );
865 if( file != NULL )
866 {
867 i_ret = fread( p_user_key, sizeof(uint32_t),
868 4, file ) == 4 ? 0 : -1;
869 fclose( file );
870 }
871
872 return i_ret;
873 }
874
875 /*****************************************************************************
876 * GetUserKey: get the user key
877 *****************************************************************************
878 * Retrieve the user key from the hard disk if available, otherwise generate
879 * it from the system key. If the key could be successfully generated, write
880 * it to the hard disk for future use.
881 *****************************************************************************/
882 static int GetUserKey( void *_p_drms, uint32_t *p_user_key )
883 {
884 static char const p_secret[] = "mUfnpognadfgf873";
885 struct drms_s *p_drms = (struct drms_s *)_p_drms;
886 struct aes_s aes;
887 struct shuffle_s shuffle;
888 uint32_t i, y;
889 uint32_t *p_sci_data;
890 uint32_t i_user, i_key;
891 uint32_t p_sys_key[ 4 ];
892 uint32_t i_sci_size, i_blocks, i_remaining;
893 uint32_t *p_sci0, *p_sci1, *p_buffer;
894 uint32_t p_sci_key[ 4 ];
895 char *psz_ipod;
896 int i_ret = -1;
897
898 if( !ReadUserKey( p_drms, p_user_key ) )
899 {
900 REVERSE( p_user_key, 4 );
901 return 0;
902 }
903
904 psz_ipod = getenv( "IPOD" );
905
906 if( GetSystemKey( p_sys_key, psz_ipod ? 1 : 0 ) )
907 {
908 return -1;
909 }
910
911 if( GetSCIData( psz_ipod, &p_sci_data, &i_sci_size ) )
912 {
913 return -1;
914 }
915
916 /* Phase 1: unscramble the SCI data using the system key and shuffle
917 * it using DoShuffle(). */
918
919 /* Skip the first 4 bytes (some sort of header). Decrypt the rest. */
920 i_blocks = (i_sci_size - 4) / 16;
921 i_remaining = (i_sci_size - 4) - (i_blocks * 16);
922 p_buffer = p_sci_data + 1;
923
924 /* Decrypt and shuffle our data at the same time */
925 InitAES( &aes, p_sys_key );
926 REVERSE( p_sys_key, 4 );
927 InitShuffle( &shuffle, p_sys_key );
928
929 memcpy( p_sci_key, p_secret, 16 );
930 REVERSE( p_sci_key, 4 );
931
932 while( i_blocks-- )
933 {
934 uint32_t p_tmp[ 4 ];
935
936 REVERSE( p_buffer, 4 );
937 DecryptAES( &aes, p_tmp, p_buffer );
938 BlockXOR( p_tmp, p_sci_key, p_tmp );
939
940 /* Use the previous scrambled data as the key for next block */
941 memcpy( p_sci_key, p_buffer, 16 );
942
943 /* Shuffle the decrypted data using a custom routine */
944 DoShuffle( &shuffle, p_tmp, 4 );
945
946 /* Copy this block back to p_buffer */
947 memcpy( p_buffer, p_tmp, 16 );
948
949 p_buffer += 4;
950 }
951
952 if( i_remaining >= 4 )
953 {
954 i_remaining /= 4;
955 REVERSE( p_buffer, i_remaining );
956 DoShuffle( &shuffle, p_buffer, i_remaining );
957 }
958
959 /* Phase 2: look for the user key in the generated data. I must admit I
960 * do not understand what is going on here, because it almost
961 * looks like we are browsing data that makes sense, even though
962 * the DoShuffle() part made it completely meaningless. */
963
964 y = 0;
965 REVERSE( p_sci_data + 5, 1 );
966 i = U32_AT( p_sci_data + 5 );
967 i_sci_size -= 22 * sizeof(uint32_t);
968 p_sci1 = p_sci_data + 22;
969 p_sci0 = NULL;
970
971 while( i_sci_size >= 20 && i > 0 )
972 {
973 if( p_sci0 == NULL )
974 {
975 i_sci_size -= 18 * sizeof(uint32_t);
976 if( i_sci_size < 20 )
977 {
978 break;
979 }
980
981 p_sci0 = p_sci1;
982 REVERSE( p_sci1 + 17, 1 );
983 y = U32_AT( p_sci1 + 17 );
984 p_sci1 += 18;
985 }
986
987 if( !y )
988 {
989 i--;
990 p_sci0 = NULL;
991 continue;
992 }
993
994 i_user = U32_AT( p_sci0 );
995 i_key = U32_AT( p_sci1 );
996 REVERSE( &i_user, 1 );
997 REVERSE( &i_key, 1 );
998 if( i_user == p_drms->i_user && ( ( i_key == p_drms->i_key ) ||
999 ( !p_drms->i_key && ( p_sci1 == (p_sci0 + 18) ) ) ) )
1000 {
1001 memcpy( p_user_key, p_sci1 + 1, 16 );
1002 REVERSE( p_sci1 + 1, 4 );
1003 WriteUserKey( p_drms, p_sci1 + 1 );
1004 i_ret = 0;
1005 break;
1006 }
1007
1008 y--;
1009 p_sci1 += 5;
1010 i_sci_size -= 5 * sizeof(uint32_t);
1011 }
1012
1013 free( p_sci_data );
1014
1015 return i_ret;
1016 }
1017
1018 /*****************************************************************************
1019 * GetSCIData: get SCI data from "SC Info.sidb"
1020 *****************************************************************************
1021 * Read SCI data from "\Apple Computer\iTunes\SC Info\SC Info.sidb"
1022 *****************************************************************************/
1023 static int GetSCIData( char *psz_ipod, uint32_t **pp_sci,
1024 uint32_t *pi_sci_size )
1025 {
1026 FILE *file;
1027 char *psz_path = NULL;
1028 char p_tmp[ PATH_MAX ];
1029 int i_ret = -1;
1030
1031 if( psz_ipod == NULL )
1032 {
1033 #ifdef _WIN32
1034 char *p_filename = "\\Apple Computer\\iTunes\\SC Info\\SC Info.sidb";
1035 typedef HRESULT (WINAPI *SHGETFOLDERPATH)( HWND, int, HANDLE, DWORD,
1036 LPSTR );
1037 HINSTANCE shfolder_dll = NULL;
1038 SHGETFOLDERPATH dSHGetFolderPath = NULL;
1039
1040 if( ( shfolder_dll = LoadLibrary( _T("SHFolder.dll") ) ) != NULL )
1041 {
1042 dSHGetFolderPath =
1043 (SHGETFOLDERPATH)GetProcAddress( shfolder_dll,
1044 _T("SHGetFolderPathA") );
1045 }
1046
1047 if( dSHGetFolderPath != NULL &&
1048 SUCCEEDED( dSHGetFolderPath( NULL, /*CSIDL_COMMON_APPDATA*/ 0x0023,
1049 NULL, 0, p_tmp ) ) )
1050 {
1051 strncat( p_tmp, p_filename, min( strlen( p_filename ),
1052 (sizeof(p_tmp)/sizeof(p_tmp[0]) - 1) -
1053 strlen( p_tmp ) ) );
1054 psz_path = p_tmp;
1055 }
1056
1057 if( shfolder_dll != NULL )
1058 {
1059 FreeLibrary( shfolder_dll );
1060 }
1061 #endif
1062 }
1063 else
1064 {
1065 #define ISCINFO "iSCInfo"
1066 if( strstr( psz_ipod, ISCINFO ) == NULL )
1067 {
1068 sprintf( p_tmp, /*sizeof(p_tmp)/sizeof(p_tmp[0]) - 1,*/
1069 "%s/iPod_Control/iTunes/" ISCINFO, psz_ipod );
1070 psz_path = p_tmp;
1071 }
1072 else
1073 {
1074 psz_path = psz_ipod;
1075 }
1076 }
1077
1078 if( psz_path == NULL )
1079 {
1080 return -1;
1081 }
1082
1083 file = fopen( psz_path, "r" );
1084 if( file != NULL )
1085 {
1086 struct stat st;
1087
1088 if( !fstat( fileno( file ), &st ) )
1089 {
1090 *pp_sci = malloc( st.st_size );
1091 if( *pp_sci != NULL )
1092 {
1093 if( fread( *pp_sci, 1, st.st_size,
1094 file ) == (size_t)st.st_size )
1095 {
1096 *pi_sci_size = st.st_size;
1097 i_ret = 0;
1098 }
1099 else
1100 {
1101 free( (void *)*pp_sci );
1102 *pp_sci = NULL;
1103 }
1104 }
1105 }
1106
1107 fclose( file );
1108 }
1109
1110 return i_ret;
1111 }
1112
1113 /*****************************************************************************
1114 * HashSystemInfo: hash system information
1115 *****************************************************************************
1116 * This function computes the MD5 hash of the C: hard drive serial number,
1117 * BIOS version, CPU type and Windows version.
1118 *****************************************************************************/
1119 static int HashSystemInfo( uint32_t *p_system_hash )
1120 {
1121 struct md5_s md5;
1122 int i_ret = 0;
1123
1124 #ifdef _WIN32
1125 HKEY i_key;
1126 unsigned int i;
1127 DWORD i_size;
1128 DWORD i_serial;
1129 LPBYTE p_reg_buf;
1130
1131 static LPCTSTR p_reg_keys[ 3 ][ 2 ] =
1132 {
1133 {
1134 _T("HARDWARE\\DESCRIPTION\\System"),
1135 _T("SystemBiosVersion")
1136 },
1137
1138 {
1139 _T("HARDWARE\\DESCRIPTION\\System\\CentralProcessor\\0"),
1140 _T("ProcessorNameString")
1141 },
1142
1143 {
1144 _T("SOFTWARE\\Microsoft\\Windows\\CurrentVersion"),
1145 _T("ProductId")
1146 }
1147 };
1148
1149 InitMD5( &md5 );
1150
1151 AddMD5( &md5, "cache-control", 13 );
1152 AddMD5( &md5, "Ethernet", 8 );
1153
1154 GetVolumeInformation( _T("C:\\"), NULL, 0, &i_serial,
1155 NULL, NULL, NULL, 0 );
1156 AddMD5( &md5, (uint8_t *)&i_serial, 4 );
1157
1158 for( i = 0; i < sizeof(p_reg_keys) / sizeof(p_reg_keys[ 0 ]); i++ )
1159 {
1160 if( RegOpenKeyEx( HKEY_LOCAL_MACHINE, p_reg_keys[ i ][ 0 ],
1161 0, KEY_READ, &i_key ) != ERROR_SUCCESS )
1162 {
1163 continue;
1164 }
1165
1166 if( RegQueryValueEx( i_key, p_reg_keys[ i ][ 1 ],
1167 NULL, NULL, NULL, &i_size ) != ERROR_SUCCESS )
1168 {
1169 RegCloseKey( i_key );
1170 continue;
1171 }
1172
1173 p_reg_buf = malloc( i_size );
1174
1175 if( p_reg_buf != NULL )
1176 {
1177 if( RegQueryValueEx( i_key, p_reg_keys[ i ][ 1 ],
1178 NULL, NULL, p_reg_buf,
1179 &i_size ) == ERROR_SUCCESS )
1180 {
1181 AddMD5( &md5, (uint8_t *)p_reg_buf, i_size );
1182 }
1183
1184 free( p_reg_buf );
1185 }
1186
1187 RegCloseKey( i_key );
1188 }
1189
1190 #else
1191 InitMD5( &md5 );
1192 i_ret = -1;
1193 #endif
1194
1195 EndMD5( &md5 );
1196 memcpy( p_system_hash, md5.p_digest, 16 );
1197
1198 return i_ret;
1199 }
1200
1201 /*****************************************************************************
1202 * GetiPodID: Get iPod ID
1203 *****************************************************************************
1204 * This function gets the iPod ID.
1205 *****************************************************************************/
1206 static int GetiPodID( int64_t *p_ipod_id )
1207 {
1208 int i_ret = -1;
1209
1210 #define PROD_NAME "iPod"
1211 #define VENDOR_NAME "Apple Computer, Inc."
1212
1213 char *psz_ipod_id = getenv( "IPODID" );
1214 if( psz_ipod_id != NULL )
1215 {
1216 #ifndef _WIN32
1217 *p_ipod_id = strtoll( psz_ipod_id, NULL, 16 );
1218 #else
1219 *p_ipod_id = strtol( psz_ipod_id, NULL, 16 );
1220 #endif
1221 return 0;
1222 }
1223
1224 #ifdef HAVE_IOKIT_IOKITLIB_H
1225 CFTypeRef value;
1226 mach_port_t port;
1227 io_object_t device;
1228 io_iterator_t iterator;
1229 CFMutableDictionaryRef matching_dic;
1230
1231 if( IOMasterPort( MACH_PORT_NULL, &port ) == KERN_SUCCESS )
1232 {
1233 if( ( matching_dic = IOServiceMatching( "IOFireWireUnit" ) ) != NULL )
1234 {
1235 CFDictionarySetValue( matching_dic,
1236 CFSTR("FireWire Vendor Name"),
1237 CFSTR(VENDOR_NAME) );
1238 CFDictionarySetValue( matching_dic,
1239 CFSTR("FireWire Product Name"),
1240 CFSTR(PROD_NAME) );
1241
1242 if( IOServiceGetMatchingServices( port, matching_dic,
1243 &iterator ) == KERN_SUCCESS )
1244 {
1245 while( ( device = IOIteratorNext( iterator ) ) != NULL )
1246 {
1247 value = IORegistryEntryCreateCFProperty( device,
1248 CFSTR("GUID"), kCFAllocatorDefault, kNilOptions );
1249
1250 if( value != NULL )
1251 {
1252 if( CFGetTypeID( value ) == CFNumberGetTypeID() )
1253 {
1254 int64_t i_ipod_id;
1255 CFNumberGetValue( (CFNumberRef)value,
1256 kCFNumberLongLongType,
1257 &i_ipod_id );
1258 *p_ipod_id = i_ipod_id;
1259 i_ret = 0;
1260 }
1261
1262 CFRelease( value );
1263 }
1264
1265 IOObjectRelease( device );
1266
1267 if( !i_ret ) break;
1268 }
1269
1270 IOObjectRelease( iterator );
1271 }
1272 }
1273
1274 mach_port_deallocate( mach_task_self(), port );
1275 }
1276
1277 #elif HAVE_SYSFS_LIBSYSFS_H
1278 struct sysfs_bus *bus = NULL;
1279 struct dlist *devlist = NULL;
1280 struct dlist *attributes = NULL;
1281 struct sysfs_device *curdev = NULL;
1282 struct sysfs_attribute *curattr = NULL;
1283
1284 bus = sysfs_open_bus( "ieee1394" );
1285 if( bus != NULL )
1286 {
1287 devlist = sysfs_get_bus_devices( bus );
1288 if( devlist != NULL )
1289 {
1290 dlist_for_each_data( devlist, curdev, struct sysfs_device )
1291 {
1292 attributes = sysfs_get_device_attributes( curdev );
1293 if( attributes != NULL )
1294 {
1295 dlist_for_each_data( attributes, curattr,
1296 struct sysfs_attribute )
1297 {
1298 if( ( strcmp( curattr->name, "model_name" ) == 0 ) &&
1299 ( strncmp( curattr->value, PROD_NAME,
1300 sizeof(PROD_NAME) ) == 0 ) )
1301 {
1302 *p_ipod_id = strtoll( curdev->name, NULL, 16 );
1303 i_ret = 0;
1304 break;
1305 }
1306 }
1307 }
1308
1309 if( !i_ret ) break;
1310 }
1311 }
1312
1313 sysfs_close_bus( bus );
1314 }
1315 #endif
1316
1317 return i_ret;
1318 }
1319
1320 #endif
+0
-30
common/mp4ff/drms.h less more
0 /*****************************************************************************
1 * drms.h : DRMS
2 *****************************************************************************
3 * Copyright (C) 2004 VideoLAN
4 * $Id: drms.h,v 1.7 2005/02/01 13:15:55 menno Exp $
5 *
6 * Author: Jon Lech Johansen <jon-vl@nanocrew.net>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
21 *****************************************************************************/
22
23 extern void *drms_alloc( char *psz_homedir );
24 extern void drms_free( void *p_drms );
25 extern int drms_init( void *p_drms, uint32_t i_type,
26 uint8_t *p_info, uint32_t i_len );
27 extern void drms_decrypt( void *p_drms, uint32_t *p_buffer,
28 uint32_t i_len );
29
+0
-288
common/mp4ff/drmstables.h less more
0 /*****************************************************************************
1 * drmstables.h : AES/Rijndael block cipher and miscellaneous tables
2 *****************************************************************************
3 * Copyright (C) 2004 VideoLAN
4 * $Id: drmstables.h,v 1.6 2005/02/01 13:15:55 menno Exp $
5 *
6 * Author: Jon Lech Johansen <jon-vl@nanocrew.net>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
21 *****************************************************************************/
22
23 #define AES_ROR( x, n ) (((x) << (32-(n))) | ((x) >> (n)))
24
25 #define AES_XOR_ROR( p_table, p_tmp ) \
26 ( p_table[ (p_tmp[ t > 2 ? t - 3 : t + 1 ] >> 24) & 0xFF ] \
27 ^ AES_ROR( p_table[ (p_tmp[ t > 1 ? t - 2 : t + 2 ] >> 16) & 0xFF ], 8 ) \
28 ^ AES_ROR( p_table[ (p_tmp[ t > 0 ? t - 1 : t + 3 ] >> 8) & 0xFF ], 16 ) \
29 ^ AES_ROR( p_table[ p_tmp[ t ] & 0xFF ], 24 ) )
30
31 #define AES_KEY_COUNT 10
32
33 static uint32_t const p_aes_table[ AES_KEY_COUNT ] =
34 {
35 0x00000001, 0x00000002, 0x00000004, 0x00000008, 0x00000010, 0x00000020,
36 0x00000040, 0x00000080, 0x0000001b, 0x00000036
37 };
38
39 static uint32_t const p_aes_encrypt[ 256 ] =
40 {
41 0x63000000, 0x7c000000, 0x77000000, 0x7b000000, 0xf2000000, 0x6b000000,
42 0x6f000000, 0xc5000000, 0x30000000, 0x01000000, 0x67000000, 0x2b000000,
43 0xfe000000, 0xd7000000, 0xab000000, 0x76000000, 0xca000000, 0x82000000,
44 0xc9000000, 0x7d000000, 0xfa000000, 0x59000000, 0x47000000, 0xf0000000,
45 0xad000000, 0xd4000000, 0xa2000000, 0xaf000000, 0x9c000000, 0xa4000000,
46 0x72000000, 0xc0000000, 0xb7000000, 0xfd000000, 0x93000000, 0x26000000,
47 0x36000000, 0x3f000000, 0xf7000000, 0xcc000000, 0x34000000, 0xa5000000,
48 0xe5000000, 0xf1000000, 0x71000000, 0xd8000000, 0x31000000, 0x15000000,
49 0x04000000, 0xc7000000, 0x23000000, 0xc3000000, 0x18000000, 0x96000000,
50 0x05000000, 0x9a000000, 0x07000000, 0x12000000, 0x80000000, 0xe2000000,
51 0xeb000000, 0x27000000, 0xb2000000, 0x75000000, 0x09000000, 0x83000000,
52 0x2c000000, 0x1a000000, 0x1b000000, 0x6e000000, 0x5a000000, 0xa0000000,
53 0x52000000, 0x3b000000, 0xd6000000, 0xb3000000, 0x29000000, 0xe3000000,
54 0x2f000000, 0x84000000, 0x53000000, 0xd1000000, 0x00000000, 0xed000000,
55 0x20000000, 0xfc000000, 0xb1000000, 0x5b000000, 0x6a000000, 0xcb000000,
56 0xbe000000, 0x39000000, 0x4a000000, 0x4c000000, 0x58000000, 0xcf000000,
57 0xd0000000, 0xef000000, 0xaa000000, 0xfb000000, 0x43000000, 0x4d000000,
58 0x33000000, 0x85000000, 0x45000000, 0xf9000000, 0x02000000, 0x7f000000,
59 0x50000000, 0x3c000000, 0x9f000000, 0xa8000000, 0x51000000, 0xa3000000,
60 0x40000000, 0x8f000000, 0x92000000, 0x9d000000, 0x38000000, 0xf5000000,
61 0xbc000000, 0xb6000000, 0xda000000, 0x21000000, 0x10000000, 0xff000000,
62 0xf3000000, 0xd2000000, 0xcd000000, 0x0c000000, 0x13000000, 0xec000000,
63 0x5f000000, 0x97000000, 0x44000000, 0x17000000, 0xc4000000, 0xa7000000,
64 0x7e000000, 0x3d000000, 0x64000000, 0x5d000000, 0x19000000, 0x73000000,
65 0x60000000, 0x81000000, 0x4f000000, 0xdc000000, 0x22000000, 0x2a000000,
66 0x90000000, 0x88000000, 0x46000000, 0xee000000, 0xb8000000, 0x14000000,
67 0xde000000, 0x5e000000, 0x0b000000, 0xdb000000, 0xe0000000, 0x32000000,
68 0x3a000000, 0x0a000000, 0x49000000, 0x06000000, 0x24000000, 0x5c000000,
69 0xc2000000, 0xd3000000, 0xac000000, 0x62000000, 0x91000000, 0x95000000,
70 0xe4000000, 0x79000000, 0xe7000000, 0xc8000000, 0x37000000, 0x6d000000,
71 0x8d000000, 0xd5000000, 0x4e000000, 0xa9000000, 0x6c000000, 0x56000000,
72 0xf4000000, 0xea000000, 0x65000000, 0x7a000000, 0xae000000, 0x08000000,
73 0xba000000, 0x78000000, 0x25000000, 0x2e000000, 0x1c000000, 0xa6000000,
74 0xb4000000, 0xc6000000, 0xe8000000, 0xdd000000, 0x74000000, 0x1f000000,
75 0x4b000000, 0xbd000000, 0x8b000000, 0x8a000000, 0x70000000, 0x3e000000,
76 0xb5000000, 0x66000000, 0x48000000, 0x03000000, 0xf6000000, 0x0e000000,
77 0x61000000, 0x35000000, 0x57000000, 0xb9000000, 0x86000000, 0xc1000000,
78 0x1d000000, 0x9e000000, 0xe1000000, 0xf8000000, 0x98000000, 0x11000000,
79 0x69000000, 0xd9000000, 0x8e000000, 0x94000000, 0x9b000000, 0x1e000000,
80 0x87000000, 0xe9000000, 0xce000000, 0x55000000, 0x28000000, 0xdf000000,
81 0x8c000000, 0xa1000000, 0x89000000, 0x0d000000, 0xbf000000, 0xe6000000,
82 0x42000000, 0x68000000, 0x41000000, 0x99000000, 0x2d000000, 0x0f000000,
83 0xb0000000, 0x54000000, 0xbb000000, 0x16000000
84 };
85
86 static uint32_t const p_aes_itable[ 256 ] =
87 {
88 0x5150a7f4, 0x7e536541, 0x1ac3a417, 0x3a965e27, 0x3bcb6bab, 0x1ff1459d,
89 0xacab58fa, 0x4b9303e3, 0x2055fa30, 0xadf66d76, 0x889176cc, 0xf5254c02,
90 0x4ffcd7e5, 0xc5d7cb2a, 0x26804435, 0xb58fa362, 0xde495ab1, 0x25671bba,
91 0x45980eea, 0x5de1c0fe, 0xc302752f, 0x8112f04c, 0x8da39746, 0x6bc6f9d3,
92 0x03e75f8f, 0x15959c92, 0xbfeb7a6d, 0x95da5952, 0xd42d83be, 0x58d32174,
93 0x492969e0, 0x8e44c8c9, 0x756a89c2, 0xf478798e, 0x996b3e58, 0x27dd71b9,
94 0xbeb64fe1, 0xf017ad88, 0xc966ac20, 0x7db43ace, 0x63184adf, 0xe582311a,
95 0x97603351, 0x62457f53, 0xb1e07764, 0xbb84ae6b, 0xfe1ca081, 0xf9942b08,
96 0x70586848, 0x8f19fd45, 0x94876cde, 0x52b7f87b, 0xab23d373, 0x72e2024b,
97 0xe3578f1f, 0x662aab55, 0xb20728eb, 0x2f03c2b5, 0x869a7bc5, 0xd3a50837,
98 0x30f28728, 0x23b2a5bf, 0x02ba6a03, 0xed5c8216, 0x8a2b1ccf, 0xa792b479,
99 0xf3f0f207, 0x4ea1e269, 0x65cdf4da, 0x06d5be05, 0xd11f6234, 0xc48afea6,
100 0x349d532e, 0xa2a055f3, 0x0532e18a, 0xa475ebf6, 0x0b39ec83, 0x40aaef60,
101 0x5e069f71, 0xbd51106e, 0x3ef98a21, 0x963d06dd, 0xddae053e, 0x4d46bde6,
102 0x91b58d54, 0x71055dc4, 0x046fd406, 0x60ff1550, 0x1924fb98, 0xd697e9bd,
103 0x89cc4340, 0x67779ed9, 0xb0bd42e8, 0x07888b89, 0xe7385b19, 0x79dbeec8,
104 0xa1470a7c, 0x7ce90f42, 0xf8c91e84, 0x00000000, 0x09838680, 0x3248ed2b,
105 0x1eac7011, 0x6c4e725a, 0xfdfbff0e, 0x0f563885, 0x3d1ed5ae, 0x3627392d,
106 0x0a64d90f, 0x6821a65c, 0x9bd1545b, 0x243a2e36, 0x0cb1670a, 0x930fe757,
107 0xb4d296ee, 0x1b9e919b, 0x804fc5c0, 0x61a220dc, 0x5a694b77, 0x1c161a12,
108 0xe20aba93, 0xc0e52aa0, 0x3c43e022, 0x121d171b, 0x0e0b0d09, 0xf2adc78b,
109 0x2db9a8b6, 0x14c8a91e, 0x578519f1, 0xaf4c0775, 0xeebbdd99, 0xa3fd607f,
110 0xf79f2601, 0x5cbcf572, 0x44c53b66, 0x5b347efb, 0x8b762943, 0xcbdcc623,
111 0xb668fced, 0xb863f1e4, 0xd7cadc31, 0x42108563, 0x13402297, 0x842011c6,
112 0x857d244a, 0xd2f83dbb, 0xae1132f9, 0xc76da129, 0x1d4b2f9e, 0xdcf330b2,
113 0x0dec5286, 0x77d0e3c1, 0x2b6c16b3, 0xa999b970, 0x11fa4894, 0x472264e9,
114 0xa8c48cfc, 0xa01a3ff0, 0x56d82c7d, 0x22ef9033, 0x87c74e49, 0xd9c1d138,
115 0x8cfea2ca, 0x98360bd4, 0xa6cf81f5, 0xa528de7a, 0xda268eb7, 0x3fa4bfad,
116 0x2ce49d3a, 0x500d9278, 0x6a9bcc5f, 0x5462467e, 0xf6c2138d, 0x90e8b8d8,
117 0x2e5ef739, 0x82f5afc3, 0x9fbe805d, 0x697c93d0, 0x6fa92dd5, 0xcfb31225,
118 0xc83b99ac, 0x10a77d18, 0xe86e639c, 0xdb7bbb3b, 0xcd097826, 0x6ef41859,
119 0xec01b79a, 0x83a89a4f, 0xe6656e95, 0xaa7ee6ff, 0x2108cfbc, 0xefe6e815,
120 0xbad99be7, 0x4ace366f, 0xead4099f, 0x29d67cb0, 0x31afb2a4, 0x2a31233f,
121 0xc63094a5, 0x35c066a2, 0x7437bc4e, 0xfca6ca82, 0xe0b0d090, 0x3315d8a7,
122 0xf14a9804, 0x41f7daec, 0x7f0e50cd, 0x172ff691, 0x768dd64d, 0x434db0ef,
123 0xcc544daa, 0xe4df0496, 0x9ee3b5d1, 0x4c1b886a, 0xc1b81f2c, 0x467f5165,
124 0x9d04ea5e, 0x015d358c, 0xfa737487, 0xfb2e410b, 0xb35a1d67, 0x9252d2db,
125 0xe9335610, 0x6d1347d6, 0x9a8c61d7, 0x377a0ca1, 0x598e14f8, 0xeb893c13,
126 0xceee27a9, 0xb735c961, 0xe1ede51c, 0x7a3cb147, 0x9c59dfd2, 0x553f73f2,
127 0x1879ce14, 0x73bf37c7, 0x53eacdf7, 0x5f5baafd, 0xdf146f3d, 0x7886db44,
128 0xca81f3af, 0xb93ec468, 0x382c3424, 0xc25f40a3, 0x1672c31d, 0xbc0c25e2,
129 0x288b493c, 0xff41950d, 0x397101a8, 0x08deb30c, 0xd89ce4b4, 0x6490c156,
130 0x7b6184cb, 0xd570b632, 0x48745c6c, 0xd04257b8
131 };
132
133 static uint32_t const p_aes_decrypt[ 256 ] =
134 {
135 0x52000000, 0x09000000, 0x6a000000, 0xd5000000, 0x30000000, 0x36000000,
136 0xa5000000, 0x38000000, 0xbf000000, 0x40000000, 0xa3000000, 0x9e000000,
137 0x81000000, 0xf3000000, 0xd7000000, 0xfb000000, 0x7c000000, 0xe3000000,
138 0x39000000, 0x82000000, 0x9b000000, 0x2f000000, 0xff000000, 0x87000000,
139 0x34000000, 0x8e000000, 0x43000000, 0x44000000, 0xc4000000, 0xde000000,
140 0xe9000000, 0xcb000000, 0x54000000, 0x7b000000, 0x94000000, 0x32000000,
141 0xa6000000, 0xc2000000, 0x23000000, 0x3d000000, 0xee000000, 0x4c000000,
142 0x95000000, 0x0b000000, 0x42000000, 0xfa000000, 0xc3000000, 0x4e000000,
143 0x08000000, 0x2e000000, 0xa1000000, 0x66000000, 0x28000000, 0xd9000000,
144 0x24000000, 0xb2000000, 0x76000000, 0x5b000000, 0xa2000000, 0x49000000,
145 0x6d000000, 0x8b000000, 0xd1000000, 0x25000000, 0x72000000, 0xf8000000,
146 0xf6000000, 0x64000000, 0x86000000, 0x68000000, 0x98000000, 0x16000000,
147 0xd4000000, 0xa4000000, 0x5c000000, 0xcc000000, 0x5d000000, 0x65000000,
148 0xb6000000, 0x92000000, 0x6c000000, 0x70000000, 0x48000000, 0x50000000,
149 0xfd000000, 0xed000000, 0xb9000000, 0xda000000, 0x5e000000, 0x15000000,
150 0x46000000, 0x57000000, 0xa7000000, 0x8d000000, 0x9d000000, 0x84000000,
151 0x90000000, 0xd8000000, 0xab000000, 0x00000000, 0x8c000000, 0xbc000000,
152 0xd3000000, 0x0a000000, 0xf7000000, 0xe4000000, 0x58000000, 0x05000000,
153 0xb8000000, 0xb3000000, 0x45000000, 0x06000000, 0xd0000000, 0x2c000000,
154 0x1e000000, 0x8f000000, 0xca000000, 0x3f000000, 0x0f000000, 0x02000000,
155 0xc1000000, 0xaf000000, 0xbd000000, 0x03000000, 0x01000000, 0x13000000,
156 0x8a000000, 0x6b000000, 0x3a000000, 0x91000000, 0x11000000, 0x41000000,
157 0x4f000000, 0x67000000, 0xdc000000, 0xea000000, 0x97000000, 0xf2000000,
158 0xcf000000, 0xce000000, 0xf0000000, 0xb4000000, 0xe6000000, 0x73000000,
159 0x96000000, 0xac000000, 0x74000000, 0x22000000, 0xe7000000, 0xad000000,
160 0x35000000, 0x85000000, 0xe2000000, 0xf9000000, 0x37000000, 0xe8000000,
161 0x1c000000, 0x75000000, 0xdf000000, 0x6e000000, 0x47000000, 0xf1000000,
162 0x1a000000, 0x71000000, 0x1d000000, 0x29000000, 0xc5000000, 0x89000000,
163 0x6f000000, 0xb7000000, 0x62000000, 0x0e000000, 0xaa000000, 0x18000000,
164 0xbe000000, 0x1b000000, 0xfc000000, 0x56000000, 0x3e000000, 0x4b000000,
165 0xc6000000, 0xd2000000, 0x79000000, 0x20000000, 0x9a000000, 0xdb000000,
166 0xc0000000, 0xfe000000, 0x78000000, 0xcd000000, 0x5a000000, 0xf4000000,
167 0x1f000000, 0xdd000000, 0xa8000000, 0x33000000, 0x88000000, 0x07000000,
168 0xc7000000, 0x31000000, 0xb1000000, 0x12000000, 0x10000000, 0x59000000,
169 0x27000000, 0x80000000, 0xec000000, 0x5f000000, 0x60000000, 0x51000000,
170 0x7f000000, 0xa9000000, 0x19000000, 0xb5000000, 0x4a000000, 0x0d000000,
171 0x2d000000, 0xe5000000, 0x7a000000, 0x9f000000, 0x93000000, 0xc9000000,
172 0x9c000000, 0xef000000, 0xa0000000, 0xe0000000, 0x3b000000, 0x4d000000,
173 0xae000000, 0x2a000000, 0xf5000000, 0xb0000000, 0xc8000000, 0xeb000000,
174 0xbb000000, 0x3c000000, 0x83000000, 0x53000000, 0x99000000, 0x61000000,
175 0x17000000, 0x2b000000, 0x04000000, 0x7e000000, 0xba000000, 0x77000000,
176 0xd6000000, 0x26000000, 0xe1000000, 0x69000000, 0x14000000, 0x63000000,
177 0x55000000, 0x21000000, 0x0c000000, 0x7d000000
178 };
179
180 static uint16_t const p_shuffle_xor[ 256 ] =
181 {
182 0x00d1, 0x0315, 0x1a32, 0x19ec, 0x1bbb, 0x1d6f, 0x14fe, 0x0e9e,
183 0x029e, 0x1b8f, 0x0b70, 0x033a, 0x188e, 0x1d18, 0x0bd8, 0x0edb,
184 0x0c64, 0x1c2b, 0x149c, 0x047b, 0x1064, 0x1c7c, 0x118d, 0x1355,
185 0x0ae5, 0x0f18, 0x016f, 0x17d6, 0x1595, 0x0084, 0x0616, 0x1ccd,
186 0x1d94, 0x0618, 0x182c, 0x195b, 0x196d, 0x0394, 0x07db, 0x0287,
187 0x1636, 0x0b81, 0x1519, 0x0df9, 0x1ba3, 0x1cc3, 0x0ee2, 0x1434,
188 0x1457, 0x0ced, 0x0f7d, 0x0d7b, 0x0b9e, 0x0d13, 0x13d7, 0x18d0,
189 0x1259, 0x1977, 0x0606, 0x1e80, 0x05f2, 0x06b8, 0x1f07, 0x1365,
190 0x0334, 0x0e30, 0x195f, 0x15f1, 0x058e, 0x0aa8, 0x045a, 0x0465,
191 0x0b3e, 0x071e, 0x0a36, 0x105c, 0x01ac, 0x1a1e, 0x04e4, 0x056b,
192 0x12bf, 0x0da2, 0x0b41, 0x0eaf, 0x034f, 0x0181, 0x04e2, 0x002b,
193 0x12e6, 0x01be, 0x10e8, 0x128f, 0x0eb2, 0x1369, 0x05be, 0x1a59,
194 0x117e, 0x047c, 0x1e86, 0x056a, 0x0da7, 0x0d61, 0x03fc, 0x1e6e,
195 0x1d0c, 0x1e6d, 0x14bf, 0x0c50, 0x063a, 0x1b47, 0x17ae, 0x1321,
196 0x041b, 0x0a24, 0x0d4d, 0x1f2b, 0x1cb6, 0x1bed, 0x1549, 0x03a7,
197 0x0254, 0x006c, 0x0c9e, 0x0f73, 0x006c, 0x0008, 0x11f9, 0x0dd5,
198 0x0bcf, 0x0af9, 0x1dfe, 0x0341, 0x0e49, 0x0d38, 0x17cb, 0x1513,
199 0x0e96, 0x00ed, 0x0556, 0x1b28, 0x100c, 0x19d8, 0x14fa, 0x028c,
200 0x1c60, 0x1232, 0x13d3, 0x0d00, 0x1534, 0x192c, 0x14b5, 0x1cf2,
201 0x0504, 0x0b5b, 0x1ecf, 0x0423, 0x183b, 0x06b0, 0x169e, 0x1066,
202 0x04cb, 0x08a2, 0x1b4a, 0x1254, 0x198d, 0x1044, 0x0236, 0x1bd8,
203 0x18a1, 0x03ff, 0x1a0d, 0x0277, 0x0c2d, 0x17c9, 0x007c, 0x116e,
204 0x048a, 0x1eaf, 0x0922, 0x0c45, 0x0766, 0x1e5f, 0x1a28, 0x0120,
205 0x1c15, 0x034c, 0x0508, 0x0e73, 0x0879, 0x0441, 0x09ae, 0x132f,
206 0x14fe, 0x0413, 0x0a9d, 0x1727, 0x01d7, 0x1a2b, 0x0474, 0x18f0,
207 0x1f3b, 0x14f5, 0x1071, 0x0895, 0x1071, 0x18ff, 0x18e3, 0x0eb9,
208 0x0ba9, 0x0961, 0x1599, 0x019e, 0x1d12, 0x1baa, 0x1e94, 0x1921,
209 0x14dc, 0x124e, 0x0a25, 0x03ab, 0x1cc0, 0x1ebb, 0x0b4b, 0x16e5,
210 0x11ea, 0x0d78, 0x1bb3, 0x1ba7, 0x1510, 0x1b7b, 0x0c64, 0x1995,
211 0x1a58, 0x1651, 0x1964, 0x147a, 0x15f2, 0x11bb, 0x1654, 0x166e,
212 0x0ea9, 0x1de1, 0x1443, 0x13c5, 0x00e1, 0x0b2f, 0x0b6f, 0x0a37,
213 0x18ac, 0x08e6, 0x06f0, 0x136e, 0x0853, 0x0b2e, 0x0813, 0x10d6
214 };
215
216 static uint16_t const p_shuffle_sub[ 256 ] =
217 {
218 0x067a, 0x0c7d, 0x0b4f, 0x127d, 0x0bd6, 0x04ac, 0x16e0, 0x1730,
219 0x0587, 0x0afb, 0x1ac3, 0x0120, 0x14b5, 0x0f67, 0x11de, 0x0961,
220 0x1127, 0x1a68, 0x07f0, 0x17d0, 0x1a6f, 0x1f3b, 0x01ef, 0x0919,
221 0x131e, 0x0f90, 0x19e9, 0x18a8, 0x0cb2, 0x1ad0, 0x0c66, 0x0378,
222 0x03b0, 0x01be, 0x1866, 0x1159, 0x197c, 0x1105, 0x010b, 0x0353,
223 0x1abb, 0x09a6, 0x028a, 0x1bad, 0x1b20, 0x0455, 0x0f57, 0x0588,
224 0x1491, 0x0a1d, 0x0f04, 0x0650, 0x191e, 0x1e0e, 0x174b, 0x016b,
225 0x051f, 0x0532, 0x00df, 0x1aea, 0x0005, 0x0e1b, 0x0ff6, 0x08d8,
226 0x14b4, 0x086a, 0x0c20, 0x0149, 0x1971, 0x0f26, 0x1852, 0x017d,
227 0x1228, 0x0352, 0x0a44, 0x1330, 0x18df, 0x1e38, 0x01bc, 0x0bac,
228 0x1a48, 0x021f, 0x02f7, 0x0c31, 0x0bc4, 0x1e75, 0x105c, 0x13e3,
229 0x0b20, 0x03a1, 0x1af3, 0x1a36, 0x0e34, 0x181f, 0x09bd, 0x122b,
230 0x0ee0, 0x163b, 0x0be7, 0x103d, 0x1075, 0x1e9d, 0x02af, 0x0ba2,
231 0x1daa, 0x0cf1, 0x04b6, 0x0598, 0x06a1, 0x0d33, 0x1cfe, 0x04ee,
232 0x1bad, 0x07c8, 0x1a48, 0x05e6, 0x031f, 0x0e0a, 0x0326, 0x1650,
233 0x0526, 0x0b4e, 0x08fc, 0x0e4d, 0x0832, 0x06ea, 0x09bf, 0x0993,
234 0x09eb, 0x0f31, 0x071b, 0x14d5, 0x11ca, 0x0722, 0x120d, 0x014c,
235 0x1993, 0x0ae4, 0x1ccb, 0x04e9, 0x0aee, 0x1708, 0x0c3d, 0x12f2,
236 0x1a19, 0x07c1, 0x05a7, 0x0744, 0x1606, 0x1a9b, 0x042d, 0x1bfc,
237 0x1841, 0x0c3c, 0x0ffe, 0x1ab1, 0x1416, 0x18a9, 0x0320, 0x1ec2,
238 0x0ae7, 0x11c6, 0x124a, 0x11df, 0x0f81, 0x06cf, 0x0ed9, 0x0253,
239 0x1d2b, 0x0349, 0x0805, 0x08b3, 0x1052, 0x12cf, 0x0a44, 0x0ea6,
240 0x03bf, 0x1d90, 0x0ef8, 0x0657, 0x156d, 0x0405, 0x10be, 0x091f,
241 0x1c82, 0x1725, 0x19ef, 0x0b8c, 0x04d9, 0x02c7, 0x025a, 0x1b89,
242 0x0f5c, 0x013d, 0x02f7, 0x12e3, 0x0bc5, 0x1b56, 0x0848, 0x0239,
243 0x0fcf, 0x03a4, 0x092d, 0x1354, 0x1d83, 0x01bd, 0x071a, 0x0af1,
244 0x0875, 0x0793, 0x1b41, 0x1782, 0x0def, 0x1d20, 0x13be, 0x0095,
245 0x1650, 0x19d4, 0x0de3, 0x0980, 0x18f2, 0x0ca3, 0x0098, 0x149a,
246 0x0b81, 0x0ad2, 0x1bba, 0x1a02, 0x027b, 0x1906, 0x07f5, 0x1cae,
247 0x0c3f, 0x02f6, 0x1298, 0x175e, 0x15b2, 0x13d8, 0x14cc, 0x161a,
248 0x0a42, 0x15f3, 0x0870, 0x1c1d, 0x1203, 0x18b1, 0x1738, 0x1954,
249 0x1143, 0x1ae8, 0x1d9d, 0x155b, 0x11e8, 0x0ed9, 0x06f7, 0x04ca
250 };
251
252 static uint16_t const p_shuffle_add[ 256 ] =
253 {
254 0x0706, 0x175a, 0x0def, 0x1e72, 0x0297, 0x1b0e, 0x1d5a, 0x15b8,
255 0x13e2, 0x1347, 0x10c6, 0x0b4f, 0x0629, 0x0a75, 0x0a9b, 0x0f55,
256 0x1a69, 0x09bf, 0x0ba6, 0x1582, 0x1086, 0x1921, 0x01cb, 0x1c6a,
257 0x0ff5, 0x00f7, 0x0a67, 0x0a1e, 0x1838, 0x0196, 0x10d6, 0x0c7a,
258 0x180e, 0x038d, 0x1add, 0x0684, 0x154a, 0x0ab0, 0x18a4, 0x0d73,
259 0x1641, 0x0ec6, 0x09f1, 0x1a62, 0x0414, 0x162a, 0x194e, 0x1ec9,
260 0x022f, 0x0296, 0x1104, 0x14fc, 0x096c, 0x1d02, 0x09bd, 0x027c,
261 0x080e, 0x1324, 0x128c, 0x0dc1, 0x00b9, 0x17f2, 0x0cbc, 0x0f97,
262 0x1b93, 0x1c3c, 0x0415, 0x0395, 0x0c7a, 0x06cc, 0x0d4b, 0x16e2,
263 0x04a2, 0x0dab, 0x1228, 0x012b, 0x0896, 0x0012, 0x1cd6, 0x1dac,
264 0x080d, 0x0446, 0x047a, 0x00ad, 0x029e, 0x0686, 0x17c3, 0x1466,
265 0x0d16, 0x1896, 0x076e, 0x00cd, 0x17dc, 0x1e9f, 0x1a7c, 0x02bb,
266 0x0d06, 0x112b, 0x14cb, 0x0a03, 0x1541, 0x1290, 0x0f6d, 0x1503,
267 0x084b, 0x0382, 0x1a3f, 0x0371, 0x1977, 0x0b67, 0x0cad, 0x1df8,
268 0x1ce3, 0x1306, 0x13f8, 0x1163, 0x1b0b, 0x00bd, 0x0bf0, 0x1a4f,
269 0x16f7, 0x0b4f, 0x0cf8, 0x1254, 0x0541, 0x100d, 0x0296, 0x0410,
270 0x1a2b, 0x1169, 0x17d9, 0x0819, 0x03d6, 0x0d03, 0x194d, 0x184a,
271 0x07ca, 0x1989, 0x0fad, 0x011c, 0x1c71, 0x0ef6, 0x0dc8, 0x0f2f,
272 0x0fa5, 0x11be, 0x0f3b, 0x1d52, 0x0de2, 0x016e, 0x1ad1, 0x0c4a,
273 0x1bc2, 0x0ac9, 0x1485, 0x1bee, 0x0949, 0x1a79, 0x1894, 0x12bb,
274 0x17b6, 0x14f5, 0x16b1, 0x142c, 0x1301, 0x03ef, 0x16ff, 0x0d37,
275 0x0d78, 0x01ff, 0x00d6, 0x1053, 0x1a2a, 0x0f61, 0x1352, 0x0c7f,
276 0x137f, 0x09c4, 0x1d96, 0x021d, 0x1037, 0x1b19, 0x10ef, 0x14e4,
277 0x02a0, 0x0236, 0x0a5d, 0x1519, 0x141c, 0x1399, 0x007e, 0x1e74,
278 0x0941, 0x1b3c, 0x0062, 0x0371, 0x09ad, 0x08e8, 0x0a24, 0x0b97,
279 0x1ed2, 0x0889, 0x136b, 0x0006, 0x1c4c, 0x0444, 0x06f8, 0x0dfb,
280 0x1d0f, 0x198d, 0x0700, 0x0afc, 0x1781, 0x12f3, 0x10da, 0x1f19,
281 0x1055, 0x0dc9, 0x1860, 0x012b, 0x05bf, 0x082d, 0x0c17, 0x1941,
282 0x0359, 0x1232, 0x104c, 0x0762, 0x0897, 0x1d6c, 0x030f, 0x1a36,
283 0x16b0, 0x094d, 0x1782, 0x036f, 0x0eea, 0x06e6, 0x0d00, 0x0187,
284 0x17e2, 0x05e5, 0x19fa, 0x1950, 0x146a, 0x0b2a, 0x0512, 0x0ee0,
285 0x1e27, 0x112d, 0x1df0, 0x0b13, 0x0378, 0x1dd0, 0x00c1, 0x01e6
286 };
287
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: mp4atom.c,v 1.25 2007/11/01 12:33:29 menno Exp $
27 ** $Id: mp4atom.c,v 1.29 2009/01/19 23:56:30 menno Exp $
2828 **/
2929
3030 #include <stdlib.h>
3232 #include "config.h"
3333 #else
3434 #include <tchar.h>
35 #ifdef ITUNES_DRM
36 #include <shlobj.h>
37 #endif
3835 #include <windows.h>
3936 #endif
4037 #ifdef HAVE_GETPWUID
4542 #endif
4643 #include "mp4ffint.h"
4744
48 #include "drms.h"
45 #define COPYRIGHT_SYMBOL ((int8_t)0xA9)
4946
5047 /* parse atom header size */
5148 static int32_t mp4ff_atom_get_size(const int8_t *data)
110107 return ATOM_TRACK;
111108 else if (mp4ff_atom_compare(a,b,c,d, 't','m','p','o'))
112109 return ATOM_TEMPO;
110 else if (mp4ff_atom_compare(a,b,c,d, 't','v','n','n'))
111 return ATOM_NETWORK;
112 else if (mp4ff_atom_compare(a,b,c,d, 't','v','s','h'))
113 return ATOM_SHOW;
114 else if (mp4ff_atom_compare(a,b,c,d, 't','v','e','n'))
115 return ATOM_EPISODENAME;
116 else if (mp4ff_atom_compare(a,b,c,d, 't','v','s','n'))
117 return ATOM_SEASON;
118 else if (mp4ff_atom_compare(a,b,c,d, 't','v','e','s'))
119 return ATOM_EPISODE;
113120 } else if (a == 's') {
114121 if (mp4ff_atom_compare(a,b,c,d, 's','t','b','l'))
115122 return ATOM_STBL;
133140 return ATOM_SINF;
134141 else if (mp4ff_atom_compare(a,b,c,d, 's','c','h','i'))
135142 return ATOM_SCHI;
136 } else if (a == '©') {
137 if (mp4ff_atom_compare(a,b,c,d, '©','n','a','m'))
143 else if (mp4ff_atom_compare(a,b,c,d, 's','o','n','m'))
144 return ATOM_SORTTITLE;
145 else if (mp4ff_atom_compare(a,b,c,d, 's','o','a','l'))
146 return ATOM_SORTALBUM;
147 else if (mp4ff_atom_compare(a,b,c,d, 's','o','a','r'))
148 return ATOM_SORTARTIST;
149 else if (mp4ff_atom_compare(a,b,c,d, 's','o','a','a'))
150 return ATOM_SORTALBUMARTIST;
151 else if (mp4ff_atom_compare(a,b,c,d, 's','o','c','o'))
152 return ATOM_SORTWRITER;
153 else if (mp4ff_atom_compare(a,b,c,d, 's','o','s','n'))
154 return ATOM_SORTSHOW;
155 } else if (a == COPYRIGHT_SYMBOL) {
156 if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'n','a','m'))
138157 return ATOM_TITLE;
139 else if (mp4ff_atom_compare(a,b,c,d, '©','A','R','T'))
158 else if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'A','R','T'))
140159 return ATOM_ARTIST;
141 else if (mp4ff_atom_compare(a,b,c,d, '©','w','r','t'))
160 else if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'w','r','t'))
142161 return ATOM_WRITER;
143 else if (mp4ff_atom_compare(a,b,c,d, '©','a','l','b'))
162 else if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'a','l','b'))
144163 return ATOM_ALBUM;
145 else if (mp4ff_atom_compare(a,b,c,d, '©','d','a','y'))
164 else if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'d','a','y'))
146165 return ATOM_DATE;
147 else if (mp4ff_atom_compare(a,b,c,d, '©','t','o','o'))
166 else if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'t','o','o'))
148167 return ATOM_TOOL;
149 else if (mp4ff_atom_compare(a,b,c,d, '©','c','m','t'))
168 else if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'c','m','t'))
150169 return ATOM_COMMENT;
151 else if (mp4ff_atom_compare(a,b,c,d, '©','g','e','n'))
170 else if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'g','e','n'))
152171 return ATOM_GENRE1;
172 else if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'g','r','p'))
173 return ATOM_CONTENTGROUP;
174 else if (mp4ff_atom_compare(a,b,c,d, COPYRIGHT_SYMBOL,'l','y','r'))
175 return ATOM_LYRICS;
153176 }
154177
155178 if (mp4ff_atom_compare(a,b,c,d, 'e','d','t','s'))
194217 return ATOM_USER;
195218 else if (mp4ff_atom_compare(a,b,c,d, 'k','e','y',' '))
196219 return ATOM_KEY;
220 else if (mp4ff_atom_compare(a,b,c,d, 'a','A','R','T'))
221 return ATOM_ALBUM_ARTIST;
222 else if (mp4ff_atom_compare(a,b,c,d, 'd','e','s','c'))
223 return ATOM_DESCRIPTION;
224 else if (mp4ff_atom_compare(a,b,c,d, 'p','c','s','t'))
225 return ATOM_PODCAST;
197226 else
198227 return ATOM_UNKNOWN;
199228 }
345374 return 0;
346375 }
347376
348 #ifdef ITUNES_DRM
349 char *GetHomeDir( void )
350 {
351 char *p_tmp, *p_homedir = NULL;
352
353 #if defined(HAVE_GETPWUID)
354 struct passwd *p_pw = NULL;
355 #endif
356
357 #if defined(_WIN32) || defined(UNDER_CE)
358 typedef HRESULT (WINAPI *SHGETFOLDERPATH)( HWND, int, HANDLE, DWORD,
359 LPSTR );
360 # define CSIDL_FLAG_CREATE 0x8000
361 # define CSIDL_APPDATA 0x1A
362 # define SHGFP_TYPE_CURRENT 0
363
364 HINSTANCE shfolder_dll;
365 SHGETFOLDERPATH SHGetFolderPath ;
366 /* load the shfolder dll to retrieve SHGetFolderPath */
367 if( ( shfolder_dll = LoadLibrary( _T("SHFolder.dll") ) ) != NULL )
368 {
369 SHGetFolderPath = (void *)GetProcAddress( shfolder_dll,
370 _T("SHGetFolderPathA") );
371 if ( SHGetFolderPath != NULL )
372 {
373 p_homedir = (char *)malloc( MAX_PATH );
374 if( !p_homedir )
375 {
376 return NULL;
377 }
378
379 /* get the "Application Data" folder for the current user */
380 if( S_OK == SHGetFolderPath( NULL,
381 CSIDL_APPDATA | CSIDL_FLAG_CREATE,
382 NULL, SHGFP_TYPE_CURRENT,
383 p_homedir ) )
384 {
385 FreeLibrary( shfolder_dll );
386 return p_homedir;
387 }
388 free( p_homedir );
389 }
390 FreeLibrary( shfolder_dll );
391 }
392 #endif
393
394 #if defined(HAVE_GETPWUID)
395 if( ( p_pw = getpwuid( getuid() ) ) == NULL )
396 #endif
397 {
398 if( ( p_tmp = getenv( "HOME" ) ) == NULL )
399 {
400 if( ( p_tmp = getenv( "TMP" ) ) == NULL )
401 {
402 p_tmp = "/tmp";
403 }
404 }
405
406 p_homedir = strdup( p_tmp );
407 }
408 #if defined(HAVE_GETPWUID)
409 else
410 {
411 p_homedir = strdup( p_pw->pw_dir );
412 }
413 #endif
414
415 return p_homedir;
416 }
417
418 static int32_t mp4ff_read_drms(mp4ff_t *f, uint64_t skip)
419 {
420 uint64_t size;
421 int32_t i;
422 uint8_t atom_type = 0;
423 uint8_t header_size = 0;
424
425 f->track[f->total_tracks - 1]->p_drms = drms_alloc( GetHomeDir() );
426
427 for (i = 0; i < 6; i++)
428 {
429 mp4ff_read_char(f); /* reserved */
430 }
431 /* data_reference_index */ mp4ff_read_int16(f);
432
433 mp4ff_read_int32(f); /* reserved */
434 mp4ff_read_int32(f); /* reserved */
435
436 f->track[f->total_tracks - 1]->channelCount = mp4ff_read_int16(f);
437 f->track[f->total_tracks - 1]->sampleSize = mp4ff_read_int16(f);
438
439 mp4ff_read_int16(f);
440 mp4ff_read_int16(f);
441
442 f->track[f->total_tracks - 1]->sampleRate = mp4ff_read_int16(f);
443
444 mp4ff_read_int16(f);
445
446 size = mp4ff_atom_read_header(f, &atom_type, &header_size);
447 if (atom_type == ATOM_ESDS)
448 {
449 mp4ff_read_esds(f);
450 }
451 mp4ff_set_position(f, skip+size+28);
452
453 size = mp4ff_atom_read_header(f, &atom_type, &header_size);
454 if (atom_type == ATOM_SINF)
455 {
456 parse_sub_atoms(f, size-header_size,0);
457 }
458
459 return 0;
460 }
461
462 static int32_t mp4ff_read_frma(mp4ff_t *f)
463 {
464 uint8_t atom_type;
465 int8_t type[4];
466
467 mp4ff_read_data(f, type, 4);
468
469 atom_type = mp4ff_atom_name_to_type(type[0], type[1], type[2], type[3]);
470
471 if (atom_type == ATOM_MP4A)
472 {
473 f->track[f->total_tracks - 1]->type = TRACK_AUDIO;
474 } else if (atom_type == ATOM_MP4V) {
475 f->track[f->total_tracks - 1]->type = TRACK_VIDEO;
476 } else if (atom_type == ATOM_MP4S) {
477 f->track[f->total_tracks - 1]->type = TRACK_SYSTEM;
478 } else {
479 f->track[f->total_tracks - 1]->type = TRACK_UNKNOWN;
480 }
481
482 return 0;
483 }
484
485 static int32_t mp4ff_read_name(mp4ff_t *f, uint64_t size)
486 {
487 uint8_t *data = malloc(size);
488 mp4ff_read_data(f, data, size);
489
490 if (f->track[f->total_tracks - 1]->p_drms != NULL)
491 {
492 drms_init(f->track[f->total_tracks - 1]->p_drms,
493 FOURCC_name, data, strlen(data) );
494 }
495
496 if (data)
497 free(data);
498
499 return 0;
500 }
501
502 static int32_t mp4ff_read_priv(mp4ff_t *f, uint64_t size)
503 {
504 uint8_t *data = malloc(size);
505 mp4ff_read_data(f, data, size);
506
507 if (f->track[f->total_tracks - 1]->p_drms != 0)
508 {
509 drms_init(f->track[f->total_tracks - 1]->p_drms,
510 FOURCC_priv, data, size );
511 }
512
513 if (data)
514 free(data);
515
516 return 0;
517 }
518
519 static int32_t mp4ff_read_iviv(mp4ff_t *f, uint64_t size)
520 {
521 uint8_t *data = malloc(size);
522 mp4ff_read_data(f, data, size);
523
524 if (f->track[f->total_tracks - 1]->p_drms != 0)
525 {
526 drms_init(f->track[f->total_tracks - 1]->p_drms,
527 FOURCC_iviv, data, sizeof(uint32_t) * 4 );
528 }
529
530 if (data)
531 free(data);
532
533 return 0;
534 }
535
536 static int32_t mp4ff_read_user(mp4ff_t *f, uint64_t size)
537 {
538 uint8_t *data = malloc(size);
539 mp4ff_read_data(f, data, size);
540
541 if (f->track[f->total_tracks - 1]->p_drms != 0)
542 {
543 drms_init(f->track[f->total_tracks - 1]->p_drms,
544 FOURCC_user, data, size );
545 }
546
547 if (data)
548 free(data);
549
550 return 0;
551 }
552
553 static int32_t mp4ff_read_key(mp4ff_t *f, uint64_t size)
554 {
555 uint8_t *data = malloc(size);
556 mp4ff_read_data(f, data, size);
557
558 if (f->track[f->total_tracks - 1]->p_drms != 0)
559 {
560 drms_init(f->track[f->total_tracks - 1]->p_drms,
561 FOURCC_key, data, size );
562 }
563
564 if (data)
565 free(data);
566
567 return 0;
568 }
569 #endif
570
571377 static int32_t mp4ff_read_stsd(mp4ff_t *f)
572378 {
573379 int32_t i;
594400 f->track[f->total_tracks - 1]->type = TRACK_VIDEO;
595401 } else if (atom_type == ATOM_MP4S) {
596402 f->track[f->total_tracks - 1]->type = TRACK_SYSTEM;
597 #ifdef ITUNES_DRM
598 } else if (atom_type == ATOM_DRMS) {
599 // track type is read from the "frma" atom
600 f->track[f->total_tracks - 1]->type = TRACK_UNKNOWN;
601 mp4ff_read_drms(f, skip-size+header_size);
602 #endif
603403 } else {
604404 f->track[f->total_tracks - 1]->type = TRACK_UNKNOWN;
605405 }
874674 } else if (atom_type == ATOM_MDHD) {
875675 /* track header */
876676 mp4ff_read_mdhd(f);
877 #ifdef ITUNES_DRM
878 } else if (atom_type == ATOM_FRMA) {
879 /* DRM track format */
880 mp4ff_read_frma(f);
881 } else if (atom_type == ATOM_IVIV) {
882 mp4ff_read_iviv(f, size-8);
883 } else if (atom_type == ATOM_NAME) {
884 mp4ff_read_name(f, size-8);
885 } else if (atom_type == ATOM_PRIV) {
886 mp4ff_read_priv(f, size-8);
887 } else if (atom_type == ATOM_USER) {
888 mp4ff_read_user(f, size-8);
889 } else if (atom_type == ATOM_KEY) {
890 mp4ff_read_key(f, size-8);
891 #endif
892677 #ifdef USE_TAGGING
893678 } else if (atom_type == ATOM_META) {
894679 /* iTunes Metadata box */
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: mp4ff.c,v 1.20 2007/11/01 12:33:29 menno Exp $
27 ** $Id: mp4ff.c,v 1.22 2009/01/26 23:01:40 menno Exp $
2828 **/
2929
3030 #include <stdlib.h>
3131 #include <string.h>
3232 #include "mp4ffint.h"
33
34 #include "drms.h"
3533
3634 mp4ff_t *mp4ff_open_read(mp4ff_callback_t *f)
3735 {
102100 if (ff) free(ff);
103101 }
104102
105 static void mp4ff_track_add(mp4ff_t *f)
103 void mp4ff_track_add(mp4ff_t *f)
106104 {
107105 f->total_tracks++;
108106
+0
-144
common/mp4ff/mp4ff.dsp less more
0 # Microsoft Developer Studio Project File - Name="mp4ff" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Static Library" 0x0104
5
6 CFG=mp4ff - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "mp4ff.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "mp4ff.mak" CFG="mp4ff - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "mp4ff - Win32 Release" (based on "Win32 (x86) Static Library")
20 !MESSAGE "mp4ff - Win32 Debug" (based on "Win32 (x86) Static Library")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=xicl6.exe
28 RSC=rc.exe
29
30 !IF "$(CFG)" == "mp4ff - Win32 Release"
31
32 # PROP BASE Use_MFC 0
33 # PROP BASE Use_Debug_Libraries 0
34 # PROP BASE Output_Dir "Release"
35 # PROP BASE Intermediate_Dir "Release"
36 # PROP BASE Target_Dir ""
37 # PROP Use_MFC 0
38 # PROP Use_Debug_Libraries 0
39 # PROP Output_Dir "Release"
40 # PROP Intermediate_Dir "Release"
41 # PROP Target_Dir ""
42 F90=df.exe
43 MTL=midl.exe
44 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
45 # ADD CPP /nologo /MD /W3 /O1 /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "USE_TAGGING" /YX /FD /c
46 # ADD BASE RSC /l 0x413 /d "NDEBUG"
47 # ADD RSC /l 0x413 /d "NDEBUG"
48 BSC32=bscmake.exe
49 # ADD BASE BSC32 /nologo
50 # ADD BSC32 /nologo
51 LIB32=xilink6.exe -lib
52 # ADD BASE LIB32 /nologo
53 # ADD LIB32 /nologo
54
55 !ELSEIF "$(CFG)" == "mp4ff - Win32 Debug"
56
57 # PROP BASE Use_MFC 0
58 # PROP BASE Use_Debug_Libraries 1
59 # PROP BASE Output_Dir "Debug"
60 # PROP BASE Intermediate_Dir "Debug"
61 # PROP BASE Target_Dir ""
62 # PROP Use_MFC 0
63 # PROP Use_Debug_Libraries 1
64 # PROP Output_Dir "Debug"
65 # PROP Intermediate_Dir "Debug"
66 # PROP Target_Dir ""
67 F90=df.exe
68 MTL=midl.exe
69 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /GZ /c
70 # ADD CPP /nologo /MDd /W3 /Gm /ZI /Od /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "USE_TAGGING" /YX /FD /GZ /c
71 # ADD BASE RSC /l 0x413 /d "_DEBUG"
72 # ADD RSC /l 0x413 /d "_DEBUG"
73 BSC32=bscmake.exe
74 # ADD BASE BSC32 /nologo
75 # ADD BSC32 /nologo
76 LIB32=xilink6.exe -lib
77 # ADD BASE LIB32 /nologo
78 # ADD LIB32 /nologo
79
80 !ENDIF
81
82 # Begin Target
83
84 # Name "mp4ff - Win32 Release"
85 # Name "mp4ff - Win32 Debug"
86 # Begin Group "Source Files"
87
88 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
89 # Begin Source File
90
91 SOURCE=.\drms.c
92 # End Source File
93 # Begin Source File
94
95 SOURCE=.\mp4atom.c
96 # End Source File
97 # Begin Source File
98
99 SOURCE=.\mp4ff.c
100 # End Source File
101 # Begin Source File
102
103 SOURCE=.\mp4meta.c
104 # End Source File
105 # Begin Source File
106
107 SOURCE=.\mp4sample.c
108 # End Source File
109 # Begin Source File
110
111 SOURCE=.\mp4tagupdate.c
112 # End Source File
113 # Begin Source File
114
115 SOURCE=.\mp4util.c
116 # End Source File
117 # End Group
118 # Begin Group "Header Files"
119
120 # PROP Default_Filter "h;hpp;hxx;hm;inl"
121 # Begin Source File
122
123 SOURCE=.\drms.h
124 # End Source File
125 # Begin Source File
126
127 SOURCE=.\drmstables.h
128 # End Source File
129 # Begin Source File
130
131 SOURCE=.\mp4ff.h
132 # End Source File
133 # Begin Source File
134
135 SOURCE=.\mp4ff_int_types.h
136 # End Source File
137 # Begin Source File
138
139 SOURCE=.\mp4ffint.h
140 # End Source File
141 # End Group
142 # End Target
143 # End Project
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: mp4ff.h,v 1.26 2007/11/01 12:33:29 menno Exp $
27 ** $Id: mp4ff.h,v 1.27 2009/01/29 00:41:08 menno Exp $
2828 **/
2929
3030 #ifndef MP4FF_H
3434 extern "C" {
3535 #endif /* __cplusplus */
3636
37 #ifdef HAVE_STDINT_H
38 #include <stdint.h>
39 #else
3740 #include "mp4ff_int_types.h"
41 #endif
3842
3943 /* file callback structure */
4044 typedef struct
169169 Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
170170 >
171171 <File
172 RelativePath=".\drms.c"
173 >
174 </File>
175 <File
176172 RelativePath="mp4atom.c"
177173 >
178174 <FileConfiguration
307303 Filter="h;hpp;hxx;hm;inl"
308304 >
309305 <File
310 RelativePath=".\drms.h"
311 >
312 </File>
313 <File
314306 RelativePath=".\drmstables.h"
315307 >
316308 </File>
22
33 #if defined (_WIN32)
44
5 typedef char int8_t;
5 #ifdef __MINGW32__
6 #include <stdlib.h>
7 #endif /* #ifdef __MINGW32__ */
8
9 typedef signed char int8_t;
610 typedef unsigned char uint8_t;
7 typedef short int16_t;
11 typedef signed short int16_t;
812 typedef unsigned short uint16_t;
9 typedef long int32_t;
13 typedef signed long int32_t;
1014 typedef unsigned long uint32_t;
1115
12 typedef __int64 int64_t;
16 typedef signed __int64 int64_t;
1317 typedef unsigned __int64 uint64_t;
1418
1519 #else
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: mp4ffint.h,v 1.22 2007/11/01 12:33:29 menno Exp $
27 ** $Id: mp4ffint.h,v 1.26 2009/01/25 20:14:34 menno Exp $
2828 **/
2929
3030 #ifndef MP4FF_INTERNAL_H
3737 #include "mp4ff_int_types.h"
3838 #include <stdlib.h>
3939
40 #if defined(_WIN32) && !defined(_WIN32_WCE)
41 #define ITUNES_DRM
42
43 static __inline uint32_t GetDWLE( void const * _p )
44 {
45 uint8_t * p = (uint8_t *)_p;
46 return ( ((uint32_t)p[3] << 24) | ((uint32_t)p[2] << 16)
47 | ((uint32_t)p[1] << 8) | p[0] );
48 }
49 static __inline uint32_t U32_AT( void const * _p )
50 {
51 uint8_t * p = (uint8_t *)_p;
52 return ( ((uint32_t)p[0] << 24) | ((uint32_t)p[1] << 16)
53 | ((uint32_t)p[2] << 8) | p[3] );
54 }
55 static __inline uint64_t U64_AT( void const * _p )
56 {
57 uint8_t * p = (uint8_t *)_p;
58 return ( ((uint64_t)p[0] << 56) | ((uint64_t)p[1] << 48)
59 | ((uint64_t)p[2] << 40) | ((uint64_t)p[3] << 32)
60 | ((uint64_t)p[4] << 24) | ((uint64_t)p[5] << 16)
61 | ((uint64_t)p[6] << 8) | p[7] );
62 }
63
64 #ifdef WORDS_BIGENDIAN
65 # define VLC_FOURCC( a, b, c, d ) \
66 ( ((uint32_t)d) | ( ((uint32_t)c) << 8 ) \
67 | ( ((uint32_t)b) << 16 ) | ( ((uint32_t)a) << 24 ) )
68 # define VLC_TWOCC( a, b ) \
69 ( (uint16_t)(b) | ( (uint16_t)(a) << 8 ) )
70
71 #else
72 # define VLC_FOURCC( a, b, c, d ) \
73 ( ((uint32_t)a) | ( ((uint32_t)b) << 8 ) \
74 | ( ((uint32_t)c) << 16 ) | ( ((uint32_t)d) << 24 ) )
75 # define VLC_TWOCC( a, b ) \
76 ( (uint16_t)(a) | ( (uint16_t)(b) << 8 ) )
77 #endif
78
79 #define FOURCC_user VLC_FOURCC( 'u', 's', 'e', 'r' )
80 #define FOURCC_key VLC_FOURCC( 'k', 'e', 'y', ' ' )
81 #define FOURCC_iviv VLC_FOURCC( 'i', 'v', 'i', 'v' )
82 #define FOURCC_name VLC_FOURCC( 'n', 'a', 'm', 'e' )
83 #define FOURCC_priv VLC_FOURCC( 'p', 'r', 'i', 'v' )
84
85 #endif
8640 #define MAX_TRACKS 1024
8741 #define TRACK_UNKNOWN 0
8842 #define TRACK_AUDIO 1
12276 #define ATOM_USER 155
12377 #define ATOM_KEY 156
12478
79 #define ATOM_ALBUM_ARTIST 157
80 #define ATOM_CONTENTGROUP 158
81 #define ATOM_LYRICS 159
82 #define ATOM_DESCRIPTION 160
83 #define ATOM_NETWORK 161
84 #define ATOM_SHOW 162
85 #define ATOM_EPISODENAME 163
86 #define ATOM_SORTTITLE 164
87 #define ATOM_SORTALBUM 165
88 #define ATOM_SORTARTIST 166
89 #define ATOM_SORTALBUMARTIST 167
90 #define ATOM_SORTWRITER 168
91 #define ATOM_SORTSHOW 169
92 #define ATOM_SEASON 170
93 #define ATOM_EPISODE 171
94 #define ATOM_PODCAST 172
95
12596 #define ATOM_UNKNOWN 255
12697 #define ATOM_FREE ATOM_UNKNOWN
12798 #define ATOM_SKIP ATOM_UNKNOWN
236207 uint32_t timeScale;
237208 uint64_t duration;
238209
239 #ifdef ITUNES_DRM
240 /* drms */
241 void *p_drms;
242 #endif
243
244210 } mp4ff_track_t;
245211
246212 /* mp4 main file structure */
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: mp4meta.c,v 1.19 2007/11/01 12:33:29 menno Exp $
27 ** $Id: mp4meta.c,v 1.21 2009/01/19 23:56:30 menno Exp $
2828 **/
2929
3030 #ifdef USE_TAGGING
167167 static char *tag_names[] = {
168168 "unknown", "title", "artist", "writer", "album",
169169 "date", "tool", "comment", "genre", "track",
170 "disc", "compilation", "genre", "tempo", "cover"
170 "disc", "compilation", "genre", "tempo", "cover",
171 "album_artist", "contentgroup", "lyrics", "description",
172 "network", "show", "episodename",
173 "sorttitle", "sortalbum", "sortartist", "sortalbumartist",
174 "sortwriter", "sortshow",
175 "season", "episode", "podcast"
176
171177 };
172178 uint8_t tag_idx = 0;
173179
187193 case ATOM_GENRE2: tag_idx = 12; break;
188194 case ATOM_TEMPO: tag_idx = 13; break;
189195 case ATOM_COVER: tag_idx = 14; break;
196 case ATOM_ALBUM_ARTIST: tag_idx = 15; break;
197 case ATOM_CONTENTGROUP: tag_idx = 16; break;
198 case ATOM_LYRICS: tag_idx = 17; break;
199 case ATOM_DESCRIPTION: tag_idx = 18; break;
200 case ATOM_NETWORK: tag_idx = 19; break;
201 case ATOM_SHOW: tag_idx = 20; break;
202 case ATOM_EPISODENAME: tag_idx = 21; break;
203 case ATOM_SORTTITLE: tag_idx = 22; break;
204 case ATOM_SORTALBUM: tag_idx = 23; break;
205 case ATOM_SORTARTIST: tag_idx = 24; break;
206 case ATOM_SORTALBUMARTIST: tag_idx = 25; break;
207 case ATOM_SORTWRITER: tag_idx = 26; break;
208 case ATOM_SORTSHOW: tag_idx = 27; break;
209 case ATOM_SEASON: tag_idx = 28; break;
210 case ATOM_EPISODE: tag_idx = 29; break;
211 case ATOM_PODCAST: tag_idx = 30; break;
190212 default: tag_idx = 0; break;
191213 }
192214
242264 done = 1;
243265 }
244266 } else if (parent_atom_type == ATOM_TRACK || parent_atom_type == ATOM_DISC) {
245 if (!done && subsize - header_size >= 8 + 8)
267 /* if (!done && subsize - header_size >= 8 + 8) */
268 /* modified by AJS */
269 if ( !done && (subsize - header_size) >=
270 (sizeof(char) + sizeof(uint8_t)*3 + sizeof(uint32_t) + /* version + flags + reserved */
271 + sizeof(uint16_t) /* leading uint16_t */
272 + sizeof(uint16_t) /* track / disc */
273 + sizeof(uint16_t)) /* totaltracks / totaldiscs */
274 )
246275 {
247276 uint16_t index,total;
248277 char temp[32];
249278 mp4ff_read_int16(f);
250279 index = mp4ff_read_int16(f);
251280 total = mp4ff_read_int16(f);
252 mp4ff_read_int16(f);
281 /* modified by AJS */
282 /* mp4ff_read_int16(f); */
253283
254284 sprintf(temp,"%d",index);
255285 mp4ff_tag_add_field(&(f->tags), parent_atom_type == ATOM_TRACK ? "track" : "disc", temp);
211211
212212 static stdmeta_entry stdmetas[] =
213213 {
214 {"©nam","title"},
215 {"©ART","artist"},
216 {"©wrt","writer"},
217 {"©alb","album"},
218 {"©day","date"},
219 {"©too","tool"},
220 {"©cmt","comment"},
221 // {"©gen","genre"},
214 {"\xA9" "nam","title"},
215 {"\xA9" "ART","artist"},
216 {"\xA9" "wrt","writer"},
217 {"\xA9" "alb","album"},
218 {"\xA9" "day","date"},
219 {"\xA9" "too","tool"},
220 {"\xA9" "cmt","comment"},
221 // {"\xA9" "gen","genre"},
222222 {"cpil","compilation"},
223223 // {"trkn","track"},
224224 // {"disk","disc"},
225225 // {"gnre","genre"},
226226 {"covr","cover"},
227 /* added by AJS */
228 {"aART","album_artist"},
227229 };
228230
229231
264266
265267 static void membuffer_write_std_tag(membuffer * buf,const char * name,const char * value)
266268 {
269 /* added by AJS */
270 uint32_t flags = 1;
271
272 /* special check for compilation flag */
273 if ( strcmp(name, "cpil") == 0)
274 {
275 flags = 21;
276 }
277
267278 membuffer_write_int32(buf,8 /*atom header*/ + 8 /*data atom header*/ + 8 /*flags + reserved*/ + strlen(value) );
268279 membuffer_write_atom_name(buf,name);
269280 membuffer_write_int32(buf,8 /*data atom header*/ + 8 /*flags + reserved*/ + strlen(value));
270281 membuffer_write_atom_name(buf,"data");
271 membuffer_write_int32(buf,1);//flags
282 membuffer_write_int32(buf,flags);//flags
272283 membuffer_write_int32(buf,0);//reserved
273284 membuffer_write_data(buf,value,strlen(value));
274285 }
0 #! /bin/sh
1 # Wrapper for compilers which do not understand `-c -o'.
2
3 scriptversion=2005-05-14.22
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
6 # Written by Tom Tromey <tromey@cygnus.com>.
7 #
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
11 # any later version.
12 #
13 # This program is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # This file is maintained in Automake, please report
28 # bugs to <bug-automake@gnu.org> or send patches to
29 # <automake-patches@gnu.org>.
30
31 case $1 in
32 '')
33 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
34 exit 1;
35 ;;
36 -h | --h*)
37 cat <<\EOF
38 Usage: compile [--help] [--version] PROGRAM [ARGS]
39
40 Wrapper for compilers which do not understand `-c -o'.
41 Remove `-o dest.o' from ARGS, run PROGRAM with the remaining
42 arguments, and rename the output as expected.
43
44 If you are trying to build a whole package this is not the
45 right script to run: please start by reading the file `INSTALL'.
46
47 Report bugs to <bug-automake@gnu.org>.
48 EOF
49 exit $?
50 ;;
51 -v | --v*)
52 echo "compile $scriptversion"
53 exit $?
54 ;;
55 esac
56
57 ofile=
58 cfile=
59 eat=
60
61 for arg
62 do
63 if test -n "$eat"; then
64 eat=
65 else
66 case $1 in
67 -o)
68 # configure might choose to run compile as `compile cc -o foo foo.c'.
69 # So we strip `-o arg' only if arg is an object.
70 eat=1
71 case $2 in
72 *.o | *.obj)
73 ofile=$2
74 ;;
75 *)
76 set x "$@" -o "$2"
77 shift
78 ;;
79 esac
80 ;;
81 *.c)
82 cfile=$1
83 set x "$@" "$1"
84 shift
85 ;;
86 *)
87 set x "$@" "$1"
88 shift
89 ;;
90 esac
91 fi
92 shift
93 done
94
95 if test -z "$ofile" || test -z "$cfile"; then
96 # If no `-o' option was seen then we might have been invoked from a
97 # pattern rule where we don't need one. That is ok -- this is a
98 # normal compilation that the losing compiler can handle. If no
99 # `.c' file was seen then we are probably linking. That is also
100 # ok.
101 exec "$@"
102 fi
103
104 # Name of file we expect compiler to create.
105 cofile=`echo "$cfile" | sed -e 's|^.*/||' -e 's/\.c$/.o/'`
106
107 # Create the lock directory.
108 # Note: use `[/.-]' here to ensure that we don't use the same name
109 # that we are using for the .o file. Also, base the name on the expected
110 # object file name, since that is what matters with a parallel build.
111 lockdir=`echo "$cofile" | sed -e 's|[/.-]|_|g'`.d
112 while true; do
113 if mkdir "$lockdir" >/dev/null 2>&1; then
114 break
115 fi
116 sleep 1
117 done
118 # FIXME: race condition here if user kills between mkdir and trap.
119 trap "rmdir '$lockdir'; exit 1" 1 2 15
120
121 # Run the compile.
122 "$@"
123 ret=$?
124
125 if test -f "$cofile"; then
126 mv "$cofile" "$ofile"
127 elif test -f "${cofile}bj"; then
128 mv "${cofile}bj" "$ofile"
129 fi
130
131 rmdir "$lockdir"
132 exit $ret
133
134 # Local Variables:
135 # mode: shell-script
136 # sh-indentation: 2
137 # eval: (add-hook 'write-file-hooks 'time-stamp)
138 # time-stamp-start: "scriptversion="
139 # time-stamp-format: "%:y-%02m-%02d.%02H"
140 # time-stamp-end: "$"
141 # End:
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2006-07-02'
7
8 # This file is free software; you can redistribute it and/or modify it
9 # under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2 of the License, or
11 # (at your option) any later version.
12 #
13 # This program is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 # General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License
19 # along with this program; if not, write to the Free Software
20 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
21 # 02110-1301, USA.
22 #
23 # As a special exception to the GNU General Public License, if you
24 # distribute this file as part of a program that contains a
25 # configuration script generated by Autoconf, you may include it under
26 # the same distribution terms that you use for the rest of that program.
27
28
29 # Originally written by Per Bothner <per@bothner.com>.
30 # Please send patches to <config-patches@gnu.org>. Submit a context
31 # diff and a properly formatted ChangeLog entry.
32 #
33 # This script attempts to guess a canonical system name similar to
34 # config.sub. If it succeeds, it prints the system name on stdout, and
35 # exits with 0. Otherwise, it exits with 1.
36 #
37 # The plan is that this can be called by configure scripts if you
38 # don't specify an explicit build system type.
39
40 me=`echo "$0" | sed -e 's,.*/,,'`
41
42 usage="\
43 Usage: $0 [OPTION]
44
45 Output the configuration name of the system \`$me' is run on.
46
47 Operation modes:
48 -h, --help print this help, then exit
49 -t, --time-stamp print date of last modification, then exit
50 -v, --version print version number, then exit
51
52 Report bugs and patches to <config-patches@gnu.org>."
53
54 version="\
55 GNU config.guess ($timestamp)
56
57 Originally written by Per Bothner.
58 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
59 Free Software Foundation, Inc.
60
61 This is free software; see the source for copying conditions. There is NO
62 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
63
64 help="
65 Try \`$me --help' for more information."
66
67 # Parse command line
68 while test $# -gt 0 ; do
69 case $1 in
70 --time-stamp | --time* | -t )
71 echo "$timestamp" ; exit ;;
72 --version | -v )
73 echo "$version" ; exit ;;
74 --help | --h* | -h )
75 echo "$usage"; exit ;;
76 -- ) # Stop option processing
77 shift; break ;;
78 - ) # Use stdin as input.
79 break ;;
80 -* )
81 echo "$me: invalid option $1$help" >&2
82 exit 1 ;;
83 * )
84 break ;;
85 esac
86 done
87
88 if test $# != 0; then
89 echo "$me: too many arguments$help" >&2
90 exit 1
91 fi
92
93 trap 'exit 1' 1 2 15
94
95 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
96 # compiler to aid in system detection is discouraged as it requires
97 # temporary files to be created and, as you can see below, it is a
98 # headache to deal with in a portable fashion.
99
100 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
101 # use `HOST_CC' if defined, but it is deprecated.
102
103 # Portable tmp directory creation inspired by the Autoconf team.
104
105 set_cc_for_build='
106 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108 : ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
113 dummy=$tmp/dummy ;
114 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
115 case $CC_FOR_BUILD,$HOST_CC,$CC in
116 ,,) echo "int x;" > $dummy.c ;
117 for c in cc gcc c89 c99 ; do
118 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
119 CC_FOR_BUILD="$c"; break ;
120 fi ;
121 done ;
122 if test x"$CC_FOR_BUILD" = x ; then
123 CC_FOR_BUILD=no_compiler_found ;
124 fi
125 ;;
126 ,,*) CC_FOR_BUILD=$CC ;;
127 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128 esac ; set_cc_for_build= ;'
129
130 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131 # (ghazi@noc.rutgers.edu 1994-08-24)
132 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
133 PATH=$PATH:/.attbin ; export PATH
134 fi
135
136 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
137 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
138 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
139 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
140
141 # Note: order is significant - the case branches are not exclusive.
142
143 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
144 *:NetBSD:*:*)
145 # NetBSD (nbsd) targets should (where applicable) match one or
146 # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
147 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
148 # switched to ELF, *-*-netbsd* would select the old
149 # object file format. This provides both forward
150 # compatibility and a consistent mechanism for selecting the
151 # object file format.
152 #
153 # Note: NetBSD doesn't particularly care about the vendor
154 # portion of the name. We always set it to "unknown".
155 sysctl="sysctl -n hw.machine_arch"
156 UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
157 /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
158 case "${UNAME_MACHINE_ARCH}" in
159 armeb) machine=armeb-unknown ;;
160 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;;
163 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
164 esac
165 # The Operating System including object format, if it has switched
166 # to ELF recently, or will in the future.
167 case "${UNAME_MACHINE_ARCH}" in
168 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
169 eval $set_cc_for_build
170 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
171 | grep __ELF__ >/dev/null
172 then
173 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
174 # Return netbsd for either. FIX?
175 os=netbsd
176 else
177 os=netbsdelf
178 fi
179 ;;
180 *)
181 os=netbsd
182 ;;
183 esac
184 # The OS release
185 # Debian GNU/NetBSD machines have a different userland, and
186 # thus, need a distinct triplet. However, they do not need
187 # kernel version information, so it can be replaced with a
188 # suitable tag, in the style of linux-gnu.
189 case "${UNAME_VERSION}" in
190 Debian*)
191 release='-gnu'
192 ;;
193 *)
194 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
195 ;;
196 esac
197 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
198 # contains redundant information, the shorter form:
199 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
200 echo "${machine}-${os}${release}"
201 exit ;;
202 *:OpenBSD:*:*)
203 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
204 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
205 exit ;;
206 *:ekkoBSD:*:*)
207 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
208 exit ;;
209 *:SolidBSD:*:*)
210 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
211 exit ;;
212 macppc:MirBSD:*:*)
213 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
214 exit ;;
215 *:MirBSD:*:*)
216 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
217 exit ;;
218 alpha:OSF1:*:*)
219 case $UNAME_RELEASE in
220 *4.0)
221 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
222 ;;
223 *5.*)
224 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
225 ;;
226 esac
227 # According to Compaq, /usr/sbin/psrinfo has been available on
228 # OSF/1 and Tru64 systems produced since 1995. I hope that
229 # covers most systems running today. This code pipes the CPU
230 # types through head -n 1, so we only detect the type of CPU 0.
231 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
232 case "$ALPHA_CPU_TYPE" in
233 "EV4 (21064)")
234 UNAME_MACHINE="alpha" ;;
235 "EV4.5 (21064)")
236 UNAME_MACHINE="alpha" ;;
237 "LCA4 (21066/21068)")
238 UNAME_MACHINE="alpha" ;;
239 "EV5 (21164)")
240 UNAME_MACHINE="alphaev5" ;;
241 "EV5.6 (21164A)")
242 UNAME_MACHINE="alphaev56" ;;
243 "EV5.6 (21164PC)")
244 UNAME_MACHINE="alphapca56" ;;
245 "EV5.7 (21164PC)")
246 UNAME_MACHINE="alphapca57" ;;
247 "EV6 (21264)")
248 UNAME_MACHINE="alphaev6" ;;
249 "EV6.7 (21264A)")
250 UNAME_MACHINE="alphaev67" ;;
251 "EV6.8CB (21264C)")
252 UNAME_MACHINE="alphaev68" ;;
253 "EV6.8AL (21264B)")
254 UNAME_MACHINE="alphaev68" ;;
255 "EV6.8CX (21264D)")
256 UNAME_MACHINE="alphaev68" ;;
257 "EV6.9A (21264/EV69A)")
258 UNAME_MACHINE="alphaev69" ;;
259 "EV7 (21364)")
260 UNAME_MACHINE="alphaev7" ;;
261 "EV7.9 (21364A)")
262 UNAME_MACHINE="alphaev79" ;;
263 esac
264 # A Pn.n version is a patched version.
265 # A Vn.n version is a released version.
266 # A Tn.n version is a released field test version.
267 # A Xn.n version is an unreleased experimental baselevel.
268 # 1.2 uses "1.2" for uname -r.
269 echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
270 exit ;;
271 Alpha\ *:Windows_NT*:*)
272 # How do we know it's Interix rather than the generic POSIX subsystem?
273 # Should we change UNAME_MACHINE based on the output of uname instead
274 # of the specific Alpha model?
275 echo alpha-pc-interix
276 exit ;;
277 21064:Windows_NT:50:3)
278 echo alpha-dec-winnt3.5
279 exit ;;
280 Amiga*:UNIX_System_V:4.0:*)
281 echo m68k-unknown-sysv4
282 exit ;;
283 *:[Aa]miga[Oo][Ss]:*:*)
284 echo ${UNAME_MACHINE}-unknown-amigaos
285 exit ;;
286 *:[Mm]orph[Oo][Ss]:*:*)
287 echo ${UNAME_MACHINE}-unknown-morphos
288 exit ;;
289 *:OS/390:*:*)
290 echo i370-ibm-openedition
291 exit ;;
292 *:z/VM:*:*)
293 echo s390-ibm-zvmoe
294 exit ;;
295 *:OS400:*:*)
296 echo powerpc-ibm-os400
297 exit ;;
298 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
299 echo arm-acorn-riscix${UNAME_RELEASE}
300 exit ;;
301 arm:riscos:*:*|arm:RISCOS:*:*)
302 echo arm-unknown-riscos
303 exit ;;
304 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
305 echo hppa1.1-hitachi-hiuxmpp
306 exit ;;
307 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
308 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
309 if test "`(/bin/universe) 2>/dev/null`" = att ; then
310 echo pyramid-pyramid-sysv3
311 else
312 echo pyramid-pyramid-bsd
313 fi
314 exit ;;
315 NILE*:*:*:dcosx)
316 echo pyramid-pyramid-svr4
317 exit ;;
318 DRS?6000:unix:4.0:6*)
319 echo sparc-icl-nx6
320 exit ;;
321 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
322 case `/usr/bin/uname -p` in
323 sparc) echo sparc-icl-nx7; exit ;;
324 esac ;;
325 sun4H:SunOS:5.*:*)
326 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
327 exit ;;
328 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
329 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330 exit ;;
331 i86pc:SunOS:5.*:*)
332 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
333 exit ;;
334 sun4*:SunOS:6*:*)
335 # According to config.sub, this is the proper way to canonicalize
336 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
337 # it's likely to be more like Solaris than SunOS4.
338 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
339 exit ;;
340 sun4*:SunOS:*:*)
341 case "`/usr/bin/arch -k`" in
342 Series*|S4*)
343 UNAME_RELEASE=`uname -v`
344 ;;
345 esac
346 # Japanese Language versions have a version number like `4.1.3-JL'.
347 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
348 exit ;;
349 sun3*:SunOS:*:*)
350 echo m68k-sun-sunos${UNAME_RELEASE}
351 exit ;;
352 sun*:*:4.2BSD:*)
353 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
354 test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
355 case "`/bin/arch`" in
356 sun3)
357 echo m68k-sun-sunos${UNAME_RELEASE}
358 ;;
359 sun4)
360 echo sparc-sun-sunos${UNAME_RELEASE}
361 ;;
362 esac
363 exit ;;
364 aushp:SunOS:*:*)
365 echo sparc-auspex-sunos${UNAME_RELEASE}
366 exit ;;
367 # The situation for MiNT is a little confusing. The machine name
368 # can be virtually everything (everything which is not
369 # "atarist" or "atariste" at least should have a processor
370 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
371 # to the lowercase version "mint" (or "freemint"). Finally
372 # the system name "TOS" denotes a system which is actually not
373 # MiNT. But MiNT is downward compatible to TOS, so this should
374 # be no problem.
375 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
376 echo m68k-atari-mint${UNAME_RELEASE}
377 exit ;;
378 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
379 echo m68k-atari-mint${UNAME_RELEASE}
380 exit ;;
381 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
382 echo m68k-atari-mint${UNAME_RELEASE}
383 exit ;;
384 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
385 echo m68k-milan-mint${UNAME_RELEASE}
386 exit ;;
387 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
388 echo m68k-hades-mint${UNAME_RELEASE}
389 exit ;;
390 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
391 echo m68k-unknown-mint${UNAME_RELEASE}
392 exit ;;
393 m68k:machten:*:*)
394 echo m68k-apple-machten${UNAME_RELEASE}
395 exit ;;
396 powerpc:machten:*:*)
397 echo powerpc-apple-machten${UNAME_RELEASE}
398 exit ;;
399 RISC*:Mach:*:*)
400 echo mips-dec-mach_bsd4.3
401 exit ;;
402 RISC*:ULTRIX:*:*)
403 echo mips-dec-ultrix${UNAME_RELEASE}
404 exit ;;
405 VAX*:ULTRIX*:*:*)
406 echo vax-dec-ultrix${UNAME_RELEASE}
407 exit ;;
408 2020:CLIX:*:* | 2430:CLIX:*:*)
409 echo clipper-intergraph-clix${UNAME_RELEASE}
410 exit ;;
411 mips:*:*:UMIPS | mips:*:*:RISCos)
412 eval $set_cc_for_build
413 sed 's/^ //' << EOF >$dummy.c
414 #ifdef __cplusplus
415 #include <stdio.h> /* for printf() prototype */
416 int main (int argc, char *argv[]) {
417 #else
418 int main (argc, argv) int argc; char *argv[]; {
419 #endif
420 #if defined (host_mips) && defined (MIPSEB)
421 #if defined (SYSTYPE_SYSV)
422 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
423 #endif
424 #if defined (SYSTYPE_SVR4)
425 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
426 #endif
427 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
428 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
429 #endif
430 #endif
431 exit (-1);
432 }
433 EOF
434 $CC_FOR_BUILD -o $dummy $dummy.c &&
435 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
436 SYSTEM_NAME=`$dummy $dummyarg` &&
437 { echo "$SYSTEM_NAME"; exit; }
438 echo mips-mips-riscos${UNAME_RELEASE}
439 exit ;;
440 Motorola:PowerMAX_OS:*:*)
441 echo powerpc-motorola-powermax
442 exit ;;
443 Motorola:*:4.3:PL8-*)
444 echo powerpc-harris-powermax
445 exit ;;
446 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
447 echo powerpc-harris-powermax
448 exit ;;
449 Night_Hawk:Power_UNIX:*:*)
450 echo powerpc-harris-powerunix
451 exit ;;
452 m88k:CX/UX:7*:*)
453 echo m88k-harris-cxux7
454 exit ;;
455 m88k:*:4*:R4*)
456 echo m88k-motorola-sysv4
457 exit ;;
458 m88k:*:3*:R3*)
459 echo m88k-motorola-sysv3
460 exit ;;
461 AViiON:dgux:*:*)
462 # DG/UX returns AViiON for all architectures
463 UNAME_PROCESSOR=`/usr/bin/uname -p`
464 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
465 then
466 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
467 [ ${TARGET_BINARY_INTERFACE}x = x ]
468 then
469 echo m88k-dg-dgux${UNAME_RELEASE}
470 else
471 echo m88k-dg-dguxbcs${UNAME_RELEASE}
472 fi
473 else
474 echo i586-dg-dgux${UNAME_RELEASE}
475 fi
476 exit ;;
477 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
478 echo m88k-dolphin-sysv3
479 exit ;;
480 M88*:*:R3*:*)
481 # Delta 88k system running SVR3
482 echo m88k-motorola-sysv3
483 exit ;;
484 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
485 echo m88k-tektronix-sysv3
486 exit ;;
487 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
488 echo m68k-tektronix-bsd
489 exit ;;
490 *:IRIX*:*:*)
491 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
492 exit ;;
493 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
494 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
495 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
496 i*86:AIX:*:*)
497 echo i386-ibm-aix
498 exit ;;
499 ia64:AIX:*:*)
500 if [ -x /usr/bin/oslevel ] ; then
501 IBM_REV=`/usr/bin/oslevel`
502 else
503 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
504 fi
505 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
506 exit ;;
507 *:AIX:2:3)
508 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
509 eval $set_cc_for_build
510 sed 's/^ //' << EOF >$dummy.c
511 #include <sys/systemcfg.h>
512
513 main()
514 {
515 if (!__power_pc())
516 exit(1);
517 puts("powerpc-ibm-aix3.2.5");
518 exit(0);
519 }
520 EOF
521 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
522 then
523 echo "$SYSTEM_NAME"
524 else
525 echo rs6000-ibm-aix3.2.5
526 fi
527 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
528 echo rs6000-ibm-aix3.2.4
529 else
530 echo rs6000-ibm-aix3.2
531 fi
532 exit ;;
533 *:AIX:*:[45])
534 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
535 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
536 IBM_ARCH=rs6000
537 else
538 IBM_ARCH=powerpc
539 fi
540 if [ -x /usr/bin/oslevel ] ; then
541 IBM_REV=`/usr/bin/oslevel`
542 else
543 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
544 fi
545 echo ${IBM_ARCH}-ibm-aix${IBM_REV}
546 exit ;;
547 *:AIX:*:*)
548 echo rs6000-ibm-aix
549 exit ;;
550 ibmrt:4.4BSD:*|romp-ibm:BSD:*)
551 echo romp-ibm-bsd4.4
552 exit ;;
553 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
554 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
555 exit ;; # report: romp-ibm BSD 4.3
556 *:BOSX:*:*)
557 echo rs6000-bull-bosx
558 exit ;;
559 DPX/2?00:B.O.S.:*:*)
560 echo m68k-bull-sysv3
561 exit ;;
562 9000/[34]??:4.3bsd:1.*:*)
563 echo m68k-hp-bsd
564 exit ;;
565 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
566 echo m68k-hp-bsd4.4
567 exit ;;
568 9000/[34678]??:HP-UX:*:*)
569 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
570 case "${UNAME_MACHINE}" in
571 9000/31? ) HP_ARCH=m68000 ;;
572 9000/[34]?? ) HP_ARCH=m68k ;;
573 9000/[678][0-9][0-9])
574 if [ -x /usr/bin/getconf ]; then
575 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
576 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
577 case "${sc_cpu_version}" in
578 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
579 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
580 532) # CPU_PA_RISC2_0
581 case "${sc_kernel_bits}" in
582 32) HP_ARCH="hppa2.0n" ;;
583 64) HP_ARCH="hppa2.0w" ;;
584 '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
585 esac ;;
586 esac
587 fi
588 if [ "${HP_ARCH}" = "" ]; then
589 eval $set_cc_for_build
590 sed 's/^ //' << EOF >$dummy.c
591
592 #define _HPUX_SOURCE
593 #include <stdlib.h>
594 #include <unistd.h>
595
596 int main ()
597 {
598 #if defined(_SC_KERNEL_BITS)
599 long bits = sysconf(_SC_KERNEL_BITS);
600 #endif
601 long cpu = sysconf (_SC_CPU_VERSION);
602
603 switch (cpu)
604 {
605 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
606 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
607 case CPU_PA_RISC2_0:
608 #if defined(_SC_KERNEL_BITS)
609 switch (bits)
610 {
611 case 64: puts ("hppa2.0w"); break;
612 case 32: puts ("hppa2.0n"); break;
613 default: puts ("hppa2.0"); break;
614 } break;
615 #else /* !defined(_SC_KERNEL_BITS) */
616 puts ("hppa2.0"); break;
617 #endif
618 default: puts ("hppa1.0"); break;
619 }
620 exit (0);
621 }
622 EOF
623 (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
624 test -z "$HP_ARCH" && HP_ARCH=hppa
625 fi ;;
626 esac
627 if [ ${HP_ARCH} = "hppa2.0w" ]
628 then
629 eval $set_cc_for_build
630
631 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
632 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
633 # generating 64-bit code. GNU and HP use different nomenclature:
634 #
635 # $ CC_FOR_BUILD=cc ./config.guess
636 # => hppa2.0w-hp-hpux11.23
637 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
638 # => hppa64-hp-hpux11.23
639
640 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
641 grep __LP64__ >/dev/null
642 then
643 HP_ARCH="hppa2.0w"
644 else
645 HP_ARCH="hppa64"
646 fi
647 fi
648 echo ${HP_ARCH}-hp-hpux${HPUX_REV}
649 exit ;;
650 ia64:HP-UX:*:*)
651 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
652 echo ia64-hp-hpux${HPUX_REV}
653 exit ;;
654 3050*:HI-UX:*:*)
655 eval $set_cc_for_build
656 sed 's/^ //' << EOF >$dummy.c
657 #include <unistd.h>
658 int
659 main ()
660 {
661 long cpu = sysconf (_SC_CPU_VERSION);
662 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
663 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
664 results, however. */
665 if (CPU_IS_PA_RISC (cpu))
666 {
667 switch (cpu)
668 {
669 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
670 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
671 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
672 default: puts ("hppa-hitachi-hiuxwe2"); break;
673 }
674 }
675 else if (CPU_IS_HP_MC68K (cpu))
676 puts ("m68k-hitachi-hiuxwe2");
677 else puts ("unknown-hitachi-hiuxwe2");
678 exit (0);
679 }
680 EOF
681 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
682 { echo "$SYSTEM_NAME"; exit; }
683 echo unknown-hitachi-hiuxwe2
684 exit ;;
685 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
686 echo hppa1.1-hp-bsd
687 exit ;;
688 9000/8??:4.3bsd:*:*)
689 echo hppa1.0-hp-bsd
690 exit ;;
691 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
692 echo hppa1.0-hp-mpeix
693 exit ;;
694 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
695 echo hppa1.1-hp-osf
696 exit ;;
697 hp8??:OSF1:*:*)
698 echo hppa1.0-hp-osf
699 exit ;;
700 i*86:OSF1:*:*)
701 if [ -x /usr/sbin/sysversion ] ; then
702 echo ${UNAME_MACHINE}-unknown-osf1mk
703 else
704 echo ${UNAME_MACHINE}-unknown-osf1
705 fi
706 exit ;;
707 parisc*:Lites*:*:*)
708 echo hppa1.1-hp-lites
709 exit ;;
710 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
711 echo c1-convex-bsd
712 exit ;;
713 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
714 if getsysinfo -f scalar_acc
715 then echo c32-convex-bsd
716 else echo c2-convex-bsd
717 fi
718 exit ;;
719 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
720 echo c34-convex-bsd
721 exit ;;
722 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
723 echo c38-convex-bsd
724 exit ;;
725 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
726 echo c4-convex-bsd
727 exit ;;
728 CRAY*Y-MP:*:*:*)
729 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
730 exit ;;
731 CRAY*[A-Z]90:*:*:*)
732 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
733 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
734 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
735 -e 's/\.[^.]*$/.X/'
736 exit ;;
737 CRAY*TS:*:*:*)
738 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
739 exit ;;
740 CRAY*T3E:*:*:*)
741 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
742 exit ;;
743 CRAY*SV1:*:*:*)
744 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
745 exit ;;
746 *:UNICOS/mp:*:*)
747 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
748 exit ;;
749 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
750 FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
751 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
752 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
753 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
754 exit ;;
755 5000:UNIX_System_V:4.*:*)
756 FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
757 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
758 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
759 exit ;;
760 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
761 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
762 exit ;;
763 sparc*:BSD/OS:*:*)
764 echo sparc-unknown-bsdi${UNAME_RELEASE}
765 exit ;;
766 *:BSD/OS:*:*)
767 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
768 exit ;;
769 *:FreeBSD:*:*)
770 case ${UNAME_MACHINE} in
771 pc98)
772 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
773 amd64)
774 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
775 *)
776 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
777 esac
778 exit ;;
779 i*:CYGWIN*:*)
780 echo ${UNAME_MACHINE}-pc-cygwin
781 exit ;;
782 i*:MINGW*:*)
783 echo ${UNAME_MACHINE}-pc-mingw32
784 exit ;;
785 i*:windows32*:*)
786 # uname -m includes "-pc" on this system.
787 echo ${UNAME_MACHINE}-mingw32
788 exit ;;
789 i*:PW*:*)
790 echo ${UNAME_MACHINE}-pc-pw32
791 exit ;;
792 x86:Interix*:[3456]*)
793 echo i586-pc-interix${UNAME_RELEASE}
794 exit ;;
795 EM64T:Interix*:[3456]*)
796 echo x86_64-unknown-interix${UNAME_RELEASE}
797 exit ;;
798 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
799 echo i${UNAME_MACHINE}-pc-mks
800 exit ;;
801 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
802 # How do we know it's Interix rather than the generic POSIX subsystem?
803 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
804 # UNAME_MACHINE based on the output of uname instead of i386?
805 echo i586-pc-interix
806 exit ;;
807 i*:UWIN*:*)
808 echo ${UNAME_MACHINE}-pc-uwin
809 exit ;;
810 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
811 echo x86_64-unknown-cygwin
812 exit ;;
813 p*:CYGWIN*:*)
814 echo powerpcle-unknown-cygwin
815 exit ;;
816 prep*:SunOS:5.*:*)
817 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
818 exit ;;
819 *:GNU:*:*)
820 # the GNU system
821 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
822 exit ;;
823 *:GNU/*:*:*)
824 # other systems with GNU libc and userland
825 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
826 exit ;;
827 i*86:Minix:*:*)
828 echo ${UNAME_MACHINE}-pc-minix
829 exit ;;
830 arm*:Linux:*:*)
831 echo ${UNAME_MACHINE}-unknown-linux-gnu
832 exit ;;
833 avr32*:Linux:*:*)
834 echo ${UNAME_MACHINE}-unknown-linux-gnu
835 exit ;;
836 cris:Linux:*:*)
837 echo cris-axis-linux-gnu
838 exit ;;
839 crisv32:Linux:*:*)
840 echo crisv32-axis-linux-gnu
841 exit ;;
842 frv:Linux:*:*)
843 echo frv-unknown-linux-gnu
844 exit ;;
845 ia64:Linux:*:*)
846 echo ${UNAME_MACHINE}-unknown-linux-gnu
847 exit ;;
848 m32r*:Linux:*:*)
849 echo ${UNAME_MACHINE}-unknown-linux-gnu
850 exit ;;
851 m68*:Linux:*:*)
852 echo ${UNAME_MACHINE}-unknown-linux-gnu
853 exit ;;
854 mips:Linux:*:*)
855 eval $set_cc_for_build
856 sed 's/^ //' << EOF >$dummy.c
857 #undef CPU
858 #undef mips
859 #undef mipsel
860 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
861 CPU=mipsel
862 #else
863 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
864 CPU=mips
865 #else
866 CPU=
867 #endif
868 #endif
869 EOF
870 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
871 /^CPU/{
872 s: ::g
873 p
874 }'`"
875 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
876 ;;
877 mips64:Linux:*:*)
878 eval $set_cc_for_build
879 sed 's/^ //' << EOF >$dummy.c
880 #undef CPU
881 #undef mips64
882 #undef mips64el
883 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
884 CPU=mips64el
885 #else
886 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
887 CPU=mips64
888 #else
889 CPU=
890 #endif
891 #endif
892 EOF
893 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
894 /^CPU/{
895 s: ::g
896 p
897 }'`"
898 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
899 ;;
900 or32:Linux:*:*)
901 echo or32-unknown-linux-gnu
902 exit ;;
903 ppc:Linux:*:*)
904 echo powerpc-unknown-linux-gnu
905 exit ;;
906 ppc64:Linux:*:*)
907 echo powerpc64-unknown-linux-gnu
908 exit ;;
909 alpha:Linux:*:*)
910 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
911 EV5) UNAME_MACHINE=alphaev5 ;;
912 EV56) UNAME_MACHINE=alphaev56 ;;
913 PCA56) UNAME_MACHINE=alphapca56 ;;
914 PCA57) UNAME_MACHINE=alphapca56 ;;
915 EV6) UNAME_MACHINE=alphaev6 ;;
916 EV67) UNAME_MACHINE=alphaev67 ;;
917 EV68*) UNAME_MACHINE=alphaev68 ;;
918 esac
919 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
920 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
921 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
922 exit ;;
923 parisc:Linux:*:* | hppa:Linux:*:*)
924 # Look for CPU level
925 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
926 PA7*) echo hppa1.1-unknown-linux-gnu ;;
927 PA8*) echo hppa2.0-unknown-linux-gnu ;;
928 *) echo hppa-unknown-linux-gnu ;;
929 esac
930 exit ;;
931 parisc64:Linux:*:* | hppa64:Linux:*:*)
932 echo hppa64-unknown-linux-gnu
933 exit ;;
934 s390:Linux:*:* | s390x:Linux:*:*)
935 echo ${UNAME_MACHINE}-ibm-linux
936 exit ;;
937 sh64*:Linux:*:*)
938 echo ${UNAME_MACHINE}-unknown-linux-gnu
939 exit ;;
940 sh*:Linux:*:*)
941 echo ${UNAME_MACHINE}-unknown-linux-gnu
942 exit ;;
943 sparc:Linux:*:* | sparc64:Linux:*:*)
944 echo ${UNAME_MACHINE}-unknown-linux-gnu
945 exit ;;
946 vax:Linux:*:*)
947 echo ${UNAME_MACHINE}-dec-linux-gnu
948 exit ;;
949 x86_64:Linux:*:*)
950 echo x86_64-unknown-linux-gnu
951 exit ;;
952 i*86:Linux:*:*)
953 # The BFD linker knows what the default object file format is, so
954 # first see if it will tell us. cd to the root directory to prevent
955 # problems with other programs or directories called `ld' in the path.
956 # Set LC_ALL=C to ensure ld outputs messages in English.
957 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
958 | sed -ne '/supported targets:/!d
959 s/[ ][ ]*/ /g
960 s/.*supported targets: *//
961 s/ .*//
962 p'`
963 case "$ld_supported_targets" in
964 elf32-i386)
965 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
966 ;;
967 a.out-i386-linux)
968 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
969 exit ;;
970 coff-i386)
971 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
972 exit ;;
973 "")
974 # Either a pre-BFD a.out linker (linux-gnuoldld) or
975 # one that does not give us useful --help.
976 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
977 exit ;;
978 esac
979 # Determine whether the default compiler is a.out or elf
980 eval $set_cc_for_build
981 sed 's/^ //' << EOF >$dummy.c
982 #include <features.h>
983 #ifdef __ELF__
984 # ifdef __GLIBC__
985 # if __GLIBC__ >= 2
986 LIBC=gnu
987 # else
988 LIBC=gnulibc1
989 # endif
990 # else
991 LIBC=gnulibc1
992 # endif
993 #else
994 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
995 LIBC=gnu
996 #else
997 LIBC=gnuaout
998 #endif
999 #endif
1000 #ifdef __dietlibc__
1001 LIBC=dietlibc
1002 #endif
1003 EOF
1004 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1005 /^LIBC/{
1006 s: ::g
1007 p
1008 }'`"
1009 test x"${LIBC}" != x && {
1010 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1011 exit
1012 }
1013 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1014 ;;
1015 i*86:DYNIX/ptx:4*:*)
1016 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1017 # earlier versions are messed up and put the nodename in both
1018 # sysname and nodename.
1019 echo i386-sequent-sysv4
1020 exit ;;
1021 i*86:UNIX_SV:4.2MP:2.*)
1022 # Unixware is an offshoot of SVR4, but it has its own version
1023 # number series starting with 2...
1024 # I am not positive that other SVR4 systems won't match this,
1025 # I just have to hope. -- rms.
1026 # Use sysv4.2uw... so that sysv4* matches it.
1027 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1028 exit ;;
1029 i*86:OS/2:*:*)
1030 # If we were able to find `uname', then EMX Unix compatibility
1031 # is probably installed.
1032 echo ${UNAME_MACHINE}-pc-os2-emx
1033 exit ;;
1034 i*86:XTS-300:*:STOP)
1035 echo ${UNAME_MACHINE}-unknown-stop
1036 exit ;;
1037 i*86:atheos:*:*)
1038 echo ${UNAME_MACHINE}-unknown-atheos
1039 exit ;;
1040 i*86:syllable:*:*)
1041 echo ${UNAME_MACHINE}-pc-syllable
1042 exit ;;
1043 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1044 echo i386-unknown-lynxos${UNAME_RELEASE}
1045 exit ;;
1046 i*86:*DOS:*:*)
1047 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1048 exit ;;
1049 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1050 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1051 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1052 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1053 else
1054 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1055 fi
1056 exit ;;
1057 i*86:*:5:[678]*)
1058 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1059 case `/bin/uname -X | grep "^Machine"` in
1060 *486*) UNAME_MACHINE=i486 ;;
1061 *Pentium) UNAME_MACHINE=i586 ;;
1062 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1063 esac
1064 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1065 exit ;;
1066 i*86:*:3.2:*)
1067 if test -f /usr/options/cb.name; then
1068 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1069 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
1070 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1071 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1072 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1073 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1074 && UNAME_MACHINE=i586
1075 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1076 && UNAME_MACHINE=i686
1077 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1078 && UNAME_MACHINE=i686
1079 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
1080 else
1081 echo ${UNAME_MACHINE}-pc-sysv32
1082 fi
1083 exit ;;
1084 pc:*:*:*)
1085 # Left here for compatibility:
1086 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1087 # the processor, so we play safe by assuming i386.
1088 echo i386-pc-msdosdjgpp
1089 exit ;;
1090 Intel:Mach:3*:*)
1091 echo i386-pc-mach3
1092 exit ;;
1093 paragon:*:*:*)
1094 echo i860-intel-osf1
1095 exit ;;
1096 i860:*:4.*:*) # i860-SVR4
1097 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1098 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1099 else # Add other i860-SVR4 vendors below as they are discovered.
1100 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1101 fi
1102 exit ;;
1103 mini*:CTIX:SYS*5:*)
1104 # "miniframe"
1105 echo m68010-convergent-sysv
1106 exit ;;
1107 mc68k:UNIX:SYSTEM5:3.51m)
1108 echo m68k-convergent-sysv
1109 exit ;;
1110 M680?0:D-NIX:5.3:*)
1111 echo m68k-diab-dnix
1112 exit ;;
1113 M68*:*:R3V[5678]*:*)
1114 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1115 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
1116 OS_REL=''
1117 test -r /etc/.relid \
1118 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1119 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1120 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1121 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1122 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1123 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1124 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1125 && { echo i486-ncr-sysv4; exit; } ;;
1126 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1127 echo m68k-unknown-lynxos${UNAME_RELEASE}
1128 exit ;;
1129 mc68030:UNIX_System_V:4.*:*)
1130 echo m68k-atari-sysv4
1131 exit ;;
1132 TSUNAMI:LynxOS:2.*:*)
1133 echo sparc-unknown-lynxos${UNAME_RELEASE}
1134 exit ;;
1135 rs6000:LynxOS:2.*:*)
1136 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1137 exit ;;
1138 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1139 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1140 exit ;;
1141 SM[BE]S:UNIX_SV:*:*)
1142 echo mips-dde-sysv${UNAME_RELEASE}
1143 exit ;;
1144 RM*:ReliantUNIX-*:*:*)
1145 echo mips-sni-sysv4
1146 exit ;;
1147 RM*:SINIX-*:*:*)
1148 echo mips-sni-sysv4
1149 exit ;;
1150 *:SINIX-*:*:*)
1151 if uname -p 2>/dev/null >/dev/null ; then
1152 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1153 echo ${UNAME_MACHINE}-sni-sysv4
1154 else
1155 echo ns32k-sni-sysv
1156 fi
1157 exit ;;
1158 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1159 # says <Richard.M.Bartel@ccMail.Census.GOV>
1160 echo i586-unisys-sysv4
1161 exit ;;
1162 *:UNIX_System_V:4*:FTX*)
1163 # From Gerald Hewes <hewes@openmarket.com>.
1164 # How about differentiating between stratus architectures? -djm
1165 echo hppa1.1-stratus-sysv4
1166 exit ;;
1167 *:*:*:FTX*)
1168 # From seanf@swdc.stratus.com.
1169 echo i860-stratus-sysv4
1170 exit ;;
1171 i*86:VOS:*:*)
1172 # From Paul.Green@stratus.com.
1173 echo ${UNAME_MACHINE}-stratus-vos
1174 exit ;;
1175 *:VOS:*:*)
1176 # From Paul.Green@stratus.com.
1177 echo hppa1.1-stratus-vos
1178 exit ;;
1179 mc68*:A/UX:*:*)
1180 echo m68k-apple-aux${UNAME_RELEASE}
1181 exit ;;
1182 news*:NEWS-OS:6*:*)
1183 echo mips-sony-newsos6
1184 exit ;;
1185 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1186 if [ -d /usr/nec ]; then
1187 echo mips-nec-sysv${UNAME_RELEASE}
1188 else
1189 echo mips-unknown-sysv${UNAME_RELEASE}
1190 fi
1191 exit ;;
1192 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1193 echo powerpc-be-beos
1194 exit ;;
1195 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1196 echo powerpc-apple-beos
1197 exit ;;
1198 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1199 echo i586-pc-beos
1200 exit ;;
1201 SX-4:SUPER-UX:*:*)
1202 echo sx4-nec-superux${UNAME_RELEASE}
1203 exit ;;
1204 SX-5:SUPER-UX:*:*)
1205 echo sx5-nec-superux${UNAME_RELEASE}
1206 exit ;;
1207 SX-6:SUPER-UX:*:*)
1208 echo sx6-nec-superux${UNAME_RELEASE}
1209 exit ;;
1210 Power*:Rhapsody:*:*)
1211 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1212 exit ;;
1213 *:Rhapsody:*:*)
1214 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1215 exit ;;
1216 *:Darwin:*:*)
1217 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1218 case $UNAME_PROCESSOR in
1219 unknown) UNAME_PROCESSOR=powerpc ;;
1220 esac
1221 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1222 exit ;;
1223 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1224 UNAME_PROCESSOR=`uname -p`
1225 if test "$UNAME_PROCESSOR" = "x86"; then
1226 UNAME_PROCESSOR=i386
1227 UNAME_MACHINE=pc
1228 fi
1229 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1230 exit ;;
1231 *:QNX:*:4*)
1232 echo i386-pc-qnx
1233 exit ;;
1234 NSE-?:NONSTOP_KERNEL:*:*)
1235 echo nse-tandem-nsk${UNAME_RELEASE}
1236 exit ;;
1237 NSR-?:NONSTOP_KERNEL:*:*)
1238 echo nsr-tandem-nsk${UNAME_RELEASE}
1239 exit ;;
1240 *:NonStop-UX:*:*)
1241 echo mips-compaq-nonstopux
1242 exit ;;
1243 BS2000:POSIX*:*:*)
1244 echo bs2000-siemens-sysv
1245 exit ;;
1246 DS/*:UNIX_System_V:*:*)
1247 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
1248 exit ;;
1249 *:Plan9:*:*)
1250 # "uname -m" is not consistent, so use $cputype instead. 386
1251 # is converted to i386 for consistency with other x86
1252 # operating systems.
1253 if test "$cputype" = "386"; then
1254 UNAME_MACHINE=i386
1255 else
1256 UNAME_MACHINE="$cputype"
1257 fi
1258 echo ${UNAME_MACHINE}-unknown-plan9
1259 exit ;;
1260 *:TOPS-10:*:*)
1261 echo pdp10-unknown-tops10
1262 exit ;;
1263 *:TENEX:*:*)
1264 echo pdp10-unknown-tenex
1265 exit ;;
1266 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1267 echo pdp10-dec-tops20
1268 exit ;;
1269 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1270 echo pdp10-xkl-tops20
1271 exit ;;
1272 *:TOPS-20:*:*)
1273 echo pdp10-unknown-tops20
1274 exit ;;
1275 *:ITS:*:*)
1276 echo pdp10-unknown-its
1277 exit ;;
1278 SEI:*:*:SEIUX)
1279 echo mips-sei-seiux${UNAME_RELEASE}
1280 exit ;;
1281 *:DragonFly:*:*)
1282 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1283 exit ;;
1284 *:*VMS:*:*)
1285 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1286 case "${UNAME_MACHINE}" in
1287 A*) echo alpha-dec-vms ; exit ;;
1288 I*) echo ia64-dec-vms ; exit ;;
1289 V*) echo vax-dec-vms ; exit ;;
1290 esac ;;
1291 *:XENIX:*:SysV)
1292 echo i386-pc-xenix
1293 exit ;;
1294 i*86:skyos:*:*)
1295 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1296 exit ;;
1297 i*86:rdos:*:*)
1298 echo ${UNAME_MACHINE}-pc-rdos
1299 exit ;;
1300 esac
1301
1302 #echo '(No uname command or uname output not recognized.)' 1>&2
1303 #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1304
1305 eval $set_cc_for_build
1306 cat >$dummy.c <<EOF
1307 #ifdef _SEQUENT_
1308 # include <sys/types.h>
1309 # include <sys/utsname.h>
1310 #endif
1311 main ()
1312 {
1313 #if defined (sony)
1314 #if defined (MIPSEB)
1315 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1316 I don't know.... */
1317 printf ("mips-sony-bsd\n"); exit (0);
1318 #else
1319 #include <sys/param.h>
1320 printf ("m68k-sony-newsos%s\n",
1321 #ifdef NEWSOS4
1322 "4"
1323 #else
1324 ""
1325 #endif
1326 ); exit (0);
1327 #endif
1328 #endif
1329
1330 #if defined (__arm) && defined (__acorn) && defined (__unix)
1331 printf ("arm-acorn-riscix\n"); exit (0);
1332 #endif
1333
1334 #if defined (hp300) && !defined (hpux)
1335 printf ("m68k-hp-bsd\n"); exit (0);
1336 #endif
1337
1338 #if defined (NeXT)
1339 #if !defined (__ARCHITECTURE__)
1340 #define __ARCHITECTURE__ "m68k"
1341 #endif
1342 int version;
1343 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1344 if (version < 4)
1345 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1346 else
1347 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1348 exit (0);
1349 #endif
1350
1351 #if defined (MULTIMAX) || defined (n16)
1352 #if defined (UMAXV)
1353 printf ("ns32k-encore-sysv\n"); exit (0);
1354 #else
1355 #if defined (CMU)
1356 printf ("ns32k-encore-mach\n"); exit (0);
1357 #else
1358 printf ("ns32k-encore-bsd\n"); exit (0);
1359 #endif
1360 #endif
1361 #endif
1362
1363 #if defined (__386BSD__)
1364 printf ("i386-pc-bsd\n"); exit (0);
1365 #endif
1366
1367 #if defined (sequent)
1368 #if defined (i386)
1369 printf ("i386-sequent-dynix\n"); exit (0);
1370 #endif
1371 #if defined (ns32000)
1372 printf ("ns32k-sequent-dynix\n"); exit (0);
1373 #endif
1374 #endif
1375
1376 #if defined (_SEQUENT_)
1377 struct utsname un;
1378
1379 uname(&un);
1380
1381 if (strncmp(un.version, "V2", 2) == 0) {
1382 printf ("i386-sequent-ptx2\n"); exit (0);
1383 }
1384 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1385 printf ("i386-sequent-ptx1\n"); exit (0);
1386 }
1387 printf ("i386-sequent-ptx\n"); exit (0);
1388
1389 #endif
1390
1391 #if defined (vax)
1392 # if !defined (ultrix)
1393 # include <sys/param.h>
1394 # if defined (BSD)
1395 # if BSD == 43
1396 printf ("vax-dec-bsd4.3\n"); exit (0);
1397 # else
1398 # if BSD == 199006
1399 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1400 # else
1401 printf ("vax-dec-bsd\n"); exit (0);
1402 # endif
1403 # endif
1404 # else
1405 printf ("vax-dec-bsd\n"); exit (0);
1406 # endif
1407 # else
1408 printf ("vax-dec-ultrix\n"); exit (0);
1409 # endif
1410 #endif
1411
1412 #if defined (alliant) && defined (i860)
1413 printf ("i860-alliant-bsd\n"); exit (0);
1414 #endif
1415
1416 exit (1);
1417 }
1418 EOF
1419
1420 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
1421 { echo "$SYSTEM_NAME"; exit; }
1422
1423 # Apollos put the system type in the environment.
1424
1425 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
1426
1427 # Convex versions that predate uname can use getsysinfo(1)
1428
1429 if [ -x /usr/convex/getsysinfo ]
1430 then
1431 case `getsysinfo -f cpu_type` in
1432 c1*)
1433 echo c1-convex-bsd
1434 exit ;;
1435 c2*)
1436 if getsysinfo -f scalar_acc
1437 then echo c32-convex-bsd
1438 else echo c2-convex-bsd
1439 fi
1440 exit ;;
1441 c34*)
1442 echo c34-convex-bsd
1443 exit ;;
1444 c38*)
1445 echo c38-convex-bsd
1446 exit ;;
1447 c4*)
1448 echo c4-convex-bsd
1449 exit ;;
1450 esac
1451 fi
1452
1453 cat >&2 <<EOF
1454 $0: unable to guess system type
1455
1456 This script, last modified $timestamp, has failed to recognize
1457 the operating system you are using. It is advised that you
1458 download the most up to date version of the config scripts from
1459
1460 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
1461 and
1462 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
1463
1464 If the version you run ($0) is already up to date, please
1465 send the following data and any information you think might be
1466 pertinent to <config-patches@gnu.org> in order to provide the needed
1467 information to handle your system.
1468
1469 config.guess timestamp = $timestamp
1470
1471 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1472 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1473 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1474 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1475
1476 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1477 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1478
1479 hostinfo = `(hostinfo) 2>/dev/null`
1480 /bin/universe = `(/bin/universe) 2>/dev/null`
1481 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1482 /bin/arch = `(/bin/arch) 2>/dev/null`
1483 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1484 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1485
1486 UNAME_MACHINE = ${UNAME_MACHINE}
1487 UNAME_RELEASE = ${UNAME_RELEASE}
1488 UNAME_SYSTEM = ${UNAME_SYSTEM}
1489 UNAME_VERSION = ${UNAME_VERSION}
1490 EOF
1491
1492 exit 1
1493
1494 # Local variables:
1495 # eval: (add-hook 'write-file-hooks 'time-stamp)
1496 # time-stamp-start: "timestamp='"
1497 # time-stamp-format: "%:y-%02m-%02d"
1498 # time-stamp-end: "'"
1499 # End:
0 /* config.h.in. Generated from configure.in by autoheader. */
1
2 /* Define if you want to use libfaad together with Digital Radio Mondiale
3 (DRM) */
4 #undef DRM
5
6 /* Define if you want support for Digital Radio Mondiale (DRM) parametric
7 stereo */
8 #undef DRM_PS
9
10 /* Define to 1 if you have the <dlfcn.h> header file. */
11 #undef HAVE_DLFCN_H
12
13 /* Define to 1 if you have the <errno.h> header file. */
14 #undef HAVE_ERRNO_H
15
16 /* Define if needed */
17 #undef HAVE_FLOAT32_T
18
19 /* Define to 1 if you have the <float.h> header file. */
20 #undef HAVE_FLOAT_H
21
22 /* Define to 1 if you have the `getpwuid' function. */
23 #undef HAVE_GETPWUID
24
25 /* Define to 1 if you have the <inttypes.h> header file. */
26 #undef HAVE_INTTYPES_H
27
28 /* Define if you have the IOKit API */
29 #undef HAVE_IOKIT_IOKITLIB_H
30
31 /* Define to 1 if you have the <limits.h> header file. */
32 #undef HAVE_LIMITS_H
33
34 /* Define if you have C99's lrintf function. */
35 #undef HAVE_LRINTF
36
37 /* Define to 1 if you have the <mathf.h> header file. */
38 #undef HAVE_MATHF_H
39
40 /* Define to 1 if you have the `memcpy' function. */
41 #undef HAVE_MEMCPY
42
43 /* Define to 1 if you have the <memory.h> header file. */
44 #undef HAVE_MEMORY_H
45
46 /* Define to 1 if you have the <stdint.h> header file. */
47 #undef HAVE_STDINT_H
48
49 /* Define to 1 if you have the <stdlib.h> header file. */
50 #undef HAVE_STDLIB_H
51
52 /* Define to 1 if you have the `strchr' function. */
53 #undef HAVE_STRCHR
54
55 /* Define to 1 if you have the <strings.h> header file. */
56 #undef HAVE_STRINGS_H
57
58 /* Define to 1 if you have the <string.h> header file. */
59 #undef HAVE_STRING_H
60
61 /* Define to 1 if you have the `strsep' function. */
62 #undef HAVE_STRSEP
63
64 /* Define to 1 if you have the <sysfs/libsysfs.h> header file. */
65 #undef HAVE_SYSFS_LIBSYSFS_H
66
67 /* Define to 1 if you have the <sys/stat.h> header file. */
68 #undef HAVE_SYS_STAT_H
69
70 /* Define to 1 if you have the <sys/time.h> header file. */
71 #undef HAVE_SYS_TIME_H
72
73 /* Define to 1 if you have the <sys/types.h> header file. */
74 #undef HAVE_SYS_TYPES_H
75
76 /* Define to 1 if you have the <unistd.h> header file. */
77 #undef HAVE_UNISTD_H
78
79 /* Define to 1 if your C compiler doesn't accept -c and -o together. */
80 #undef NO_MINUS_C_MINUS_O
81
82 /* Name of package */
83 #undef PACKAGE
84
85 /* Define to the address where bug reports for this package should be sent. */
86 #undef PACKAGE_BUGREPORT
87
88 /* Define to the full name of this package. */
89 #undef PACKAGE_NAME
90
91 /* Define to the full name and version of this package. */
92 #undef PACKAGE_STRING
93
94 /* Define to the one symbol short name of this package. */
95 #undef PACKAGE_TARNAME
96
97 /* Define to the version of this package. */
98 #undef PACKAGE_VERSION
99
100 /* Define to 1 if you have the ANSI C header files. */
101 #undef STDC_HEADERS
102
103 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
104 #undef TIME_WITH_SYS_TIME
105
106 /* Version number of package */
107 #undef VERSION
108
109 /* Define to 1 if your processor stores words with the most significant byte
110 first (like Motorola and SPARC, unlike Intel and VAX). */
111 #undef WORDS_BIGENDIAN
112
113 /* Define to `__inline__' or `__inline' if that's what the C compiler
114 calls it, or to nothing if 'inline' is not supported under any name. */
115 #ifndef __cplusplus
116 #undef inline
117 #endif
118
119 /* Define to `long int' if <sys/types.h> does not define. */
120 #undef off_t
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3 # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4 # Inc.
5
6 timestamp='2006-07-02'
7
8 # This file is (in principle) common to ALL GNU software.
9 # The presence of a machine in this file suggests that SOME GNU software
10 # can handle that machine. It does not imply ALL GNU software can.
11 #
12 # This file is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
16 #
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
21 #
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
25 # 02110-1301, USA.
26 #
27 # As a special exception to the GNU General Public License, if you
28 # distribute this file as part of a program that contains a
29 # configuration script generated by Autoconf, you may include it under
30 # the same distribution terms that you use for the rest of that program.
31
32
33 # Please send patches to <config-patches@gnu.org>. Submit a context
34 # diff and a properly formatted ChangeLog entry.
35 #
36 # Configuration subroutine to validate and canonicalize a configuration type.
37 # Supply the specified configuration type as an argument.
38 # If it is invalid, we print an error message on stderr and exit with code 1.
39 # Otherwise, we print the canonical config type on stdout and succeed.
40
41 # This file is supposed to be the same for all GNU packages
42 # and recognize all the CPU types, system types and aliases
43 # that are meaningful with *any* GNU software.
44 # Each package is responsible for reporting which valid configurations
45 # it does not support. The user should be able to distinguish
46 # a failure to support a valid configuration from a meaningless
47 # configuration.
48
49 # The goal of this file is to map all the various variations of a given
50 # machine specification into a single specification in the form:
51 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
52 # or in some cases, the newer four-part form:
53 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
54 # It is wrong to echo any other type of specification.
55
56 me=`echo "$0" | sed -e 's,.*/,,'`
57
58 usage="\
59 Usage: $0 [OPTION] CPU-MFR-OPSYS
60 $0 [OPTION] ALIAS
61
62 Canonicalize a configuration name.
63
64 Operation modes:
65 -h, --help print this help, then exit
66 -t, --time-stamp print date of last modification, then exit
67 -v, --version print version number, then exit
68
69 Report bugs and patches to <config-patches@gnu.org>."
70
71 version="\
72 GNU config.sub ($timestamp)
73
74 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
75 Free Software Foundation, Inc.
76
77 This is free software; see the source for copying conditions. There is NO
78 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
79
80 help="
81 Try \`$me --help' for more information."
82
83 # Parse command line
84 while test $# -gt 0 ; do
85 case $1 in
86 --time-stamp | --time* | -t )
87 echo "$timestamp" ; exit ;;
88 --version | -v )
89 echo "$version" ; exit ;;
90 --help | --h* | -h )
91 echo "$usage"; exit ;;
92 -- ) # Stop option processing
93 shift; break ;;
94 - ) # Use stdin as input.
95 break ;;
96 -* )
97 echo "$me: invalid option $1$help"
98 exit 1 ;;
99
100 *local*)
101 # First pass through any local machine types.
102 echo $1
103 exit ;;
104
105 * )
106 break ;;
107 esac
108 done
109
110 case $# in
111 0) echo "$me: missing argument$help" >&2
112 exit 1;;
113 1) ;;
114 *) echo "$me: too many arguments$help" >&2
115 exit 1;;
116 esac
117
118 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
119 # Here we must recognize all the valid KERNEL-OS combinations.
120 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
121 case $maybe_os in
122 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
123 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
124 storm-chaos* | os2-emx* | rtmk-nova*)
125 os=-$maybe_os
126 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
127 ;;
128 *)
129 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
130 if [ $basic_machine != $1 ]
131 then os=`echo $1 | sed 's/.*-/-/'`
132 else os=; fi
133 ;;
134 esac
135
136 ### Let's recognize common machines as not being operating systems so
137 ### that things like config.sub decstation-3100 work. We also
138 ### recognize some manufacturers as not being operating systems, so we
139 ### can provide default operating systems below.
140 case $os in
141 -sun*os*)
142 # Prevent following clause from handling this invalid input.
143 ;;
144 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
145 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
146 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
147 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
148 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
149 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
150 -apple | -axis | -knuth | -cray)
151 os=
152 basic_machine=$1
153 ;;
154 -sim | -cisco | -oki | -wec | -winbond)
155 os=
156 basic_machine=$1
157 ;;
158 -scout)
159 ;;
160 -wrs)
161 os=-vxworks
162 basic_machine=$1
163 ;;
164 -chorusos*)
165 os=-chorusos
166 basic_machine=$1
167 ;;
168 -chorusrdb)
169 os=-chorusrdb
170 basic_machine=$1
171 ;;
172 -hiux*)
173 os=-hiuxwe2
174 ;;
175 -sco6)
176 os=-sco5v6
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
178 ;;
179 -sco5)
180 os=-sco3.2v5
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco4)
184 os=-sco3.2v4
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco3.2.[4-9]*)
188 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco3.2v[4-9]*)
192 # Don't forget version if it is 3.2v4 or newer.
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco5v6*)
196 # Don't forget version if it is 3.2v4 or newer.
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -sco*)
200 os=-sco3.2v2
201 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
202 ;;
203 -udk*)
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -isc)
207 os=-isc2.2
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
209 ;;
210 -clix*)
211 basic_machine=clipper-intergraph
212 ;;
213 -isc*)
214 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
215 ;;
216 -lynx*)
217 os=-lynxos
218 ;;
219 -ptx*)
220 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
221 ;;
222 -windowsnt*)
223 os=`echo $os | sed -e 's/windowsnt/winnt/'`
224 ;;
225 -psos*)
226 os=-psos
227 ;;
228 -mint | -mint[0-9]*)
229 basic_machine=m68k-atari
230 os=-mint
231 ;;
232 esac
233
234 # Decode aliases for certain CPU-COMPANY combinations.
235 case $basic_machine in
236 # Recognize the basic CPU types without company name.
237 # Some are omitted here because they have special meanings below.
238 1750a | 580 \
239 | a29k \
240 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
241 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
242 | am33_2.0 \
243 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
244 | bfin \
245 | c4x | clipper \
246 | d10v | d30v | dlx | dsp16xx \
247 | fr30 | frv \
248 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
249 | i370 | i860 | i960 | ia64 \
250 | ip2k | iq2000 \
251 | m32c | m32r | m32rle | m68000 | m68k | m88k \
252 | maxq | mb | microblaze | mcore \
253 | mips | mipsbe | mipseb | mipsel | mipsle \
254 | mips16 \
255 | mips64 | mips64el \
256 | mips64vr | mips64vrel \
257 | mips64orion | mips64orionel \
258 | mips64vr4100 | mips64vr4100el \
259 | mips64vr4300 | mips64vr4300el \
260 | mips64vr5000 | mips64vr5000el \
261 | mips64vr5900 | mips64vr5900el \
262 | mipsisa32 | mipsisa32el \
263 | mipsisa32r2 | mipsisa32r2el \
264 | mipsisa64 | mipsisa64el \
265 | mipsisa64r2 | mipsisa64r2el \
266 | mipsisa64sb1 | mipsisa64sb1el \
267 | mipsisa64sr71k | mipsisa64sr71kel \
268 | mipstx39 | mipstx39el \
269 | mn10200 | mn10300 \
270 | mt \
271 | msp430 \
272 | nios | nios2 \
273 | ns16k | ns32k \
274 | or32 \
275 | pdp10 | pdp11 | pj | pjl \
276 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
277 | pyramid \
278 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
279 | sh64 | sh64le \
280 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
281 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
282 | spu | strongarm \
283 | tahoe | thumb | tic4x | tic80 | tron \
284 | v850 | v850e \
285 | we32k \
286 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
287 | z8k)
288 basic_machine=$basic_machine-unknown
289 ;;
290 m6811 | m68hc11 | m6812 | m68hc12)
291 # Motorola 68HC11/12.
292 basic_machine=$basic_machine-unknown
293 os=-none
294 ;;
295 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
296 ;;
297 ms1)
298 basic_machine=mt-unknown
299 ;;
300
301 # We use `pc' rather than `unknown'
302 # because (1) that's what they normally are, and
303 # (2) the word "unknown" tends to confuse beginning users.
304 i*86 | x86_64)
305 basic_machine=$basic_machine-pc
306 ;;
307 # Object if more than one company name word.
308 *-*-*)
309 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
310 exit 1
311 ;;
312 # Recognize the basic CPU types with company name.
313 580-* \
314 | a29k-* \
315 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
316 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
317 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
318 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
319 | avr-* | avr32-* \
320 | bfin-* | bs2000-* \
321 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
322 | clipper-* | craynv-* | cydra-* \
323 | d10v-* | d30v-* | dlx-* \
324 | elxsi-* \
325 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
326 | h8300-* | h8500-* \
327 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
328 | i*86-* | i860-* | i960-* | ia64-* \
329 | ip2k-* | iq2000-* \
330 | m32c-* | m32r-* | m32rle-* \
331 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
332 | m88110-* | m88k-* | maxq-* | mcore-* \
333 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
334 | mips16-* \
335 | mips64-* | mips64el-* \
336 | mips64vr-* | mips64vrel-* \
337 | mips64orion-* | mips64orionel-* \
338 | mips64vr4100-* | mips64vr4100el-* \
339 | mips64vr4300-* | mips64vr4300el-* \
340 | mips64vr5000-* | mips64vr5000el-* \
341 | mips64vr5900-* | mips64vr5900el-* \
342 | mipsisa32-* | mipsisa32el-* \
343 | mipsisa32r2-* | mipsisa32r2el-* \
344 | mipsisa64-* | mipsisa64el-* \
345 | mipsisa64r2-* | mipsisa64r2el-* \
346 | mipsisa64sb1-* | mipsisa64sb1el-* \
347 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
348 | mipstx39-* | mipstx39el-* \
349 | mmix-* \
350 | mt-* \
351 | msp430-* \
352 | nios-* | nios2-* \
353 | none-* | np1-* | ns16k-* | ns32k-* \
354 | orion-* \
355 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
356 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
357 | pyramid-* \
358 | romp-* | rs6000-* \
359 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
360 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
361 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
362 | sparclite-* \
363 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
364 | tahoe-* | thumb-* \
365 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
366 | tron-* \
367 | v850-* | v850e-* | vax-* \
368 | we32k-* \
369 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
370 | xstormy16-* | xtensa-* \
371 | ymp-* \
372 | z8k-*)
373 ;;
374 # Recognize the various machine names and aliases which stand
375 # for a CPU type and a company and sometimes even an OS.
376 386bsd)
377 basic_machine=i386-unknown
378 os=-bsd
379 ;;
380 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
381 basic_machine=m68000-att
382 ;;
383 3b*)
384 basic_machine=we32k-att
385 ;;
386 a29khif)
387 basic_machine=a29k-amd
388 os=-udi
389 ;;
390 abacus)
391 basic_machine=abacus-unknown
392 ;;
393 adobe68k)
394 basic_machine=m68010-adobe
395 os=-scout
396 ;;
397 alliant | fx80)
398 basic_machine=fx80-alliant
399 ;;
400 altos | altos3068)
401 basic_machine=m68k-altos
402 ;;
403 am29k)
404 basic_machine=a29k-none
405 os=-bsd
406 ;;
407 amd64)
408 basic_machine=x86_64-pc
409 ;;
410 amd64-*)
411 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
412 ;;
413 amdahl)
414 basic_machine=580-amdahl
415 os=-sysv
416 ;;
417 amiga | amiga-*)
418 basic_machine=m68k-unknown
419 ;;
420 amigaos | amigados)
421 basic_machine=m68k-unknown
422 os=-amigaos
423 ;;
424 amigaunix | amix)
425 basic_machine=m68k-unknown
426 os=-sysv4
427 ;;
428 apollo68)
429 basic_machine=m68k-apollo
430 os=-sysv
431 ;;
432 apollo68bsd)
433 basic_machine=m68k-apollo
434 os=-bsd
435 ;;
436 aux)
437 basic_machine=m68k-apple
438 os=-aux
439 ;;
440 balance)
441 basic_machine=ns32k-sequent
442 os=-dynix
443 ;;
444 c90)
445 basic_machine=c90-cray
446 os=-unicos
447 ;;
448 convex-c1)
449 basic_machine=c1-convex
450 os=-bsd
451 ;;
452 convex-c2)
453 basic_machine=c2-convex
454 os=-bsd
455 ;;
456 convex-c32)
457 basic_machine=c32-convex
458 os=-bsd
459 ;;
460 convex-c34)
461 basic_machine=c34-convex
462 os=-bsd
463 ;;
464 convex-c38)
465 basic_machine=c38-convex
466 os=-bsd
467 ;;
468 cray | j90)
469 basic_machine=j90-cray
470 os=-unicos
471 ;;
472 craynv)
473 basic_machine=craynv-cray
474 os=-unicosmp
475 ;;
476 cr16c)
477 basic_machine=cr16c-unknown
478 os=-elf
479 ;;
480 crds | unos)
481 basic_machine=m68k-crds
482 ;;
483 crisv32 | crisv32-* | etraxfs*)
484 basic_machine=crisv32-axis
485 ;;
486 cris | cris-* | etrax*)
487 basic_machine=cris-axis
488 ;;
489 crx)
490 basic_machine=crx-unknown
491 os=-elf
492 ;;
493 da30 | da30-*)
494 basic_machine=m68k-da30
495 ;;
496 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
497 basic_machine=mips-dec
498 ;;
499 decsystem10* | dec10*)
500 basic_machine=pdp10-dec
501 os=-tops10
502 ;;
503 decsystem20* | dec20*)
504 basic_machine=pdp10-dec
505 os=-tops20
506 ;;
507 delta | 3300 | motorola-3300 | motorola-delta \
508 | 3300-motorola | delta-motorola)
509 basic_machine=m68k-motorola
510 ;;
511 delta88)
512 basic_machine=m88k-motorola
513 os=-sysv3
514 ;;
515 djgpp)
516 basic_machine=i586-pc
517 os=-msdosdjgpp
518 ;;
519 dpx20 | dpx20-*)
520 basic_machine=rs6000-bull
521 os=-bosx
522 ;;
523 dpx2* | dpx2*-bull)
524 basic_machine=m68k-bull
525 os=-sysv3
526 ;;
527 ebmon29k)
528 basic_machine=a29k-amd
529 os=-ebmon
530 ;;
531 elxsi)
532 basic_machine=elxsi-elxsi
533 os=-bsd
534 ;;
535 encore | umax | mmax)
536 basic_machine=ns32k-encore
537 ;;
538 es1800 | OSE68k | ose68k | ose | OSE)
539 basic_machine=m68k-ericsson
540 os=-ose
541 ;;
542 fx2800)
543 basic_machine=i860-alliant
544 ;;
545 genix)
546 basic_machine=ns32k-ns
547 ;;
548 gmicro)
549 basic_machine=tron-gmicro
550 os=-sysv
551 ;;
552 go32)
553 basic_machine=i386-pc
554 os=-go32
555 ;;
556 h3050r* | hiux*)
557 basic_machine=hppa1.1-hitachi
558 os=-hiuxwe2
559 ;;
560 h8300hms)
561 basic_machine=h8300-hitachi
562 os=-hms
563 ;;
564 h8300xray)
565 basic_machine=h8300-hitachi
566 os=-xray
567 ;;
568 h8500hms)
569 basic_machine=h8500-hitachi
570 os=-hms
571 ;;
572 harris)
573 basic_machine=m88k-harris
574 os=-sysv3
575 ;;
576 hp300-*)
577 basic_machine=m68k-hp
578 ;;
579 hp300bsd)
580 basic_machine=m68k-hp
581 os=-bsd
582 ;;
583 hp300hpux)
584 basic_machine=m68k-hp
585 os=-hpux
586 ;;
587 hp3k9[0-9][0-9] | hp9[0-9][0-9])
588 basic_machine=hppa1.0-hp
589 ;;
590 hp9k2[0-9][0-9] | hp9k31[0-9])
591 basic_machine=m68000-hp
592 ;;
593 hp9k3[2-9][0-9])
594 basic_machine=m68k-hp
595 ;;
596 hp9k6[0-9][0-9] | hp6[0-9][0-9])
597 basic_machine=hppa1.0-hp
598 ;;
599 hp9k7[0-79][0-9] | hp7[0-79][0-9])
600 basic_machine=hppa1.1-hp
601 ;;
602 hp9k78[0-9] | hp78[0-9])
603 # FIXME: really hppa2.0-hp
604 basic_machine=hppa1.1-hp
605 ;;
606 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
607 # FIXME: really hppa2.0-hp
608 basic_machine=hppa1.1-hp
609 ;;
610 hp9k8[0-9][13679] | hp8[0-9][13679])
611 basic_machine=hppa1.1-hp
612 ;;
613 hp9k8[0-9][0-9] | hp8[0-9][0-9])
614 basic_machine=hppa1.0-hp
615 ;;
616 hppa-next)
617 os=-nextstep3
618 ;;
619 hppaosf)
620 basic_machine=hppa1.1-hp
621 os=-osf
622 ;;
623 hppro)
624 basic_machine=hppa1.1-hp
625 os=-proelf
626 ;;
627 i370-ibm* | ibm*)
628 basic_machine=i370-ibm
629 ;;
630 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
631 i*86v32)
632 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
633 os=-sysv32
634 ;;
635 i*86v4*)
636 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
637 os=-sysv4
638 ;;
639 i*86v)
640 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
641 os=-sysv
642 ;;
643 i*86sol2)
644 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
645 os=-solaris2
646 ;;
647 i386mach)
648 basic_machine=i386-mach
649 os=-mach
650 ;;
651 i386-vsta | vsta)
652 basic_machine=i386-unknown
653 os=-vsta
654 ;;
655 iris | iris4d)
656 basic_machine=mips-sgi
657 case $os in
658 -irix*)
659 ;;
660 *)
661 os=-irix4
662 ;;
663 esac
664 ;;
665 isi68 | isi)
666 basic_machine=m68k-isi
667 os=-sysv
668 ;;
669 m88k-omron*)
670 basic_machine=m88k-omron
671 ;;
672 magnum | m3230)
673 basic_machine=mips-mips
674 os=-sysv
675 ;;
676 merlin)
677 basic_machine=ns32k-utek
678 os=-sysv
679 ;;
680 mingw32)
681 basic_machine=i386-pc
682 os=-mingw32
683 ;;
684 miniframe)
685 basic_machine=m68000-convergent
686 ;;
687 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
688 basic_machine=m68k-atari
689 os=-mint
690 ;;
691 mips3*-*)
692 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
693 ;;
694 mips3*)
695 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
696 ;;
697 monitor)
698 basic_machine=m68k-rom68k
699 os=-coff
700 ;;
701 morphos)
702 basic_machine=powerpc-unknown
703 os=-morphos
704 ;;
705 msdos)
706 basic_machine=i386-pc
707 os=-msdos
708 ;;
709 ms1-*)
710 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
711 ;;
712 mvs)
713 basic_machine=i370-ibm
714 os=-mvs
715 ;;
716 ncr3000)
717 basic_machine=i486-ncr
718 os=-sysv4
719 ;;
720 netbsd386)
721 basic_machine=i386-unknown
722 os=-netbsd
723 ;;
724 netwinder)
725 basic_machine=armv4l-rebel
726 os=-linux
727 ;;
728 news | news700 | news800 | news900)
729 basic_machine=m68k-sony
730 os=-newsos
731 ;;
732 news1000)
733 basic_machine=m68030-sony
734 os=-newsos
735 ;;
736 news-3600 | risc-news)
737 basic_machine=mips-sony
738 os=-newsos
739 ;;
740 necv70)
741 basic_machine=v70-nec
742 os=-sysv
743 ;;
744 next | m*-next )
745 basic_machine=m68k-next
746 case $os in
747 -nextstep* )
748 ;;
749 -ns2*)
750 os=-nextstep2
751 ;;
752 *)
753 os=-nextstep3
754 ;;
755 esac
756 ;;
757 nh3000)
758 basic_machine=m68k-harris
759 os=-cxux
760 ;;
761 nh[45]000)
762 basic_machine=m88k-harris
763 os=-cxux
764 ;;
765 nindy960)
766 basic_machine=i960-intel
767 os=-nindy
768 ;;
769 mon960)
770 basic_machine=i960-intel
771 os=-mon960
772 ;;
773 nonstopux)
774 basic_machine=mips-compaq
775 os=-nonstopux
776 ;;
777 np1)
778 basic_machine=np1-gould
779 ;;
780 nsr-tandem)
781 basic_machine=nsr-tandem
782 ;;
783 op50n-* | op60c-*)
784 basic_machine=hppa1.1-oki
785 os=-proelf
786 ;;
787 openrisc | openrisc-*)
788 basic_machine=or32-unknown
789 ;;
790 os400)
791 basic_machine=powerpc-ibm
792 os=-os400
793 ;;
794 OSE68000 | ose68000)
795 basic_machine=m68000-ericsson
796 os=-ose
797 ;;
798 os68k)
799 basic_machine=m68k-none
800 os=-os68k
801 ;;
802 pa-hitachi)
803 basic_machine=hppa1.1-hitachi
804 os=-hiuxwe2
805 ;;
806 paragon)
807 basic_machine=i860-intel
808 os=-osf
809 ;;
810 pbd)
811 basic_machine=sparc-tti
812 ;;
813 pbb)
814 basic_machine=m68k-tti
815 ;;
816 pc532 | pc532-*)
817 basic_machine=ns32k-pc532
818 ;;
819 pc98)
820 basic_machine=i386-pc
821 ;;
822 pc98-*)
823 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
824 ;;
825 pentium | p5 | k5 | k6 | nexgen | viac3)
826 basic_machine=i586-pc
827 ;;
828 pentiumpro | p6 | 6x86 | athlon | athlon_*)
829 basic_machine=i686-pc
830 ;;
831 pentiumii | pentium2 | pentiumiii | pentium3)
832 basic_machine=i686-pc
833 ;;
834 pentium4)
835 basic_machine=i786-pc
836 ;;
837 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
838 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
839 ;;
840 pentiumpro-* | p6-* | 6x86-* | athlon-*)
841 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
842 ;;
843 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
844 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
845 ;;
846 pentium4-*)
847 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
848 ;;
849 pn)
850 basic_machine=pn-gould
851 ;;
852 power) basic_machine=power-ibm
853 ;;
854 ppc) basic_machine=powerpc-unknown
855 ;;
856 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
857 ;;
858 ppcle | powerpclittle | ppc-le | powerpc-little)
859 basic_machine=powerpcle-unknown
860 ;;
861 ppcle-* | powerpclittle-*)
862 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
863 ;;
864 ppc64) basic_machine=powerpc64-unknown
865 ;;
866 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
867 ;;
868 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
869 basic_machine=powerpc64le-unknown
870 ;;
871 ppc64le-* | powerpc64little-*)
872 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
873 ;;
874 ps2)
875 basic_machine=i386-ibm
876 ;;
877 pw32)
878 basic_machine=i586-unknown
879 os=-pw32
880 ;;
881 rdos)
882 basic_machine=i386-pc
883 os=-rdos
884 ;;
885 rom68k)
886 basic_machine=m68k-rom68k
887 os=-coff
888 ;;
889 rm[46]00)
890 basic_machine=mips-siemens
891 ;;
892 rtpc | rtpc-*)
893 basic_machine=romp-ibm
894 ;;
895 s390 | s390-*)
896 basic_machine=s390-ibm
897 ;;
898 s390x | s390x-*)
899 basic_machine=s390x-ibm
900 ;;
901 sa29200)
902 basic_machine=a29k-amd
903 os=-udi
904 ;;
905 sb1)
906 basic_machine=mipsisa64sb1-unknown
907 ;;
908 sb1el)
909 basic_machine=mipsisa64sb1el-unknown
910 ;;
911 sei)
912 basic_machine=mips-sei
913 os=-seiux
914 ;;
915 sequent)
916 basic_machine=i386-sequent
917 ;;
918 sh)
919 basic_machine=sh-hitachi
920 os=-hms
921 ;;
922 sh64)
923 basic_machine=sh64-unknown
924 ;;
925 sparclite-wrs | simso-wrs)
926 basic_machine=sparclite-wrs
927 os=-vxworks
928 ;;
929 sps7)
930 basic_machine=m68k-bull
931 os=-sysv2
932 ;;
933 spur)
934 basic_machine=spur-unknown
935 ;;
936 st2000)
937 basic_machine=m68k-tandem
938 ;;
939 stratus)
940 basic_machine=i860-stratus
941 os=-sysv4
942 ;;
943 sun2)
944 basic_machine=m68000-sun
945 ;;
946 sun2os3)
947 basic_machine=m68000-sun
948 os=-sunos3
949 ;;
950 sun2os4)
951 basic_machine=m68000-sun
952 os=-sunos4
953 ;;
954 sun3os3)
955 basic_machine=m68k-sun
956 os=-sunos3
957 ;;
958 sun3os4)
959 basic_machine=m68k-sun
960 os=-sunos4
961 ;;
962 sun4os3)
963 basic_machine=sparc-sun
964 os=-sunos3
965 ;;
966 sun4os4)
967 basic_machine=sparc-sun
968 os=-sunos4
969 ;;
970 sun4sol2)
971 basic_machine=sparc-sun
972 os=-solaris2
973 ;;
974 sun3 | sun3-*)
975 basic_machine=m68k-sun
976 ;;
977 sun4)
978 basic_machine=sparc-sun
979 ;;
980 sun386 | sun386i | roadrunner)
981 basic_machine=i386-sun
982 ;;
983 sv1)
984 basic_machine=sv1-cray
985 os=-unicos
986 ;;
987 symmetry)
988 basic_machine=i386-sequent
989 os=-dynix
990 ;;
991 t3e)
992 basic_machine=alphaev5-cray
993 os=-unicos
994 ;;
995 t90)
996 basic_machine=t90-cray
997 os=-unicos
998 ;;
999 tic54x | c54x*)
1000 basic_machine=tic54x-unknown
1001 os=-coff
1002 ;;
1003 tic55x | c55x*)
1004 basic_machine=tic55x-unknown
1005 os=-coff
1006 ;;
1007 tic6x | c6x*)
1008 basic_machine=tic6x-unknown
1009 os=-coff
1010 ;;
1011 tx39)
1012 basic_machine=mipstx39-unknown
1013 ;;
1014 tx39el)
1015 basic_machine=mipstx39el-unknown
1016 ;;
1017 toad1)
1018 basic_machine=pdp10-xkl
1019 os=-tops20
1020 ;;
1021 tower | tower-32)
1022 basic_machine=m68k-ncr
1023 ;;
1024 tpf)
1025 basic_machine=s390x-ibm
1026 os=-tpf
1027 ;;
1028 udi29k)
1029 basic_machine=a29k-amd
1030 os=-udi
1031 ;;
1032 ultra3)
1033 basic_machine=a29k-nyu
1034 os=-sym1
1035 ;;
1036 v810 | necv810)
1037 basic_machine=v810-nec
1038 os=-none
1039 ;;
1040 vaxv)
1041 basic_machine=vax-dec
1042 os=-sysv
1043 ;;
1044 vms)
1045 basic_machine=vax-dec
1046 os=-vms
1047 ;;
1048 vpp*|vx|vx-*)
1049 basic_machine=f301-fujitsu
1050 ;;
1051 vxworks960)
1052 basic_machine=i960-wrs
1053 os=-vxworks
1054 ;;
1055 vxworks68)
1056 basic_machine=m68k-wrs
1057 os=-vxworks
1058 ;;
1059 vxworks29k)
1060 basic_machine=a29k-wrs
1061 os=-vxworks
1062 ;;
1063 w65*)
1064 basic_machine=w65-wdc
1065 os=-none
1066 ;;
1067 w89k-*)
1068 basic_machine=hppa1.1-winbond
1069 os=-proelf
1070 ;;
1071 xbox)
1072 basic_machine=i686-pc
1073 os=-mingw32
1074 ;;
1075 xps | xps100)
1076 basic_machine=xps100-honeywell
1077 ;;
1078 ymp)
1079 basic_machine=ymp-cray
1080 os=-unicos
1081 ;;
1082 z8k-*-coff)
1083 basic_machine=z8k-unknown
1084 os=-sim
1085 ;;
1086 none)
1087 basic_machine=none-none
1088 os=-none
1089 ;;
1090
1091 # Here we handle the default manufacturer of certain CPU types. It is in
1092 # some cases the only manufacturer, in others, it is the most popular.
1093 w89k)
1094 basic_machine=hppa1.1-winbond
1095 ;;
1096 op50n)
1097 basic_machine=hppa1.1-oki
1098 ;;
1099 op60c)
1100 basic_machine=hppa1.1-oki
1101 ;;
1102 romp)
1103 basic_machine=romp-ibm
1104 ;;
1105 mmix)
1106 basic_machine=mmix-knuth
1107 ;;
1108 rs6000)
1109 basic_machine=rs6000-ibm
1110 ;;
1111 vax)
1112 basic_machine=vax-dec
1113 ;;
1114 pdp10)
1115 # there are many clones, so DEC is not a safe bet
1116 basic_machine=pdp10-unknown
1117 ;;
1118 pdp11)
1119 basic_machine=pdp11-dec
1120 ;;
1121 we32k)
1122 basic_machine=we32k-att
1123 ;;
1124 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1125 basic_machine=sh-unknown
1126 ;;
1127 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1128 basic_machine=sparc-sun
1129 ;;
1130 cydra)
1131 basic_machine=cydra-cydrome
1132 ;;
1133 orion)
1134 basic_machine=orion-highlevel
1135 ;;
1136 orion105)
1137 basic_machine=clipper-highlevel
1138 ;;
1139 mac | mpw | mac-mpw)
1140 basic_machine=m68k-apple
1141 ;;
1142 pmac | pmac-mpw)
1143 basic_machine=powerpc-apple
1144 ;;
1145 *-unknown)
1146 # Make sure to match an already-canonicalized machine name.
1147 ;;
1148 *)
1149 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1150 exit 1
1151 ;;
1152 esac
1153
1154 # Here we canonicalize certain aliases for manufacturers.
1155 case $basic_machine in
1156 *-digital*)
1157 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1158 ;;
1159 *-commodore*)
1160 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1161 ;;
1162 *)
1163 ;;
1164 esac
1165
1166 # Decode manufacturer-specific aliases for certain operating systems.
1167
1168 if [ x"$os" != x"" ]
1169 then
1170 case $os in
1171 # First match some system type aliases
1172 # that might get confused with valid system types.
1173 # -solaris* is a basic system type, with this one exception.
1174 -solaris1 | -solaris1.*)
1175 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1176 ;;
1177 -solaris)
1178 os=-solaris2
1179 ;;
1180 -svr4*)
1181 os=-sysv4
1182 ;;
1183 -unixware*)
1184 os=-sysv4.2uw
1185 ;;
1186 -gnu/linux*)
1187 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1188 ;;
1189 # First accept the basic system types.
1190 # The portable systems comes first.
1191 # Each alternative MUST END IN A *, to match a version number.
1192 # -sysv* is not here because it comes later, after sysvr4.
1193 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1194 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1195 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1196 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1197 | -aos* \
1198 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1199 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1200 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1201 | -openbsd* | -solidbsd* \
1202 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1203 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1204 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1205 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1206 | -chorusos* | -chorusrdb* \
1207 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1208 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1209 | -uxpv* | -beos* | -mpeix* | -udk* \
1210 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1211 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1212 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1213 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1214 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1215 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1216 | -skyos* | -haiku* | -rdos* | -toppers*)
1217 # Remember, each alternative MUST END IN *, to match a version number.
1218 ;;
1219 -qnx*)
1220 case $basic_machine in
1221 x86-* | i*86-*)
1222 ;;
1223 *)
1224 os=-nto$os
1225 ;;
1226 esac
1227 ;;
1228 -nto-qnx*)
1229 ;;
1230 -nto*)
1231 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1232 ;;
1233 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1234 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1235 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1236 ;;
1237 -mac*)
1238 os=`echo $os | sed -e 's|mac|macos|'`
1239 ;;
1240 -linux-dietlibc)
1241 os=-linux-dietlibc
1242 ;;
1243 -linux*)
1244 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1245 ;;
1246 -sunos5*)
1247 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1248 ;;
1249 -sunos6*)
1250 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1251 ;;
1252 -opened*)
1253 os=-openedition
1254 ;;
1255 -os400*)
1256 os=-os400
1257 ;;
1258 -wince*)
1259 os=-wince
1260 ;;
1261 -osfrose*)
1262 os=-osfrose
1263 ;;
1264 -osf*)
1265 os=-osf
1266 ;;
1267 -utek*)
1268 os=-bsd
1269 ;;
1270 -dynix*)
1271 os=-bsd
1272 ;;
1273 -acis*)
1274 os=-aos
1275 ;;
1276 -atheos*)
1277 os=-atheos
1278 ;;
1279 -syllable*)
1280 os=-syllable
1281 ;;
1282 -386bsd)
1283 os=-bsd
1284 ;;
1285 -ctix* | -uts*)
1286 os=-sysv
1287 ;;
1288 -nova*)
1289 os=-rtmk-nova
1290 ;;
1291 -ns2 )
1292 os=-nextstep2
1293 ;;
1294 -nsk*)
1295 os=-nsk
1296 ;;
1297 # Preserve the version number of sinix5.
1298 -sinix5.*)
1299 os=`echo $os | sed -e 's|sinix|sysv|'`
1300 ;;
1301 -sinix*)
1302 os=-sysv4
1303 ;;
1304 -tpf*)
1305 os=-tpf
1306 ;;
1307 -triton*)
1308 os=-sysv3
1309 ;;
1310 -oss*)
1311 os=-sysv3
1312 ;;
1313 -svr4)
1314 os=-sysv4
1315 ;;
1316 -svr3)
1317 os=-sysv3
1318 ;;
1319 -sysvr4)
1320 os=-sysv4
1321 ;;
1322 # This must come after -sysvr4.
1323 -sysv*)
1324 ;;
1325 -ose*)
1326 os=-ose
1327 ;;
1328 -es1800*)
1329 os=-ose
1330 ;;
1331 -xenix)
1332 os=-xenix
1333 ;;
1334 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1335 os=-mint
1336 ;;
1337 -aros*)
1338 os=-aros
1339 ;;
1340 -kaos*)
1341 os=-kaos
1342 ;;
1343 -zvmoe)
1344 os=-zvmoe
1345 ;;
1346 -none)
1347 ;;
1348 *)
1349 # Get rid of the `-' at the beginning of $os.
1350 os=`echo $os | sed 's/[^-]*-//'`
1351 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1352 exit 1
1353 ;;
1354 esac
1355 else
1356
1357 # Here we handle the default operating systems that come with various machines.
1358 # The value should be what the vendor currently ships out the door with their
1359 # machine or put another way, the most popular os provided with the machine.
1360
1361 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1362 # "-sun"), then you have to tell the case statement up towards the top
1363 # that MANUFACTURER isn't an operating system. Otherwise, code above
1364 # will signal an error saying that MANUFACTURER isn't an operating
1365 # system, and we'll never get to this point.
1366
1367 case $basic_machine in
1368 spu-*)
1369 os=-elf
1370 ;;
1371 *-acorn)
1372 os=-riscix1.2
1373 ;;
1374 arm*-rebel)
1375 os=-linux
1376 ;;
1377 arm*-semi)
1378 os=-aout
1379 ;;
1380 c4x-* | tic4x-*)
1381 os=-coff
1382 ;;
1383 # This must come before the *-dec entry.
1384 pdp10-*)
1385 os=-tops20
1386 ;;
1387 pdp11-*)
1388 os=-none
1389 ;;
1390 *-dec | vax-*)
1391 os=-ultrix4.2
1392 ;;
1393 m68*-apollo)
1394 os=-domain
1395 ;;
1396 i386-sun)
1397 os=-sunos4.0.2
1398 ;;
1399 m68000-sun)
1400 os=-sunos3
1401 # This also exists in the configure program, but was not the
1402 # default.
1403 # os=-sunos4
1404 ;;
1405 m68*-cisco)
1406 os=-aout
1407 ;;
1408 mips*-cisco)
1409 os=-elf
1410 ;;
1411 mips*-*)
1412 os=-elf
1413 ;;
1414 or32-*)
1415 os=-coff
1416 ;;
1417 *-tti) # must be before sparc entry or we get the wrong os.
1418 os=-sysv3
1419 ;;
1420 sparc-* | *-sun)
1421 os=-sunos4.1.1
1422 ;;
1423 *-be)
1424 os=-beos
1425 ;;
1426 *-haiku)
1427 os=-haiku
1428 ;;
1429 *-ibm)
1430 os=-aix
1431 ;;
1432 *-knuth)
1433 os=-mmixware
1434 ;;
1435 *-wec)
1436 os=-proelf
1437 ;;
1438 *-winbond)
1439 os=-proelf
1440 ;;
1441 *-oki)
1442 os=-proelf
1443 ;;
1444 *-hp)
1445 os=-hpux
1446 ;;
1447 *-hitachi)
1448 os=-hiux
1449 ;;
1450 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1451 os=-sysv
1452 ;;
1453 *-cbm)
1454 os=-amigaos
1455 ;;
1456 *-dg)
1457 os=-dgux
1458 ;;
1459 *-dolphin)
1460 os=-sysv3
1461 ;;
1462 m68k-ccur)
1463 os=-rtu
1464 ;;
1465 m88k-omron*)
1466 os=-luna
1467 ;;
1468 *-next )
1469 os=-nextstep
1470 ;;
1471 *-sequent)
1472 os=-ptx
1473 ;;
1474 *-crds)
1475 os=-unos
1476 ;;
1477 *-ns)
1478 os=-genix
1479 ;;
1480 i370-*)
1481 os=-mvs
1482 ;;
1483 *-next)
1484 os=-nextstep3
1485 ;;
1486 *-gould)
1487 os=-sysv
1488 ;;
1489 *-highlevel)
1490 os=-bsd
1491 ;;
1492 *-encore)
1493 os=-bsd
1494 ;;
1495 *-sgi)
1496 os=-irix
1497 ;;
1498 *-siemens)
1499 os=-sysv4
1500 ;;
1501 *-masscomp)
1502 os=-rtu
1503 ;;
1504 f30[01]-fujitsu | f700-fujitsu)
1505 os=-uxpv
1506 ;;
1507 *-rom68k)
1508 os=-coff
1509 ;;
1510 *-*bug)
1511 os=-coff
1512 ;;
1513 *-apple)
1514 os=-macos
1515 ;;
1516 *-atari*)
1517 os=-mint
1518 ;;
1519 *)
1520 os=-none
1521 ;;
1522 esac
1523 fi
1524
1525 # Here we handle the case where we know the os, and the CPU type, but not the
1526 # manufacturer. We pick the logical manufacturer.
1527 vendor=unknown
1528 case $basic_machine in
1529 *-unknown)
1530 case $os in
1531 -riscix*)
1532 vendor=acorn
1533 ;;
1534 -sunos*)
1535 vendor=sun
1536 ;;
1537 -aix*)
1538 vendor=ibm
1539 ;;
1540 -beos*)
1541 vendor=be
1542 ;;
1543 -hpux*)
1544 vendor=hp
1545 ;;
1546 -mpeix*)
1547 vendor=hp
1548 ;;
1549 -hiux*)
1550 vendor=hitachi
1551 ;;
1552 -unos*)
1553 vendor=crds
1554 ;;
1555 -dgux*)
1556 vendor=dg
1557 ;;
1558 -luna*)
1559 vendor=omron
1560 ;;
1561 -genix*)
1562 vendor=ns
1563 ;;
1564 -mvs* | -opened*)
1565 vendor=ibm
1566 ;;
1567 -os400*)
1568 vendor=ibm
1569 ;;
1570 -ptx*)
1571 vendor=sequent
1572 ;;
1573 -tpf*)
1574 vendor=ibm
1575 ;;
1576 -vxsim* | -vxworks* | -windiss*)
1577 vendor=wrs
1578 ;;
1579 -aux*)
1580 vendor=apple
1581 ;;
1582 -hms*)
1583 vendor=hitachi
1584 ;;
1585 -mpw* | -macos*)
1586 vendor=apple
1587 ;;
1588 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1589 vendor=atari
1590 ;;
1591 -vos*)
1592 vendor=stratus
1593 ;;
1594 esac
1595 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1596 ;;
1597 esac
1598
1599 echo $basic_machine$os
1600 exit
1601
1602 # Local variables:
1603 # eval: (add-hook 'write-file-hooks 'time-stamp)
1604 # time-stamp-start: "timestamp='"
1605 # time-stamp-format: "%:y-%02m-%02d"
1606 # time-stamp-end: "'"
1607 # End:
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.61.
3 #
4 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
5 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be more Bourne compatible
13 DUALCASE=1; export DUALCASE # for MKS sh
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in
23 *posix*) set -o posix ;;
24 esac
25
26 fi
27
28
29
30
31 # PATH needs CR
32 # Avoid depending upon Character Ranges.
33 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36 as_cr_digits='0123456789'
37 as_cr_alnum=$as_cr_Letters$as_cr_digits
38
39 # The user is always right.
40 if test "${PATH_SEPARATOR+set}" != set; then
41 echo "#! /bin/sh" >conf$$.sh
42 echo "exit 0" >>conf$$.sh
43 chmod +x conf$$.sh
44 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
45 PATH_SEPARATOR=';'
46 else
47 PATH_SEPARATOR=:
48 fi
49 rm -f conf$$.sh
50 fi
51
52 # Support unset when possible.
53 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
54 as_unset=unset
55 else
56 as_unset=false
57 fi
58
59
60 # IFS
61 # We need space, tab and new line, in precisely that order. Quoting is
62 # there to prevent editors from complaining about space-tab.
63 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
64 # splitting by setting IFS to empty value.)
65 as_nl='
66 '
67 IFS=" "" $as_nl"
68
69 # Find who we are. Look in the path if we contain no directory separator.
70 case $0 in
71 *[\\/]* ) as_myself=$0 ;;
72 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
73 for as_dir in $PATH
74 do
75 IFS=$as_save_IFS
76 test -z "$as_dir" && as_dir=.
77 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
78 done
79 IFS=$as_save_IFS
80
81 ;;
82 esac
83 # We did not find ourselves, most probably we were run as `sh COMMAND'
84 # in which case we are not to be found in the path.
85 if test "x$as_myself" = x; then
86 as_myself=$0
87 fi
88 if test ! -f "$as_myself"; then
89 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
90 { (exit 1); exit 1; }
91 fi
92
93 # Work around bugs in pre-3.0 UWIN ksh.
94 for as_var in ENV MAIL MAILPATH
95 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
96 done
97 PS1='$ '
98 PS2='> '
99 PS4='+ '
100
101 # NLS nuisances.
102 for as_var in \
103 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
104 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
105 LC_TELEPHONE LC_TIME
106 do
107 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
108 eval $as_var=C; export $as_var
109 else
110 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
111 fi
112 done
113
114 # Required to use basename.
115 if expr a : '\(a\)' >/dev/null 2>&1 &&
116 test "X`expr 00001 : '.*\(...\)'`" = X001; then
117 as_expr=expr
118 else
119 as_expr=false
120 fi
121
122 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
123 as_basename=basename
124 else
125 as_basename=false
126 fi
127
128
129 # Name of the executable.
130 as_me=`$as_basename -- "$0" ||
131 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
132 X"$0" : 'X\(//\)$' \| \
133 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
134 echo X/"$0" |
135 sed '/^.*\/\([^/][^/]*\)\/*$/{
136 s//\1/
137 q
138 }
139 /^X\/\(\/\/\)$/{
140 s//\1/
141 q
142 }
143 /^X\/\(\/\).*/{
144 s//\1/
145 q
146 }
147 s/.*/./; q'`
148
149 # CDPATH.
150 $as_unset CDPATH
151
152
153 if test "x$CONFIG_SHELL" = x; then
154 if (eval ":") 2>/dev/null; then
155 as_have_required=yes
156 else
157 as_have_required=no
158 fi
159
160 if test $as_have_required = yes && (eval ":
161 (as_func_return () {
162 (exit \$1)
163 }
164 as_func_success () {
165 as_func_return 0
166 }
167 as_func_failure () {
168 as_func_return 1
169 }
170 as_func_ret_success () {
171 return 0
172 }
173 as_func_ret_failure () {
174 return 1
175 }
176
177 exitcode=0
178 if as_func_success; then
179 :
180 else
181 exitcode=1
182 echo as_func_success failed.
183 fi
184
185 if as_func_failure; then
186 exitcode=1
187 echo as_func_failure succeeded.
188 fi
189
190 if as_func_ret_success; then
191 :
192 else
193 exitcode=1
194 echo as_func_ret_success failed.
195 fi
196
197 if as_func_ret_failure; then
198 exitcode=1
199 echo as_func_ret_failure succeeded.
200 fi
201
202 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
203 :
204 else
205 exitcode=1
206 echo positional parameters were not saved.
207 fi
208
209 test \$exitcode = 0) || { (exit 1); exit 1; }
210
211 (
212 as_lineno_1=\$LINENO
213 as_lineno_2=\$LINENO
214 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
215 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
216 ") 2> /dev/null; then
217 :
218 else
219 as_candidate_shells=
220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 case $as_dir in
226 /*)
227 for as_base in sh bash ksh sh5; do
228 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
229 done;;
230 esac
231 done
232 IFS=$as_save_IFS
233
234
235 for as_shell in $as_candidate_shells $SHELL; do
236 # Try only shells that exist, to save several forks.
237 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
238 { ("$as_shell") 2> /dev/null <<\_ASEOF
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in
248 *posix*) set -o posix ;;
249 esac
250
251 fi
252
253
254 :
255 _ASEOF
256 }; then
257 CONFIG_SHELL=$as_shell
258 as_have_required=yes
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
261 emulate sh
262 NULLCMD=:
263 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
264 # is contrary to our usage. Disable this feature.
265 alias -g '${1+"$@"}'='"$@"'
266 setopt NO_GLOB_SUBST
267 else
268 case `(set -o) 2>/dev/null` in
269 *posix*) set -o posix ;;
270 esac
271
272 fi
273
274
275 :
276 (as_func_return () {
277 (exit $1)
278 }
279 as_func_success () {
280 as_func_return 0
281 }
282 as_func_failure () {
283 as_func_return 1
284 }
285 as_func_ret_success () {
286 return 0
287 }
288 as_func_ret_failure () {
289 return 1
290 }
291
292 exitcode=0
293 if as_func_success; then
294 :
295 else
296 exitcode=1
297 echo as_func_success failed.
298 fi
299
300 if as_func_failure; then
301 exitcode=1
302 echo as_func_failure succeeded.
303 fi
304
305 if as_func_ret_success; then
306 :
307 else
308 exitcode=1
309 echo as_func_ret_success failed.
310 fi
311
312 if as_func_ret_failure; then
313 exitcode=1
314 echo as_func_ret_failure succeeded.
315 fi
316
317 if ( set x; as_func_ret_success y && test x = "$1" ); then
318 :
319 else
320 exitcode=1
321 echo positional parameters were not saved.
322 fi
323
324 test $exitcode = 0) || { (exit 1); exit 1; }
325
326 (
327 as_lineno_1=$LINENO
328 as_lineno_2=$LINENO
329 test "x$as_lineno_1" != "x$as_lineno_2" &&
330 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
331
332 _ASEOF
333 }; then
334 break
335 fi
336
337 fi
338
339 done
340
341 if test "x$CONFIG_SHELL" != x; then
342 for as_var in BASH_ENV ENV
343 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
344 done
345 export CONFIG_SHELL
346 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
347 fi
348
349
350 if test $as_have_required = no; then
351 echo This script requires a shell more modern than all the
352 echo shells that I found on your system. Please install a
353 echo modern shell, or manually run the script under such a
354 echo shell if you do have one.
355 { (exit 1); exit 1; }
356 fi
357
358
359 fi
360
361 fi
362
363
364
365 (eval "as_func_return () {
366 (exit \$1)
367 }
368 as_func_success () {
369 as_func_return 0
370 }
371 as_func_failure () {
372 as_func_return 1
373 }
374 as_func_ret_success () {
375 return 0
376 }
377 as_func_ret_failure () {
378 return 1
379 }
380
381 exitcode=0
382 if as_func_success; then
383 :
384 else
385 exitcode=1
386 echo as_func_success failed.
387 fi
388
389 if as_func_failure; then
390 exitcode=1
391 echo as_func_failure succeeded.
392 fi
393
394 if as_func_ret_success; then
395 :
396 else
397 exitcode=1
398 echo as_func_ret_success failed.
399 fi
400
401 if as_func_ret_failure; then
402 exitcode=1
403 echo as_func_ret_failure succeeded.
404 fi
405
406 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
407 :
408 else
409 exitcode=1
410 echo positional parameters were not saved.
411 fi
412
413 test \$exitcode = 0") || {
414 echo No shell found that supports shell functions.
415 echo Please tell autoconf@gnu.org about your system,
416 echo including any error possibly output before this
417 echo message
418 }
419
420
421
422 as_lineno_1=$LINENO
423 as_lineno_2=$LINENO
424 test "x$as_lineno_1" != "x$as_lineno_2" &&
425 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426
427 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
428 # uniformly replaced by the line number. The first 'sed' inserts a
429 # line-number line after each line using $LINENO; the second 'sed'
430 # does the real work. The second script uses 'N' to pair each
431 # line-number line with the line containing $LINENO, and appends
432 # trailing '-' during substitution so that $LINENO is not a special
433 # case at line end.
434 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
435 # scripts with optimization help from Paolo Bonzini. Blame Lee
436 # E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
454 { (exit 1); exit 1; }; }
455
456 # Don't try to exec as it changes $[0], causing all sort of problems
457 # (the dirname of $[0] is not the place where we might find the
458 # original and so on. Autoconf is especially sensitive to this).
459 . "./$as_me.lineno"
460 # Exit status is that of the last command.
461 exit
462 }
463
464
465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
466 as_dirname=dirname
467 else
468 as_dirname=false
469 fi
470
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in
473 -n*)
474 case `echo 'x\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
476 *) ECHO_C='\c';;
477 esac;;
478 *)
479 ECHO_N='-n';;
480 esac
481
482 if expr a : '\(a\)' >/dev/null 2>&1 &&
483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
484 as_expr=expr
485 else
486 as_expr=false
487 fi
488
489 rm -f conf$$ conf$$.exe conf$$.file
490 if test -d conf$$.dir; then
491 rm -f conf$$.dir/conf$$.file
492 else
493 rm -f conf$$.dir
494 mkdir conf$$.dir
495 fi
496 echo >conf$$.file
497 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 as_ln_s='ln -s'
499 # ... but there are two gotchas:
500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
502 # In both cases, we have to default to `cp -p'.
503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 as_ln_s='cp -p'
505 elif ln conf$$.file conf$$ 2>/dev/null; then
506 as_ln_s=ln
507 else
508 as_ln_s='cp -p'
509 fi
510 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
511 rmdir conf$$.dir 2>/dev/null
512
513 if mkdir -p . 2>/dev/null; then
514 as_mkdir_p=:
515 else
516 test -d ./-p && rmdir ./-p
517 as_mkdir_p=false
518 fi
519
520 if test -x / >/dev/null 2>&1; then
521 as_test_x='test -x'
522 else
523 if ls -dL / >/dev/null 2>&1; then
524 as_ls_L_option=L
525 else
526 as_ls_L_option=
527 fi
528 as_test_x='
529 eval sh -c '\''
530 if test -d "$1"; then
531 test -d "$1/.";
532 else
533 case $1 in
534 -*)set "./$1";;
535 esac;
536 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
537 ???[sx]*):;;*)false;;esac;fi
538 '\'' sh
539 '
540 fi
541 as_executable_p=$as_test_x
542
543 # Sed expression to map a string onto a valid CPP name.
544 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545
546 # Sed expression to map a string onto a valid variable name.
547 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
548
549
550
551
552 # Check that we are running under the correct shell.
553 SHELL=${CONFIG_SHELL-/bin/sh}
554
555 case X$ECHO in
556 X*--fallback-echo)
557 # Remove one level of quotation (which was required for Make).
558 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
559 ;;
560 esac
561
562 echo=${ECHO-echo}
563 if test "X$1" = X--no-reexec; then
564 # Discard the --no-reexec flag, and continue.
565 shift
566 elif test "X$1" = X--fallback-echo; then
567 # Avoid inline document here, it may be left over
568 :
569 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
570 # Yippee, $echo works!
571 :
572 else
573 # Restart under the correct shell.
574 exec $SHELL "$0" --no-reexec ${1+"$@"}
575 fi
576
577 if test "X$1" = X--fallback-echo; then
578 # used as fallback echo
579 shift
580 cat <<EOF
581 $*
582 EOF
583 exit 0
584 fi
585
586 # The HP-UX ksh and POSIX shell print the target directory to stdout
587 # if CDPATH is set.
588 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
589
590 if test -z "$ECHO"; then
591 if test "X${echo_test_string+set}" != Xset; then
592 # find a string as large as possible, as long as the shell can cope with it
593 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
594 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
595 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
596 echo_test_string=`eval $cmd` &&
597 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 echo="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$echo" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 echo='print -r'
635 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 echo='printf %s\n'
646 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 echo="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 echo="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 echo=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 ECHO=$echo
694 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 tagnames=${tagnames+${tagnames},}CXX
702
703 tagnames=${tagnames+${tagnames},}F77
704
705 exec 7<&0 </dev/null 6>&1
706
707 # Name of the host.
708 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
709 # so uname gets run too.
710 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
711
712 #
713 # Initializations.
714 #
715 ac_default_prefix=/usr/local
716 ac_clean_files=
717 ac_config_libobj_dir=.
718 LIBOBJS=
719 cross_compiling=no
720 subdirs=
721 MFLAGS=
722 MAKEFLAGS=
723 SHELL=${CONFIG_SHELL-/bin/sh}
724
725 # Identity of this package.
726 PACKAGE_NAME=
727 PACKAGE_TARNAME=
728 PACKAGE_VERSION=
729 PACKAGE_STRING=
730 PACKAGE_BUGREPORT=
731
732 # Factoring default headers for most tests.
733 ac_includes_default="\
734 #include <stdio.h>
735 #ifdef HAVE_SYS_TYPES_H
736 # include <sys/types.h>
737 #endif
738 #ifdef HAVE_SYS_STAT_H
739 # include <sys/stat.h>
740 #endif
741 #ifdef STDC_HEADERS
742 # include <stdlib.h>
743 # include <stddef.h>
744 #else
745 # ifdef HAVE_STDLIB_H
746 # include <stdlib.h>
747 # endif
748 #endif
749 #ifdef HAVE_STRING_H
750 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
751 # include <memory.h>
752 # endif
753 # include <string.h>
754 #endif
755 #ifdef HAVE_STRINGS_H
756 # include <strings.h>
757 #endif
758 #ifdef HAVE_INTTYPES_H
759 # include <inttypes.h>
760 #endif
761 #ifdef HAVE_STDINT_H
762 # include <stdint.h>
763 #endif
764 #ifdef HAVE_UNISTD_H
765 # include <unistd.h>
766 #endif"
767
768 ac_subst_vars='SHELL
769 PATH_SEPARATOR
770 PACKAGE_NAME
771 PACKAGE_TARNAME
772 PACKAGE_VERSION
773 PACKAGE_STRING
774 PACKAGE_BUGREPORT
775 exec_prefix
776 prefix
777 program_transform_name
778 bindir
779 sbindir
780 libexecdir
781 datarootdir
782 datadir
783 sysconfdir
784 sharedstatedir
785 localstatedir
786 includedir
787 oldincludedir
788 docdir
789 infodir
790 htmldir
791 dvidir
792 pdfdir
793 psdir
794 libdir
795 localedir
796 mandir
797 DEFS
798 ECHO_C
799 ECHO_N
800 ECHO_T
801 LIBS
802 build_alias
803 host_alias
804 target_alias
805 INSTALL_PROGRAM
806 INSTALL_SCRIPT
807 INSTALL_DATA
808 CYGPATH_W
809 PACKAGE
810 VERSION
811 ACLOCAL
812 AUTOCONF
813 AUTOMAKE
814 AUTOHEADER
815 MAKEINFO
816 install_sh
817 STRIP
818 INSTALL_STRIP_PROGRAM
819 mkdir_p
820 AWK
821 SET_MAKE
822 am__leading_dot
823 AMTAR
824 am__tar
825 am__untar
826 build
827 build_cpu
828 build_vendor
829 build_os
830 host
831 host_cpu
832 host_vendor
833 host_os
834 CC
835 CFLAGS
836 LDFLAGS
837 CPPFLAGS
838 ac_ct_CC
839 EXEEXT
840 OBJEXT
841 DEPDIR
842 am__include
843 am__quote
844 AMDEP_TRUE
845 AMDEP_FALSE
846 AMDEPBACKSLASH
847 CCDEPMODE
848 am__fastdepCC_TRUE
849 am__fastdepCC_FALSE
850 GREP
851 EGREP
852 LN_S
853 ECHO
854 AR
855 RANLIB
856 CPP
857 CXX
858 CXXFLAGS
859 ac_ct_CXX
860 CXXDEPMODE
861 am__fastdepCXX_TRUE
862 am__fastdepCXX_FALSE
863 CXXCPP
864 F77
865 FFLAGS
866 ac_ct_F77
867 LIBTOOL
868 LIBTOOL_DEPS
869 RPMBUILD
870 MP4FF_LIBS
871 external_mp4v2
872 HAVE_MPEG4IP_PLUG_TRUE
873 HAVE_MPEG4IP_PLUG_FALSE
874 XMMS_CONFIG
875 GTK_CONFIG
876 HAVE_XMMS_TRUE
877 HAVE_XMMS_FALSE
878 LIBOBJS
879 LTLIBOBJS'
880 ac_subst_files=''
881 ac_precious_vars='build_alias
882 host_alias
883 target_alias
884 CC
885 CFLAGS
886 LDFLAGS
887 LIBS
888 CPPFLAGS
889 CPP
890 CXX
891 CXXFLAGS
892 CCC
893 CXXCPP
894 F77
895 FFLAGS'
896
897
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
917
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
953 fi
954
955 case $ac_option in
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *) ac_optarg=yes ;;
958 esac
959
960 # Accept the important Cygnus configure options, so we can diagnose typos.
961
962 case $ac_dashdash$ac_option in
963 --)
964 ac_dashdash=yes ;;
965
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
970
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
975
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
982
983 --config-cache | -C)
984 cache_file=config.cache ;;
985
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
990
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
997
998 -disable-* | --disable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005 eval enable_$ac_feature=no ;;
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1016
1017 -enable-* | --enable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=\$ac_optarg ;;
1222
1223 -without-* | --without-*)
1224 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) { echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1253 ;;
1254
1255 *=*)
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1279 fi
1280
1281 # Be sure to have absolute directory names.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286 do
1287 eval ac_val=\$$ac_var
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { echo "$as_me: error: Working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$0" ||
1335 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$0" : 'X\(//\)[^/]' \| \
1337 X"$0" : 'X\(//\)$' \| \
1338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339 echo X"$0" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures this package to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 _ACEOF
1464 fi
1465
1466 if test -n "$ac_init_help"; then
1467
1468 cat <<\_ACEOF
1469
1470 Optional Features:
1471 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1472 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1473 --enable-shared[=PKGS] build shared libraries [default=yes]
1474 --enable-static[=PKGS] build static libraries [default=yes]
1475 --enable-fast-install[=PKGS]
1476 optimize for fast installation [default=yes]
1477 --disable-dependency-tracking speeds up one-time build
1478 --enable-dependency-tracking do not reject slow dependency extractors
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1485 --with-pic try to use only PIC/non-PIC objects [default=use
1486 both]
1487 --with-tags[=TAGS] include additional configurations [automatic]
1488 --with-xmms compile XMMS-1 plugin
1489 --with-drm compile libfaad with DRM support
1490 --with-mpeg4ip compile mpeg4ip plugin
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CPP C preprocessor
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 CXXCPP C++ preprocessor
1504 F77 Fortran 77 compiler command
1505 FFLAGS Fortran 77 compiler flags
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 configure
1571 generated by GNU Autoconf 2.61
1572
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1583
1584 It was created by $as_me, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1586
1587 $ $0 $@
1588
1589 _ACEOF
1590 exec 5>>config.log
1591 {
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1596
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614 _ASUNAME
1615
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1624
1625 } >&5
1626
1627 cat >&5 <<_ACEOF
1628
1629
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1633
1634 _ACEOF
1635
1636
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1647 do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
1655 *\'*)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1676 fi
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 ;;
1679 esac
1680 done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
1702 (
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
1717 (set) 2>&1 |
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1720 sed -n \
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
1724 *)
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726 ;;
1727 esac |
1728 sort
1729 )
1730 echo
1731
1732 cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
1745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
1762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772 echo
1773 cat confdefs.h
1774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1788
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1791
1792 # Predefined preprocessor variables.
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1817
1818
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1828 fi
1829 shift
1830 for ac_site_file
1831 do
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838 done
1839
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1849 esac
1850 fi
1851 else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855 fi
1856
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897 done
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
1929 ac_aux_dir=
1930 for ac_dir in . "$srcdir"/.; do
1931 if test -f "$ac_dir/install-sh"; then
1932 ac_aux_dir=$ac_dir
1933 ac_install_sh="$ac_aux_dir/install-sh -c"
1934 break
1935 elif test -f "$ac_dir/install.sh"; then
1936 ac_aux_dir=$ac_dir
1937 ac_install_sh="$ac_aux_dir/install.sh -c"
1938 break
1939 elif test -f "$ac_dir/shtool"; then
1940 ac_aux_dir=$ac_dir
1941 ac_install_sh="$ac_aux_dir/shtool install -c"
1942 break
1943 fi
1944 done
1945 if test -z "$ac_aux_dir"; then
1946 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&5
1947 echo "$as_me: error: cannot find install-sh or install.sh in . \"$srcdir\"/." >&2;}
1948 { (exit 1); exit 1; }; }
1949 fi
1950
1951 # These three variables are undocumented and unsupported,
1952 # and are intended to be withdrawn in a future Autoconf release.
1953 # They can cause serious problems if a builder's source tree is in a directory
1954 # whose full name contains unusual characters.
1955 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1956 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1957 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1958
1959
1960 am__api_version="1.9"
1961 # Find a good install program. We prefer a C program (faster),
1962 # so one script is as good as another. But avoid the broken or
1963 # incompatible versions:
1964 # SysV /etc/install, /usr/sbin/install
1965 # SunOS /usr/etc/install
1966 # IRIX /sbin/install
1967 # AIX /bin/install
1968 # AmigaOS /C/install, which installs bootblocks on floppy discs
1969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1972 # OS/2's system install, which has a completely different semantic
1973 # ./install, which can be erroneously created by make from ./install.sh.
1974 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1975 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1976 if test -z "$INSTALL"; then
1977 if test "${ac_cv_path_install+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 else
1980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1981 for as_dir in $PATH
1982 do
1983 IFS=$as_save_IFS
1984 test -z "$as_dir" && as_dir=.
1985 # Account for people who put trailing slashes in PATH elements.
1986 case $as_dir/ in
1987 ./ | .// | /cC/* | \
1988 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1989 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1990 /usr/ucb/* ) ;;
1991 *)
1992 # OSF1 and SCO ODT 3.0 have their own names for install.
1993 # Don't use installbsd from OSF since it installs stuff as root
1994 # by default.
1995 for ac_prog in ginstall scoinst install; do
1996 for ac_exec_ext in '' $ac_executable_extensions; do
1997 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1998 if test $ac_prog = install &&
1999 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2000 # AIX install. It has an incompatible calling convention.
2001 :
2002 elif test $ac_prog = install &&
2003 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2004 # program-specific install script used by HP pwplus--don't use.
2005 :
2006 else
2007 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2008 break 3
2009 fi
2010 fi
2011 done
2012 done
2013 ;;
2014 esac
2015 done
2016 IFS=$as_save_IFS
2017
2018
2019 fi
2020 if test "${ac_cv_path_install+set}" = set; then
2021 INSTALL=$ac_cv_path_install
2022 else
2023 # As a last resort, use the slow shell script. Don't cache a
2024 # value for INSTALL within a source directory, because that will
2025 # break other packages using the cache if that directory is
2026 # removed, or if the value is a relative name.
2027 INSTALL=$ac_install_sh
2028 fi
2029 fi
2030 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2031 echo "${ECHO_T}$INSTALL" >&6; }
2032
2033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2034 # It thinks the first close brace ends the variable substitution.
2035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2036
2037 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2038
2039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2040
2041 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2042 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2043 # Just in case
2044 sleep 1
2045 echo timestamp > conftest.file
2046 # Do `set' in a subshell so we don't clobber the current shell's
2047 # arguments. Must try -L first in case configure is actually a
2048 # symlink; some systems play weird games with the mod time of symlinks
2049 # (eg FreeBSD returns the mod time of the symlink's containing
2050 # directory).
2051 if (
2052 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2053 if test "$*" = "X"; then
2054 # -L didn't work.
2055 set X `ls -t $srcdir/configure conftest.file`
2056 fi
2057 rm -f conftest.file
2058 if test "$*" != "X $srcdir/configure conftest.file" \
2059 && test "$*" != "X conftest.file $srcdir/configure"; then
2060
2061 # If neither matched, then we have a broken ls. This can happen
2062 # if, for instance, CONFIG_SHELL is bash and it inherits a
2063 # broken ls alias from the environment. This has actually
2064 # happened. Such a system could not be considered "sane".
2065 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2066 alias in your environment" >&5
2067 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2068 alias in your environment" >&2;}
2069 { (exit 1); exit 1; }; }
2070 fi
2071
2072 test "$2" = conftest.file
2073 )
2074 then
2075 # Ok.
2076 :
2077 else
2078 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2079 Check your system clock" >&5
2080 echo "$as_me: error: newly created file is older than distributed files!
2081 Check your system clock" >&2;}
2082 { (exit 1); exit 1; }; }
2083 fi
2084 { echo "$as_me:$LINENO: result: yes" >&5
2085 echo "${ECHO_T}yes" >&6; }
2086 test "$program_prefix" != NONE &&
2087 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2088 # Use a double $ so make ignores it.
2089 test "$program_suffix" != NONE &&
2090 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2091 # Double any \ or $. echo might interpret backslashes.
2092 # By default was `s,x,x', remove it if useless.
2093 cat <<\_ACEOF >conftest.sed
2094 s/[\\$]/&&/g;s/;s,x,x,$//
2095 _ACEOF
2096 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2097 rm -f conftest.sed
2098
2099 # expand $ac_aux_dir to an absolute path
2100 am_aux_dir=`cd $ac_aux_dir && pwd`
2101
2102 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2103 # Use eval to expand $SHELL
2104 if eval "$MISSING --run true"; then
2105 am_missing_run="$MISSING --run "
2106 else
2107 am_missing_run=
2108 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2109 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2110 fi
2111
2112 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2113 # We used to keeping the `.' as first argument, in order to
2114 # allow $(mkdir_p) to be used without argument. As in
2115 # $(mkdir_p) $(somedir)
2116 # where $(somedir) is conditionally defined. However this is wrong
2117 # for two reasons:
2118 # 1. if the package is installed by a user who cannot write `.'
2119 # make install will fail,
2120 # 2. the above comment should most certainly read
2121 # $(mkdir_p) $(DESTDIR)$(somedir)
2122 # so it does not work when $(somedir) is undefined and
2123 # $(DESTDIR) is not.
2124 # To support the latter case, we have to write
2125 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2126 # so the `.' trick is pointless.
2127 mkdir_p='mkdir -p --'
2128 else
2129 # On NextStep and OpenStep, the `mkdir' command does not
2130 # recognize any option. It will interpret all options as
2131 # directories to create, and then abort because `.' already
2132 # exists.
2133 for d in ./-p ./--version;
2134 do
2135 test -d $d && rmdir $d
2136 done
2137 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2138 if test -f "$ac_aux_dir/mkinstalldirs"; then
2139 mkdir_p='$(mkinstalldirs)'
2140 else
2141 mkdir_p='$(install_sh) -d'
2142 fi
2143 fi
2144
2145 for ac_prog in gawk mawk nawk awk
2146 do
2147 # Extract the first word of "$ac_prog", so it can be a program name with args.
2148 set dummy $ac_prog; ac_word=$2
2149 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2150 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2151 if test "${ac_cv_prog_AWK+set}" = set; then
2152 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154 if test -n "$AWK"; then
2155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2156 else
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160 IFS=$as_save_IFS
2161 test -z "$as_dir" && as_dir=.
2162 for ac_exec_ext in '' $ac_executable_extensions; do
2163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2164 ac_cv_prog_AWK="$ac_prog"
2165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2166 break 2
2167 fi
2168 done
2169 done
2170 IFS=$as_save_IFS
2171
2172 fi
2173 fi
2174 AWK=$ac_cv_prog_AWK
2175 if test -n "$AWK"; then
2176 { echo "$as_me:$LINENO: result: $AWK" >&5
2177 echo "${ECHO_T}$AWK" >&6; }
2178 else
2179 { echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6; }
2181 fi
2182
2183
2184 test -n "$AWK" && break
2185 done
2186
2187 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2188 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2189 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2190 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2191 echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193 cat >conftest.make <<\_ACEOF
2194 SHELL = /bin/sh
2195 all:
2196 @echo '@@@%%%=$(MAKE)=@@@%%%'
2197 _ACEOF
2198 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2199 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2200 *@@@%%%=?*=@@@%%%*)
2201 eval ac_cv_prog_make_${ac_make}_set=yes;;
2202 *)
2203 eval ac_cv_prog_make_${ac_make}_set=no;;
2204 esac
2205 rm -f conftest.make
2206 fi
2207 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2208 { echo "$as_me:$LINENO: result: yes" >&5
2209 echo "${ECHO_T}yes" >&6; }
2210 SET_MAKE=
2211 else
2212 { echo "$as_me:$LINENO: result: no" >&5
2213 echo "${ECHO_T}no" >&6; }
2214 SET_MAKE="MAKE=${MAKE-make}"
2215 fi
2216
2217 rm -rf .tst 2>/dev/null
2218 mkdir .tst 2>/dev/null
2219 if test -d .tst; then
2220 am__leading_dot=.
2221 else
2222 am__leading_dot=_
2223 fi
2224 rmdir .tst 2>/dev/null
2225
2226 # test to see if srcdir already configured
2227 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2228 test -f $srcdir/config.status; then
2229 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2230 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2231 { (exit 1); exit 1; }; }
2232 fi
2233
2234 # test whether we have cygpath
2235 if test -z "$CYGPATH_W"; then
2236 if (cygpath --version) >/dev/null 2>/dev/null; then
2237 CYGPATH_W='cygpath -w'
2238 else
2239 CYGPATH_W=echo
2240 fi
2241 fi
2242
2243
2244 # Define the identity of the package.
2245 PACKAGE=faad2
2246 VERSION=2.7.0
2247
2248
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE "$PACKAGE"
2251 _ACEOF
2252
2253
2254 cat >>confdefs.h <<_ACEOF
2255 #define VERSION "$VERSION"
2256 _ACEOF
2257
2258 # Some tools Automake needs.
2259
2260 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2261
2262
2263 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2264
2265
2266 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2267
2268
2269 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2270
2271
2272 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2273
2274 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2275
2276 # Installed binaries are usually stripped using `strip' when the user
2277 # run `make install-strip'. However `strip' might not be the right
2278 # tool to use in cross-compilation environments, therefore Automake
2279 # will honor the `STRIP' environment variable to overrule this program.
2280 if test "$cross_compiling" != no; then
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}strip; ac_word=$2
2284 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2285 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2286 if test "${ac_cv_prog_STRIP+set}" = set; then
2287 echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289 if test -n "$STRIP"; then
2290 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2291 else
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 for as_dir in $PATH
2294 do
2295 IFS=$as_save_IFS
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2299 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2301 break 2
2302 fi
2303 done
2304 done
2305 IFS=$as_save_IFS
2306
2307 fi
2308 fi
2309 STRIP=$ac_cv_prog_STRIP
2310 if test -n "$STRIP"; then
2311 { echo "$as_me:$LINENO: result: $STRIP" >&5
2312 echo "${ECHO_T}$STRIP" >&6; }
2313 else
2314 { echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6; }
2316 fi
2317
2318
2319 fi
2320 if test -z "$ac_cv_prog_STRIP"; then
2321 ac_ct_STRIP=$STRIP
2322 # Extract the first word of "strip", so it can be a program name with args.
2323 set dummy strip; ac_word=$2
2324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2326 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2328 else
2329 if test -n "$ac_ct_STRIP"; then
2330 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2331 else
2332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 for as_dir in $PATH
2334 do
2335 IFS=$as_save_IFS
2336 test -z "$as_dir" && as_dir=.
2337 for ac_exec_ext in '' $ac_executable_extensions; do
2338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2339 ac_cv_prog_ac_ct_STRIP="strip"
2340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2341 break 2
2342 fi
2343 done
2344 done
2345 IFS=$as_save_IFS
2346
2347 fi
2348 fi
2349 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2350 if test -n "$ac_ct_STRIP"; then
2351 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2352 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2353 else
2354 { echo "$as_me:$LINENO: result: no" >&5
2355 echo "${ECHO_T}no" >&6; }
2356 fi
2357
2358 if test "x$ac_ct_STRIP" = x; then
2359 STRIP=":"
2360 else
2361 case $cross_compiling:$ac_tool_warned in
2362 yes:)
2363 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2364 whose name does not start with the host triplet. If you think this
2365 configuration is useful to you, please write to autoconf@gnu.org." >&5
2366 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2367 whose name does not start with the host triplet. If you think this
2368 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2369 ac_tool_warned=yes ;;
2370 esac
2371 STRIP=$ac_ct_STRIP
2372 fi
2373 else
2374 STRIP="$ac_cv_prog_STRIP"
2375 fi
2376
2377 fi
2378 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2379
2380 # We need awk for the "check" target. The system "awk" is bad on
2381 # some platforms.
2382 # Always define AMTAR for backward compatibility.
2383
2384 AMTAR=${AMTAR-"${am_missing_run}tar"}
2385
2386 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2387
2388
2389
2390
2391
2392
2393 # Check whether --enable-shared was given.
2394 if test "${enable_shared+set}" = set; then
2395 enableval=$enable_shared; p=${PACKAGE-default}
2396 case $enableval in
2397 yes) enable_shared=yes ;;
2398 no) enable_shared=no ;;
2399 *)
2400 enable_shared=no
2401 # Look at the argument we got. We use all the common list separators.
2402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2403 for pkg in $enableval; do
2404 IFS="$lt_save_ifs"
2405 if test "X$pkg" = "X$p"; then
2406 enable_shared=yes
2407 fi
2408 done
2409 IFS="$lt_save_ifs"
2410 ;;
2411 esac
2412 else
2413 enable_shared=yes
2414 fi
2415
2416
2417 # Check whether --enable-static was given.
2418 if test "${enable_static+set}" = set; then
2419 enableval=$enable_static; p=${PACKAGE-default}
2420 case $enableval in
2421 yes) enable_static=yes ;;
2422 no) enable_static=no ;;
2423 *)
2424 enable_static=no
2425 # Look at the argument we got. We use all the common list separators.
2426 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2427 for pkg in $enableval; do
2428 IFS="$lt_save_ifs"
2429 if test "X$pkg" = "X$p"; then
2430 enable_static=yes
2431 fi
2432 done
2433 IFS="$lt_save_ifs"
2434 ;;
2435 esac
2436 else
2437 enable_static=yes
2438 fi
2439
2440
2441 # Check whether --enable-fast-install was given.
2442 if test "${enable_fast_install+set}" = set; then
2443 enableval=$enable_fast_install; p=${PACKAGE-default}
2444 case $enableval in
2445 yes) enable_fast_install=yes ;;
2446 no) enable_fast_install=no ;;
2447 *)
2448 enable_fast_install=no
2449 # Look at the argument we got. We use all the common list separators.
2450 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2451 for pkg in $enableval; do
2452 IFS="$lt_save_ifs"
2453 if test "X$pkg" = "X$p"; then
2454 enable_fast_install=yes
2455 fi
2456 done
2457 IFS="$lt_save_ifs"
2458 ;;
2459 esac
2460 else
2461 enable_fast_install=yes
2462 fi
2463
2464
2465 # Make sure we can run config.sub.
2466 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2467 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2468 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2469 { (exit 1); exit 1; }; }
2470
2471 { echo "$as_me:$LINENO: checking build system type" >&5
2472 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2473 if test "${ac_cv_build+set}" = set; then
2474 echo $ECHO_N "(cached) $ECHO_C" >&6
2475 else
2476 ac_build_alias=$build_alias
2477 test "x$ac_build_alias" = x &&
2478 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2479 test "x$ac_build_alias" = x &&
2480 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2481 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2482 { (exit 1); exit 1; }; }
2483 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2484 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2485 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2486 { (exit 1); exit 1; }; }
2487
2488 fi
2489 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2490 echo "${ECHO_T}$ac_cv_build" >&6; }
2491 case $ac_cv_build in
2492 *-*-*) ;;
2493 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2494 echo "$as_me: error: invalid value of canonical build" >&2;}
2495 { (exit 1); exit 1; }; };;
2496 esac
2497 build=$ac_cv_build
2498 ac_save_IFS=$IFS; IFS='-'
2499 set x $ac_cv_build
2500 shift
2501 build_cpu=$1
2502 build_vendor=$2
2503 shift; shift
2504 # Remember, the first character of IFS is used to create $*,
2505 # except with old shells:
2506 build_os=$*
2507 IFS=$ac_save_IFS
2508 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2509
2510
2511 { echo "$as_me:$LINENO: checking host system type" >&5
2512 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2513 if test "${ac_cv_host+set}" = set; then
2514 echo $ECHO_N "(cached) $ECHO_C" >&6
2515 else
2516 if test "x$host_alias" = x; then
2517 ac_cv_host=$ac_cv_build
2518 else
2519 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2520 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2521 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2522 { (exit 1); exit 1; }; }
2523 fi
2524
2525 fi
2526 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2527 echo "${ECHO_T}$ac_cv_host" >&6; }
2528 case $ac_cv_host in
2529 *-*-*) ;;
2530 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2531 echo "$as_me: error: invalid value of canonical host" >&2;}
2532 { (exit 1); exit 1; }; };;
2533 esac
2534 host=$ac_cv_host
2535 ac_save_IFS=$IFS; IFS='-'
2536 set x $ac_cv_host
2537 shift
2538 host_cpu=$1
2539 host_vendor=$2
2540 shift; shift
2541 # Remember, the first character of IFS is used to create $*,
2542 # except with old shells:
2543 host_os=$*
2544 IFS=$ac_save_IFS
2545 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2546
2547
2548 DEPDIR="${am__leading_dot}deps"
2549
2550 ac_config_commands="$ac_config_commands depfiles"
2551
2552
2553 am_make=${MAKE-make}
2554 cat > confinc << 'END'
2555 am__doit:
2556 @echo done
2557 .PHONY: am__doit
2558 END
2559 # If we don't find an include directive, just comment out the code.
2560 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2561 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2562 am__include="#"
2563 am__quote=
2564 _am_result=none
2565 # First try GNU make style include.
2566 echo "include confinc" > confmf
2567 # We grep out `Entering directory' and `Leaving directory'
2568 # messages which can occur if `w' ends up in MAKEFLAGS.
2569 # In particular we don't look at `^make:' because GNU make might
2570 # be invoked under some other name (usually "gmake"), in which
2571 # case it prints its new name instead of `make'.
2572 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2573 am__include=include
2574 am__quote=
2575 _am_result=GNU
2576 fi
2577 # Now try BSD make style include.
2578 if test "$am__include" = "#"; then
2579 echo '.include "confinc"' > confmf
2580 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2581 am__include=.include
2582 am__quote="\""
2583 _am_result=BSD
2584 fi
2585 fi
2586
2587
2588 { echo "$as_me:$LINENO: result: $_am_result" >&5
2589 echo "${ECHO_T}$_am_result" >&6; }
2590 rm -f confinc confmf
2591
2592 # Check whether --enable-dependency-tracking was given.
2593 if test "${enable_dependency_tracking+set}" = set; then
2594 enableval=$enable_dependency_tracking;
2595 fi
2596
2597 if test "x$enable_dependency_tracking" != xno; then
2598 am_depcomp="$ac_aux_dir/depcomp"
2599 AMDEPBACKSLASH='\'
2600 fi
2601
2602
2603 if test "x$enable_dependency_tracking" != xno; then
2604 AMDEP_TRUE=
2605 AMDEP_FALSE='#'
2606 else
2607 AMDEP_TRUE='#'
2608 AMDEP_FALSE=
2609 fi
2610
2611
2612
2613 ac_ext=c
2614 ac_cpp='$CPP $CPPFLAGS'
2615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2618 if test -n "$ac_tool_prefix"; then
2619 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2620 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2621 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2622 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2623 if test "${ac_cv_prog_CC+set}" = set; then
2624 echo $ECHO_N "(cached) $ECHO_C" >&6
2625 else
2626 if test -n "$CC"; then
2627 ac_cv_prog_CC="$CC" # Let the user override the test.
2628 else
2629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630 for as_dir in $PATH
2631 do
2632 IFS=$as_save_IFS
2633 test -z "$as_dir" && as_dir=.
2634 for ac_exec_ext in '' $ac_executable_extensions; do
2635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2638 break 2
2639 fi
2640 done
2641 done
2642 IFS=$as_save_IFS
2643
2644 fi
2645 fi
2646 CC=$ac_cv_prog_CC
2647 if test -n "$CC"; then
2648 { echo "$as_me:$LINENO: result: $CC" >&5
2649 echo "${ECHO_T}$CC" >&6; }
2650 else
2651 { echo "$as_me:$LINENO: result: no" >&5
2652 echo "${ECHO_T}no" >&6; }
2653 fi
2654
2655
2656 fi
2657 if test -z "$ac_cv_prog_CC"; then
2658 ac_ct_CC=$CC
2659 # Extract the first word of "gcc", so it can be a program name with args.
2660 set dummy gcc; ac_word=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2665 else
2666 if test -n "$ac_ct_CC"; then
2667 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2668 else
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670 for as_dir in $PATH
2671 do
2672 IFS=$as_save_IFS
2673 test -z "$as_dir" && as_dir=.
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_ac_ct_CC="gcc"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2687 if test -n "$ac_ct_CC"; then
2688 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2689 echo "${ECHO_T}$ac_ct_CC" >&6; }
2690 else
2691 { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2693 fi
2694
2695 if test "x$ac_ct_CC" = x; then
2696 CC=""
2697 else
2698 case $cross_compiling:$ac_tool_warned in
2699 yes:)
2700 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2701 whose name does not start with the host triplet. If you think this
2702 configuration is useful to you, please write to autoconf@gnu.org." >&5
2703 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2704 whose name does not start with the host triplet. If you think this
2705 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2706 ac_tool_warned=yes ;;
2707 esac
2708 CC=$ac_ct_CC
2709 fi
2710 else
2711 CC="$ac_cv_prog_CC"
2712 fi
2713
2714 if test -z "$CC"; then
2715 if test -n "$ac_tool_prefix"; then
2716 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2717 set dummy ${ac_tool_prefix}cc; ac_word=$2
2718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2720 if test "${ac_cv_prog_CC+set}" = set; then
2721 echo $ECHO_N "(cached) $ECHO_C" >&6
2722 else
2723 if test -n "$CC"; then
2724 ac_cv_prog_CC="$CC" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2728 do
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_CC="${ac_tool_prefix}cc"
2734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2736 fi
2737 done
2738 done
2739 IFS=$as_save_IFS
2740
2741 fi
2742 fi
2743 CC=$ac_cv_prog_CC
2744 if test -n "$CC"; then
2745 { echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6; }
2747 else
2748 { echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6; }
2750 fi
2751
2752
2753 fi
2754 fi
2755 if test -z "$CC"; then
2756 # Extract the first word of "cc", so it can be a program name with args.
2757 set dummy cc; ac_word=$2
2758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then
2761 echo $ECHO_N "(cached) $ECHO_C" >&6
2762 else
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 ac_prog_rejected=no
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2768 for as_dir in $PATH
2769 do
2770 IFS=$as_save_IFS
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2775 ac_prog_rejected=yes
2776 continue
2777 fi
2778 ac_cv_prog_CC="cc"
2779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 break 2
2781 fi
2782 done
2783 done
2784 IFS=$as_save_IFS
2785
2786 if test $ac_prog_rejected = yes; then
2787 # We found a bogon in the path, so make sure we never use it.
2788 set dummy $ac_cv_prog_CC
2789 shift
2790 if test $# != 0; then
2791 # We chose a different compiler from the bogus one.
2792 # However, it has the same basename, so the bogon will be chosen
2793 # first if we set CC to just the basename; use the full file name.
2794 shift
2795 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2796 fi
2797 fi
2798 fi
2799 fi
2800 CC=$ac_cv_prog_CC
2801 if test -n "$CC"; then
2802 { echo "$as_me:$LINENO: result: $CC" >&5
2803 echo "${ECHO_T}$CC" >&6; }
2804 else
2805 { echo "$as_me:$LINENO: result: no" >&5
2806 echo "${ECHO_T}no" >&6; }
2807 fi
2808
2809
2810 fi
2811 if test -z "$CC"; then
2812 if test -n "$ac_tool_prefix"; then
2813 for ac_prog in cl.exe
2814 do
2815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2816 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2819 if test "${ac_cv_prog_CC+set}" = set; then
2820 echo $ECHO_N "(cached) $ECHO_C" >&6
2821 else
2822 if test -n "$CC"; then
2823 ac_cv_prog_CC="$CC" # Let the user override the test.
2824 else
2825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 for as_dir in $PATH
2827 do
2828 IFS=$as_save_IFS
2829 test -z "$as_dir" && as_dir=.
2830 for ac_exec_ext in '' $ac_executable_extensions; do
2831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2832 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 break 2
2835 fi
2836 done
2837 done
2838 IFS=$as_save_IFS
2839
2840 fi
2841 fi
2842 CC=$ac_cv_prog_CC
2843 if test -n "$CC"; then
2844 { echo "$as_me:$LINENO: result: $CC" >&5
2845 echo "${ECHO_T}$CC" >&6; }
2846 else
2847 { echo "$as_me:$LINENO: result: no" >&5
2848 echo "${ECHO_T}no" >&6; }
2849 fi
2850
2851
2852 test -n "$CC" && break
2853 done
2854 fi
2855 if test -z "$CC"; then
2856 ac_ct_CC=$CC
2857 for ac_prog in cl.exe
2858 do
2859 # Extract the first word of "$ac_prog", so it can be a program name with args.
2860 set dummy $ac_prog; ac_word=$2
2861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2864 echo $ECHO_N "(cached) $ECHO_C" >&6
2865 else
2866 if test -n "$ac_ct_CC"; then
2867 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2868 else
2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2870 for as_dir in $PATH
2871 do
2872 IFS=$as_save_IFS
2873 test -z "$as_dir" && as_dir=.
2874 for ac_exec_ext in '' $ac_executable_extensions; do
2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2876 ac_cv_prog_ac_ct_CC="$ac_prog"
2877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 break 2
2879 fi
2880 done
2881 done
2882 IFS=$as_save_IFS
2883
2884 fi
2885 fi
2886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2887 if test -n "$ac_ct_CC"; then
2888 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2889 echo "${ECHO_T}$ac_ct_CC" >&6; }
2890 else
2891 { echo "$as_me:$LINENO: result: no" >&5
2892 echo "${ECHO_T}no" >&6; }
2893 fi
2894
2895
2896 test -n "$ac_ct_CC" && break
2897 done
2898
2899 if test "x$ac_ct_CC" = x; then
2900 CC=""
2901 else
2902 case $cross_compiling:$ac_tool_warned in
2903 yes:)
2904 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2905 whose name does not start with the host triplet. If you think this
2906 configuration is useful to you, please write to autoconf@gnu.org." >&5
2907 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2908 whose name does not start with the host triplet. If you think this
2909 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2910 ac_tool_warned=yes ;;
2911 esac
2912 CC=$ac_ct_CC
2913 fi
2914 fi
2915
2916 fi
2917
2918
2919 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2920 See \`config.log' for more details." >&5
2921 echo "$as_me: error: no acceptable C compiler found in \$PATH
2922 See \`config.log' for more details." >&2;}
2923 { (exit 1); exit 1; }; }
2924
2925 # Provide some information about the compiler.
2926 echo "$as_me:$LINENO: checking for C compiler version" >&5
2927 ac_compiler=`set X $ac_compile; echo $2`
2928 { (ac_try="$ac_compiler --version >&5"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2934 (eval "$ac_compiler --version >&5") 2>&5
2935 ac_status=$?
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }
2938 { (ac_try="$ac_compiler -v >&5"
2939 case "(($ac_try" in
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2942 esac
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compiler -v >&5") 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }
2948 { (ac_try="$ac_compiler -V >&5"
2949 case "(($ac_try" in
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2952 esac
2953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2954 (eval "$ac_compiler -V >&5") 2>&5
2955 ac_status=$?
2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2957 (exit $ac_status); }
2958
2959 cat >conftest.$ac_ext <<_ACEOF
2960 /* confdefs.h. */
2961 _ACEOF
2962 cat confdefs.h >>conftest.$ac_ext
2963 cat >>conftest.$ac_ext <<_ACEOF
2964 /* end confdefs.h. */
2965
2966 int
2967 main ()
2968 {
2969
2970 ;
2971 return 0;
2972 }
2973 _ACEOF
2974 ac_clean_files_save=$ac_clean_files
2975 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2976 # Try to create an executable without -o first, disregard a.out.
2977 # It will help us diagnose broken compilers, and finding out an intuition
2978 # of exeext.
2979 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2980 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2981 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2982 #
2983 # List of possible output files, starting from the most likely.
2984 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2985 # only as a last resort. b.out is created by i960 compilers.
2986 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2987 #
2988 # The IRIX 6 linker writes into existing files which may not be
2989 # executable, retaining their permissions. Remove them first so a
2990 # subsequent execution test works.
2991 ac_rmfiles=
2992 for ac_file in $ac_files
2993 do
2994 case $ac_file in
2995 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2996 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2997 esac
2998 done
2999 rm -f $ac_rmfiles
3000
3001 if { (ac_try="$ac_link_default"
3002 case "(($ac_try" in
3003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3005 esac
3006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3007 (eval "$ac_link_default") 2>&5
3008 ac_status=$?
3009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010 (exit $ac_status); }; then
3011 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3012 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3013 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3014 # so that the user can short-circuit this test for compilers unknown to
3015 # Autoconf.
3016 for ac_file in $ac_files ''
3017 do
3018 test -f "$ac_file" || continue
3019 case $ac_file in
3020 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3021 ;;
3022 [ab].out )
3023 # We found the default executable, but exeext='' is most
3024 # certainly right.
3025 break;;
3026 *.* )
3027 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3028 then :; else
3029 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3030 fi
3031 # We set ac_cv_exeext here because the later test for it is not
3032 # safe: cross compilers may not add the suffix if given an `-o'
3033 # argument, so we may need to know it at that point already.
3034 # Even if this section looks crufty: it has the advantage of
3035 # actually working.
3036 break;;
3037 * )
3038 break;;
3039 esac
3040 done
3041 test "$ac_cv_exeext" = no && ac_cv_exeext=
3042
3043 else
3044 ac_file=''
3045 fi
3046
3047 { echo "$as_me:$LINENO: result: $ac_file" >&5
3048 echo "${ECHO_T}$ac_file" >&6; }
3049 if test -z "$ac_file"; then
3050 echo "$as_me: failed program was:" >&5
3051 sed 's/^/| /' conftest.$ac_ext >&5
3052
3053 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3054 See \`config.log' for more details." >&5
3055 echo "$as_me: error: C compiler cannot create executables
3056 See \`config.log' for more details." >&2;}
3057 { (exit 77); exit 77; }; }
3058 fi
3059
3060 ac_exeext=$ac_cv_exeext
3061
3062 # Check that the compiler produces executables we can run. If not, either
3063 # the compiler is broken, or we cross compile.
3064 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3065 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3066 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3067 # If not cross compiling, check that we can run a simple program.
3068 if test "$cross_compiling" != yes; then
3069 if { ac_try='./$ac_file'
3070 { (case "(($ac_try" in
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3073 esac
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_try") 2>&5
3076 ac_status=$?
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); }; }; then
3079 cross_compiling=no
3080 else
3081 if test "$cross_compiling" = maybe; then
3082 cross_compiling=yes
3083 else
3084 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3085 If you meant to cross compile, use \`--host'.
3086 See \`config.log' for more details." >&5
3087 echo "$as_me: error: cannot run C compiled programs.
3088 If you meant to cross compile, use \`--host'.
3089 See \`config.log' for more details." >&2;}
3090 { (exit 1); exit 1; }; }
3091 fi
3092 fi
3093 fi
3094 { echo "$as_me:$LINENO: result: yes" >&5
3095 echo "${ECHO_T}yes" >&6; }
3096
3097 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3098 ac_clean_files=$ac_clean_files_save
3099 # Check that the compiler produces executables we can run. If not, either
3100 # the compiler is broken, or we cross compile.
3101 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3102 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3103 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3104 echo "${ECHO_T}$cross_compiling" >&6; }
3105
3106 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3107 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3108 if { (ac_try="$ac_link"
3109 case "(($ac_try" in
3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3112 esac
3113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3114 (eval "$ac_link") 2>&5
3115 ac_status=$?
3116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117 (exit $ac_status); }; then
3118 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3119 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3120 # work properly (i.e., refer to `conftest.exe'), while it won't with
3121 # `rm'.
3122 for ac_file in conftest.exe conftest conftest.*; do
3123 test -f "$ac_file" || continue
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3126 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 break;;
3128 * ) break;;
3129 esac
3130 done
3131 else
3132 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3133 See \`config.log' for more details." >&5
3134 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3135 See \`config.log' for more details." >&2;}
3136 { (exit 1); exit 1; }; }
3137 fi
3138
3139 rm -f conftest$ac_cv_exeext
3140 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3141 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3142
3143 rm -f conftest.$ac_ext
3144 EXEEXT=$ac_cv_exeext
3145 ac_exeext=$EXEEXT
3146 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3147 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3148 if test "${ac_cv_objext+set}" = set; then
3149 echo $ECHO_N "(cached) $ECHO_C" >&6
3150 else
3151 cat >conftest.$ac_ext <<_ACEOF
3152 /* confdefs.h. */
3153 _ACEOF
3154 cat confdefs.h >>conftest.$ac_ext
3155 cat >>conftest.$ac_ext <<_ACEOF
3156 /* end confdefs.h. */
3157
3158 int
3159 main ()
3160 {
3161
3162 ;
3163 return 0;
3164 }
3165 _ACEOF
3166 rm -f conftest.o conftest.obj
3167 if { (ac_try="$ac_compile"
3168 case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3171 esac
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_compile") 2>&5
3174 ac_status=$?
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; then
3177 for ac_file in conftest.o conftest.obj conftest.*; do
3178 test -f "$ac_file" || continue;
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3181 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3182 break;;
3183 esac
3184 done
3185 else
3186 echo "$as_me: failed program was:" >&5
3187 sed 's/^/| /' conftest.$ac_ext >&5
3188
3189 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3190 See \`config.log' for more details." >&5
3191 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3192 See \`config.log' for more details." >&2;}
3193 { (exit 1); exit 1; }; }
3194 fi
3195
3196 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3197 fi
3198 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3199 echo "${ECHO_T}$ac_cv_objext" >&6; }
3200 OBJEXT=$ac_cv_objext
3201 ac_objext=$OBJEXT
3202 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3203 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3204 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 cat >conftest.$ac_ext <<_ACEOF
3208 /* confdefs.h. */
3209 _ACEOF
3210 cat confdefs.h >>conftest.$ac_ext
3211 cat >>conftest.$ac_ext <<_ACEOF
3212 /* end confdefs.h. */
3213
3214 int
3215 main ()
3216 {
3217 #ifndef __GNUC__
3218 choke me
3219 #endif
3220
3221 ;
3222 return 0;
3223 }
3224 _ACEOF
3225 rm -f conftest.$ac_objext
3226 if { (ac_try="$ac_compile"
3227 case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230 esac
3231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3232 (eval "$ac_compile") 2>conftest.er1
3233 ac_status=$?
3234 grep -v '^ *+' conftest.er1 >conftest.err
3235 rm -f conftest.er1
3236 cat conftest.err >&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); } && {
3239 test -z "$ac_c_werror_flag" ||
3240 test ! -s conftest.err
3241 } && test -s conftest.$ac_objext; then
3242 ac_compiler_gnu=yes
3243 else
3244 echo "$as_me: failed program was:" >&5
3245 sed 's/^/| /' conftest.$ac_ext >&5
3246
3247 ac_compiler_gnu=no
3248 fi
3249
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3251 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3252
3253 fi
3254 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3255 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3256 GCC=`test $ac_compiler_gnu = yes && echo yes`
3257 ac_test_CFLAGS=${CFLAGS+set}
3258 ac_save_CFLAGS=$CFLAGS
3259 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3260 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_cc_g+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264 ac_save_c_werror_flag=$ac_c_werror_flag
3265 ac_c_werror_flag=yes
3266 ac_cv_prog_cc_g=no
3267 CFLAGS="-g"
3268 cat >conftest.$ac_ext <<_ACEOF
3269 /* confdefs.h. */
3270 _ACEOF
3271 cat confdefs.h >>conftest.$ac_ext
3272 cat >>conftest.$ac_ext <<_ACEOF
3273 /* end confdefs.h. */
3274
3275 int
3276 main ()
3277 {
3278
3279 ;
3280 return 0;
3281 }
3282 _ACEOF
3283 rm -f conftest.$ac_objext
3284 if { (ac_try="$ac_compile"
3285 case "(($ac_try" in
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3288 esac
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_compile") 2>conftest.er1
3291 ac_status=$?
3292 grep -v '^ *+' conftest.er1 >conftest.err
3293 rm -f conftest.er1
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } && {
3297 test -z "$ac_c_werror_flag" ||
3298 test ! -s conftest.err
3299 } && test -s conftest.$ac_objext; then
3300 ac_cv_prog_cc_g=yes
3301 else
3302 echo "$as_me: failed program was:" >&5
3303 sed 's/^/| /' conftest.$ac_ext >&5
3304
3305 CFLAGS=""
3306 cat >conftest.$ac_ext <<_ACEOF
3307 /* confdefs.h. */
3308 _ACEOF
3309 cat confdefs.h >>conftest.$ac_ext
3310 cat >>conftest.$ac_ext <<_ACEOF
3311 /* end confdefs.h. */
3312
3313 int
3314 main ()
3315 {
3316
3317 ;
3318 return 0;
3319 }
3320 _ACEOF
3321 rm -f conftest.$ac_objext
3322 if { (ac_try="$ac_compile"
3323 case "(($ac_try" in
3324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3325 *) ac_try_echo=$ac_try;;
3326 esac
3327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3328 (eval "$ac_compile") 2>conftest.er1
3329 ac_status=$?
3330 grep -v '^ *+' conftest.er1 >conftest.err
3331 rm -f conftest.er1
3332 cat conftest.err >&5
3333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3334 (exit $ac_status); } && {
3335 test -z "$ac_c_werror_flag" ||
3336 test ! -s conftest.err
3337 } && test -s conftest.$ac_objext; then
3338 :
3339 else
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3342
3343 ac_c_werror_flag=$ac_save_c_werror_flag
3344 CFLAGS="-g"
3345 cat >conftest.$ac_ext <<_ACEOF
3346 /* confdefs.h. */
3347 _ACEOF
3348 cat confdefs.h >>conftest.$ac_ext
3349 cat >>conftest.$ac_ext <<_ACEOF
3350 /* end confdefs.h. */
3351
3352 int
3353 main ()
3354 {
3355
3356 ;
3357 return 0;
3358 }
3359 _ACEOF
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3362 case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365 esac
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3368 ac_status=$?
3369 grep -v '^ *+' conftest.er1 >conftest.err
3370 rm -f conftest.er1
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } && {
3374 test -z "$ac_c_werror_flag" ||
3375 test ! -s conftest.err
3376 } && test -s conftest.$ac_objext; then
3377 ac_cv_prog_cc_g=yes
3378 else
3379 echo "$as_me: failed program was:" >&5
3380 sed 's/^/| /' conftest.$ac_ext >&5
3381
3382
3383 fi
3384
3385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3386 fi
3387
3388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3389 fi
3390
3391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3392 ac_c_werror_flag=$ac_save_c_werror_flag
3393 fi
3394 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3395 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3396 if test "$ac_test_CFLAGS" = set; then
3397 CFLAGS=$ac_save_CFLAGS
3398 elif test $ac_cv_prog_cc_g = yes; then
3399 if test "$GCC" = yes; then
3400 CFLAGS="-g -O2"
3401 else
3402 CFLAGS="-g"
3403 fi
3404 else
3405 if test "$GCC" = yes; then
3406 CFLAGS="-O2"
3407 else
3408 CFLAGS=
3409 fi
3410 fi
3411 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3412 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3413 if test "${ac_cv_prog_cc_c89+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416 ac_cv_prog_cc_c89=no
3417 ac_save_CC=$CC
3418 cat >conftest.$ac_ext <<_ACEOF
3419 /* confdefs.h. */
3420 _ACEOF
3421 cat confdefs.h >>conftest.$ac_ext
3422 cat >>conftest.$ac_ext <<_ACEOF
3423 /* end confdefs.h. */
3424 #include <stdarg.h>
3425 #include <stdio.h>
3426 #include <sys/types.h>
3427 #include <sys/stat.h>
3428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3429 struct buf { int x; };
3430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3431 static char *e (p, i)
3432 char **p;
3433 int i;
3434 {
3435 return p[i];
3436 }
3437 static char *f (char * (*g) (char **, int), char **p, ...)
3438 {
3439 char *s;
3440 va_list v;
3441 va_start (v,p);
3442 s = g (p, va_arg (v,int));
3443 va_end (v);
3444 return s;
3445 }
3446
3447 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3448 function prototypes and stuff, but not '\xHH' hex character constants.
3449 These don't provoke an error unfortunately, instead are silently treated
3450 as 'x'. The following induces an error, until -std is added to get
3451 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3452 array size at least. It's necessary to write '\x00'==0 to get something
3453 that's true only with -std. */
3454 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3455
3456 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3457 inside strings and character constants. */
3458 #define FOO(x) 'x'
3459 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3460
3461 int test (int i, double x);
3462 struct s1 {int (*f) (int a);};
3463 struct s2 {int (*f) (double a);};
3464 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3465 int argc;
3466 char **argv;
3467 int
3468 main ()
3469 {
3470 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3471 ;
3472 return 0;
3473 }
3474 _ACEOF
3475 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3476 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3477 do
3478 CC="$ac_save_CC $ac_arg"
3479 rm -f conftest.$ac_objext
3480 if { (ac_try="$ac_compile"
3481 case "(($ac_try" in
3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3483 *) ac_try_echo=$ac_try;;
3484 esac
3485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3486 (eval "$ac_compile") 2>conftest.er1
3487 ac_status=$?
3488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
3491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3492 (exit $ac_status); } && {
3493 test -z "$ac_c_werror_flag" ||
3494 test ! -s conftest.err
3495 } && test -s conftest.$ac_objext; then
3496 ac_cv_prog_cc_c89=$ac_arg
3497 else
3498 echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3500
3501
3502 fi
3503
3504 rm -f core conftest.err conftest.$ac_objext
3505 test "x$ac_cv_prog_cc_c89" != "xno" && break
3506 done
3507 rm -f conftest.$ac_ext
3508 CC=$ac_save_CC
3509
3510 fi
3511 # AC_CACHE_VAL
3512 case "x$ac_cv_prog_cc_c89" in
3513 x)
3514 { echo "$as_me:$LINENO: result: none needed" >&5
3515 echo "${ECHO_T}none needed" >&6; } ;;
3516 xno)
3517 { echo "$as_me:$LINENO: result: unsupported" >&5
3518 echo "${ECHO_T}unsupported" >&6; } ;;
3519 *)
3520 CC="$CC $ac_cv_prog_cc_c89"
3521 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3522 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3523 esac
3524
3525
3526 ac_ext=c
3527 ac_cpp='$CPP $CPPFLAGS'
3528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3531
3532 depcc="$CC" am_compiler_list=
3533
3534 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3535 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3536 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3540 # We make a subdir and do the tests there. Otherwise we can end up
3541 # making bogus files that we don't know about and never remove. For
3542 # instance it was reported that on HP-UX the gcc test will end up
3543 # making a dummy file named `D' -- because `-MD' means `put the output
3544 # in D'.
3545 mkdir conftest.dir
3546 # Copy depcomp to subdir because otherwise we won't find it if we're
3547 # using a relative directory.
3548 cp "$am_depcomp" conftest.dir
3549 cd conftest.dir
3550 # We will build objects and dependencies in a subdirectory because
3551 # it helps to detect inapplicable dependency modes. For instance
3552 # both Tru64's cc and ICC support -MD to output dependencies as a
3553 # side effect of compilation, but ICC will put the dependencies in
3554 # the current directory while Tru64 will put them in the object
3555 # directory.
3556 mkdir sub
3557
3558 am_cv_CC_dependencies_compiler_type=none
3559 if test "$am_compiler_list" = ""; then
3560 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3561 fi
3562 for depmode in $am_compiler_list; do
3563 # Setup a source with many dependencies, because some compilers
3564 # like to wrap large dependency lists on column 80 (with \), and
3565 # we should not choose a depcomp mode which is confused by this.
3566 #
3567 # We need to recreate these files for each test, as the compiler may
3568 # overwrite some of them when testing with obscure command lines.
3569 # This happens at least with the AIX C compiler.
3570 : > sub/conftest.c
3571 for i in 1 2 3 4 5 6; do
3572 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3574 # Solaris 8's {/usr,}/bin/sh.
3575 touch sub/conftst$i.h
3576 done
3577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3578
3579 case $depmode in
3580 nosideeffect)
3581 # after this tag, mechanisms are not by side-effect, so they'll
3582 # only be used when explicitly requested
3583 if test "x$enable_dependency_tracking" = xyes; then
3584 continue
3585 else
3586 break
3587 fi
3588 ;;
3589 none) break ;;
3590 esac
3591 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3592 # mode. It turns out that the SunPro C++ compiler does not properly
3593 # handle `-M -o', and we need to detect this.
3594 if depmode=$depmode \
3595 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3596 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3597 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3598 >/dev/null 2>conftest.err &&
3599 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3600 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3601 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3602 # icc doesn't choke on unknown options, it will just issue warnings
3603 # or remarks (even with -Werror). So we grep stderr for any message
3604 # that says an option was ignored or not supported.
3605 # When given -MP, icc 7.0 and 7.1 complain thusly:
3606 # icc: Command line warning: ignoring option '-M'; no argument required
3607 # The diagnosis changed in icc 8.0:
3608 # icc: Command line remark: option '-MP' not supported
3609 if (grep 'ignoring option' conftest.err ||
3610 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3611 am_cv_CC_dependencies_compiler_type=$depmode
3612 break
3613 fi
3614 fi
3615 done
3616
3617 cd ..
3618 rm -rf conftest.dir
3619 else
3620 am_cv_CC_dependencies_compiler_type=none
3621 fi
3622
3623 fi
3624 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3625 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3626 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3627
3628
3629
3630 if
3631 test "x$enable_dependency_tracking" != xno \
3632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3633 am__fastdepCC_TRUE=
3634 am__fastdepCC_FALSE='#'
3635 else
3636 am__fastdepCC_TRUE='#'
3637 am__fastdepCC_FALSE=
3638 fi
3639
3640
3641 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3642 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3643 if test "${lt_cv_path_SED+set}" = set; then
3644 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 else
3646 # Loop through the user's path and test for sed and gsed.
3647 # Then use that list of sed's as ones to test for truncation.
3648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3649 for as_dir in $PATH
3650 do
3651 IFS=$as_save_IFS
3652 test -z "$as_dir" && as_dir=.
3653 for lt_ac_prog in sed gsed; do
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3656 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3657 fi
3658 done
3659 done
3660 done
3661 lt_ac_max=0
3662 lt_ac_count=0
3663 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3664 # along with /bin/sed that truncates output.
3665 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3666 test ! -f $lt_ac_sed && continue
3667 cat /dev/null > conftest.in
3668 lt_ac_count=0
3669 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3670 # Check for GNU sed and select it if it is found.
3671 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3672 lt_cv_path_SED=$lt_ac_sed
3673 break
3674 fi
3675 while true; do
3676 cat conftest.in conftest.in >conftest.tmp
3677 mv conftest.tmp conftest.in
3678 cp conftest.in conftest.nl
3679 echo >>conftest.nl
3680 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3681 cmp -s conftest.out conftest.nl || break
3682 # 10000 chars as input seems more than enough
3683 test $lt_ac_count -gt 10 && break
3684 lt_ac_count=`expr $lt_ac_count + 1`
3685 if test $lt_ac_count -gt $lt_ac_max; then
3686 lt_ac_max=$lt_ac_count
3687 lt_cv_path_SED=$lt_ac_sed
3688 fi
3689 done
3690 done
3691
3692 fi
3693
3694 SED=$lt_cv_path_SED
3695 { echo "$as_me:$LINENO: result: $SED" >&5
3696 echo "${ECHO_T}$SED" >&6; }
3697
3698 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3699 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3700 if test "${ac_cv_path_GREP+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 # Extract the first word of "grep ggrep" to use in msg output
3704 if test -z "$GREP"; then
3705 set dummy grep ggrep; ac_prog_name=$2
3706 if test "${ac_cv_path_GREP+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 ac_path_GREP_found=false
3710 # Loop through the user's path and test for each of PROGNAME-LIST
3711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3712 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3713 do
3714 IFS=$as_save_IFS
3715 test -z "$as_dir" && as_dir=.
3716 for ac_prog in grep ggrep; do
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3719 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3720 # Check for GNU ac_path_GREP and select it if it is found.
3721 # Check for GNU $ac_path_GREP
3722 case `"$ac_path_GREP" --version 2>&1` in
3723 *GNU*)
3724 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3725 *)
3726 ac_count=0
3727 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3728 while :
3729 do
3730 cat "conftest.in" "conftest.in" >"conftest.tmp"
3731 mv "conftest.tmp" "conftest.in"
3732 cp "conftest.in" "conftest.nl"
3733 echo 'GREP' >> "conftest.nl"
3734 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3735 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3736 ac_count=`expr $ac_count + 1`
3737 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3738 # Best one so far, save it but keep looking for a better one
3739 ac_cv_path_GREP="$ac_path_GREP"
3740 ac_path_GREP_max=$ac_count
3741 fi
3742 # 10*(2^10) chars as input seems more than enough
3743 test $ac_count -gt 10 && break
3744 done
3745 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3746 esac
3747
3748
3749 $ac_path_GREP_found && break 3
3750 done
3751 done
3752
3753 done
3754 IFS=$as_save_IFS
3755
3756
3757 fi
3758
3759 GREP="$ac_cv_path_GREP"
3760 if test -z "$GREP"; then
3761 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3762 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3763 { (exit 1); exit 1; }; }
3764 fi
3765
3766 else
3767 ac_cv_path_GREP=$GREP
3768 fi
3769
3770
3771 fi
3772 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3773 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3774 GREP="$ac_cv_path_GREP"
3775
3776
3777 { echo "$as_me:$LINENO: checking for egrep" >&5
3778 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3779 if test "${ac_cv_path_EGREP+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3783 then ac_cv_path_EGREP="$GREP -E"
3784 else
3785 # Extract the first word of "egrep" to use in msg output
3786 if test -z "$EGREP"; then
3787 set dummy egrep; ac_prog_name=$2
3788 if test "${ac_cv_path_EGREP+set}" = set; then
3789 echo $ECHO_N "(cached) $ECHO_C" >&6
3790 else
3791 ac_path_EGREP_found=false
3792 # Loop through the user's path and test for each of PROGNAME-LIST
3793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3795 do
3796 IFS=$as_save_IFS
3797 test -z "$as_dir" && as_dir=.
3798 for ac_prog in egrep; do
3799 for ac_exec_ext in '' $ac_executable_extensions; do
3800 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3801 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3802 # Check for GNU ac_path_EGREP and select it if it is found.
3803 # Check for GNU $ac_path_EGREP
3804 case `"$ac_path_EGREP" --version 2>&1` in
3805 *GNU*)
3806 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3807 *)
3808 ac_count=0
3809 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3810 while :
3811 do
3812 cat "conftest.in" "conftest.in" >"conftest.tmp"
3813 mv "conftest.tmp" "conftest.in"
3814 cp "conftest.in" "conftest.nl"
3815 echo 'EGREP' >> "conftest.nl"
3816 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3818 ac_count=`expr $ac_count + 1`
3819 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3820 # Best one so far, save it but keep looking for a better one
3821 ac_cv_path_EGREP="$ac_path_EGREP"
3822 ac_path_EGREP_max=$ac_count
3823 fi
3824 # 10*(2^10) chars as input seems more than enough
3825 test $ac_count -gt 10 && break
3826 done
3827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3828 esac
3829
3830
3831 $ac_path_EGREP_found && break 3
3832 done
3833 done
3834
3835 done
3836 IFS=$as_save_IFS
3837
3838
3839 fi
3840
3841 EGREP="$ac_cv_path_EGREP"
3842 if test -z "$EGREP"; then
3843 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3844 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3845 { (exit 1); exit 1; }; }
3846 fi
3847
3848 else
3849 ac_cv_path_EGREP=$EGREP
3850 fi
3851
3852
3853 fi
3854 fi
3855 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3856 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3857 EGREP="$ac_cv_path_EGREP"
3858
3859
3860
3861 # Check whether --with-gnu-ld was given.
3862 if test "${with_gnu_ld+set}" = set; then
3863 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3864 else
3865 with_gnu_ld=no
3866 fi
3867
3868 ac_prog=ld
3869 if test "$GCC" = yes; then
3870 # Check if gcc -print-prog-name=ld gives a path.
3871 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3872 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3873 case $host in
3874 *-*-mingw*)
3875 # gcc leaves a trailing carriage return which upsets mingw
3876 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3877 *)
3878 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3879 esac
3880 case $ac_prog in
3881 # Accept absolute paths.
3882 [\\/]* | ?:[\\/]*)
3883 re_direlt='/[^/][^/]*/\.\./'
3884 # Canonicalize the pathname of ld
3885 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3886 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3887 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3888 done
3889 test -z "$LD" && LD="$ac_prog"
3890 ;;
3891 "")
3892 # If it fails, then pretend we aren't using GCC.
3893 ac_prog=ld
3894 ;;
3895 *)
3896 # If it is relative, then search for the first ld in PATH.
3897 with_gnu_ld=unknown
3898 ;;
3899 esac
3900 elif test "$with_gnu_ld" = yes; then
3901 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3902 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3903 else
3904 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3905 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3906 fi
3907 if test "${lt_cv_path_LD+set}" = set; then
3908 echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910 if test -z "$LD"; then
3911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3912 for ac_dir in $PATH; do
3913 IFS="$lt_save_ifs"
3914 test -z "$ac_dir" && ac_dir=.
3915 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3916 lt_cv_path_LD="$ac_dir/$ac_prog"
3917 # Check to see if the program is GNU ld. I'd rather use --version,
3918 # but apparently some variants of GNU ld only accept -v.
3919 # Break only if it was the GNU/non-GNU ld that we prefer.
3920 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3921 *GNU* | *'with BFD'*)
3922 test "$with_gnu_ld" != no && break
3923 ;;
3924 *)
3925 test "$with_gnu_ld" != yes && break
3926 ;;
3927 esac
3928 fi
3929 done
3930 IFS="$lt_save_ifs"
3931 else
3932 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3933 fi
3934 fi
3935
3936 LD="$lt_cv_path_LD"
3937 if test -n "$LD"; then
3938 { echo "$as_me:$LINENO: result: $LD" >&5
3939 echo "${ECHO_T}$LD" >&6; }
3940 else
3941 { echo "$as_me:$LINENO: result: no" >&5
3942 echo "${ECHO_T}no" >&6; }
3943 fi
3944 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3945 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3946 { (exit 1); exit 1; }; }
3947 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3948 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3949 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951 else
3952 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3953 case `$LD -v 2>&1 </dev/null` in
3954 *GNU* | *'with BFD'*)
3955 lt_cv_prog_gnu_ld=yes
3956 ;;
3957 *)
3958 lt_cv_prog_gnu_ld=no
3959 ;;
3960 esac
3961 fi
3962 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3963 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3964 with_gnu_ld=$lt_cv_prog_gnu_ld
3965
3966
3967 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3968 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
3969 if test "${lt_cv_ld_reload_flag+set}" = set; then
3970 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972 lt_cv_ld_reload_flag='-r'
3973 fi
3974 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3975 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
3976 reload_flag=$lt_cv_ld_reload_flag
3977 case $reload_flag in
3978 "" | " "*) ;;
3979 *) reload_flag=" $reload_flag" ;;
3980 esac
3981 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3982 case $host_os in
3983 darwin*)
3984 if test "$GCC" = yes; then
3985 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3986 else
3987 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3988 fi
3989 ;;
3990 esac
3991
3992 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3993 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
3994 if test "${lt_cv_path_NM+set}" = set; then
3995 echo $ECHO_N "(cached) $ECHO_C" >&6
3996 else
3997 if test -n "$NM"; then
3998 # Let the user override the test.
3999 lt_cv_path_NM="$NM"
4000 else
4001 lt_nm_to_check="${ac_tool_prefix}nm"
4002 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4003 lt_nm_to_check="$lt_nm_to_check nm"
4004 fi
4005 for lt_tmp_nm in $lt_nm_to_check; do
4006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4007 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4008 IFS="$lt_save_ifs"
4009 test -z "$ac_dir" && ac_dir=.
4010 tmp_nm="$ac_dir/$lt_tmp_nm"
4011 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4012 # Check to see if the nm accepts a BSD-compat flag.
4013 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4014 # nm: unknown option "B" ignored
4015 # Tru64's nm complains that /dev/null is an invalid object file
4016 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4017 */dev/null* | *'Invalid file or object type'*)
4018 lt_cv_path_NM="$tmp_nm -B"
4019 break
4020 ;;
4021 *)
4022 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4023 */dev/null*)
4024 lt_cv_path_NM="$tmp_nm -p"
4025 break
4026 ;;
4027 *)
4028 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4029 continue # so that we can try to find one that supports BSD flags
4030 ;;
4031 esac
4032 ;;
4033 esac
4034 fi
4035 done
4036 IFS="$lt_save_ifs"
4037 done
4038 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4039 fi
4040 fi
4041 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4042 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4043 NM="$lt_cv_path_NM"
4044
4045 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4046 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4047 LN_S=$as_ln_s
4048 if test "$LN_S" = "ln -s"; then
4049 { echo "$as_me:$LINENO: result: yes" >&5
4050 echo "${ECHO_T}yes" >&6; }
4051 else
4052 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4053 echo "${ECHO_T}no, using $LN_S" >&6; }
4054 fi
4055
4056 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4057 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
4058 if test "${lt_cv_deplibs_check_method+set}" = set; then
4059 echo $ECHO_N "(cached) $ECHO_C" >&6
4060 else
4061 lt_cv_file_magic_cmd='$MAGIC_CMD'
4062 lt_cv_file_magic_test_file=
4063 lt_cv_deplibs_check_method='unknown'
4064 # Need to set the preceding variable on all platforms that support
4065 # interlibrary dependencies.
4066 # 'none' -- dependencies not supported.
4067 # `unknown' -- same as none, but documents that we really don't know.
4068 # 'pass_all' -- all dependencies passed with no checks.
4069 # 'test_compile' -- check by making test program.
4070 # 'file_magic [[regex]]' -- check by looking for files in library path
4071 # which responds to the $file_magic_cmd with a given extended regex.
4072 # If you have `file' or equivalent on your system and you're not sure
4073 # whether `pass_all' will *always* work, you probably want this one.
4074
4075 case $host_os in
4076 aix4* | aix5*)
4077 lt_cv_deplibs_check_method=pass_all
4078 ;;
4079
4080 beos*)
4081 lt_cv_deplibs_check_method=pass_all
4082 ;;
4083
4084 bsdi[45]*)
4085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4086 lt_cv_file_magic_cmd='/usr/bin/file -L'
4087 lt_cv_file_magic_test_file=/shlib/libc.so
4088 ;;
4089
4090 cygwin*)
4091 # func_win32_libid is a shell function defined in ltmain.sh
4092 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4093 lt_cv_file_magic_cmd='func_win32_libid'
4094 ;;
4095
4096 mingw* | pw32*)
4097 # Base MSYS/MinGW do not provide the 'file' command needed by
4098 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4099 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4100 lt_cv_file_magic_cmd='$OBJDUMP -f'
4101 ;;
4102
4103 darwin* | rhapsody*)
4104 lt_cv_deplibs_check_method=pass_all
4105 ;;
4106
4107 freebsd* | dragonfly*)
4108 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4109 case $host_cpu in
4110 i*86 )
4111 # Not sure whether the presence of OpenBSD here was a mistake.
4112 # Let's accept both of them until this is cleared up.
4113 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4114 lt_cv_file_magic_cmd=/usr/bin/file
4115 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4116 ;;
4117 esac
4118 else
4119 lt_cv_deplibs_check_method=pass_all
4120 fi
4121 ;;
4122
4123 gnu*)
4124 lt_cv_deplibs_check_method=pass_all
4125 ;;
4126
4127 hpux10.20* | hpux11*)
4128 lt_cv_file_magic_cmd=/usr/bin/file
4129 case $host_cpu in
4130 ia64*)
4131 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4132 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4133 ;;
4134 hppa*64*)
4135 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]'
4136 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4137 ;;
4138 *)
4139 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4140 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4141 ;;
4142 esac
4143 ;;
4144
4145 interix3*)
4146 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4148 ;;
4149
4150 irix5* | irix6* | nonstopux*)
4151 case $LD in
4152 *-32|*"-32 ") libmagic=32-bit;;
4153 *-n32|*"-n32 ") libmagic=N32;;
4154 *-64|*"-64 ") libmagic=64-bit;;
4155 *) libmagic=never-match;;
4156 esac
4157 lt_cv_deplibs_check_method=pass_all
4158 ;;
4159
4160 # This must be Linux ELF.
4161 linux* | k*bsd*-gnu)
4162 lt_cv_deplibs_check_method=pass_all
4163 ;;
4164
4165 netbsd* | netbsdelf*-gnu)
4166 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4167 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4168 else
4169 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4170 fi
4171 ;;
4172
4173 newos6*)
4174 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4175 lt_cv_file_magic_cmd=/usr/bin/file
4176 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4177 ;;
4178
4179 nto-qnx*)
4180 lt_cv_deplibs_check_method=unknown
4181 ;;
4182
4183 openbsd*)
4184 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4185 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4186 else
4187 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4188 fi
4189 ;;
4190
4191 osf3* | osf4* | osf5*)
4192 lt_cv_deplibs_check_method=pass_all
4193 ;;
4194
4195 solaris*)
4196 lt_cv_deplibs_check_method=pass_all
4197 ;;
4198
4199 sysv4 | sysv4.3*)
4200 case $host_vendor in
4201 motorola)
4202 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]'
4203 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4204 ;;
4205 ncr)
4206 lt_cv_deplibs_check_method=pass_all
4207 ;;
4208 sequent)
4209 lt_cv_file_magic_cmd='/bin/file'
4210 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4211 ;;
4212 sni)
4213 lt_cv_file_magic_cmd='/bin/file'
4214 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4215 lt_cv_file_magic_test_file=/lib/libc.so
4216 ;;
4217 siemens)
4218 lt_cv_deplibs_check_method=pass_all
4219 ;;
4220 pc)
4221 lt_cv_deplibs_check_method=pass_all
4222 ;;
4223 esac
4224 ;;
4225
4226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4227 lt_cv_deplibs_check_method=pass_all
4228 ;;
4229 esac
4230
4231 fi
4232 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4233 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4234 file_magic_cmd=$lt_cv_file_magic_cmd
4235 deplibs_check_method=$lt_cv_deplibs_check_method
4236 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4237
4238
4239
4240
4241 # If no C compiler was specified, use CC.
4242 LTCC=${LTCC-"$CC"}
4243
4244 # If no C compiler flags were specified, use CFLAGS.
4245 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4246
4247 # Allow CC to be a program name with arguments.
4248 compiler=$CC
4249
4250
4251 # Check whether --enable-libtool-lock was given.
4252 if test "${enable_libtool_lock+set}" = set; then
4253 enableval=$enable_libtool_lock;
4254 fi
4255
4256 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4257
4258 # Some flags need to be propagated to the compiler or linker for good
4259 # libtool support.
4260 case $host in
4261 ia64-*-hpux*)
4262 # Find out which ABI we are using.
4263 echo 'int i;' > conftest.$ac_ext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4265 (eval $ac_compile) 2>&5
4266 ac_status=$?
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); }; then
4269 case `/usr/bin/file conftest.$ac_objext` in
4270 *ELF-32*)
4271 HPUX_IA64_MODE="32"
4272 ;;
4273 *ELF-64*)
4274 HPUX_IA64_MODE="64"
4275 ;;
4276 esac
4277 fi
4278 rm -rf conftest*
4279 ;;
4280 *-*-irix6*)
4281 # Find out which ABI we are using.
4282 echo '#line 4283 "configure"' > conftest.$ac_ext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4284 (eval $ac_compile) 2>&5
4285 ac_status=$?
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; then
4288 if test "$lt_cv_prog_gnu_ld" = yes; then
4289 case `/usr/bin/file conftest.$ac_objext` in
4290 *32-bit*)
4291 LD="${LD-ld} -melf32bsmip"
4292 ;;
4293 *N32*)
4294 LD="${LD-ld} -melf32bmipn32"
4295 ;;
4296 *64-bit*)
4297 LD="${LD-ld} -melf64bmip"
4298 ;;
4299 esac
4300 else
4301 case `/usr/bin/file conftest.$ac_objext` in
4302 *32-bit*)
4303 LD="${LD-ld} -32"
4304 ;;
4305 *N32*)
4306 LD="${LD-ld} -n32"
4307 ;;
4308 *64-bit*)
4309 LD="${LD-ld} -64"
4310 ;;
4311 esac
4312 fi
4313 fi
4314 rm -rf conftest*
4315 ;;
4316
4317 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4318 # Find out which ABI we are using.
4319 echo 'int i;' > conftest.$ac_ext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321 (eval $ac_compile) 2>&5
4322 ac_status=$?
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); }; then
4325 case `/usr/bin/file conftest.o` in
4326 *32-bit*)
4327 case $host in
4328 x86_64-*linux*)
4329 LD="${LD-ld} -m elf_i386"
4330 ;;
4331 ppc64-*linux*|powerpc64-*linux*)
4332 LD="${LD-ld} -m elf32ppclinux"
4333 ;;
4334 s390x-*linux*)
4335 LD="${LD-ld} -m elf_s390"
4336 ;;
4337 sparc64-*linux*)
4338 LD="${LD-ld} -m elf32_sparc"
4339 ;;
4340 esac
4341 ;;
4342 *64-bit*)
4343 case $host in
4344 x86_64-*linux*)
4345 LD="${LD-ld} -m elf_x86_64"
4346 ;;
4347 ppc*-*linux*|powerpc*-*linux*)
4348 LD="${LD-ld} -m elf64ppc"
4349 ;;
4350 s390*-*linux*)
4351 LD="${LD-ld} -m elf64_s390"
4352 ;;
4353 sparc*-*linux*)
4354 LD="${LD-ld} -m elf64_sparc"
4355 ;;
4356 esac
4357 ;;
4358 esac
4359 fi
4360 rm -rf conftest*
4361 ;;
4362
4363 *-*-sco3.2v5*)
4364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4365 SAVE_CFLAGS="$CFLAGS"
4366 CFLAGS="$CFLAGS -belf"
4367 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4368 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4369 if test "${lt_cv_cc_needs_belf+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 else
4372 ac_ext=c
4373 ac_cpp='$CPP $CPPFLAGS'
4374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4377
4378 cat >conftest.$ac_ext <<_ACEOF
4379 /* confdefs.h. */
4380 _ACEOF
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4384
4385 int
4386 main ()
4387 {
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 rm -f conftest.$ac_objext conftest$ac_exeext
4394 if { (ac_try="$ac_link"
4395 case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398 esac
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_link") 2>conftest.er1
4401 ac_status=$?
4402 grep -v '^ *+' conftest.er1 >conftest.err
4403 rm -f conftest.er1
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } && {
4407 test -z "$ac_c_werror_flag" ||
4408 test ! -s conftest.err
4409 } && test -s conftest$ac_exeext &&
4410 $as_test_x conftest$ac_exeext; then
4411 lt_cv_cc_needs_belf=yes
4412 else
4413 echo "$as_me: failed program was:" >&5
4414 sed 's/^/| /' conftest.$ac_ext >&5
4415
4416 lt_cv_cc_needs_belf=no
4417 fi
4418
4419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4420 conftest$ac_exeext conftest.$ac_ext
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426
4427 fi
4428 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4429 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4430 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4431 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4432 CFLAGS="$SAVE_CFLAGS"
4433 fi
4434 ;;
4435 sparc*-*solaris*)
4436 # Find out which ABI we are using.
4437 echo 'int i;' > conftest.$ac_ext
4438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4439 (eval $ac_compile) 2>&5
4440 ac_status=$?
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; then
4443 case `/usr/bin/file conftest.o` in
4444 *64-bit*)
4445 case $lt_cv_prog_gnu_ld in
4446 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4447 *) LD="${LD-ld} -64" ;;
4448 esac
4449 ;;
4450 esac
4451 fi
4452 rm -rf conftest*
4453 ;;
4454
4455
4456 esac
4457
4458 need_locks="$enable_libtool_lock"
4459
4460
4461 ac_ext=c
4462 ac_cpp='$CPP $CPPFLAGS'
4463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4466 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4467 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4468 # On Suns, sometimes $CPP names a directory.
4469 if test -n "$CPP" && test -d "$CPP"; then
4470 CPP=
4471 fi
4472 if test -z "$CPP"; then
4473 if test "${ac_cv_prog_CPP+set}" = set; then
4474 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 else
4476 # Double quotes because CPP needs to be expanded
4477 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4478 do
4479 ac_preproc_ok=false
4480 for ac_c_preproc_warn_flag in '' yes
4481 do
4482 # Use a header file that comes with gcc, so configuring glibc
4483 # with a fresh cross-compiler works.
4484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485 # <limits.h> exists even on freestanding compilers.
4486 # On the NeXT, cc -E runs the code through the compiler's parser,
4487 # not just through cpp. "Syntax error" is here to catch this case.
4488 cat >conftest.$ac_ext <<_ACEOF
4489 /* confdefs.h. */
4490 _ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4494 #ifdef __STDC__
4495 # include <limits.h>
4496 #else
4497 # include <assert.h>
4498 #endif
4499 Syntax error
4500 _ACEOF
4501 if { (ac_try="$ac_cpp conftest.$ac_ext"
4502 case "(($ac_try" in
4503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504 *) ac_try_echo=$ac_try;;
4505 esac
4506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4508 ac_status=$?
4509 grep -v '^ *+' conftest.er1 >conftest.err
4510 rm -f conftest.er1
4511 cat conftest.err >&5
4512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4513 (exit $ac_status); } >/dev/null && {
4514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4515 test ! -s conftest.err
4516 }; then
4517 :
4518 else
4519 echo "$as_me: failed program was:" >&5
4520 sed 's/^/| /' conftest.$ac_ext >&5
4521
4522 # Broken: fails on valid input.
4523 continue
4524 fi
4525
4526 rm -f conftest.err conftest.$ac_ext
4527
4528 # OK, works on sane cases. Now check whether nonexistent headers
4529 # can be detected and how.
4530 cat >conftest.$ac_ext <<_ACEOF
4531 /* confdefs.h. */
4532 _ACEOF
4533 cat confdefs.h >>conftest.$ac_ext
4534 cat >>conftest.$ac_ext <<_ACEOF
4535 /* end confdefs.h. */
4536 #include <ac_nonexistent.h>
4537 _ACEOF
4538 if { (ac_try="$ac_cpp conftest.$ac_ext"
4539 case "(($ac_try" in
4540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541 *) ac_try_echo=$ac_try;;
4542 esac
4543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545 ac_status=$?
4546 grep -v '^ *+' conftest.er1 >conftest.err
4547 rm -f conftest.er1
4548 cat conftest.err >&5
4549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4550 (exit $ac_status); } >/dev/null && {
4551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4552 test ! -s conftest.err
4553 }; then
4554 # Broken: success on invalid input.
4555 continue
4556 else
4557 echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 # Passes both tests.
4561 ac_preproc_ok=:
4562 break
4563 fi
4564
4565 rm -f conftest.err conftest.$ac_ext
4566
4567 done
4568 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4569 rm -f conftest.err conftest.$ac_ext
4570 if $ac_preproc_ok; then
4571 break
4572 fi
4573
4574 done
4575 ac_cv_prog_CPP=$CPP
4576
4577 fi
4578 CPP=$ac_cv_prog_CPP
4579 else
4580 ac_cv_prog_CPP=$CPP
4581 fi
4582 { echo "$as_me:$LINENO: result: $CPP" >&5
4583 echo "${ECHO_T}$CPP" >&6; }
4584 ac_preproc_ok=false
4585 for ac_c_preproc_warn_flag in '' yes
4586 do
4587 # Use a header file that comes with gcc, so configuring glibc
4588 # with a fresh cross-compiler works.
4589 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4590 # <limits.h> exists even on freestanding compilers.
4591 # On the NeXT, cc -E runs the code through the compiler's parser,
4592 # not just through cpp. "Syntax error" is here to catch this case.
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h. */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 #ifdef __STDC__
4600 # include <limits.h>
4601 #else
4602 # include <assert.h>
4603 #endif
4604 Syntax error
4605 _ACEOF
4606 if { (ac_try="$ac_cpp conftest.$ac_ext"
4607 case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } >/dev/null && {
4619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 }; then
4622 :
4623 else
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 # Broken: fails on valid input.
4628 continue
4629 fi
4630
4631 rm -f conftest.err conftest.$ac_ext
4632
4633 # OK, works on sane cases. Now check whether nonexistent headers
4634 # can be detected and how.
4635 cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h. */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h. */
4641 #include <ac_nonexistent.h>
4642 _ACEOF
4643 if { (ac_try="$ac_cpp conftest.$ac_ext"
4644 case "(($ac_try" in
4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4646 *) ac_try_echo=$ac_try;;
4647 esac
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4650 ac_status=$?
4651 grep -v '^ *+' conftest.er1 >conftest.err
4652 rm -f conftest.er1
4653 cat conftest.err >&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } >/dev/null && {
4656 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4657 test ! -s conftest.err
4658 }; then
4659 # Broken: success on invalid input.
4660 continue
4661 else
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4664
4665 # Passes both tests.
4666 ac_preproc_ok=:
4667 break
4668 fi
4669
4670 rm -f conftest.err conftest.$ac_ext
4671
4672 done
4673 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4674 rm -f conftest.err conftest.$ac_ext
4675 if $ac_preproc_ok; then
4676 :
4677 else
4678 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4679 See \`config.log' for more details." >&5
4680 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4681 See \`config.log' for more details." >&2;}
4682 { (exit 1); exit 1; }; }
4683 fi
4684
4685 ac_ext=c
4686 ac_cpp='$CPP $CPPFLAGS'
4687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4690
4691
4692 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4693 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4694 if test "${ac_cv_header_stdc+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4696 else
4697 cat >conftest.$ac_ext <<_ACEOF
4698 /* confdefs.h. */
4699 _ACEOF
4700 cat confdefs.h >>conftest.$ac_ext
4701 cat >>conftest.$ac_ext <<_ACEOF
4702 /* end confdefs.h. */
4703 #include <stdlib.h>
4704 #include <stdarg.h>
4705 #include <string.h>
4706 #include <float.h>
4707
4708 int
4709 main ()
4710 {
4711
4712 ;
4713 return 0;
4714 }
4715 _ACEOF
4716 rm -f conftest.$ac_objext
4717 if { (ac_try="$ac_compile"
4718 case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721 esac
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_compile") 2>conftest.er1
4724 ac_status=$?
4725 grep -v '^ *+' conftest.er1 >conftest.err
4726 rm -f conftest.er1
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } && {
4730 test -z "$ac_c_werror_flag" ||
4731 test ! -s conftest.err
4732 } && test -s conftest.$ac_objext; then
4733 ac_cv_header_stdc=yes
4734 else
4735 echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738 ac_cv_header_stdc=no
4739 fi
4740
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742
4743 if test $ac_cv_header_stdc = yes; then
4744 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4745 cat >conftest.$ac_ext <<_ACEOF
4746 /* confdefs.h. */
4747 _ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4751 #include <string.h>
4752
4753 _ACEOF
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "memchr" >/dev/null 2>&1; then
4756 :
4757 else
4758 ac_cv_header_stdc=no
4759 fi
4760 rm -f conftest*
4761
4762 fi
4763
4764 if test $ac_cv_header_stdc = yes; then
4765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4766 cat >conftest.$ac_ext <<_ACEOF
4767 /* confdefs.h. */
4768 _ACEOF
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4772 #include <stdlib.h>
4773
4774 _ACEOF
4775 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4776 $EGREP "free" >/dev/null 2>&1; then
4777 :
4778 else
4779 ac_cv_header_stdc=no
4780 fi
4781 rm -f conftest*
4782
4783 fi
4784
4785 if test $ac_cv_header_stdc = yes; then
4786 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4787 if test "$cross_compiling" = yes; then
4788 :
4789 else
4790 cat >conftest.$ac_ext <<_ACEOF
4791 /* confdefs.h. */
4792 _ACEOF
4793 cat confdefs.h >>conftest.$ac_ext
4794 cat >>conftest.$ac_ext <<_ACEOF
4795 /* end confdefs.h. */
4796 #include <ctype.h>
4797 #include <stdlib.h>
4798 #if ((' ' & 0x0FF) == 0x020)
4799 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4800 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4801 #else
4802 # define ISLOWER(c) \
4803 (('a' <= (c) && (c) <= 'i') \
4804 || ('j' <= (c) && (c) <= 'r') \
4805 || ('s' <= (c) && (c) <= 'z'))
4806 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4807 #endif
4808
4809 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4810 int
4811 main ()
4812 {
4813 int i;
4814 for (i = 0; i < 256; i++)
4815 if (XOR (islower (i), ISLOWER (i))
4816 || toupper (i) != TOUPPER (i))
4817 return 2;
4818 return 0;
4819 }
4820 _ACEOF
4821 rm -f conftest$ac_exeext
4822 if { (ac_try="$ac_link"
4823 case "(($ac_try" in
4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4825 *) ac_try_echo=$ac_try;;
4826 esac
4827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4828 (eval "$ac_link") 2>&5
4829 ac_status=$?
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4832 { (case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_try") 2>&5
4838 ac_status=$?
4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4840 (exit $ac_status); }; }; then
4841 :
4842 else
4843 echo "$as_me: program exited with status $ac_status" >&5
4844 echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 ( exit $ac_status )
4848 ac_cv_header_stdc=no
4849 fi
4850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4851 fi
4852
4853
4854 fi
4855 fi
4856 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4857 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4858 if test $ac_cv_header_stdc = yes; then
4859
4860 cat >>confdefs.h <<\_ACEOF
4861 #define STDC_HEADERS 1
4862 _ACEOF
4863
4864 fi
4865
4866 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4877 inttypes.h stdint.h unistd.h
4878 do
4879 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4883 echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885 cat >conftest.$ac_ext <<_ACEOF
4886 /* confdefs.h. */
4887 _ACEOF
4888 cat confdefs.h >>conftest.$ac_ext
4889 cat >>conftest.$ac_ext <<_ACEOF
4890 /* end confdefs.h. */
4891 $ac_includes_default
4892
4893 #include <$ac_header>
4894 _ACEOF
4895 rm -f conftest.$ac_objext
4896 if { (ac_try="$ac_compile"
4897 case "(($ac_try" in
4898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4899 *) ac_try_echo=$ac_try;;
4900 esac
4901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4902 (eval "$ac_compile") 2>conftest.er1
4903 ac_status=$?
4904 grep -v '^ *+' conftest.er1 >conftest.err
4905 rm -f conftest.er1
4906 cat conftest.err >&5
4907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4908 (exit $ac_status); } && {
4909 test -z "$ac_c_werror_flag" ||
4910 test ! -s conftest.err
4911 } && test -s conftest.$ac_objext; then
4912 eval "$as_ac_Header=yes"
4913 else
4914 echo "$as_me: failed program was:" >&5
4915 sed 's/^/| /' conftest.$ac_ext >&5
4916
4917 eval "$as_ac_Header=no"
4918 fi
4919
4920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 fi
4922 ac_res=`eval echo '${'$as_ac_Header'}'`
4923 { echo "$as_me:$LINENO: result: $ac_res" >&5
4924 echo "${ECHO_T}$ac_res" >&6; }
4925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4926 cat >>confdefs.h <<_ACEOF
4927 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4928 _ACEOF
4929
4930 fi
4931
4932 done
4933
4934
4935
4936 for ac_header in dlfcn.h
4937 do
4938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 fi
4945 ac_res=`eval echo '${'$as_ac_Header'}'`
4946 { echo "$as_me:$LINENO: result: $ac_res" >&5
4947 echo "${ECHO_T}$ac_res" >&6; }
4948 else
4949 # Is the header compilable?
4950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
4951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4952 cat >conftest.$ac_ext <<_ACEOF
4953 /* confdefs.h. */
4954 _ACEOF
4955 cat confdefs.h >>conftest.$ac_ext
4956 cat >>conftest.$ac_ext <<_ACEOF
4957 /* end confdefs.h. */
4958 $ac_includes_default
4959 #include <$ac_header>
4960 _ACEOF
4961 rm -f conftest.$ac_objext
4962 if { (ac_try="$ac_compile"
4963 case "(($ac_try" in
4964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4965 *) ac_try_echo=$ac_try;;
4966 esac
4967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4968 (eval "$ac_compile") 2>conftest.er1
4969 ac_status=$?
4970 grep -v '^ *+' conftest.er1 >conftest.err
4971 rm -f conftest.er1
4972 cat conftest.err >&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); } && {
4975 test -z "$ac_c_werror_flag" ||
4976 test ! -s conftest.err
4977 } && test -s conftest.$ac_objext; then
4978 ac_header_compiler=yes
4979 else
4980 echo "$as_me: failed program was:" >&5
4981 sed 's/^/| /' conftest.$ac_ext >&5
4982
4983 ac_header_compiler=no
4984 fi
4985
4986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4988 echo "${ECHO_T}$ac_header_compiler" >&6; }
4989
4990 # Is the header present?
4991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
4992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4993 cat >conftest.$ac_ext <<_ACEOF
4994 /* confdefs.h. */
4995 _ACEOF
4996 cat confdefs.h >>conftest.$ac_ext
4997 cat >>conftest.$ac_ext <<_ACEOF
4998 /* end confdefs.h. */
4999 #include <$ac_header>
5000 _ACEOF
5001 if { (ac_try="$ac_cpp conftest.$ac_ext"
5002 case "(($ac_try" in
5003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5004 *) ac_try_echo=$ac_try;;
5005 esac
5006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5008 ac_status=$?
5009 grep -v '^ *+' conftest.er1 >conftest.err
5010 rm -f conftest.er1
5011 cat conftest.err >&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); } >/dev/null && {
5014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5015 test ! -s conftest.err
5016 }; then
5017 ac_header_preproc=yes
5018 else
5019 echo "$as_me: failed program was:" >&5
5020 sed 's/^/| /' conftest.$ac_ext >&5
5021
5022 ac_header_preproc=no
5023 fi
5024
5025 rm -f conftest.err conftest.$ac_ext
5026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5027 echo "${ECHO_T}$ac_header_preproc" >&6; }
5028
5029 # So? What about this header?
5030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5031 yes:no: )
5032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5036 ac_header_preproc=yes
5037 ;;
5038 no:yes:* )
5039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5051
5052 ;;
5053 esac
5054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5058 else
5059 eval "$as_ac_Header=\$ac_header_preproc"
5060 fi
5061 ac_res=`eval echo '${'$as_ac_Header'}'`
5062 { echo "$as_me:$LINENO: result: $ac_res" >&5
5063 echo "${ECHO_T}$ac_res" >&6; }
5064
5065 fi
5066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5067 cat >>confdefs.h <<_ACEOF
5068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5069 _ACEOF
5070
5071 fi
5072
5073 done
5074
5075 ac_ext=cpp
5076 ac_cpp='$CXXCPP $CPPFLAGS'
5077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5080 if test -z "$CXX"; then
5081 if test -n "$CCC"; then
5082 CXX=$CCC
5083 else
5084 if test -n "$ac_tool_prefix"; then
5085 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5086 do
5087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5091 if test "${ac_cv_prog_CXX+set}" = set; then
5092 echo $ECHO_N "(cached) $ECHO_C" >&6
5093 else
5094 if test -n "$CXX"; then
5095 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5096 else
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098 for as_dir in $PATH
5099 do
5100 IFS=$as_save_IFS
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
5113 fi
5114 CXX=$ac_cv_prog_CXX
5115 if test -n "$CXX"; then
5116 { echo "$as_me:$LINENO: result: $CXX" >&5
5117 echo "${ECHO_T}$CXX" >&6; }
5118 else
5119 { echo "$as_me:$LINENO: result: no" >&5
5120 echo "${ECHO_T}no" >&6; }
5121 fi
5122
5123
5124 test -n "$CXX" && break
5125 done
5126 fi
5127 if test -z "$CXX"; then
5128 ac_ct_CXX=$CXX
5129 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5130 do
5131 # Extract the first word of "$ac_prog", so it can be a program name with args.
5132 set dummy $ac_prog; ac_word=$2
5133 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5134 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5135 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5136 echo $ECHO_N "(cached) $ECHO_C" >&6
5137 else
5138 if test -n "$ac_ct_CXX"; then
5139 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5140 else
5141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5142 for as_dir in $PATH
5143 do
5144 IFS=$as_save_IFS
5145 test -z "$as_dir" && as_dir=.
5146 for ac_exec_ext in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_prog_ac_ct_CXX="$ac_prog"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5150 break 2
5151 fi
5152 done
5153 done
5154 IFS=$as_save_IFS
5155
5156 fi
5157 fi
5158 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5159 if test -n "$ac_ct_CXX"; then
5160 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5161 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5162 else
5163 { echo "$as_me:$LINENO: result: no" >&5
5164 echo "${ECHO_T}no" >&6; }
5165 fi
5166
5167
5168 test -n "$ac_ct_CXX" && break
5169 done
5170
5171 if test "x$ac_ct_CXX" = x; then
5172 CXX="g++"
5173 else
5174 case $cross_compiling:$ac_tool_warned in
5175 yes:)
5176 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5177 whose name does not start with the host triplet. If you think this
5178 configuration is useful to you, please write to autoconf@gnu.org." >&5
5179 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5180 whose name does not start with the host triplet. If you think this
5181 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5182 ac_tool_warned=yes ;;
5183 esac
5184 CXX=$ac_ct_CXX
5185 fi
5186 fi
5187
5188 fi
5189 fi
5190 # Provide some information about the compiler.
5191 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5192 ac_compiler=`set X $ac_compile; echo $2`
5193 { (ac_try="$ac_compiler --version >&5"
5194 case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5199 (eval "$ac_compiler --version >&5") 2>&5
5200 ac_status=$?
5201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5202 (exit $ac_status); }
5203 { (ac_try="$ac_compiler -v >&5"
5204 case "(($ac_try" in
5205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5206 *) ac_try_echo=$ac_try;;
5207 esac
5208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5209 (eval "$ac_compiler -v >&5") 2>&5
5210 ac_status=$?
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); }
5213 { (ac_try="$ac_compiler -V >&5"
5214 case "(($ac_try" in
5215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216 *) ac_try_echo=$ac_try;;
5217 esac
5218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219 (eval "$ac_compiler -V >&5") 2>&5
5220 ac_status=$?
5221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); }
5223
5224 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5225 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5226 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5227 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 else
5229 cat >conftest.$ac_ext <<_ACEOF
5230 /* confdefs.h. */
5231 _ACEOF
5232 cat confdefs.h >>conftest.$ac_ext
5233 cat >>conftest.$ac_ext <<_ACEOF
5234 /* end confdefs.h. */
5235
5236 int
5237 main ()
5238 {
5239 #ifndef __GNUC__
5240 choke me
5241 #endif
5242
5243 ;
5244 return 0;
5245 }
5246 _ACEOF
5247 rm -f conftest.$ac_objext
5248 if { (ac_try="$ac_compile"
5249 case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_compile") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_cxx_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest.$ac_objext; then
5264 ac_compiler_gnu=yes
5265 else
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 ac_compiler_gnu=no
5270 fi
5271
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5273 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5274
5275 fi
5276 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5277 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5278 GXX=`test $ac_compiler_gnu = yes && echo yes`
5279 ac_test_CXXFLAGS=${CXXFLAGS+set}
5280 ac_save_CXXFLAGS=$CXXFLAGS
5281 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5282 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5283 if test "${ac_cv_prog_cxx_g+set}" = set; then
5284 echo $ECHO_N "(cached) $ECHO_C" >&6
5285 else
5286 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5287 ac_cxx_werror_flag=yes
5288 ac_cv_prog_cxx_g=no
5289 CXXFLAGS="-g"
5290 cat >conftest.$ac_ext <<_ACEOF
5291 /* confdefs.h. */
5292 _ACEOF
5293 cat confdefs.h >>conftest.$ac_ext
5294 cat >>conftest.$ac_ext <<_ACEOF
5295 /* end confdefs.h. */
5296
5297 int
5298 main ()
5299 {
5300
5301 ;
5302 return 0;
5303 }
5304 _ACEOF
5305 rm -f conftest.$ac_objext
5306 if { (ac_try="$ac_compile"
5307 case "(($ac_try" in
5308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5309 *) ac_try_echo=$ac_try;;
5310 esac
5311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5312 (eval "$ac_compile") 2>conftest.er1
5313 ac_status=$?
5314 grep -v '^ *+' conftest.er1 >conftest.err
5315 rm -f conftest.er1
5316 cat conftest.err >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); } && {
5319 test -z "$ac_cxx_werror_flag" ||
5320 test ! -s conftest.err
5321 } && test -s conftest.$ac_objext; then
5322 ac_cv_prog_cxx_g=yes
5323 else
5324 echo "$as_me: failed program was:" >&5
5325 sed 's/^/| /' conftest.$ac_ext >&5
5326
5327 CXXFLAGS=""
5328 cat >conftest.$ac_ext <<_ACEOF
5329 /* confdefs.h. */
5330 _ACEOF
5331 cat confdefs.h >>conftest.$ac_ext
5332 cat >>conftest.$ac_ext <<_ACEOF
5333 /* end confdefs.h. */
5334
5335 int
5336 main ()
5337 {
5338
5339 ;
5340 return 0;
5341 }
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (ac_try="$ac_compile"
5345 case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348 esac
5349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5350 (eval "$ac_compile") 2>conftest.er1
5351 ac_status=$?
5352 grep -v '^ *+' conftest.er1 >conftest.err
5353 rm -f conftest.er1
5354 cat conftest.err >&5
5355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356 (exit $ac_status); } && {
5357 test -z "$ac_cxx_werror_flag" ||
5358 test ! -s conftest.err
5359 } && test -s conftest.$ac_objext; then
5360 :
5361 else
5362 echo "$as_me: failed program was:" >&5
5363 sed 's/^/| /' conftest.$ac_ext >&5
5364
5365 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5366 CXXFLAGS="-g"
5367 cat >conftest.$ac_ext <<_ACEOF
5368 /* confdefs.h. */
5369 _ACEOF
5370 cat confdefs.h >>conftest.$ac_ext
5371 cat >>conftest.$ac_ext <<_ACEOF
5372 /* end confdefs.h. */
5373
5374 int
5375 main ()
5376 {
5377
5378 ;
5379 return 0;
5380 }
5381 _ACEOF
5382 rm -f conftest.$ac_objext
5383 if { (ac_try="$ac_compile"
5384 case "(($ac_try" in
5385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5386 *) ac_try_echo=$ac_try;;
5387 esac
5388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5389 (eval "$ac_compile") 2>conftest.er1
5390 ac_status=$?
5391 grep -v '^ *+' conftest.er1 >conftest.err
5392 rm -f conftest.er1
5393 cat conftest.err >&5
5394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395 (exit $ac_status); } && {
5396 test -z "$ac_cxx_werror_flag" ||
5397 test ! -s conftest.err
5398 } && test -s conftest.$ac_objext; then
5399 ac_cv_prog_cxx_g=yes
5400 else
5401 echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404
5405 fi
5406
5407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 fi
5409
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 fi
5412
5413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5414 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5415 fi
5416 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5417 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5418 if test "$ac_test_CXXFLAGS" = set; then
5419 CXXFLAGS=$ac_save_CXXFLAGS
5420 elif test $ac_cv_prog_cxx_g = yes; then
5421 if test "$GXX" = yes; then
5422 CXXFLAGS="-g -O2"
5423 else
5424 CXXFLAGS="-g"
5425 fi
5426 else
5427 if test "$GXX" = yes; then
5428 CXXFLAGS="-O2"
5429 else
5430 CXXFLAGS=
5431 fi
5432 fi
5433 ac_ext=cpp
5434 ac_cpp='$CXXCPP $CPPFLAGS'
5435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5438
5439 depcc="$CXX" am_compiler_list=
5440
5441 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5442 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5443 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5445 else
5446 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5447 # We make a subdir and do the tests there. Otherwise we can end up
5448 # making bogus files that we don't know about and never remove. For
5449 # instance it was reported that on HP-UX the gcc test will end up
5450 # making a dummy file named `D' -- because `-MD' means `put the output
5451 # in D'.
5452 mkdir conftest.dir
5453 # Copy depcomp to subdir because otherwise we won't find it if we're
5454 # using a relative directory.
5455 cp "$am_depcomp" conftest.dir
5456 cd conftest.dir
5457 # We will build objects and dependencies in a subdirectory because
5458 # it helps to detect inapplicable dependency modes. For instance
5459 # both Tru64's cc and ICC support -MD to output dependencies as a
5460 # side effect of compilation, but ICC will put the dependencies in
5461 # the current directory while Tru64 will put them in the object
5462 # directory.
5463 mkdir sub
5464
5465 am_cv_CXX_dependencies_compiler_type=none
5466 if test "$am_compiler_list" = ""; then
5467 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5468 fi
5469 for depmode in $am_compiler_list; do
5470 # Setup a source with many dependencies, because some compilers
5471 # like to wrap large dependency lists on column 80 (with \), and
5472 # we should not choose a depcomp mode which is confused by this.
5473 #
5474 # We need to recreate these files for each test, as the compiler may
5475 # overwrite some of them when testing with obscure command lines.
5476 # This happens at least with the AIX C compiler.
5477 : > sub/conftest.c
5478 for i in 1 2 3 4 5 6; do
5479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5480 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5481 # Solaris 8's {/usr,}/bin/sh.
5482 touch sub/conftst$i.h
5483 done
5484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5485
5486 case $depmode in
5487 nosideeffect)
5488 # after this tag, mechanisms are not by side-effect, so they'll
5489 # only be used when explicitly requested
5490 if test "x$enable_dependency_tracking" = xyes; then
5491 continue
5492 else
5493 break
5494 fi
5495 ;;
5496 none) break ;;
5497 esac
5498 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5499 # mode. It turns out that the SunPro C++ compiler does not properly
5500 # handle `-M -o', and we need to detect this.
5501 if depmode=$depmode \
5502 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5503 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5504 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5505 >/dev/null 2>conftest.err &&
5506 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5507 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5508 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5509 # icc doesn't choke on unknown options, it will just issue warnings
5510 # or remarks (even with -Werror). So we grep stderr for any message
5511 # that says an option was ignored or not supported.
5512 # When given -MP, icc 7.0 and 7.1 complain thusly:
5513 # icc: Command line warning: ignoring option '-M'; no argument required
5514 # The diagnosis changed in icc 8.0:
5515 # icc: Command line remark: option '-MP' not supported
5516 if (grep 'ignoring option' conftest.err ||
5517 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5518 am_cv_CXX_dependencies_compiler_type=$depmode
5519 break
5520 fi
5521 fi
5522 done
5523
5524 cd ..
5525 rm -rf conftest.dir
5526 else
5527 am_cv_CXX_dependencies_compiler_type=none
5528 fi
5529
5530 fi
5531 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5532 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5533 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5534
5535
5536
5537 if
5538 test "x$enable_dependency_tracking" != xno \
5539 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5540 am__fastdepCXX_TRUE=
5541 am__fastdepCXX_FALSE='#'
5542 else
5543 am__fastdepCXX_TRUE='#'
5544 am__fastdepCXX_FALSE=
5545 fi
5546
5547
5548
5549
5550 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5551 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5552 (test "X$CXX" != "Xg++"))) ; then
5553 ac_ext=cpp
5554 ac_cpp='$CXXCPP $CPPFLAGS'
5555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5558 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5559 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5560 if test -z "$CXXCPP"; then
5561 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
5563 else
5564 # Double quotes because CXXCPP needs to be expanded
5565 for CXXCPP in "$CXX -E" "/lib/cpp"
5566 do
5567 ac_preproc_ok=false
5568 for ac_cxx_preproc_warn_flag in '' yes
5569 do
5570 # Use a header file that comes with gcc, so configuring glibc
5571 # with a fresh cross-compiler works.
5572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5573 # <limits.h> exists even on freestanding compilers.
5574 # On the NeXT, cc -E runs the code through the compiler's parser,
5575 # not just through cpp. "Syntax error" is here to catch this case.
5576 cat >conftest.$ac_ext <<_ACEOF
5577 /* confdefs.h. */
5578 _ACEOF
5579 cat confdefs.h >>conftest.$ac_ext
5580 cat >>conftest.$ac_ext <<_ACEOF
5581 /* end confdefs.h. */
5582 #ifdef __STDC__
5583 # include <limits.h>
5584 #else
5585 # include <assert.h>
5586 #endif
5587 Syntax error
5588 _ACEOF
5589 if { (ac_try="$ac_cpp conftest.$ac_ext"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } >/dev/null && {
5602 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5603 test ! -s conftest.err
5604 }; then
5605 :
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610 # Broken: fails on valid input.
5611 continue
5612 fi
5613
5614 rm -f conftest.err conftest.$ac_ext
5615
5616 # OK, works on sane cases. Now check whether nonexistent headers
5617 # can be detected and how.
5618 cat >conftest.$ac_ext <<_ACEOF
5619 /* confdefs.h. */
5620 _ACEOF
5621 cat confdefs.h >>conftest.$ac_ext
5622 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */
5624 #include <ac_nonexistent.h>
5625 _ACEOF
5626 if { (ac_try="$ac_cpp conftest.$ac_ext"
5627 case "(($ac_try" in
5628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5629 *) ac_try_echo=$ac_try;;
5630 esac
5631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5632 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5633 ac_status=$?
5634 grep -v '^ *+' conftest.er1 >conftest.err
5635 rm -f conftest.er1
5636 cat conftest.err >&5
5637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638 (exit $ac_status); } >/dev/null && {
5639 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5640 test ! -s conftest.err
5641 }; then
5642 # Broken: success on invalid input.
5643 continue
5644 else
5645 echo "$as_me: failed program was:" >&5
5646 sed 's/^/| /' conftest.$ac_ext >&5
5647
5648 # Passes both tests.
5649 ac_preproc_ok=:
5650 break
5651 fi
5652
5653 rm -f conftest.err conftest.$ac_ext
5654
5655 done
5656 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5657 rm -f conftest.err conftest.$ac_ext
5658 if $ac_preproc_ok; then
5659 break
5660 fi
5661
5662 done
5663 ac_cv_prog_CXXCPP=$CXXCPP
5664
5665 fi
5666 CXXCPP=$ac_cv_prog_CXXCPP
5667 else
5668 ac_cv_prog_CXXCPP=$CXXCPP
5669 fi
5670 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5671 echo "${ECHO_T}$CXXCPP" >&6; }
5672 ac_preproc_ok=false
5673 for ac_cxx_preproc_warn_flag in '' yes
5674 do
5675 # Use a header file that comes with gcc, so configuring glibc
5676 # with a fresh cross-compiler works.
5677 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5678 # <limits.h> exists even on freestanding compilers.
5679 # On the NeXT, cc -E runs the code through the compiler's parser,
5680 # not just through cpp. "Syntax error" is here to catch this case.
5681 cat >conftest.$ac_ext <<_ACEOF
5682 /* confdefs.h. */
5683 _ACEOF
5684 cat confdefs.h >>conftest.$ac_ext
5685 cat >>conftest.$ac_ext <<_ACEOF
5686 /* end confdefs.h. */
5687 #ifdef __STDC__
5688 # include <limits.h>
5689 #else
5690 # include <assert.h>
5691 #endif
5692 Syntax error
5693 _ACEOF
5694 if { (ac_try="$ac_cpp conftest.$ac_ext"
5695 case "(($ac_try" in
5696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5697 *) ac_try_echo=$ac_try;;
5698 esac
5699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5701 ac_status=$?
5702 grep -v '^ *+' conftest.er1 >conftest.err
5703 rm -f conftest.er1
5704 cat conftest.err >&5
5705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706 (exit $ac_status); } >/dev/null && {
5707 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5708 test ! -s conftest.err
5709 }; then
5710 :
5711 else
5712 echo "$as_me: failed program was:" >&5
5713 sed 's/^/| /' conftest.$ac_ext >&5
5714
5715 # Broken: fails on valid input.
5716 continue
5717 fi
5718
5719 rm -f conftest.err conftest.$ac_ext
5720
5721 # OK, works on sane cases. Now check whether nonexistent headers
5722 # can be detected and how.
5723 cat >conftest.$ac_ext <<_ACEOF
5724 /* confdefs.h. */
5725 _ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #include <ac_nonexistent.h>
5730 _ACEOF
5731 if { (ac_try="$ac_cpp conftest.$ac_ext"
5732 case "(($ac_try" in
5733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5734 *) ac_try_echo=$ac_try;;
5735 esac
5736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5738 ac_status=$?
5739 grep -v '^ *+' conftest.er1 >conftest.err
5740 rm -f conftest.er1
5741 cat conftest.err >&5
5742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5743 (exit $ac_status); } >/dev/null && {
5744 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5745 test ! -s conftest.err
5746 }; then
5747 # Broken: success on invalid input.
5748 continue
5749 else
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5752
5753 # Passes both tests.
5754 ac_preproc_ok=:
5755 break
5756 fi
5757
5758 rm -f conftest.err conftest.$ac_ext
5759
5760 done
5761 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5762 rm -f conftest.err conftest.$ac_ext
5763 if $ac_preproc_ok; then
5764 :
5765 else
5766 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5767 See \`config.log' for more details." >&5
5768 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5769 See \`config.log' for more details." >&2;}
5770 { (exit 1); exit 1; }; }
5771 fi
5772
5773 ac_ext=cpp
5774 ac_cpp='$CXXCPP $CPPFLAGS'
5775 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5776 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5777 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5778
5779 fi
5780
5781
5782 ac_ext=f
5783 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5784 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5786 if test -n "$ac_tool_prefix"; then
5787 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5788 do
5789 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5790 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5791 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5793 if test "${ac_cv_prog_F77+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5795 else
5796 if test -n "$F77"; then
5797 ac_cv_prog_F77="$F77" # Let the user override the test.
5798 else
5799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 for as_dir in $PATH
5801 do
5802 IFS=$as_save_IFS
5803 test -z "$as_dir" && as_dir=.
5804 for ac_exec_ext in '' $ac_executable_extensions; do
5805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5806 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5808 break 2
5809 fi
5810 done
5811 done
5812 IFS=$as_save_IFS
5813
5814 fi
5815 fi
5816 F77=$ac_cv_prog_F77
5817 if test -n "$F77"; then
5818 { echo "$as_me:$LINENO: result: $F77" >&5
5819 echo "${ECHO_T}$F77" >&6; }
5820 else
5821 { echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6; }
5823 fi
5824
5825
5826 test -n "$F77" && break
5827 done
5828 fi
5829 if test -z "$F77"; then
5830 ac_ct_F77=$F77
5831 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
5832 do
5833 # Extract the first word of "$ac_prog", so it can be a program name with args.
5834 set dummy $ac_prog; ac_word=$2
5835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5837 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5838 echo $ECHO_N "(cached) $ECHO_C" >&6
5839 else
5840 if test -n "$ac_ct_F77"; then
5841 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5842 else
5843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 for as_dir in $PATH
5845 do
5846 IFS=$as_save_IFS
5847 test -z "$as_dir" && as_dir=.
5848 for ac_exec_ext in '' $ac_executable_extensions; do
5849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850 ac_cv_prog_ac_ct_F77="$ac_prog"
5851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 break 2
5853 fi
5854 done
5855 done
5856 IFS=$as_save_IFS
5857
5858 fi
5859 fi
5860 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5861 if test -n "$ac_ct_F77"; then
5862 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5863 echo "${ECHO_T}$ac_ct_F77" >&6; }
5864 else
5865 { echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6; }
5867 fi
5868
5869
5870 test -n "$ac_ct_F77" && break
5871 done
5872
5873 if test "x$ac_ct_F77" = x; then
5874 F77=""
5875 else
5876 case $cross_compiling:$ac_tool_warned in
5877 yes:)
5878 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5879 whose name does not start with the host triplet. If you think this
5880 configuration is useful to you, please write to autoconf@gnu.org." >&5
5881 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5882 whose name does not start with the host triplet. If you think this
5883 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5884 ac_tool_warned=yes ;;
5885 esac
5886 F77=$ac_ct_F77
5887 fi
5888 fi
5889
5890
5891 # Provide some information about the compiler.
5892 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
5893 ac_compiler=`set X $ac_compile; echo $2`
5894 { (ac_try="$ac_compiler --version >&5"
5895 case "(($ac_try" in
5896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5898 esac
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_compiler --version >&5") 2>&5
5901 ac_status=$?
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); }
5904 { (ac_try="$ac_compiler -v >&5"
5905 case "(($ac_try" in
5906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5907 *) ac_try_echo=$ac_try;;
5908 esac
5909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5910 (eval "$ac_compiler -v >&5") 2>&5
5911 ac_status=$?
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); }
5914 { (ac_try="$ac_compiler -V >&5"
5915 case "(($ac_try" in
5916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5918 esac
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_compiler -V >&5") 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }
5924 rm -f a.out
5925
5926 # If we don't use `.F' as extension, the preprocessor is not run on the
5927 # input file. (Note that this only needs to work for GNU compilers.)
5928 ac_save_ext=$ac_ext
5929 ac_ext=F
5930 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5931 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
5932 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935 cat >conftest.$ac_ext <<_ACEOF
5936 program main
5937 #ifndef __GNUC__
5938 choke me
5939 #endif
5940
5941 end
5942 _ACEOF
5943 rm -f conftest.$ac_objext
5944 if { (ac_try="$ac_compile"
5945 case "(($ac_try" in
5946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5947 *) ac_try_echo=$ac_try;;
5948 esac
5949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_f77_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5960 ac_compiler_gnu=yes
5961 else
5962 echo "$as_me: failed program was:" >&5
5963 sed 's/^/| /' conftest.$ac_ext >&5
5964
5965 ac_compiler_gnu=no
5966 fi
5967
5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5970
5971 fi
5972 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5973 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
5974 ac_ext=$ac_save_ext
5975 ac_test_FFLAGS=${FFLAGS+set}
5976 ac_save_FFLAGS=$FFLAGS
5977 FFLAGS=
5978 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5979 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
5980 if test "${ac_cv_prog_f77_g+set}" = set; then
5981 echo $ECHO_N "(cached) $ECHO_C" >&6
5982 else
5983 FFLAGS=-g
5984 cat >conftest.$ac_ext <<_ACEOF
5985 program main
5986
5987 end
5988 _ACEOF
5989 rm -f conftest.$ac_objext
5990 if { (ac_try="$ac_compile"
5991 case "(($ac_try" in
5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5993 *) ac_try_echo=$ac_try;;
5994 esac
5995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5996 (eval "$ac_compile") 2>conftest.er1
5997 ac_status=$?
5998 grep -v '^ *+' conftest.er1 >conftest.err
5999 rm -f conftest.er1
6000 cat conftest.err >&5
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); } && {
6003 test -z "$ac_f77_werror_flag" ||
6004 test ! -s conftest.err
6005 } && test -s conftest.$ac_objext; then
6006 ac_cv_prog_f77_g=yes
6007 else
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ac_cv_prog_f77_g=no
6012 fi
6013
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015
6016 fi
6017 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6018 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6019 if test "$ac_test_FFLAGS" = set; then
6020 FFLAGS=$ac_save_FFLAGS
6021 elif test $ac_cv_prog_f77_g = yes; then
6022 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6023 FFLAGS="-g -O2"
6024 else
6025 FFLAGS="-g"
6026 fi
6027 else
6028 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6029 FFLAGS="-O2"
6030 else
6031 FFLAGS=
6032 fi
6033 fi
6034
6035 G77=`test $ac_compiler_gnu = yes && echo yes`
6036 ac_ext=c
6037 ac_cpp='$CPP $CPPFLAGS'
6038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6041
6042
6043
6044 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6045
6046 # find the maximum length of command line arguments
6047 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6048 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6049 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 i=0
6053 teststring="ABCD"
6054
6055 case $build_os in
6056 msdosdjgpp*)
6057 # On DJGPP, this test can blow up pretty badly due to problems in libc
6058 # (any single argument exceeding 2000 bytes causes a buffer overrun
6059 # during glob expansion). Even if it were fixed, the result of this
6060 # check would be larger than it should be.
6061 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6062 ;;
6063
6064 gnu*)
6065 # Under GNU Hurd, this test is not required because there is
6066 # no limit to the length of command line arguments.
6067 # Libtool will interpret -1 as no limit whatsoever
6068 lt_cv_sys_max_cmd_len=-1;
6069 ;;
6070
6071 cygwin* | mingw*)
6072 # On Win9x/ME, this test blows up -- it succeeds, but takes
6073 # about 5 minutes as the teststring grows exponentially.
6074 # Worse, since 9x/ME are not pre-emptively multitasking,
6075 # you end up with a "frozen" computer, even though with patience
6076 # the test eventually succeeds (with a max line length of 256k).
6077 # Instead, let's just punt: use the minimum linelength reported by
6078 # all of the supported platforms: 8192 (on NT/2K/XP).
6079 lt_cv_sys_max_cmd_len=8192;
6080 ;;
6081
6082 amigaos*)
6083 # On AmigaOS with pdksh, this test takes hours, literally.
6084 # So we just punt and use a minimum line length of 8192.
6085 lt_cv_sys_max_cmd_len=8192;
6086 ;;
6087
6088 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6089 # This has been around since 386BSD, at least. Likely further.
6090 if test -x /sbin/sysctl; then
6091 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6092 elif test -x /usr/sbin/sysctl; then
6093 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6094 else
6095 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6096 fi
6097 # And add a safety zone
6098 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6099 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6100 ;;
6101
6102 interix*)
6103 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6104 lt_cv_sys_max_cmd_len=196608
6105 ;;
6106
6107 osf*)
6108 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6109 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6110 # nice to cause kernel panics so lets avoid the loop below.
6111 # First set a reasonable default.
6112 lt_cv_sys_max_cmd_len=16384
6113 #
6114 if test -x /sbin/sysconfig; then
6115 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6116 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6117 esac
6118 fi
6119 ;;
6120 sco3.2v5*)
6121 lt_cv_sys_max_cmd_len=102400
6122 ;;
6123 sysv5* | sco5v6* | sysv4.2uw2*)
6124 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6125 if test -n "$kargmax"; then
6126 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6127 else
6128 lt_cv_sys_max_cmd_len=32768
6129 fi
6130 ;;
6131 *)
6132 # If test is not a shell built-in, we'll probably end up computing a
6133 # maximum length that is only half of the actual maximum length, but
6134 # we can't tell.
6135 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6136 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6137 = "XX$teststring") >/dev/null 2>&1 &&
6138 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6139 lt_cv_sys_max_cmd_len=$new_result &&
6140 test $i != 17 # 1/2 MB should be enough
6141 do
6142 i=`expr $i + 1`
6143 teststring=$teststring$teststring
6144 done
6145 teststring=
6146 # Add a significant safety factor because C++ compilers can tack on massive
6147 # amounts of additional arguments before passing them to the linker.
6148 # It appears as though 1/2 is a usable value.
6149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6150 ;;
6151 esac
6152
6153 fi
6154
6155 if test -n $lt_cv_sys_max_cmd_len ; then
6156 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6157 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6158 else
6159 { echo "$as_me:$LINENO: result: none" >&5
6160 echo "${ECHO_T}none" >&6; }
6161 fi
6162
6163
6164
6165
6166 # Check for command to grab the raw symbol name followed by C symbol from nm.
6167 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6168 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6169 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6170 echo $ECHO_N "(cached) $ECHO_C" >&6
6171 else
6172
6173 # These are sane defaults that work on at least a few old systems.
6174 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6175
6176 # Character class describing NM global symbol codes.
6177 symcode='[BCDEGRST]'
6178
6179 # Regexp to match symbols that can be accessed directly from C.
6180 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6181
6182 # Transform an extracted symbol line into a proper C declaration
6183 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6184
6185 # Transform an extracted symbol line into symbol name and symbol address
6186 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6187
6188 # Define system-specific variables.
6189 case $host_os in
6190 aix*)
6191 symcode='[BCDT]'
6192 ;;
6193 cygwin* | mingw* | pw32*)
6194 symcode='[ABCDGISTW]'
6195 ;;
6196 hpux*) # Its linker distinguishes data from code symbols
6197 if test "$host_cpu" = ia64; then
6198 symcode='[ABCDEGRST]'
6199 fi
6200 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6201 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6202 ;;
6203 linux* | k*bsd*-gnu)
6204 if test "$host_cpu" = ia64; then
6205 symcode='[ABCDGIRSTW]'
6206 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6207 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6208 fi
6209 ;;
6210 irix* | nonstopux*)
6211 symcode='[BCDEGRST]'
6212 ;;
6213 osf*)
6214 symcode='[BCDEGQRST]'
6215 ;;
6216 solaris*)
6217 symcode='[BDRT]'
6218 ;;
6219 sco3.2v5*)
6220 symcode='[DT]'
6221 ;;
6222 sysv4.2uw2*)
6223 symcode='[DT]'
6224 ;;
6225 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6226 symcode='[ABDT]'
6227 ;;
6228 sysv4)
6229 symcode='[DFNSTU]'
6230 ;;
6231 esac
6232
6233 # Handle CRLF in mingw tool chain
6234 opt_cr=
6235 case $build_os in
6236 mingw*)
6237 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6238 ;;
6239 esac
6240
6241 # If we're using GNU nm, then use its standard symbol codes.
6242 case `$NM -V 2>&1` in
6243 *GNU* | *'with BFD'*)
6244 symcode='[ABCDGIRSTW]' ;;
6245 esac
6246
6247 # Try without a prefix undercore, then with it.
6248 for ac_symprfx in "" "_"; do
6249
6250 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6251 symxfrm="\\1 $ac_symprfx\\2 \\2"
6252
6253 # Write the raw and C identifiers.
6254 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6255
6256 # Check to see that the pipe works correctly.
6257 pipe_works=no
6258
6259 rm -f conftest*
6260 cat > conftest.$ac_ext <<EOF
6261 #ifdef __cplusplus
6262 extern "C" {
6263 #endif
6264 char nm_test_var;
6265 void nm_test_func(){}
6266 #ifdef __cplusplus
6267 }
6268 #endif
6269 int main(){nm_test_var='a';nm_test_func();return(0);}
6270 EOF
6271
6272 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6273 (eval $ac_compile) 2>&5
6274 ac_status=$?
6275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6276 (exit $ac_status); }; then
6277 # Now try to grab the symbols.
6278 nlist=conftest.nm
6279 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6280 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6281 ac_status=$?
6282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6283 (exit $ac_status); } && test -s "$nlist"; then
6284 # Try sorting and uniquifying the output.
6285 if sort "$nlist" | uniq > "$nlist"T; then
6286 mv -f "$nlist"T "$nlist"
6287 else
6288 rm -f "$nlist"T
6289 fi
6290
6291 # Make sure that we snagged all the symbols we need.
6292 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6293 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6294 cat <<EOF > conftest.$ac_ext
6295 #ifdef __cplusplus
6296 extern "C" {
6297 #endif
6298
6299 EOF
6300 # Now generate the symbol file.
6301 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6302
6303 cat <<EOF >> conftest.$ac_ext
6304 #if defined (__STDC__) && __STDC__
6305 # define lt_ptr_t void *
6306 #else
6307 # define lt_ptr_t char *
6308 # define const
6309 #endif
6310
6311 /* The mapping between symbol names and symbols. */
6312 const struct {
6313 const char *name;
6314 lt_ptr_t address;
6315 }
6316 lt_preloaded_symbols[] =
6317 {
6318 EOF
6319 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6320 cat <<\EOF >> conftest.$ac_ext
6321 {0, (lt_ptr_t) 0}
6322 };
6323
6324 #ifdef __cplusplus
6325 }
6326 #endif
6327 EOF
6328 # Now try linking the two files.
6329 mv conftest.$ac_objext conftstm.$ac_objext
6330 lt_save_LIBS="$LIBS"
6331 lt_save_CFLAGS="$CFLAGS"
6332 LIBS="conftstm.$ac_objext"
6333 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6335 (eval $ac_link) 2>&5
6336 ac_status=$?
6337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6338 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6339 pipe_works=yes
6340 fi
6341 LIBS="$lt_save_LIBS"
6342 CFLAGS="$lt_save_CFLAGS"
6343 else
6344 echo "cannot find nm_test_func in $nlist" >&5
6345 fi
6346 else
6347 echo "cannot find nm_test_var in $nlist" >&5
6348 fi
6349 else
6350 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6351 fi
6352 else
6353 echo "$progname: failed program was:" >&5
6354 cat conftest.$ac_ext >&5
6355 fi
6356 rm -f conftest* conftst*
6357
6358 # Do not use the global_symbol_pipe unless it works.
6359 if test "$pipe_works" = yes; then
6360 break
6361 else
6362 lt_cv_sys_global_symbol_pipe=
6363 fi
6364 done
6365
6366 fi
6367
6368 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6369 lt_cv_sys_global_symbol_to_cdecl=
6370 fi
6371 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6372 { echo "$as_me:$LINENO: result: failed" >&5
6373 echo "${ECHO_T}failed" >&6; }
6374 else
6375 { echo "$as_me:$LINENO: result: ok" >&5
6376 echo "${ECHO_T}ok" >&6; }
6377 fi
6378
6379 { echo "$as_me:$LINENO: checking for objdir" >&5
6380 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6381 if test "${lt_cv_objdir+set}" = set; then
6382 echo $ECHO_N "(cached) $ECHO_C" >&6
6383 else
6384 rm -f .libs 2>/dev/null
6385 mkdir .libs 2>/dev/null
6386 if test -d .libs; then
6387 lt_cv_objdir=.libs
6388 else
6389 # MS-DOS does not allow filenames that begin with a dot.
6390 lt_cv_objdir=_libs
6391 fi
6392 rmdir .libs 2>/dev/null
6393 fi
6394 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6395 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6396 objdir=$lt_cv_objdir
6397
6398
6399
6400
6401
6402 case $host_os in
6403 aix3*)
6404 # AIX sometimes has problems with the GCC collect2 program. For some
6405 # reason, if we set the COLLECT_NAMES environment variable, the problems
6406 # vanish in a puff of smoke.
6407 if test "X${COLLECT_NAMES+set}" != Xset; then
6408 COLLECT_NAMES=
6409 export COLLECT_NAMES
6410 fi
6411 ;;
6412 esac
6413
6414 # Sed substitution that helps us do robust quoting. It backslashifies
6415 # metacharacters that are still active within double-quoted strings.
6416 Xsed='sed -e 1s/^X//'
6417 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6418
6419 # Same as above, but do not quote variable references.
6420 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6421
6422 # Sed substitution to delay expansion of an escaped shell variable in a
6423 # double_quote_subst'ed string.
6424 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6425
6426 # Sed substitution to avoid accidental globbing in evaled expressions
6427 no_glob_subst='s/\*/\\\*/g'
6428
6429 # Constants:
6430 rm="rm -f"
6431
6432 # Global variables:
6433 default_ofile=libtool
6434 can_build_shared=yes
6435
6436 # All known linkers require a `.a' archive for static linking (except MSVC,
6437 # which needs '.lib').
6438 libext=a
6439 ltmain="$ac_aux_dir/ltmain.sh"
6440 ofile="$default_ofile"
6441 with_gnu_ld="$lt_cv_prog_gnu_ld"
6442
6443 if test -n "$ac_tool_prefix"; then
6444 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6445 set dummy ${ac_tool_prefix}ar; ac_word=$2
6446 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6447 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6448 if test "${ac_cv_prog_AR+set}" = set; then
6449 echo $ECHO_N "(cached) $ECHO_C" >&6
6450 else
6451 if test -n "$AR"; then
6452 ac_cv_prog_AR="$AR" # Let the user override the test.
6453 else
6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455 for as_dir in $PATH
6456 do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
6459 for ac_exec_ext in '' $ac_executable_extensions; do
6460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_AR="${ac_tool_prefix}ar"
6462 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6463 break 2
6464 fi
6465 done
6466 done
6467 IFS=$as_save_IFS
6468
6469 fi
6470 fi
6471 AR=$ac_cv_prog_AR
6472 if test -n "$AR"; then
6473 { echo "$as_me:$LINENO: result: $AR" >&5
6474 echo "${ECHO_T}$AR" >&6; }
6475 else
6476 { echo "$as_me:$LINENO: result: no" >&5
6477 echo "${ECHO_T}no" >&6; }
6478 fi
6479
6480
6481 fi
6482 if test -z "$ac_cv_prog_AR"; then
6483 ac_ct_AR=$AR
6484 # Extract the first word of "ar", so it can be a program name with args.
6485 set dummy ar; ac_word=$2
6486 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6487 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6488 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6489 echo $ECHO_N "(cached) $ECHO_C" >&6
6490 else
6491 if test -n "$ac_ct_AR"; then
6492 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6493 else
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495 for as_dir in $PATH
6496 do
6497 IFS=$as_save_IFS
6498 test -z "$as_dir" && as_dir=.
6499 for ac_exec_ext in '' $ac_executable_extensions; do
6500 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6501 ac_cv_prog_ac_ct_AR="ar"
6502 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 break 2
6504 fi
6505 done
6506 done
6507 IFS=$as_save_IFS
6508
6509 fi
6510 fi
6511 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6512 if test -n "$ac_ct_AR"; then
6513 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6514 echo "${ECHO_T}$ac_ct_AR" >&6; }
6515 else
6516 { echo "$as_me:$LINENO: result: no" >&5
6517 echo "${ECHO_T}no" >&6; }
6518 fi
6519
6520 if test "x$ac_ct_AR" = x; then
6521 AR="false"
6522 else
6523 case $cross_compiling:$ac_tool_warned in
6524 yes:)
6525 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6526 whose name does not start with the host triplet. If you think this
6527 configuration is useful to you, please write to autoconf@gnu.org." >&5
6528 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6529 whose name does not start with the host triplet. If you think this
6530 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533 AR=$ac_ct_AR
6534 fi
6535 else
6536 AR="$ac_cv_prog_AR"
6537 fi
6538
6539 if test -n "$ac_tool_prefix"; then
6540 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6541 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6542 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6544 if test "${ac_cv_prog_RANLIB+set}" = set; then
6545 echo $ECHO_N "(cached) $ECHO_C" >&6
6546 else
6547 if test -n "$RANLIB"; then
6548 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6549 else
6550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 for as_dir in $PATH
6552 do
6553 IFS=$as_save_IFS
6554 test -z "$as_dir" && as_dir=.
6555 for ac_exec_ext in '' $ac_executable_extensions; do
6556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6557 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6559 break 2
6560 fi
6561 done
6562 done
6563 IFS=$as_save_IFS
6564
6565 fi
6566 fi
6567 RANLIB=$ac_cv_prog_RANLIB
6568 if test -n "$RANLIB"; then
6569 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6570 echo "${ECHO_T}$RANLIB" >&6; }
6571 else
6572 { echo "$as_me:$LINENO: result: no" >&5
6573 echo "${ECHO_T}no" >&6; }
6574 fi
6575
6576
6577 fi
6578 if test -z "$ac_cv_prog_RANLIB"; then
6579 ac_ct_RANLIB=$RANLIB
6580 # Extract the first word of "ranlib", so it can be a program name with args.
6581 set dummy ranlib; ac_word=$2
6582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6584 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6585 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 else
6587 if test -n "$ac_ct_RANLIB"; then
6588 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6589 else
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6591 for as_dir in $PATH
6592 do
6593 IFS=$as_save_IFS
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_prog_ac_ct_RANLIB="ranlib"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6599 break 2
6600 fi
6601 done
6602 done
6603 IFS=$as_save_IFS
6604
6605 fi
6606 fi
6607 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6608 if test -n "$ac_ct_RANLIB"; then
6609 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6610 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6611 else
6612 { echo "$as_me:$LINENO: result: no" >&5
6613 echo "${ECHO_T}no" >&6; }
6614 fi
6615
6616 if test "x$ac_ct_RANLIB" = x; then
6617 RANLIB=":"
6618 else
6619 case $cross_compiling:$ac_tool_warned in
6620 yes:)
6621 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6622 whose name does not start with the host triplet. If you think this
6623 configuration is useful to you, please write to autoconf@gnu.org." >&5
6624 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6625 whose name does not start with the host triplet. If you think this
6626 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6627 ac_tool_warned=yes ;;
6628 esac
6629 RANLIB=$ac_ct_RANLIB
6630 fi
6631 else
6632 RANLIB="$ac_cv_prog_RANLIB"
6633 fi
6634
6635 if test -n "$ac_tool_prefix"; then
6636 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6637 set dummy ${ac_tool_prefix}strip; ac_word=$2
6638 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6639 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6640 if test "${ac_cv_prog_STRIP+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642 else
6643 if test -n "$STRIP"; then
6644 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6645 else
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6647 for as_dir in $PATH
6648 do
6649 IFS=$as_save_IFS
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6655 break 2
6656 fi
6657 done
6658 done
6659 IFS=$as_save_IFS
6660
6661 fi
6662 fi
6663 STRIP=$ac_cv_prog_STRIP
6664 if test -n "$STRIP"; then
6665 { echo "$as_me:$LINENO: result: $STRIP" >&5
6666 echo "${ECHO_T}$STRIP" >&6; }
6667 else
6668 { echo "$as_me:$LINENO: result: no" >&5
6669 echo "${ECHO_T}no" >&6; }
6670 fi
6671
6672
6673 fi
6674 if test -z "$ac_cv_prog_STRIP"; then
6675 ac_ct_STRIP=$STRIP
6676 # Extract the first word of "strip", so it can be a program name with args.
6677 set dummy strip; ac_word=$2
6678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6680 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6681 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 else
6683 if test -n "$ac_ct_STRIP"; then
6684 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6685 else
6686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6687 for as_dir in $PATH
6688 do
6689 IFS=$as_save_IFS
6690 test -z "$as_dir" && as_dir=.
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6693 ac_cv_prog_ac_ct_STRIP="strip"
6694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6695 break 2
6696 fi
6697 done
6698 done
6699 IFS=$as_save_IFS
6700
6701 fi
6702 fi
6703 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6704 if test -n "$ac_ct_STRIP"; then
6705 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6706 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6707 else
6708 { echo "$as_me:$LINENO: result: no" >&5
6709 echo "${ECHO_T}no" >&6; }
6710 fi
6711
6712 if test "x$ac_ct_STRIP" = x; then
6713 STRIP=":"
6714 else
6715 case $cross_compiling:$ac_tool_warned in
6716 yes:)
6717 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6718 whose name does not start with the host triplet. If you think this
6719 configuration is useful to you, please write to autoconf@gnu.org." >&5
6720 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6721 whose name does not start with the host triplet. If you think this
6722 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6723 ac_tool_warned=yes ;;
6724 esac
6725 STRIP=$ac_ct_STRIP
6726 fi
6727 else
6728 STRIP="$ac_cv_prog_STRIP"
6729 fi
6730
6731
6732 old_CC="$CC"
6733 old_CFLAGS="$CFLAGS"
6734
6735 # Set sane defaults for various variables
6736 test -z "$AR" && AR=ar
6737 test -z "$AR_FLAGS" && AR_FLAGS=cru
6738 test -z "$AS" && AS=as
6739 test -z "$CC" && CC=cc
6740 test -z "$LTCC" && LTCC=$CC
6741 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6742 test -z "$DLLTOOL" && DLLTOOL=dlltool
6743 test -z "$LD" && LD=ld
6744 test -z "$LN_S" && LN_S="ln -s"
6745 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6746 test -z "$NM" && NM=nm
6747 test -z "$SED" && SED=sed
6748 test -z "$OBJDUMP" && OBJDUMP=objdump
6749 test -z "$RANLIB" && RANLIB=:
6750 test -z "$STRIP" && STRIP=:
6751 test -z "$ac_objext" && ac_objext=o
6752
6753 # Determine commands to create old-style static archives.
6754 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6755 old_postinstall_cmds='chmod 644 $oldlib'
6756 old_postuninstall_cmds=
6757
6758 if test -n "$RANLIB"; then
6759 case $host_os in
6760 openbsd*)
6761 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6762 ;;
6763 *)
6764 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6765 ;;
6766 esac
6767 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6768 fi
6769
6770 for cc_temp in $compiler""; do
6771 case $cc_temp in
6772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6774 \-*) ;;
6775 *) break;;
6776 esac
6777 done
6778 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6779
6780
6781 # Only perform the check for file, if the check method requires it
6782 case $deplibs_check_method in
6783 file_magic*)
6784 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6785 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6786 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
6787 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 case $MAGIC_CMD in
6791 [\\/*] | ?:[\\/]*)
6792 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6793 ;;
6794 *)
6795 lt_save_MAGIC_CMD="$MAGIC_CMD"
6796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6797 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6798 for ac_dir in $ac_dummy; do
6799 IFS="$lt_save_ifs"
6800 test -z "$ac_dir" && ac_dir=.
6801 if test -f $ac_dir/${ac_tool_prefix}file; then
6802 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6803 if test -n "$file_magic_test_file"; then
6804 case $deplibs_check_method in
6805 "file_magic "*)
6806 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6807 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6808 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6809 $EGREP "$file_magic_regex" > /dev/null; then
6810 :
6811 else
6812 cat <<EOF 1>&2
6813
6814 *** Warning: the command libtool uses to detect shared libraries,
6815 *** $file_magic_cmd, produces output that libtool cannot recognize.
6816 *** The result is that libtool may fail to recognize shared libraries
6817 *** as such. This will affect the creation of libtool libraries that
6818 *** depend on shared libraries, but programs linked with such libtool
6819 *** libraries will work regardless of this problem. Nevertheless, you
6820 *** may want to report the problem to your system manager and/or to
6821 *** bug-libtool@gnu.org
6822
6823 EOF
6824 fi ;;
6825 esac
6826 fi
6827 break
6828 fi
6829 done
6830 IFS="$lt_save_ifs"
6831 MAGIC_CMD="$lt_save_MAGIC_CMD"
6832 ;;
6833 esac
6834 fi
6835
6836 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6837 if test -n "$MAGIC_CMD"; then
6838 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6839 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6840 else
6841 { echo "$as_me:$LINENO: result: no" >&5
6842 echo "${ECHO_T}no" >&6; }
6843 fi
6844
6845 if test -z "$lt_cv_path_MAGIC_CMD"; then
6846 if test -n "$ac_tool_prefix"; then
6847 { echo "$as_me:$LINENO: checking for file" >&5
6848 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
6849 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6850 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 else
6852 case $MAGIC_CMD in
6853 [\\/*] | ?:[\\/]*)
6854 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6855 ;;
6856 *)
6857 lt_save_MAGIC_CMD="$MAGIC_CMD"
6858 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6859 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6860 for ac_dir in $ac_dummy; do
6861 IFS="$lt_save_ifs"
6862 test -z "$ac_dir" && ac_dir=.
6863 if test -f $ac_dir/file; then
6864 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6865 if test -n "$file_magic_test_file"; then
6866 case $deplibs_check_method in
6867 "file_magic "*)
6868 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6869 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6870 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6871 $EGREP "$file_magic_regex" > /dev/null; then
6872 :
6873 else
6874 cat <<EOF 1>&2
6875
6876 *** Warning: the command libtool uses to detect shared libraries,
6877 *** $file_magic_cmd, produces output that libtool cannot recognize.
6878 *** The result is that libtool may fail to recognize shared libraries
6879 *** as such. This will affect the creation of libtool libraries that
6880 *** depend on shared libraries, but programs linked with such libtool
6881 *** libraries will work regardless of this problem. Nevertheless, you
6882 *** may want to report the problem to your system manager and/or to
6883 *** bug-libtool@gnu.org
6884
6885 EOF
6886 fi ;;
6887 esac
6888 fi
6889 break
6890 fi
6891 done
6892 IFS="$lt_save_ifs"
6893 MAGIC_CMD="$lt_save_MAGIC_CMD"
6894 ;;
6895 esac
6896 fi
6897
6898 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6899 if test -n "$MAGIC_CMD"; then
6900 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6901 echo "${ECHO_T}$MAGIC_CMD" >&6; }
6902 else
6903 { echo "$as_me:$LINENO: result: no" >&5
6904 echo "${ECHO_T}no" >&6; }
6905 fi
6906
6907 else
6908 MAGIC_CMD=:
6909 fi
6910 fi
6911
6912 fi
6913 ;;
6914 esac
6915
6916 enable_dlopen=no
6917 enable_win32_dll=no
6918
6919 # Check whether --enable-libtool-lock was given.
6920 if test "${enable_libtool_lock+set}" = set; then
6921 enableval=$enable_libtool_lock;
6922 fi
6923
6924 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6925
6926
6927 # Check whether --with-pic was given.
6928 if test "${with_pic+set}" = set; then
6929 withval=$with_pic; pic_mode="$withval"
6930 else
6931 pic_mode=default
6932 fi
6933
6934 test -z "$pic_mode" && pic_mode=default
6935
6936 # Use C for the default configuration in the libtool script
6937 tagname=
6938 lt_save_CC="$CC"
6939 ac_ext=c
6940 ac_cpp='$CPP $CPPFLAGS'
6941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6944
6945
6946 # Source file extension for C test sources.
6947 ac_ext=c
6948
6949 # Object file extension for compiled C test sources.
6950 objext=o
6951 objext=$objext
6952
6953 # Code to be used in simple compile tests
6954 lt_simple_compile_test_code="int some_variable = 0;\n"
6955
6956 # Code to be used in simple link tests
6957 lt_simple_link_test_code='int main(){return(0);}\n'
6958
6959
6960 # If no C compiler was specified, use CC.
6961 LTCC=${LTCC-"$CC"}
6962
6963 # If no C compiler flags were specified, use CFLAGS.
6964 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6965
6966 # Allow CC to be a program name with arguments.
6967 compiler=$CC
6968
6969
6970 # save warnings/boilerplate of simple test code
6971 ac_outfile=conftest.$ac_objext
6972 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6973 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6974 _lt_compiler_boilerplate=`cat conftest.err`
6975 $rm conftest*
6976
6977 ac_outfile=conftest.$ac_objext
6978 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6979 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6980 _lt_linker_boilerplate=`cat conftest.err`
6981 $rm conftest*
6982
6983
6984
6985 lt_prog_compiler_no_builtin_flag=
6986
6987 if test "$GCC" = yes; then
6988 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6989
6990
6991 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6992 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
6993 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6994 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 else
6996 lt_cv_prog_compiler_rtti_exceptions=no
6997 ac_outfile=conftest.$ac_objext
6998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6999 lt_compiler_flag="-fno-rtti -fno-exceptions"
7000 # Insert the option either (1) after the last *FLAGS variable, or
7001 # (2) before a word containing "conftest.", or (3) at the end.
7002 # Note that $ac_compile itself does not contain backslashes and begins
7003 # with a dollar sign (not a hyphen), so the echo should work correctly.
7004 # The option is referenced via a variable to avoid confusing sed.
7005 lt_compile=`echo "$ac_compile" | $SED \
7006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7008 -e 's:$: $lt_compiler_flag:'`
7009 (eval echo "\"\$as_me:7010: $lt_compile\"" >&5)
7010 (eval "$lt_compile" 2>conftest.err)
7011 ac_status=$?
7012 cat conftest.err >&5
7013 echo "$as_me:7014: \$? = $ac_status" >&5
7014 if (exit $ac_status) && test -s "$ac_outfile"; then
7015 # The compiler can only warn and ignore the option if not recognized
7016 # So say no if there are warnings other than the usual output.
7017 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7020 lt_cv_prog_compiler_rtti_exceptions=yes
7021 fi
7022 fi
7023 $rm conftest*
7024
7025 fi
7026 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7027 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7028
7029 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7030 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7031 else
7032 :
7033 fi
7034
7035 fi
7036
7037 lt_prog_compiler_wl=
7038 lt_prog_compiler_pic=
7039 lt_prog_compiler_static=
7040
7041 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7042 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7043
7044 if test "$GCC" = yes; then
7045 lt_prog_compiler_wl='-Wl,'
7046 lt_prog_compiler_static='-static'
7047
7048 case $host_os in
7049 aix*)
7050 # All AIX code is PIC.
7051 if test "$host_cpu" = ia64; then
7052 # AIX 5 now supports IA64 processor
7053 lt_prog_compiler_static='-Bstatic'
7054 fi
7055 ;;
7056
7057 amigaos*)
7058 # FIXME: we need at least 68020 code to build shared libraries, but
7059 # adding the `-m68020' flag to GCC prevents building anything better,
7060 # like `-m68040'.
7061 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7062 ;;
7063
7064 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7065 # PIC is the default for these OSes.
7066 ;;
7067
7068 mingw* | pw32* | os2*)
7069 # This hack is so that the source file can tell whether it is being
7070 # built for inclusion in a dll (and should export symbols for example).
7071 lt_prog_compiler_pic='-DDLL_EXPORT'
7072 ;;
7073
7074 darwin* | rhapsody*)
7075 # PIC is the default on this platform
7076 # Common symbols not allowed in MH_DYLIB files
7077 lt_prog_compiler_pic='-fno-common'
7078 ;;
7079
7080 interix3*)
7081 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7082 # Instead, we relocate shared libraries at runtime.
7083 ;;
7084
7085 msdosdjgpp*)
7086 # Just because we use GCC doesn't mean we suddenly get shared libraries
7087 # on systems that don't support them.
7088 lt_prog_compiler_can_build_shared=no
7089 enable_shared=no
7090 ;;
7091
7092 sysv4*MP*)
7093 if test -d /usr/nec; then
7094 lt_prog_compiler_pic=-Kconform_pic
7095 fi
7096 ;;
7097
7098 hpux*)
7099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7100 # not for PA HP-UX.
7101 case $host_cpu in
7102 hppa*64*|ia64*)
7103 # +Z the default
7104 ;;
7105 *)
7106 lt_prog_compiler_pic='-fPIC'
7107 ;;
7108 esac
7109 ;;
7110
7111 *)
7112 lt_prog_compiler_pic='-fPIC'
7113 ;;
7114 esac
7115 else
7116 # PORTME Check for flag to pass linker flags through the system compiler.
7117 case $host_os in
7118 aix*)
7119 lt_prog_compiler_wl='-Wl,'
7120 if test "$host_cpu" = ia64; then
7121 # AIX 5 now supports IA64 processor
7122 lt_prog_compiler_static='-Bstatic'
7123 else
7124 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7125 fi
7126 ;;
7127 darwin*)
7128 # PIC is the default on this platform
7129 # Common symbols not allowed in MH_DYLIB files
7130 case $cc_basename in
7131 xlc*)
7132 lt_prog_compiler_pic='-qnocommon'
7133 lt_prog_compiler_wl='-Wl,'
7134 ;;
7135 esac
7136 ;;
7137
7138 mingw* | pw32* | os2*)
7139 # This hack is so that the source file can tell whether it is being
7140 # built for inclusion in a dll (and should export symbols for example).
7141 lt_prog_compiler_pic='-DDLL_EXPORT'
7142 ;;
7143
7144 hpux9* | hpux10* | hpux11*)
7145 lt_prog_compiler_wl='-Wl,'
7146 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7147 # not for PA HP-UX.
7148 case $host_cpu in
7149 hppa*64*|ia64*)
7150 # +Z the default
7151 ;;
7152 *)
7153 lt_prog_compiler_pic='+Z'
7154 ;;
7155 esac
7156 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7157 lt_prog_compiler_static='${wl}-a ${wl}archive'
7158 ;;
7159
7160 irix5* | irix6* | nonstopux*)
7161 lt_prog_compiler_wl='-Wl,'
7162 # PIC (with -KPIC) is the default.
7163 lt_prog_compiler_static='-non_shared'
7164 ;;
7165
7166 newsos6)
7167 lt_prog_compiler_pic='-KPIC'
7168 lt_prog_compiler_static='-Bstatic'
7169 ;;
7170
7171 linux* | k*bsd*-gnu)
7172 case $cc_basename in
7173 icc* | ecc*)
7174 lt_prog_compiler_wl='-Wl,'
7175 lt_prog_compiler_pic='-KPIC'
7176 lt_prog_compiler_static='-static'
7177 ;;
7178 pgcc* | pgf77* | pgf90* | pgf95*)
7179 # Portland Group compilers (*not* the Pentium gcc compiler,
7180 # which looks to be a dead project)
7181 lt_prog_compiler_wl='-Wl,'
7182 lt_prog_compiler_pic='-fpic'
7183 lt_prog_compiler_static='-Bstatic'
7184 ;;
7185 ccc*)
7186 lt_prog_compiler_wl='-Wl,'
7187 # All Alpha code is PIC.
7188 lt_prog_compiler_static='-non_shared'
7189 ;;
7190 esac
7191 ;;
7192
7193 osf3* | osf4* | osf5*)
7194 lt_prog_compiler_wl='-Wl,'
7195 # All OSF/1 code is PIC.
7196 lt_prog_compiler_static='-non_shared'
7197 ;;
7198
7199 solaris*)
7200 lt_prog_compiler_pic='-KPIC'
7201 lt_prog_compiler_static='-Bstatic'
7202 case $cc_basename in
7203 f77* | f90* | f95*)
7204 lt_prog_compiler_wl='-Qoption ld ';;
7205 *)
7206 lt_prog_compiler_wl='-Wl,';;
7207 esac
7208 ;;
7209
7210 sunos4*)
7211 lt_prog_compiler_wl='-Qoption ld '
7212 lt_prog_compiler_pic='-PIC'
7213 lt_prog_compiler_static='-Bstatic'
7214 ;;
7215
7216 sysv4 | sysv4.2uw2* | sysv4.3*)
7217 lt_prog_compiler_wl='-Wl,'
7218 lt_prog_compiler_pic='-KPIC'
7219 lt_prog_compiler_static='-Bstatic'
7220 ;;
7221
7222 sysv4*MP*)
7223 if test -d /usr/nec ;then
7224 lt_prog_compiler_pic='-Kconform_pic'
7225 lt_prog_compiler_static='-Bstatic'
7226 fi
7227 ;;
7228
7229 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7230 lt_prog_compiler_wl='-Wl,'
7231 lt_prog_compiler_pic='-KPIC'
7232 lt_prog_compiler_static='-Bstatic'
7233 ;;
7234
7235 unicos*)
7236 lt_prog_compiler_wl='-Wl,'
7237 lt_prog_compiler_can_build_shared=no
7238 ;;
7239
7240 uts4*)
7241 lt_prog_compiler_pic='-pic'
7242 lt_prog_compiler_static='-Bstatic'
7243 ;;
7244
7245 *)
7246 lt_prog_compiler_can_build_shared=no
7247 ;;
7248 esac
7249 fi
7250
7251 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7252 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7253
7254 #
7255 # Check to make sure the PIC flag actually works.
7256 #
7257 if test -n "$lt_prog_compiler_pic"; then
7258
7259 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7260 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7261 if test "${lt_prog_compiler_pic_works+set}" = set; then
7262 echo $ECHO_N "(cached) $ECHO_C" >&6
7263 else
7264 lt_prog_compiler_pic_works=no
7265 ac_outfile=conftest.$ac_objext
7266 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7267 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7268 # Insert the option either (1) after the last *FLAGS variable, or
7269 # (2) before a word containing "conftest.", or (3) at the end.
7270 # Note that $ac_compile itself does not contain backslashes and begins
7271 # with a dollar sign (not a hyphen), so the echo should work correctly.
7272 # The option is referenced via a variable to avoid confusing sed.
7273 lt_compile=`echo "$ac_compile" | $SED \
7274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7276 -e 's:$: $lt_compiler_flag:'`
7277 (eval echo "\"\$as_me:7278: $lt_compile\"" >&5)
7278 (eval "$lt_compile" 2>conftest.err)
7279 ac_status=$?
7280 cat conftest.err >&5
7281 echo "$as_me:7282: \$? = $ac_status" >&5
7282 if (exit $ac_status) && test -s "$ac_outfile"; then
7283 # The compiler can only warn and ignore the option if not recognized
7284 # So say no if there are warnings other than the usual output.
7285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7288 lt_prog_compiler_pic_works=yes
7289 fi
7290 fi
7291 $rm conftest*
7292
7293 fi
7294 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7295 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7296
7297 if test x"$lt_prog_compiler_pic_works" = xyes; then
7298 case $lt_prog_compiler_pic in
7299 "" | " "*) ;;
7300 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7301 esac
7302 else
7303 lt_prog_compiler_pic=
7304 lt_prog_compiler_can_build_shared=no
7305 fi
7306
7307 fi
7308 case $host_os in
7309 # For platforms which do not support PIC, -DPIC is meaningless:
7310 *djgpp*)
7311 lt_prog_compiler_pic=
7312 ;;
7313 *)
7314 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7315 ;;
7316 esac
7317
7318 #
7319 # Check to make sure the static flag actually works.
7320 #
7321 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7322 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7323 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7324 if test "${lt_prog_compiler_static_works+set}" = set; then
7325 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 else
7327 lt_prog_compiler_static_works=no
7328 save_LDFLAGS="$LDFLAGS"
7329 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7330 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7331 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7332 # The linker can only warn and ignore the option if not recognized
7333 # So say no if there are warnings
7334 if test -s conftest.err; then
7335 # Append any errors to the config.log.
7336 cat conftest.err 1>&5
7337 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7338 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7339 if diff conftest.exp conftest.er2 >/dev/null; then
7340 lt_prog_compiler_static_works=yes
7341 fi
7342 else
7343 lt_prog_compiler_static_works=yes
7344 fi
7345 fi
7346 $rm conftest*
7347 LDFLAGS="$save_LDFLAGS"
7348
7349 fi
7350 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7351 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7352
7353 if test x"$lt_prog_compiler_static_works" = xyes; then
7354 :
7355 else
7356 lt_prog_compiler_static=
7357 fi
7358
7359
7360 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7361 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7362 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 else
7365 lt_cv_prog_compiler_c_o=no
7366 $rm -r conftest 2>/dev/null
7367 mkdir conftest
7368 cd conftest
7369 mkdir out
7370 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7371
7372 lt_compiler_flag="-o out/conftest2.$ac_objext"
7373 # Insert the option either (1) after the last *FLAGS variable, or
7374 # (2) before a word containing "conftest.", or (3) at the end.
7375 # Note that $ac_compile itself does not contain backslashes and begins
7376 # with a dollar sign (not a hyphen), so the echo should work correctly.
7377 lt_compile=`echo "$ac_compile" | $SED \
7378 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7379 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7380 -e 's:$: $lt_compiler_flag:'`
7381 (eval echo "\"\$as_me:7382: $lt_compile\"" >&5)
7382 (eval "$lt_compile" 2>out/conftest.err)
7383 ac_status=$?
7384 cat out/conftest.err >&5
7385 echo "$as_me:7386: \$? = $ac_status" >&5
7386 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7387 then
7388 # The compiler can only warn and ignore the option if not recognized
7389 # So say no if there are warnings
7390 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7391 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7392 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7393 lt_cv_prog_compiler_c_o=yes
7394 fi
7395 fi
7396 chmod u+w . 2>&5
7397 $rm conftest*
7398 # SGI C++ compiler will create directory out/ii_files/ for
7399 # template instantiation
7400 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7401 $rm out/* && rmdir out
7402 cd ..
7403 rmdir conftest
7404 $rm conftest*
7405
7406 fi
7407 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7408 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7409
7410
7411 hard_links="nottested"
7412 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7413 # do not overwrite the value of need_locks provided by the user
7414 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7415 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7416 hard_links=yes
7417 $rm conftest*
7418 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7419 touch conftest.a
7420 ln conftest.a conftest.b 2>&5 || hard_links=no
7421 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7422 { echo "$as_me:$LINENO: result: $hard_links" >&5
7423 echo "${ECHO_T}$hard_links" >&6; }
7424 if test "$hard_links" = no; then
7425 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7426 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7427 need_locks=warn
7428 fi
7429 else
7430 need_locks=no
7431 fi
7432
7433 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7434 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7435
7436 runpath_var=
7437 allow_undefined_flag=
7438 enable_shared_with_static_runtimes=no
7439 archive_cmds=
7440 archive_expsym_cmds=
7441 old_archive_From_new_cmds=
7442 old_archive_from_expsyms_cmds=
7443 export_dynamic_flag_spec=
7444 whole_archive_flag_spec=
7445 thread_safe_flag_spec=
7446 hardcode_libdir_flag_spec=
7447 hardcode_libdir_flag_spec_ld=
7448 hardcode_libdir_separator=
7449 hardcode_direct=no
7450 hardcode_minus_L=no
7451 hardcode_shlibpath_var=unsupported
7452 link_all_deplibs=unknown
7453 hardcode_automatic=no
7454 module_cmds=
7455 module_expsym_cmds=
7456 always_export_symbols=no
7457 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7458 # include_expsyms should be a list of space-separated symbols to be *always*
7459 # included in the symbol list
7460 include_expsyms=
7461 # exclude_expsyms can be an extended regexp of symbols to exclude
7462 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7463 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7464 # as well as any symbol that contains `d'.
7465 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7466 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7467 # platforms (ab)use it in PIC code, but their linkers get confused if
7468 # the symbol is explicitly referenced. Since portable code cannot
7469 # rely on this symbol name, it's probably fine to never include it in
7470 # preloaded symbol tables.
7471 extract_expsyms_cmds=
7472 # Just being paranoid about ensuring that cc_basename is set.
7473 for cc_temp in $compiler""; do
7474 case $cc_temp in
7475 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7476 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7477 \-*) ;;
7478 *) break;;
7479 esac
7480 done
7481 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7482
7483 case $host_os in
7484 cygwin* | mingw* | pw32*)
7485 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7486 # When not using gcc, we currently assume that we are using
7487 # Microsoft Visual C++.
7488 if test "$GCC" != yes; then
7489 with_gnu_ld=no
7490 fi
7491 ;;
7492 interix*)
7493 # we just hope/assume this is gcc and not c89 (= MSVC++)
7494 with_gnu_ld=yes
7495 ;;
7496 openbsd*)
7497 with_gnu_ld=no
7498 ;;
7499 esac
7500
7501 ld_shlibs=yes
7502 if test "$with_gnu_ld" = yes; then
7503 # If archive_cmds runs LD, not CC, wlarc should be empty
7504 wlarc='${wl}'
7505
7506 # Set some defaults for GNU ld with shared library support. These
7507 # are reset later if shared libraries are not supported. Putting them
7508 # here allows them to be overridden if necessary.
7509 runpath_var=LD_RUN_PATH
7510 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7511 export_dynamic_flag_spec='${wl}--export-dynamic'
7512 # ancient GNU ld didn't support --whole-archive et. al.
7513 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7514 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7515 else
7516 whole_archive_flag_spec=
7517 fi
7518 supports_anon_versioning=no
7519 case `$LD -v 2>/dev/null` in
7520 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7521 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7522 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7523 *\ 2.11.*) ;; # other 2.11 versions
7524 *) supports_anon_versioning=yes ;;
7525 esac
7526
7527 # See if GNU ld supports shared libraries.
7528 case $host_os in
7529 aix3* | aix4* | aix5*)
7530 # On AIX/PPC, the GNU linker is very broken
7531 if test "$host_cpu" != ia64; then
7532 ld_shlibs=no
7533 cat <<EOF 1>&2
7534
7535 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7536 *** to be unable to reliably create shared libraries on AIX.
7537 *** Therefore, libtool is disabling shared libraries support. If you
7538 *** really care for shared libraries, you may want to modify your PATH
7539 *** so that a non-GNU linker is found, and then restart.
7540
7541 EOF
7542 fi
7543 ;;
7544
7545 amigaos*)
7546 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7547 hardcode_libdir_flag_spec='-L$libdir'
7548 hardcode_minus_L=yes
7549
7550 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7551 # that the semantics of dynamic libraries on AmigaOS, at least up
7552 # to version 4, is to share data among multiple programs linked
7553 # with the same dynamic library. Since this doesn't match the
7554 # behavior of shared libraries on other platforms, we can't use
7555 # them.
7556 ld_shlibs=no
7557 ;;
7558
7559 beos*)
7560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7561 allow_undefined_flag=unsupported
7562 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7563 # support --undefined. This deserves some investigation. FIXME
7564 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7565 else
7566 ld_shlibs=no
7567 fi
7568 ;;
7569
7570 cygwin* | mingw* | pw32*)
7571 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7572 # as there is no search path for DLLs.
7573 hardcode_libdir_flag_spec='-L$libdir'
7574 allow_undefined_flag=unsupported
7575 always_export_symbols=no
7576 enable_shared_with_static_runtimes=yes
7577 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7578
7579 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7581 # If the export-symbols file already is a .def file (1st line
7582 # is EXPORTS), use it as is; otherwise, prepend...
7583 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7584 cp $export_symbols $output_objdir/$soname.def;
7585 else
7586 echo EXPORTS > $output_objdir/$soname.def;
7587 cat $export_symbols >> $output_objdir/$soname.def;
7588 fi~
7589 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7590 else
7591 ld_shlibs=no
7592 fi
7593 ;;
7594
7595 interix3*)
7596 hardcode_direct=no
7597 hardcode_shlibpath_var=no
7598 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7599 export_dynamic_flag_spec='${wl}-E'
7600 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7601 # Instead, shared libraries are loaded at an image base (0x10000000 by
7602 # default) and relocated if they conflict, which is a slow very memory
7603 # consuming and fragmenting process. To avoid this, we pick a random,
7604 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7605 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7606 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7607 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7608 ;;
7609
7610 linux* | k*bsd*-gnu)
7611 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7612 tmp_addflag=
7613 case $cc_basename,$host_cpu in
7614 pgcc*) # Portland Group C compiler
7615 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7616 tmp_addflag=' $pic_flag'
7617 ;;
7618 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7619 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7620 tmp_addflag=' $pic_flag -Mnomain' ;;
7621 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7622 tmp_addflag=' -i_dynamic' ;;
7623 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7624 tmp_addflag=' -i_dynamic -nofor_main' ;;
7625 ifc* | ifort*) # Intel Fortran compiler
7626 tmp_addflag=' -nofor_main' ;;
7627 esac
7628 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7629
7630 if test $supports_anon_versioning = yes; then
7631 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7633 $echo "local: *; };" >> $output_objdir/$libname.ver~
7634 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7635 fi
7636 link_all_deplibs=no
7637 else
7638 ld_shlibs=no
7639 fi
7640 ;;
7641
7642 netbsd* | netbsdelf*-gnu)
7643 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7644 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7645 wlarc=
7646 else
7647 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7648 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7649 fi
7650 ;;
7651
7652 solaris*)
7653 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7654 ld_shlibs=no
7655 cat <<EOF 1>&2
7656
7657 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7658 *** create shared libraries on Solaris systems. Therefore, libtool
7659 *** is disabling shared libraries support. We urge you to upgrade GNU
7660 *** binutils to release 2.9.1 or newer. Another option is to modify
7661 *** your PATH or compiler configuration so that the native linker is
7662 *** used, and then restart.
7663
7664 EOF
7665 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7666 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7667 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7668 else
7669 ld_shlibs=no
7670 fi
7671 ;;
7672
7673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7674 case `$LD -v 2>&1` in
7675 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7676 ld_shlibs=no
7677 cat <<_LT_EOF 1>&2
7678
7679 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7680 *** reliably create shared libraries on SCO systems. Therefore, libtool
7681 *** is disabling shared libraries support. We urge you to upgrade GNU
7682 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7683 *** your PATH or compiler configuration so that the native linker is
7684 *** used, and then restart.
7685
7686 _LT_EOF
7687 ;;
7688 *)
7689 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7690 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7692 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7693 else
7694 ld_shlibs=no
7695 fi
7696 ;;
7697 esac
7698 ;;
7699
7700 sunos4*)
7701 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7702 wlarc=
7703 hardcode_direct=yes
7704 hardcode_shlibpath_var=no
7705 ;;
7706
7707 *)
7708 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7710 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7711 else
7712 ld_shlibs=no
7713 fi
7714 ;;
7715 esac
7716
7717 if test "$ld_shlibs" = no; then
7718 runpath_var=
7719 hardcode_libdir_flag_spec=
7720 export_dynamic_flag_spec=
7721 whole_archive_flag_spec=
7722 fi
7723 else
7724 # PORTME fill in a description of your system's linker (not GNU ld)
7725 case $host_os in
7726 aix3*)
7727 allow_undefined_flag=unsupported
7728 always_export_symbols=yes
7729 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
7730 # Note: this linker hardcodes the directories in LIBPATH if there
7731 # are no directories specified by -L.
7732 hardcode_minus_L=yes
7733 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7734 # Neither direct hardcoding nor static linking is supported with a
7735 # broken collect2.
7736 hardcode_direct=unsupported
7737 fi
7738 ;;
7739
7740 aix4* | aix5*)
7741 if test "$host_cpu" = ia64; then
7742 # On IA64, the linker does run time linking by default, so we don't
7743 # have to do anything special.
7744 aix_use_runtimelinking=no
7745 exp_sym_flag='-Bexport'
7746 no_entry_flag=""
7747 else
7748 # If we're using GNU nm, then we don't want the "-C" option.
7749 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7750 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7751 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7752 else
7753 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7754 fi
7755 aix_use_runtimelinking=no
7756
7757 # Test if we are trying to use run time linking or normal
7758 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7759 # need to do runtime linking.
7760 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7761 for ld_flag in $LDFLAGS; do
7762 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7763 aix_use_runtimelinking=yes
7764 break
7765 fi
7766 done
7767 ;;
7768 esac
7769
7770 exp_sym_flag='-bexport'
7771 no_entry_flag='-bnoentry'
7772 fi
7773
7774 # When large executables or shared objects are built, AIX ld can
7775 # have problems creating the table of contents. If linking a library
7776 # or program results in "error TOC overflow" add -mminimal-toc to
7777 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7778 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7779
7780 archive_cmds=''
7781 hardcode_direct=yes
7782 hardcode_libdir_separator=':'
7783 link_all_deplibs=yes
7784
7785 if test "$GCC" = yes; then
7786 case $host_os in aix4.[012]|aix4.[012].*)
7787 # We only want to do this on AIX 4.2 and lower, the check
7788 # below for broken collect2 doesn't work under 4.3+
7789 collect2name=`${CC} -print-prog-name=collect2`
7790 if test -f "$collect2name" && \
7791 strings "$collect2name" | grep resolve_lib_name >/dev/null
7792 then
7793 # We have reworked collect2
7794 hardcode_direct=yes
7795 else
7796 # We have old collect2
7797 hardcode_direct=unsupported
7798 # It fails to find uninstalled libraries when the uninstalled
7799 # path is not listed in the libpath. Setting hardcode_minus_L
7800 # to unsupported forces relinking
7801 hardcode_minus_L=yes
7802 hardcode_libdir_flag_spec='-L$libdir'
7803 hardcode_libdir_separator=
7804 fi
7805 ;;
7806 esac
7807 shared_flag='-shared'
7808 if test "$aix_use_runtimelinking" = yes; then
7809 shared_flag="$shared_flag "'${wl}-G'
7810 fi
7811 else
7812 # not using gcc
7813 if test "$host_cpu" = ia64; then
7814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7815 # chokes on -Wl,-G. The following line is correct:
7816 shared_flag='-G'
7817 else
7818 if test "$aix_use_runtimelinking" = yes; then
7819 shared_flag='${wl}-G'
7820 else
7821 shared_flag='${wl}-bM:SRE'
7822 fi
7823 fi
7824 fi
7825
7826 # It seems that -bexpall does not export symbols beginning with
7827 # underscore (_), so it is better to generate a list of symbols to export.
7828 always_export_symbols=yes
7829 if test "$aix_use_runtimelinking" = yes; then
7830 # Warning - without using the other runtime loading flags (-brtl),
7831 # -berok will link without error, but may produce a broken library.
7832 allow_undefined_flag='-berok'
7833 # Determine the default libpath from the value encoded in an empty executable.
7834 cat >conftest.$ac_ext <<_ACEOF
7835 /* confdefs.h. */
7836 _ACEOF
7837 cat confdefs.h >>conftest.$ac_ext
7838 cat >>conftest.$ac_ext <<_ACEOF
7839 /* end confdefs.h. */
7840
7841 int
7842 main ()
7843 {
7844
7845 ;
7846 return 0;
7847 }
7848 _ACEOF
7849 rm -f conftest.$ac_objext conftest$ac_exeext
7850 if { (ac_try="$ac_link"
7851 case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7854 esac
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_link") 2>conftest.er1
7857 ac_status=$?
7858 grep -v '^ *+' conftest.er1 >conftest.err
7859 rm -f conftest.er1
7860 cat conftest.err >&5
7861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7862 (exit $ac_status); } && {
7863 test -z "$ac_c_werror_flag" ||
7864 test ! -s conftest.err
7865 } && test -s conftest$ac_exeext &&
7866 $as_test_x conftest$ac_exeext; then
7867
7868 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7869 }'`
7870 # Check for a 64-bit object if we didn't find anything.
7871 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; }
7872 }'`; fi
7873 else
7874 echo "$as_me: failed program was:" >&5
7875 sed 's/^/| /' conftest.$ac_ext >&5
7876
7877
7878 fi
7879
7880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7881 conftest$ac_exeext conftest.$ac_ext
7882 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7883
7884 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7885 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7886 else
7887 if test "$host_cpu" = ia64; then
7888 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7889 allow_undefined_flag="-z nodefs"
7890 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7891 else
7892 # Determine the default libpath from the value encoded in an empty executable.
7893 cat >conftest.$ac_ext <<_ACEOF
7894 /* confdefs.h. */
7895 _ACEOF
7896 cat confdefs.h >>conftest.$ac_ext
7897 cat >>conftest.$ac_ext <<_ACEOF
7898 /* end confdefs.h. */
7899
7900 int
7901 main ()
7902 {
7903
7904 ;
7905 return 0;
7906 }
7907 _ACEOF
7908 rm -f conftest.$ac_objext conftest$ac_exeext
7909 if { (ac_try="$ac_link"
7910 case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7913 esac
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_link") 2>conftest.er1
7916 ac_status=$?
7917 grep -v '^ *+' conftest.er1 >conftest.err
7918 rm -f conftest.er1
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest$ac_exeext &&
7925 $as_test_x conftest$ac_exeext; then
7926
7927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7928 }'`
7929 # Check for a 64-bit object if we didn't find anything.
7930 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; }
7931 }'`; fi
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936
7937 fi
7938
7939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7940 conftest$ac_exeext conftest.$ac_ext
7941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7942
7943 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7944 # Warning - without using the other run time loading flags,
7945 # -berok will link without error, but may produce a broken library.
7946 no_undefined_flag=' ${wl}-bernotok'
7947 allow_undefined_flag=' ${wl}-berok'
7948 # Exported symbols can be pulled into shared objects from archives
7949 whole_archive_flag_spec='$convenience'
7950 archive_cmds_need_lc=yes
7951 # This is similar to how AIX traditionally builds its shared libraries.
7952 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7953 fi
7954 fi
7955 ;;
7956
7957 amigaos*)
7958 archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
7959 hardcode_libdir_flag_spec='-L$libdir'
7960 hardcode_minus_L=yes
7961 # see comment about different semantics on the GNU ld section
7962 ld_shlibs=no
7963 ;;
7964
7965 bsdi[45]*)
7966 export_dynamic_flag_spec=-rdynamic
7967 ;;
7968
7969 cygwin* | mingw* | pw32*)
7970 # When not using gcc, we currently assume that we are using
7971 # Microsoft Visual C++.
7972 # hardcode_libdir_flag_spec is actually meaningless, as there is
7973 # no search path for DLLs.
7974 hardcode_libdir_flag_spec=' '
7975 allow_undefined_flag=unsupported
7976 # Tell ltmain to make .lib files, not .a files.
7977 libext=lib
7978 # Tell ltmain to make .dll files, not .so files.
7979 shrext_cmds=".dll"
7980 # FIXME: Setting linknames here is a bad hack.
7981 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7982 # The linker will automatically build a .lib file if we build a DLL.
7983 old_archive_From_new_cmds='true'
7984 # FIXME: Should let the user specify the lib program.
7985 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7986 fix_srcfile_path='`cygpath -w "$srcfile"`'
7987 enable_shared_with_static_runtimes=yes
7988 ;;
7989
7990 darwin* | rhapsody*)
7991 case $host_os in
7992 rhapsody* | darwin1.[012])
7993 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7994 ;;
7995 *) # Darwin 1.3 on
7996 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7997 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7998 else
7999 case ${MACOSX_DEPLOYMENT_TARGET} in
8000 10.[012])
8001 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8002 ;;
8003 10.*)
8004 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8005 ;;
8006 esac
8007 fi
8008 ;;
8009 esac
8010 archive_cmds_need_lc=no
8011 hardcode_direct=no
8012 hardcode_automatic=yes
8013 hardcode_shlibpath_var=unsupported
8014 whole_archive_flag_spec=''
8015 link_all_deplibs=yes
8016 if test "$GCC" = yes ; then
8017 output_verbose_link_cmd='echo'
8018 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8019 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8020 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8021 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8022 module_expsym_cmds='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}'
8023 else
8024 case $cc_basename in
8025 xlc*)
8026 output_verbose_link_cmd='echo'
8027 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8028 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8029 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8030 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8031 module_expsym_cmds='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}'
8032 ;;
8033 *)
8034 ld_shlibs=no
8035 ;;
8036 esac
8037 fi
8038 ;;
8039
8040 dgux*)
8041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8042 hardcode_libdir_flag_spec='-L$libdir'
8043 hardcode_shlibpath_var=no
8044 ;;
8045
8046 freebsd1*)
8047 ld_shlibs=no
8048 ;;
8049
8050 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8051 # support. Future versions do this automatically, but an explicit c++rt0.o
8052 # does not break anything, and helps significantly (at the cost of a little
8053 # extra space).
8054 freebsd2.2*)
8055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8056 hardcode_libdir_flag_spec='-R$libdir'
8057 hardcode_direct=yes
8058 hardcode_shlibpath_var=no
8059 ;;
8060
8061 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8062 freebsd2*)
8063 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8064 hardcode_direct=yes
8065 hardcode_minus_L=yes
8066 hardcode_shlibpath_var=no
8067 ;;
8068
8069 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8070 freebsd* | dragonfly*)
8071 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8072 hardcode_libdir_flag_spec='-R$libdir'
8073 hardcode_direct=yes
8074 hardcode_shlibpath_var=no
8075 ;;
8076
8077 hpux9*)
8078 if test "$GCC" = yes; then
8079 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8080 else
8081 archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8082 fi
8083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8084 hardcode_libdir_separator=:
8085 hardcode_direct=yes
8086
8087 # hardcode_minus_L: Not really in the search PATH,
8088 # but as the default location of the library.
8089 hardcode_minus_L=yes
8090 export_dynamic_flag_spec='${wl}-E'
8091 ;;
8092
8093 hpux10*)
8094 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8095 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8096 else
8097 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8098 fi
8099 if test "$with_gnu_ld" = no; then
8100 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8101 hardcode_libdir_separator=:
8102
8103 hardcode_direct=yes
8104 export_dynamic_flag_spec='${wl}-E'
8105
8106 # hardcode_minus_L: Not really in the search PATH,
8107 # but as the default location of the library.
8108 hardcode_minus_L=yes
8109 fi
8110 ;;
8111
8112 hpux11*)
8113 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8114 case $host_cpu in
8115 hppa*64*)
8116 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8117 ;;
8118 ia64*)
8119 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8120 ;;
8121 *)
8122 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8123 ;;
8124 esac
8125 else
8126 case $host_cpu in
8127 hppa*64*)
8128 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8129 ;;
8130 ia64*)
8131 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8132 ;;
8133 *)
8134 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8135 ;;
8136 esac
8137 fi
8138 if test "$with_gnu_ld" = no; then
8139 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8140 hardcode_libdir_separator=:
8141
8142 case $host_cpu in
8143 hppa*64*|ia64*)
8144 hardcode_libdir_flag_spec_ld='+b $libdir'
8145 hardcode_direct=no
8146 hardcode_shlibpath_var=no
8147 ;;
8148 *)
8149 hardcode_direct=yes
8150 export_dynamic_flag_spec='${wl}-E'
8151
8152 # hardcode_minus_L: Not really in the search PATH,
8153 # but as the default location of the library.
8154 hardcode_minus_L=yes
8155 ;;
8156 esac
8157 fi
8158 ;;
8159
8160 irix5* | irix6* | nonstopux*)
8161 if test "$GCC" = yes; then
8162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8163 else
8164 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8165 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8166 fi
8167 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8168 hardcode_libdir_separator=:
8169 link_all_deplibs=yes
8170 ;;
8171
8172 netbsd* | netbsdelf*-gnu)
8173 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8175 else
8176 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8177 fi
8178 hardcode_libdir_flag_spec='-R$libdir'
8179 hardcode_direct=yes
8180 hardcode_shlibpath_var=no
8181 ;;
8182
8183 newsos6)
8184 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8185 hardcode_direct=yes
8186 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8187 hardcode_libdir_separator=:
8188 hardcode_shlibpath_var=no
8189 ;;
8190
8191 openbsd*)
8192 hardcode_direct=yes
8193 hardcode_shlibpath_var=no
8194 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8195 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8196 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8197 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8198 export_dynamic_flag_spec='${wl}-E'
8199 else
8200 case $host_os in
8201 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8203 hardcode_libdir_flag_spec='-R$libdir'
8204 ;;
8205 *)
8206 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8207 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8208 ;;
8209 esac
8210 fi
8211 ;;
8212
8213 os2*)
8214 hardcode_libdir_flag_spec='-L$libdir'
8215 hardcode_minus_L=yes
8216 allow_undefined_flag=unsupported
8217 archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8218 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8219 ;;
8220
8221 osf3*)
8222 if test "$GCC" = yes; then
8223 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8224 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8225 else
8226 allow_undefined_flag=' -expect_unresolved \*'
8227 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8228 fi
8229 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8230 hardcode_libdir_separator=:
8231 ;;
8232
8233 osf4* | osf5*) # as osf3* with the addition of -msym flag
8234 if test "$GCC" = yes; then
8235 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8236 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8237 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8238 else
8239 allow_undefined_flag=' -expect_unresolved \*'
8240 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8241 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8242 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8243
8244 # Both c and cxx compiler support -rpath directly
8245 hardcode_libdir_flag_spec='-rpath $libdir'
8246 fi
8247 hardcode_libdir_separator=:
8248 ;;
8249
8250 solaris*)
8251 no_undefined_flag=' -z text'
8252 if test "$GCC" = yes; then
8253 wlarc='${wl}'
8254 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8255 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8256 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8257 else
8258 wlarc=''
8259 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8260 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8261 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8262 fi
8263 hardcode_libdir_flag_spec='-R$libdir'
8264 hardcode_shlibpath_var=no
8265 case $host_os in
8266 solaris2.[0-5] | solaris2.[0-5].*) ;;
8267 *)
8268 # The compiler driver will combine linker options so we
8269 # cannot just pass the convience library names through
8270 # without $wl, iff we do not link with $LD.
8271 # Luckily, gcc supports the same syntax we need for Sun Studio.
8272 # Supported since Solaris 2.6 (maybe 2.5.1?)
8273 case $wlarc in
8274 '')
8275 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8276 *)
8277 whole_archive_flag_spec='${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' ;;
8278 esac ;;
8279 esac
8280 link_all_deplibs=yes
8281 ;;
8282
8283 sunos4*)
8284 if test "x$host_vendor" = xsequent; then
8285 # Use $CC to link under sequent, because it throws in some extra .o
8286 # files that make .init and .fini sections work.
8287 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8288 else
8289 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8290 fi
8291 hardcode_libdir_flag_spec='-L$libdir'
8292 hardcode_direct=yes
8293 hardcode_minus_L=yes
8294 hardcode_shlibpath_var=no
8295 ;;
8296
8297 sysv4)
8298 case $host_vendor in
8299 sni)
8300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8301 hardcode_direct=yes # is this really true???
8302 ;;
8303 siemens)
8304 ## LD is ld it makes a PLAMLIB
8305 ## CC just makes a GrossModule.
8306 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8307 reload_cmds='$CC -r -o $output$reload_objs'
8308 hardcode_direct=no
8309 ;;
8310 motorola)
8311 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8312 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8313 ;;
8314 esac
8315 runpath_var='LD_RUN_PATH'
8316 hardcode_shlibpath_var=no
8317 ;;
8318
8319 sysv4.3*)
8320 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8321 hardcode_shlibpath_var=no
8322 export_dynamic_flag_spec='-Bexport'
8323 ;;
8324
8325 sysv4*MP*)
8326 if test -d /usr/nec; then
8327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8328 hardcode_shlibpath_var=no
8329 runpath_var=LD_RUN_PATH
8330 hardcode_runpath_var=yes
8331 ld_shlibs=yes
8332 fi
8333 ;;
8334
8335 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8336 no_undefined_flag='${wl}-z,text'
8337 archive_cmds_need_lc=no
8338 hardcode_shlibpath_var=no
8339 runpath_var='LD_RUN_PATH'
8340
8341 if test "$GCC" = yes; then
8342 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8343 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8344 else
8345 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8346 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8347 fi
8348 ;;
8349
8350 sysv5* | sco3.2v5* | sco5v6*)
8351 # Note: We can NOT use -z defs as we might desire, because we do not
8352 # link with -lc, and that would cause any symbols used from libc to
8353 # always be unresolved, which means just about no library would
8354 # ever link correctly. If we're not using GNU ld we use -z text
8355 # though, which does catch some bad symbols but isn't as heavy-handed
8356 # as -z defs.
8357 no_undefined_flag='${wl}-z,text'
8358 allow_undefined_flag='${wl}-z,nodefs'
8359 archive_cmds_need_lc=no
8360 hardcode_shlibpath_var=no
8361 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8362 hardcode_libdir_separator=':'
8363 link_all_deplibs=yes
8364 export_dynamic_flag_spec='${wl}-Bexport'
8365 runpath_var='LD_RUN_PATH'
8366
8367 if test "$GCC" = yes; then
8368 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8369 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8370 else
8371 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8372 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8373 fi
8374 ;;
8375
8376 uts4*)
8377 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8378 hardcode_libdir_flag_spec='-L$libdir'
8379 hardcode_shlibpath_var=no
8380 ;;
8381
8382 *)
8383 ld_shlibs=no
8384 ;;
8385 esac
8386 fi
8387
8388 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8389 echo "${ECHO_T}$ld_shlibs" >&6; }
8390 test "$ld_shlibs" = no && can_build_shared=no
8391
8392 #
8393 # Do we need to explicitly link libc?
8394 #
8395 case "x$archive_cmds_need_lc" in
8396 x|xyes)
8397 # Assume -lc should be added
8398 archive_cmds_need_lc=yes
8399
8400 if test "$enable_shared" = yes && test "$GCC" = yes; then
8401 case $archive_cmds in
8402 *'~'*)
8403 # FIXME: we may have to deal with multi-command sequences.
8404 ;;
8405 '$CC '*)
8406 # Test whether the compiler implicitly links with -lc since on some
8407 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8408 # to ld, don't add -lc before -lgcc.
8409 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8410 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8411 $rm conftest*
8412 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8413
8414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8415 (eval $ac_compile) 2>&5
8416 ac_status=$?
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } 2>conftest.err; then
8419 soname=conftest
8420 lib=conftest
8421 libobjs=conftest.$ac_objext
8422 deplibs=
8423 wl=$lt_prog_compiler_wl
8424 pic_flag=$lt_prog_compiler_pic
8425 compiler_flags=-v
8426 linker_flags=-v
8427 verstring=
8428 output_objdir=.
8429 libname=conftest
8430 lt_save_allow_undefined_flag=$allow_undefined_flag
8431 allow_undefined_flag=
8432 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8433 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8434 ac_status=$?
8435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436 (exit $ac_status); }
8437 then
8438 archive_cmds_need_lc=no
8439 else
8440 archive_cmds_need_lc=yes
8441 fi
8442 allow_undefined_flag=$lt_save_allow_undefined_flag
8443 else
8444 cat conftest.err 1>&5
8445 fi
8446 $rm conftest*
8447 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8448 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8449 ;;
8450 esac
8451 fi
8452 ;;
8453 esac
8454
8455 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8456 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8457 library_names_spec=
8458 libname_spec='lib$name'
8459 soname_spec=
8460 shrext_cmds=".so"
8461 postinstall_cmds=
8462 postuninstall_cmds=
8463 finish_cmds=
8464 finish_eval=
8465 shlibpath_var=
8466 shlibpath_overrides_runpath=unknown
8467 version_type=none
8468 dynamic_linker="$host_os ld.so"
8469 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8470 if test "$GCC" = yes; then
8471 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8472 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8473 # if the path contains ";" then we assume it to be the separator
8474 # otherwise default to the standard path separator (i.e. ":") - it is
8475 # assumed that no part of a normal pathname contains ";" but that should
8476 # okay in the real world where ";" in dirpaths is itself problematic.
8477 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8478 else
8479 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8480 fi
8481 else
8482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8483 fi
8484 need_lib_prefix=unknown
8485 hardcode_into_libs=no
8486
8487 # when you set need_version to no, make sure it does not cause -set_version
8488 # flags to be left without arguments
8489 need_version=unknown
8490
8491 case $host_os in
8492 aix3*)
8493 version_type=linux
8494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8495 shlibpath_var=LIBPATH
8496
8497 # AIX 3 has no versioning support, so we append a major version to the name.
8498 soname_spec='${libname}${release}${shared_ext}$major'
8499 ;;
8500
8501 aix4* | aix5*)
8502 version_type=linux
8503 need_lib_prefix=no
8504 need_version=no
8505 hardcode_into_libs=yes
8506 if test "$host_cpu" = ia64; then
8507 # AIX 5 supports IA64
8508 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8509 shlibpath_var=LD_LIBRARY_PATH
8510 else
8511 # With GCC up to 2.95.x, collect2 would create an import file
8512 # for dependence libraries. The import file would start with
8513 # the line `#! .'. This would cause the generated library to
8514 # depend on `.', always an invalid library. This was fixed in
8515 # development snapshots of GCC prior to 3.0.
8516 case $host_os in
8517 aix4 | aix4.[01] | aix4.[01].*)
8518 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8519 echo ' yes '
8520 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8521 :
8522 else
8523 can_build_shared=no
8524 fi
8525 ;;
8526 esac
8527 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8528 # soname into executable. Probably we can add versioning support to
8529 # collect2, so additional links can be useful in future.
8530 if test "$aix_use_runtimelinking" = yes; then
8531 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8532 # instead of lib<name>.a to let people know that these are not
8533 # typical AIX shared libraries.
8534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8535 else
8536 # We preserve .a as extension for shared libraries through AIX4.2
8537 # and later when we are not doing run time linking.
8538 library_names_spec='${libname}${release}.a $libname.a'
8539 soname_spec='${libname}${release}${shared_ext}$major'
8540 fi
8541 shlibpath_var=LIBPATH
8542 fi
8543 ;;
8544
8545 amigaos*)
8546 library_names_spec='$libname.ixlibrary $libname.a'
8547 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8548 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'
8549 ;;
8550
8551 beos*)
8552 library_names_spec='${libname}${shared_ext}'
8553 dynamic_linker="$host_os ld.so"
8554 shlibpath_var=LIBRARY_PATH
8555 ;;
8556
8557 bsdi[45]*)
8558 version_type=linux
8559 need_version=no
8560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8561 soname_spec='${libname}${release}${shared_ext}$major'
8562 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8563 shlibpath_var=LD_LIBRARY_PATH
8564 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8565 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8566 # the default ld.so.conf also contains /usr/contrib/lib and
8567 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8568 # libtool to hard-code these into programs
8569 ;;
8570
8571 cygwin* | mingw* | pw32*)
8572 version_type=windows
8573 shrext_cmds=".dll"
8574 need_version=no
8575 need_lib_prefix=no
8576
8577 case $GCC,$host_os in
8578 yes,cygwin* | yes,mingw* | yes,pw32*)
8579 library_names_spec='$libname.dll.a'
8580 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8581 postinstall_cmds='base_file=`basename \${file}`~
8582 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8583 dldir=$destdir/`dirname \$dlpath`~
8584 test -d \$dldir || mkdir -p \$dldir~
8585 $install_prog $dir/$dlname \$dldir/$dlname~
8586 chmod a+x \$dldir/$dlname'
8587 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8588 dlpath=$dir/\$dldll~
8589 $rm \$dlpath'
8590 shlibpath_overrides_runpath=yes
8591
8592 case $host_os in
8593 cygwin*)
8594 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8595 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8596 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8597 ;;
8598 mingw*)
8599 # MinGW DLLs use traditional 'lib' prefix
8600 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8601 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8602 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8603 # It is most probably a Windows format PATH printed by
8604 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8605 # path with ; separators, and with drive letters. We can handle the
8606 # drive letters (cygwin fileutils understands them), so leave them,
8607 # especially as we might pass files found there to a mingw objdump,
8608 # which wouldn't understand a cygwinified path. Ahh.
8609 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8610 else
8611 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8612 fi
8613 ;;
8614 pw32*)
8615 # pw32 DLLs use 'pw' prefix rather than 'lib'
8616 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8617 ;;
8618 esac
8619 ;;
8620
8621 *)
8622 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8623 ;;
8624 esac
8625 dynamic_linker='Win32 ld.exe'
8626 # FIXME: first we should search . and the directory the executable is in
8627 shlibpath_var=PATH
8628 ;;
8629
8630 darwin* | rhapsody*)
8631 dynamic_linker="$host_os dyld"
8632 version_type=darwin
8633 need_lib_prefix=no
8634 need_version=no
8635 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8636 soname_spec='${libname}${release}${major}$shared_ext'
8637 shlibpath_overrides_runpath=yes
8638 shlibpath_var=DYLD_LIBRARY_PATH
8639 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8640 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8641 if test "$GCC" = yes; then
8642 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"`
8643 else
8644 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8645 fi
8646 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8647 ;;
8648
8649 dgux*)
8650 version_type=linux
8651 need_lib_prefix=no
8652 need_version=no
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 shlibpath_var=LD_LIBRARY_PATH
8656 ;;
8657
8658 freebsd1*)
8659 dynamic_linker=no
8660 ;;
8661
8662 freebsd* | dragonfly*)
8663 # DragonFly does not have aout. When/if they implement a new
8664 # versioning mechanism, adjust this.
8665 if test -x /usr/bin/objformat; then
8666 objformat=`/usr/bin/objformat`
8667 else
8668 case $host_os in
8669 freebsd[123]*) objformat=aout ;;
8670 *) objformat=elf ;;
8671 esac
8672 fi
8673 version_type=freebsd-$objformat
8674 case $version_type in
8675 freebsd-elf*)
8676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8677 need_version=no
8678 need_lib_prefix=no
8679 ;;
8680 freebsd-*)
8681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8682 need_version=yes
8683 ;;
8684 esac
8685 shlibpath_var=LD_LIBRARY_PATH
8686 case $host_os in
8687 freebsd2*)
8688 shlibpath_overrides_runpath=yes
8689 ;;
8690 freebsd3.[01]* | freebsdelf3.[01]*)
8691 shlibpath_overrides_runpath=yes
8692 hardcode_into_libs=yes
8693 ;;
8694 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8695 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8696 shlibpath_overrides_runpath=no
8697 hardcode_into_libs=yes
8698 ;;
8699 freebsd*) # from 4.6 on
8700 shlibpath_overrides_runpath=yes
8701 hardcode_into_libs=yes
8702 ;;
8703 esac
8704 ;;
8705
8706 gnu*)
8707 version_type=linux
8708 need_lib_prefix=no
8709 need_version=no
8710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8711 soname_spec='${libname}${release}${shared_ext}$major'
8712 shlibpath_var=LD_LIBRARY_PATH
8713 hardcode_into_libs=yes
8714 ;;
8715
8716 hpux9* | hpux10* | hpux11*)
8717 # Give a soname corresponding to the major version so that dld.sl refuses to
8718 # link against other versions.
8719 version_type=sunos
8720 need_lib_prefix=no
8721 need_version=no
8722 case $host_cpu in
8723 ia64*)
8724 shrext_cmds='.so'
8725 hardcode_into_libs=yes
8726 dynamic_linker="$host_os dld.so"
8727 shlibpath_var=LD_LIBRARY_PATH
8728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8730 soname_spec='${libname}${release}${shared_ext}$major'
8731 if test "X$HPUX_IA64_MODE" = X32; then
8732 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8733 else
8734 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8735 fi
8736 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8737 ;;
8738 hppa*64*)
8739 shrext_cmds='.sl'
8740 hardcode_into_libs=yes
8741 dynamic_linker="$host_os dld.sl"
8742 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8743 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8745 soname_spec='${libname}${release}${shared_ext}$major'
8746 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8747 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8748 ;;
8749 *)
8750 shrext_cmds='.sl'
8751 dynamic_linker="$host_os dld.sl"
8752 shlibpath_var=SHLIB_PATH
8753 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8755 soname_spec='${libname}${release}${shared_ext}$major'
8756 ;;
8757 esac
8758 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8759 postinstall_cmds='chmod 555 $lib'
8760 ;;
8761
8762 interix3*)
8763 version_type=linux
8764 need_lib_prefix=no
8765 need_version=no
8766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8767 soname_spec='${libname}${release}${shared_ext}$major'
8768 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8769 shlibpath_var=LD_LIBRARY_PATH
8770 shlibpath_overrides_runpath=no
8771 hardcode_into_libs=yes
8772 ;;
8773
8774 irix5* | irix6* | nonstopux*)
8775 case $host_os in
8776 nonstopux*) version_type=nonstopux ;;
8777 *)
8778 if test "$lt_cv_prog_gnu_ld" = yes; then
8779 version_type=linux
8780 else
8781 version_type=irix
8782 fi ;;
8783 esac
8784 need_lib_prefix=no
8785 need_version=no
8786 soname_spec='${libname}${release}${shared_ext}$major'
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8788 case $host_os in
8789 irix5* | nonstopux*)
8790 libsuff= shlibsuff=
8791 ;;
8792 *)
8793 case $LD in # libtool.m4 will add one of these switches to LD
8794 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8795 libsuff= shlibsuff= libmagic=32-bit;;
8796 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8797 libsuff=32 shlibsuff=N32 libmagic=N32;;
8798 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8799 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8800 *) libsuff= shlibsuff= libmagic=never-match;;
8801 esac
8802 ;;
8803 esac
8804 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8805 shlibpath_overrides_runpath=no
8806 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8807 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8808 hardcode_into_libs=yes
8809 ;;
8810
8811 # No shared lib support for Linux oldld, aout, or coff.
8812 linux*oldld* | linux*aout* | linux*coff*)
8813 dynamic_linker=no
8814 ;;
8815
8816 # This must be Linux ELF.
8817 linux* | k*bsd*-gnu)
8818 version_type=linux
8819 need_lib_prefix=no
8820 need_version=no
8821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 shlibpath_overrides_runpath=no
8826 # This implies no fast_install, which is unacceptable.
8827 # Some rework will be needed to allow for fast_install
8828 # before this can be enabled.
8829 hardcode_into_libs=yes
8830
8831 # Append ld.so.conf contents to the search path
8832 if test -f /etc/ld.so.conf; then
8833 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8834 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8835 fi
8836
8837 # We used to test for /lib/ld.so.1 and disable shared libraries on
8838 # powerpc, because MkLinux only supported shared libraries with the
8839 # GNU dynamic linker. Since this was broken with cross compilers,
8840 # most powerpc-linux boxes support dynamic linking these days and
8841 # people can always --disable-shared, the test was removed, and we
8842 # assume the GNU/Linux dynamic linker is in use.
8843 dynamic_linker='GNU/Linux ld.so'
8844 ;;
8845
8846 netbsdelf*-gnu)
8847 version_type=linux
8848 need_lib_prefix=no
8849 need_version=no
8850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8851 soname_spec='${libname}${release}${shared_ext}$major'
8852 shlibpath_var=LD_LIBRARY_PATH
8853 shlibpath_overrides_runpath=no
8854 hardcode_into_libs=yes
8855 dynamic_linker='NetBSD ld.elf_so'
8856 ;;
8857
8858 netbsd*)
8859 version_type=sunos
8860 need_lib_prefix=no
8861 need_version=no
8862 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8865 dynamic_linker='NetBSD (a.out) ld.so'
8866 else
8867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8868 soname_spec='${libname}${release}${shared_ext}$major'
8869 dynamic_linker='NetBSD ld.elf_so'
8870 fi
8871 shlibpath_var=LD_LIBRARY_PATH
8872 shlibpath_overrides_runpath=yes
8873 hardcode_into_libs=yes
8874 ;;
8875
8876 newsos6)
8877 version_type=linux
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 shlibpath_var=LD_LIBRARY_PATH
8880 shlibpath_overrides_runpath=yes
8881 ;;
8882
8883 nto-qnx*)
8884 version_type=linux
8885 need_lib_prefix=no
8886 need_version=no
8887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8888 soname_spec='${libname}${release}${shared_ext}$major'
8889 shlibpath_var=LD_LIBRARY_PATH
8890 shlibpath_overrides_runpath=yes
8891 ;;
8892
8893 openbsd*)
8894 version_type=sunos
8895 sys_lib_dlsearch_path_spec="/usr/lib"
8896 need_lib_prefix=no
8897 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8898 case $host_os in
8899 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8900 *) need_version=no ;;
8901 esac
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8903 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8904 shlibpath_var=LD_LIBRARY_PATH
8905 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8906 case $host_os in
8907 openbsd2.[89] | openbsd2.[89].*)
8908 shlibpath_overrides_runpath=no
8909 ;;
8910 *)
8911 shlibpath_overrides_runpath=yes
8912 ;;
8913 esac
8914 else
8915 shlibpath_overrides_runpath=yes
8916 fi
8917 ;;
8918
8919 os2*)
8920 libname_spec='$name'
8921 shrext_cmds=".dll"
8922 need_lib_prefix=no
8923 library_names_spec='$libname${shared_ext} $libname.a'
8924 dynamic_linker='OS/2 ld.exe'
8925 shlibpath_var=LIBPATH
8926 ;;
8927
8928 osf3* | osf4* | osf5*)
8929 version_type=osf
8930 need_lib_prefix=no
8931 need_version=no
8932 soname_spec='${libname}${release}${shared_ext}$major'
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 shlibpath_var=LD_LIBRARY_PATH
8935 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8936 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8937 ;;
8938
8939 solaris*)
8940 version_type=linux
8941 need_lib_prefix=no
8942 need_version=no
8943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8944 soname_spec='${libname}${release}${shared_ext}$major'
8945 shlibpath_var=LD_LIBRARY_PATH
8946 shlibpath_overrides_runpath=yes
8947 hardcode_into_libs=yes
8948 # ldd complains unless libraries are executable
8949 postinstall_cmds='chmod +x $lib'
8950 ;;
8951
8952 sunos4*)
8953 version_type=sunos
8954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8955 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8956 shlibpath_var=LD_LIBRARY_PATH
8957 shlibpath_overrides_runpath=yes
8958 if test "$with_gnu_ld" = yes; then
8959 need_lib_prefix=no
8960 fi
8961 need_version=yes
8962 ;;
8963
8964 sysv4 | sysv4.3*)
8965 version_type=linux
8966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8967 soname_spec='${libname}${release}${shared_ext}$major'
8968 shlibpath_var=LD_LIBRARY_PATH
8969 case $host_vendor in
8970 sni)
8971 shlibpath_overrides_runpath=no
8972 need_lib_prefix=no
8973 export_dynamic_flag_spec='${wl}-Blargedynsym'
8974 runpath_var=LD_RUN_PATH
8975 ;;
8976 siemens)
8977 need_lib_prefix=no
8978 ;;
8979 motorola)
8980 need_lib_prefix=no
8981 need_version=no
8982 shlibpath_overrides_runpath=no
8983 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8984 ;;
8985 esac
8986 ;;
8987
8988 sysv4*MP*)
8989 if test -d /usr/nec ;then
8990 version_type=linux
8991 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8992 soname_spec='$libname${shared_ext}.$major'
8993 shlibpath_var=LD_LIBRARY_PATH
8994 fi
8995 ;;
8996
8997 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8998 version_type=freebsd-elf
8999 need_lib_prefix=no
9000 need_version=no
9001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9002 soname_spec='${libname}${release}${shared_ext}$major'
9003 shlibpath_var=LD_LIBRARY_PATH
9004 hardcode_into_libs=yes
9005 if test "$with_gnu_ld" = yes; then
9006 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9007 shlibpath_overrides_runpath=no
9008 else
9009 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9010 shlibpath_overrides_runpath=yes
9011 case $host_os in
9012 sco3.2v5*)
9013 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9014 ;;
9015 esac
9016 fi
9017 sys_lib_dlsearch_path_spec='/usr/lib'
9018 ;;
9019
9020 uts4*)
9021 version_type=linux
9022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9023 soname_spec='${libname}${release}${shared_ext}$major'
9024 shlibpath_var=LD_LIBRARY_PATH
9025 ;;
9026
9027 *)
9028 dynamic_linker=no
9029 ;;
9030 esac
9031 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9032 echo "${ECHO_T}$dynamic_linker" >&6; }
9033 test "$dynamic_linker" = no && can_build_shared=no
9034
9035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9036 if test "$GCC" = yes; then
9037 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9038 fi
9039
9040 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9041 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9042 hardcode_action=
9043 if test -n "$hardcode_libdir_flag_spec" || \
9044 test -n "$runpath_var" || \
9045 test "X$hardcode_automatic" = "Xyes" ; then
9046
9047 # We can hardcode non-existant directories.
9048 if test "$hardcode_direct" != no &&
9049 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9050 # have to relink, otherwise we might link with an installed library
9051 # when we should be linking with a yet-to-be-installed one
9052 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9053 test "$hardcode_minus_L" != no; then
9054 # Linking always hardcodes the temporary library directory.
9055 hardcode_action=relink
9056 else
9057 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9058 hardcode_action=immediate
9059 fi
9060 else
9061 # We cannot hardcode anything, or else we can only hardcode existing
9062 # directories.
9063 hardcode_action=unsupported
9064 fi
9065 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9066 echo "${ECHO_T}$hardcode_action" >&6; }
9067
9068 if test "$hardcode_action" = relink; then
9069 # Fast installation is not supported
9070 enable_fast_install=no
9071 elif test "$shlibpath_overrides_runpath" = yes ||
9072 test "$enable_shared" = no; then
9073 # Fast installation is not necessary
9074 enable_fast_install=needless
9075 fi
9076
9077 striplib=
9078 old_striplib=
9079 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9080 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9081 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9082 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9083 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9084 { echo "$as_me:$LINENO: result: yes" >&5
9085 echo "${ECHO_T}yes" >&6; }
9086 else
9087 # FIXME - insert some real tests, host_os isn't really good enough
9088 case $host_os in
9089 darwin*)
9090 if test -n "$STRIP" ; then
9091 striplib="$STRIP -x"
9092 { echo "$as_me:$LINENO: result: yes" >&5
9093 echo "${ECHO_T}yes" >&6; }
9094 else
9095 { echo "$as_me:$LINENO: result: no" >&5
9096 echo "${ECHO_T}no" >&6; }
9097 fi
9098 ;;
9099 *)
9100 { echo "$as_me:$LINENO: result: no" >&5
9101 echo "${ECHO_T}no" >&6; }
9102 ;;
9103 esac
9104 fi
9105
9106 if test "x$enable_dlopen" != xyes; then
9107 enable_dlopen=unknown
9108 enable_dlopen_self=unknown
9109 enable_dlopen_self_static=unknown
9110 else
9111 lt_cv_dlopen=no
9112 lt_cv_dlopen_libs=
9113
9114 case $host_os in
9115 beos*)
9116 lt_cv_dlopen="load_add_on"
9117 lt_cv_dlopen_libs=
9118 lt_cv_dlopen_self=yes
9119 ;;
9120
9121 mingw* | pw32*)
9122 lt_cv_dlopen="LoadLibrary"
9123 lt_cv_dlopen_libs=
9124 ;;
9125
9126 cygwin*)
9127 lt_cv_dlopen="dlopen"
9128 lt_cv_dlopen_libs=
9129 ;;
9130
9131 darwin*)
9132 # if libdl is installed we need to link against it
9133 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9134 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9135 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9136 echo $ECHO_N "(cached) $ECHO_C" >&6
9137 else
9138 ac_check_lib_save_LIBS=$LIBS
9139 LIBS="-ldl $LIBS"
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146
9147 /* Override any GCC internal prototype to avoid an error.
9148 Use char because int might match the return type of a GCC
9149 builtin and then its argument prototype would still apply. */
9150 #ifdef __cplusplus
9151 extern "C"
9152 #endif
9153 char dlopen ();
9154 int
9155 main ()
9156 {
9157 return dlopen ();
9158 ;
9159 return 0;
9160 }
9161 _ACEOF
9162 rm -f conftest.$ac_objext conftest$ac_exeext
9163 if { (ac_try="$ac_link"
9164 case "(($ac_try" in
9165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9166 *) ac_try_echo=$ac_try;;
9167 esac
9168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9169 (eval "$ac_link") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest$ac_exeext &&
9179 $as_test_x conftest$ac_exeext; then
9180 ac_cv_lib_dl_dlopen=yes
9181 else
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185 ac_cv_lib_dl_dlopen=no
9186 fi
9187
9188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9189 conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9191 fi
9192 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9193 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9194 if test $ac_cv_lib_dl_dlopen = yes; then
9195 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9196 else
9197
9198 lt_cv_dlopen="dyld"
9199 lt_cv_dlopen_libs=
9200 lt_cv_dlopen_self=yes
9201
9202 fi
9203
9204 ;;
9205
9206 *)
9207 { echo "$as_me:$LINENO: checking for shl_load" >&5
9208 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9209 if test "${ac_cv_func_shl_load+set}" = set; then
9210 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 else
9212 cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h. */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h. */
9218 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9220 #define shl_load innocuous_shl_load
9221
9222 /* System header to define __stub macros and hopefully few prototypes,
9223 which can conflict with char shl_load (); below.
9224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9225 <limits.h> exists even on freestanding compilers. */
9226
9227 #ifdef __STDC__
9228 # include <limits.h>
9229 #else
9230 # include <assert.h>
9231 #endif
9232
9233 #undef shl_load
9234
9235 /* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9238 #ifdef __cplusplus
9239 extern "C"
9240 #endif
9241 char shl_load ();
9242 /* The GNU C library defines this for functions which it implements
9243 to always fail with ENOSYS. Some functions are actually named
9244 something starting with __ and the normal name is an alias. */
9245 #if defined __stub_shl_load || defined __stub___shl_load
9246 choke me
9247 #endif
9248
9249 int
9250 main ()
9251 {
9252 return shl_load ();
9253 ;
9254 return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext conftest$ac_exeext
9258 if { (ac_try="$ac_link"
9259 case "(($ac_try" in
9260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9262 esac
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_link") 2>conftest.er1
9265 ac_status=$?
9266 grep -v '^ *+' conftest.er1 >conftest.err
9267 rm -f conftest.er1
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } && {
9271 test -z "$ac_c_werror_flag" ||
9272 test ! -s conftest.err
9273 } && test -s conftest$ac_exeext &&
9274 $as_test_x conftest$ac_exeext; then
9275 ac_cv_func_shl_load=yes
9276 else
9277 echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280 ac_cv_func_shl_load=no
9281 fi
9282
9283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9284 conftest$ac_exeext conftest.$ac_ext
9285 fi
9286 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9287 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9288 if test $ac_cv_func_shl_load = yes; then
9289 lt_cv_dlopen="shl_load"
9290 else
9291 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9292 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9293 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9294 echo $ECHO_N "(cached) $ECHO_C" >&6
9295 else
9296 ac_check_lib_save_LIBS=$LIBS
9297 LIBS="-ldld $LIBS"
9298 cat >conftest.$ac_ext <<_ACEOF
9299 /* confdefs.h. */
9300 _ACEOF
9301 cat confdefs.h >>conftest.$ac_ext
9302 cat >>conftest.$ac_ext <<_ACEOF
9303 /* end confdefs.h. */
9304
9305 /* Override any GCC internal prototype to avoid an error.
9306 Use char because int might match the return type of a GCC
9307 builtin and then its argument prototype would still apply. */
9308 #ifdef __cplusplus
9309 extern "C"
9310 #endif
9311 char shl_load ();
9312 int
9313 main ()
9314 {
9315 return shl_load ();
9316 ;
9317 return 0;
9318 }
9319 _ACEOF
9320 rm -f conftest.$ac_objext conftest$ac_exeext
9321 if { (ac_try="$ac_link"
9322 case "(($ac_try" in
9323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9324 *) ac_try_echo=$ac_try;;
9325 esac
9326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9327 (eval "$ac_link") 2>conftest.er1
9328 ac_status=$?
9329 grep -v '^ *+' conftest.er1 >conftest.err
9330 rm -f conftest.er1
9331 cat conftest.err >&5
9332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333 (exit $ac_status); } && {
9334 test -z "$ac_c_werror_flag" ||
9335 test ! -s conftest.err
9336 } && test -s conftest$ac_exeext &&
9337 $as_test_x conftest$ac_exeext; then
9338 ac_cv_lib_dld_shl_load=yes
9339 else
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.$ac_ext >&5
9342
9343 ac_cv_lib_dld_shl_load=no
9344 fi
9345
9346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS=$ac_check_lib_save_LIBS
9349 fi
9350 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9351 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9352 if test $ac_cv_lib_dld_shl_load = yes; then
9353 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9354 else
9355 { echo "$as_me:$LINENO: checking for dlopen" >&5
9356 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9357 if test "${ac_cv_func_dlopen+set}" = set; then
9358 echo $ECHO_N "(cached) $ECHO_C" >&6
9359 else
9360 cat >conftest.$ac_ext <<_ACEOF
9361 /* confdefs.h. */
9362 _ACEOF
9363 cat confdefs.h >>conftest.$ac_ext
9364 cat >>conftest.$ac_ext <<_ACEOF
9365 /* end confdefs.h. */
9366 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9367 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9368 #define dlopen innocuous_dlopen
9369
9370 /* System header to define __stub macros and hopefully few prototypes,
9371 which can conflict with char dlopen (); below.
9372 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9373 <limits.h> exists even on freestanding compilers. */
9374
9375 #ifdef __STDC__
9376 # include <limits.h>
9377 #else
9378 # include <assert.h>
9379 #endif
9380
9381 #undef dlopen
9382
9383 /* Override any GCC internal prototype to avoid an error.
9384 Use char because int might match the return type of a GCC
9385 builtin and then its argument prototype would still apply. */
9386 #ifdef __cplusplus
9387 extern "C"
9388 #endif
9389 char dlopen ();
9390 /* The GNU C library defines this for functions which it implements
9391 to always fail with ENOSYS. Some functions are actually named
9392 something starting with __ and the normal name is an alias. */
9393 #if defined __stub_dlopen || defined __stub___dlopen
9394 choke me
9395 #endif
9396
9397 int
9398 main ()
9399 {
9400 return dlopen ();
9401 ;
9402 return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext conftest$ac_exeext
9406 if { (ac_try="$ac_link"
9407 case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410 esac
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_link") 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } && {
9419 test -z "$ac_c_werror_flag" ||
9420 test ! -s conftest.err
9421 } && test -s conftest$ac_exeext &&
9422 $as_test_x conftest$ac_exeext; then
9423 ac_cv_func_dlopen=yes
9424 else
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_cv_func_dlopen=no
9429 fi
9430
9431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9432 conftest$ac_exeext conftest.$ac_ext
9433 fi
9434 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9435 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9436 if test $ac_cv_func_dlopen = yes; then
9437 lt_cv_dlopen="dlopen"
9438 else
9439 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9440 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9441 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9442 echo $ECHO_N "(cached) $ECHO_C" >&6
9443 else
9444 ac_check_lib_save_LIBS=$LIBS
9445 LIBS="-ldl $LIBS"
9446 cat >conftest.$ac_ext <<_ACEOF
9447 /* confdefs.h. */
9448 _ACEOF
9449 cat confdefs.h >>conftest.$ac_ext
9450 cat >>conftest.$ac_ext <<_ACEOF
9451 /* end confdefs.h. */
9452
9453 /* Override any GCC internal prototype to avoid an error.
9454 Use char because int might match the return type of a GCC
9455 builtin and then its argument prototype would still apply. */
9456 #ifdef __cplusplus
9457 extern "C"
9458 #endif
9459 char dlopen ();
9460 int
9461 main ()
9462 {
9463 return dlopen ();
9464 ;
9465 return 0;
9466 }
9467 _ACEOF
9468 rm -f conftest.$ac_objext conftest$ac_exeext
9469 if { (ac_try="$ac_link"
9470 case "(($ac_try" in
9471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9472 *) ac_try_echo=$ac_try;;
9473 esac
9474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9475 (eval "$ac_link") 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } && {
9482 test -z "$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 } && test -s conftest$ac_exeext &&
9485 $as_test_x conftest$ac_exeext; then
9486 ac_cv_lib_dl_dlopen=yes
9487 else
9488 echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 ac_cv_lib_dl_dlopen=no
9492 fi
9493
9494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9495 conftest$ac_exeext conftest.$ac_ext
9496 LIBS=$ac_check_lib_save_LIBS
9497 fi
9498 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9499 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9500 if test $ac_cv_lib_dl_dlopen = yes; then
9501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9502 else
9503 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9504 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9505 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9506 echo $ECHO_N "(cached) $ECHO_C" >&6
9507 else
9508 ac_check_lib_save_LIBS=$LIBS
9509 LIBS="-lsvld $LIBS"
9510 cat >conftest.$ac_ext <<_ACEOF
9511 /* confdefs.h. */
9512 _ACEOF
9513 cat confdefs.h >>conftest.$ac_ext
9514 cat >>conftest.$ac_ext <<_ACEOF
9515 /* end confdefs.h. */
9516
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 char dlopen ();
9524 int
9525 main ()
9526 {
9527 return dlopen ();
9528 ;
9529 return 0;
9530 }
9531 _ACEOF
9532 rm -f conftest.$ac_objext conftest$ac_exeext
9533 if { (ac_try="$ac_link"
9534 case "(($ac_try" in
9535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9536 *) ac_try_echo=$ac_try;;
9537 esac
9538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9539 (eval "$ac_link") 2>conftest.er1
9540 ac_status=$?
9541 grep -v '^ *+' conftest.er1 >conftest.err
9542 rm -f conftest.er1
9543 cat conftest.err >&5
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); } && {
9546 test -z "$ac_c_werror_flag" ||
9547 test ! -s conftest.err
9548 } && test -s conftest$ac_exeext &&
9549 $as_test_x conftest$ac_exeext; then
9550 ac_cv_lib_svld_dlopen=yes
9551 else
9552 echo "$as_me: failed program was:" >&5
9553 sed 's/^/| /' conftest.$ac_ext >&5
9554
9555 ac_cv_lib_svld_dlopen=no
9556 fi
9557
9558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9559 conftest$ac_exeext conftest.$ac_ext
9560 LIBS=$ac_check_lib_save_LIBS
9561 fi
9562 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9563 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9564 if test $ac_cv_lib_svld_dlopen = yes; then
9565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9566 else
9567 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9568 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9569 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572 ac_check_lib_save_LIBS=$LIBS
9573 LIBS="-ldld $LIBS"
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h. */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h. */
9580
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 char dld_link ();
9588 int
9589 main ()
9590 {
9591 return dld_link ();
9592 ;
9593 return 0;
9594 }
9595 _ACEOF
9596 rm -f conftest.$ac_objext conftest$ac_exeext
9597 if { (ac_try="$ac_link"
9598 case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9601 esac
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_link") 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } && {
9610 test -z "$ac_c_werror_flag" ||
9611 test ! -s conftest.err
9612 } && test -s conftest$ac_exeext &&
9613 $as_test_x conftest$ac_exeext; then
9614 ac_cv_lib_dld_dld_link=yes
9615 else
9616 echo "$as_me: failed program was:" >&5
9617 sed 's/^/| /' conftest.$ac_ext >&5
9618
9619 ac_cv_lib_dld_dld_link=no
9620 fi
9621
9622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9623 conftest$ac_exeext conftest.$ac_ext
9624 LIBS=$ac_check_lib_save_LIBS
9625 fi
9626 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9627 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9628 if test $ac_cv_lib_dld_dld_link = yes; then
9629 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9630 fi
9631
9632
9633 fi
9634
9635
9636 fi
9637
9638
9639 fi
9640
9641
9642 fi
9643
9644
9645 fi
9646
9647 ;;
9648 esac
9649
9650 if test "x$lt_cv_dlopen" != xno; then
9651 enable_dlopen=yes
9652 else
9653 enable_dlopen=no
9654 fi
9655
9656 case $lt_cv_dlopen in
9657 dlopen)
9658 save_CPPFLAGS="$CPPFLAGS"
9659 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9660
9661 save_LDFLAGS="$LDFLAGS"
9662 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9663
9664 save_LIBS="$LIBS"
9665 LIBS="$lt_cv_dlopen_libs $LIBS"
9666
9667 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9668 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
9669 if test "${lt_cv_dlopen_self+set}" = set; then
9670 echo $ECHO_N "(cached) $ECHO_C" >&6
9671 else
9672 if test "$cross_compiling" = yes; then :
9673 lt_cv_dlopen_self=cross
9674 else
9675 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9676 lt_status=$lt_dlunknown
9677 cat > conftest.$ac_ext <<EOF
9678 #line 9679 "configure"
9679 #include "confdefs.h"
9680
9681 #if HAVE_DLFCN_H
9682 #include <dlfcn.h>
9683 #endif
9684
9685 #include <stdio.h>
9686
9687 #ifdef RTLD_GLOBAL
9688 # define LT_DLGLOBAL RTLD_GLOBAL
9689 #else
9690 # ifdef DL_GLOBAL
9691 # define LT_DLGLOBAL DL_GLOBAL
9692 # else
9693 # define LT_DLGLOBAL 0
9694 # endif
9695 #endif
9696
9697 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9698 find out it does not work in some platform. */
9699 #ifndef LT_DLLAZY_OR_NOW
9700 # ifdef RTLD_LAZY
9701 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9702 # else
9703 # ifdef DL_LAZY
9704 # define LT_DLLAZY_OR_NOW DL_LAZY
9705 # else
9706 # ifdef RTLD_NOW
9707 # define LT_DLLAZY_OR_NOW RTLD_NOW
9708 # else
9709 # ifdef DL_NOW
9710 # define LT_DLLAZY_OR_NOW DL_NOW
9711 # else
9712 # define LT_DLLAZY_OR_NOW 0
9713 # endif
9714 # endif
9715 # endif
9716 # endif
9717 #endif
9718
9719 #ifdef __cplusplus
9720 extern "C" void exit (int);
9721 #endif
9722
9723 void fnord() { int i=42;}
9724 int main ()
9725 {
9726 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9727 int status = $lt_dlunknown;
9728
9729 if (self)
9730 {
9731 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9732 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9733 /* dlclose (self); */
9734 }
9735 else
9736 puts (dlerror ());
9737
9738 exit (status);
9739 }
9740 EOF
9741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9742 (eval $ac_link) 2>&5
9743 ac_status=$?
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9746 (./conftest; exit; ) >&5 2>/dev/null
9747 lt_status=$?
9748 case x$lt_status in
9749 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9750 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9751 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9752 esac
9753 else :
9754 # compilation failed
9755 lt_cv_dlopen_self=no
9756 fi
9757 fi
9758 rm -fr conftest*
9759
9760
9761 fi
9762 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9763 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
9764
9765 if test "x$lt_cv_dlopen_self" = xyes; then
9766 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9767 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9768 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
9769 if test "${lt_cv_dlopen_self_static+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 if test "$cross_compiling" = yes; then :
9773 lt_cv_dlopen_self_static=cross
9774 else
9775 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9776 lt_status=$lt_dlunknown
9777 cat > conftest.$ac_ext <<EOF
9778 #line 9779 "configure"
9779 #include "confdefs.h"
9780
9781 #if HAVE_DLFCN_H
9782 #include <dlfcn.h>
9783 #endif
9784
9785 #include <stdio.h>
9786
9787 #ifdef RTLD_GLOBAL
9788 # define LT_DLGLOBAL RTLD_GLOBAL
9789 #else
9790 # ifdef DL_GLOBAL
9791 # define LT_DLGLOBAL DL_GLOBAL
9792 # else
9793 # define LT_DLGLOBAL 0
9794 # endif
9795 #endif
9796
9797 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9798 find out it does not work in some platform. */
9799 #ifndef LT_DLLAZY_OR_NOW
9800 # ifdef RTLD_LAZY
9801 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9802 # else
9803 # ifdef DL_LAZY
9804 # define LT_DLLAZY_OR_NOW DL_LAZY
9805 # else
9806 # ifdef RTLD_NOW
9807 # define LT_DLLAZY_OR_NOW RTLD_NOW
9808 # else
9809 # ifdef DL_NOW
9810 # define LT_DLLAZY_OR_NOW DL_NOW
9811 # else
9812 # define LT_DLLAZY_OR_NOW 0
9813 # endif
9814 # endif
9815 # endif
9816 # endif
9817 #endif
9818
9819 #ifdef __cplusplus
9820 extern "C" void exit (int);
9821 #endif
9822
9823 void fnord() { int i=42;}
9824 int main ()
9825 {
9826 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9827 int status = $lt_dlunknown;
9828
9829 if (self)
9830 {
9831 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9832 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9833 /* dlclose (self); */
9834 }
9835 else
9836 puts (dlerror ());
9837
9838 exit (status);
9839 }
9840 EOF
9841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9842 (eval $ac_link) 2>&5
9843 ac_status=$?
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9846 (./conftest; exit; ) >&5 2>/dev/null
9847 lt_status=$?
9848 case x$lt_status in
9849 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9850 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9851 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9852 esac
9853 else :
9854 # compilation failed
9855 lt_cv_dlopen_self_static=no
9856 fi
9857 fi
9858 rm -fr conftest*
9859
9860
9861 fi
9862 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9863 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
9864 fi
9865
9866 CPPFLAGS="$save_CPPFLAGS"
9867 LDFLAGS="$save_LDFLAGS"
9868 LIBS="$save_LIBS"
9869 ;;
9870 esac
9871
9872 case $lt_cv_dlopen_self in
9873 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9874 *) enable_dlopen_self=unknown ;;
9875 esac
9876
9877 case $lt_cv_dlopen_self_static in
9878 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9879 *) enable_dlopen_self_static=unknown ;;
9880 esac
9881 fi
9882
9883
9884 # Report which library types will actually be built
9885 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9886 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
9887 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
9888 echo "${ECHO_T}$can_build_shared" >&6; }
9889
9890 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9891 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
9892 test "$can_build_shared" = "no" && enable_shared=no
9893
9894 # On AIX, shared libraries and static libraries use the same namespace, and
9895 # are all built from PIC.
9896 case $host_os in
9897 aix3*)
9898 test "$enable_shared" = yes && enable_static=no
9899 if test -n "$RANLIB"; then
9900 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9901 postinstall_cmds='$RANLIB $lib'
9902 fi
9903 ;;
9904
9905 aix4* | aix5*)
9906 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9907 test "$enable_shared" = yes && enable_static=no
9908 fi
9909 ;;
9910 esac
9911 { echo "$as_me:$LINENO: result: $enable_shared" >&5
9912 echo "${ECHO_T}$enable_shared" >&6; }
9913
9914 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9915 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
9916 # Make sure either enable_shared or enable_static is yes.
9917 test "$enable_shared" = yes || enable_static=yes
9918 { echo "$as_me:$LINENO: result: $enable_static" >&5
9919 echo "${ECHO_T}$enable_static" >&6; }
9920
9921 # The else clause should only fire when bootstrapping the
9922 # libtool distribution, otherwise you forgot to ship ltmain.sh
9923 # with your package, and you will get complaints that there are
9924 # no rules to generate ltmain.sh.
9925 if test -f "$ltmain"; then
9926 # See if we are running on zsh, and set the options which allow our commands through
9927 # without removal of \ escapes.
9928 if test -n "${ZSH_VERSION+set}" ; then
9929 setopt NO_GLOB_SUBST
9930 fi
9931 # Now quote all the things that may contain metacharacters while being
9932 # careful not to overquote the AC_SUBSTed values. We take copies of the
9933 # variables and quote the copies for generation of the libtool script.
9934 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9935 SED SHELL STRIP \
9936 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9937 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9938 deplibs_check_method reload_flag reload_cmds need_locks \
9939 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9940 lt_cv_sys_global_symbol_to_c_name_address \
9941 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9942 old_postinstall_cmds old_postuninstall_cmds \
9943 compiler \
9944 CC \
9945 LD \
9946 lt_prog_compiler_wl \
9947 lt_prog_compiler_pic \
9948 lt_prog_compiler_static \
9949 lt_prog_compiler_no_builtin_flag \
9950 export_dynamic_flag_spec \
9951 thread_safe_flag_spec \
9952 whole_archive_flag_spec \
9953 enable_shared_with_static_runtimes \
9954 old_archive_cmds \
9955 old_archive_from_new_cmds \
9956 predep_objects \
9957 postdep_objects \
9958 predeps \
9959 postdeps \
9960 compiler_lib_search_path \
9961 archive_cmds \
9962 archive_expsym_cmds \
9963 postinstall_cmds \
9964 postuninstall_cmds \
9965 old_archive_from_expsyms_cmds \
9966 allow_undefined_flag \
9967 no_undefined_flag \
9968 export_symbols_cmds \
9969 hardcode_libdir_flag_spec \
9970 hardcode_libdir_flag_spec_ld \
9971 hardcode_libdir_separator \
9972 hardcode_automatic \
9973 module_cmds \
9974 module_expsym_cmds \
9975 lt_cv_prog_compiler_c_o \
9976 exclude_expsyms \
9977 include_expsyms; do
9978
9979 case $var in
9980 old_archive_cmds | \
9981 old_archive_from_new_cmds | \
9982 archive_cmds | \
9983 archive_expsym_cmds | \
9984 module_cmds | \
9985 module_expsym_cmds | \
9986 old_archive_from_expsyms_cmds | \
9987 export_symbols_cmds | \
9988 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9989 postinstall_cmds | postuninstall_cmds | \
9990 old_postinstall_cmds | old_postuninstall_cmds | \
9991 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9992 # Double-quote double-evaled strings.
9993 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9994 ;;
9995 *)
9996 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9997 ;;
9998 esac
9999 done
10000
10001 case $lt_echo in
10002 *'\$0 --fallback-echo"')
10003 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10004 ;;
10005 esac
10006
10007 cfgfile="${ofile}T"
10008 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10009 $rm -f "$cfgfile"
10010 { echo "$as_me:$LINENO: creating $ofile" >&5
10011 echo "$as_me: creating $ofile" >&6;}
10012
10013 cat <<__EOF__ >> "$cfgfile"
10014 #! $SHELL
10015
10016 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10017 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10018 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10019 #
10020 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10021 # Free Software Foundation, Inc.
10022 #
10023 # This file is part of GNU Libtool:
10024 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10025 #
10026 # This program is free software; you can redistribute it and/or modify
10027 # it under the terms of the GNU General Public License as published by
10028 # the Free Software Foundation; either version 2 of the License, or
10029 # (at your option) any later version.
10030 #
10031 # This program is distributed in the hope that it will be useful, but
10032 # WITHOUT ANY WARRANTY; without even the implied warranty of
10033 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10034 # General Public License for more details.
10035 #
10036 # You should have received a copy of the GNU General Public License
10037 # along with this program; if not, write to the Free Software
10038 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10039 #
10040 # As a special exception to the GNU General Public License, if you
10041 # distribute this file as part of a program that contains a
10042 # configuration script generated by Autoconf, you may include it under
10043 # the same distribution terms that you use for the rest of that program.
10044
10045 # A sed program that does not truncate output.
10046 SED=$lt_SED
10047
10048 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10049 Xsed="$SED -e 1s/^X//"
10050
10051 # The HP-UX ksh and POSIX shell print the target directory to stdout
10052 # if CDPATH is set.
10053 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10054
10055 # The names of the tagged configurations supported by this script.
10056 available_tags=
10057
10058 # ### BEGIN LIBTOOL CONFIG
10059
10060 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10061
10062 # Shell to use when invoking shell scripts.
10063 SHELL=$lt_SHELL
10064
10065 # Whether or not to build shared libraries.
10066 build_libtool_libs=$enable_shared
10067
10068 # Whether or not to build static libraries.
10069 build_old_libs=$enable_static
10070
10071 # Whether or not to add -lc for building shared libraries.
10072 build_libtool_need_lc=$archive_cmds_need_lc
10073
10074 # Whether or not to disallow shared libs when runtime libs are static
10075 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10076
10077 # Whether or not to optimize for fast installation.
10078 fast_install=$enable_fast_install
10079
10080 # The host system.
10081 host_alias=$host_alias
10082 host=$host
10083 host_os=$host_os
10084
10085 # The build system.
10086 build_alias=$build_alias
10087 build=$build
10088 build_os=$build_os
10089
10090 # An echo program that does not interpret backslashes.
10091 echo=$lt_echo
10092
10093 # The archiver.
10094 AR=$lt_AR
10095 AR_FLAGS=$lt_AR_FLAGS
10096
10097 # A C compiler.
10098 LTCC=$lt_LTCC
10099
10100 # LTCC compiler flags.
10101 LTCFLAGS=$lt_LTCFLAGS
10102
10103 # A language-specific compiler.
10104 CC=$lt_compiler
10105
10106 # Is the compiler the GNU C compiler?
10107 with_gcc=$GCC
10108
10109 # An ERE matcher.
10110 EGREP=$lt_EGREP
10111
10112 # The linker used to build libraries.
10113 LD=$lt_LD
10114
10115 # Whether we need hard or soft links.
10116 LN_S=$lt_LN_S
10117
10118 # A BSD-compatible nm program.
10119 NM=$lt_NM
10120
10121 # A symbol stripping program
10122 STRIP=$lt_STRIP
10123
10124 # Used to examine libraries when file_magic_cmd begins "file"
10125 MAGIC_CMD=$MAGIC_CMD
10126
10127 # Used on cygwin: DLL creation program.
10128 DLLTOOL="$DLLTOOL"
10129
10130 # Used on cygwin: object dumper.
10131 OBJDUMP="$OBJDUMP"
10132
10133 # Used on cygwin: assembler.
10134 AS="$AS"
10135
10136 # The name of the directory that contains temporary libtool files.
10137 objdir=$objdir
10138
10139 # How to create reloadable object files.
10140 reload_flag=$lt_reload_flag
10141 reload_cmds=$lt_reload_cmds
10142
10143 # How to pass a linker flag through the compiler.
10144 wl=$lt_lt_prog_compiler_wl
10145
10146 # Object file suffix (normally "o").
10147 objext="$ac_objext"
10148
10149 # Old archive suffix (normally "a").
10150 libext="$libext"
10151
10152 # Shared library suffix (normally ".so").
10153 shrext_cmds='$shrext_cmds'
10154
10155 # Executable file suffix (normally "").
10156 exeext="$exeext"
10157
10158 # Additional compiler flags for building library objects.
10159 pic_flag=$lt_lt_prog_compiler_pic
10160 pic_mode=$pic_mode
10161
10162 # What is the maximum length of a command?
10163 max_cmd_len=$lt_cv_sys_max_cmd_len
10164
10165 # Does compiler simultaneously support -c and -o options?
10166 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10167
10168 # Must we lock files when doing compilation?
10169 need_locks=$lt_need_locks
10170
10171 # Do we need the lib prefix for modules?
10172 need_lib_prefix=$need_lib_prefix
10173
10174 # Do we need a version for libraries?
10175 need_version=$need_version
10176
10177 # Whether dlopen is supported.
10178 dlopen_support=$enable_dlopen
10179
10180 # Whether dlopen of programs is supported.
10181 dlopen_self=$enable_dlopen_self
10182
10183 # Whether dlopen of statically linked programs is supported.
10184 dlopen_self_static=$enable_dlopen_self_static
10185
10186 # Compiler flag to prevent dynamic linking.
10187 link_static_flag=$lt_lt_prog_compiler_static
10188
10189 # Compiler flag to turn off builtin functions.
10190 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10191
10192 # Compiler flag to allow reflexive dlopens.
10193 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10194
10195 # Compiler flag to generate shared objects directly from archives.
10196 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10197
10198 # Compiler flag to generate thread-safe objects.
10199 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10200
10201 # Library versioning type.
10202 version_type=$version_type
10203
10204 # Format of library name prefix.
10205 libname_spec=$lt_libname_spec
10206
10207 # List of archive names. First name is the real one, the rest are links.
10208 # The last name is the one that the linker finds with -lNAME.
10209 library_names_spec=$lt_library_names_spec
10210
10211 # The coded name of the library, if different from the real name.
10212 soname_spec=$lt_soname_spec
10213
10214 # Commands used to build and install an old-style archive.
10215 RANLIB=$lt_RANLIB
10216 old_archive_cmds=$lt_old_archive_cmds
10217 old_postinstall_cmds=$lt_old_postinstall_cmds
10218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10219
10220 # Create an old-style archive from a shared archive.
10221 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10222
10223 # Create a temporary old-style archive to link instead of a shared archive.
10224 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10225
10226 # Commands used to build and install a shared archive.
10227 archive_cmds=$lt_archive_cmds
10228 archive_expsym_cmds=$lt_archive_expsym_cmds
10229 postinstall_cmds=$lt_postinstall_cmds
10230 postuninstall_cmds=$lt_postuninstall_cmds
10231
10232 # Commands used to build a loadable module (assumed same as above if empty)
10233 module_cmds=$lt_module_cmds
10234 module_expsym_cmds=$lt_module_expsym_cmds
10235
10236 # Commands to strip libraries.
10237 old_striplib=$lt_old_striplib
10238 striplib=$lt_striplib
10239
10240 # Dependencies to place before the objects being linked to create a
10241 # shared library.
10242 predep_objects=$lt_predep_objects
10243
10244 # Dependencies to place after the objects being linked to create a
10245 # shared library.
10246 postdep_objects=$lt_postdep_objects
10247
10248 # Dependencies to place before the objects being linked to create a
10249 # shared library.
10250 predeps=$lt_predeps
10251
10252 # Dependencies to place after the objects being linked to create a
10253 # shared library.
10254 postdeps=$lt_postdeps
10255
10256 # The library search path used internally by the compiler when linking
10257 # a shared library.
10258 compiler_lib_search_path=$lt_compiler_lib_search_path
10259
10260 # Method to check whether dependent libraries are shared objects.
10261 deplibs_check_method=$lt_deplibs_check_method
10262
10263 # Command to use when deplibs_check_method == file_magic.
10264 file_magic_cmd=$lt_file_magic_cmd
10265
10266 # Flag that allows shared libraries with undefined symbols to be built.
10267 allow_undefined_flag=$lt_allow_undefined_flag
10268
10269 # Flag that forces no undefined symbols.
10270 no_undefined_flag=$lt_no_undefined_flag
10271
10272 # Commands used to finish a libtool library installation in a directory.
10273 finish_cmds=$lt_finish_cmds
10274
10275 # Same as above, but a single script fragment to be evaled but not shown.
10276 finish_eval=$lt_finish_eval
10277
10278 # Take the output of nm and produce a listing of raw symbols and C names.
10279 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10280
10281 # Transform the output of nm in a proper C declaration
10282 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10283
10284 # Transform the output of nm in a C name address pair
10285 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10286
10287 # This is the shared library runtime path variable.
10288 runpath_var=$runpath_var
10289
10290 # This is the shared library path variable.
10291 shlibpath_var=$shlibpath_var
10292
10293 # Is shlibpath searched before the hard-coded library search path?
10294 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10295
10296 # How to hardcode a shared library path into an executable.
10297 hardcode_action=$hardcode_action
10298
10299 # Whether we should hardcode library paths into libraries.
10300 hardcode_into_libs=$hardcode_into_libs
10301
10302 # Flag to hardcode \$libdir into a binary during linking.
10303 # This must work even if \$libdir does not exist.
10304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10305
10306 # If ld is used when linking, flag to hardcode \$libdir into
10307 # a binary during linking. This must work even if \$libdir does
10308 # not exist.
10309 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10310
10311 # Whether we need a single -rpath flag with a separated argument.
10312 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10313
10314 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10315 # resulting binary.
10316 hardcode_direct=$hardcode_direct
10317
10318 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10319 # resulting binary.
10320 hardcode_minus_L=$hardcode_minus_L
10321
10322 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10323 # the resulting binary.
10324 hardcode_shlibpath_var=$hardcode_shlibpath_var
10325
10326 # Set to yes if building a shared library automatically hardcodes DIR into the library
10327 # and all subsequent libraries and executables linked against it.
10328 hardcode_automatic=$hardcode_automatic
10329
10330 # Variables whose values should be saved in libtool wrapper scripts and
10331 # restored at relink time.
10332 variables_saved_for_relink="$variables_saved_for_relink"
10333
10334 # Whether libtool must link a program against all its dependency libraries.
10335 link_all_deplibs=$link_all_deplibs
10336
10337 # Compile-time system search path for libraries
10338 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10339
10340 # Run-time system search path for libraries
10341 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10342
10343 # Fix the shell variable \$srcfile for the compiler.
10344 fix_srcfile_path="$fix_srcfile_path"
10345
10346 # Set to yes if exported symbols are required.
10347 always_export_symbols=$always_export_symbols
10348
10349 # The commands to list exported symbols.
10350 export_symbols_cmds=$lt_export_symbols_cmds
10351
10352 # The commands to extract the exported symbol list from a shared archive.
10353 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10354
10355 # Symbols that should not be listed in the preloaded symbols.
10356 exclude_expsyms=$lt_exclude_expsyms
10357
10358 # Symbols that must always be exported.
10359 include_expsyms=$lt_include_expsyms
10360
10361 # ### END LIBTOOL CONFIG
10362
10363 __EOF__
10364
10365
10366 case $host_os in
10367 aix3*)
10368 cat <<\EOF >> "$cfgfile"
10369
10370 # AIX sometimes has problems with the GCC collect2 program. For some
10371 # reason, if we set the COLLECT_NAMES environment variable, the problems
10372 # vanish in a puff of smoke.
10373 if test "X${COLLECT_NAMES+set}" != Xset; then
10374 COLLECT_NAMES=
10375 export COLLECT_NAMES
10376 fi
10377 EOF
10378 ;;
10379 esac
10380
10381 # We use sed instead of cat because bash on DJGPP gets confused if
10382 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10383 # text mode, it properly converts lines to CR/LF. This bash problem
10384 # is reportedly fixed, but why not run on old versions too?
10385 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10386
10387 mv -f "$cfgfile" "$ofile" || \
10388 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10389 chmod +x "$ofile"
10390
10391 else
10392 # If there is no Makefile yet, we rely on a make rule to execute
10393 # `config.status --recheck' to rerun these tests and create the
10394 # libtool script then.
10395 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10396 if test -f "$ltmain_in"; then
10397 test -f Makefile && make "$ltmain"
10398 fi
10399 fi
10400
10401
10402 ac_ext=c
10403 ac_cpp='$CPP $CPPFLAGS'
10404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10407
10408 CC="$lt_save_CC"
10409
10410
10411 # Check whether --with-tags was given.
10412 if test "${with_tags+set}" = set; then
10413 withval=$with_tags; tagnames="$withval"
10414 fi
10415
10416
10417 if test -f "$ltmain" && test -n "$tagnames"; then
10418 if test ! -f "${ofile}"; then
10419 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10420 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10421 fi
10422
10423 if test -z "$LTCC"; then
10424 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10425 if test -z "$LTCC"; then
10426 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10427 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10428 else
10429 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10430 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10431 fi
10432 fi
10433 if test -z "$LTCFLAGS"; then
10434 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10435 fi
10436
10437 # Extract list of available tagged configurations in $ofile.
10438 # Note that this assumes the entire list is on one line.
10439 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10440
10441 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10442 for tagname in $tagnames; do
10443 IFS="$lt_save_ifs"
10444 # Check whether tagname contains only valid characters
10445 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10446 "") ;;
10447 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10448 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10449 { (exit 1); exit 1; }; }
10450 ;;
10451 esac
10452
10453 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10454 then
10455 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10456 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10457 { (exit 1); exit 1; }; }
10458 fi
10459
10460 # Update the list of available tags.
10461 if test -n "$tagname"; then
10462 echo appending configuration tag \"$tagname\" to $ofile
10463
10464 case $tagname in
10465 CXX)
10466 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10467 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10468 (test "X$CXX" != "Xg++"))) ; then
10469 ac_ext=cpp
10470 ac_cpp='$CXXCPP $CPPFLAGS'
10471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10474
10475
10476
10477
10478 archive_cmds_need_lc_CXX=no
10479 allow_undefined_flag_CXX=
10480 always_export_symbols_CXX=no
10481 archive_expsym_cmds_CXX=
10482 export_dynamic_flag_spec_CXX=
10483 hardcode_direct_CXX=no
10484 hardcode_libdir_flag_spec_CXX=
10485 hardcode_libdir_flag_spec_ld_CXX=
10486 hardcode_libdir_separator_CXX=
10487 hardcode_minus_L_CXX=no
10488 hardcode_shlibpath_var_CXX=unsupported
10489 hardcode_automatic_CXX=no
10490 module_cmds_CXX=
10491 module_expsym_cmds_CXX=
10492 link_all_deplibs_CXX=unknown
10493 old_archive_cmds_CXX=$old_archive_cmds
10494 no_undefined_flag_CXX=
10495 whole_archive_flag_spec_CXX=
10496 enable_shared_with_static_runtimes_CXX=no
10497
10498 # Dependencies to place before and after the object being linked:
10499 predep_objects_CXX=
10500 postdep_objects_CXX=
10501 predeps_CXX=
10502 postdeps_CXX=
10503 compiler_lib_search_path_CXX=
10504
10505 # Source file extension for C++ test sources.
10506 ac_ext=cpp
10507
10508 # Object file extension for compiled C++ test sources.
10509 objext=o
10510 objext_CXX=$objext
10511
10512 # Code to be used in simple compile tests
10513 lt_simple_compile_test_code="int some_variable = 0;\n"
10514
10515 # Code to be used in simple link tests
10516 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10517
10518 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10519
10520 # If no C compiler was specified, use CC.
10521 LTCC=${LTCC-"$CC"}
10522
10523 # If no C compiler flags were specified, use CFLAGS.
10524 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10525
10526 # Allow CC to be a program name with arguments.
10527 compiler=$CC
10528
10529
10530 # save warnings/boilerplate of simple test code
10531 ac_outfile=conftest.$ac_objext
10532 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10533 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10534 _lt_compiler_boilerplate=`cat conftest.err`
10535 $rm conftest*
10536
10537 ac_outfile=conftest.$ac_objext
10538 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10539 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10540 _lt_linker_boilerplate=`cat conftest.err`
10541 $rm conftest*
10542
10543
10544 # Allow CC to be a program name with arguments.
10545 lt_save_CC=$CC
10546 lt_save_LD=$LD
10547 lt_save_GCC=$GCC
10548 GCC=$GXX
10549 lt_save_with_gnu_ld=$with_gnu_ld
10550 lt_save_path_LD=$lt_cv_path_LD
10551 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10552 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10553 else
10554 $as_unset lt_cv_prog_gnu_ld
10555 fi
10556 if test -n "${lt_cv_path_LDCXX+set}"; then
10557 lt_cv_path_LD=$lt_cv_path_LDCXX
10558 else
10559 $as_unset lt_cv_path_LD
10560 fi
10561 test -z "${LDCXX+set}" || LD=$LDCXX
10562 CC=${CXX-"c++"}
10563 compiler=$CC
10564 compiler_CXX=$CC
10565 for cc_temp in $compiler""; do
10566 case $cc_temp in
10567 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10568 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10569 \-*) ;;
10570 *) break;;
10571 esac
10572 done
10573 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10574
10575
10576 # We don't want -fno-exception wen compiling C++ code, so set the
10577 # no_builtin_flag separately
10578 if test "$GXX" = yes; then
10579 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10580 else
10581 lt_prog_compiler_no_builtin_flag_CXX=
10582 fi
10583
10584 if test "$GXX" = yes; then
10585 # Set up default GNU C++ configuration
10586
10587
10588 # Check whether --with-gnu-ld was given.
10589 if test "${with_gnu_ld+set}" = set; then
10590 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10591 else
10592 with_gnu_ld=no
10593 fi
10594
10595 ac_prog=ld
10596 if test "$GCC" = yes; then
10597 # Check if gcc -print-prog-name=ld gives a path.
10598 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10599 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
10600 case $host in
10601 *-*-mingw*)
10602 # gcc leaves a trailing carriage return which upsets mingw
10603 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10604 *)
10605 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10606 esac
10607 case $ac_prog in
10608 # Accept absolute paths.
10609 [\\/]* | ?:[\\/]*)
10610 re_direlt='/[^/][^/]*/\.\./'
10611 # Canonicalize the pathname of ld
10612 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10613 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10614 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10615 done
10616 test -z "$LD" && LD="$ac_prog"
10617 ;;
10618 "")
10619 # If it fails, then pretend we aren't using GCC.
10620 ac_prog=ld
10621 ;;
10622 *)
10623 # If it is relative, then search for the first ld in PATH.
10624 with_gnu_ld=unknown
10625 ;;
10626 esac
10627 elif test "$with_gnu_ld" = yes; then
10628 { echo "$as_me:$LINENO: checking for GNU ld" >&5
10629 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
10630 else
10631 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10632 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
10633 fi
10634 if test "${lt_cv_path_LD+set}" = set; then
10635 echo $ECHO_N "(cached) $ECHO_C" >&6
10636 else
10637 if test -z "$LD"; then
10638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10639 for ac_dir in $PATH; do
10640 IFS="$lt_save_ifs"
10641 test -z "$ac_dir" && ac_dir=.
10642 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10643 lt_cv_path_LD="$ac_dir/$ac_prog"
10644 # Check to see if the program is GNU ld. I'd rather use --version,
10645 # but apparently some variants of GNU ld only accept -v.
10646 # Break only if it was the GNU/non-GNU ld that we prefer.
10647 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10648 *GNU* | *'with BFD'*)
10649 test "$with_gnu_ld" != no && break
10650 ;;
10651 *)
10652 test "$with_gnu_ld" != yes && break
10653 ;;
10654 esac
10655 fi
10656 done
10657 IFS="$lt_save_ifs"
10658 else
10659 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10660 fi
10661 fi
10662
10663 LD="$lt_cv_path_LD"
10664 if test -n "$LD"; then
10665 { echo "$as_me:$LINENO: result: $LD" >&5
10666 echo "${ECHO_T}$LD" >&6; }
10667 else
10668 { echo "$as_me:$LINENO: result: no" >&5
10669 echo "${ECHO_T}no" >&6; }
10670 fi
10671 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10672 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10673 { (exit 1); exit 1; }; }
10674 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10675 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
10676 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10677 echo $ECHO_N "(cached) $ECHO_C" >&6
10678 else
10679 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10680 case `$LD -v 2>&1 </dev/null` in
10681 *GNU* | *'with BFD'*)
10682 lt_cv_prog_gnu_ld=yes
10683 ;;
10684 *)
10685 lt_cv_prog_gnu_ld=no
10686 ;;
10687 esac
10688 fi
10689 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10690 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
10691 with_gnu_ld=$lt_cv_prog_gnu_ld
10692
10693
10694
10695 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10696 # archiving commands below assume that GNU ld is being used.
10697 if test "$with_gnu_ld" = yes; then
10698 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10699 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10700
10701 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10703
10704 # If archive_cmds runs LD, not CC, wlarc should be empty
10705 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10706 # investigate it a little bit more. (MM)
10707 wlarc='${wl}'
10708
10709 # ancient GNU ld didn't support --whole-archive et. al.
10710 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10711 grep 'no-whole-archive' > /dev/null; then
10712 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10713 else
10714 whole_archive_flag_spec_CXX=
10715 fi
10716 else
10717 with_gnu_ld=no
10718 wlarc=
10719
10720 # A generic and very simple default shared library creation
10721 # command for GNU C++ for the case where it uses the native
10722 # linker, instead of GNU ld. If possible, this setting should
10723 # overridden to take advantage of the native linker features on
10724 # the platform it is being used on.
10725 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10726 fi
10727
10728 # Commands to make compiler produce verbose output that lists
10729 # what "hidden" libraries, object files and flags are used when
10730 # linking a shared library.
10731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10732
10733 else
10734 GXX=no
10735 with_gnu_ld=no
10736 wlarc=
10737 fi
10738
10739 # PORTME: fill in a description of your system's C++ link characteristics
10740 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10741 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
10742 ld_shlibs_CXX=yes
10743 case $host_os in
10744 aix3*)
10745 # FIXME: insert proper C++ library support
10746 ld_shlibs_CXX=no
10747 ;;
10748 aix4* | aix5*)
10749 if test "$host_cpu" = ia64; then
10750 # On IA64, the linker does run time linking by default, so we don't
10751 # have to do anything special.
10752 aix_use_runtimelinking=no
10753 exp_sym_flag='-Bexport'
10754 no_entry_flag=""
10755 else
10756 aix_use_runtimelinking=no
10757
10758 # Test if we are trying to use run time linking or normal
10759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10760 # need to do runtime linking.
10761 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10762 for ld_flag in $LDFLAGS; do
10763 case $ld_flag in
10764 *-brtl*)
10765 aix_use_runtimelinking=yes
10766 break
10767 ;;
10768 esac
10769 done
10770 ;;
10771 esac
10772
10773 exp_sym_flag='-bexport'
10774 no_entry_flag='-bnoentry'
10775 fi
10776
10777 # When large executables or shared objects are built, AIX ld can
10778 # have problems creating the table of contents. If linking a library
10779 # or program results in "error TOC overflow" add -mminimal-toc to
10780 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10781 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10782
10783 archive_cmds_CXX=''
10784 hardcode_direct_CXX=yes
10785 hardcode_libdir_separator_CXX=':'
10786 link_all_deplibs_CXX=yes
10787
10788 if test "$GXX" = yes; then
10789 case $host_os in aix4.[012]|aix4.[012].*)
10790 # We only want to do this on AIX 4.2 and lower, the check
10791 # below for broken collect2 doesn't work under 4.3+
10792 collect2name=`${CC} -print-prog-name=collect2`
10793 if test -f "$collect2name" && \
10794 strings "$collect2name" | grep resolve_lib_name >/dev/null
10795 then
10796 # We have reworked collect2
10797 hardcode_direct_CXX=yes
10798 else
10799 # We have old collect2
10800 hardcode_direct_CXX=unsupported
10801 # It fails to find uninstalled libraries when the uninstalled
10802 # path is not listed in the libpath. Setting hardcode_minus_L
10803 # to unsupported forces relinking
10804 hardcode_minus_L_CXX=yes
10805 hardcode_libdir_flag_spec_CXX='-L$libdir'
10806 hardcode_libdir_separator_CXX=
10807 fi
10808 ;;
10809 esac
10810 shared_flag='-shared'
10811 if test "$aix_use_runtimelinking" = yes; then
10812 shared_flag="$shared_flag "'${wl}-G'
10813 fi
10814 else
10815 # not using gcc
10816 if test "$host_cpu" = ia64; then
10817 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10818 # chokes on -Wl,-G. The following line is correct:
10819 shared_flag='-G'
10820 else
10821 if test "$aix_use_runtimelinking" = yes; then
10822 shared_flag='${wl}-G'
10823 else
10824 shared_flag='${wl}-bM:SRE'
10825 fi
10826 fi
10827 fi
10828
10829 # It seems that -bexpall does not export symbols beginning with
10830 # underscore (_), so it is better to generate a list of symbols to export.
10831 always_export_symbols_CXX=yes
10832 if test "$aix_use_runtimelinking" = yes; then
10833 # Warning - without using the other runtime loading flags (-brtl),
10834 # -berok will link without error, but may produce a broken library.
10835 allow_undefined_flag_CXX='-berok'
10836 # Determine the default libpath from the value encoded in an empty executable.
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h. */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10843
10844 int
10845 main ()
10846 {
10847
10848 ;
10849 return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_link") 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && {
10866 test -z "$ac_cxx_werror_flag" ||
10867 test ! -s conftest.err
10868 } && test -s conftest$ac_exeext &&
10869 $as_test_x conftest$ac_exeext; then
10870
10871 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10872 }'`
10873 # Check for a 64-bit object if we didn't find anything.
10874 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; }
10875 }'`; fi
10876 else
10877 echo "$as_me: failed program was:" >&5
10878 sed 's/^/| /' conftest.$ac_ext >&5
10879
10880
10881 fi
10882
10883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10884 conftest$ac_exeext conftest.$ac_ext
10885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10886
10887 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10888
10889 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10890 else
10891 if test "$host_cpu" = ia64; then
10892 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10893 allow_undefined_flag_CXX="-z nodefs"
10894 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10895 else
10896 # Determine the default libpath from the value encoded in an empty executable.
10897 cat >conftest.$ac_ext <<_ACEOF
10898 /* confdefs.h. */
10899 _ACEOF
10900 cat confdefs.h >>conftest.$ac_ext
10901 cat >>conftest.$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903
10904 int
10905 main ()
10906 {
10907
10908 ;
10909 return 0;
10910 }
10911 _ACEOF
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10917 esac
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_link") 2>conftest.er1
10920 ac_status=$?
10921 grep -v '^ *+' conftest.er1 >conftest.err
10922 rm -f conftest.er1
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } && {
10926 test -z "$ac_cxx_werror_flag" ||
10927 test ! -s conftest.err
10928 } && test -s conftest$ac_exeext &&
10929 $as_test_x conftest$ac_exeext; then
10930
10931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10932 }'`
10933 # Check for a 64-bit object if we didn't find anything.
10934 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; }
10935 }'`; fi
10936 else
10937 echo "$as_me: failed program was:" >&5
10938 sed 's/^/| /' conftest.$ac_ext >&5
10939
10940
10941 fi
10942
10943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10944 conftest$ac_exeext conftest.$ac_ext
10945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10946
10947 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10948 # Warning - without using the other run time loading flags,
10949 # -berok will link without error, but may produce a broken library.
10950 no_undefined_flag_CXX=' ${wl}-bernotok'
10951 allow_undefined_flag_CXX=' ${wl}-berok'
10952 # Exported symbols can be pulled into shared objects from archives
10953 whole_archive_flag_spec_CXX='$convenience'
10954 archive_cmds_need_lc_CXX=yes
10955 # This is similar to how AIX traditionally builds its shared libraries.
10956 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10957 fi
10958 fi
10959 ;;
10960
10961 beos*)
10962 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10963 allow_undefined_flag_CXX=unsupported
10964 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10965 # support --undefined. This deserves some investigation. FIXME
10966 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10967 else
10968 ld_shlibs_CXX=no
10969 fi
10970 ;;
10971
10972 chorus*)
10973 case $cc_basename in
10974 *)
10975 # FIXME: insert proper C++ library support
10976 ld_shlibs_CXX=no
10977 ;;
10978 esac
10979 ;;
10980
10981 cygwin* | mingw* | pw32*)
10982 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10983 # as there is no search path for DLLs.
10984 hardcode_libdir_flag_spec_CXX='-L$libdir'
10985 allow_undefined_flag_CXX=unsupported
10986 always_export_symbols_CXX=no
10987 enable_shared_with_static_runtimes_CXX=yes
10988
10989 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10990 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10991 # If the export-symbols file already is a .def file (1st line
10992 # is EXPORTS), use it as is; otherwise, prepend...
10993 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10994 cp $export_symbols $output_objdir/$soname.def;
10995 else
10996 echo EXPORTS > $output_objdir/$soname.def;
10997 cat $export_symbols >> $output_objdir/$soname.def;
10998 fi~
10999 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11000 else
11001 ld_shlibs_CXX=no
11002 fi
11003 ;;
11004 darwin* | rhapsody*)
11005 case $host_os in
11006 rhapsody* | darwin1.[012])
11007 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11008 ;;
11009 *) # Darwin 1.3 on
11010 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11011 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11012 else
11013 case ${MACOSX_DEPLOYMENT_TARGET} in
11014 10.[012])
11015 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11016 ;;
11017 10.*)
11018 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11019 ;;
11020 esac
11021 fi
11022 ;;
11023 esac
11024 archive_cmds_need_lc_CXX=no
11025 hardcode_direct_CXX=no
11026 hardcode_automatic_CXX=yes
11027 hardcode_shlibpath_var_CXX=unsupported
11028 whole_archive_flag_spec_CXX=''
11029 link_all_deplibs_CXX=yes
11030
11031 if test "$GXX" = yes ; then
11032 lt_int_apple_cc_single_mod=no
11033 output_verbose_link_cmd='echo'
11034 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11035 lt_int_apple_cc_single_mod=yes
11036 fi
11037 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11038 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11039 else
11040 archive_cmds_CXX='$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'
11041 fi
11042 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11043 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11044 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11045 archive_expsym_cmds_CXX='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}'
11046 else
11047 archive_expsym_cmds_CXX='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}'
11048 fi
11049 module_expsym_cmds_CXX='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}'
11050 else
11051 case $cc_basename in
11052 xlc*)
11053 output_verbose_link_cmd='echo'
11054 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
11055 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11056 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11057 archive_expsym_cmds_CXX='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}'
11058 module_expsym_cmds_CXX='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}'
11059 ;;
11060 *)
11061 ld_shlibs_CXX=no
11062 ;;
11063 esac
11064 fi
11065 ;;
11066
11067 dgux*)
11068 case $cc_basename in
11069 ec++*)
11070 # FIXME: insert proper C++ library support
11071 ld_shlibs_CXX=no
11072 ;;
11073 ghcx*)
11074 # Green Hills C++ Compiler
11075 # FIXME: insert proper C++ library support
11076 ld_shlibs_CXX=no
11077 ;;
11078 *)
11079 # FIXME: insert proper C++ library support
11080 ld_shlibs_CXX=no
11081 ;;
11082 esac
11083 ;;
11084 freebsd[12]*)
11085 # C++ shared libraries reported to be fairly broken before switch to ELF
11086 ld_shlibs_CXX=no
11087 ;;
11088 freebsd-elf*)
11089 archive_cmds_need_lc_CXX=no
11090 ;;
11091 freebsd* | dragonfly*)
11092 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11093 # conventions
11094 ld_shlibs_CXX=yes
11095 ;;
11096 gnu*)
11097 ;;
11098 hpux9*)
11099 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11100 hardcode_libdir_separator_CXX=:
11101 export_dynamic_flag_spec_CXX='${wl}-E'
11102 hardcode_direct_CXX=yes
11103 hardcode_minus_L_CXX=yes # Not in the search PATH,
11104 # but as the default
11105 # location of the library.
11106
11107 case $cc_basename in
11108 CC*)
11109 # FIXME: insert proper C++ library support
11110 ld_shlibs_CXX=no
11111 ;;
11112 aCC*)
11113 archive_cmds_CXX='$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'
11114 # Commands to make compiler produce verbose output that lists
11115 # what "hidden" libraries, object files and flags are used when
11116 # linking a shared library.
11117 #
11118 # There doesn't appear to be a way to prevent this compiler from
11119 # explicitly linking system object files so we need to strip them
11120 # from the output so that they don't get included in the library
11121 # dependencies.
11122 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'
11123 ;;
11124 *)
11125 if test "$GXX" = yes; then
11126 archive_cmds_CXX='$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'
11127 else
11128 # FIXME: insert proper C++ library support
11129 ld_shlibs_CXX=no
11130 fi
11131 ;;
11132 esac
11133 ;;
11134 hpux10*|hpux11*)
11135 if test $with_gnu_ld = no; then
11136 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11137 hardcode_libdir_separator_CXX=:
11138
11139 case $host_cpu in
11140 hppa*64*|ia64*)
11141 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11142 ;;
11143 *)
11144 export_dynamic_flag_spec_CXX='${wl}-E'
11145 ;;
11146 esac
11147 fi
11148 case $host_cpu in
11149 hppa*64*|ia64*)
11150 hardcode_direct_CXX=no
11151 hardcode_shlibpath_var_CXX=no
11152 ;;
11153 *)
11154 hardcode_direct_CXX=yes
11155 hardcode_minus_L_CXX=yes # Not in the search PATH,
11156 # but as the default
11157 # location of the library.
11158 ;;
11159 esac
11160
11161 case $cc_basename in
11162 CC*)
11163 # FIXME: insert proper C++ library support
11164 ld_shlibs_CXX=no
11165 ;;
11166 aCC*)
11167 case $host_cpu in
11168 hppa*64*)
11169 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11170 ;;
11171 ia64*)
11172 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11173 ;;
11174 *)
11175 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11176 ;;
11177 esac
11178 # Commands to make compiler produce verbose output that lists
11179 # what "hidden" libraries, object files and flags are used when
11180 # linking a shared library.
11181 #
11182 # There doesn't appear to be a way to prevent this compiler from
11183 # explicitly linking system object files so we need to strip them
11184 # from the output so that they don't get included in the library
11185 # dependencies.
11186 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'
11187 ;;
11188 *)
11189 if test "$GXX" = yes; then
11190 if test $with_gnu_ld = no; then
11191 case $host_cpu in
11192 hppa*64*)
11193 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11194 ;;
11195 ia64*)
11196 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11197 ;;
11198 *)
11199 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11200 ;;
11201 esac
11202 fi
11203 else
11204 # FIXME: insert proper C++ library support
11205 ld_shlibs_CXX=no
11206 fi
11207 ;;
11208 esac
11209 ;;
11210 interix3*)
11211 hardcode_direct_CXX=no
11212 hardcode_shlibpath_var_CXX=no
11213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11214 export_dynamic_flag_spec_CXX='${wl}-E'
11215 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11216 # Instead, shared libraries are loaded at an image base (0x10000000 by
11217 # default) and relocated if they conflict, which is a slow very memory
11218 # consuming and fragmenting process. To avoid this, we pick a random,
11219 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11220 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11221 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11222 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11223 ;;
11224 irix5* | irix6*)
11225 case $cc_basename in
11226 CC*)
11227 # SGI C++
11228 archive_cmds_CXX='$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'
11229
11230 # Archives containing C++ object files must be created using
11231 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11232 # necessary to make sure instantiated templates are included
11233 # in the archive.
11234 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11235 ;;
11236 *)
11237 if test "$GXX" = yes; then
11238 if test "$with_gnu_ld" = no; then
11239 archive_cmds_CXX='$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'
11240 else
11241 archive_cmds_CXX='$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'
11242 fi
11243 fi
11244 link_all_deplibs_CXX=yes
11245 ;;
11246 esac
11247 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11248 hardcode_libdir_separator_CXX=:
11249 ;;
11250 linux* | k*bsd*-gnu)
11251 case $cc_basename in
11252 KCC*)
11253 # Kuck and Associates, Inc. (KAI) C++ Compiler
11254
11255 # KCC will only create a shared library if the output file
11256 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11257 # to its proper name (with version) after linking.
11258 archive_cmds_CXX='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'
11259 archive_expsym_cmds_CXX='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'
11260 # Commands to make compiler produce verbose output that lists
11261 # what "hidden" libraries, object files and flags are used when
11262 # linking a shared library.
11263 #
11264 # There doesn't appear to be a way to prevent this compiler from
11265 # explicitly linking system object files so we need to strip them
11266 # from the output so that they don't get included in the library
11267 # dependencies.
11268 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'
11269
11270 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11272
11273 # Archives containing C++ object files must be created using
11274 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11275 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11276 ;;
11277 icpc*)
11278 # Intel C++
11279 with_gnu_ld=yes
11280 # version 8.0 and above of icpc choke on multiply defined symbols
11281 # if we add $predep_objects and $postdep_objects, however 7.1 and
11282 # earlier do not add the objects themselves.
11283 case `$CC -V 2>&1` in
11284 *"Version 7."*)
11285 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11286 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11287 ;;
11288 *) # Version 8.0 or newer
11289 tmp_idyn=
11290 case $host_cpu in
11291 ia64*) tmp_idyn=' -i_dynamic';;
11292 esac
11293 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11294 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11295 ;;
11296 esac
11297 archive_cmds_need_lc_CXX=no
11298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11299 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11300 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11301 ;;
11302 pgCC*)
11303 # Portland Group C++ compiler
11304 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11305 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11306
11307 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11308 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11309 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11310 ;;
11311 cxx*)
11312 # Compaq C++
11313 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11314 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11315
11316 runpath_var=LD_RUN_PATH
11317 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11318 hardcode_libdir_separator_CXX=:
11319
11320 # Commands to make compiler produce verbose output that lists
11321 # what "hidden" libraries, object files and flags are used when
11322 # linking a shared library.
11323 #
11324 # There doesn't appear to be a way to prevent this compiler from
11325 # explicitly linking system object files so we need to strip them
11326 # from the output so that they don't get included in the library
11327 # dependencies.
11328 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'
11329 ;;
11330 esac
11331 ;;
11332 lynxos*)
11333 # FIXME: insert proper C++ library support
11334 ld_shlibs_CXX=no
11335 ;;
11336 m88k*)
11337 # FIXME: insert proper C++ library support
11338 ld_shlibs_CXX=no
11339 ;;
11340 mvs*)
11341 case $cc_basename in
11342 cxx*)
11343 # FIXME: insert proper C++ library support
11344 ld_shlibs_CXX=no
11345 ;;
11346 *)
11347 # FIXME: insert proper C++ library support
11348 ld_shlibs_CXX=no
11349 ;;
11350 esac
11351 ;;
11352 netbsd* | netbsdelf*-gnu)
11353 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11354 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11355 wlarc=
11356 hardcode_libdir_flag_spec_CXX='-R$libdir'
11357 hardcode_direct_CXX=yes
11358 hardcode_shlibpath_var_CXX=no
11359 fi
11360 # Workaround some broken pre-1.5 toolchains
11361 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11362 ;;
11363 openbsd2*)
11364 # C++ shared libraries are fairly broken
11365 ld_shlibs_CXX=no
11366 ;;
11367 openbsd*)
11368 hardcode_direct_CXX=yes
11369 hardcode_shlibpath_var_CXX=no
11370 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11371 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11372 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11373 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11374 export_dynamic_flag_spec_CXX='${wl}-E'
11375 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11376 fi
11377 output_verbose_link_cmd='echo'
11378 ;;
11379 osf3*)
11380 case $cc_basename in
11381 KCC*)
11382 # Kuck and Associates, Inc. (KAI) C++ Compiler
11383
11384 # KCC will only create a shared library if the output file
11385 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11386 # to its proper name (with version) after linking.
11387 archive_cmds_CXX='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'
11388
11389 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11390 hardcode_libdir_separator_CXX=:
11391
11392 # Archives containing C++ object files must be created using
11393 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11394 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11395
11396 ;;
11397 RCC*)
11398 # Rational C++ 2.4.1
11399 # FIXME: insert proper C++ library support
11400 ld_shlibs_CXX=no
11401 ;;
11402 cxx*)
11403 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11404 archive_cmds_CXX='$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'
11405
11406 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11407 hardcode_libdir_separator_CXX=:
11408
11409 # Commands to make compiler produce verbose output that lists
11410 # what "hidden" libraries, object files and flags are used when
11411 # linking a shared library.
11412 #
11413 # There doesn't appear to be a way to prevent this compiler from
11414 # explicitly linking system object files so we need to strip them
11415 # from the output so that they don't get included in the library
11416 # dependencies.
11417 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'
11418 ;;
11419 *)
11420 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11421 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11422 archive_cmds_CXX='$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'
11423
11424 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11425 hardcode_libdir_separator_CXX=:
11426
11427 # Commands to make compiler produce verbose output that lists
11428 # what "hidden" libraries, object files and flags are used when
11429 # linking a shared library.
11430 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11431
11432 else
11433 # FIXME: insert proper C++ library support
11434 ld_shlibs_CXX=no
11435 fi
11436 ;;
11437 esac
11438 ;;
11439 osf4* | osf5*)
11440 case $cc_basename in
11441 KCC*)
11442 # Kuck and Associates, Inc. (KAI) C++ Compiler
11443
11444 # KCC will only create a shared library if the output file
11445 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11446 # to its proper name (with version) after linking.
11447 archive_cmds_CXX='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'
11448
11449 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11450 hardcode_libdir_separator_CXX=:
11451
11452 # Archives containing C++ object files must be created using
11453 # the KAI C++ compiler.
11454 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11455 ;;
11456 RCC*)
11457 # Rational C++ 2.4.1
11458 # FIXME: insert proper C++ library support
11459 ld_shlibs_CXX=no
11460 ;;
11461 cxx*)
11462 allow_undefined_flag_CXX=' -expect_unresolved \*'
11463 archive_cmds_CXX='$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'
11464 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11465 echo "-hidden">> $lib.exp~
11466 $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~
11467 $rm $lib.exp'
11468
11469 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11470 hardcode_libdir_separator_CXX=:
11471
11472 # Commands to make compiler produce verbose output that lists
11473 # what "hidden" libraries, object files and flags are used when
11474 # linking a shared library.
11475 #
11476 # There doesn't appear to be a way to prevent this compiler from
11477 # explicitly linking system object files so we need to strip them
11478 # from the output so that they don't get included in the library
11479 # dependencies.
11480 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'
11481 ;;
11482 *)
11483 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11484 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11485 archive_cmds_CXX='$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'
11486
11487 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11488 hardcode_libdir_separator_CXX=:
11489
11490 # Commands to make compiler produce verbose output that lists
11491 # what "hidden" libraries, object files and flags are used when
11492 # linking a shared library.
11493 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11494
11495 else
11496 # FIXME: insert proper C++ library support
11497 ld_shlibs_CXX=no
11498 fi
11499 ;;
11500 esac
11501 ;;
11502 psos*)
11503 # FIXME: insert proper C++ library support
11504 ld_shlibs_CXX=no
11505 ;;
11506 sunos4*)
11507 case $cc_basename in
11508 CC*)
11509 # Sun C++ 4.x
11510 # FIXME: insert proper C++ library support
11511 ld_shlibs_CXX=no
11512 ;;
11513 lcc*)
11514 # Lucid
11515 # FIXME: insert proper C++ library support
11516 ld_shlibs_CXX=no
11517 ;;
11518 *)
11519 # FIXME: insert proper C++ library support
11520 ld_shlibs_CXX=no
11521 ;;
11522 esac
11523 ;;
11524 solaris*)
11525 case $cc_basename in
11526 CC*)
11527 # Sun C++ 4.2, 5.x and Centerline C++
11528 archive_cmds_need_lc_CXX=yes
11529 no_undefined_flag_CXX=' -zdefs'
11530 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11531 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11532 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11533
11534 hardcode_libdir_flag_spec_CXX='-R$libdir'
11535 hardcode_shlibpath_var_CXX=no
11536 case $host_os in
11537 solaris2.[0-5] | solaris2.[0-5].*) ;;
11538 *)
11539 # The C++ compiler is used as linker so we must use $wl
11540 # flag to pass the commands to the underlying system
11541 # linker. We must also pass each convience library through
11542 # to the system linker between allextract/defaultextract.
11543 # The C++ compiler will combine linker options so we
11544 # cannot just pass the convience library names through
11545 # without $wl.
11546 # Supported since Solaris 2.6 (maybe 2.5.1?)
11547 whole_archive_flag_spec_CXX='${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'
11548 ;;
11549 esac
11550 link_all_deplibs_CXX=yes
11551
11552 output_verbose_link_cmd='echo'
11553
11554 # Archives containing C++ object files must be created using
11555 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11556 # necessary to make sure instantiated templates are included
11557 # in the archive.
11558 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11559 ;;
11560 gcx*)
11561 # Green Hills C++ Compiler
11562 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11563
11564 # The C++ compiler must be used to create the archive.
11565 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11566 ;;
11567 *)
11568 # GNU C++ compiler with Solaris linker
11569 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11570 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11571 if $CC --version | grep -v '^2\.7' > /dev/null; then
11572 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11573 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11574 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11575
11576 # Commands to make compiler produce verbose output that lists
11577 # what "hidden" libraries, object files and flags are used when
11578 # linking a shared library.
11579 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11580 else
11581 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11582 # platform.
11583 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11584 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11585 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11586
11587 # Commands to make compiler produce verbose output that lists
11588 # what "hidden" libraries, object files and flags are used when
11589 # linking a shared library.
11590 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11591 fi
11592
11593 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11594 fi
11595 ;;
11596 esac
11597 ;;
11598 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11599 no_undefined_flag_CXX='${wl}-z,text'
11600 archive_cmds_need_lc_CXX=no
11601 hardcode_shlibpath_var_CXX=no
11602 runpath_var='LD_RUN_PATH'
11603
11604 case $cc_basename in
11605 CC*)
11606 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11607 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11608 ;;
11609 *)
11610 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11611 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11612 ;;
11613 esac
11614 ;;
11615 sysv5* | sco3.2v5* | sco5v6*)
11616 # Note: We can NOT use -z defs as we might desire, because we do not
11617 # link with -lc, and that would cause any symbols used from libc to
11618 # always be unresolved, which means just about no library would
11619 # ever link correctly. If we're not using GNU ld we use -z text
11620 # though, which does catch some bad symbols but isn't as heavy-handed
11621 # as -z defs.
11622 # For security reasons, it is highly recommended that you always
11623 # use absolute paths for naming shared libraries, and exclude the
11624 # DT_RUNPATH tag from executables and libraries. But doing so
11625 # requires that you compile everything twice, which is a pain.
11626 # So that behaviour is only enabled if SCOABSPATH is set to a
11627 # non-empty value in the environment. Most likely only useful for
11628 # creating official distributions of packages.
11629 # This is a hack until libtool officially supports absolute path
11630 # names for shared libraries.
11631 no_undefined_flag_CXX='${wl}-z,text'
11632 allow_undefined_flag_CXX='${wl}-z,nodefs'
11633 archive_cmds_need_lc_CXX=no
11634 hardcode_shlibpath_var_CXX=no
11635 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11636 hardcode_libdir_separator_CXX=':'
11637 link_all_deplibs_CXX=yes
11638 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11639 runpath_var='LD_RUN_PATH'
11640
11641 case $cc_basename in
11642 CC*)
11643 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11644 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11645 ;;
11646 *)
11647 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11648 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11649 ;;
11650 esac
11651 ;;
11652 tandem*)
11653 case $cc_basename in
11654 NCC*)
11655 # NonStop-UX NCC 3.20
11656 # FIXME: insert proper C++ library support
11657 ld_shlibs_CXX=no
11658 ;;
11659 *)
11660 # FIXME: insert proper C++ library support
11661 ld_shlibs_CXX=no
11662 ;;
11663 esac
11664 ;;
11665 vxworks*)
11666 # FIXME: insert proper C++ library support
11667 ld_shlibs_CXX=no
11668 ;;
11669 *)
11670 # FIXME: insert proper C++ library support
11671 ld_shlibs_CXX=no
11672 ;;
11673 esac
11674 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11675 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
11676 test "$ld_shlibs_CXX" = no && can_build_shared=no
11677
11678 GCC_CXX="$GXX"
11679 LD_CXX="$LD"
11680
11681
11682 cat > conftest.$ac_ext <<EOF
11683 class Foo
11684 {
11685 public:
11686 Foo (void) { a = 0; }
11687 private:
11688 int a;
11689 };
11690 EOF
11691
11692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11693 (eval $ac_compile) 2>&5
11694 ac_status=$?
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; then
11697 # Parse the compiler output and extract the necessary
11698 # objects, libraries and library flags.
11699
11700 # Sentinel used to keep track of whether or not we are before
11701 # the conftest object file.
11702 pre_test_object_deps_done=no
11703
11704 # The `*' in the case matches for architectures that use `case' in
11705 # $output_verbose_cmd can trigger glob expansion during the loop
11706 # eval without this substitution.
11707 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11708
11709 for p in `eval $output_verbose_link_cmd`; do
11710 case $p in
11711
11712 -L* | -R* | -l*)
11713 # Some compilers place space between "-{L,R}" and the path.
11714 # Remove the space.
11715 if test $p = "-L" \
11716 || test $p = "-R"; then
11717 prev=$p
11718 continue
11719 else
11720 prev=
11721 fi
11722
11723 if test "$pre_test_object_deps_done" = no; then
11724 case $p in
11725 -L* | -R*)
11726 # Internal compiler library paths should come after those
11727 # provided the user. The postdeps already come after the
11728 # user supplied libs so there is no need to process them.
11729 if test -z "$compiler_lib_search_path_CXX"; then
11730 compiler_lib_search_path_CXX="${prev}${p}"
11731 else
11732 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11733 fi
11734 ;;
11735 # The "-l" case would never come before the object being
11736 # linked, so don't bother handling this case.
11737 esac
11738 else
11739 if test -z "$postdeps_CXX"; then
11740 postdeps_CXX="${prev}${p}"
11741 else
11742 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11743 fi
11744 fi
11745 ;;
11746
11747 *.$objext)
11748 # This assumes that the test object file only shows up
11749 # once in the compiler output.
11750 if test "$p" = "conftest.$objext"; then
11751 pre_test_object_deps_done=yes
11752 continue
11753 fi
11754
11755 if test "$pre_test_object_deps_done" = no; then
11756 if test -z "$predep_objects_CXX"; then
11757 predep_objects_CXX="$p"
11758 else
11759 predep_objects_CXX="$predep_objects_CXX $p"
11760 fi
11761 else
11762 if test -z "$postdep_objects_CXX"; then
11763 postdep_objects_CXX="$p"
11764 else
11765 postdep_objects_CXX="$postdep_objects_CXX $p"
11766 fi
11767 fi
11768 ;;
11769
11770 *) ;; # Ignore the rest.
11771
11772 esac
11773 done
11774
11775 # Clean up.
11776 rm -f a.out a.exe
11777 else
11778 echo "libtool.m4: error: problem compiling CXX test program"
11779 fi
11780
11781 $rm -f confest.$objext
11782
11783 # PORTME: override above test on systems where it is broken
11784 case $host_os in
11785 interix3*)
11786 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11787 # hack all around it, let's just trust "g++" to DTRT.
11788 predep_objects_CXX=
11789 postdep_objects_CXX=
11790 postdeps_CXX=
11791 ;;
11792
11793 solaris*)
11794 case $cc_basename in
11795 CC*)
11796 # Adding this requires a known-good setup of shared libraries for
11797 # Sun compiler versions before 5.6, else PIC objects from an old
11798 # archive will be linked into the output, leading to subtle bugs.
11799 postdeps_CXX='-lCstd -lCrun'
11800 ;;
11801 esac
11802 ;;
11803 esac
11804
11805
11806 case " $postdeps_CXX " in
11807 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11808 esac
11809
11810 lt_prog_compiler_wl_CXX=
11811 lt_prog_compiler_pic_CXX=
11812 lt_prog_compiler_static_CXX=
11813
11814 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11815 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
11816
11817 # C++ specific cases for pic, static, wl, etc.
11818 if test "$GXX" = yes; then
11819 lt_prog_compiler_wl_CXX='-Wl,'
11820 lt_prog_compiler_static_CXX='-static'
11821
11822 case $host_os in
11823 aix*)
11824 # All AIX code is PIC.
11825 if test "$host_cpu" = ia64; then
11826 # AIX 5 now supports IA64 processor
11827 lt_prog_compiler_static_CXX='-Bstatic'
11828 fi
11829 ;;
11830 amigaos*)
11831 # FIXME: we need at least 68020 code to build shared libraries, but
11832 # adding the `-m68020' flag to GCC prevents building anything better,
11833 # like `-m68040'.
11834 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11835 ;;
11836 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11837 # PIC is the default for these OSes.
11838 ;;
11839 mingw* | os2* | pw32*)
11840 # This hack is so that the source file can tell whether it is being
11841 # built for inclusion in a dll (and should export symbols for example).
11842 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11843 ;;
11844 darwin* | rhapsody*)
11845 # PIC is the default on this platform
11846 # Common symbols not allowed in MH_DYLIB files
11847 lt_prog_compiler_pic_CXX='-fno-common'
11848 ;;
11849 *djgpp*)
11850 # DJGPP does not support shared libraries at all
11851 lt_prog_compiler_pic_CXX=
11852 ;;
11853 interix3*)
11854 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11855 # Instead, we relocate shared libraries at runtime.
11856 ;;
11857 sysv4*MP*)
11858 if test -d /usr/nec; then
11859 lt_prog_compiler_pic_CXX=-Kconform_pic
11860 fi
11861 ;;
11862 hpux*)
11863 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11864 # not for PA HP-UX.
11865 case $host_cpu in
11866 hppa*64*|ia64*)
11867 ;;
11868 *)
11869 lt_prog_compiler_pic_CXX='-fPIC'
11870 ;;
11871 esac
11872 ;;
11873 *)
11874 lt_prog_compiler_pic_CXX='-fPIC'
11875 ;;
11876 esac
11877 else
11878 case $host_os in
11879 aix4* | aix5*)
11880 # All AIX code is PIC.
11881 if test "$host_cpu" = ia64; then
11882 # AIX 5 now supports IA64 processor
11883 lt_prog_compiler_static_CXX='-Bstatic'
11884 else
11885 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11886 fi
11887 ;;
11888 chorus*)
11889 case $cc_basename in
11890 cxch68*)
11891 # Green Hills C++ Compiler
11892 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11893 ;;
11894 esac
11895 ;;
11896 darwin*)
11897 # PIC is the default on this platform
11898 # Common symbols not allowed in MH_DYLIB files
11899 case $cc_basename in
11900 xlc*)
11901 lt_prog_compiler_pic_CXX='-qnocommon'
11902 lt_prog_compiler_wl_CXX='-Wl,'
11903 ;;
11904 esac
11905 ;;
11906 dgux*)
11907 case $cc_basename in
11908 ec++*)
11909 lt_prog_compiler_pic_CXX='-KPIC'
11910 ;;
11911 ghcx*)
11912 # Green Hills C++ Compiler
11913 lt_prog_compiler_pic_CXX='-pic'
11914 ;;
11915 *)
11916 ;;
11917 esac
11918 ;;
11919 freebsd* | dragonfly*)
11920 # FreeBSD uses GNU C++
11921 ;;
11922 hpux9* | hpux10* | hpux11*)
11923 case $cc_basename in
11924 CC*)
11925 lt_prog_compiler_wl_CXX='-Wl,'
11926 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11927 if test "$host_cpu" != ia64; then
11928 lt_prog_compiler_pic_CXX='+Z'
11929 fi
11930 ;;
11931 aCC*)
11932 lt_prog_compiler_wl_CXX='-Wl,'
11933 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11934 case $host_cpu in
11935 hppa*64*|ia64*)
11936 # +Z the default
11937 ;;
11938 *)
11939 lt_prog_compiler_pic_CXX='+Z'
11940 ;;
11941 esac
11942 ;;
11943 *)
11944 ;;
11945 esac
11946 ;;
11947 interix*)
11948 # This is c89, which is MS Visual C++ (no shared libs)
11949 # Anyone wants to do a port?
11950 ;;
11951 irix5* | irix6* | nonstopux*)
11952 case $cc_basename in
11953 CC*)
11954 lt_prog_compiler_wl_CXX='-Wl,'
11955 lt_prog_compiler_static_CXX='-non_shared'
11956 # CC pic flag -KPIC is the default.
11957 ;;
11958 *)
11959 ;;
11960 esac
11961 ;;
11962 linux* | k*bsd*-gnu)
11963 case $cc_basename in
11964 KCC*)
11965 # KAI C++ Compiler
11966 lt_prog_compiler_wl_CXX='--backend -Wl,'
11967 lt_prog_compiler_pic_CXX='-fPIC'
11968 ;;
11969 icpc* | ecpc*)
11970 # Intel C++
11971 lt_prog_compiler_wl_CXX='-Wl,'
11972 lt_prog_compiler_pic_CXX='-KPIC'
11973 lt_prog_compiler_static_CXX='-static'
11974 ;;
11975 pgCC*)
11976 # Portland Group C++ compiler.
11977 lt_prog_compiler_wl_CXX='-Wl,'
11978 lt_prog_compiler_pic_CXX='-fpic'
11979 lt_prog_compiler_static_CXX='-Bstatic'
11980 ;;
11981 cxx*)
11982 # Compaq C++
11983 # Make sure the PIC flag is empty. It appears that all Alpha
11984 # Linux and Compaq Tru64 Unix objects are PIC.
11985 lt_prog_compiler_pic_CXX=
11986 lt_prog_compiler_static_CXX='-non_shared'
11987 ;;
11988 *)
11989 ;;
11990 esac
11991 ;;
11992 lynxos*)
11993 ;;
11994 m88k*)
11995 ;;
11996 mvs*)
11997 case $cc_basename in
11998 cxx*)
11999 lt_prog_compiler_pic_CXX='-W c,exportall'
12000 ;;
12001 *)
12002 ;;
12003 esac
12004 ;;
12005 netbsd* | netbsdelf*-gnu)
12006 ;;
12007 osf3* | osf4* | osf5*)
12008 case $cc_basename in
12009 KCC*)
12010 lt_prog_compiler_wl_CXX='--backend -Wl,'
12011 ;;
12012 RCC*)
12013 # Rational C++ 2.4.1
12014 lt_prog_compiler_pic_CXX='-pic'
12015 ;;
12016 cxx*)
12017 # Digital/Compaq C++
12018 lt_prog_compiler_wl_CXX='-Wl,'
12019 # Make sure the PIC flag is empty. It appears that all Alpha
12020 # Linux and Compaq Tru64 Unix objects are PIC.
12021 lt_prog_compiler_pic_CXX=
12022 lt_prog_compiler_static_CXX='-non_shared'
12023 ;;
12024 *)
12025 ;;
12026 esac
12027 ;;
12028 psos*)
12029 ;;
12030 solaris*)
12031 case $cc_basename in
12032 CC*)
12033 # Sun C++ 4.2, 5.x and Centerline C++
12034 lt_prog_compiler_pic_CXX='-KPIC'
12035 lt_prog_compiler_static_CXX='-Bstatic'
12036 lt_prog_compiler_wl_CXX='-Qoption ld '
12037 ;;
12038 gcx*)
12039 # Green Hills C++ Compiler
12040 lt_prog_compiler_pic_CXX='-PIC'
12041 ;;
12042 *)
12043 ;;
12044 esac
12045 ;;
12046 sunos4*)
12047 case $cc_basename in
12048 CC*)
12049 # Sun C++ 4.x
12050 lt_prog_compiler_pic_CXX='-pic'
12051 lt_prog_compiler_static_CXX='-Bstatic'
12052 ;;
12053 lcc*)
12054 # Lucid
12055 lt_prog_compiler_pic_CXX='-pic'
12056 ;;
12057 *)
12058 ;;
12059 esac
12060 ;;
12061 tandem*)
12062 case $cc_basename in
12063 NCC*)
12064 # NonStop-UX NCC 3.20
12065 lt_prog_compiler_pic_CXX='-KPIC'
12066 ;;
12067 *)
12068 ;;
12069 esac
12070 ;;
12071 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12072 case $cc_basename in
12073 CC*)
12074 lt_prog_compiler_wl_CXX='-Wl,'
12075 lt_prog_compiler_pic_CXX='-KPIC'
12076 lt_prog_compiler_static_CXX='-Bstatic'
12077 ;;
12078 esac
12079 ;;
12080 vxworks*)
12081 ;;
12082 *)
12083 lt_prog_compiler_can_build_shared_CXX=no
12084 ;;
12085 esac
12086 fi
12087
12088 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12089 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12090
12091 #
12092 # Check to make sure the PIC flag actually works.
12093 #
12094 if test -n "$lt_prog_compiler_pic_CXX"; then
12095
12096 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12097 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12098 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12099 echo $ECHO_N "(cached) $ECHO_C" >&6
12100 else
12101 lt_prog_compiler_pic_works_CXX=no
12102 ac_outfile=conftest.$ac_objext
12103 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12104 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12105 # Insert the option either (1) after the last *FLAGS variable, or
12106 # (2) before a word containing "conftest.", or (3) at the end.
12107 # Note that $ac_compile itself does not contain backslashes and begins
12108 # with a dollar sign (not a hyphen), so the echo should work correctly.
12109 # The option is referenced via a variable to avoid confusing sed.
12110 lt_compile=`echo "$ac_compile" | $SED \
12111 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12112 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12113 -e 's:$: $lt_compiler_flag:'`
12114 (eval echo "\"\$as_me:12115: $lt_compile\"" >&5)
12115 (eval "$lt_compile" 2>conftest.err)
12116 ac_status=$?
12117 cat conftest.err >&5
12118 echo "$as_me:12119: \$? = $ac_status" >&5
12119 if (exit $ac_status) && test -s "$ac_outfile"; then
12120 # The compiler can only warn and ignore the option if not recognized
12121 # So say no if there are warnings other than the usual output.
12122 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12123 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12124 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12125 lt_prog_compiler_pic_works_CXX=yes
12126 fi
12127 fi
12128 $rm conftest*
12129
12130 fi
12131 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12132 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12133
12134 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12135 case $lt_prog_compiler_pic_CXX in
12136 "" | " "*) ;;
12137 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12138 esac
12139 else
12140 lt_prog_compiler_pic_CXX=
12141 lt_prog_compiler_can_build_shared_CXX=no
12142 fi
12143
12144 fi
12145 case $host_os in
12146 # For platforms which do not support PIC, -DPIC is meaningless:
12147 *djgpp*)
12148 lt_prog_compiler_pic_CXX=
12149 ;;
12150 *)
12151 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12152 ;;
12153 esac
12154
12155 #
12156 # Check to make sure the static flag actually works.
12157 #
12158 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12159 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12160 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12161 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12163 else
12164 lt_prog_compiler_static_works_CXX=no
12165 save_LDFLAGS="$LDFLAGS"
12166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12167 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12169 # The linker can only warn and ignore the option if not recognized
12170 # So say no if there are warnings
12171 if test -s conftest.err; then
12172 # Append any errors to the config.log.
12173 cat conftest.err 1>&5
12174 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12176 if diff conftest.exp conftest.er2 >/dev/null; then
12177 lt_prog_compiler_static_works_CXX=yes
12178 fi
12179 else
12180 lt_prog_compiler_static_works_CXX=yes
12181 fi
12182 fi
12183 $rm conftest*
12184 LDFLAGS="$save_LDFLAGS"
12185
12186 fi
12187 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12188 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12189
12190 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12191 :
12192 else
12193 lt_prog_compiler_static_CXX=
12194 fi
12195
12196
12197 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12198 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12199 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12201 else
12202 lt_cv_prog_compiler_c_o_CXX=no
12203 $rm -r conftest 2>/dev/null
12204 mkdir conftest
12205 cd conftest
12206 mkdir out
12207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12208
12209 lt_compiler_flag="-o out/conftest2.$ac_objext"
12210 # Insert the option either (1) after the last *FLAGS variable, or
12211 # (2) before a word containing "conftest.", or (3) at the end.
12212 # Note that $ac_compile itself does not contain backslashes and begins
12213 # with a dollar sign (not a hyphen), so the echo should work correctly.
12214 lt_compile=`echo "$ac_compile" | $SED \
12215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12217 -e 's:$: $lt_compiler_flag:'`
12218 (eval echo "\"\$as_me:12219: $lt_compile\"" >&5)
12219 (eval "$lt_compile" 2>out/conftest.err)
12220 ac_status=$?
12221 cat out/conftest.err >&5
12222 echo "$as_me:12223: \$? = $ac_status" >&5
12223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12224 then
12225 # The compiler can only warn and ignore the option if not recognized
12226 # So say no if there are warnings
12227 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12230 lt_cv_prog_compiler_c_o_CXX=yes
12231 fi
12232 fi
12233 chmod u+w . 2>&5
12234 $rm conftest*
12235 # SGI C++ compiler will create directory out/ii_files/ for
12236 # template instantiation
12237 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12238 $rm out/* && rmdir out
12239 cd ..
12240 rmdir conftest
12241 $rm conftest*
12242
12243 fi
12244 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12245 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12246
12247
12248 hard_links="nottested"
12249 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12250 # do not overwrite the value of need_locks provided by the user
12251 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12252 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12253 hard_links=yes
12254 $rm conftest*
12255 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12256 touch conftest.a
12257 ln conftest.a conftest.b 2>&5 || hard_links=no
12258 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12259 { echo "$as_me:$LINENO: result: $hard_links" >&5
12260 echo "${ECHO_T}$hard_links" >&6; }
12261 if test "$hard_links" = no; then
12262 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12263 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12264 need_locks=warn
12265 fi
12266 else
12267 need_locks=no
12268 fi
12269
12270 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12271 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12272
12273 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12274 case $host_os in
12275 aix4* | aix5*)
12276 # If we're using GNU nm, then we don't want the "-C" option.
12277 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12278 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12279 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12280 else
12281 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12282 fi
12283 ;;
12284 pw32*)
12285 export_symbols_cmds_CXX="$ltdll_cmds"
12286 ;;
12287 cygwin* | mingw*)
12288 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12289 ;;
12290 linux* | k*bsd*-gnu)
12291 link_all_deplibs_CXX=no
12292 ;;
12293 *)
12294 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12295 ;;
12296 esac
12297
12298 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12299 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12300 test "$ld_shlibs_CXX" = no && can_build_shared=no
12301
12302 #
12303 # Do we need to explicitly link libc?
12304 #
12305 case "x$archive_cmds_need_lc_CXX" in
12306 x|xyes)
12307 # Assume -lc should be added
12308 archive_cmds_need_lc_CXX=yes
12309
12310 if test "$enable_shared" = yes && test "$GCC" = yes; then
12311 case $archive_cmds_CXX in
12312 *'~'*)
12313 # FIXME: we may have to deal with multi-command sequences.
12314 ;;
12315 '$CC '*)
12316 # Test whether the compiler implicitly links with -lc since on some
12317 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12318 # to ld, don't add -lc before -lgcc.
12319 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12320 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12321 $rm conftest*
12322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12323
12324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12325 (eval $ac_compile) 2>&5
12326 ac_status=$?
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } 2>conftest.err; then
12329 soname=conftest
12330 lib=conftest
12331 libobjs=conftest.$ac_objext
12332 deplibs=
12333 wl=$lt_prog_compiler_wl_CXX
12334 pic_flag=$lt_prog_compiler_pic_CXX
12335 compiler_flags=-v
12336 linker_flags=-v
12337 verstring=
12338 output_objdir=.
12339 libname=conftest
12340 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12341 allow_undefined_flag_CXX=
12342 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12343 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12344 ac_status=$?
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }
12347 then
12348 archive_cmds_need_lc_CXX=no
12349 else
12350 archive_cmds_need_lc_CXX=yes
12351 fi
12352 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12353 else
12354 cat conftest.err 1>&5
12355 fi
12356 $rm conftest*
12357 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12358 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12359 ;;
12360 esac
12361 fi
12362 ;;
12363 esac
12364
12365 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12366 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12367 library_names_spec=
12368 libname_spec='lib$name'
12369 soname_spec=
12370 shrext_cmds=".so"
12371 postinstall_cmds=
12372 postuninstall_cmds=
12373 finish_cmds=
12374 finish_eval=
12375 shlibpath_var=
12376 shlibpath_overrides_runpath=unknown
12377 version_type=none
12378 dynamic_linker="$host_os ld.so"
12379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12380 if test "$GCC" = yes; then
12381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12382 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12383 # if the path contains ";" then we assume it to be the separator
12384 # otherwise default to the standard path separator (i.e. ":") - it is
12385 # assumed that no part of a normal pathname contains ";" but that should
12386 # okay in the real world where ";" in dirpaths is itself problematic.
12387 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12388 else
12389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12390 fi
12391 else
12392 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12393 fi
12394 need_lib_prefix=unknown
12395 hardcode_into_libs=no
12396
12397 # when you set need_version to no, make sure it does not cause -set_version
12398 # flags to be left without arguments
12399 need_version=unknown
12400
12401 case $host_os in
12402 aix3*)
12403 version_type=linux
12404 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12405 shlibpath_var=LIBPATH
12406
12407 # AIX 3 has no versioning support, so we append a major version to the name.
12408 soname_spec='${libname}${release}${shared_ext}$major'
12409 ;;
12410
12411 aix4* | aix5*)
12412 version_type=linux
12413 need_lib_prefix=no
12414 need_version=no
12415 hardcode_into_libs=yes
12416 if test "$host_cpu" = ia64; then
12417 # AIX 5 supports IA64
12418 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12419 shlibpath_var=LD_LIBRARY_PATH
12420 else
12421 # With GCC up to 2.95.x, collect2 would create an import file
12422 # for dependence libraries. The import file would start with
12423 # the line `#! .'. This would cause the generated library to
12424 # depend on `.', always an invalid library. This was fixed in
12425 # development snapshots of GCC prior to 3.0.
12426 case $host_os in
12427 aix4 | aix4.[01] | aix4.[01].*)
12428 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12429 echo ' yes '
12430 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12431 :
12432 else
12433 can_build_shared=no
12434 fi
12435 ;;
12436 esac
12437 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12438 # soname into executable. Probably we can add versioning support to
12439 # collect2, so additional links can be useful in future.
12440 if test "$aix_use_runtimelinking" = yes; then
12441 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12442 # instead of lib<name>.a to let people know that these are not
12443 # typical AIX shared libraries.
12444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12445 else
12446 # We preserve .a as extension for shared libraries through AIX4.2
12447 # and later when we are not doing run time linking.
12448 library_names_spec='${libname}${release}.a $libname.a'
12449 soname_spec='${libname}${release}${shared_ext}$major'
12450 fi
12451 shlibpath_var=LIBPATH
12452 fi
12453 ;;
12454
12455 amigaos*)
12456 library_names_spec='$libname.ixlibrary $libname.a'
12457 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12458 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'
12459 ;;
12460
12461 beos*)
12462 library_names_spec='${libname}${shared_ext}'
12463 dynamic_linker="$host_os ld.so"
12464 shlibpath_var=LIBRARY_PATH
12465 ;;
12466
12467 bsdi[45]*)
12468 version_type=linux
12469 need_version=no
12470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12471 soname_spec='${libname}${release}${shared_ext}$major'
12472 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12473 shlibpath_var=LD_LIBRARY_PATH
12474 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12475 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12476 # the default ld.so.conf also contains /usr/contrib/lib and
12477 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12478 # libtool to hard-code these into programs
12479 ;;
12480
12481 cygwin* | mingw* | pw32*)
12482 version_type=windows
12483 shrext_cmds=".dll"
12484 need_version=no
12485 need_lib_prefix=no
12486
12487 case $GCC,$host_os in
12488 yes,cygwin* | yes,mingw* | yes,pw32*)
12489 library_names_spec='$libname.dll.a'
12490 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12491 postinstall_cmds='base_file=`basename \${file}`~
12492 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12493 dldir=$destdir/`dirname \$dlpath`~
12494 test -d \$dldir || mkdir -p \$dldir~
12495 $install_prog $dir/$dlname \$dldir/$dlname~
12496 chmod a+x \$dldir/$dlname'
12497 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12498 dlpath=$dir/\$dldll~
12499 $rm \$dlpath'
12500 shlibpath_overrides_runpath=yes
12501
12502 case $host_os in
12503 cygwin*)
12504 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12505 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12506 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12507 ;;
12508 mingw*)
12509 # MinGW DLLs use traditional 'lib' prefix
12510 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12511 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12512 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12513 # It is most probably a Windows format PATH printed by
12514 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12515 # path with ; separators, and with drive letters. We can handle the
12516 # drive letters (cygwin fileutils understands them), so leave them,
12517 # especially as we might pass files found there to a mingw objdump,
12518 # which wouldn't understand a cygwinified path. Ahh.
12519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12520 else
12521 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12522 fi
12523 ;;
12524 pw32*)
12525 # pw32 DLLs use 'pw' prefix rather than 'lib'
12526 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12527 ;;
12528 esac
12529 ;;
12530
12531 *)
12532 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12533 ;;
12534 esac
12535 dynamic_linker='Win32 ld.exe'
12536 # FIXME: first we should search . and the directory the executable is in
12537 shlibpath_var=PATH
12538 ;;
12539
12540 darwin* | rhapsody*)
12541 dynamic_linker="$host_os dyld"
12542 version_type=darwin
12543 need_lib_prefix=no
12544 need_version=no
12545 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12546 soname_spec='${libname}${release}${major}$shared_ext'
12547 shlibpath_overrides_runpath=yes
12548 shlibpath_var=DYLD_LIBRARY_PATH
12549 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12550 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12551 if test "$GCC" = yes; then
12552 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"`
12553 else
12554 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12555 fi
12556 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12557 ;;
12558
12559 dgux*)
12560 version_type=linux
12561 need_lib_prefix=no
12562 need_version=no
12563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12564 soname_spec='${libname}${release}${shared_ext}$major'
12565 shlibpath_var=LD_LIBRARY_PATH
12566 ;;
12567
12568 freebsd1*)
12569 dynamic_linker=no
12570 ;;
12571
12572 freebsd* | dragonfly*)
12573 # DragonFly does not have aout. When/if they implement a new
12574 # versioning mechanism, adjust this.
12575 if test -x /usr/bin/objformat; then
12576 objformat=`/usr/bin/objformat`
12577 else
12578 case $host_os in
12579 freebsd[123]*) objformat=aout ;;
12580 *) objformat=elf ;;
12581 esac
12582 fi
12583 version_type=freebsd-$objformat
12584 case $version_type in
12585 freebsd-elf*)
12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12587 need_version=no
12588 need_lib_prefix=no
12589 ;;
12590 freebsd-*)
12591 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12592 need_version=yes
12593 ;;
12594 esac
12595 shlibpath_var=LD_LIBRARY_PATH
12596 case $host_os in
12597 freebsd2*)
12598 shlibpath_overrides_runpath=yes
12599 ;;
12600 freebsd3.[01]* | freebsdelf3.[01]*)
12601 shlibpath_overrides_runpath=yes
12602 hardcode_into_libs=yes
12603 ;;
12604 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12605 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12606 shlibpath_overrides_runpath=no
12607 hardcode_into_libs=yes
12608 ;;
12609 freebsd*) # from 4.6 on
12610 shlibpath_overrides_runpath=yes
12611 hardcode_into_libs=yes
12612 ;;
12613 esac
12614 ;;
12615
12616 gnu*)
12617 version_type=linux
12618 need_lib_prefix=no
12619 need_version=no
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12621 soname_spec='${libname}${release}${shared_ext}$major'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 hardcode_into_libs=yes
12624 ;;
12625
12626 hpux9* | hpux10* | hpux11*)
12627 # Give a soname corresponding to the major version so that dld.sl refuses to
12628 # link against other versions.
12629 version_type=sunos
12630 need_lib_prefix=no
12631 need_version=no
12632 case $host_cpu in
12633 ia64*)
12634 shrext_cmds='.so'
12635 hardcode_into_libs=yes
12636 dynamic_linker="$host_os dld.so"
12637 shlibpath_var=LD_LIBRARY_PATH
12638 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12640 soname_spec='${libname}${release}${shared_ext}$major'
12641 if test "X$HPUX_IA64_MODE" = X32; then
12642 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12643 else
12644 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12645 fi
12646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12647 ;;
12648 hppa*64*)
12649 shrext_cmds='.sl'
12650 hardcode_into_libs=yes
12651 dynamic_linker="$host_os dld.sl"
12652 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12653 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12655 soname_spec='${libname}${release}${shared_ext}$major'
12656 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12658 ;;
12659 *)
12660 shrext_cmds='.sl'
12661 dynamic_linker="$host_os dld.sl"
12662 shlibpath_var=SHLIB_PATH
12663 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12665 soname_spec='${libname}${release}${shared_ext}$major'
12666 ;;
12667 esac
12668 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12669 postinstall_cmds='chmod 555 $lib'
12670 ;;
12671
12672 interix3*)
12673 version_type=linux
12674 need_lib_prefix=no
12675 need_version=no
12676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12677 soname_spec='${libname}${release}${shared_ext}$major'
12678 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 shlibpath_overrides_runpath=no
12681 hardcode_into_libs=yes
12682 ;;
12683
12684 irix5* | irix6* | nonstopux*)
12685 case $host_os in
12686 nonstopux*) version_type=nonstopux ;;
12687 *)
12688 if test "$lt_cv_prog_gnu_ld" = yes; then
12689 version_type=linux
12690 else
12691 version_type=irix
12692 fi ;;
12693 esac
12694 need_lib_prefix=no
12695 need_version=no
12696 soname_spec='${libname}${release}${shared_ext}$major'
12697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12698 case $host_os in
12699 irix5* | nonstopux*)
12700 libsuff= shlibsuff=
12701 ;;
12702 *)
12703 case $LD in # libtool.m4 will add one of these switches to LD
12704 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12705 libsuff= shlibsuff= libmagic=32-bit;;
12706 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12707 libsuff=32 shlibsuff=N32 libmagic=N32;;
12708 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12709 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12710 *) libsuff= shlibsuff= libmagic=never-match;;
12711 esac
12712 ;;
12713 esac
12714 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12715 shlibpath_overrides_runpath=no
12716 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12717 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12718 hardcode_into_libs=yes
12719 ;;
12720
12721 # No shared lib support for Linux oldld, aout, or coff.
12722 linux*oldld* | linux*aout* | linux*coff*)
12723 dynamic_linker=no
12724 ;;
12725
12726 # This must be Linux ELF.
12727 linux* | k*bsd*-gnu)
12728 version_type=linux
12729 need_lib_prefix=no
12730 need_version=no
12731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12732 soname_spec='${libname}${release}${shared_ext}$major'
12733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12734 shlibpath_var=LD_LIBRARY_PATH
12735 shlibpath_overrides_runpath=no
12736 # This implies no fast_install, which is unacceptable.
12737 # Some rework will be needed to allow for fast_install
12738 # before this can be enabled.
12739 hardcode_into_libs=yes
12740
12741 # Append ld.so.conf contents to the search path
12742 if test -f /etc/ld.so.conf; then
12743 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12744 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12745 fi
12746
12747 # We used to test for /lib/ld.so.1 and disable shared libraries on
12748 # powerpc, because MkLinux only supported shared libraries with the
12749 # GNU dynamic linker. Since this was broken with cross compilers,
12750 # most powerpc-linux boxes support dynamic linking these days and
12751 # people can always --disable-shared, the test was removed, and we
12752 # assume the GNU/Linux dynamic linker is in use.
12753 dynamic_linker='GNU/Linux ld.so'
12754 ;;
12755
12756 netbsdelf*-gnu)
12757 version_type=linux
12758 need_lib_prefix=no
12759 need_version=no
12760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12761 soname_spec='${libname}${release}${shared_ext}$major'
12762 shlibpath_var=LD_LIBRARY_PATH
12763 shlibpath_overrides_runpath=no
12764 hardcode_into_libs=yes
12765 dynamic_linker='NetBSD ld.elf_so'
12766 ;;
12767
12768 netbsd*)
12769 version_type=sunos
12770 need_lib_prefix=no
12771 need_version=no
12772 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12774 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12775 dynamic_linker='NetBSD (a.out) ld.so'
12776 else
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12778 soname_spec='${libname}${release}${shared_ext}$major'
12779 dynamic_linker='NetBSD ld.elf_so'
12780 fi
12781 shlibpath_var=LD_LIBRARY_PATH
12782 shlibpath_overrides_runpath=yes
12783 hardcode_into_libs=yes
12784 ;;
12785
12786 newsos6)
12787 version_type=linux
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789 shlibpath_var=LD_LIBRARY_PATH
12790 shlibpath_overrides_runpath=yes
12791 ;;
12792
12793 nto-qnx*)
12794 version_type=linux
12795 need_lib_prefix=no
12796 need_version=no
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 shlibpath_var=LD_LIBRARY_PATH
12800 shlibpath_overrides_runpath=yes
12801 ;;
12802
12803 openbsd*)
12804 version_type=sunos
12805 sys_lib_dlsearch_path_spec="/usr/lib"
12806 need_lib_prefix=no
12807 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12808 case $host_os in
12809 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12810 *) need_version=no ;;
12811 esac
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12814 shlibpath_var=LD_LIBRARY_PATH
12815 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12816 case $host_os in
12817 openbsd2.[89] | openbsd2.[89].*)
12818 shlibpath_overrides_runpath=no
12819 ;;
12820 *)
12821 shlibpath_overrides_runpath=yes
12822 ;;
12823 esac
12824 else
12825 shlibpath_overrides_runpath=yes
12826 fi
12827 ;;
12828
12829 os2*)
12830 libname_spec='$name'
12831 shrext_cmds=".dll"
12832 need_lib_prefix=no
12833 library_names_spec='$libname${shared_ext} $libname.a'
12834 dynamic_linker='OS/2 ld.exe'
12835 shlibpath_var=LIBPATH
12836 ;;
12837
12838 osf3* | osf4* | osf5*)
12839 version_type=osf
12840 need_lib_prefix=no
12841 need_version=no
12842 soname_spec='${libname}${release}${shared_ext}$major'
12843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12844 shlibpath_var=LD_LIBRARY_PATH
12845 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12846 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12847 ;;
12848
12849 solaris*)
12850 version_type=linux
12851 need_lib_prefix=no
12852 need_version=no
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12854 soname_spec='${libname}${release}${shared_ext}$major'
12855 shlibpath_var=LD_LIBRARY_PATH
12856 shlibpath_overrides_runpath=yes
12857 hardcode_into_libs=yes
12858 # ldd complains unless libraries are executable
12859 postinstall_cmds='chmod +x $lib'
12860 ;;
12861
12862 sunos4*)
12863 version_type=sunos
12864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12865 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12866 shlibpath_var=LD_LIBRARY_PATH
12867 shlibpath_overrides_runpath=yes
12868 if test "$with_gnu_ld" = yes; then
12869 need_lib_prefix=no
12870 fi
12871 need_version=yes
12872 ;;
12873
12874 sysv4 | sysv4.3*)
12875 version_type=linux
12876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12877 soname_spec='${libname}${release}${shared_ext}$major'
12878 shlibpath_var=LD_LIBRARY_PATH
12879 case $host_vendor in
12880 sni)
12881 shlibpath_overrides_runpath=no
12882 need_lib_prefix=no
12883 export_dynamic_flag_spec='${wl}-Blargedynsym'
12884 runpath_var=LD_RUN_PATH
12885 ;;
12886 siemens)
12887 need_lib_prefix=no
12888 ;;
12889 motorola)
12890 need_lib_prefix=no
12891 need_version=no
12892 shlibpath_overrides_runpath=no
12893 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12894 ;;
12895 esac
12896 ;;
12897
12898 sysv4*MP*)
12899 if test -d /usr/nec ;then
12900 version_type=linux
12901 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12902 soname_spec='$libname${shared_ext}.$major'
12903 shlibpath_var=LD_LIBRARY_PATH
12904 fi
12905 ;;
12906
12907 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12908 version_type=freebsd-elf
12909 need_lib_prefix=no
12910 need_version=no
12911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12912 soname_spec='${libname}${release}${shared_ext}$major'
12913 shlibpath_var=LD_LIBRARY_PATH
12914 hardcode_into_libs=yes
12915 if test "$with_gnu_ld" = yes; then
12916 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12917 shlibpath_overrides_runpath=no
12918 else
12919 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12920 shlibpath_overrides_runpath=yes
12921 case $host_os in
12922 sco3.2v5*)
12923 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12924 ;;
12925 esac
12926 fi
12927 sys_lib_dlsearch_path_spec='/usr/lib'
12928 ;;
12929
12930 uts4*)
12931 version_type=linux
12932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12933 soname_spec='${libname}${release}${shared_ext}$major'
12934 shlibpath_var=LD_LIBRARY_PATH
12935 ;;
12936
12937 *)
12938 dynamic_linker=no
12939 ;;
12940 esac
12941 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12942 echo "${ECHO_T}$dynamic_linker" >&6; }
12943 test "$dynamic_linker" = no && can_build_shared=no
12944
12945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12946 if test "$GCC" = yes; then
12947 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12948 fi
12949
12950 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12951 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
12952 hardcode_action_CXX=
12953 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12954 test -n "$runpath_var_CXX" || \
12955 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12956
12957 # We can hardcode non-existant directories.
12958 if test "$hardcode_direct_CXX" != no &&
12959 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12960 # have to relink, otherwise we might link with an installed library
12961 # when we should be linking with a yet-to-be-installed one
12962 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12963 test "$hardcode_minus_L_CXX" != no; then
12964 # Linking always hardcodes the temporary library directory.
12965 hardcode_action_CXX=relink
12966 else
12967 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12968 hardcode_action_CXX=immediate
12969 fi
12970 else
12971 # We cannot hardcode anything, or else we can only hardcode existing
12972 # directories.
12973 hardcode_action_CXX=unsupported
12974 fi
12975 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12976 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
12977
12978 if test "$hardcode_action_CXX" = relink; then
12979 # Fast installation is not supported
12980 enable_fast_install=no
12981 elif test "$shlibpath_overrides_runpath" = yes ||
12982 test "$enable_shared" = no; then
12983 # Fast installation is not necessary
12984 enable_fast_install=needless
12985 fi
12986
12987
12988 # The else clause should only fire when bootstrapping the
12989 # libtool distribution, otherwise you forgot to ship ltmain.sh
12990 # with your package, and you will get complaints that there are
12991 # no rules to generate ltmain.sh.
12992 if test -f "$ltmain"; then
12993 # See if we are running on zsh, and set the options which allow our commands through
12994 # without removal of \ escapes.
12995 if test -n "${ZSH_VERSION+set}" ; then
12996 setopt NO_GLOB_SUBST
12997 fi
12998 # Now quote all the things that may contain metacharacters while being
12999 # careful not to overquote the AC_SUBSTed values. We take copies of the
13000 # variables and quote the copies for generation of the libtool script.
13001 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13002 SED SHELL STRIP \
13003 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13004 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13005 deplibs_check_method reload_flag reload_cmds need_locks \
13006 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13007 lt_cv_sys_global_symbol_to_c_name_address \
13008 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13009 old_postinstall_cmds old_postuninstall_cmds \
13010 compiler_CXX \
13011 CC_CXX \
13012 LD_CXX \
13013 lt_prog_compiler_wl_CXX \
13014 lt_prog_compiler_pic_CXX \
13015 lt_prog_compiler_static_CXX \
13016 lt_prog_compiler_no_builtin_flag_CXX \
13017 export_dynamic_flag_spec_CXX \
13018 thread_safe_flag_spec_CXX \
13019 whole_archive_flag_spec_CXX \
13020 enable_shared_with_static_runtimes_CXX \
13021 old_archive_cmds_CXX \
13022 old_archive_from_new_cmds_CXX \
13023 predep_objects_CXX \
13024 postdep_objects_CXX \
13025 predeps_CXX \
13026 postdeps_CXX \
13027 compiler_lib_search_path_CXX \
13028 archive_cmds_CXX \
13029 archive_expsym_cmds_CXX \
13030 postinstall_cmds_CXX \
13031 postuninstall_cmds_CXX \
13032 old_archive_from_expsyms_cmds_CXX \
13033 allow_undefined_flag_CXX \
13034 no_undefined_flag_CXX \
13035 export_symbols_cmds_CXX \
13036 hardcode_libdir_flag_spec_CXX \
13037 hardcode_libdir_flag_spec_ld_CXX \
13038 hardcode_libdir_separator_CXX \
13039 hardcode_automatic_CXX \
13040 module_cmds_CXX \
13041 module_expsym_cmds_CXX \
13042 lt_cv_prog_compiler_c_o_CXX \
13043 exclude_expsyms_CXX \
13044 include_expsyms_CXX; do
13045
13046 case $var in
13047 old_archive_cmds_CXX | \
13048 old_archive_from_new_cmds_CXX | \
13049 archive_cmds_CXX | \
13050 archive_expsym_cmds_CXX | \
13051 module_cmds_CXX | \
13052 module_expsym_cmds_CXX | \
13053 old_archive_from_expsyms_cmds_CXX | \
13054 export_symbols_cmds_CXX | \
13055 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13056 postinstall_cmds | postuninstall_cmds | \
13057 old_postinstall_cmds | old_postuninstall_cmds | \
13058 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13059 # Double-quote double-evaled strings.
13060 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13061 ;;
13062 *)
13063 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13064 ;;
13065 esac
13066 done
13067
13068 case $lt_echo in
13069 *'\$0 --fallback-echo"')
13070 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13071 ;;
13072 esac
13073
13074 cfgfile="$ofile"
13075
13076 cat <<__EOF__ >> "$cfgfile"
13077 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13078
13079 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13080
13081 # Shell to use when invoking shell scripts.
13082 SHELL=$lt_SHELL
13083
13084 # Whether or not to build shared libraries.
13085 build_libtool_libs=$enable_shared
13086
13087 # Whether or not to build static libraries.
13088 build_old_libs=$enable_static
13089
13090 # Whether or not to add -lc for building shared libraries.
13091 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13092
13093 # Whether or not to disallow shared libs when runtime libs are static
13094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13095
13096 # Whether or not to optimize for fast installation.
13097 fast_install=$enable_fast_install
13098
13099 # The host system.
13100 host_alias=$host_alias
13101 host=$host
13102 host_os=$host_os
13103
13104 # The build system.
13105 build_alias=$build_alias
13106 build=$build
13107 build_os=$build_os
13108
13109 # An echo program that does not interpret backslashes.
13110 echo=$lt_echo
13111
13112 # The archiver.
13113 AR=$lt_AR
13114 AR_FLAGS=$lt_AR_FLAGS
13115
13116 # A C compiler.
13117 LTCC=$lt_LTCC
13118
13119 # LTCC compiler flags.
13120 LTCFLAGS=$lt_LTCFLAGS
13121
13122 # A language-specific compiler.
13123 CC=$lt_compiler_CXX
13124
13125 # Is the compiler the GNU C compiler?
13126 with_gcc=$GCC_CXX
13127
13128 # An ERE matcher.
13129 EGREP=$lt_EGREP
13130
13131 # The linker used to build libraries.
13132 LD=$lt_LD_CXX
13133
13134 # Whether we need hard or soft links.
13135 LN_S=$lt_LN_S
13136
13137 # A BSD-compatible nm program.
13138 NM=$lt_NM
13139
13140 # A symbol stripping program
13141 STRIP=$lt_STRIP
13142
13143 # Used to examine libraries when file_magic_cmd begins "file"
13144 MAGIC_CMD=$MAGIC_CMD
13145
13146 # Used on cygwin: DLL creation program.
13147 DLLTOOL="$DLLTOOL"
13148
13149 # Used on cygwin: object dumper.
13150 OBJDUMP="$OBJDUMP"
13151
13152 # Used on cygwin: assembler.
13153 AS="$AS"
13154
13155 # The name of the directory that contains temporary libtool files.
13156 objdir=$objdir
13157
13158 # How to create reloadable object files.
13159 reload_flag=$lt_reload_flag
13160 reload_cmds=$lt_reload_cmds
13161
13162 # How to pass a linker flag through the compiler.
13163 wl=$lt_lt_prog_compiler_wl_CXX
13164
13165 # Object file suffix (normally "o").
13166 objext="$ac_objext"
13167
13168 # Old archive suffix (normally "a").
13169 libext="$libext"
13170
13171 # Shared library suffix (normally ".so").
13172 shrext_cmds='$shrext_cmds'
13173
13174 # Executable file suffix (normally "").
13175 exeext="$exeext"
13176
13177 # Additional compiler flags for building library objects.
13178 pic_flag=$lt_lt_prog_compiler_pic_CXX
13179 pic_mode=$pic_mode
13180
13181 # What is the maximum length of a command?
13182 max_cmd_len=$lt_cv_sys_max_cmd_len
13183
13184 # Does compiler simultaneously support -c and -o options?
13185 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13186
13187 # Must we lock files when doing compilation?
13188 need_locks=$lt_need_locks
13189
13190 # Do we need the lib prefix for modules?
13191 need_lib_prefix=$need_lib_prefix
13192
13193 # Do we need a version for libraries?
13194 need_version=$need_version
13195
13196 # Whether dlopen is supported.
13197 dlopen_support=$enable_dlopen
13198
13199 # Whether dlopen of programs is supported.
13200 dlopen_self=$enable_dlopen_self
13201
13202 # Whether dlopen of statically linked programs is supported.
13203 dlopen_self_static=$enable_dlopen_self_static
13204
13205 # Compiler flag to prevent dynamic linking.
13206 link_static_flag=$lt_lt_prog_compiler_static_CXX
13207
13208 # Compiler flag to turn off builtin functions.
13209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13210
13211 # Compiler flag to allow reflexive dlopens.
13212 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13213
13214 # Compiler flag to generate shared objects directly from archives.
13215 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13216
13217 # Compiler flag to generate thread-safe objects.
13218 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13219
13220 # Library versioning type.
13221 version_type=$version_type
13222
13223 # Format of library name prefix.
13224 libname_spec=$lt_libname_spec
13225
13226 # List of archive names. First name is the real one, the rest are links.
13227 # The last name is the one that the linker finds with -lNAME.
13228 library_names_spec=$lt_library_names_spec
13229
13230 # The coded name of the library, if different from the real name.
13231 soname_spec=$lt_soname_spec
13232
13233 # Commands used to build and install an old-style archive.
13234 RANLIB=$lt_RANLIB
13235 old_archive_cmds=$lt_old_archive_cmds_CXX
13236 old_postinstall_cmds=$lt_old_postinstall_cmds
13237 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13238
13239 # Create an old-style archive from a shared archive.
13240 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13241
13242 # Create a temporary old-style archive to link instead of a shared archive.
13243 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13244
13245 # Commands used to build and install a shared archive.
13246 archive_cmds=$lt_archive_cmds_CXX
13247 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13248 postinstall_cmds=$lt_postinstall_cmds
13249 postuninstall_cmds=$lt_postuninstall_cmds
13250
13251 # Commands used to build a loadable module (assumed same as above if empty)
13252 module_cmds=$lt_module_cmds_CXX
13253 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13254
13255 # Commands to strip libraries.
13256 old_striplib=$lt_old_striplib
13257 striplib=$lt_striplib
13258
13259 # Dependencies to place before the objects being linked to create a
13260 # shared library.
13261 predep_objects=$lt_predep_objects_CXX
13262
13263 # Dependencies to place after the objects being linked to create a
13264 # shared library.
13265 postdep_objects=$lt_postdep_objects_CXX
13266
13267 # Dependencies to place before the objects being linked to create a
13268 # shared library.
13269 predeps=$lt_predeps_CXX
13270
13271 # Dependencies to place after the objects being linked to create a
13272 # shared library.
13273 postdeps=$lt_postdeps_CXX
13274
13275 # The library search path used internally by the compiler when linking
13276 # a shared library.
13277 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13278
13279 # Method to check whether dependent libraries are shared objects.
13280 deplibs_check_method=$lt_deplibs_check_method
13281
13282 # Command to use when deplibs_check_method == file_magic.
13283 file_magic_cmd=$lt_file_magic_cmd
13284
13285 # Flag that allows shared libraries with undefined symbols to be built.
13286 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13287
13288 # Flag that forces no undefined symbols.
13289 no_undefined_flag=$lt_no_undefined_flag_CXX
13290
13291 # Commands used to finish a libtool library installation in a directory.
13292 finish_cmds=$lt_finish_cmds
13293
13294 # Same as above, but a single script fragment to be evaled but not shown.
13295 finish_eval=$lt_finish_eval
13296
13297 # Take the output of nm and produce a listing of raw symbols and C names.
13298 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13299
13300 # Transform the output of nm in a proper C declaration
13301 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13302
13303 # Transform the output of nm in a C name address pair
13304 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13305
13306 # This is the shared library runtime path variable.
13307 runpath_var=$runpath_var
13308
13309 # This is the shared library path variable.
13310 shlibpath_var=$shlibpath_var
13311
13312 # Is shlibpath searched before the hard-coded library search path?
13313 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13314
13315 # How to hardcode a shared library path into an executable.
13316 hardcode_action=$hardcode_action_CXX
13317
13318 # Whether we should hardcode library paths into libraries.
13319 hardcode_into_libs=$hardcode_into_libs
13320
13321 # Flag to hardcode \$libdir into a binary during linking.
13322 # This must work even if \$libdir does not exist.
13323 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13324
13325 # If ld is used when linking, flag to hardcode \$libdir into
13326 # a binary during linking. This must work even if \$libdir does
13327 # not exist.
13328 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13329
13330 # Whether we need a single -rpath flag with a separated argument.
13331 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13332
13333 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13334 # resulting binary.
13335 hardcode_direct=$hardcode_direct_CXX
13336
13337 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13338 # resulting binary.
13339 hardcode_minus_L=$hardcode_minus_L_CXX
13340
13341 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13342 # the resulting binary.
13343 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13344
13345 # Set to yes if building a shared library automatically hardcodes DIR into the library
13346 # and all subsequent libraries and executables linked against it.
13347 hardcode_automatic=$hardcode_automatic_CXX
13348
13349 # Variables whose values should be saved in libtool wrapper scripts and
13350 # restored at relink time.
13351 variables_saved_for_relink="$variables_saved_for_relink"
13352
13353 # Whether libtool must link a program against all its dependency libraries.
13354 link_all_deplibs=$link_all_deplibs_CXX
13355
13356 # Compile-time system search path for libraries
13357 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13358
13359 # Run-time system search path for libraries
13360 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13361
13362 # Fix the shell variable \$srcfile for the compiler.
13363 fix_srcfile_path="$fix_srcfile_path_CXX"
13364
13365 # Set to yes if exported symbols are required.
13366 always_export_symbols=$always_export_symbols_CXX
13367
13368 # The commands to list exported symbols.
13369 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13370
13371 # The commands to extract the exported symbol list from a shared archive.
13372 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13373
13374 # Symbols that should not be listed in the preloaded symbols.
13375 exclude_expsyms=$lt_exclude_expsyms_CXX
13376
13377 # Symbols that must always be exported.
13378 include_expsyms=$lt_include_expsyms_CXX
13379
13380 # ### END LIBTOOL TAG CONFIG: $tagname
13381
13382 __EOF__
13383
13384
13385 else
13386 # If there is no Makefile yet, we rely on a make rule to execute
13387 # `config.status --recheck' to rerun these tests and create the
13388 # libtool script then.
13389 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13390 if test -f "$ltmain_in"; then
13391 test -f Makefile && make "$ltmain"
13392 fi
13393 fi
13394
13395
13396 ac_ext=c
13397 ac_cpp='$CPP $CPPFLAGS'
13398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13401
13402 CC=$lt_save_CC
13403 LDCXX=$LD
13404 LD=$lt_save_LD
13405 GCC=$lt_save_GCC
13406 with_gnu_ldcxx=$with_gnu_ld
13407 with_gnu_ld=$lt_save_with_gnu_ld
13408 lt_cv_path_LDCXX=$lt_cv_path_LD
13409 lt_cv_path_LD=$lt_save_path_LD
13410 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13411 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13412
13413 else
13414 tagname=""
13415 fi
13416 ;;
13417
13418 F77)
13419 if test -n "$F77" && test "X$F77" != "Xno"; then
13420
13421 ac_ext=f
13422 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13423 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13424 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13425
13426
13427 archive_cmds_need_lc_F77=no
13428 allow_undefined_flag_F77=
13429 always_export_symbols_F77=no
13430 archive_expsym_cmds_F77=
13431 export_dynamic_flag_spec_F77=
13432 hardcode_direct_F77=no
13433 hardcode_libdir_flag_spec_F77=
13434 hardcode_libdir_flag_spec_ld_F77=
13435 hardcode_libdir_separator_F77=
13436 hardcode_minus_L_F77=no
13437 hardcode_automatic_F77=no
13438 module_cmds_F77=
13439 module_expsym_cmds_F77=
13440 link_all_deplibs_F77=unknown
13441 old_archive_cmds_F77=$old_archive_cmds
13442 no_undefined_flag_F77=
13443 whole_archive_flag_spec_F77=
13444 enable_shared_with_static_runtimes_F77=no
13445
13446 # Source file extension for f77 test sources.
13447 ac_ext=f
13448
13449 # Object file extension for compiled f77 test sources.
13450 objext=o
13451 objext_F77=$objext
13452
13453 # Code to be used in simple compile tests
13454 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13455
13456 # Code to be used in simple link tests
13457 lt_simple_link_test_code=" program t\n end\n"
13458
13459 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13460
13461 # If no C compiler was specified, use CC.
13462 LTCC=${LTCC-"$CC"}
13463
13464 # If no C compiler flags were specified, use CFLAGS.
13465 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13466
13467 # Allow CC to be a program name with arguments.
13468 compiler=$CC
13469
13470
13471 # save warnings/boilerplate of simple test code
13472 ac_outfile=conftest.$ac_objext
13473 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13474 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13475 _lt_compiler_boilerplate=`cat conftest.err`
13476 $rm conftest*
13477
13478 ac_outfile=conftest.$ac_objext
13479 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13480 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13481 _lt_linker_boilerplate=`cat conftest.err`
13482 $rm conftest*
13483
13484
13485 # Allow CC to be a program name with arguments.
13486 lt_save_CC="$CC"
13487 CC=${F77-"f77"}
13488 compiler=$CC
13489 compiler_F77=$CC
13490 for cc_temp in $compiler""; do
13491 case $cc_temp in
13492 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13493 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13494 \-*) ;;
13495 *) break;;
13496 esac
13497 done
13498 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13499
13500
13501 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13502 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
13503 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
13504 echo "${ECHO_T}$can_build_shared" >&6; }
13505
13506 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13507 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
13508 test "$can_build_shared" = "no" && enable_shared=no
13509
13510 # On AIX, shared libraries and static libraries use the same namespace, and
13511 # are all built from PIC.
13512 case $host_os in
13513 aix3*)
13514 test "$enable_shared" = yes && enable_static=no
13515 if test -n "$RANLIB"; then
13516 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13517 postinstall_cmds='$RANLIB $lib'
13518 fi
13519 ;;
13520 aix4* | aix5*)
13521 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13522 test "$enable_shared" = yes && enable_static=no
13523 fi
13524 ;;
13525 esac
13526 { echo "$as_me:$LINENO: result: $enable_shared" >&5
13527 echo "${ECHO_T}$enable_shared" >&6; }
13528
13529 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13530 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
13531 # Make sure either enable_shared or enable_static is yes.
13532 test "$enable_shared" = yes || enable_static=yes
13533 { echo "$as_me:$LINENO: result: $enable_static" >&5
13534 echo "${ECHO_T}$enable_static" >&6; }
13535
13536 GCC_F77="$G77"
13537 LD_F77="$LD"
13538
13539 lt_prog_compiler_wl_F77=
13540 lt_prog_compiler_pic_F77=
13541 lt_prog_compiler_static_F77=
13542
13543 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13544 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
13545
13546 if test "$GCC" = yes; then
13547 lt_prog_compiler_wl_F77='-Wl,'
13548 lt_prog_compiler_static_F77='-static'
13549
13550 case $host_os in
13551 aix*)
13552 # All AIX code is PIC.
13553 if test "$host_cpu" = ia64; then
13554 # AIX 5 now supports IA64 processor
13555 lt_prog_compiler_static_F77='-Bstatic'
13556 fi
13557 ;;
13558
13559 amigaos*)
13560 # FIXME: we need at least 68020 code to build shared libraries, but
13561 # adding the `-m68020' flag to GCC prevents building anything better,
13562 # like `-m68040'.
13563 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13564 ;;
13565
13566 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13567 # PIC is the default for these OSes.
13568 ;;
13569
13570 mingw* | pw32* | os2*)
13571 # This hack is so that the source file can tell whether it is being
13572 # built for inclusion in a dll (and should export symbols for example).
13573 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13574 ;;
13575
13576 darwin* | rhapsody*)
13577 # PIC is the default on this platform
13578 # Common symbols not allowed in MH_DYLIB files
13579 lt_prog_compiler_pic_F77='-fno-common'
13580 ;;
13581
13582 interix3*)
13583 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13584 # Instead, we relocate shared libraries at runtime.
13585 ;;
13586
13587 msdosdjgpp*)
13588 # Just because we use GCC doesn't mean we suddenly get shared libraries
13589 # on systems that don't support them.
13590 lt_prog_compiler_can_build_shared_F77=no
13591 enable_shared=no
13592 ;;
13593
13594 sysv4*MP*)
13595 if test -d /usr/nec; then
13596 lt_prog_compiler_pic_F77=-Kconform_pic
13597 fi
13598 ;;
13599
13600 hpux*)
13601 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13602 # not for PA HP-UX.
13603 case $host_cpu in
13604 hppa*64*|ia64*)
13605 # +Z the default
13606 ;;
13607 *)
13608 lt_prog_compiler_pic_F77='-fPIC'
13609 ;;
13610 esac
13611 ;;
13612
13613 *)
13614 lt_prog_compiler_pic_F77='-fPIC'
13615 ;;
13616 esac
13617 else
13618 # PORTME Check for flag to pass linker flags through the system compiler.
13619 case $host_os in
13620 aix*)
13621 lt_prog_compiler_wl_F77='-Wl,'
13622 if test "$host_cpu" = ia64; then
13623 # AIX 5 now supports IA64 processor
13624 lt_prog_compiler_static_F77='-Bstatic'
13625 else
13626 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13627 fi
13628 ;;
13629 darwin*)
13630 # PIC is the default on this platform
13631 # Common symbols not allowed in MH_DYLIB files
13632 case $cc_basename in
13633 xlc*)
13634 lt_prog_compiler_pic_F77='-qnocommon'
13635 lt_prog_compiler_wl_F77='-Wl,'
13636 ;;
13637 esac
13638 ;;
13639
13640 mingw* | pw32* | os2*)
13641 # This hack is so that the source file can tell whether it is being
13642 # built for inclusion in a dll (and should export symbols for example).
13643 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13644 ;;
13645
13646 hpux9* | hpux10* | hpux11*)
13647 lt_prog_compiler_wl_F77='-Wl,'
13648 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13649 # not for PA HP-UX.
13650 case $host_cpu in
13651 hppa*64*|ia64*)
13652 # +Z the default
13653 ;;
13654 *)
13655 lt_prog_compiler_pic_F77='+Z'
13656 ;;
13657 esac
13658 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13659 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13660 ;;
13661
13662 irix5* | irix6* | nonstopux*)
13663 lt_prog_compiler_wl_F77='-Wl,'
13664 # PIC (with -KPIC) is the default.
13665 lt_prog_compiler_static_F77='-non_shared'
13666 ;;
13667
13668 newsos6)
13669 lt_prog_compiler_pic_F77='-KPIC'
13670 lt_prog_compiler_static_F77='-Bstatic'
13671 ;;
13672
13673 linux* | k*bsd*-gnu)
13674 case $cc_basename in
13675 icc* | ecc*)
13676 lt_prog_compiler_wl_F77='-Wl,'
13677 lt_prog_compiler_pic_F77='-KPIC'
13678 lt_prog_compiler_static_F77='-static'
13679 ;;
13680 pgcc* | pgf77* | pgf90* | pgf95*)
13681 # Portland Group compilers (*not* the Pentium gcc compiler,
13682 # which looks to be a dead project)
13683 lt_prog_compiler_wl_F77='-Wl,'
13684 lt_prog_compiler_pic_F77='-fpic'
13685 lt_prog_compiler_static_F77='-Bstatic'
13686 ;;
13687 ccc*)
13688 lt_prog_compiler_wl_F77='-Wl,'
13689 # All Alpha code is PIC.
13690 lt_prog_compiler_static_F77='-non_shared'
13691 ;;
13692 esac
13693 ;;
13694
13695 osf3* | osf4* | osf5*)
13696 lt_prog_compiler_wl_F77='-Wl,'
13697 # All OSF/1 code is PIC.
13698 lt_prog_compiler_static_F77='-non_shared'
13699 ;;
13700
13701 solaris*)
13702 lt_prog_compiler_pic_F77='-KPIC'
13703 lt_prog_compiler_static_F77='-Bstatic'
13704 case $cc_basename in
13705 f77* | f90* | f95*)
13706 lt_prog_compiler_wl_F77='-Qoption ld ';;
13707 *)
13708 lt_prog_compiler_wl_F77='-Wl,';;
13709 esac
13710 ;;
13711
13712 sunos4*)
13713 lt_prog_compiler_wl_F77='-Qoption ld '
13714 lt_prog_compiler_pic_F77='-PIC'
13715 lt_prog_compiler_static_F77='-Bstatic'
13716 ;;
13717
13718 sysv4 | sysv4.2uw2* | sysv4.3*)
13719 lt_prog_compiler_wl_F77='-Wl,'
13720 lt_prog_compiler_pic_F77='-KPIC'
13721 lt_prog_compiler_static_F77='-Bstatic'
13722 ;;
13723
13724 sysv4*MP*)
13725 if test -d /usr/nec ;then
13726 lt_prog_compiler_pic_F77='-Kconform_pic'
13727 lt_prog_compiler_static_F77='-Bstatic'
13728 fi
13729 ;;
13730
13731 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13732 lt_prog_compiler_wl_F77='-Wl,'
13733 lt_prog_compiler_pic_F77='-KPIC'
13734 lt_prog_compiler_static_F77='-Bstatic'
13735 ;;
13736
13737 unicos*)
13738 lt_prog_compiler_wl_F77='-Wl,'
13739 lt_prog_compiler_can_build_shared_F77=no
13740 ;;
13741
13742 uts4*)
13743 lt_prog_compiler_pic_F77='-pic'
13744 lt_prog_compiler_static_F77='-Bstatic'
13745 ;;
13746
13747 *)
13748 lt_prog_compiler_can_build_shared_F77=no
13749 ;;
13750 esac
13751 fi
13752
13753 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13754 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
13755
13756 #
13757 # Check to make sure the PIC flag actually works.
13758 #
13759 if test -n "$lt_prog_compiler_pic_F77"; then
13760
13761 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13762 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
13763 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13764 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 else
13766 lt_prog_compiler_pic_works_F77=no
13767 ac_outfile=conftest.$ac_objext
13768 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13769 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13770 # Insert the option either (1) after the last *FLAGS variable, or
13771 # (2) before a word containing "conftest.", or (3) at the end.
13772 # Note that $ac_compile itself does not contain backslashes and begins
13773 # with a dollar sign (not a hyphen), so the echo should work correctly.
13774 # The option is referenced via a variable to avoid confusing sed.
13775 lt_compile=`echo "$ac_compile" | $SED \
13776 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13777 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13778 -e 's:$: $lt_compiler_flag:'`
13779 (eval echo "\"\$as_me:13780: $lt_compile\"" >&5)
13780 (eval "$lt_compile" 2>conftest.err)
13781 ac_status=$?
13782 cat conftest.err >&5
13783 echo "$as_me:13784: \$? = $ac_status" >&5
13784 if (exit $ac_status) && test -s "$ac_outfile"; then
13785 # The compiler can only warn and ignore the option if not recognized
13786 # So say no if there are warnings other than the usual output.
13787 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13788 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13789 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13790 lt_prog_compiler_pic_works_F77=yes
13791 fi
13792 fi
13793 $rm conftest*
13794
13795 fi
13796 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13797 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
13798
13799 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13800 case $lt_prog_compiler_pic_F77 in
13801 "" | " "*) ;;
13802 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13803 esac
13804 else
13805 lt_prog_compiler_pic_F77=
13806 lt_prog_compiler_can_build_shared_F77=no
13807 fi
13808
13809 fi
13810 case $host_os in
13811 # For platforms which do not support PIC, -DPIC is meaningless:
13812 *djgpp*)
13813 lt_prog_compiler_pic_F77=
13814 ;;
13815 *)
13816 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13817 ;;
13818 esac
13819
13820 #
13821 # Check to make sure the static flag actually works.
13822 #
13823 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13824 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13825 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
13826 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829 lt_prog_compiler_static_works_F77=no
13830 save_LDFLAGS="$LDFLAGS"
13831 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13832 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13833 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13834 # The linker can only warn and ignore the option if not recognized
13835 # So say no if there are warnings
13836 if test -s conftest.err; then
13837 # Append any errors to the config.log.
13838 cat conftest.err 1>&5
13839 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13841 if diff conftest.exp conftest.er2 >/dev/null; then
13842 lt_prog_compiler_static_works_F77=yes
13843 fi
13844 else
13845 lt_prog_compiler_static_works_F77=yes
13846 fi
13847 fi
13848 $rm conftest*
13849 LDFLAGS="$save_LDFLAGS"
13850
13851 fi
13852 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13853 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
13854
13855 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13856 :
13857 else
13858 lt_prog_compiler_static_F77=
13859 fi
13860
13861
13862 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13863 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
13864 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867 lt_cv_prog_compiler_c_o_F77=no
13868 $rm -r conftest 2>/dev/null
13869 mkdir conftest
13870 cd conftest
13871 mkdir out
13872 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13873
13874 lt_compiler_flag="-o out/conftest2.$ac_objext"
13875 # Insert the option either (1) after the last *FLAGS variable, or
13876 # (2) before a word containing "conftest.", or (3) at the end.
13877 # Note that $ac_compile itself does not contain backslashes and begins
13878 # with a dollar sign (not a hyphen), so the echo should work correctly.
13879 lt_compile=`echo "$ac_compile" | $SED \
13880 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13881 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13882 -e 's:$: $lt_compiler_flag:'`
13883 (eval echo "\"\$as_me:13884: $lt_compile\"" >&5)
13884 (eval "$lt_compile" 2>out/conftest.err)
13885 ac_status=$?
13886 cat out/conftest.err >&5
13887 echo "$as_me:13888: \$? = $ac_status" >&5
13888 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13889 then
13890 # The compiler can only warn and ignore the option if not recognized
13891 # So say no if there are warnings
13892 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13893 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13894 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13895 lt_cv_prog_compiler_c_o_F77=yes
13896 fi
13897 fi
13898 chmod u+w . 2>&5
13899 $rm conftest*
13900 # SGI C++ compiler will create directory out/ii_files/ for
13901 # template instantiation
13902 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13903 $rm out/* && rmdir out
13904 cd ..
13905 rmdir conftest
13906 $rm conftest*
13907
13908 fi
13909 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13910 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
13911
13912
13913 hard_links="nottested"
13914 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13915 # do not overwrite the value of need_locks provided by the user
13916 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13917 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
13918 hard_links=yes
13919 $rm conftest*
13920 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13921 touch conftest.a
13922 ln conftest.a conftest.b 2>&5 || hard_links=no
13923 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13924 { echo "$as_me:$LINENO: result: $hard_links" >&5
13925 echo "${ECHO_T}$hard_links" >&6; }
13926 if test "$hard_links" = no; then
13927 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13928 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13929 need_locks=warn
13930 fi
13931 else
13932 need_locks=no
13933 fi
13934
13935 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13936 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
13937
13938 runpath_var=
13939 allow_undefined_flag_F77=
13940 enable_shared_with_static_runtimes_F77=no
13941 archive_cmds_F77=
13942 archive_expsym_cmds_F77=
13943 old_archive_From_new_cmds_F77=
13944 old_archive_from_expsyms_cmds_F77=
13945 export_dynamic_flag_spec_F77=
13946 whole_archive_flag_spec_F77=
13947 thread_safe_flag_spec_F77=
13948 hardcode_libdir_flag_spec_F77=
13949 hardcode_libdir_flag_spec_ld_F77=
13950 hardcode_libdir_separator_F77=
13951 hardcode_direct_F77=no
13952 hardcode_minus_L_F77=no
13953 hardcode_shlibpath_var_F77=unsupported
13954 link_all_deplibs_F77=unknown
13955 hardcode_automatic_F77=no
13956 module_cmds_F77=
13957 module_expsym_cmds_F77=
13958 always_export_symbols_F77=no
13959 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13960 # include_expsyms should be a list of space-separated symbols to be *always*
13961 # included in the symbol list
13962 include_expsyms_F77=
13963 # exclude_expsyms can be an extended regexp of symbols to exclude
13964 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13965 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13966 # as well as any symbol that contains `d'.
13967 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13968 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13969 # platforms (ab)use it in PIC code, but their linkers get confused if
13970 # the symbol is explicitly referenced. Since portable code cannot
13971 # rely on this symbol name, it's probably fine to never include it in
13972 # preloaded symbol tables.
13973 extract_expsyms_cmds=
13974 # Just being paranoid about ensuring that cc_basename is set.
13975 for cc_temp in $compiler""; do
13976 case $cc_temp in
13977 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13978 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13979 \-*) ;;
13980 *) break;;
13981 esac
13982 done
13983 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13984
13985 case $host_os in
13986 cygwin* | mingw* | pw32*)
13987 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13988 # When not using gcc, we currently assume that we are using
13989 # Microsoft Visual C++.
13990 if test "$GCC" != yes; then
13991 with_gnu_ld=no
13992 fi
13993 ;;
13994 interix*)
13995 # we just hope/assume this is gcc and not c89 (= MSVC++)
13996 with_gnu_ld=yes
13997 ;;
13998 openbsd*)
13999 with_gnu_ld=no
14000 ;;
14001 esac
14002
14003 ld_shlibs_F77=yes
14004 if test "$with_gnu_ld" = yes; then
14005 # If archive_cmds runs LD, not CC, wlarc should be empty
14006 wlarc='${wl}'
14007
14008 # Set some defaults for GNU ld with shared library support. These
14009 # are reset later if shared libraries are not supported. Putting them
14010 # here allows them to be overridden if necessary.
14011 runpath_var=LD_RUN_PATH
14012 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14013 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14014 # ancient GNU ld didn't support --whole-archive et. al.
14015 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14016 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14017 else
14018 whole_archive_flag_spec_F77=
14019 fi
14020 supports_anon_versioning=no
14021 case `$LD -v 2>/dev/null` in
14022 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14023 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14024 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14025 *\ 2.11.*) ;; # other 2.11 versions
14026 *) supports_anon_versioning=yes ;;
14027 esac
14028
14029 # See if GNU ld supports shared libraries.
14030 case $host_os in
14031 aix3* | aix4* | aix5*)
14032 # On AIX/PPC, the GNU linker is very broken
14033 if test "$host_cpu" != ia64; then
14034 ld_shlibs_F77=no
14035 cat <<EOF 1>&2
14036
14037 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14038 *** to be unable to reliably create shared libraries on AIX.
14039 *** Therefore, libtool is disabling shared libraries support. If you
14040 *** really care for shared libraries, you may want to modify your PATH
14041 *** so that a non-GNU linker is found, and then restart.
14042
14043 EOF
14044 fi
14045 ;;
14046
14047 amigaos*)
14048 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14049 hardcode_libdir_flag_spec_F77='-L$libdir'
14050 hardcode_minus_L_F77=yes
14051
14052 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14053 # that the semantics of dynamic libraries on AmigaOS, at least up
14054 # to version 4, is to share data among multiple programs linked
14055 # with the same dynamic library. Since this doesn't match the
14056 # behavior of shared libraries on other platforms, we can't use
14057 # them.
14058 ld_shlibs_F77=no
14059 ;;
14060
14061 beos*)
14062 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14063 allow_undefined_flag_F77=unsupported
14064 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14065 # support --undefined. This deserves some investigation. FIXME
14066 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067 else
14068 ld_shlibs_F77=no
14069 fi
14070 ;;
14071
14072 cygwin* | mingw* | pw32*)
14073 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14074 # as there is no search path for DLLs.
14075 hardcode_libdir_flag_spec_F77='-L$libdir'
14076 allow_undefined_flag_F77=unsupported
14077 always_export_symbols_F77=no
14078 enable_shared_with_static_runtimes_F77=yes
14079 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14080
14081 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14082 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14083 # If the export-symbols file already is a .def file (1st line
14084 # is EXPORTS), use it as is; otherwise, prepend...
14085 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14086 cp $export_symbols $output_objdir/$soname.def;
14087 else
14088 echo EXPORTS > $output_objdir/$soname.def;
14089 cat $export_symbols >> $output_objdir/$soname.def;
14090 fi~
14091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14092 else
14093 ld_shlibs_F77=no
14094 fi
14095 ;;
14096
14097 interix3*)
14098 hardcode_direct_F77=no
14099 hardcode_shlibpath_var_F77=no
14100 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14101 export_dynamic_flag_spec_F77='${wl}-E'
14102 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14103 # Instead, shared libraries are loaded at an image base (0x10000000 by
14104 # default) and relocated if they conflict, which is a slow very memory
14105 # consuming and fragmenting process. To avoid this, we pick a random,
14106 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14107 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14108 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14109 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14110 ;;
14111
14112 linux* | k*bsd*-gnu)
14113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14114 tmp_addflag=
14115 case $cc_basename,$host_cpu in
14116 pgcc*) # Portland Group C compiler
14117 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14118 tmp_addflag=' $pic_flag'
14119 ;;
14120 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14121 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14122 tmp_addflag=' $pic_flag -Mnomain' ;;
14123 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14124 tmp_addflag=' -i_dynamic' ;;
14125 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14126 tmp_addflag=' -i_dynamic -nofor_main' ;;
14127 ifc* | ifort*) # Intel Fortran compiler
14128 tmp_addflag=' -nofor_main' ;;
14129 esac
14130 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14131
14132 if test $supports_anon_versioning = yes; then
14133 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14134 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14135 $echo "local: *; };" >> $output_objdir/$libname.ver~
14136 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14137 fi
14138 link_all_deplibs_F77=no
14139 else
14140 ld_shlibs_F77=no
14141 fi
14142 ;;
14143
14144 netbsd* | netbsdelf*-gnu)
14145 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14146 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14147 wlarc=
14148 else
14149 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14150 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14151 fi
14152 ;;
14153
14154 solaris*)
14155 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14156 ld_shlibs_F77=no
14157 cat <<EOF 1>&2
14158
14159 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14160 *** create shared libraries on Solaris systems. Therefore, libtool
14161 *** is disabling shared libraries support. We urge you to upgrade GNU
14162 *** binutils to release 2.9.1 or newer. Another option is to modify
14163 *** your PATH or compiler configuration so that the native linker is
14164 *** used, and then restart.
14165
14166 EOF
14167 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14168 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14169 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14170 else
14171 ld_shlibs_F77=no
14172 fi
14173 ;;
14174
14175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14176 case `$LD -v 2>&1` in
14177 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14178 ld_shlibs_F77=no
14179 cat <<_LT_EOF 1>&2
14180
14181 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14182 *** reliably create shared libraries on SCO systems. Therefore, libtool
14183 *** is disabling shared libraries support. We urge you to upgrade GNU
14184 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14185 *** your PATH or compiler configuration so that the native linker is
14186 *** used, and then restart.
14187
14188 _LT_EOF
14189 ;;
14190 *)
14191 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14192 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14193 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14194 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14195 else
14196 ld_shlibs_F77=no
14197 fi
14198 ;;
14199 esac
14200 ;;
14201
14202 sunos4*)
14203 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14204 wlarc=
14205 hardcode_direct_F77=yes
14206 hardcode_shlibpath_var_F77=no
14207 ;;
14208
14209 *)
14210 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14211 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14212 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14213 else
14214 ld_shlibs_F77=no
14215 fi
14216 ;;
14217 esac
14218
14219 if test "$ld_shlibs_F77" = no; then
14220 runpath_var=
14221 hardcode_libdir_flag_spec_F77=
14222 export_dynamic_flag_spec_F77=
14223 whole_archive_flag_spec_F77=
14224 fi
14225 else
14226 # PORTME fill in a description of your system's linker (not GNU ld)
14227 case $host_os in
14228 aix3*)
14229 allow_undefined_flag_F77=unsupported
14230 always_export_symbols_F77=yes
14231 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14232 # Note: this linker hardcodes the directories in LIBPATH if there
14233 # are no directories specified by -L.
14234 hardcode_minus_L_F77=yes
14235 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14236 # Neither direct hardcoding nor static linking is supported with a
14237 # broken collect2.
14238 hardcode_direct_F77=unsupported
14239 fi
14240 ;;
14241
14242 aix4* | aix5*)
14243 if test "$host_cpu" = ia64; then
14244 # On IA64, the linker does run time linking by default, so we don't
14245 # have to do anything special.
14246 aix_use_runtimelinking=no
14247 exp_sym_flag='-Bexport'
14248 no_entry_flag=""
14249 else
14250 # If we're using GNU nm, then we don't want the "-C" option.
14251 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14252 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14253 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14254 else
14255 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14256 fi
14257 aix_use_runtimelinking=no
14258
14259 # Test if we are trying to use run time linking or normal
14260 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14261 # need to do runtime linking.
14262 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14263 for ld_flag in $LDFLAGS; do
14264 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14265 aix_use_runtimelinking=yes
14266 break
14267 fi
14268 done
14269 ;;
14270 esac
14271
14272 exp_sym_flag='-bexport'
14273 no_entry_flag='-bnoentry'
14274 fi
14275
14276 # When large executables or shared objects are built, AIX ld can
14277 # have problems creating the table of contents. If linking a library
14278 # or program results in "error TOC overflow" add -mminimal-toc to
14279 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14280 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14281
14282 archive_cmds_F77=''
14283 hardcode_direct_F77=yes
14284 hardcode_libdir_separator_F77=':'
14285 link_all_deplibs_F77=yes
14286
14287 if test "$GCC" = yes; then
14288 case $host_os in aix4.[012]|aix4.[012].*)
14289 # We only want to do this on AIX 4.2 and lower, the check
14290 # below for broken collect2 doesn't work under 4.3+
14291 collect2name=`${CC} -print-prog-name=collect2`
14292 if test -f "$collect2name" && \
14293 strings "$collect2name" | grep resolve_lib_name >/dev/null
14294 then
14295 # We have reworked collect2
14296 hardcode_direct_F77=yes
14297 else
14298 # We have old collect2
14299 hardcode_direct_F77=unsupported
14300 # It fails to find uninstalled libraries when the uninstalled
14301 # path is not listed in the libpath. Setting hardcode_minus_L
14302 # to unsupported forces relinking
14303 hardcode_minus_L_F77=yes
14304 hardcode_libdir_flag_spec_F77='-L$libdir'
14305 hardcode_libdir_separator_F77=
14306 fi
14307 ;;
14308 esac
14309 shared_flag='-shared'
14310 if test "$aix_use_runtimelinking" = yes; then
14311 shared_flag="$shared_flag "'${wl}-G'
14312 fi
14313 else
14314 # not using gcc
14315 if test "$host_cpu" = ia64; then
14316 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14317 # chokes on -Wl,-G. The following line is correct:
14318 shared_flag='-G'
14319 else
14320 if test "$aix_use_runtimelinking" = yes; then
14321 shared_flag='${wl}-G'
14322 else
14323 shared_flag='${wl}-bM:SRE'
14324 fi
14325 fi
14326 fi
14327
14328 # It seems that -bexpall does not export symbols beginning with
14329 # underscore (_), so it is better to generate a list of symbols to export.
14330 always_export_symbols_F77=yes
14331 if test "$aix_use_runtimelinking" = yes; then
14332 # Warning - without using the other runtime loading flags (-brtl),
14333 # -berok will link without error, but may produce a broken library.
14334 allow_undefined_flag_F77='-berok'
14335 # Determine the default libpath from the value encoded in an empty executable.
14336 cat >conftest.$ac_ext <<_ACEOF
14337 program main
14338
14339 end
14340 _ACEOF
14341 rm -f conftest.$ac_objext conftest$ac_exeext
14342 if { (ac_try="$ac_link"
14343 case "(($ac_try" in
14344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14345 *) ac_try_echo=$ac_try;;
14346 esac
14347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14348 (eval "$ac_link") 2>conftest.er1
14349 ac_status=$?
14350 grep -v '^ *+' conftest.er1 >conftest.err
14351 rm -f conftest.er1
14352 cat conftest.err >&5
14353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14354 (exit $ac_status); } && {
14355 test -z "$ac_f77_werror_flag" ||
14356 test ! -s conftest.err
14357 } && test -s conftest$ac_exeext &&
14358 $as_test_x conftest$ac_exeext; then
14359
14360 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14361 }'`
14362 # Check for a 64-bit object if we didn't find anything.
14363 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; }
14364 }'`; fi
14365 else
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369
14370 fi
14371
14372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14373 conftest$ac_exeext conftest.$ac_ext
14374 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14375
14376 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14377 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14378 else
14379 if test "$host_cpu" = ia64; then
14380 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14381 allow_undefined_flag_F77="-z nodefs"
14382 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14383 else
14384 # Determine the default libpath from the value encoded in an empty executable.
14385 cat >conftest.$ac_ext <<_ACEOF
14386 program main
14387
14388 end
14389 _ACEOF
14390 rm -f conftest.$ac_objext conftest$ac_exeext
14391 if { (ac_try="$ac_link"
14392 case "(($ac_try" in
14393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14394 *) ac_try_echo=$ac_try;;
14395 esac
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_link") 2>conftest.er1
14398 ac_status=$?
14399 grep -v '^ *+' conftest.er1 >conftest.err
14400 rm -f conftest.er1
14401 cat conftest.err >&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } && {
14404 test -z "$ac_f77_werror_flag" ||
14405 test ! -s conftest.err
14406 } && test -s conftest$ac_exeext &&
14407 $as_test_x conftest$ac_exeext; then
14408
14409 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14410 }'`
14411 # Check for a 64-bit object if we didn't find anything.
14412 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; }
14413 }'`; fi
14414 else
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.$ac_ext >&5
14417
14418
14419 fi
14420
14421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14422 conftest$ac_exeext conftest.$ac_ext
14423 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14424
14425 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14426 # Warning - without using the other run time loading flags,
14427 # -berok will link without error, but may produce a broken library.
14428 no_undefined_flag_F77=' ${wl}-bernotok'
14429 allow_undefined_flag_F77=' ${wl}-berok'
14430 # Exported symbols can be pulled into shared objects from archives
14431 whole_archive_flag_spec_F77='$convenience'
14432 archive_cmds_need_lc_F77=yes
14433 # This is similar to how AIX traditionally builds its shared libraries.
14434 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14435 fi
14436 fi
14437 ;;
14438
14439 amigaos*)
14440 archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
14441 hardcode_libdir_flag_spec_F77='-L$libdir'
14442 hardcode_minus_L_F77=yes
14443 # see comment about different semantics on the GNU ld section
14444 ld_shlibs_F77=no
14445 ;;
14446
14447 bsdi[45]*)
14448 export_dynamic_flag_spec_F77=-rdynamic
14449 ;;
14450
14451 cygwin* | mingw* | pw32*)
14452 # When not using gcc, we currently assume that we are using
14453 # Microsoft Visual C++.
14454 # hardcode_libdir_flag_spec is actually meaningless, as there is
14455 # no search path for DLLs.
14456 hardcode_libdir_flag_spec_F77=' '
14457 allow_undefined_flag_F77=unsupported
14458 # Tell ltmain to make .lib files, not .a files.
14459 libext=lib
14460 # Tell ltmain to make .dll files, not .so files.
14461 shrext_cmds=".dll"
14462 # FIXME: Setting linknames here is a bad hack.
14463 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14464 # The linker will automatically build a .lib file if we build a DLL.
14465 old_archive_From_new_cmds_F77='true'
14466 # FIXME: Should let the user specify the lib program.
14467 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14468 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14469 enable_shared_with_static_runtimes_F77=yes
14470 ;;
14471
14472 darwin* | rhapsody*)
14473 case $host_os in
14474 rhapsody* | darwin1.[012])
14475 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14476 ;;
14477 *) # Darwin 1.3 on
14478 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14479 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14480 else
14481 case ${MACOSX_DEPLOYMENT_TARGET} in
14482 10.[012])
14483 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14484 ;;
14485 10.*)
14486 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14487 ;;
14488 esac
14489 fi
14490 ;;
14491 esac
14492 archive_cmds_need_lc_F77=no
14493 hardcode_direct_F77=no
14494 hardcode_automatic_F77=yes
14495 hardcode_shlibpath_var_F77=unsupported
14496 whole_archive_flag_spec_F77=''
14497 link_all_deplibs_F77=yes
14498 if test "$GCC" = yes ; then
14499 output_verbose_link_cmd='echo'
14500 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14501 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14503 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14504 module_expsym_cmds_F77='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}'
14505 else
14506 case $cc_basename in
14507 xlc*)
14508 output_verbose_link_cmd='echo'
14509 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14510 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14511 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14512 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14513 module_expsym_cmds_F77='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}'
14514 ;;
14515 *)
14516 ld_shlibs_F77=no
14517 ;;
14518 esac
14519 fi
14520 ;;
14521
14522 dgux*)
14523 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14524 hardcode_libdir_flag_spec_F77='-L$libdir'
14525 hardcode_shlibpath_var_F77=no
14526 ;;
14527
14528 freebsd1*)
14529 ld_shlibs_F77=no
14530 ;;
14531
14532 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14533 # support. Future versions do this automatically, but an explicit c++rt0.o
14534 # does not break anything, and helps significantly (at the cost of a little
14535 # extra space).
14536 freebsd2.2*)
14537 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14538 hardcode_libdir_flag_spec_F77='-R$libdir'
14539 hardcode_direct_F77=yes
14540 hardcode_shlibpath_var_F77=no
14541 ;;
14542
14543 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14544 freebsd2*)
14545 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14546 hardcode_direct_F77=yes
14547 hardcode_minus_L_F77=yes
14548 hardcode_shlibpath_var_F77=no
14549 ;;
14550
14551 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14552 freebsd* | dragonfly*)
14553 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14554 hardcode_libdir_flag_spec_F77='-R$libdir'
14555 hardcode_direct_F77=yes
14556 hardcode_shlibpath_var_F77=no
14557 ;;
14558
14559 hpux9*)
14560 if test "$GCC" = yes; then
14561 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14562 else
14563 archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14564 fi
14565 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14566 hardcode_libdir_separator_F77=:
14567 hardcode_direct_F77=yes
14568
14569 # hardcode_minus_L: Not really in the search PATH,
14570 # but as the default location of the library.
14571 hardcode_minus_L_F77=yes
14572 export_dynamic_flag_spec_F77='${wl}-E'
14573 ;;
14574
14575 hpux10*)
14576 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14577 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14578 else
14579 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14580 fi
14581 if test "$with_gnu_ld" = no; then
14582 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14583 hardcode_libdir_separator_F77=:
14584
14585 hardcode_direct_F77=yes
14586 export_dynamic_flag_spec_F77='${wl}-E'
14587
14588 # hardcode_minus_L: Not really in the search PATH,
14589 # but as the default location of the library.
14590 hardcode_minus_L_F77=yes
14591 fi
14592 ;;
14593
14594 hpux11*)
14595 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14596 case $host_cpu in
14597 hppa*64*)
14598 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14599 ;;
14600 ia64*)
14601 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14602 ;;
14603 *)
14604 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14605 ;;
14606 esac
14607 else
14608 case $host_cpu in
14609 hppa*64*)
14610 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14611 ;;
14612 ia64*)
14613 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14614 ;;
14615 *)
14616 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14617 ;;
14618 esac
14619 fi
14620 if test "$with_gnu_ld" = no; then
14621 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14622 hardcode_libdir_separator_F77=:
14623
14624 case $host_cpu in
14625 hppa*64*|ia64*)
14626 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14627 hardcode_direct_F77=no
14628 hardcode_shlibpath_var_F77=no
14629 ;;
14630 *)
14631 hardcode_direct_F77=yes
14632 export_dynamic_flag_spec_F77='${wl}-E'
14633
14634 # hardcode_minus_L: Not really in the search PATH,
14635 # but as the default location of the library.
14636 hardcode_minus_L_F77=yes
14637 ;;
14638 esac
14639 fi
14640 ;;
14641
14642 irix5* | irix6* | nonstopux*)
14643 if test "$GCC" = yes; then
14644 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14645 else
14646 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14647 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14648 fi
14649 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14650 hardcode_libdir_separator_F77=:
14651 link_all_deplibs_F77=yes
14652 ;;
14653
14654 netbsd* | netbsdelf*-gnu)
14655 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14656 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14657 else
14658 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14659 fi
14660 hardcode_libdir_flag_spec_F77='-R$libdir'
14661 hardcode_direct_F77=yes
14662 hardcode_shlibpath_var_F77=no
14663 ;;
14664
14665 newsos6)
14666 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14667 hardcode_direct_F77=yes
14668 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14669 hardcode_libdir_separator_F77=:
14670 hardcode_shlibpath_var_F77=no
14671 ;;
14672
14673 openbsd*)
14674 hardcode_direct_F77=yes
14675 hardcode_shlibpath_var_F77=no
14676 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14677 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14678 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14679 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14680 export_dynamic_flag_spec_F77='${wl}-E'
14681 else
14682 case $host_os in
14683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14684 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14685 hardcode_libdir_flag_spec_F77='-R$libdir'
14686 ;;
14687 *)
14688 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14689 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14690 ;;
14691 esac
14692 fi
14693 ;;
14694
14695 os2*)
14696 hardcode_libdir_flag_spec_F77='-L$libdir'
14697 hardcode_minus_L_F77=yes
14698 allow_undefined_flag_F77=unsupported
14699 archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14700 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14701 ;;
14702
14703 osf3*)
14704 if test "$GCC" = yes; then
14705 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14706 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14707 else
14708 allow_undefined_flag_F77=' -expect_unresolved \*'
14709 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14710 fi
14711 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14712 hardcode_libdir_separator_F77=:
14713 ;;
14714
14715 osf4* | osf5*) # as osf3* with the addition of -msym flag
14716 if test "$GCC" = yes; then
14717 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14718 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14719 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14720 else
14721 allow_undefined_flag_F77=' -expect_unresolved \*'
14722 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14723 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14724 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14725
14726 # Both c and cxx compiler support -rpath directly
14727 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14728 fi
14729 hardcode_libdir_separator_F77=:
14730 ;;
14731
14732 solaris*)
14733 no_undefined_flag_F77=' -z text'
14734 if test "$GCC" = yes; then
14735 wlarc='${wl}'
14736 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14737 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14738 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14739 else
14740 wlarc=''
14741 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14742 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14743 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14744 fi
14745 hardcode_libdir_flag_spec_F77='-R$libdir'
14746 hardcode_shlibpath_var_F77=no
14747 case $host_os in
14748 solaris2.[0-5] | solaris2.[0-5].*) ;;
14749 *)
14750 # The compiler driver will combine linker options so we
14751 # cannot just pass the convience library names through
14752 # without $wl, iff we do not link with $LD.
14753 # Luckily, gcc supports the same syntax we need for Sun Studio.
14754 # Supported since Solaris 2.6 (maybe 2.5.1?)
14755 case $wlarc in
14756 '')
14757 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14758 *)
14759 whole_archive_flag_spec_F77='${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' ;;
14760 esac ;;
14761 esac
14762 link_all_deplibs_F77=yes
14763 ;;
14764
14765 sunos4*)
14766 if test "x$host_vendor" = xsequent; then
14767 # Use $CC to link under sequent, because it throws in some extra .o
14768 # files that make .init and .fini sections work.
14769 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14770 else
14771 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14772 fi
14773 hardcode_libdir_flag_spec_F77='-L$libdir'
14774 hardcode_direct_F77=yes
14775 hardcode_minus_L_F77=yes
14776 hardcode_shlibpath_var_F77=no
14777 ;;
14778
14779 sysv4)
14780 case $host_vendor in
14781 sni)
14782 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct_F77=yes # is this really true???
14784 ;;
14785 siemens)
14786 ## LD is ld it makes a PLAMLIB
14787 ## CC just makes a GrossModule.
14788 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14789 reload_cmds_F77='$CC -r -o $output$reload_objs'
14790 hardcode_direct_F77=no
14791 ;;
14792 motorola)
14793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14794 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14795 ;;
14796 esac
14797 runpath_var='LD_RUN_PATH'
14798 hardcode_shlibpath_var_F77=no
14799 ;;
14800
14801 sysv4.3*)
14802 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_shlibpath_var_F77=no
14804 export_dynamic_flag_spec_F77='-Bexport'
14805 ;;
14806
14807 sysv4*MP*)
14808 if test -d /usr/nec; then
14809 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14810 hardcode_shlibpath_var_F77=no
14811 runpath_var=LD_RUN_PATH
14812 hardcode_runpath_var=yes
14813 ld_shlibs_F77=yes
14814 fi
14815 ;;
14816
14817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14818 no_undefined_flag_F77='${wl}-z,text'
14819 archive_cmds_need_lc_F77=no
14820 hardcode_shlibpath_var_F77=no
14821 runpath_var='LD_RUN_PATH'
14822
14823 if test "$GCC" = yes; then
14824 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14826 else
14827 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14829 fi
14830 ;;
14831
14832 sysv5* | sco3.2v5* | sco5v6*)
14833 # Note: We can NOT use -z defs as we might desire, because we do not
14834 # link with -lc, and that would cause any symbols used from libc to
14835 # always be unresolved, which means just about no library would
14836 # ever link correctly. If we're not using GNU ld we use -z text
14837 # though, which does catch some bad symbols but isn't as heavy-handed
14838 # as -z defs.
14839 no_undefined_flag_F77='${wl}-z,text'
14840 allow_undefined_flag_F77='${wl}-z,nodefs'
14841 archive_cmds_need_lc_F77=no
14842 hardcode_shlibpath_var_F77=no
14843 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14844 hardcode_libdir_separator_F77=':'
14845 link_all_deplibs_F77=yes
14846 export_dynamic_flag_spec_F77='${wl}-Bexport'
14847 runpath_var='LD_RUN_PATH'
14848
14849 if test "$GCC" = yes; then
14850 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14851 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14852 else
14853 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14854 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14855 fi
14856 ;;
14857
14858 uts4*)
14859 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14860 hardcode_libdir_flag_spec_F77='-L$libdir'
14861 hardcode_shlibpath_var_F77=no
14862 ;;
14863
14864 *)
14865 ld_shlibs_F77=no
14866 ;;
14867 esac
14868 fi
14869
14870 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14871 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
14872 test "$ld_shlibs_F77" = no && can_build_shared=no
14873
14874 #
14875 # Do we need to explicitly link libc?
14876 #
14877 case "x$archive_cmds_need_lc_F77" in
14878 x|xyes)
14879 # Assume -lc should be added
14880 archive_cmds_need_lc_F77=yes
14881
14882 if test "$enable_shared" = yes && test "$GCC" = yes; then
14883 case $archive_cmds_F77 in
14884 *'~'*)
14885 # FIXME: we may have to deal with multi-command sequences.
14886 ;;
14887 '$CC '*)
14888 # Test whether the compiler implicitly links with -lc since on some
14889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14890 # to ld, don't add -lc before -lgcc.
14891 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14892 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
14893 $rm conftest*
14894 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14895
14896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14897 (eval $ac_compile) 2>&5
14898 ac_status=$?
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } 2>conftest.err; then
14901 soname=conftest
14902 lib=conftest
14903 libobjs=conftest.$ac_objext
14904 deplibs=
14905 wl=$lt_prog_compiler_wl_F77
14906 pic_flag=$lt_prog_compiler_pic_F77
14907 compiler_flags=-v
14908 linker_flags=-v
14909 verstring=
14910 output_objdir=.
14911 libname=conftest
14912 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14913 allow_undefined_flag_F77=
14914 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14915 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14916 ac_status=$?
14917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918 (exit $ac_status); }
14919 then
14920 archive_cmds_need_lc_F77=no
14921 else
14922 archive_cmds_need_lc_F77=yes
14923 fi
14924 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14925 else
14926 cat conftest.err 1>&5
14927 fi
14928 $rm conftest*
14929 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14930 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
14931 ;;
14932 esac
14933 fi
14934 ;;
14935 esac
14936
14937 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
14939 library_names_spec=
14940 libname_spec='lib$name'
14941 soname_spec=
14942 shrext_cmds=".so"
14943 postinstall_cmds=
14944 postuninstall_cmds=
14945 finish_cmds=
14946 finish_eval=
14947 shlibpath_var=
14948 shlibpath_overrides_runpath=unknown
14949 version_type=none
14950 dynamic_linker="$host_os ld.so"
14951 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14952 if test "$GCC" = yes; then
14953 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14954 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14955 # if the path contains ";" then we assume it to be the separator
14956 # otherwise default to the standard path separator (i.e. ":") - it is
14957 # assumed that no part of a normal pathname contains ";" but that should
14958 # okay in the real world where ";" in dirpaths is itself problematic.
14959 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14960 else
14961 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14962 fi
14963 else
14964 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14965 fi
14966 need_lib_prefix=unknown
14967 hardcode_into_libs=no
14968
14969 # when you set need_version to no, make sure it does not cause -set_version
14970 # flags to be left without arguments
14971 need_version=unknown
14972
14973 case $host_os in
14974 aix3*)
14975 version_type=linux
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14977 shlibpath_var=LIBPATH
14978
14979 # AIX 3 has no versioning support, so we append a major version to the name.
14980 soname_spec='${libname}${release}${shared_ext}$major'
14981 ;;
14982
14983 aix4* | aix5*)
14984 version_type=linux
14985 need_lib_prefix=no
14986 need_version=no
14987 hardcode_into_libs=yes
14988 if test "$host_cpu" = ia64; then
14989 # AIX 5 supports IA64
14990 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14991 shlibpath_var=LD_LIBRARY_PATH
14992 else
14993 # With GCC up to 2.95.x, collect2 would create an import file
14994 # for dependence libraries. The import file would start with
14995 # the line `#! .'. This would cause the generated library to
14996 # depend on `.', always an invalid library. This was fixed in
14997 # development snapshots of GCC prior to 3.0.
14998 case $host_os in
14999 aix4 | aix4.[01] | aix4.[01].*)
15000 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15001 echo ' yes '
15002 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15003 :
15004 else
15005 can_build_shared=no
15006 fi
15007 ;;
15008 esac
15009 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15010 # soname into executable. Probably we can add versioning support to
15011 # collect2, so additional links can be useful in future.
15012 if test "$aix_use_runtimelinking" = yes; then
15013 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15014 # instead of lib<name>.a to let people know that these are not
15015 # typical AIX shared libraries.
15016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15017 else
15018 # We preserve .a as extension for shared libraries through AIX4.2
15019 # and later when we are not doing run time linking.
15020 library_names_spec='${libname}${release}.a $libname.a'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 fi
15023 shlibpath_var=LIBPATH
15024 fi
15025 ;;
15026
15027 amigaos*)
15028 library_names_spec='$libname.ixlibrary $libname.a'
15029 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15030 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'
15031 ;;
15032
15033 beos*)
15034 library_names_spec='${libname}${shared_ext}'
15035 dynamic_linker="$host_os ld.so"
15036 shlibpath_var=LIBRARY_PATH
15037 ;;
15038
15039 bsdi[45]*)
15040 version_type=linux
15041 need_version=no
15042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15043 soname_spec='${libname}${release}${shared_ext}$major'
15044 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15045 shlibpath_var=LD_LIBRARY_PATH
15046 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15047 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15048 # the default ld.so.conf also contains /usr/contrib/lib and
15049 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15050 # libtool to hard-code these into programs
15051 ;;
15052
15053 cygwin* | mingw* | pw32*)
15054 version_type=windows
15055 shrext_cmds=".dll"
15056 need_version=no
15057 need_lib_prefix=no
15058
15059 case $GCC,$host_os in
15060 yes,cygwin* | yes,mingw* | yes,pw32*)
15061 library_names_spec='$libname.dll.a'
15062 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15063 postinstall_cmds='base_file=`basename \${file}`~
15064 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15065 dldir=$destdir/`dirname \$dlpath`~
15066 test -d \$dldir || mkdir -p \$dldir~
15067 $install_prog $dir/$dlname \$dldir/$dlname~
15068 chmod a+x \$dldir/$dlname'
15069 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15070 dlpath=$dir/\$dldll~
15071 $rm \$dlpath'
15072 shlibpath_overrides_runpath=yes
15073
15074 case $host_os in
15075 cygwin*)
15076 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15077 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15078 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15079 ;;
15080 mingw*)
15081 # MinGW DLLs use traditional 'lib' prefix
15082 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15083 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15084 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15085 # It is most probably a Windows format PATH printed by
15086 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15087 # path with ; separators, and with drive letters. We can handle the
15088 # drive letters (cygwin fileutils understands them), so leave them,
15089 # especially as we might pass files found there to a mingw objdump,
15090 # which wouldn't understand a cygwinified path. Ahh.
15091 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15092 else
15093 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15094 fi
15095 ;;
15096 pw32*)
15097 # pw32 DLLs use 'pw' prefix rather than 'lib'
15098 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15099 ;;
15100 esac
15101 ;;
15102
15103 *)
15104 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15105 ;;
15106 esac
15107 dynamic_linker='Win32 ld.exe'
15108 # FIXME: first we should search . and the directory the executable is in
15109 shlibpath_var=PATH
15110 ;;
15111
15112 darwin* | rhapsody*)
15113 dynamic_linker="$host_os dyld"
15114 version_type=darwin
15115 need_lib_prefix=no
15116 need_version=no
15117 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15118 soname_spec='${libname}${release}${major}$shared_ext'
15119 shlibpath_overrides_runpath=yes
15120 shlibpath_var=DYLD_LIBRARY_PATH
15121 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15122 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15123 if test "$GCC" = yes; then
15124 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"`
15125 else
15126 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15127 fi
15128 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15129 ;;
15130
15131 dgux*)
15132 version_type=linux
15133 need_lib_prefix=no
15134 need_version=no
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15136 soname_spec='${libname}${release}${shared_ext}$major'
15137 shlibpath_var=LD_LIBRARY_PATH
15138 ;;
15139
15140 freebsd1*)
15141 dynamic_linker=no
15142 ;;
15143
15144 freebsd* | dragonfly*)
15145 # DragonFly does not have aout. When/if they implement a new
15146 # versioning mechanism, adjust this.
15147 if test -x /usr/bin/objformat; then
15148 objformat=`/usr/bin/objformat`
15149 else
15150 case $host_os in
15151 freebsd[123]*) objformat=aout ;;
15152 *) objformat=elf ;;
15153 esac
15154 fi
15155 version_type=freebsd-$objformat
15156 case $version_type in
15157 freebsd-elf*)
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15159 need_version=no
15160 need_lib_prefix=no
15161 ;;
15162 freebsd-*)
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15164 need_version=yes
15165 ;;
15166 esac
15167 shlibpath_var=LD_LIBRARY_PATH
15168 case $host_os in
15169 freebsd2*)
15170 shlibpath_overrides_runpath=yes
15171 ;;
15172 freebsd3.[01]* | freebsdelf3.[01]*)
15173 shlibpath_overrides_runpath=yes
15174 hardcode_into_libs=yes
15175 ;;
15176 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15177 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15178 shlibpath_overrides_runpath=no
15179 hardcode_into_libs=yes
15180 ;;
15181 freebsd*) # from 4.6 on
15182 shlibpath_overrides_runpath=yes
15183 hardcode_into_libs=yes
15184 ;;
15185 esac
15186 ;;
15187
15188 gnu*)
15189 version_type=linux
15190 need_lib_prefix=no
15191 need_version=no
15192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15193 soname_spec='${libname}${release}${shared_ext}$major'
15194 shlibpath_var=LD_LIBRARY_PATH
15195 hardcode_into_libs=yes
15196 ;;
15197
15198 hpux9* | hpux10* | hpux11*)
15199 # Give a soname corresponding to the major version so that dld.sl refuses to
15200 # link against other versions.
15201 version_type=sunos
15202 need_lib_prefix=no
15203 need_version=no
15204 case $host_cpu in
15205 ia64*)
15206 shrext_cmds='.so'
15207 hardcode_into_libs=yes
15208 dynamic_linker="$host_os dld.so"
15209 shlibpath_var=LD_LIBRARY_PATH
15210 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15212 soname_spec='${libname}${release}${shared_ext}$major'
15213 if test "X$HPUX_IA64_MODE" = X32; then
15214 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15215 else
15216 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15217 fi
15218 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15219 ;;
15220 hppa*64*)
15221 shrext_cmds='.sl'
15222 hardcode_into_libs=yes
15223 dynamic_linker="$host_os dld.sl"
15224 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15229 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15230 ;;
15231 *)
15232 shrext_cmds='.sl'
15233 dynamic_linker="$host_os dld.sl"
15234 shlibpath_var=SHLIB_PATH
15235 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 soname_spec='${libname}${release}${shared_ext}$major'
15238 ;;
15239 esac
15240 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15241 postinstall_cmds='chmod 555 $lib'
15242 ;;
15243
15244 interix3*)
15245 version_type=linux
15246 need_lib_prefix=no
15247 need_version=no
15248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15251 shlibpath_var=LD_LIBRARY_PATH
15252 shlibpath_overrides_runpath=no
15253 hardcode_into_libs=yes
15254 ;;
15255
15256 irix5* | irix6* | nonstopux*)
15257 case $host_os in
15258 nonstopux*) version_type=nonstopux ;;
15259 *)
15260 if test "$lt_cv_prog_gnu_ld" = yes; then
15261 version_type=linux
15262 else
15263 version_type=irix
15264 fi ;;
15265 esac
15266 need_lib_prefix=no
15267 need_version=no
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15270 case $host_os in
15271 irix5* | nonstopux*)
15272 libsuff= shlibsuff=
15273 ;;
15274 *)
15275 case $LD in # libtool.m4 will add one of these switches to LD
15276 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15277 libsuff= shlibsuff= libmagic=32-bit;;
15278 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15279 libsuff=32 shlibsuff=N32 libmagic=N32;;
15280 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15281 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15282 *) libsuff= shlibsuff= libmagic=never-match;;
15283 esac
15284 ;;
15285 esac
15286 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15287 shlibpath_overrides_runpath=no
15288 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15289 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15290 hardcode_into_libs=yes
15291 ;;
15292
15293 # No shared lib support for Linux oldld, aout, or coff.
15294 linux*oldld* | linux*aout* | linux*coff*)
15295 dynamic_linker=no
15296 ;;
15297
15298 # This must be Linux ELF.
15299 linux* | k*bsd*-gnu)
15300 version_type=linux
15301 need_lib_prefix=no
15302 need_version=no
15303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15304 soname_spec='${libname}${release}${shared_ext}$major'
15305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 shlibpath_overrides_runpath=no
15308 # This implies no fast_install, which is unacceptable.
15309 # Some rework will be needed to allow for fast_install
15310 # before this can be enabled.
15311 hardcode_into_libs=yes
15312
15313 # Append ld.so.conf contents to the search path
15314 if test -f /etc/ld.so.conf; then
15315 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15316 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15317 fi
15318
15319 # We used to test for /lib/ld.so.1 and disable shared libraries on
15320 # powerpc, because MkLinux only supported shared libraries with the
15321 # GNU dynamic linker. Since this was broken with cross compilers,
15322 # most powerpc-linux boxes support dynamic linking these days and
15323 # people can always --disable-shared, the test was removed, and we
15324 # assume the GNU/Linux dynamic linker is in use.
15325 dynamic_linker='GNU/Linux ld.so'
15326 ;;
15327
15328 netbsdelf*-gnu)
15329 version_type=linux
15330 need_lib_prefix=no
15331 need_version=no
15332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15333 soname_spec='${libname}${release}${shared_ext}$major'
15334 shlibpath_var=LD_LIBRARY_PATH
15335 shlibpath_overrides_runpath=no
15336 hardcode_into_libs=yes
15337 dynamic_linker='NetBSD ld.elf_so'
15338 ;;
15339
15340 netbsd*)
15341 version_type=sunos
15342 need_lib_prefix=no
15343 need_version=no
15344 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15347 dynamic_linker='NetBSD (a.out) ld.so'
15348 else
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 dynamic_linker='NetBSD ld.elf_so'
15352 fi
15353 shlibpath_var=LD_LIBRARY_PATH
15354 shlibpath_overrides_runpath=yes
15355 hardcode_into_libs=yes
15356 ;;
15357
15358 newsos6)
15359 version_type=linux
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15361 shlibpath_var=LD_LIBRARY_PATH
15362 shlibpath_overrides_runpath=yes
15363 ;;
15364
15365 nto-qnx*)
15366 version_type=linux
15367 need_lib_prefix=no
15368 need_version=no
15369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15370 soname_spec='${libname}${release}${shared_ext}$major'
15371 shlibpath_var=LD_LIBRARY_PATH
15372 shlibpath_overrides_runpath=yes
15373 ;;
15374
15375 openbsd*)
15376 version_type=sunos
15377 sys_lib_dlsearch_path_spec="/usr/lib"
15378 need_lib_prefix=no
15379 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15380 case $host_os in
15381 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15382 *) need_version=no ;;
15383 esac
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15388 case $host_os in
15389 openbsd2.[89] | openbsd2.[89].*)
15390 shlibpath_overrides_runpath=no
15391 ;;
15392 *)
15393 shlibpath_overrides_runpath=yes
15394 ;;
15395 esac
15396 else
15397 shlibpath_overrides_runpath=yes
15398 fi
15399 ;;
15400
15401 os2*)
15402 libname_spec='$name'
15403 shrext_cmds=".dll"
15404 need_lib_prefix=no
15405 library_names_spec='$libname${shared_ext} $libname.a'
15406 dynamic_linker='OS/2 ld.exe'
15407 shlibpath_var=LIBPATH
15408 ;;
15409
15410 osf3* | osf4* | osf5*)
15411 version_type=osf
15412 need_lib_prefix=no
15413 need_version=no
15414 soname_spec='${libname}${release}${shared_ext}$major'
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 shlibpath_var=LD_LIBRARY_PATH
15417 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15418 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15419 ;;
15420
15421 solaris*)
15422 version_type=linux
15423 need_lib_prefix=no
15424 need_version=no
15425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15426 soname_spec='${libname}${release}${shared_ext}$major'
15427 shlibpath_var=LD_LIBRARY_PATH
15428 shlibpath_overrides_runpath=yes
15429 hardcode_into_libs=yes
15430 # ldd complains unless libraries are executable
15431 postinstall_cmds='chmod +x $lib'
15432 ;;
15433
15434 sunos4*)
15435 version_type=sunos
15436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15437 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15438 shlibpath_var=LD_LIBRARY_PATH
15439 shlibpath_overrides_runpath=yes
15440 if test "$with_gnu_ld" = yes; then
15441 need_lib_prefix=no
15442 fi
15443 need_version=yes
15444 ;;
15445
15446 sysv4 | sysv4.3*)
15447 version_type=linux
15448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15449 soname_spec='${libname}${release}${shared_ext}$major'
15450 shlibpath_var=LD_LIBRARY_PATH
15451 case $host_vendor in
15452 sni)
15453 shlibpath_overrides_runpath=no
15454 need_lib_prefix=no
15455 export_dynamic_flag_spec='${wl}-Blargedynsym'
15456 runpath_var=LD_RUN_PATH
15457 ;;
15458 siemens)
15459 need_lib_prefix=no
15460 ;;
15461 motorola)
15462 need_lib_prefix=no
15463 need_version=no
15464 shlibpath_overrides_runpath=no
15465 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15466 ;;
15467 esac
15468 ;;
15469
15470 sysv4*MP*)
15471 if test -d /usr/nec ;then
15472 version_type=linux
15473 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15474 soname_spec='$libname${shared_ext}.$major'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 fi
15477 ;;
15478
15479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15480 version_type=freebsd-elf
15481 need_lib_prefix=no
15482 need_version=no
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 hardcode_into_libs=yes
15487 if test "$with_gnu_ld" = yes; then
15488 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15489 shlibpath_overrides_runpath=no
15490 else
15491 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15492 shlibpath_overrides_runpath=yes
15493 case $host_os in
15494 sco3.2v5*)
15495 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15496 ;;
15497 esac
15498 fi
15499 sys_lib_dlsearch_path_spec='/usr/lib'
15500 ;;
15501
15502 uts4*)
15503 version_type=linux
15504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15505 soname_spec='${libname}${release}${shared_ext}$major'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 ;;
15508
15509 *)
15510 dynamic_linker=no
15511 ;;
15512 esac
15513 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15514 echo "${ECHO_T}$dynamic_linker" >&6; }
15515 test "$dynamic_linker" = no && can_build_shared=no
15516
15517 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15518 if test "$GCC" = yes; then
15519 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15520 fi
15521
15522 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15523 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
15524 hardcode_action_F77=
15525 if test -n "$hardcode_libdir_flag_spec_F77" || \
15526 test -n "$runpath_var_F77" || \
15527 test "X$hardcode_automatic_F77" = "Xyes" ; then
15528
15529 # We can hardcode non-existant directories.
15530 if test "$hardcode_direct_F77" != no &&
15531 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15532 # have to relink, otherwise we might link with an installed library
15533 # when we should be linking with a yet-to-be-installed one
15534 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15535 test "$hardcode_minus_L_F77" != no; then
15536 # Linking always hardcodes the temporary library directory.
15537 hardcode_action_F77=relink
15538 else
15539 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15540 hardcode_action_F77=immediate
15541 fi
15542 else
15543 # We cannot hardcode anything, or else we can only hardcode existing
15544 # directories.
15545 hardcode_action_F77=unsupported
15546 fi
15547 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15548 echo "${ECHO_T}$hardcode_action_F77" >&6; }
15549
15550 if test "$hardcode_action_F77" = relink; then
15551 # Fast installation is not supported
15552 enable_fast_install=no
15553 elif test "$shlibpath_overrides_runpath" = yes ||
15554 test "$enable_shared" = no; then
15555 # Fast installation is not necessary
15556 enable_fast_install=needless
15557 fi
15558
15559
15560 # The else clause should only fire when bootstrapping the
15561 # libtool distribution, otherwise you forgot to ship ltmain.sh
15562 # with your package, and you will get complaints that there are
15563 # no rules to generate ltmain.sh.
15564 if test -f "$ltmain"; then
15565 # See if we are running on zsh, and set the options which allow our commands through
15566 # without removal of \ escapes.
15567 if test -n "${ZSH_VERSION+set}" ; then
15568 setopt NO_GLOB_SUBST
15569 fi
15570 # Now quote all the things that may contain metacharacters while being
15571 # careful not to overquote the AC_SUBSTed values. We take copies of the
15572 # variables and quote the copies for generation of the libtool script.
15573 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15574 SED SHELL STRIP \
15575 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15576 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15577 deplibs_check_method reload_flag reload_cmds need_locks \
15578 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15579 lt_cv_sys_global_symbol_to_c_name_address \
15580 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15581 old_postinstall_cmds old_postuninstall_cmds \
15582 compiler_F77 \
15583 CC_F77 \
15584 LD_F77 \
15585 lt_prog_compiler_wl_F77 \
15586 lt_prog_compiler_pic_F77 \
15587 lt_prog_compiler_static_F77 \
15588 lt_prog_compiler_no_builtin_flag_F77 \
15589 export_dynamic_flag_spec_F77 \
15590 thread_safe_flag_spec_F77 \
15591 whole_archive_flag_spec_F77 \
15592 enable_shared_with_static_runtimes_F77 \
15593 old_archive_cmds_F77 \
15594 old_archive_from_new_cmds_F77 \
15595 predep_objects_F77 \
15596 postdep_objects_F77 \
15597 predeps_F77 \
15598 postdeps_F77 \
15599 compiler_lib_search_path_F77 \
15600 archive_cmds_F77 \
15601 archive_expsym_cmds_F77 \
15602 postinstall_cmds_F77 \
15603 postuninstall_cmds_F77 \
15604 old_archive_from_expsyms_cmds_F77 \
15605 allow_undefined_flag_F77 \
15606 no_undefined_flag_F77 \
15607 export_symbols_cmds_F77 \
15608 hardcode_libdir_flag_spec_F77 \
15609 hardcode_libdir_flag_spec_ld_F77 \
15610 hardcode_libdir_separator_F77 \
15611 hardcode_automatic_F77 \
15612 module_cmds_F77 \
15613 module_expsym_cmds_F77 \
15614 lt_cv_prog_compiler_c_o_F77 \
15615 exclude_expsyms_F77 \
15616 include_expsyms_F77; do
15617
15618 case $var in
15619 old_archive_cmds_F77 | \
15620 old_archive_from_new_cmds_F77 | \
15621 archive_cmds_F77 | \
15622 archive_expsym_cmds_F77 | \
15623 module_cmds_F77 | \
15624 module_expsym_cmds_F77 | \
15625 old_archive_from_expsyms_cmds_F77 | \
15626 export_symbols_cmds_F77 | \
15627 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15628 postinstall_cmds | postuninstall_cmds | \
15629 old_postinstall_cmds | old_postuninstall_cmds | \
15630 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15631 # Double-quote double-evaled strings.
15632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15633 ;;
15634 *)
15635 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15636 ;;
15637 esac
15638 done
15639
15640 case $lt_echo in
15641 *'\$0 --fallback-echo"')
15642 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15643 ;;
15644 esac
15645
15646 cfgfile="$ofile"
15647
15648 cat <<__EOF__ >> "$cfgfile"
15649 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15650
15651 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15652
15653 # Shell to use when invoking shell scripts.
15654 SHELL=$lt_SHELL
15655
15656 # Whether or not to build shared libraries.
15657 build_libtool_libs=$enable_shared
15658
15659 # Whether or not to build static libraries.
15660 build_old_libs=$enable_static
15661
15662 # Whether or not to add -lc for building shared libraries.
15663 build_libtool_need_lc=$archive_cmds_need_lc_F77
15664
15665 # Whether or not to disallow shared libs when runtime libs are static
15666 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15667
15668 # Whether or not to optimize for fast installation.
15669 fast_install=$enable_fast_install
15670
15671 # The host system.
15672 host_alias=$host_alias
15673 host=$host
15674 host_os=$host_os
15675
15676 # The build system.
15677 build_alias=$build_alias
15678 build=$build
15679 build_os=$build_os
15680
15681 # An echo program that does not interpret backslashes.
15682 echo=$lt_echo
15683
15684 # The archiver.
15685 AR=$lt_AR
15686 AR_FLAGS=$lt_AR_FLAGS
15687
15688 # A C compiler.
15689 LTCC=$lt_LTCC
15690
15691 # LTCC compiler flags.
15692 LTCFLAGS=$lt_LTCFLAGS
15693
15694 # A language-specific compiler.
15695 CC=$lt_compiler_F77
15696
15697 # Is the compiler the GNU C compiler?
15698 with_gcc=$GCC_F77
15699
15700 # An ERE matcher.
15701 EGREP=$lt_EGREP
15702
15703 # The linker used to build libraries.
15704 LD=$lt_LD_F77
15705
15706 # Whether we need hard or soft links.
15707 LN_S=$lt_LN_S
15708
15709 # A BSD-compatible nm program.
15710 NM=$lt_NM
15711
15712 # A symbol stripping program
15713 STRIP=$lt_STRIP
15714
15715 # Used to examine libraries when file_magic_cmd begins "file"
15716 MAGIC_CMD=$MAGIC_CMD
15717
15718 # Used on cygwin: DLL creation program.
15719 DLLTOOL="$DLLTOOL"
15720
15721 # Used on cygwin: object dumper.
15722 OBJDUMP="$OBJDUMP"
15723
15724 # Used on cygwin: assembler.
15725 AS="$AS"
15726
15727 # The name of the directory that contains temporary libtool files.
15728 objdir=$objdir
15729
15730 # How to create reloadable object files.
15731 reload_flag=$lt_reload_flag
15732 reload_cmds=$lt_reload_cmds
15733
15734 # How to pass a linker flag through the compiler.
15735 wl=$lt_lt_prog_compiler_wl_F77
15736
15737 # Object file suffix (normally "o").
15738 objext="$ac_objext"
15739
15740 # Old archive suffix (normally "a").
15741 libext="$libext"
15742
15743 # Shared library suffix (normally ".so").
15744 shrext_cmds='$shrext_cmds'
15745
15746 # Executable file suffix (normally "").
15747 exeext="$exeext"
15748
15749 # Additional compiler flags for building library objects.
15750 pic_flag=$lt_lt_prog_compiler_pic_F77
15751 pic_mode=$pic_mode
15752
15753 # What is the maximum length of a command?
15754 max_cmd_len=$lt_cv_sys_max_cmd_len
15755
15756 # Does compiler simultaneously support -c and -o options?
15757 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15758
15759 # Must we lock files when doing compilation?
15760 need_locks=$lt_need_locks
15761
15762 # Do we need the lib prefix for modules?
15763 need_lib_prefix=$need_lib_prefix
15764
15765 # Do we need a version for libraries?
15766 need_version=$need_version
15767
15768 # Whether dlopen is supported.
15769 dlopen_support=$enable_dlopen
15770
15771 # Whether dlopen of programs is supported.
15772 dlopen_self=$enable_dlopen_self
15773
15774 # Whether dlopen of statically linked programs is supported.
15775 dlopen_self_static=$enable_dlopen_self_static
15776
15777 # Compiler flag to prevent dynamic linking.
15778 link_static_flag=$lt_lt_prog_compiler_static_F77
15779
15780 # Compiler flag to turn off builtin functions.
15781 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15782
15783 # Compiler flag to allow reflexive dlopens.
15784 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15785
15786 # Compiler flag to generate shared objects directly from archives.
15787 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15788
15789 # Compiler flag to generate thread-safe objects.
15790 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15791
15792 # Library versioning type.
15793 version_type=$version_type
15794
15795 # Format of library name prefix.
15796 libname_spec=$lt_libname_spec
15797
15798 # List of archive names. First name is the real one, the rest are links.
15799 # The last name is the one that the linker finds with -lNAME.
15800 library_names_spec=$lt_library_names_spec
15801
15802 # The coded name of the library, if different from the real name.
15803 soname_spec=$lt_soname_spec
15804
15805 # Commands used to build and install an old-style archive.
15806 RANLIB=$lt_RANLIB
15807 old_archive_cmds=$lt_old_archive_cmds_F77
15808 old_postinstall_cmds=$lt_old_postinstall_cmds
15809 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15810
15811 # Create an old-style archive from a shared archive.
15812 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15813
15814 # Create a temporary old-style archive to link instead of a shared archive.
15815 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15816
15817 # Commands used to build and install a shared archive.
15818 archive_cmds=$lt_archive_cmds_F77
15819 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15820 postinstall_cmds=$lt_postinstall_cmds
15821 postuninstall_cmds=$lt_postuninstall_cmds
15822
15823 # Commands used to build a loadable module (assumed same as above if empty)
15824 module_cmds=$lt_module_cmds_F77
15825 module_expsym_cmds=$lt_module_expsym_cmds_F77
15826
15827 # Commands to strip libraries.
15828 old_striplib=$lt_old_striplib
15829 striplib=$lt_striplib
15830
15831 # Dependencies to place before the objects being linked to create a
15832 # shared library.
15833 predep_objects=$lt_predep_objects_F77
15834
15835 # Dependencies to place after the objects being linked to create a
15836 # shared library.
15837 postdep_objects=$lt_postdep_objects_F77
15838
15839 # Dependencies to place before the objects being linked to create a
15840 # shared library.
15841 predeps=$lt_predeps_F77
15842
15843 # Dependencies to place after the objects being linked to create a
15844 # shared library.
15845 postdeps=$lt_postdeps_F77
15846
15847 # The library search path used internally by the compiler when linking
15848 # a shared library.
15849 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15850
15851 # Method to check whether dependent libraries are shared objects.
15852 deplibs_check_method=$lt_deplibs_check_method
15853
15854 # Command to use when deplibs_check_method == file_magic.
15855 file_magic_cmd=$lt_file_magic_cmd
15856
15857 # Flag that allows shared libraries with undefined symbols to be built.
15858 allow_undefined_flag=$lt_allow_undefined_flag_F77
15859
15860 # Flag that forces no undefined symbols.
15861 no_undefined_flag=$lt_no_undefined_flag_F77
15862
15863 # Commands used to finish a libtool library installation in a directory.
15864 finish_cmds=$lt_finish_cmds
15865
15866 # Same as above, but a single script fragment to be evaled but not shown.
15867 finish_eval=$lt_finish_eval
15868
15869 # Take the output of nm and produce a listing of raw symbols and C names.
15870 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15871
15872 # Transform the output of nm in a proper C declaration
15873 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15874
15875 # Transform the output of nm in a C name address pair
15876 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15877
15878 # This is the shared library runtime path variable.
15879 runpath_var=$runpath_var
15880
15881 # This is the shared library path variable.
15882 shlibpath_var=$shlibpath_var
15883
15884 # Is shlibpath searched before the hard-coded library search path?
15885 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15886
15887 # How to hardcode a shared library path into an executable.
15888 hardcode_action=$hardcode_action_F77
15889
15890 # Whether we should hardcode library paths into libraries.
15891 hardcode_into_libs=$hardcode_into_libs
15892
15893 # Flag to hardcode \$libdir into a binary during linking.
15894 # This must work even if \$libdir does not exist.
15895 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15896
15897 # If ld is used when linking, flag to hardcode \$libdir into
15898 # a binary during linking. This must work even if \$libdir does
15899 # not exist.
15900 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15901
15902 # Whether we need a single -rpath flag with a separated argument.
15903 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15904
15905 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15906 # resulting binary.
15907 hardcode_direct=$hardcode_direct_F77
15908
15909 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15910 # resulting binary.
15911 hardcode_minus_L=$hardcode_minus_L_F77
15912
15913 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15914 # the resulting binary.
15915 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15916
15917 # Set to yes if building a shared library automatically hardcodes DIR into the library
15918 # and all subsequent libraries and executables linked against it.
15919 hardcode_automatic=$hardcode_automatic_F77
15920
15921 # Variables whose values should be saved in libtool wrapper scripts and
15922 # restored at relink time.
15923 variables_saved_for_relink="$variables_saved_for_relink"
15924
15925 # Whether libtool must link a program against all its dependency libraries.
15926 link_all_deplibs=$link_all_deplibs_F77
15927
15928 # Compile-time system search path for libraries
15929 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15930
15931 # Run-time system search path for libraries
15932 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15933
15934 # Fix the shell variable \$srcfile for the compiler.
15935 fix_srcfile_path="$fix_srcfile_path_F77"
15936
15937 # Set to yes if exported symbols are required.
15938 always_export_symbols=$always_export_symbols_F77
15939
15940 # The commands to list exported symbols.
15941 export_symbols_cmds=$lt_export_symbols_cmds_F77
15942
15943 # The commands to extract the exported symbol list from a shared archive.
15944 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15945
15946 # Symbols that should not be listed in the preloaded symbols.
15947 exclude_expsyms=$lt_exclude_expsyms_F77
15948
15949 # Symbols that must always be exported.
15950 include_expsyms=$lt_include_expsyms_F77
15951
15952 # ### END LIBTOOL TAG CONFIG: $tagname
15953
15954 __EOF__
15955
15956
15957 else
15958 # If there is no Makefile yet, we rely on a make rule to execute
15959 # `config.status --recheck' to rerun these tests and create the
15960 # libtool script then.
15961 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15962 if test -f "$ltmain_in"; then
15963 test -f Makefile && make "$ltmain"
15964 fi
15965 fi
15966
15967
15968 ac_ext=c
15969 ac_cpp='$CPP $CPPFLAGS'
15970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15973
15974 CC="$lt_save_CC"
15975
15976 else
15977 tagname=""
15978 fi
15979 ;;
15980
15981 GCJ)
15982 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15983
15984
15985 # Source file extension for Java test sources.
15986 ac_ext=java
15987
15988 # Object file extension for compiled Java test sources.
15989 objext=o
15990 objext_GCJ=$objext
15991
15992 # Code to be used in simple compile tests
15993 lt_simple_compile_test_code="class foo {}\n"
15994
15995 # Code to be used in simple link tests
15996 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15997
15998 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15999
16000 # If no C compiler was specified, use CC.
16001 LTCC=${LTCC-"$CC"}
16002
16003 # If no C compiler flags were specified, use CFLAGS.
16004 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16005
16006 # Allow CC to be a program name with arguments.
16007 compiler=$CC
16008
16009
16010 # save warnings/boilerplate of simple test code
16011 ac_outfile=conftest.$ac_objext
16012 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16013 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16014 _lt_compiler_boilerplate=`cat conftest.err`
16015 $rm conftest*
16016
16017 ac_outfile=conftest.$ac_objext
16018 printf "$lt_simple_link_test_code" >conftest.$ac_ext
16019 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16020 _lt_linker_boilerplate=`cat conftest.err`
16021 $rm conftest*
16022
16023
16024 # Allow CC to be a program name with arguments.
16025 lt_save_CC="$CC"
16026 CC=${GCJ-"gcj"}
16027 compiler=$CC
16028 compiler_GCJ=$CC
16029 for cc_temp in $compiler""; do
16030 case $cc_temp in
16031 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16032 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16033 \-*) ;;
16034 *) break;;
16035 esac
16036 done
16037 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16038
16039
16040 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16041 archive_cmds_need_lc_GCJ=no
16042
16043 old_archive_cmds_GCJ=$old_archive_cmds
16044
16045
16046 lt_prog_compiler_no_builtin_flag_GCJ=
16047
16048 if test "$GCC" = yes; then
16049 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16050
16051
16052 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16053 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16054 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 else
16057 lt_cv_prog_compiler_rtti_exceptions=no
16058 ac_outfile=conftest.$ac_objext
16059 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16060 lt_compiler_flag="-fno-rtti -fno-exceptions"
16061 # Insert the option either (1) after the last *FLAGS variable, or
16062 # (2) before a word containing "conftest.", or (3) at the end.
16063 # Note that $ac_compile itself does not contain backslashes and begins
16064 # with a dollar sign (not a hyphen), so the echo should work correctly.
16065 # The option is referenced via a variable to avoid confusing sed.
16066 lt_compile=`echo "$ac_compile" | $SED \
16067 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16068 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16069 -e 's:$: $lt_compiler_flag:'`
16070 (eval echo "\"\$as_me:16071: $lt_compile\"" >&5)
16071 (eval "$lt_compile" 2>conftest.err)
16072 ac_status=$?
16073 cat conftest.err >&5
16074 echo "$as_me:16075: \$? = $ac_status" >&5
16075 if (exit $ac_status) && test -s "$ac_outfile"; then
16076 # The compiler can only warn and ignore the option if not recognized
16077 # So say no if there are warnings other than the usual output.
16078 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16079 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16080 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16081 lt_cv_prog_compiler_rtti_exceptions=yes
16082 fi
16083 fi
16084 $rm conftest*
16085
16086 fi
16087 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16088 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16089
16090 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16091 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16092 else
16093 :
16094 fi
16095
16096 fi
16097
16098 lt_prog_compiler_wl_GCJ=
16099 lt_prog_compiler_pic_GCJ=
16100 lt_prog_compiler_static_GCJ=
16101
16102 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16103 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16104
16105 if test "$GCC" = yes; then
16106 lt_prog_compiler_wl_GCJ='-Wl,'
16107 lt_prog_compiler_static_GCJ='-static'
16108
16109 case $host_os in
16110 aix*)
16111 # All AIX code is PIC.
16112 if test "$host_cpu" = ia64; then
16113 # AIX 5 now supports IA64 processor
16114 lt_prog_compiler_static_GCJ='-Bstatic'
16115 fi
16116 ;;
16117
16118 amigaos*)
16119 # FIXME: we need at least 68020 code to build shared libraries, but
16120 # adding the `-m68020' flag to GCC prevents building anything better,
16121 # like `-m68040'.
16122 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16123 ;;
16124
16125 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16126 # PIC is the default for these OSes.
16127 ;;
16128
16129 mingw* | pw32* | os2*)
16130 # This hack is so that the source file can tell whether it is being
16131 # built for inclusion in a dll (and should export symbols for example).
16132 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16133 ;;
16134
16135 darwin* | rhapsody*)
16136 # PIC is the default on this platform
16137 # Common symbols not allowed in MH_DYLIB files
16138 lt_prog_compiler_pic_GCJ='-fno-common'
16139 ;;
16140
16141 interix3*)
16142 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16143 # Instead, we relocate shared libraries at runtime.
16144 ;;
16145
16146 msdosdjgpp*)
16147 # Just because we use GCC doesn't mean we suddenly get shared libraries
16148 # on systems that don't support them.
16149 lt_prog_compiler_can_build_shared_GCJ=no
16150 enable_shared=no
16151 ;;
16152
16153 sysv4*MP*)
16154 if test -d /usr/nec; then
16155 lt_prog_compiler_pic_GCJ=-Kconform_pic
16156 fi
16157 ;;
16158
16159 hpux*)
16160 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16161 # not for PA HP-UX.
16162 case $host_cpu in
16163 hppa*64*|ia64*)
16164 # +Z the default
16165 ;;
16166 *)
16167 lt_prog_compiler_pic_GCJ='-fPIC'
16168 ;;
16169 esac
16170 ;;
16171
16172 *)
16173 lt_prog_compiler_pic_GCJ='-fPIC'
16174 ;;
16175 esac
16176 else
16177 # PORTME Check for flag to pass linker flags through the system compiler.
16178 case $host_os in
16179 aix*)
16180 lt_prog_compiler_wl_GCJ='-Wl,'
16181 if test "$host_cpu" = ia64; then
16182 # AIX 5 now supports IA64 processor
16183 lt_prog_compiler_static_GCJ='-Bstatic'
16184 else
16185 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16186 fi
16187 ;;
16188 darwin*)
16189 # PIC is the default on this platform
16190 # Common symbols not allowed in MH_DYLIB files
16191 case $cc_basename in
16192 xlc*)
16193 lt_prog_compiler_pic_GCJ='-qnocommon'
16194 lt_prog_compiler_wl_GCJ='-Wl,'
16195 ;;
16196 esac
16197 ;;
16198
16199 mingw* | pw32* | os2*)
16200 # This hack is so that the source file can tell whether it is being
16201 # built for inclusion in a dll (and should export symbols for example).
16202 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16203 ;;
16204
16205 hpux9* | hpux10* | hpux11*)
16206 lt_prog_compiler_wl_GCJ='-Wl,'
16207 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16208 # not for PA HP-UX.
16209 case $host_cpu in
16210 hppa*64*|ia64*)
16211 # +Z the default
16212 ;;
16213 *)
16214 lt_prog_compiler_pic_GCJ='+Z'
16215 ;;
16216 esac
16217 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16218 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16219 ;;
16220
16221 irix5* | irix6* | nonstopux*)
16222 lt_prog_compiler_wl_GCJ='-Wl,'
16223 # PIC (with -KPIC) is the default.
16224 lt_prog_compiler_static_GCJ='-non_shared'
16225 ;;
16226
16227 newsos6)
16228 lt_prog_compiler_pic_GCJ='-KPIC'
16229 lt_prog_compiler_static_GCJ='-Bstatic'
16230 ;;
16231
16232 linux* | k*bsd*-gnu)
16233 case $cc_basename in
16234 icc* | ecc*)
16235 lt_prog_compiler_wl_GCJ='-Wl,'
16236 lt_prog_compiler_pic_GCJ='-KPIC'
16237 lt_prog_compiler_static_GCJ='-static'
16238 ;;
16239 pgcc* | pgf77* | pgf90* | pgf95*)
16240 # Portland Group compilers (*not* the Pentium gcc compiler,
16241 # which looks to be a dead project)
16242 lt_prog_compiler_wl_GCJ='-Wl,'
16243 lt_prog_compiler_pic_GCJ='-fpic'
16244 lt_prog_compiler_static_GCJ='-Bstatic'
16245 ;;
16246 ccc*)
16247 lt_prog_compiler_wl_GCJ='-Wl,'
16248 # All Alpha code is PIC.
16249 lt_prog_compiler_static_GCJ='-non_shared'
16250 ;;
16251 esac
16252 ;;
16253
16254 osf3* | osf4* | osf5*)
16255 lt_prog_compiler_wl_GCJ='-Wl,'
16256 # All OSF/1 code is PIC.
16257 lt_prog_compiler_static_GCJ='-non_shared'
16258 ;;
16259
16260 solaris*)
16261 lt_prog_compiler_pic_GCJ='-KPIC'
16262 lt_prog_compiler_static_GCJ='-Bstatic'
16263 case $cc_basename in
16264 f77* | f90* | f95*)
16265 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16266 *)
16267 lt_prog_compiler_wl_GCJ='-Wl,';;
16268 esac
16269 ;;
16270
16271 sunos4*)
16272 lt_prog_compiler_wl_GCJ='-Qoption ld '
16273 lt_prog_compiler_pic_GCJ='-PIC'
16274 lt_prog_compiler_static_GCJ='-Bstatic'
16275 ;;
16276
16277 sysv4 | sysv4.2uw2* | sysv4.3*)
16278 lt_prog_compiler_wl_GCJ='-Wl,'
16279 lt_prog_compiler_pic_GCJ='-KPIC'
16280 lt_prog_compiler_static_GCJ='-Bstatic'
16281 ;;
16282
16283 sysv4*MP*)
16284 if test -d /usr/nec ;then
16285 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16286 lt_prog_compiler_static_GCJ='-Bstatic'
16287 fi
16288 ;;
16289
16290 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16291 lt_prog_compiler_wl_GCJ='-Wl,'
16292 lt_prog_compiler_pic_GCJ='-KPIC'
16293 lt_prog_compiler_static_GCJ='-Bstatic'
16294 ;;
16295
16296 unicos*)
16297 lt_prog_compiler_wl_GCJ='-Wl,'
16298 lt_prog_compiler_can_build_shared_GCJ=no
16299 ;;
16300
16301 uts4*)
16302 lt_prog_compiler_pic_GCJ='-pic'
16303 lt_prog_compiler_static_GCJ='-Bstatic'
16304 ;;
16305
16306 *)
16307 lt_prog_compiler_can_build_shared_GCJ=no
16308 ;;
16309 esac
16310 fi
16311
16312 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16313 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16314
16315 #
16316 # Check to make sure the PIC flag actually works.
16317 #
16318 if test -n "$lt_prog_compiler_pic_GCJ"; then
16319
16320 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16321 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16322 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16323 echo $ECHO_N "(cached) $ECHO_C" >&6
16324 else
16325 lt_prog_compiler_pic_works_GCJ=no
16326 ac_outfile=conftest.$ac_objext
16327 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16328 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16329 # Insert the option either (1) after the last *FLAGS variable, or
16330 # (2) before a word containing "conftest.", or (3) at the end.
16331 # Note that $ac_compile itself does not contain backslashes and begins
16332 # with a dollar sign (not a hyphen), so the echo should work correctly.
16333 # The option is referenced via a variable to avoid confusing sed.
16334 lt_compile=`echo "$ac_compile" | $SED \
16335 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16336 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16337 -e 's:$: $lt_compiler_flag:'`
16338 (eval echo "\"\$as_me:16339: $lt_compile\"" >&5)
16339 (eval "$lt_compile" 2>conftest.err)
16340 ac_status=$?
16341 cat conftest.err >&5
16342 echo "$as_me:16343: \$? = $ac_status" >&5
16343 if (exit $ac_status) && test -s "$ac_outfile"; then
16344 # The compiler can only warn and ignore the option if not recognized
16345 # So say no if there are warnings other than the usual output.
16346 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16347 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16348 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16349 lt_prog_compiler_pic_works_GCJ=yes
16350 fi
16351 fi
16352 $rm conftest*
16353
16354 fi
16355 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16356 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16357
16358 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16359 case $lt_prog_compiler_pic_GCJ in
16360 "" | " "*) ;;
16361 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16362 esac
16363 else
16364 lt_prog_compiler_pic_GCJ=
16365 lt_prog_compiler_can_build_shared_GCJ=no
16366 fi
16367
16368 fi
16369 case $host_os in
16370 # For platforms which do not support PIC, -DPIC is meaningless:
16371 *djgpp*)
16372 lt_prog_compiler_pic_GCJ=
16373 ;;
16374 *)
16375 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16376 ;;
16377 esac
16378
16379 #
16380 # Check to make sure the static flag actually works.
16381 #
16382 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16383 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16384 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
16385 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
16386 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 else
16388 lt_prog_compiler_static_works_GCJ=no
16389 save_LDFLAGS="$LDFLAGS"
16390 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16391 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16392 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16393 # The linker can only warn and ignore the option if not recognized
16394 # So say no if there are warnings
16395 if test -s conftest.err; then
16396 # Append any errors to the config.log.
16397 cat conftest.err 1>&5
16398 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16400 if diff conftest.exp conftest.er2 >/dev/null; then
16401 lt_prog_compiler_static_works_GCJ=yes
16402 fi
16403 else
16404 lt_prog_compiler_static_works_GCJ=yes
16405 fi
16406 fi
16407 $rm conftest*
16408 LDFLAGS="$save_LDFLAGS"
16409
16410 fi
16411 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
16412 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
16413
16414 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16415 :
16416 else
16417 lt_prog_compiler_static_GCJ=
16418 fi
16419
16420
16421 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
16423 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16424 echo $ECHO_N "(cached) $ECHO_C" >&6
16425 else
16426 lt_cv_prog_compiler_c_o_GCJ=no
16427 $rm -r conftest 2>/dev/null
16428 mkdir conftest
16429 cd conftest
16430 mkdir out
16431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16432
16433 lt_compiler_flag="-o out/conftest2.$ac_objext"
16434 # Insert the option either (1) after the last *FLAGS variable, or
16435 # (2) before a word containing "conftest.", or (3) at the end.
16436 # Note that $ac_compile itself does not contain backslashes and begins
16437 # with a dollar sign (not a hyphen), so the echo should work correctly.
16438 lt_compile=`echo "$ac_compile" | $SED \
16439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16441 -e 's:$: $lt_compiler_flag:'`
16442 (eval echo "\"\$as_me:16443: $lt_compile\"" >&5)
16443 (eval "$lt_compile" 2>out/conftest.err)
16444 ac_status=$?
16445 cat out/conftest.err >&5
16446 echo "$as_me:16447: \$? = $ac_status" >&5
16447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16448 then
16449 # The compiler can only warn and ignore the option if not recognized
16450 # So say no if there are warnings
16451 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16454 lt_cv_prog_compiler_c_o_GCJ=yes
16455 fi
16456 fi
16457 chmod u+w . 2>&5
16458 $rm conftest*
16459 # SGI C++ compiler will create directory out/ii_files/ for
16460 # template instantiation
16461 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16462 $rm out/* && rmdir out
16463 cd ..
16464 rmdir conftest
16465 $rm conftest*
16466
16467 fi
16468 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16469 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16470
16471
16472 hard_links="nottested"
16473 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16474 # do not overwrite the value of need_locks provided by the user
16475 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16476 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
16477 hard_links=yes
16478 $rm conftest*
16479 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16480 touch conftest.a
16481 ln conftest.a conftest.b 2>&5 || hard_links=no
16482 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16483 { echo "$as_me:$LINENO: result: $hard_links" >&5
16484 echo "${ECHO_T}$hard_links" >&6; }
16485 if test "$hard_links" = no; then
16486 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16487 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16488 need_locks=warn
16489 fi
16490 else
16491 need_locks=no
16492 fi
16493
16494 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16495 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
16496
16497 runpath_var=
16498 allow_undefined_flag_GCJ=
16499 enable_shared_with_static_runtimes_GCJ=no
16500 archive_cmds_GCJ=
16501 archive_expsym_cmds_GCJ=
16502 old_archive_From_new_cmds_GCJ=
16503 old_archive_from_expsyms_cmds_GCJ=
16504 export_dynamic_flag_spec_GCJ=
16505 whole_archive_flag_spec_GCJ=
16506 thread_safe_flag_spec_GCJ=
16507 hardcode_libdir_flag_spec_GCJ=
16508 hardcode_libdir_flag_spec_ld_GCJ=
16509 hardcode_libdir_separator_GCJ=
16510 hardcode_direct_GCJ=no
16511 hardcode_minus_L_GCJ=no
16512 hardcode_shlibpath_var_GCJ=unsupported
16513 link_all_deplibs_GCJ=unknown
16514 hardcode_automatic_GCJ=no
16515 module_cmds_GCJ=
16516 module_expsym_cmds_GCJ=
16517 always_export_symbols_GCJ=no
16518 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16519 # include_expsyms should be a list of space-separated symbols to be *always*
16520 # included in the symbol list
16521 include_expsyms_GCJ=
16522 # exclude_expsyms can be an extended regexp of symbols to exclude
16523 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16524 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16525 # as well as any symbol that contains `d'.
16526 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16527 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16528 # platforms (ab)use it in PIC code, but their linkers get confused if
16529 # the symbol is explicitly referenced. Since portable code cannot
16530 # rely on this symbol name, it's probably fine to never include it in
16531 # preloaded symbol tables.
16532 extract_expsyms_cmds=
16533 # Just being paranoid about ensuring that cc_basename is set.
16534 for cc_temp in $compiler""; do
16535 case $cc_temp in
16536 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16537 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16538 \-*) ;;
16539 *) break;;
16540 esac
16541 done
16542 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16543
16544 case $host_os in
16545 cygwin* | mingw* | pw32*)
16546 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16547 # When not using gcc, we currently assume that we are using
16548 # Microsoft Visual C++.
16549 if test "$GCC" != yes; then
16550 with_gnu_ld=no
16551 fi
16552 ;;
16553 interix*)
16554 # we just hope/assume this is gcc and not c89 (= MSVC++)
16555 with_gnu_ld=yes
16556 ;;
16557 openbsd*)
16558 with_gnu_ld=no
16559 ;;
16560 esac
16561
16562 ld_shlibs_GCJ=yes
16563 if test "$with_gnu_ld" = yes; then
16564 # If archive_cmds runs LD, not CC, wlarc should be empty
16565 wlarc='${wl}'
16566
16567 # Set some defaults for GNU ld with shared library support. These
16568 # are reset later if shared libraries are not supported. Putting them
16569 # here allows them to be overridden if necessary.
16570 runpath_var=LD_RUN_PATH
16571 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16572 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16573 # ancient GNU ld didn't support --whole-archive et. al.
16574 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16575 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16576 else
16577 whole_archive_flag_spec_GCJ=
16578 fi
16579 supports_anon_versioning=no
16580 case `$LD -v 2>/dev/null` in
16581 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16582 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16583 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16584 *\ 2.11.*) ;; # other 2.11 versions
16585 *) supports_anon_versioning=yes ;;
16586 esac
16587
16588 # See if GNU ld supports shared libraries.
16589 case $host_os in
16590 aix3* | aix4* | aix5*)
16591 # On AIX/PPC, the GNU linker is very broken
16592 if test "$host_cpu" != ia64; then
16593 ld_shlibs_GCJ=no
16594 cat <<EOF 1>&2
16595
16596 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16597 *** to be unable to reliably create shared libraries on AIX.
16598 *** Therefore, libtool is disabling shared libraries support. If you
16599 *** really care for shared libraries, you may want to modify your PATH
16600 *** so that a non-GNU linker is found, and then restart.
16601
16602 EOF
16603 fi
16604 ;;
16605
16606 amigaos*)
16607 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
16608 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16609 hardcode_minus_L_GCJ=yes
16610
16611 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16612 # that the semantics of dynamic libraries on AmigaOS, at least up
16613 # to version 4, is to share data among multiple programs linked
16614 # with the same dynamic library. Since this doesn't match the
16615 # behavior of shared libraries on other platforms, we can't use
16616 # them.
16617 ld_shlibs_GCJ=no
16618 ;;
16619
16620 beos*)
16621 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16622 allow_undefined_flag_GCJ=unsupported
16623 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16624 # support --undefined. This deserves some investigation. FIXME
16625 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16626 else
16627 ld_shlibs_GCJ=no
16628 fi
16629 ;;
16630
16631 cygwin* | mingw* | pw32*)
16632 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16633 # as there is no search path for DLLs.
16634 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16635 allow_undefined_flag_GCJ=unsupported
16636 always_export_symbols_GCJ=no
16637 enable_shared_with_static_runtimes_GCJ=yes
16638 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16639
16640 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16641 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16642 # If the export-symbols file already is a .def file (1st line
16643 # is EXPORTS), use it as is; otherwise, prepend...
16644 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16645 cp $export_symbols $output_objdir/$soname.def;
16646 else
16647 echo EXPORTS > $output_objdir/$soname.def;
16648 cat $export_symbols >> $output_objdir/$soname.def;
16649 fi~
16650 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16651 else
16652 ld_shlibs_GCJ=no
16653 fi
16654 ;;
16655
16656 interix3*)
16657 hardcode_direct_GCJ=no
16658 hardcode_shlibpath_var_GCJ=no
16659 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16660 export_dynamic_flag_spec_GCJ='${wl}-E'
16661 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16662 # Instead, shared libraries are loaded at an image base (0x10000000 by
16663 # default) and relocated if they conflict, which is a slow very memory
16664 # consuming and fragmenting process. To avoid this, we pick a random,
16665 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16666 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16667 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16668 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16669 ;;
16670
16671 linux* | k*bsd*-gnu)
16672 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16673 tmp_addflag=
16674 case $cc_basename,$host_cpu in
16675 pgcc*) # Portland Group C compiler
16676 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16677 tmp_addflag=' $pic_flag'
16678 ;;
16679 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16680 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16681 tmp_addflag=' $pic_flag -Mnomain' ;;
16682 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16683 tmp_addflag=' -i_dynamic' ;;
16684 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16685 tmp_addflag=' -i_dynamic -nofor_main' ;;
16686 ifc* | ifort*) # Intel Fortran compiler
16687 tmp_addflag=' -nofor_main' ;;
16688 esac
16689 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16690
16691 if test $supports_anon_versioning = yes; then
16692 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16693 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16694 $echo "local: *; };" >> $output_objdir/$libname.ver~
16695 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16696 fi
16697 link_all_deplibs_GCJ=no
16698 else
16699 ld_shlibs_GCJ=no
16700 fi
16701 ;;
16702
16703 netbsd* | netbsdelf*-gnu)
16704 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16705 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16706 wlarc=
16707 else
16708 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16709 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16710 fi
16711 ;;
16712
16713 solaris*)
16714 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16715 ld_shlibs_GCJ=no
16716 cat <<EOF 1>&2
16717
16718 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16719 *** create shared libraries on Solaris systems. Therefore, libtool
16720 *** is disabling shared libraries support. We urge you to upgrade GNU
16721 *** binutils to release 2.9.1 or newer. Another option is to modify
16722 *** your PATH or compiler configuration so that the native linker is
16723 *** used, and then restart.
16724
16725 EOF
16726 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16727 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16728 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16729 else
16730 ld_shlibs_GCJ=no
16731 fi
16732 ;;
16733
16734 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16735 case `$LD -v 2>&1` in
16736 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16737 ld_shlibs_GCJ=no
16738 cat <<_LT_EOF 1>&2
16739
16740 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16741 *** reliably create shared libraries on SCO systems. Therefore, libtool
16742 *** is disabling shared libraries support. We urge you to upgrade GNU
16743 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16744 *** your PATH or compiler configuration so that the native linker is
16745 *** used, and then restart.
16746
16747 _LT_EOF
16748 ;;
16749 *)
16750 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16751 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16752 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16753 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16754 else
16755 ld_shlibs_GCJ=no
16756 fi
16757 ;;
16758 esac
16759 ;;
16760
16761 sunos4*)
16762 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16763 wlarc=
16764 hardcode_direct_GCJ=yes
16765 hardcode_shlibpath_var_GCJ=no
16766 ;;
16767
16768 *)
16769 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16770 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16771 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16772 else
16773 ld_shlibs_GCJ=no
16774 fi
16775 ;;
16776 esac
16777
16778 if test "$ld_shlibs_GCJ" = no; then
16779 runpath_var=
16780 hardcode_libdir_flag_spec_GCJ=
16781 export_dynamic_flag_spec_GCJ=
16782 whole_archive_flag_spec_GCJ=
16783 fi
16784 else
16785 # PORTME fill in a description of your system's linker (not GNU ld)
16786 case $host_os in
16787 aix3*)
16788 allow_undefined_flag_GCJ=unsupported
16789 always_export_symbols_GCJ=yes
16790 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16791 # Note: this linker hardcodes the directories in LIBPATH if there
16792 # are no directories specified by -L.
16793 hardcode_minus_L_GCJ=yes
16794 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16795 # Neither direct hardcoding nor static linking is supported with a
16796 # broken collect2.
16797 hardcode_direct_GCJ=unsupported
16798 fi
16799 ;;
16800
16801 aix4* | aix5*)
16802 if test "$host_cpu" = ia64; then
16803 # On IA64, the linker does run time linking by default, so we don't
16804 # have to do anything special.
16805 aix_use_runtimelinking=no
16806 exp_sym_flag='-Bexport'
16807 no_entry_flag=""
16808 else
16809 # If we're using GNU nm, then we don't want the "-C" option.
16810 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16811 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16812 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16813 else
16814 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16815 fi
16816 aix_use_runtimelinking=no
16817
16818 # Test if we are trying to use run time linking or normal
16819 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16820 # need to do runtime linking.
16821 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16822 for ld_flag in $LDFLAGS; do
16823 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16824 aix_use_runtimelinking=yes
16825 break
16826 fi
16827 done
16828 ;;
16829 esac
16830
16831 exp_sym_flag='-bexport'
16832 no_entry_flag='-bnoentry'
16833 fi
16834
16835 # When large executables or shared objects are built, AIX ld can
16836 # have problems creating the table of contents. If linking a library
16837 # or program results in "error TOC overflow" add -mminimal-toc to
16838 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16839 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16840
16841 archive_cmds_GCJ=''
16842 hardcode_direct_GCJ=yes
16843 hardcode_libdir_separator_GCJ=':'
16844 link_all_deplibs_GCJ=yes
16845
16846 if test "$GCC" = yes; then
16847 case $host_os in aix4.[012]|aix4.[012].*)
16848 # We only want to do this on AIX 4.2 and lower, the check
16849 # below for broken collect2 doesn't work under 4.3+
16850 collect2name=`${CC} -print-prog-name=collect2`
16851 if test -f "$collect2name" && \
16852 strings "$collect2name" | grep resolve_lib_name >/dev/null
16853 then
16854 # We have reworked collect2
16855 hardcode_direct_GCJ=yes
16856 else
16857 # We have old collect2
16858 hardcode_direct_GCJ=unsupported
16859 # It fails to find uninstalled libraries when the uninstalled
16860 # path is not listed in the libpath. Setting hardcode_minus_L
16861 # to unsupported forces relinking
16862 hardcode_minus_L_GCJ=yes
16863 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16864 hardcode_libdir_separator_GCJ=
16865 fi
16866 ;;
16867 esac
16868 shared_flag='-shared'
16869 if test "$aix_use_runtimelinking" = yes; then
16870 shared_flag="$shared_flag "'${wl}-G'
16871 fi
16872 else
16873 # not using gcc
16874 if test "$host_cpu" = ia64; then
16875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16876 # chokes on -Wl,-G. The following line is correct:
16877 shared_flag='-G'
16878 else
16879 if test "$aix_use_runtimelinking" = yes; then
16880 shared_flag='${wl}-G'
16881 else
16882 shared_flag='${wl}-bM:SRE'
16883 fi
16884 fi
16885 fi
16886
16887 # It seems that -bexpall does not export symbols beginning with
16888 # underscore (_), so it is better to generate a list of symbols to export.
16889 always_export_symbols_GCJ=yes
16890 if test "$aix_use_runtimelinking" = yes; then
16891 # Warning - without using the other runtime loading flags (-brtl),
16892 # -berok will link without error, but may produce a broken library.
16893 allow_undefined_flag_GCJ='-berok'
16894 # Determine the default libpath from the value encoded in an empty executable.
16895 cat >conftest.$ac_ext <<_ACEOF
16896 /* confdefs.h. */
16897 _ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16901
16902 int
16903 main ()
16904 {
16905
16906 ;
16907 return 0;
16908 }
16909 _ACEOF
16910 rm -f conftest.$ac_objext conftest$ac_exeext
16911 if { (ac_try="$ac_link"
16912 case "(($ac_try" in
16913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16914 *) ac_try_echo=$ac_try;;
16915 esac
16916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16917 (eval "$ac_link") 2>conftest.er1
16918 ac_status=$?
16919 grep -v '^ *+' conftest.er1 >conftest.err
16920 rm -f conftest.er1
16921 cat conftest.err >&5
16922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16923 (exit $ac_status); } && {
16924 test -z "$ac_c_werror_flag" ||
16925 test ! -s conftest.err
16926 } && test -s conftest$ac_exeext &&
16927 $as_test_x conftest$ac_exeext; then
16928
16929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16930 }'`
16931 # Check for a 64-bit object if we didn't find anything.
16932 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; }
16933 }'`; fi
16934 else
16935 echo "$as_me: failed program was:" >&5
16936 sed 's/^/| /' conftest.$ac_ext >&5
16937
16938
16939 fi
16940
16941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16942 conftest$ac_exeext conftest.$ac_ext
16943 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16944
16945 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16946 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16947 else
16948 if test "$host_cpu" = ia64; then
16949 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16950 allow_undefined_flag_GCJ="-z nodefs"
16951 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16952 else
16953 # Determine the default libpath from the value encoded in an empty executable.
16954 cat >conftest.$ac_ext <<_ACEOF
16955 /* confdefs.h. */
16956 _ACEOF
16957 cat confdefs.h >>conftest.$ac_ext
16958 cat >>conftest.$ac_ext <<_ACEOF
16959 /* end confdefs.h. */
16960
16961 int
16962 main ()
16963 {
16964
16965 ;
16966 return 0;
16967 }
16968 _ACEOF
16969 rm -f conftest.$ac_objext conftest$ac_exeext
16970 if { (ac_try="$ac_link"
16971 case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_link") 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } && {
16983 test -z "$ac_c_werror_flag" ||
16984 test ! -s conftest.err
16985 } && test -s conftest$ac_exeext &&
16986 $as_test_x conftest$ac_exeext; then
16987
16988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16989 }'`
16990 # Check for a 64-bit object if we didn't find anything.
16991 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; }
16992 }'`; fi
16993 else
16994 echo "$as_me: failed program was:" >&5
16995 sed 's/^/| /' conftest.$ac_ext >&5
16996
16997
16998 fi
16999
17000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17001 conftest$ac_exeext conftest.$ac_ext
17002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17003
17004 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17005 # Warning - without using the other run time loading flags,
17006 # -berok will link without error, but may produce a broken library.
17007 no_undefined_flag_GCJ=' ${wl}-bernotok'
17008 allow_undefined_flag_GCJ=' ${wl}-berok'
17009 # Exported symbols can be pulled into shared objects from archives
17010 whole_archive_flag_spec_GCJ='$convenience'
17011 archive_cmds_need_lc_GCJ=yes
17012 # This is similar to how AIX traditionally builds its shared libraries.
17013 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17014 fi
17015 fi
17016 ;;
17017
17018 amigaos*)
17019 archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
17020 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17021 hardcode_minus_L_GCJ=yes
17022 # see comment about different semantics on the GNU ld section
17023 ld_shlibs_GCJ=no
17024 ;;
17025
17026 bsdi[45]*)
17027 export_dynamic_flag_spec_GCJ=-rdynamic
17028 ;;
17029
17030 cygwin* | mingw* | pw32*)
17031 # When not using gcc, we currently assume that we are using
17032 # Microsoft Visual C++.
17033 # hardcode_libdir_flag_spec is actually meaningless, as there is
17034 # no search path for DLLs.
17035 hardcode_libdir_flag_spec_GCJ=' '
17036 allow_undefined_flag_GCJ=unsupported
17037 # Tell ltmain to make .lib files, not .a files.
17038 libext=lib
17039 # Tell ltmain to make .dll files, not .so files.
17040 shrext_cmds=".dll"
17041 # FIXME: Setting linknames here is a bad hack.
17042 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17043 # The linker will automatically build a .lib file if we build a DLL.
17044 old_archive_From_new_cmds_GCJ='true'
17045 # FIXME: Should let the user specify the lib program.
17046 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17047 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17048 enable_shared_with_static_runtimes_GCJ=yes
17049 ;;
17050
17051 darwin* | rhapsody*)
17052 case $host_os in
17053 rhapsody* | darwin1.[012])
17054 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17055 ;;
17056 *) # Darwin 1.3 on
17057 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17058 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17059 else
17060 case ${MACOSX_DEPLOYMENT_TARGET} in
17061 10.[012])
17062 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17063 ;;
17064 10.*)
17065 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17066 ;;
17067 esac
17068 fi
17069 ;;
17070 esac
17071 archive_cmds_need_lc_GCJ=no
17072 hardcode_direct_GCJ=no
17073 hardcode_automatic_GCJ=yes
17074 hardcode_shlibpath_var_GCJ=unsupported
17075 whole_archive_flag_spec_GCJ=''
17076 link_all_deplibs_GCJ=yes
17077 if test "$GCC" = yes ; then
17078 output_verbose_link_cmd='echo'
17079 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17080 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17081 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17082 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17083 module_expsym_cmds_GCJ='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}'
17084 else
17085 case $cc_basename in
17086 xlc*)
17087 output_verbose_link_cmd='echo'
17088 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17089 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17090 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17091 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17092 module_expsym_cmds_GCJ='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}'
17093 ;;
17094 *)
17095 ld_shlibs_GCJ=no
17096 ;;
17097 esac
17098 fi
17099 ;;
17100
17101 dgux*)
17102 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17103 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17104 hardcode_shlibpath_var_GCJ=no
17105 ;;
17106
17107 freebsd1*)
17108 ld_shlibs_GCJ=no
17109 ;;
17110
17111 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17112 # support. Future versions do this automatically, but an explicit c++rt0.o
17113 # does not break anything, and helps significantly (at the cost of a little
17114 # extra space).
17115 freebsd2.2*)
17116 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17117 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17118 hardcode_direct_GCJ=yes
17119 hardcode_shlibpath_var_GCJ=no
17120 ;;
17121
17122 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17123 freebsd2*)
17124 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17125 hardcode_direct_GCJ=yes
17126 hardcode_minus_L_GCJ=yes
17127 hardcode_shlibpath_var_GCJ=no
17128 ;;
17129
17130 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17131 freebsd* | dragonfly*)
17132 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17133 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17134 hardcode_direct_GCJ=yes
17135 hardcode_shlibpath_var_GCJ=no
17136 ;;
17137
17138 hpux9*)
17139 if test "$GCC" = yes; then
17140 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17141 else
17142 archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17143 fi
17144 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17145 hardcode_libdir_separator_GCJ=:
17146 hardcode_direct_GCJ=yes
17147
17148 # hardcode_minus_L: Not really in the search PATH,
17149 # but as the default location of the library.
17150 hardcode_minus_L_GCJ=yes
17151 export_dynamic_flag_spec_GCJ='${wl}-E'
17152 ;;
17153
17154 hpux10*)
17155 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17156 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17157 else
17158 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17159 fi
17160 if test "$with_gnu_ld" = no; then
17161 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17162 hardcode_libdir_separator_GCJ=:
17163
17164 hardcode_direct_GCJ=yes
17165 export_dynamic_flag_spec_GCJ='${wl}-E'
17166
17167 # hardcode_minus_L: Not really in the search PATH,
17168 # but as the default location of the library.
17169 hardcode_minus_L_GCJ=yes
17170 fi
17171 ;;
17172
17173 hpux11*)
17174 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17175 case $host_cpu in
17176 hppa*64*)
17177 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17178 ;;
17179 ia64*)
17180 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17181 ;;
17182 *)
17183 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17184 ;;
17185 esac
17186 else
17187 case $host_cpu in
17188 hppa*64*)
17189 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17190 ;;
17191 ia64*)
17192 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17193 ;;
17194 *)
17195 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17196 ;;
17197 esac
17198 fi
17199 if test "$with_gnu_ld" = no; then
17200 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17201 hardcode_libdir_separator_GCJ=:
17202
17203 case $host_cpu in
17204 hppa*64*|ia64*)
17205 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17206 hardcode_direct_GCJ=no
17207 hardcode_shlibpath_var_GCJ=no
17208 ;;
17209 *)
17210 hardcode_direct_GCJ=yes
17211 export_dynamic_flag_spec_GCJ='${wl}-E'
17212
17213 # hardcode_minus_L: Not really in the search PATH,
17214 # but as the default location of the library.
17215 hardcode_minus_L_GCJ=yes
17216 ;;
17217 esac
17218 fi
17219 ;;
17220
17221 irix5* | irix6* | nonstopux*)
17222 if test "$GCC" = yes; then
17223 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17224 else
17225 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17226 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17227 fi
17228 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17229 hardcode_libdir_separator_GCJ=:
17230 link_all_deplibs_GCJ=yes
17231 ;;
17232
17233 netbsd* | netbsdelf*-gnu)
17234 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17235 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17236 else
17237 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17238 fi
17239 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17240 hardcode_direct_GCJ=yes
17241 hardcode_shlibpath_var_GCJ=no
17242 ;;
17243
17244 newsos6)
17245 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17246 hardcode_direct_GCJ=yes
17247 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17248 hardcode_libdir_separator_GCJ=:
17249 hardcode_shlibpath_var_GCJ=no
17250 ;;
17251
17252 openbsd*)
17253 hardcode_direct_GCJ=yes
17254 hardcode_shlibpath_var_GCJ=no
17255 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17256 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17257 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17258 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17259 export_dynamic_flag_spec_GCJ='${wl}-E'
17260 else
17261 case $host_os in
17262 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17263 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17264 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17265 ;;
17266 *)
17267 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17268 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17269 ;;
17270 esac
17271 fi
17272 ;;
17273
17274 os2*)
17275 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17276 hardcode_minus_L_GCJ=yes
17277 allow_undefined_flag_GCJ=unsupported
17278 archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17279 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17280 ;;
17281
17282 osf3*)
17283 if test "$GCC" = yes; then
17284 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17285 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17286 else
17287 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17288 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17289 fi
17290 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17291 hardcode_libdir_separator_GCJ=:
17292 ;;
17293
17294 osf4* | osf5*) # as osf3* with the addition of -msym flag
17295 if test "$GCC" = yes; then
17296 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17297 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17298 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17299 else
17300 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17301 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17302 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17303 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17304
17305 # Both c and cxx compiler support -rpath directly
17306 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17307 fi
17308 hardcode_libdir_separator_GCJ=:
17309 ;;
17310
17311 solaris*)
17312 no_undefined_flag_GCJ=' -z text'
17313 if test "$GCC" = yes; then
17314 wlarc='${wl}'
17315 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17316 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17317 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17318 else
17319 wlarc=''
17320 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17321 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17322 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17323 fi
17324 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17325 hardcode_shlibpath_var_GCJ=no
17326 case $host_os in
17327 solaris2.[0-5] | solaris2.[0-5].*) ;;
17328 *)
17329 # The compiler driver will combine linker options so we
17330 # cannot just pass the convience library names through
17331 # without $wl, iff we do not link with $LD.
17332 # Luckily, gcc supports the same syntax we need for Sun Studio.
17333 # Supported since Solaris 2.6 (maybe 2.5.1?)
17334 case $wlarc in
17335 '')
17336 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17337 *)
17338 whole_archive_flag_spec_GCJ='${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' ;;
17339 esac ;;
17340 esac
17341 link_all_deplibs_GCJ=yes
17342 ;;
17343
17344 sunos4*)
17345 if test "x$host_vendor" = xsequent; then
17346 # Use $CC to link under sequent, because it throws in some extra .o
17347 # files that make .init and .fini sections work.
17348 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17349 else
17350 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17351 fi
17352 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17353 hardcode_direct_GCJ=yes
17354 hardcode_minus_L_GCJ=yes
17355 hardcode_shlibpath_var_GCJ=no
17356 ;;
17357
17358 sysv4)
17359 case $host_vendor in
17360 sni)
17361 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17362 hardcode_direct_GCJ=yes # is this really true???
17363 ;;
17364 siemens)
17365 ## LD is ld it makes a PLAMLIB
17366 ## CC just makes a GrossModule.
17367 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17368 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17369 hardcode_direct_GCJ=no
17370 ;;
17371 motorola)
17372 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17373 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17374 ;;
17375 esac
17376 runpath_var='LD_RUN_PATH'
17377 hardcode_shlibpath_var_GCJ=no
17378 ;;
17379
17380 sysv4.3*)
17381 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17382 hardcode_shlibpath_var_GCJ=no
17383 export_dynamic_flag_spec_GCJ='-Bexport'
17384 ;;
17385
17386 sysv4*MP*)
17387 if test -d /usr/nec; then
17388 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17389 hardcode_shlibpath_var_GCJ=no
17390 runpath_var=LD_RUN_PATH
17391 hardcode_runpath_var=yes
17392 ld_shlibs_GCJ=yes
17393 fi
17394 ;;
17395
17396 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17397 no_undefined_flag_GCJ='${wl}-z,text'
17398 archive_cmds_need_lc_GCJ=no
17399 hardcode_shlibpath_var_GCJ=no
17400 runpath_var='LD_RUN_PATH'
17401
17402 if test "$GCC" = yes; then
17403 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17404 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17405 else
17406 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17407 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17408 fi
17409 ;;
17410
17411 sysv5* | sco3.2v5* | sco5v6*)
17412 # Note: We can NOT use -z defs as we might desire, because we do not
17413 # link with -lc, and that would cause any symbols used from libc to
17414 # always be unresolved, which means just about no library would
17415 # ever link correctly. If we're not using GNU ld we use -z text
17416 # though, which does catch some bad symbols but isn't as heavy-handed
17417 # as -z defs.
17418 no_undefined_flag_GCJ='${wl}-z,text'
17419 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17420 archive_cmds_need_lc_GCJ=no
17421 hardcode_shlibpath_var_GCJ=no
17422 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17423 hardcode_libdir_separator_GCJ=':'
17424 link_all_deplibs_GCJ=yes
17425 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17426 runpath_var='LD_RUN_PATH'
17427
17428 if test "$GCC" = yes; then
17429 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17430 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17431 else
17432 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17433 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17434 fi
17435 ;;
17436
17437 uts4*)
17438 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17439 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17440 hardcode_shlibpath_var_GCJ=no
17441 ;;
17442
17443 *)
17444 ld_shlibs_GCJ=no
17445 ;;
17446 esac
17447 fi
17448
17449 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17450 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
17451 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17452
17453 #
17454 # Do we need to explicitly link libc?
17455 #
17456 case "x$archive_cmds_need_lc_GCJ" in
17457 x|xyes)
17458 # Assume -lc should be added
17459 archive_cmds_need_lc_GCJ=yes
17460
17461 if test "$enable_shared" = yes && test "$GCC" = yes; then
17462 case $archive_cmds_GCJ in
17463 *'~'*)
17464 # FIXME: we may have to deal with multi-command sequences.
17465 ;;
17466 '$CC '*)
17467 # Test whether the compiler implicitly links with -lc since on some
17468 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17469 # to ld, don't add -lc before -lgcc.
17470 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17471 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
17472 $rm conftest*
17473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17474
17475 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17476 (eval $ac_compile) 2>&5
17477 ac_status=$?
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } 2>conftest.err; then
17480 soname=conftest
17481 lib=conftest
17482 libobjs=conftest.$ac_objext
17483 deplibs=
17484 wl=$lt_prog_compiler_wl_GCJ
17485 pic_flag=$lt_prog_compiler_pic_GCJ
17486 compiler_flags=-v
17487 linker_flags=-v
17488 verstring=
17489 output_objdir=.
17490 libname=conftest
17491 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17492 allow_undefined_flag_GCJ=
17493 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17494 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17495 ac_status=$?
17496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17497 (exit $ac_status); }
17498 then
17499 archive_cmds_need_lc_GCJ=no
17500 else
17501 archive_cmds_need_lc_GCJ=yes
17502 fi
17503 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17504 else
17505 cat conftest.err 1>&5
17506 fi
17507 $rm conftest*
17508 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17509 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
17510 ;;
17511 esac
17512 fi
17513 ;;
17514 esac
17515
17516 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17517 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
17518 library_names_spec=
17519 libname_spec='lib$name'
17520 soname_spec=
17521 shrext_cmds=".so"
17522 postinstall_cmds=
17523 postuninstall_cmds=
17524 finish_cmds=
17525 finish_eval=
17526 shlibpath_var=
17527 shlibpath_overrides_runpath=unknown
17528 version_type=none
17529 dynamic_linker="$host_os ld.so"
17530 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17531 if test "$GCC" = yes; then
17532 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17533 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17534 # if the path contains ";" then we assume it to be the separator
17535 # otherwise default to the standard path separator (i.e. ":") - it is
17536 # assumed that no part of a normal pathname contains ";" but that should
17537 # okay in the real world where ";" in dirpaths is itself problematic.
17538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17539 else
17540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17541 fi
17542 else
17543 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17544 fi
17545 need_lib_prefix=unknown
17546 hardcode_into_libs=no
17547
17548 # when you set need_version to no, make sure it does not cause -set_version
17549 # flags to be left without arguments
17550 need_version=unknown
17551
17552 case $host_os in
17553 aix3*)
17554 version_type=linux
17555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17556 shlibpath_var=LIBPATH
17557
17558 # AIX 3 has no versioning support, so we append a major version to the name.
17559 soname_spec='${libname}${release}${shared_ext}$major'
17560 ;;
17561
17562 aix4* | aix5*)
17563 version_type=linux
17564 need_lib_prefix=no
17565 need_version=no
17566 hardcode_into_libs=yes
17567 if test "$host_cpu" = ia64; then
17568 # AIX 5 supports IA64
17569 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17570 shlibpath_var=LD_LIBRARY_PATH
17571 else
17572 # With GCC up to 2.95.x, collect2 would create an import file
17573 # for dependence libraries. The import file would start with
17574 # the line `#! .'. This would cause the generated library to
17575 # depend on `.', always an invalid library. This was fixed in
17576 # development snapshots of GCC prior to 3.0.
17577 case $host_os in
17578 aix4 | aix4.[01] | aix4.[01].*)
17579 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17580 echo ' yes '
17581 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17582 :
17583 else
17584 can_build_shared=no
17585 fi
17586 ;;
17587 esac
17588 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17589 # soname into executable. Probably we can add versioning support to
17590 # collect2, so additional links can be useful in future.
17591 if test "$aix_use_runtimelinking" = yes; then
17592 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17593 # instead of lib<name>.a to let people know that these are not
17594 # typical AIX shared libraries.
17595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17596 else
17597 # We preserve .a as extension for shared libraries through AIX4.2
17598 # and later when we are not doing run time linking.
17599 library_names_spec='${libname}${release}.a $libname.a'
17600 soname_spec='${libname}${release}${shared_ext}$major'
17601 fi
17602 shlibpath_var=LIBPATH
17603 fi
17604 ;;
17605
17606 amigaos*)
17607 library_names_spec='$libname.ixlibrary $libname.a'
17608 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17609 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'
17610 ;;
17611
17612 beos*)
17613 library_names_spec='${libname}${shared_ext}'
17614 dynamic_linker="$host_os ld.so"
17615 shlibpath_var=LIBRARY_PATH
17616 ;;
17617
17618 bsdi[45]*)
17619 version_type=linux
17620 need_version=no
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17623 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17624 shlibpath_var=LD_LIBRARY_PATH
17625 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17626 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17627 # the default ld.so.conf also contains /usr/contrib/lib and
17628 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17629 # libtool to hard-code these into programs
17630 ;;
17631
17632 cygwin* | mingw* | pw32*)
17633 version_type=windows
17634 shrext_cmds=".dll"
17635 need_version=no
17636 need_lib_prefix=no
17637
17638 case $GCC,$host_os in
17639 yes,cygwin* | yes,mingw* | yes,pw32*)
17640 library_names_spec='$libname.dll.a'
17641 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17642 postinstall_cmds='base_file=`basename \${file}`~
17643 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17644 dldir=$destdir/`dirname \$dlpath`~
17645 test -d \$dldir || mkdir -p \$dldir~
17646 $install_prog $dir/$dlname \$dldir/$dlname~
17647 chmod a+x \$dldir/$dlname'
17648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17649 dlpath=$dir/\$dldll~
17650 $rm \$dlpath'
17651 shlibpath_overrides_runpath=yes
17652
17653 case $host_os in
17654 cygwin*)
17655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17657 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17658 ;;
17659 mingw*)
17660 # MinGW DLLs use traditional 'lib' prefix
17661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17662 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17663 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17664 # It is most probably a Windows format PATH printed by
17665 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17666 # path with ; separators, and with drive letters. We can handle the
17667 # drive letters (cygwin fileutils understands them), so leave them,
17668 # especially as we might pass files found there to a mingw objdump,
17669 # which wouldn't understand a cygwinified path. Ahh.
17670 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17671 else
17672 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17673 fi
17674 ;;
17675 pw32*)
17676 # pw32 DLLs use 'pw' prefix rather than 'lib'
17677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17678 ;;
17679 esac
17680 ;;
17681
17682 *)
17683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17684 ;;
17685 esac
17686 dynamic_linker='Win32 ld.exe'
17687 # FIXME: first we should search . and the directory the executable is in
17688 shlibpath_var=PATH
17689 ;;
17690
17691 darwin* | rhapsody*)
17692 dynamic_linker="$host_os dyld"
17693 version_type=darwin
17694 need_lib_prefix=no
17695 need_version=no
17696 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17697 soname_spec='${libname}${release}${major}$shared_ext'
17698 shlibpath_overrides_runpath=yes
17699 shlibpath_var=DYLD_LIBRARY_PATH
17700 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17701 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17702 if test "$GCC" = yes; then
17703 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"`
17704 else
17705 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17706 fi
17707 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17708 ;;
17709
17710 dgux*)
17711 version_type=linux
17712 need_lib_prefix=no
17713 need_version=no
17714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17715 soname_spec='${libname}${release}${shared_ext}$major'
17716 shlibpath_var=LD_LIBRARY_PATH
17717 ;;
17718
17719 freebsd1*)
17720 dynamic_linker=no
17721 ;;
17722
17723 freebsd* | dragonfly*)
17724 # DragonFly does not have aout. When/if they implement a new
17725 # versioning mechanism, adjust this.
17726 if test -x /usr/bin/objformat; then
17727 objformat=`/usr/bin/objformat`
17728 else
17729 case $host_os in
17730 freebsd[123]*) objformat=aout ;;
17731 *) objformat=elf ;;
17732 esac
17733 fi
17734 version_type=freebsd-$objformat
17735 case $version_type in
17736 freebsd-elf*)
17737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17738 need_version=no
17739 need_lib_prefix=no
17740 ;;
17741 freebsd-*)
17742 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17743 need_version=yes
17744 ;;
17745 esac
17746 shlibpath_var=LD_LIBRARY_PATH
17747 case $host_os in
17748 freebsd2*)
17749 shlibpath_overrides_runpath=yes
17750 ;;
17751 freebsd3.[01]* | freebsdelf3.[01]*)
17752 shlibpath_overrides_runpath=yes
17753 hardcode_into_libs=yes
17754 ;;
17755 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17756 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17757 shlibpath_overrides_runpath=no
17758 hardcode_into_libs=yes
17759 ;;
17760 freebsd*) # from 4.6 on
17761 shlibpath_overrides_runpath=yes
17762 hardcode_into_libs=yes
17763 ;;
17764 esac
17765 ;;
17766
17767 gnu*)
17768 version_type=linux
17769 need_lib_prefix=no
17770 need_version=no
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17772 soname_spec='${libname}${release}${shared_ext}$major'
17773 shlibpath_var=LD_LIBRARY_PATH
17774 hardcode_into_libs=yes
17775 ;;
17776
17777 hpux9* | hpux10* | hpux11*)
17778 # Give a soname corresponding to the major version so that dld.sl refuses to
17779 # link against other versions.
17780 version_type=sunos
17781 need_lib_prefix=no
17782 need_version=no
17783 case $host_cpu in
17784 ia64*)
17785 shrext_cmds='.so'
17786 hardcode_into_libs=yes
17787 dynamic_linker="$host_os dld.so"
17788 shlibpath_var=LD_LIBRARY_PATH
17789 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17791 soname_spec='${libname}${release}${shared_ext}$major'
17792 if test "X$HPUX_IA64_MODE" = X32; then
17793 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17794 else
17795 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17796 fi
17797 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17798 ;;
17799 hppa*64*)
17800 shrext_cmds='.sl'
17801 hardcode_into_libs=yes
17802 dynamic_linker="$host_os dld.sl"
17803 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17804 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17806 soname_spec='${libname}${release}${shared_ext}$major'
17807 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17808 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17809 ;;
17810 *)
17811 shrext_cmds='.sl'
17812 dynamic_linker="$host_os dld.sl"
17813 shlibpath_var=SHLIB_PATH
17814 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17816 soname_spec='${libname}${release}${shared_ext}$major'
17817 ;;
17818 esac
17819 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17820 postinstall_cmds='chmod 555 $lib'
17821 ;;
17822
17823 interix3*)
17824 version_type=linux
17825 need_lib_prefix=no
17826 need_version=no
17827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17828 soname_spec='${libname}${release}${shared_ext}$major'
17829 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17830 shlibpath_var=LD_LIBRARY_PATH
17831 shlibpath_overrides_runpath=no
17832 hardcode_into_libs=yes
17833 ;;
17834
17835 irix5* | irix6* | nonstopux*)
17836 case $host_os in
17837 nonstopux*) version_type=nonstopux ;;
17838 *)
17839 if test "$lt_cv_prog_gnu_ld" = yes; then
17840 version_type=linux
17841 else
17842 version_type=irix
17843 fi ;;
17844 esac
17845 need_lib_prefix=no
17846 need_version=no
17847 soname_spec='${libname}${release}${shared_ext}$major'
17848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17849 case $host_os in
17850 irix5* | nonstopux*)
17851 libsuff= shlibsuff=
17852 ;;
17853 *)
17854 case $LD in # libtool.m4 will add one of these switches to LD
17855 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17856 libsuff= shlibsuff= libmagic=32-bit;;
17857 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17858 libsuff=32 shlibsuff=N32 libmagic=N32;;
17859 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17860 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17861 *) libsuff= shlibsuff= libmagic=never-match;;
17862 esac
17863 ;;
17864 esac
17865 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17866 shlibpath_overrides_runpath=no
17867 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17868 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17869 hardcode_into_libs=yes
17870 ;;
17871
17872 # No shared lib support for Linux oldld, aout, or coff.
17873 linux*oldld* | linux*aout* | linux*coff*)
17874 dynamic_linker=no
17875 ;;
17876
17877 # This must be Linux ELF.
17878 linux* | k*bsd*-gnu)
17879 version_type=linux
17880 need_lib_prefix=no
17881 need_version=no
17882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17883 soname_spec='${libname}${release}${shared_ext}$major'
17884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17885 shlibpath_var=LD_LIBRARY_PATH
17886 shlibpath_overrides_runpath=no
17887 # This implies no fast_install, which is unacceptable.
17888 # Some rework will be needed to allow for fast_install
17889 # before this can be enabled.
17890 hardcode_into_libs=yes
17891
17892 # Append ld.so.conf contents to the search path
17893 if test -f /etc/ld.so.conf; then
17894 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/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17895 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17896 fi
17897
17898 # We used to test for /lib/ld.so.1 and disable shared libraries on
17899 # powerpc, because MkLinux only supported shared libraries with the
17900 # GNU dynamic linker. Since this was broken with cross compilers,
17901 # most powerpc-linux boxes support dynamic linking these days and
17902 # people can always --disable-shared, the test was removed, and we
17903 # assume the GNU/Linux dynamic linker is in use.
17904 dynamic_linker='GNU/Linux ld.so'
17905 ;;
17906
17907 netbsdelf*-gnu)
17908 version_type=linux
17909 need_lib_prefix=no
17910 need_version=no
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17912 soname_spec='${libname}${release}${shared_ext}$major'
17913 shlibpath_var=LD_LIBRARY_PATH
17914 shlibpath_overrides_runpath=no
17915 hardcode_into_libs=yes
17916 dynamic_linker='NetBSD ld.elf_so'
17917 ;;
17918
17919 netbsd*)
17920 version_type=sunos
17921 need_lib_prefix=no
17922 need_version=no
17923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17925 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17926 dynamic_linker='NetBSD (a.out) ld.so'
17927 else
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17929 soname_spec='${libname}${release}${shared_ext}$major'
17930 dynamic_linker='NetBSD ld.elf_so'
17931 fi
17932 shlibpath_var=LD_LIBRARY_PATH
17933 shlibpath_overrides_runpath=yes
17934 hardcode_into_libs=yes
17935 ;;
17936
17937 newsos6)
17938 version_type=linux
17939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17940 shlibpath_var=LD_LIBRARY_PATH
17941 shlibpath_overrides_runpath=yes
17942 ;;
17943
17944 nto-qnx*)
17945 version_type=linux
17946 need_lib_prefix=no
17947 need_version=no
17948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17949 soname_spec='${libname}${release}${shared_ext}$major'
17950 shlibpath_var=LD_LIBRARY_PATH
17951 shlibpath_overrides_runpath=yes
17952 ;;
17953
17954 openbsd*)
17955 version_type=sunos
17956 sys_lib_dlsearch_path_spec="/usr/lib"
17957 need_lib_prefix=no
17958 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17959 case $host_os in
17960 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17961 *) need_version=no ;;
17962 esac
17963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17964 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17965 shlibpath_var=LD_LIBRARY_PATH
17966 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17967 case $host_os in
17968 openbsd2.[89] | openbsd2.[89].*)
17969 shlibpath_overrides_runpath=no
17970 ;;
17971 *)
17972 shlibpath_overrides_runpath=yes
17973 ;;
17974 esac
17975 else
17976 shlibpath_overrides_runpath=yes
17977 fi
17978 ;;
17979
17980 os2*)
17981 libname_spec='$name'
17982 shrext_cmds=".dll"
17983 need_lib_prefix=no
17984 library_names_spec='$libname${shared_ext} $libname.a'
17985 dynamic_linker='OS/2 ld.exe'
17986 shlibpath_var=LIBPATH
17987 ;;
17988
17989 osf3* | osf4* | osf5*)
17990 version_type=osf
17991 need_lib_prefix=no
17992 need_version=no
17993 soname_spec='${libname}${release}${shared_ext}$major'
17994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17995 shlibpath_var=LD_LIBRARY_PATH
17996 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17997 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17998 ;;
17999
18000 solaris*)
18001 version_type=linux
18002 need_lib_prefix=no
18003 need_version=no
18004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005 soname_spec='${libname}${release}${shared_ext}$major'
18006 shlibpath_var=LD_LIBRARY_PATH
18007 shlibpath_overrides_runpath=yes
18008 hardcode_into_libs=yes
18009 # ldd complains unless libraries are executable
18010 postinstall_cmds='chmod +x $lib'
18011 ;;
18012
18013 sunos4*)
18014 version_type=sunos
18015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18016 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18017 shlibpath_var=LD_LIBRARY_PATH
18018 shlibpath_overrides_runpath=yes
18019 if test "$with_gnu_ld" = yes; then
18020 need_lib_prefix=no
18021 fi
18022 need_version=yes
18023 ;;
18024
18025 sysv4 | sysv4.3*)
18026 version_type=linux
18027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18028 soname_spec='${libname}${release}${shared_ext}$major'
18029 shlibpath_var=LD_LIBRARY_PATH
18030 case $host_vendor in
18031 sni)
18032 shlibpath_overrides_runpath=no
18033 need_lib_prefix=no
18034 export_dynamic_flag_spec='${wl}-Blargedynsym'
18035 runpath_var=LD_RUN_PATH
18036 ;;
18037 siemens)
18038 need_lib_prefix=no
18039 ;;
18040 motorola)
18041 need_lib_prefix=no
18042 need_version=no
18043 shlibpath_overrides_runpath=no
18044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18045 ;;
18046 esac
18047 ;;
18048
18049 sysv4*MP*)
18050 if test -d /usr/nec ;then
18051 version_type=linux
18052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18053 soname_spec='$libname${shared_ext}.$major'
18054 shlibpath_var=LD_LIBRARY_PATH
18055 fi
18056 ;;
18057
18058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18059 version_type=freebsd-elf
18060 need_lib_prefix=no
18061 need_version=no
18062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18063 soname_spec='${libname}${release}${shared_ext}$major'
18064 shlibpath_var=LD_LIBRARY_PATH
18065 hardcode_into_libs=yes
18066 if test "$with_gnu_ld" = yes; then
18067 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18068 shlibpath_overrides_runpath=no
18069 else
18070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18071 shlibpath_overrides_runpath=yes
18072 case $host_os in
18073 sco3.2v5*)
18074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18075 ;;
18076 esac
18077 fi
18078 sys_lib_dlsearch_path_spec='/usr/lib'
18079 ;;
18080
18081 uts4*)
18082 version_type=linux
18083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18084 soname_spec='${libname}${release}${shared_ext}$major'
18085 shlibpath_var=LD_LIBRARY_PATH
18086 ;;
18087
18088 *)
18089 dynamic_linker=no
18090 ;;
18091 esac
18092 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18093 echo "${ECHO_T}$dynamic_linker" >&6; }
18094 test "$dynamic_linker" = no && can_build_shared=no
18095
18096 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18097 if test "$GCC" = yes; then
18098 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18099 fi
18100
18101 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18102 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18103 hardcode_action_GCJ=
18104 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18105 test -n "$runpath_var_GCJ" || \
18106 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18107
18108 # We can hardcode non-existant directories.
18109 if test "$hardcode_direct_GCJ" != no &&
18110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18111 # have to relink, otherwise we might link with an installed library
18112 # when we should be linking with a yet-to-be-installed one
18113 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18114 test "$hardcode_minus_L_GCJ" != no; then
18115 # Linking always hardcodes the temporary library directory.
18116 hardcode_action_GCJ=relink
18117 else
18118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18119 hardcode_action_GCJ=immediate
18120 fi
18121 else
18122 # We cannot hardcode anything, or else we can only hardcode existing
18123 # directories.
18124 hardcode_action_GCJ=unsupported
18125 fi
18126 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18127 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18128
18129 if test "$hardcode_action_GCJ" = relink; then
18130 # Fast installation is not supported
18131 enable_fast_install=no
18132 elif test "$shlibpath_overrides_runpath" = yes ||
18133 test "$enable_shared" = no; then
18134 # Fast installation is not necessary
18135 enable_fast_install=needless
18136 fi
18137
18138
18139 # The else clause should only fire when bootstrapping the
18140 # libtool distribution, otherwise you forgot to ship ltmain.sh
18141 # with your package, and you will get complaints that there are
18142 # no rules to generate ltmain.sh.
18143 if test -f "$ltmain"; then
18144 # See if we are running on zsh, and set the options which allow our commands through
18145 # without removal of \ escapes.
18146 if test -n "${ZSH_VERSION+set}" ; then
18147 setopt NO_GLOB_SUBST
18148 fi
18149 # Now quote all the things that may contain metacharacters while being
18150 # careful not to overquote the AC_SUBSTed values. We take copies of the
18151 # variables and quote the copies for generation of the libtool script.
18152 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18153 SED SHELL STRIP \
18154 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18155 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18156 deplibs_check_method reload_flag reload_cmds need_locks \
18157 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18158 lt_cv_sys_global_symbol_to_c_name_address \
18159 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18160 old_postinstall_cmds old_postuninstall_cmds \
18161 compiler_GCJ \
18162 CC_GCJ \
18163 LD_GCJ \
18164 lt_prog_compiler_wl_GCJ \
18165 lt_prog_compiler_pic_GCJ \
18166 lt_prog_compiler_static_GCJ \
18167 lt_prog_compiler_no_builtin_flag_GCJ \
18168 export_dynamic_flag_spec_GCJ \
18169 thread_safe_flag_spec_GCJ \
18170 whole_archive_flag_spec_GCJ \
18171 enable_shared_with_static_runtimes_GCJ \
18172 old_archive_cmds_GCJ \
18173 old_archive_from_new_cmds_GCJ \
18174 predep_objects_GCJ \
18175 postdep_objects_GCJ \
18176 predeps_GCJ \
18177 postdeps_GCJ \
18178 compiler_lib_search_path_GCJ \
18179 archive_cmds_GCJ \
18180 archive_expsym_cmds_GCJ \
18181 postinstall_cmds_GCJ \
18182 postuninstall_cmds_GCJ \
18183 old_archive_from_expsyms_cmds_GCJ \
18184 allow_undefined_flag_GCJ \
18185 no_undefined_flag_GCJ \
18186 export_symbols_cmds_GCJ \
18187 hardcode_libdir_flag_spec_GCJ \
18188 hardcode_libdir_flag_spec_ld_GCJ \
18189 hardcode_libdir_separator_GCJ \
18190 hardcode_automatic_GCJ \
18191 module_cmds_GCJ \
18192 module_expsym_cmds_GCJ \
18193 lt_cv_prog_compiler_c_o_GCJ \
18194 exclude_expsyms_GCJ \
18195 include_expsyms_GCJ; do
18196
18197 case $var in
18198 old_archive_cmds_GCJ | \
18199 old_archive_from_new_cmds_GCJ | \
18200 archive_cmds_GCJ | \
18201 archive_expsym_cmds_GCJ | \
18202 module_cmds_GCJ | \
18203 module_expsym_cmds_GCJ | \
18204 old_archive_from_expsyms_cmds_GCJ | \
18205 export_symbols_cmds_GCJ | \
18206 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18207 postinstall_cmds | postuninstall_cmds | \
18208 old_postinstall_cmds | old_postuninstall_cmds | \
18209 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18210 # Double-quote double-evaled strings.
18211 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18212 ;;
18213 *)
18214 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18215 ;;
18216 esac
18217 done
18218
18219 case $lt_echo in
18220 *'\$0 --fallback-echo"')
18221 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18222 ;;
18223 esac
18224
18225 cfgfile="$ofile"
18226
18227 cat <<__EOF__ >> "$cfgfile"
18228 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18229
18230 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18231
18232 # Shell to use when invoking shell scripts.
18233 SHELL=$lt_SHELL
18234
18235 # Whether or not to build shared libraries.
18236 build_libtool_libs=$enable_shared
18237
18238 # Whether or not to build static libraries.
18239 build_old_libs=$enable_static
18240
18241 # Whether or not to add -lc for building shared libraries.
18242 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18243
18244 # Whether or not to disallow shared libs when runtime libs are static
18245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18246
18247 # Whether or not to optimize for fast installation.
18248 fast_install=$enable_fast_install
18249
18250 # The host system.
18251 host_alias=$host_alias
18252 host=$host
18253 host_os=$host_os
18254
18255 # The build system.
18256 build_alias=$build_alias
18257 build=$build
18258 build_os=$build_os
18259
18260 # An echo program that does not interpret backslashes.
18261 echo=$lt_echo
18262
18263 # The archiver.
18264 AR=$lt_AR
18265 AR_FLAGS=$lt_AR_FLAGS
18266
18267 # A C compiler.
18268 LTCC=$lt_LTCC
18269
18270 # LTCC compiler flags.
18271 LTCFLAGS=$lt_LTCFLAGS
18272
18273 # A language-specific compiler.
18274 CC=$lt_compiler_GCJ
18275
18276 # Is the compiler the GNU C compiler?
18277 with_gcc=$GCC_GCJ
18278
18279 # An ERE matcher.
18280 EGREP=$lt_EGREP
18281
18282 # The linker used to build libraries.
18283 LD=$lt_LD_GCJ
18284
18285 # Whether we need hard or soft links.
18286 LN_S=$lt_LN_S
18287
18288 # A BSD-compatible nm program.
18289 NM=$lt_NM
18290
18291 # A symbol stripping program
18292 STRIP=$lt_STRIP
18293
18294 # Used to examine libraries when file_magic_cmd begins "file"
18295 MAGIC_CMD=$MAGIC_CMD
18296
18297 # Used on cygwin: DLL creation program.
18298 DLLTOOL="$DLLTOOL"
18299
18300 # Used on cygwin: object dumper.
18301 OBJDUMP="$OBJDUMP"
18302
18303 # Used on cygwin: assembler.
18304 AS="$AS"
18305
18306 # The name of the directory that contains temporary libtool files.
18307 objdir=$objdir
18308
18309 # How to create reloadable object files.
18310 reload_flag=$lt_reload_flag
18311 reload_cmds=$lt_reload_cmds
18312
18313 # How to pass a linker flag through the compiler.
18314 wl=$lt_lt_prog_compiler_wl_GCJ
18315
18316 # Object file suffix (normally "o").
18317 objext="$ac_objext"
18318
18319 # Old archive suffix (normally "a").
18320 libext="$libext"
18321
18322 # Shared library suffix (normally ".so").
18323 shrext_cmds='$shrext_cmds'
18324
18325 # Executable file suffix (normally "").
18326 exeext="$exeext"
18327
18328 # Additional compiler flags for building library objects.
18329 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18330 pic_mode=$pic_mode
18331
18332 # What is the maximum length of a command?
18333 max_cmd_len=$lt_cv_sys_max_cmd_len
18334
18335 # Does compiler simultaneously support -c and -o options?
18336 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18337
18338 # Must we lock files when doing compilation?
18339 need_locks=$lt_need_locks
18340
18341 # Do we need the lib prefix for modules?
18342 need_lib_prefix=$need_lib_prefix
18343
18344 # Do we need a version for libraries?
18345 need_version=$need_version
18346
18347 # Whether dlopen is supported.
18348 dlopen_support=$enable_dlopen
18349
18350 # Whether dlopen of programs is supported.
18351 dlopen_self=$enable_dlopen_self
18352
18353 # Whether dlopen of statically linked programs is supported.
18354 dlopen_self_static=$enable_dlopen_self_static
18355
18356 # Compiler flag to prevent dynamic linking.
18357 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18358
18359 # Compiler flag to turn off builtin functions.
18360 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18361
18362 # Compiler flag to allow reflexive dlopens.
18363 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18364
18365 # Compiler flag to generate shared objects directly from archives.
18366 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18367
18368 # Compiler flag to generate thread-safe objects.
18369 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18370
18371 # Library versioning type.
18372 version_type=$version_type
18373
18374 # Format of library name prefix.
18375 libname_spec=$lt_libname_spec
18376
18377 # List of archive names. First name is the real one, the rest are links.
18378 # The last name is the one that the linker finds with -lNAME.
18379 library_names_spec=$lt_library_names_spec
18380
18381 # The coded name of the library, if different from the real name.
18382 soname_spec=$lt_soname_spec
18383
18384 # Commands used to build and install an old-style archive.
18385 RANLIB=$lt_RANLIB
18386 old_archive_cmds=$lt_old_archive_cmds_GCJ
18387 old_postinstall_cmds=$lt_old_postinstall_cmds
18388 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18389
18390 # Create an old-style archive from a shared archive.
18391 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18392
18393 # Create a temporary old-style archive to link instead of a shared archive.
18394 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18395
18396 # Commands used to build and install a shared archive.
18397 archive_cmds=$lt_archive_cmds_GCJ
18398 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18399 postinstall_cmds=$lt_postinstall_cmds
18400 postuninstall_cmds=$lt_postuninstall_cmds
18401
18402 # Commands used to build a loadable module (assumed same as above if empty)
18403 module_cmds=$lt_module_cmds_GCJ
18404 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18405
18406 # Commands to strip libraries.
18407 old_striplib=$lt_old_striplib
18408 striplib=$lt_striplib
18409
18410 # Dependencies to place before the objects being linked to create a
18411 # shared library.
18412 predep_objects=$lt_predep_objects_GCJ
18413
18414 # Dependencies to place after the objects being linked to create a
18415 # shared library.
18416 postdep_objects=$lt_postdep_objects_GCJ
18417
18418 # Dependencies to place before the objects being linked to create a
18419 # shared library.
18420 predeps=$lt_predeps_GCJ
18421
18422 # Dependencies to place after the objects being linked to create a
18423 # shared library.
18424 postdeps=$lt_postdeps_GCJ
18425
18426 # The library search path used internally by the compiler when linking
18427 # a shared library.
18428 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18429
18430 # Method to check whether dependent libraries are shared objects.
18431 deplibs_check_method=$lt_deplibs_check_method
18432
18433 # Command to use when deplibs_check_method == file_magic.
18434 file_magic_cmd=$lt_file_magic_cmd
18435
18436 # Flag that allows shared libraries with undefined symbols to be built.
18437 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18438
18439 # Flag that forces no undefined symbols.
18440 no_undefined_flag=$lt_no_undefined_flag_GCJ
18441
18442 # Commands used to finish a libtool library installation in a directory.
18443 finish_cmds=$lt_finish_cmds
18444
18445 # Same as above, but a single script fragment to be evaled but not shown.
18446 finish_eval=$lt_finish_eval
18447
18448 # Take the output of nm and produce a listing of raw symbols and C names.
18449 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18450
18451 # Transform the output of nm in a proper C declaration
18452 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18453
18454 # Transform the output of nm in a C name address pair
18455 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18456
18457 # This is the shared library runtime path variable.
18458 runpath_var=$runpath_var
18459
18460 # This is the shared library path variable.
18461 shlibpath_var=$shlibpath_var
18462
18463 # Is shlibpath searched before the hard-coded library search path?
18464 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18465
18466 # How to hardcode a shared library path into an executable.
18467 hardcode_action=$hardcode_action_GCJ
18468
18469 # Whether we should hardcode library paths into libraries.
18470 hardcode_into_libs=$hardcode_into_libs
18471
18472 # Flag to hardcode \$libdir into a binary during linking.
18473 # This must work even if \$libdir does not exist.
18474 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18475
18476 # If ld is used when linking, flag to hardcode \$libdir into
18477 # a binary during linking. This must work even if \$libdir does
18478 # not exist.
18479 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18480
18481 # Whether we need a single -rpath flag with a separated argument.
18482 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18483
18484 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18485 # resulting binary.
18486 hardcode_direct=$hardcode_direct_GCJ
18487
18488 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18489 # resulting binary.
18490 hardcode_minus_L=$hardcode_minus_L_GCJ
18491
18492 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18493 # the resulting binary.
18494 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18495
18496 # Set to yes if building a shared library automatically hardcodes DIR into the library
18497 # and all subsequent libraries and executables linked against it.
18498 hardcode_automatic=$hardcode_automatic_GCJ
18499
18500 # Variables whose values should be saved in libtool wrapper scripts and
18501 # restored at relink time.
18502 variables_saved_for_relink="$variables_saved_for_relink"
18503
18504 # Whether libtool must link a program against all its dependency libraries.
18505 link_all_deplibs=$link_all_deplibs_GCJ
18506
18507 # Compile-time system search path for libraries
18508 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18509
18510 # Run-time system search path for libraries
18511 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18512
18513 # Fix the shell variable \$srcfile for the compiler.
18514 fix_srcfile_path="$fix_srcfile_path_GCJ"
18515
18516 # Set to yes if exported symbols are required.
18517 always_export_symbols=$always_export_symbols_GCJ
18518
18519 # The commands to list exported symbols.
18520 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18521
18522 # The commands to extract the exported symbol list from a shared archive.
18523 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18524
18525 # Symbols that should not be listed in the preloaded symbols.
18526 exclude_expsyms=$lt_exclude_expsyms_GCJ
18527
18528 # Symbols that must always be exported.
18529 include_expsyms=$lt_include_expsyms_GCJ
18530
18531 # ### END LIBTOOL TAG CONFIG: $tagname
18532
18533 __EOF__
18534
18535
18536 else
18537 # If there is no Makefile yet, we rely on a make rule to execute
18538 # `config.status --recheck' to rerun these tests and create the
18539 # libtool script then.
18540 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18541 if test -f "$ltmain_in"; then
18542 test -f Makefile && make "$ltmain"
18543 fi
18544 fi
18545
18546
18547 ac_ext=c
18548 ac_cpp='$CPP $CPPFLAGS'
18549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18552
18553 CC="$lt_save_CC"
18554
18555 else
18556 tagname=""
18557 fi
18558 ;;
18559
18560 RC)
18561
18562
18563 # Source file extension for RC test sources.
18564 ac_ext=rc
18565
18566 # Object file extension for compiled RC test sources.
18567 objext=o
18568 objext_RC=$objext
18569
18570 # Code to be used in simple compile tests
18571 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18572
18573 # Code to be used in simple link tests
18574 lt_simple_link_test_code="$lt_simple_compile_test_code"
18575
18576 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18577
18578 # If no C compiler was specified, use CC.
18579 LTCC=${LTCC-"$CC"}
18580
18581 # If no C compiler flags were specified, use CFLAGS.
18582 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18583
18584 # Allow CC to be a program name with arguments.
18585 compiler=$CC
18586
18587
18588 # save warnings/boilerplate of simple test code
18589 ac_outfile=conftest.$ac_objext
18590 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18591 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18592 _lt_compiler_boilerplate=`cat conftest.err`
18593 $rm conftest*
18594
18595 ac_outfile=conftest.$ac_objext
18596 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18597 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18598 _lt_linker_boilerplate=`cat conftest.err`
18599 $rm conftest*
18600
18601
18602 # Allow CC to be a program name with arguments.
18603 lt_save_CC="$CC"
18604 CC=${RC-"windres"}
18605 compiler=$CC
18606 compiler_RC=$CC
18607 for cc_temp in $compiler""; do
18608 case $cc_temp in
18609 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18610 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18611 \-*) ;;
18612 *) break;;
18613 esac
18614 done
18615 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18616
18617 lt_cv_prog_compiler_c_o_RC=yes
18618
18619 # The else clause should only fire when bootstrapping the
18620 # libtool distribution, otherwise you forgot to ship ltmain.sh
18621 # with your package, and you will get complaints that there are
18622 # no rules to generate ltmain.sh.
18623 if test -f "$ltmain"; then
18624 # See if we are running on zsh, and set the options which allow our commands through
18625 # without removal of \ escapes.
18626 if test -n "${ZSH_VERSION+set}" ; then
18627 setopt NO_GLOB_SUBST
18628 fi
18629 # Now quote all the things that may contain metacharacters while being
18630 # careful not to overquote the AC_SUBSTed values. We take copies of the
18631 # variables and quote the copies for generation of the libtool script.
18632 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18633 SED SHELL STRIP \
18634 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18635 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18636 deplibs_check_method reload_flag reload_cmds need_locks \
18637 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18638 lt_cv_sys_global_symbol_to_c_name_address \
18639 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18640 old_postinstall_cmds old_postuninstall_cmds \
18641 compiler_RC \
18642 CC_RC \
18643 LD_RC \
18644 lt_prog_compiler_wl_RC \
18645 lt_prog_compiler_pic_RC \
18646 lt_prog_compiler_static_RC \
18647 lt_prog_compiler_no_builtin_flag_RC \
18648 export_dynamic_flag_spec_RC \
18649 thread_safe_flag_spec_RC \
18650 whole_archive_flag_spec_RC \
18651 enable_shared_with_static_runtimes_RC \
18652 old_archive_cmds_RC \
18653 old_archive_from_new_cmds_RC \
18654 predep_objects_RC \
18655 postdep_objects_RC \
18656 predeps_RC \
18657 postdeps_RC \
18658 compiler_lib_search_path_RC \
18659 archive_cmds_RC \
18660 archive_expsym_cmds_RC \
18661 postinstall_cmds_RC \
18662 postuninstall_cmds_RC \
18663 old_archive_from_expsyms_cmds_RC \
18664 allow_undefined_flag_RC \
18665 no_undefined_flag_RC \
18666 export_symbols_cmds_RC \
18667 hardcode_libdir_flag_spec_RC \
18668 hardcode_libdir_flag_spec_ld_RC \
18669 hardcode_libdir_separator_RC \
18670 hardcode_automatic_RC \
18671 module_cmds_RC \
18672 module_expsym_cmds_RC \
18673 lt_cv_prog_compiler_c_o_RC \
18674 exclude_expsyms_RC \
18675 include_expsyms_RC; do
18676
18677 case $var in
18678 old_archive_cmds_RC | \
18679 old_archive_from_new_cmds_RC | \
18680 archive_cmds_RC | \
18681 archive_expsym_cmds_RC | \
18682 module_cmds_RC | \
18683 module_expsym_cmds_RC | \
18684 old_archive_from_expsyms_cmds_RC | \
18685 export_symbols_cmds_RC | \
18686 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18687 postinstall_cmds | postuninstall_cmds | \
18688 old_postinstall_cmds | old_postuninstall_cmds | \
18689 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18690 # Double-quote double-evaled strings.
18691 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18692 ;;
18693 *)
18694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18695 ;;
18696 esac
18697 done
18698
18699 case $lt_echo in
18700 *'\$0 --fallback-echo"')
18701 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18702 ;;
18703 esac
18704
18705 cfgfile="$ofile"
18706
18707 cat <<__EOF__ >> "$cfgfile"
18708 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18709
18710 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18711
18712 # Shell to use when invoking shell scripts.
18713 SHELL=$lt_SHELL
18714
18715 # Whether or not to build shared libraries.
18716 build_libtool_libs=$enable_shared
18717
18718 # Whether or not to build static libraries.
18719 build_old_libs=$enable_static
18720
18721 # Whether or not to add -lc for building shared libraries.
18722 build_libtool_need_lc=$archive_cmds_need_lc_RC
18723
18724 # Whether or not to disallow shared libs when runtime libs are static
18725 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18726
18727 # Whether or not to optimize for fast installation.
18728 fast_install=$enable_fast_install
18729
18730 # The host system.
18731 host_alias=$host_alias
18732 host=$host
18733 host_os=$host_os
18734
18735 # The build system.
18736 build_alias=$build_alias
18737 build=$build
18738 build_os=$build_os
18739
18740 # An echo program that does not interpret backslashes.
18741 echo=$lt_echo
18742
18743 # The archiver.
18744 AR=$lt_AR
18745 AR_FLAGS=$lt_AR_FLAGS
18746
18747 # A C compiler.
18748 LTCC=$lt_LTCC
18749
18750 # LTCC compiler flags.
18751 LTCFLAGS=$lt_LTCFLAGS
18752
18753 # A language-specific compiler.
18754 CC=$lt_compiler_RC
18755
18756 # Is the compiler the GNU C compiler?
18757 with_gcc=$GCC_RC
18758
18759 # An ERE matcher.
18760 EGREP=$lt_EGREP
18761
18762 # The linker used to build libraries.
18763 LD=$lt_LD_RC
18764
18765 # Whether we need hard or soft links.
18766 LN_S=$lt_LN_S
18767
18768 # A BSD-compatible nm program.
18769 NM=$lt_NM
18770
18771 # A symbol stripping program
18772 STRIP=$lt_STRIP
18773
18774 # Used to examine libraries when file_magic_cmd begins "file"
18775 MAGIC_CMD=$MAGIC_CMD
18776
18777 # Used on cygwin: DLL creation program.
18778 DLLTOOL="$DLLTOOL"
18779
18780 # Used on cygwin: object dumper.
18781 OBJDUMP="$OBJDUMP"
18782
18783 # Used on cygwin: assembler.
18784 AS="$AS"
18785
18786 # The name of the directory that contains temporary libtool files.
18787 objdir=$objdir
18788
18789 # How to create reloadable object files.
18790 reload_flag=$lt_reload_flag
18791 reload_cmds=$lt_reload_cmds
18792
18793 # How to pass a linker flag through the compiler.
18794 wl=$lt_lt_prog_compiler_wl_RC
18795
18796 # Object file suffix (normally "o").
18797 objext="$ac_objext"
18798
18799 # Old archive suffix (normally "a").
18800 libext="$libext"
18801
18802 # Shared library suffix (normally ".so").
18803 shrext_cmds='$shrext_cmds'
18804
18805 # Executable file suffix (normally "").
18806 exeext="$exeext"
18807
18808 # Additional compiler flags for building library objects.
18809 pic_flag=$lt_lt_prog_compiler_pic_RC
18810 pic_mode=$pic_mode
18811
18812 # What is the maximum length of a command?
18813 max_cmd_len=$lt_cv_sys_max_cmd_len
18814
18815 # Does compiler simultaneously support -c and -o options?
18816 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18817
18818 # Must we lock files when doing compilation?
18819 need_locks=$lt_need_locks
18820
18821 # Do we need the lib prefix for modules?
18822 need_lib_prefix=$need_lib_prefix
18823
18824 # Do we need a version for libraries?
18825 need_version=$need_version
18826
18827 # Whether dlopen is supported.
18828 dlopen_support=$enable_dlopen
18829
18830 # Whether dlopen of programs is supported.
18831 dlopen_self=$enable_dlopen_self
18832
18833 # Whether dlopen of statically linked programs is supported.
18834 dlopen_self_static=$enable_dlopen_self_static
18835
18836 # Compiler flag to prevent dynamic linking.
18837 link_static_flag=$lt_lt_prog_compiler_static_RC
18838
18839 # Compiler flag to turn off builtin functions.
18840 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18841
18842 # Compiler flag to allow reflexive dlopens.
18843 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18844
18845 # Compiler flag to generate shared objects directly from archives.
18846 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18847
18848 # Compiler flag to generate thread-safe objects.
18849 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18850
18851 # Library versioning type.
18852 version_type=$version_type
18853
18854 # Format of library name prefix.
18855 libname_spec=$lt_libname_spec
18856
18857 # List of archive names. First name is the real one, the rest are links.
18858 # The last name is the one that the linker finds with -lNAME.
18859 library_names_spec=$lt_library_names_spec
18860
18861 # The coded name of the library, if different from the real name.
18862 soname_spec=$lt_soname_spec
18863
18864 # Commands used to build and install an old-style archive.
18865 RANLIB=$lt_RANLIB
18866 old_archive_cmds=$lt_old_archive_cmds_RC
18867 old_postinstall_cmds=$lt_old_postinstall_cmds
18868 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18869
18870 # Create an old-style archive from a shared archive.
18871 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18872
18873 # Create a temporary old-style archive to link instead of a shared archive.
18874 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18875
18876 # Commands used to build and install a shared archive.
18877 archive_cmds=$lt_archive_cmds_RC
18878 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18879 postinstall_cmds=$lt_postinstall_cmds
18880 postuninstall_cmds=$lt_postuninstall_cmds
18881
18882 # Commands used to build a loadable module (assumed same as above if empty)
18883 module_cmds=$lt_module_cmds_RC
18884 module_expsym_cmds=$lt_module_expsym_cmds_RC
18885
18886 # Commands to strip libraries.
18887 old_striplib=$lt_old_striplib
18888 striplib=$lt_striplib
18889
18890 # Dependencies to place before the objects being linked to create a
18891 # shared library.
18892 predep_objects=$lt_predep_objects_RC
18893
18894 # Dependencies to place after the objects being linked to create a
18895 # shared library.
18896 postdep_objects=$lt_postdep_objects_RC
18897
18898 # Dependencies to place before the objects being linked to create a
18899 # shared library.
18900 predeps=$lt_predeps_RC
18901
18902 # Dependencies to place after the objects being linked to create a
18903 # shared library.
18904 postdeps=$lt_postdeps_RC
18905
18906 # The library search path used internally by the compiler when linking
18907 # a shared library.
18908 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18909
18910 # Method to check whether dependent libraries are shared objects.
18911 deplibs_check_method=$lt_deplibs_check_method
18912
18913 # Command to use when deplibs_check_method == file_magic.
18914 file_magic_cmd=$lt_file_magic_cmd
18915
18916 # Flag that allows shared libraries with undefined symbols to be built.
18917 allow_undefined_flag=$lt_allow_undefined_flag_RC
18918
18919 # Flag that forces no undefined symbols.
18920 no_undefined_flag=$lt_no_undefined_flag_RC
18921
18922 # Commands used to finish a libtool library installation in a directory.
18923 finish_cmds=$lt_finish_cmds
18924
18925 # Same as above, but a single script fragment to be evaled but not shown.
18926 finish_eval=$lt_finish_eval
18927
18928 # Take the output of nm and produce a listing of raw symbols and C names.
18929 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18930
18931 # Transform the output of nm in a proper C declaration
18932 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18933
18934 # Transform the output of nm in a C name address pair
18935 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18936
18937 # This is the shared library runtime path variable.
18938 runpath_var=$runpath_var
18939
18940 # This is the shared library path variable.
18941 shlibpath_var=$shlibpath_var
18942
18943 # Is shlibpath searched before the hard-coded library search path?
18944 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18945
18946 # How to hardcode a shared library path into an executable.
18947 hardcode_action=$hardcode_action_RC
18948
18949 # Whether we should hardcode library paths into libraries.
18950 hardcode_into_libs=$hardcode_into_libs
18951
18952 # Flag to hardcode \$libdir into a binary during linking.
18953 # This must work even if \$libdir does not exist.
18954 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18955
18956 # If ld is used when linking, flag to hardcode \$libdir into
18957 # a binary during linking. This must work even if \$libdir does
18958 # not exist.
18959 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18960
18961 # Whether we need a single -rpath flag with a separated argument.
18962 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18963
18964 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18965 # resulting binary.
18966 hardcode_direct=$hardcode_direct_RC
18967
18968 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18969 # resulting binary.
18970 hardcode_minus_L=$hardcode_minus_L_RC
18971
18972 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18973 # the resulting binary.
18974 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18975
18976 # Set to yes if building a shared library automatically hardcodes DIR into the library
18977 # and all subsequent libraries and executables linked against it.
18978 hardcode_automatic=$hardcode_automatic_RC
18979
18980 # Variables whose values should be saved in libtool wrapper scripts and
18981 # restored at relink time.
18982 variables_saved_for_relink="$variables_saved_for_relink"
18983
18984 # Whether libtool must link a program against all its dependency libraries.
18985 link_all_deplibs=$link_all_deplibs_RC
18986
18987 # Compile-time system search path for libraries
18988 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18989
18990 # Run-time system search path for libraries
18991 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18992
18993 # Fix the shell variable \$srcfile for the compiler.
18994 fix_srcfile_path="$fix_srcfile_path_RC"
18995
18996 # Set to yes if exported symbols are required.
18997 always_export_symbols=$always_export_symbols_RC
18998
18999 # The commands to list exported symbols.
19000 export_symbols_cmds=$lt_export_symbols_cmds_RC
19001
19002 # The commands to extract the exported symbol list from a shared archive.
19003 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19004
19005 # Symbols that should not be listed in the preloaded symbols.
19006 exclude_expsyms=$lt_exclude_expsyms_RC
19007
19008 # Symbols that must always be exported.
19009 include_expsyms=$lt_include_expsyms_RC
19010
19011 # ### END LIBTOOL TAG CONFIG: $tagname
19012
19013 __EOF__
19014
19015
19016 else
19017 # If there is no Makefile yet, we rely on a make rule to execute
19018 # `config.status --recheck' to rerun these tests and create the
19019 # libtool script then.
19020 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19021 if test -f "$ltmain_in"; then
19022 test -f Makefile && make "$ltmain"
19023 fi
19024 fi
19025
19026
19027 ac_ext=c
19028 ac_cpp='$CPP $CPPFLAGS'
19029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19032
19033 CC="$lt_save_CC"
19034
19035 ;;
19036
19037 *)
19038 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19039 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19040 { (exit 1); exit 1; }; }
19041 ;;
19042 esac
19043
19044 # Append the new tag name to the list of available tags.
19045 if test -n "$tagname" ; then
19046 available_tags="$available_tags $tagname"
19047 fi
19048 fi
19049 done
19050 IFS="$lt_save_ifs"
19051
19052 # Now substitute the updated list of available tags.
19053 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19054 mv "${ofile}T" "$ofile"
19055 chmod +x "$ofile"
19056 else
19057 rm -f "${ofile}T"
19058 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19059 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19060 { (exit 1); exit 1; }; }
19061 fi
19062 fi
19063
19064
19065
19066 # This can be used to rebuild libtool when needed
19067 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19068
19069 # Always use our own libtool.
19070 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19071
19072 # Prevent multiple expansion
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095 ac_ext=c
19096 ac_cpp='$CPP $CPPFLAGS'
19097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19100 if test -n "$ac_tool_prefix"; then
19101 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19102 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19105 if test "${ac_cv_prog_CC+set}" = set; then
19106 echo $ECHO_N "(cached) $ECHO_C" >&6
19107 else
19108 if test -n "$CC"; then
19109 ac_cv_prog_CC="$CC" # Let the user override the test.
19110 else
19111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19112 for as_dir in $PATH
19113 do
19114 IFS=$as_save_IFS
19115 test -z "$as_dir" && as_dir=.
19116 for ac_exec_ext in '' $ac_executable_extensions; do
19117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19118 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19120 break 2
19121 fi
19122 done
19123 done
19124 IFS=$as_save_IFS
19125
19126 fi
19127 fi
19128 CC=$ac_cv_prog_CC
19129 if test -n "$CC"; then
19130 { echo "$as_me:$LINENO: result: $CC" >&5
19131 echo "${ECHO_T}$CC" >&6; }
19132 else
19133 { echo "$as_me:$LINENO: result: no" >&5
19134 echo "${ECHO_T}no" >&6; }
19135 fi
19136
19137
19138 fi
19139 if test -z "$ac_cv_prog_CC"; then
19140 ac_ct_CC=$CC
19141 # Extract the first word of "gcc", so it can be a program name with args.
19142 set dummy gcc; ac_word=$2
19143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19146 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148 if test -n "$ac_ct_CC"; then
19149 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19150 else
19151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19152 for as_dir in $PATH
19153 do
19154 IFS=$as_save_IFS
19155 test -z "$as_dir" && as_dir=.
19156 for ac_exec_ext in '' $ac_executable_extensions; do
19157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19158 ac_cv_prog_ac_ct_CC="gcc"
19159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19160 break 2
19161 fi
19162 done
19163 done
19164 IFS=$as_save_IFS
19165
19166 fi
19167 fi
19168 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19169 if test -n "$ac_ct_CC"; then
19170 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19171 echo "${ECHO_T}$ac_ct_CC" >&6; }
19172 else
19173 { echo "$as_me:$LINENO: result: no" >&5
19174 echo "${ECHO_T}no" >&6; }
19175 fi
19176
19177 if test "x$ac_ct_CC" = x; then
19178 CC=""
19179 else
19180 case $cross_compiling:$ac_tool_warned in
19181 yes:)
19182 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19183 whose name does not start with the host triplet. If you think this
19184 configuration is useful to you, please write to autoconf@gnu.org." >&5
19185 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19186 whose name does not start with the host triplet. If you think this
19187 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19188 ac_tool_warned=yes ;;
19189 esac
19190 CC=$ac_ct_CC
19191 fi
19192 else
19193 CC="$ac_cv_prog_CC"
19194 fi
19195
19196 if test -z "$CC"; then
19197 if test -n "$ac_tool_prefix"; then
19198 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19199 set dummy ${ac_tool_prefix}cc; ac_word=$2
19200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19202 if test "${ac_cv_prog_CC+set}" = set; then
19203 echo $ECHO_N "(cached) $ECHO_C" >&6
19204 else
19205 if test -n "$CC"; then
19206 ac_cv_prog_CC="$CC" # Let the user override the test.
19207 else
19208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19209 for as_dir in $PATH
19210 do
19211 IFS=$as_save_IFS
19212 test -z "$as_dir" && as_dir=.
19213 for ac_exec_ext in '' $ac_executable_extensions; do
19214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19215 ac_cv_prog_CC="${ac_tool_prefix}cc"
19216 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19217 break 2
19218 fi
19219 done
19220 done
19221 IFS=$as_save_IFS
19222
19223 fi
19224 fi
19225 CC=$ac_cv_prog_CC
19226 if test -n "$CC"; then
19227 { echo "$as_me:$LINENO: result: $CC" >&5
19228 echo "${ECHO_T}$CC" >&6; }
19229 else
19230 { echo "$as_me:$LINENO: result: no" >&5
19231 echo "${ECHO_T}no" >&6; }
19232 fi
19233
19234
19235 fi
19236 fi
19237 if test -z "$CC"; then
19238 # Extract the first word of "cc", so it can be a program name with args.
19239 set dummy cc; ac_word=$2
19240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19242 if test "${ac_cv_prog_CC+set}" = set; then
19243 echo $ECHO_N "(cached) $ECHO_C" >&6
19244 else
19245 if test -n "$CC"; then
19246 ac_cv_prog_CC="$CC" # Let the user override the test.
19247 else
19248 ac_prog_rejected=no
19249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19250 for as_dir in $PATH
19251 do
19252 IFS=$as_save_IFS
19253 test -z "$as_dir" && as_dir=.
19254 for ac_exec_ext in '' $ac_executable_extensions; do
19255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19256 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19257 ac_prog_rejected=yes
19258 continue
19259 fi
19260 ac_cv_prog_CC="cc"
19261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19262 break 2
19263 fi
19264 done
19265 done
19266 IFS=$as_save_IFS
19267
19268 if test $ac_prog_rejected = yes; then
19269 # We found a bogon in the path, so make sure we never use it.
19270 set dummy $ac_cv_prog_CC
19271 shift
19272 if test $# != 0; then
19273 # We chose a different compiler from the bogus one.
19274 # However, it has the same basename, so the bogon will be chosen
19275 # first if we set CC to just the basename; use the full file name.
19276 shift
19277 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19278 fi
19279 fi
19280 fi
19281 fi
19282 CC=$ac_cv_prog_CC
19283 if test -n "$CC"; then
19284 { echo "$as_me:$LINENO: result: $CC" >&5
19285 echo "${ECHO_T}$CC" >&6; }
19286 else
19287 { echo "$as_me:$LINENO: result: no" >&5
19288 echo "${ECHO_T}no" >&6; }
19289 fi
19290
19291
19292 fi
19293 if test -z "$CC"; then
19294 if test -n "$ac_tool_prefix"; then
19295 for ac_prog in cl.exe
19296 do
19297 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19298 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19301 if test "${ac_cv_prog_CC+set}" = set; then
19302 echo $ECHO_N "(cached) $ECHO_C" >&6
19303 else
19304 if test -n "$CC"; then
19305 ac_cv_prog_CC="$CC" # Let the user override the test.
19306 else
19307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19308 for as_dir in $PATH
19309 do
19310 IFS=$as_save_IFS
19311 test -z "$as_dir" && as_dir=.
19312 for ac_exec_ext in '' $ac_executable_extensions; do
19313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19314 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19316 break 2
19317 fi
19318 done
19319 done
19320 IFS=$as_save_IFS
19321
19322 fi
19323 fi
19324 CC=$ac_cv_prog_CC
19325 if test -n "$CC"; then
19326 { echo "$as_me:$LINENO: result: $CC" >&5
19327 echo "${ECHO_T}$CC" >&6; }
19328 else
19329 { echo "$as_me:$LINENO: result: no" >&5
19330 echo "${ECHO_T}no" >&6; }
19331 fi
19332
19333
19334 test -n "$CC" && break
19335 done
19336 fi
19337 if test -z "$CC"; then
19338 ac_ct_CC=$CC
19339 for ac_prog in cl.exe
19340 do
19341 # Extract the first word of "$ac_prog", so it can be a program name with args.
19342 set dummy $ac_prog; ac_word=$2
19343 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19346 echo $ECHO_N "(cached) $ECHO_C" >&6
19347 else
19348 if test -n "$ac_ct_CC"; then
19349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19350 else
19351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19352 for as_dir in $PATH
19353 do
19354 IFS=$as_save_IFS
19355 test -z "$as_dir" && as_dir=.
19356 for ac_exec_ext in '' $ac_executable_extensions; do
19357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19358 ac_cv_prog_ac_ct_CC="$ac_prog"
19359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19360 break 2
19361 fi
19362 done
19363 done
19364 IFS=$as_save_IFS
19365
19366 fi
19367 fi
19368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19369 if test -n "$ac_ct_CC"; then
19370 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19371 echo "${ECHO_T}$ac_ct_CC" >&6; }
19372 else
19373 { echo "$as_me:$LINENO: result: no" >&5
19374 echo "${ECHO_T}no" >&6; }
19375 fi
19376
19377
19378 test -n "$ac_ct_CC" && break
19379 done
19380
19381 if test "x$ac_ct_CC" = x; then
19382 CC=""
19383 else
19384 case $cross_compiling:$ac_tool_warned in
19385 yes:)
19386 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19387 whose name does not start with the host triplet. If you think this
19388 configuration is useful to you, please write to autoconf@gnu.org." >&5
19389 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19390 whose name does not start with the host triplet. If you think this
19391 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19392 ac_tool_warned=yes ;;
19393 esac
19394 CC=$ac_ct_CC
19395 fi
19396 fi
19397
19398 fi
19399
19400
19401 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19402 See \`config.log' for more details." >&5
19403 echo "$as_me: error: no acceptable C compiler found in \$PATH
19404 See \`config.log' for more details." >&2;}
19405 { (exit 1); exit 1; }; }
19406
19407 # Provide some information about the compiler.
19408 echo "$as_me:$LINENO: checking for C compiler version" >&5
19409 ac_compiler=`set X $ac_compile; echo $2`
19410 { (ac_try="$ac_compiler --version >&5"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19414 esac
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_compiler --version >&5") 2>&5
19417 ac_status=$?
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }
19420 { (ac_try="$ac_compiler -v >&5"
19421 case "(($ac_try" in
19422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19423 *) ac_try_echo=$ac_try;;
19424 esac
19425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19426 (eval "$ac_compiler -v >&5") 2>&5
19427 ac_status=$?
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }
19430 { (ac_try="$ac_compiler -V >&5"
19431 case "(($ac_try" in
19432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_compiler -V >&5") 2>&5
19437 ac_status=$?
19438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439 (exit $ac_status); }
19440
19441 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19442 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
19443 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19444 echo $ECHO_N "(cached) $ECHO_C" >&6
19445 else
19446 cat >conftest.$ac_ext <<_ACEOF
19447 /* confdefs.h. */
19448 _ACEOF
19449 cat confdefs.h >>conftest.$ac_ext
19450 cat >>conftest.$ac_ext <<_ACEOF
19451 /* end confdefs.h. */
19452
19453 int
19454 main ()
19455 {
19456 #ifndef __GNUC__
19457 choke me
19458 #endif
19459
19460 ;
19461 return 0;
19462 }
19463 _ACEOF
19464 rm -f conftest.$ac_objext
19465 if { (ac_try="$ac_compile"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469 esac
19470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19471 (eval "$ac_compile") 2>conftest.er1
19472 ac_status=$?
19473 grep -v '^ *+' conftest.er1 >conftest.err
19474 rm -f conftest.er1
19475 cat conftest.err >&5
19476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19477 (exit $ac_status); } && {
19478 test -z "$ac_c_werror_flag" ||
19479 test ! -s conftest.err
19480 } && test -s conftest.$ac_objext; then
19481 ac_compiler_gnu=yes
19482 else
19483 echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486 ac_compiler_gnu=no
19487 fi
19488
19489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19491
19492 fi
19493 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19494 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
19495 GCC=`test $ac_compiler_gnu = yes && echo yes`
19496 ac_test_CFLAGS=${CFLAGS+set}
19497 ac_save_CFLAGS=$CFLAGS
19498 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19499 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19500 if test "${ac_cv_prog_cc_g+set}" = set; then
19501 echo $ECHO_N "(cached) $ECHO_C" >&6
19502 else
19503 ac_save_c_werror_flag=$ac_c_werror_flag
19504 ac_c_werror_flag=yes
19505 ac_cv_prog_cc_g=no
19506 CFLAGS="-g"
19507 cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h. */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h. */
19513
19514 int
19515 main ()
19516 {
19517
19518 ;
19519 return 0;
19520 }
19521 _ACEOF
19522 rm -f conftest.$ac_objext
19523 if { (ac_try="$ac_compile"
19524 case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19527 esac
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_compile") 2>conftest.er1
19530 ac_status=$?
19531 grep -v '^ *+' conftest.er1 >conftest.err
19532 rm -f conftest.er1
19533 cat conftest.err >&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); } && {
19536 test -z "$ac_c_werror_flag" ||
19537 test ! -s conftest.err
19538 } && test -s conftest.$ac_objext; then
19539 ac_cv_prog_cc_g=yes
19540 else
19541 echo "$as_me: failed program was:" >&5
19542 sed 's/^/| /' conftest.$ac_ext >&5
19543
19544 CFLAGS=""
19545 cat >conftest.$ac_ext <<_ACEOF
19546 /* confdefs.h. */
19547 _ACEOF
19548 cat confdefs.h >>conftest.$ac_ext
19549 cat >>conftest.$ac_ext <<_ACEOF
19550 /* end confdefs.h. */
19551
19552 int
19553 main ()
19554 {
19555
19556 ;
19557 return 0;
19558 }
19559 _ACEOF
19560 rm -f conftest.$ac_objext
19561 if { (ac_try="$ac_compile"
19562 case "(($ac_try" in
19563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19564 *) ac_try_echo=$ac_try;;
19565 esac
19566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19567 (eval "$ac_compile") 2>conftest.er1
19568 ac_status=$?
19569 grep -v '^ *+' conftest.er1 >conftest.err
19570 rm -f conftest.er1
19571 cat conftest.err >&5
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); } && {
19574 test -z "$ac_c_werror_flag" ||
19575 test ! -s conftest.err
19576 } && test -s conftest.$ac_objext; then
19577 :
19578 else
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 ac_c_werror_flag=$ac_save_c_werror_flag
19583 CFLAGS="-g"
19584 cat >conftest.$ac_ext <<_ACEOF
19585 /* confdefs.h. */
19586 _ACEOF
19587 cat confdefs.h >>conftest.$ac_ext
19588 cat >>conftest.$ac_ext <<_ACEOF
19589 /* end confdefs.h. */
19590
19591 int
19592 main ()
19593 {
19594
19595 ;
19596 return 0;
19597 }
19598 _ACEOF
19599 rm -f conftest.$ac_objext
19600 if { (ac_try="$ac_compile"
19601 case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19604 esac
19605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_compile") 2>conftest.er1
19607 ac_status=$?
19608 grep -v '^ *+' conftest.er1 >conftest.err
19609 rm -f conftest.er1
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19612 (exit $ac_status); } && {
19613 test -z "$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 } && test -s conftest.$ac_objext; then
19616 ac_cv_prog_cc_g=yes
19617 else
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621
19622 fi
19623
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19625 fi
19626
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628 fi
19629
19630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 ac_c_werror_flag=$ac_save_c_werror_flag
19632 fi
19633 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19634 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19635 if test "$ac_test_CFLAGS" = set; then
19636 CFLAGS=$ac_save_CFLAGS
19637 elif test $ac_cv_prog_cc_g = yes; then
19638 if test "$GCC" = yes; then
19639 CFLAGS="-g -O2"
19640 else
19641 CFLAGS="-g"
19642 fi
19643 else
19644 if test "$GCC" = yes; then
19645 CFLAGS="-O2"
19646 else
19647 CFLAGS=
19648 fi
19649 fi
19650 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
19651 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
19652 if test "${ac_cv_prog_cc_c89+set}" = set; then
19653 echo $ECHO_N "(cached) $ECHO_C" >&6
19654 else
19655 ac_cv_prog_cc_c89=no
19656 ac_save_CC=$CC
19657 cat >conftest.$ac_ext <<_ACEOF
19658 /* confdefs.h. */
19659 _ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 #include <stdarg.h>
19664 #include <stdio.h>
19665 #include <sys/types.h>
19666 #include <sys/stat.h>
19667 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19668 struct buf { int x; };
19669 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19670 static char *e (p, i)
19671 char **p;
19672 int i;
19673 {
19674 return p[i];
19675 }
19676 static char *f (char * (*g) (char **, int), char **p, ...)
19677 {
19678 char *s;
19679 va_list v;
19680 va_start (v,p);
19681 s = g (p, va_arg (v,int));
19682 va_end (v);
19683 return s;
19684 }
19685
19686 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19687 function prototypes and stuff, but not '\xHH' hex character constants.
19688 These don't provoke an error unfortunately, instead are silently treated
19689 as 'x'. The following induces an error, until -std is added to get
19690 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19691 array size at least. It's necessary to write '\x00'==0 to get something
19692 that's true only with -std. */
19693 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19694
19695 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
19696 inside strings and character constants. */
19697 #define FOO(x) 'x'
19698 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
19699
19700 int test (int i, double x);
19701 struct s1 {int (*f) (int a);};
19702 struct s2 {int (*f) (double a);};
19703 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19704 int argc;
19705 char **argv;
19706 int
19707 main ()
19708 {
19709 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19710 ;
19711 return 0;
19712 }
19713 _ACEOF
19714 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
19715 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19716 do
19717 CC="$ac_save_CC $ac_arg"
19718 rm -f conftest.$ac_objext
19719 if { (ac_try="$ac_compile"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_compile") 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } && {
19732 test -z "$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19734 } && test -s conftest.$ac_objext; then
19735 ac_cv_prog_cc_c89=$ac_arg
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740
19741 fi
19742
19743 rm -f core conftest.err conftest.$ac_objext
19744 test "x$ac_cv_prog_cc_c89" != "xno" && break
19745 done
19746 rm -f conftest.$ac_ext
19747 CC=$ac_save_CC
19748
19749 fi
19750 # AC_CACHE_VAL
19751 case "x$ac_cv_prog_cc_c89" in
19752 x)
19753 { echo "$as_me:$LINENO: result: none needed" >&5
19754 echo "${ECHO_T}none needed" >&6; } ;;
19755 xno)
19756 { echo "$as_me:$LINENO: result: unsupported" >&5
19757 echo "${ECHO_T}unsupported" >&6; } ;;
19758 *)
19759 CC="$CC $ac_cv_prog_cc_c89"
19760 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
19761 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
19762 esac
19763
19764
19765 ac_ext=c
19766 ac_cpp='$CPP $CPPFLAGS'
19767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19770
19771 depcc="$CC" am_compiler_list=
19772
19773 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19774 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
19775 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19779 # We make a subdir and do the tests there. Otherwise we can end up
19780 # making bogus files that we don't know about and never remove. For
19781 # instance it was reported that on HP-UX the gcc test will end up
19782 # making a dummy file named `D' -- because `-MD' means `put the output
19783 # in D'.
19784 mkdir conftest.dir
19785 # Copy depcomp to subdir because otherwise we won't find it if we're
19786 # using a relative directory.
19787 cp "$am_depcomp" conftest.dir
19788 cd conftest.dir
19789 # We will build objects and dependencies in a subdirectory because
19790 # it helps to detect inapplicable dependency modes. For instance
19791 # both Tru64's cc and ICC support -MD to output dependencies as a
19792 # side effect of compilation, but ICC will put the dependencies in
19793 # the current directory while Tru64 will put them in the object
19794 # directory.
19795 mkdir sub
19796
19797 am_cv_CC_dependencies_compiler_type=none
19798 if test "$am_compiler_list" = ""; then
19799 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19800 fi
19801 for depmode in $am_compiler_list; do
19802 # Setup a source with many dependencies, because some compilers
19803 # like to wrap large dependency lists on column 80 (with \), and
19804 # we should not choose a depcomp mode which is confused by this.
19805 #
19806 # We need to recreate these files for each test, as the compiler may
19807 # overwrite some of them when testing with obscure command lines.
19808 # This happens at least with the AIX C compiler.
19809 : > sub/conftest.c
19810 for i in 1 2 3 4 5 6; do
19811 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19812 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19813 # Solaris 8's {/usr,}/bin/sh.
19814 touch sub/conftst$i.h
19815 done
19816 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19817
19818 case $depmode in
19819 nosideeffect)
19820 # after this tag, mechanisms are not by side-effect, so they'll
19821 # only be used when explicitly requested
19822 if test "x$enable_dependency_tracking" = xyes; then
19823 continue
19824 else
19825 break
19826 fi
19827 ;;
19828 none) break ;;
19829 esac
19830 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19831 # mode. It turns out that the SunPro C++ compiler does not properly
19832 # handle `-M -o', and we need to detect this.
19833 if depmode=$depmode \
19834 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19835 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19836 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19837 >/dev/null 2>conftest.err &&
19838 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19839 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19840 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19841 # icc doesn't choke on unknown options, it will just issue warnings
19842 # or remarks (even with -Werror). So we grep stderr for any message
19843 # that says an option was ignored or not supported.
19844 # When given -MP, icc 7.0 and 7.1 complain thusly:
19845 # icc: Command line warning: ignoring option '-M'; no argument required
19846 # The diagnosis changed in icc 8.0:
19847 # icc: Command line remark: option '-MP' not supported
19848 if (grep 'ignoring option' conftest.err ||
19849 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19850 am_cv_CC_dependencies_compiler_type=$depmode
19851 break
19852 fi
19853 fi
19854 done
19855
19856 cd ..
19857 rm -rf conftest.dir
19858 else
19859 am_cv_CC_dependencies_compiler_type=none
19860 fi
19861
19862 fi
19863 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19864 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
19865 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19866
19867
19868
19869 if
19870 test "x$enable_dependency_tracking" != xno \
19871 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19872 am__fastdepCC_TRUE=
19873 am__fastdepCC_FALSE='#'
19874 else
19875 am__fastdepCC_TRUE='#'
19876 am__fastdepCC_FALSE=
19877 fi
19878
19879
19880 if test "x$CC" != xcc; then
19881 { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
19882 echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
19883 else
19884 { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
19885 echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
19886 fi
19887 set dummy $CC; ac_cc=`echo $2 |
19888 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19889 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 else
19892 cat >conftest.$ac_ext <<_ACEOF
19893 /* confdefs.h. */
19894 _ACEOF
19895 cat confdefs.h >>conftest.$ac_ext
19896 cat >>conftest.$ac_ext <<_ACEOF
19897 /* end confdefs.h. */
19898
19899 int
19900 main ()
19901 {
19902
19903 ;
19904 return 0;
19905 }
19906 _ACEOF
19907 # Make sure it works both with $CC and with simple cc.
19908 # We do the test twice because some compilers refuse to overwrite an
19909 # existing .o file with -o, though they will create one.
19910 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19911 rm -f conftest2.*
19912 if { (case "(($ac_try" in
19913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19914 *) ac_try_echo=$ac_try;;
19915 esac
19916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19917 (eval "$ac_try") 2>&5
19918 ac_status=$?
19919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19920 (exit $ac_status); } &&
19921 test -f conftest2.$ac_objext && { (case "(($ac_try" in
19922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19923 *) ac_try_echo=$ac_try;;
19924 esac
19925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19926 (eval "$ac_try") 2>&5
19927 ac_status=$?
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); };
19930 then
19931 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19932 if test "x$CC" != xcc; then
19933 # Test first that cc exists at all.
19934 if { ac_try='cc -c conftest.$ac_ext >&5'
19935 { (case "(($ac_try" in
19936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19937 *) ac_try_echo=$ac_try;;
19938 esac
19939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19940 (eval "$ac_try") 2>&5
19941 ac_status=$?
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; }; then
19944 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19945 rm -f conftest2.*
19946 if { (case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19949 esac
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951 (eval "$ac_try") 2>&5
19952 ac_status=$?
19953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19954 (exit $ac_status); } &&
19955 test -f conftest2.$ac_objext && { (case "(($ac_try" in
19956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19957 *) ac_try_echo=$ac_try;;
19958 esac
19959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19960 (eval "$ac_try") 2>&5
19961 ac_status=$?
19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19963 (exit $ac_status); };
19964 then
19965 # cc works too.
19966 :
19967 else
19968 # cc exists but doesn't like -o.
19969 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19970 fi
19971 fi
19972 fi
19973 else
19974 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19975 fi
19976 rm -f core conftest*
19977
19978 fi
19979 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19980 { echo "$as_me:$LINENO: result: yes" >&5
19981 echo "${ECHO_T}yes" >&6; }
19982 else
19983 { echo "$as_me:$LINENO: result: no" >&5
19984 echo "${ECHO_T}no" >&6; }
19985
19986 cat >>confdefs.h <<\_ACEOF
19987 #define NO_MINUS_C_MINUS_O 1
19988 _ACEOF
19989
19990 fi
19991
19992 # FIXME: we rely on the cache variable name because
19993 # there is no other way.
19994 set dummy $CC
19995 ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19996 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
19997 # Losing compiler, so override with the script.
19998 # FIXME: It is wrong to rewrite CC.
19999 # But if we don't then we get into trouble of one sort or another.
20000 # A longer-term fix would be to have automake use am__CC in this case,
20001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
20002 CC="$am_aux_dir/compile $CC"
20003 fi
20004
20005 ac_ext=c
20006 ac_cpp='$CPP $CPPFLAGS'
20007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20010 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
20011 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
20012 # On Suns, sometimes $CPP names a directory.
20013 if test -n "$CPP" && test -d "$CPP"; then
20014 CPP=
20015 fi
20016 if test -z "$CPP"; then
20017 if test "${ac_cv_prog_CPP+set}" = set; then
20018 echo $ECHO_N "(cached) $ECHO_C" >&6
20019 else
20020 # Double quotes because CPP needs to be expanded
20021 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
20022 do
20023 ac_preproc_ok=false
20024 for ac_c_preproc_warn_flag in '' yes
20025 do
20026 # Use a header file that comes with gcc, so configuring glibc
20027 # with a fresh cross-compiler works.
20028 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20029 # <limits.h> exists even on freestanding compilers.
20030 # On the NeXT, cc -E runs the code through the compiler's parser,
20031 # not just through cpp. "Syntax error" is here to catch this case.
20032 cat >conftest.$ac_ext <<_ACEOF
20033 /* confdefs.h. */
20034 _ACEOF
20035 cat confdefs.h >>conftest.$ac_ext
20036 cat >>conftest.$ac_ext <<_ACEOF
20037 /* end confdefs.h. */
20038 #ifdef __STDC__
20039 # include <limits.h>
20040 #else
20041 # include <assert.h>
20042 #endif
20043 Syntax error
20044 _ACEOF
20045 if { (ac_try="$ac_cpp conftest.$ac_ext"
20046 case "(($ac_try" in
20047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20048 *) ac_try_echo=$ac_try;;
20049 esac
20050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20052 ac_status=$?
20053 grep -v '^ *+' conftest.er1 >conftest.err
20054 rm -f conftest.er1
20055 cat conftest.err >&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); } >/dev/null && {
20058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20059 test ! -s conftest.err
20060 }; then
20061 :
20062 else
20063 echo "$as_me: failed program was:" >&5
20064 sed 's/^/| /' conftest.$ac_ext >&5
20065
20066 # Broken: fails on valid input.
20067 continue
20068 fi
20069
20070 rm -f conftest.err conftest.$ac_ext
20071
20072 # OK, works on sane cases. Now check whether nonexistent headers
20073 # can be detected and how.
20074 cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h. */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20080 #include <ac_nonexistent.h>
20081 _ACEOF
20082 if { (ac_try="$ac_cpp conftest.$ac_ext"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20086 esac
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20089 ac_status=$?
20090 grep -v '^ *+' conftest.er1 >conftest.err
20091 rm -f conftest.er1
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } >/dev/null && {
20095 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20096 test ! -s conftest.err
20097 }; then
20098 # Broken: success on invalid input.
20099 continue
20100 else
20101 echo "$as_me: failed program was:" >&5
20102 sed 's/^/| /' conftest.$ac_ext >&5
20103
20104 # Passes both tests.
20105 ac_preproc_ok=:
20106 break
20107 fi
20108
20109 rm -f conftest.err conftest.$ac_ext
20110
20111 done
20112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20113 rm -f conftest.err conftest.$ac_ext
20114 if $ac_preproc_ok; then
20115 break
20116 fi
20117
20118 done
20119 ac_cv_prog_CPP=$CPP
20120
20121 fi
20122 CPP=$ac_cv_prog_CPP
20123 else
20124 ac_cv_prog_CPP=$CPP
20125 fi
20126 { echo "$as_me:$LINENO: result: $CPP" >&5
20127 echo "${ECHO_T}$CPP" >&6; }
20128 ac_preproc_ok=false
20129 for ac_c_preproc_warn_flag in '' yes
20130 do
20131 # Use a header file that comes with gcc, so configuring glibc
20132 # with a fresh cross-compiler works.
20133 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20134 # <limits.h> exists even on freestanding compilers.
20135 # On the NeXT, cc -E runs the code through the compiler's parser,
20136 # not just through cpp. "Syntax error" is here to catch this case.
20137 cat >conftest.$ac_ext <<_ACEOF
20138 /* confdefs.h. */
20139 _ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20143 #ifdef __STDC__
20144 # include <limits.h>
20145 #else
20146 # include <assert.h>
20147 #endif
20148 Syntax error
20149 _ACEOF
20150 if { (ac_try="$ac_cpp conftest.$ac_ext"
20151 case "(($ac_try" in
20152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20153 *) ac_try_echo=$ac_try;;
20154 esac
20155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20156 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20157 ac_status=$?
20158 grep -v '^ *+' conftest.er1 >conftest.err
20159 rm -f conftest.er1
20160 cat conftest.err >&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); } >/dev/null && {
20163 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20164 test ! -s conftest.err
20165 }; then
20166 :
20167 else
20168 echo "$as_me: failed program was:" >&5
20169 sed 's/^/| /' conftest.$ac_ext >&5
20170
20171 # Broken: fails on valid input.
20172 continue
20173 fi
20174
20175 rm -f conftest.err conftest.$ac_ext
20176
20177 # OK, works on sane cases. Now check whether nonexistent headers
20178 # can be detected and how.
20179 cat >conftest.$ac_ext <<_ACEOF
20180 /* confdefs.h. */
20181 _ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20185 #include <ac_nonexistent.h>
20186 _ACEOF
20187 if { (ac_try="$ac_cpp conftest.$ac_ext"
20188 case "(($ac_try" in
20189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20190 *) ac_try_echo=$ac_try;;
20191 esac
20192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20194 ac_status=$?
20195 grep -v '^ *+' conftest.er1 >conftest.err
20196 rm -f conftest.er1
20197 cat conftest.err >&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); } >/dev/null && {
20200 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20201 test ! -s conftest.err
20202 }; then
20203 # Broken: success on invalid input.
20204 continue
20205 else
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20208
20209 # Passes both tests.
20210 ac_preproc_ok=:
20211 break
20212 fi
20213
20214 rm -f conftest.err conftest.$ac_ext
20215
20216 done
20217 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
20218 rm -f conftest.err conftest.$ac_ext
20219 if $ac_preproc_ok; then
20220 :
20221 else
20222 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
20223 See \`config.log' for more details." >&5
20224 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
20225 See \`config.log' for more details." >&2;}
20226 { (exit 1); exit 1; }; }
20227 fi
20228
20229 ac_ext=c
20230 ac_cpp='$CPP $CPPFLAGS'
20231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20234
20235 ac_ext=cpp
20236 ac_cpp='$CXXCPP $CPPFLAGS'
20237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20240 if test -z "$CXX"; then
20241 if test -n "$CCC"; then
20242 CXX=$CCC
20243 else
20244 if test -n "$ac_tool_prefix"; then
20245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20246 do
20247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
20248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
20249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20251 if test "${ac_cv_prog_CXX+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254 if test -n "$CXX"; then
20255 ac_cv_prog_CXX="$CXX" # Let the user override the test.
20256 else
20257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20258 for as_dir in $PATH
20259 do
20260 IFS=$as_save_IFS
20261 test -z "$as_dir" && as_dir=.
20262 for ac_exec_ext in '' $ac_executable_extensions; do
20263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20264 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
20265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20266 break 2
20267 fi
20268 done
20269 done
20270 IFS=$as_save_IFS
20271
20272 fi
20273 fi
20274 CXX=$ac_cv_prog_CXX
20275 if test -n "$CXX"; then
20276 { echo "$as_me:$LINENO: result: $CXX" >&5
20277 echo "${ECHO_T}$CXX" >&6; }
20278 else
20279 { echo "$as_me:$LINENO: result: no" >&5
20280 echo "${ECHO_T}no" >&6; }
20281 fi
20282
20283
20284 test -n "$CXX" && break
20285 done
20286 fi
20287 if test -z "$CXX"; then
20288 ac_ct_CXX=$CXX
20289 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
20290 do
20291 # Extract the first word of "$ac_prog", so it can be a program name with args.
20292 set dummy $ac_prog; ac_word=$2
20293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20295 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
20296 echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298 if test -n "$ac_ct_CXX"; then
20299 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
20300 else
20301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20302 for as_dir in $PATH
20303 do
20304 IFS=$as_save_IFS
20305 test -z "$as_dir" && as_dir=.
20306 for ac_exec_ext in '' $ac_executable_extensions; do
20307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20308 ac_cv_prog_ac_ct_CXX="$ac_prog"
20309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20310 break 2
20311 fi
20312 done
20313 done
20314 IFS=$as_save_IFS
20315
20316 fi
20317 fi
20318 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
20319 if test -n "$ac_ct_CXX"; then
20320 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
20321 echo "${ECHO_T}$ac_ct_CXX" >&6; }
20322 else
20323 { echo "$as_me:$LINENO: result: no" >&5
20324 echo "${ECHO_T}no" >&6; }
20325 fi
20326
20327
20328 test -n "$ac_ct_CXX" && break
20329 done
20330
20331 if test "x$ac_ct_CXX" = x; then
20332 CXX="g++"
20333 else
20334 case $cross_compiling:$ac_tool_warned in
20335 yes:)
20336 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20337 whose name does not start with the host triplet. If you think this
20338 configuration is useful to you, please write to autoconf@gnu.org." >&5
20339 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20340 whose name does not start with the host triplet. If you think this
20341 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20342 ac_tool_warned=yes ;;
20343 esac
20344 CXX=$ac_ct_CXX
20345 fi
20346 fi
20347
20348 fi
20349 fi
20350 # Provide some information about the compiler.
20351 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
20352 ac_compiler=`set X $ac_compile; echo $2`
20353 { (ac_try="$ac_compiler --version >&5"
20354 case "(($ac_try" in
20355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20356 *) ac_try_echo=$ac_try;;
20357 esac
20358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20359 (eval "$ac_compiler --version >&5") 2>&5
20360 ac_status=$?
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); }
20363 { (ac_try="$ac_compiler -v >&5"
20364 case "(($ac_try" in
20365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366 *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369 (eval "$ac_compiler -v >&5") 2>&5
20370 ac_status=$?
20371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372 (exit $ac_status); }
20373 { (ac_try="$ac_compiler -V >&5"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_compiler -V >&5") 2>&5
20380 ac_status=$?
20381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20382 (exit $ac_status); }
20383
20384 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
20385 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
20386 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
20387 echo $ECHO_N "(cached) $ECHO_C" >&6
20388 else
20389 cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h. */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395
20396 int
20397 main ()
20398 {
20399 #ifndef __GNUC__
20400 choke me
20401 #endif
20402
20403 ;
20404 return 0;
20405 }
20406 _ACEOF
20407 rm -f conftest.$ac_objext
20408 if { (ac_try="$ac_compile"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20412 esac
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_compile") 2>conftest.er1
20415 ac_status=$?
20416 grep -v '^ *+' conftest.er1 >conftest.err
20417 rm -f conftest.er1
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_cxx_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest.$ac_objext; then
20424 ac_compiler_gnu=yes
20425 else
20426 echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.$ac_ext >&5
20428
20429 ac_compiler_gnu=no
20430 fi
20431
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20433 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
20434
20435 fi
20436 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
20437 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
20438 GXX=`test $ac_compiler_gnu = yes && echo yes`
20439 ac_test_CXXFLAGS=${CXXFLAGS+set}
20440 ac_save_CXXFLAGS=$CXXFLAGS
20441 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
20442 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
20443 if test "${ac_cv_prog_cxx_g+set}" = set; then
20444 echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
20447 ac_cxx_werror_flag=yes
20448 ac_cv_prog_cxx_g=no
20449 CXXFLAGS="-g"
20450 cat >conftest.$ac_ext <<_ACEOF
20451 /* confdefs.h. */
20452 _ACEOF
20453 cat confdefs.h >>conftest.$ac_ext
20454 cat >>conftest.$ac_ext <<_ACEOF
20455 /* end confdefs.h. */
20456
20457 int
20458 main ()
20459 {
20460
20461 ;
20462 return 0;
20463 }
20464 _ACEOF
20465 rm -f conftest.$ac_objext
20466 if { (ac_try="$ac_compile"
20467 case "(($ac_try" in
20468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20469 *) ac_try_echo=$ac_try;;
20470 esac
20471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20472 (eval "$ac_compile") 2>conftest.er1
20473 ac_status=$?
20474 grep -v '^ *+' conftest.er1 >conftest.err
20475 rm -f conftest.er1
20476 cat conftest.err >&5
20477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20478 (exit $ac_status); } && {
20479 test -z "$ac_cxx_werror_flag" ||
20480 test ! -s conftest.err
20481 } && test -s conftest.$ac_objext; then
20482 ac_cv_prog_cxx_g=yes
20483 else
20484 echo "$as_me: failed program was:" >&5
20485 sed 's/^/| /' conftest.$ac_ext >&5
20486
20487 CXXFLAGS=""
20488 cat >conftest.$ac_ext <<_ACEOF
20489 /* confdefs.h. */
20490 _ACEOF
20491 cat confdefs.h >>conftest.$ac_ext
20492 cat >>conftest.$ac_ext <<_ACEOF
20493 /* end confdefs.h. */
20494
20495 int
20496 main ()
20497 {
20498
20499 ;
20500 return 0;
20501 }
20502 _ACEOF
20503 rm -f conftest.$ac_objext
20504 if { (ac_try="$ac_compile"
20505 case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20508 esac
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510 (eval "$ac_compile") 2>conftest.er1
20511 ac_status=$?
20512 grep -v '^ *+' conftest.er1 >conftest.err
20513 rm -f conftest.er1
20514 cat conftest.err >&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); } && {
20517 test -z "$ac_cxx_werror_flag" ||
20518 test ! -s conftest.err
20519 } && test -s conftest.$ac_objext; then
20520 :
20521 else
20522 echo "$as_me: failed program was:" >&5
20523 sed 's/^/| /' conftest.$ac_ext >&5
20524
20525 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20526 CXXFLAGS="-g"
20527 cat >conftest.$ac_ext <<_ACEOF
20528 /* confdefs.h. */
20529 _ACEOF
20530 cat confdefs.h >>conftest.$ac_ext
20531 cat >>conftest.$ac_ext <<_ACEOF
20532 /* end confdefs.h. */
20533
20534 int
20535 main ()
20536 {
20537
20538 ;
20539 return 0;
20540 }
20541 _ACEOF
20542 rm -f conftest.$ac_objext
20543 if { (ac_try="$ac_compile"
20544 case "(($ac_try" in
20545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20546 *) ac_try_echo=$ac_try;;
20547 esac
20548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20549 (eval "$ac_compile") 2>conftest.er1
20550 ac_status=$?
20551 grep -v '^ *+' conftest.er1 >conftest.err
20552 rm -f conftest.er1
20553 cat conftest.err >&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); } && {
20556 test -z "$ac_cxx_werror_flag" ||
20557 test ! -s conftest.err
20558 } && test -s conftest.$ac_objext; then
20559 ac_cv_prog_cxx_g=yes
20560 else
20561 echo "$as_me: failed program was:" >&5
20562 sed 's/^/| /' conftest.$ac_ext >&5
20563
20564
20565 fi
20566
20567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20568 fi
20569
20570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571 fi
20572
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20574 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
20575 fi
20576 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
20577 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
20578 if test "$ac_test_CXXFLAGS" = set; then
20579 CXXFLAGS=$ac_save_CXXFLAGS
20580 elif test $ac_cv_prog_cxx_g = yes; then
20581 if test "$GXX" = yes; then
20582 CXXFLAGS="-g -O2"
20583 else
20584 CXXFLAGS="-g"
20585 fi
20586 else
20587 if test "$GXX" = yes; then
20588 CXXFLAGS="-O2"
20589 else
20590 CXXFLAGS=
20591 fi
20592 fi
20593 ac_ext=c
20594 ac_cpp='$CPP $CPPFLAGS'
20595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20598
20599 depcc="$CXX" am_compiler_list=
20600
20601 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20602 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
20603 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
20604 echo $ECHO_N "(cached) $ECHO_C" >&6
20605 else
20606 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20607 # We make a subdir and do the tests there. Otherwise we can end up
20608 # making bogus files that we don't know about and never remove. For
20609 # instance it was reported that on HP-UX the gcc test will end up
20610 # making a dummy file named `D' -- because `-MD' means `put the output
20611 # in D'.
20612 mkdir conftest.dir
20613 # Copy depcomp to subdir because otherwise we won't find it if we're
20614 # using a relative directory.
20615 cp "$am_depcomp" conftest.dir
20616 cd conftest.dir
20617 # We will build objects and dependencies in a subdirectory because
20618 # it helps to detect inapplicable dependency modes. For instance
20619 # both Tru64's cc and ICC support -MD to output dependencies as a
20620 # side effect of compilation, but ICC will put the dependencies in
20621 # the current directory while Tru64 will put them in the object
20622 # directory.
20623 mkdir sub
20624
20625 am_cv_CXX_dependencies_compiler_type=none
20626 if test "$am_compiler_list" = ""; then
20627 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20628 fi
20629 for depmode in $am_compiler_list; do
20630 # Setup a source with many dependencies, because some compilers
20631 # like to wrap large dependency lists on column 80 (with \), and
20632 # we should not choose a depcomp mode which is confused by this.
20633 #
20634 # We need to recreate these files for each test, as the compiler may
20635 # overwrite some of them when testing with obscure command lines.
20636 # This happens at least with the AIX C compiler.
20637 : > sub/conftest.c
20638 for i in 1 2 3 4 5 6; do
20639 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20640 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20641 # Solaris 8's {/usr,}/bin/sh.
20642 touch sub/conftst$i.h
20643 done
20644 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20645
20646 case $depmode in
20647 nosideeffect)
20648 # after this tag, mechanisms are not by side-effect, so they'll
20649 # only be used when explicitly requested
20650 if test "x$enable_dependency_tracking" = xyes; then
20651 continue
20652 else
20653 break
20654 fi
20655 ;;
20656 none) break ;;
20657 esac
20658 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20659 # mode. It turns out that the SunPro C++ compiler does not properly
20660 # handle `-M -o', and we need to detect this.
20661 if depmode=$depmode \
20662 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20663 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20664 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20665 >/dev/null 2>conftest.err &&
20666 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20667 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20668 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20669 # icc doesn't choke on unknown options, it will just issue warnings
20670 # or remarks (even with -Werror). So we grep stderr for any message
20671 # that says an option was ignored or not supported.
20672 # When given -MP, icc 7.0 and 7.1 complain thusly:
20673 # icc: Command line warning: ignoring option '-M'; no argument required
20674 # The diagnosis changed in icc 8.0:
20675 # icc: Command line remark: option '-MP' not supported
20676 if (grep 'ignoring option' conftest.err ||
20677 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20678 am_cv_CXX_dependencies_compiler_type=$depmode
20679 break
20680 fi
20681 fi
20682 done
20683
20684 cd ..
20685 rm -rf conftest.dir
20686 else
20687 am_cv_CXX_dependencies_compiler_type=none
20688 fi
20689
20690 fi
20691 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
20692 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
20693 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
20694
20695
20696
20697 if
20698 test "x$enable_dependency_tracking" != xno \
20699 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
20700 am__fastdepCXX_TRUE=
20701 am__fastdepCXX_FALSE='#'
20702 else
20703 am__fastdepCXX_TRUE='#'
20704 am__fastdepCXX_FALSE=
20705 fi
20706
20707
20708 # Find a good install program. We prefer a C program (faster),
20709 # so one script is as good as another. But avoid the broken or
20710 # incompatible versions:
20711 # SysV /etc/install, /usr/sbin/install
20712 # SunOS /usr/etc/install
20713 # IRIX /sbin/install
20714 # AIX /bin/install
20715 # AmigaOS /C/install, which installs bootblocks on floppy discs
20716 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
20717 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
20718 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
20719 # OS/2's system install, which has a completely different semantic
20720 # ./install, which can be erroneously created by make from ./install.sh.
20721 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
20722 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
20723 if test -z "$INSTALL"; then
20724 if test "${ac_cv_path_install+set}" = set; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20728 for as_dir in $PATH
20729 do
20730 IFS=$as_save_IFS
20731 test -z "$as_dir" && as_dir=.
20732 # Account for people who put trailing slashes in PATH elements.
20733 case $as_dir/ in
20734 ./ | .// | /cC/* | \
20735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
20736 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
20737 /usr/ucb/* ) ;;
20738 *)
20739 # OSF1 and SCO ODT 3.0 have their own names for install.
20740 # Don't use installbsd from OSF since it installs stuff as root
20741 # by default.
20742 for ac_prog in ginstall scoinst install; do
20743 for ac_exec_ext in '' $ac_executable_extensions; do
20744 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
20745 if test $ac_prog = install &&
20746 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20747 # AIX install. It has an incompatible calling convention.
20748 :
20749 elif test $ac_prog = install &&
20750 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
20751 # program-specific install script used by HP pwplus--don't use.
20752 :
20753 else
20754 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
20755 break 3
20756 fi
20757 fi
20758 done
20759 done
20760 ;;
20761 esac
20762 done
20763 IFS=$as_save_IFS
20764
20765
20766 fi
20767 if test "${ac_cv_path_install+set}" = set; then
20768 INSTALL=$ac_cv_path_install
20769 else
20770 # As a last resort, use the slow shell script. Don't cache a
20771 # value for INSTALL within a source directory, because that will
20772 # break other packages using the cache if that directory is
20773 # removed, or if the value is a relative name.
20774 INSTALL=$ac_install_sh
20775 fi
20776 fi
20777 { echo "$as_me:$LINENO: result: $INSTALL" >&5
20778 echo "${ECHO_T}$INSTALL" >&6; }
20779
20780 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
20781 # It thinks the first close brace ends the variable substitution.
20782 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20783
20784 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20785
20786 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20787
20788 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
20789 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
20790 LN_S=$as_ln_s
20791 if test "$LN_S" = "ln -s"; then
20792 { echo "$as_me:$LINENO: result: yes" >&5
20793 echo "${ECHO_T}yes" >&6; }
20794 else
20795 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20796 echo "${ECHO_T}no, using $LN_S" >&6; }
20797 fi
20798
20799 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20800 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
20801 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
20802 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
20803 echo $ECHO_N "(cached) $ECHO_C" >&6
20804 else
20805 cat >conftest.make <<\_ACEOF
20806 SHELL = /bin/sh
20807 all:
20808 @echo '@@@%%%=$(MAKE)=@@@%%%'
20809 _ACEOF
20810 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20811 case `${MAKE-make} -f conftest.make 2>/dev/null` in
20812 *@@@%%%=?*=@@@%%%*)
20813 eval ac_cv_prog_make_${ac_make}_set=yes;;
20814 *)
20815 eval ac_cv_prog_make_${ac_make}_set=no;;
20816 esac
20817 rm -f conftest.make
20818 fi
20819 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
20820 { echo "$as_me:$LINENO: result: yes" >&5
20821 echo "${ECHO_T}yes" >&6; }
20822 SET_MAKE=
20823 else
20824 { echo "$as_me:$LINENO: result: no" >&5
20825 echo "${ECHO_T}no" >&6; }
20826 SET_MAKE="MAKE=${MAKE-make}"
20827 fi
20828
20829 for ac_prog in rpmbuild
20830 do
20831 # Extract the first word of "$ac_prog", so it can be a program name with args.
20832 set dummy $ac_prog; ac_word=$2
20833 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20834 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20835 if test "${ac_cv_prog_RPMBUILD+set}" = set; then
20836 echo $ECHO_N "(cached) $ECHO_C" >&6
20837 else
20838 if test -n "$RPMBUILD"; then
20839 ac_cv_prog_RPMBUILD="$RPMBUILD" # Let the user override the test.
20840 else
20841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20842 for as_dir in $PATH
20843 do
20844 IFS=$as_save_IFS
20845 test -z "$as_dir" && as_dir=.
20846 for ac_exec_ext in '' $ac_executable_extensions; do
20847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20848 ac_cv_prog_RPMBUILD="$ac_prog"
20849 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20850 break 2
20851 fi
20852 done
20853 done
20854 IFS=$as_save_IFS
20855
20856 fi
20857 fi
20858 RPMBUILD=$ac_cv_prog_RPMBUILD
20859 if test -n "$RPMBUILD"; then
20860 { echo "$as_me:$LINENO: result: $RPMBUILD" >&5
20861 echo "${ECHO_T}$RPMBUILD" >&6; }
20862 else
20863 { echo "$as_me:$LINENO: result: no" >&5
20864 echo "${ECHO_T}no" >&6; }
20865 fi
20866
20867
20868 test -n "$RPMBUILD" && break
20869 done
20870 test -n "$RPMBUILD" || RPMBUILD="rpm"
20871
20872
20873 ac_config_headers="$ac_config_headers config.h"
20874
20875
20876
20877 # Check whether --with-xmms was given.
20878 if test "${with_xmms+set}" = set; then
20879 withval=$with_xmms; WITHXMMS=$withval
20880 else
20881 WITHXMMS=no
20882 fi
20883
20884
20885
20886 # Check whether --with-drm was given.
20887 if test "${with_drm+set}" = set; then
20888 withval=$with_drm; WITHDRM=$withval
20889 else
20890 WITHDRM=no
20891 fi
20892
20893
20894
20895 # Check whether --with-mpeg4ip was given.
20896 if test "${with_mpeg4ip+set}" = set; then
20897 withval=$with_mpeg4ip; WITHMPEG4IP=$withval
20898 else
20899 WITHMPEG4IP=no
20900 fi
20901
20902
20903 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20904 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
20905 if test "${ac_cv_header_stdc+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20907 else
20908 cat >conftest.$ac_ext <<_ACEOF
20909 /* confdefs.h. */
20910 _ACEOF
20911 cat confdefs.h >>conftest.$ac_ext
20912 cat >>conftest.$ac_ext <<_ACEOF
20913 /* end confdefs.h. */
20914 #include <stdlib.h>
20915 #include <stdarg.h>
20916 #include <string.h>
20917 #include <float.h>
20918
20919 int
20920 main ()
20921 {
20922
20923 ;
20924 return 0;
20925 }
20926 _ACEOF
20927 rm -f conftest.$ac_objext
20928 if { (ac_try="$ac_compile"
20929 case "(($ac_try" in
20930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20931 *) ac_try_echo=$ac_try;;
20932 esac
20933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20934 (eval "$ac_compile") 2>conftest.er1
20935 ac_status=$?
20936 grep -v '^ *+' conftest.er1 >conftest.err
20937 rm -f conftest.er1
20938 cat conftest.err >&5
20939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20940 (exit $ac_status); } && {
20941 test -z "$ac_c_werror_flag" ||
20942 test ! -s conftest.err
20943 } && test -s conftest.$ac_objext; then
20944 ac_cv_header_stdc=yes
20945 else
20946 echo "$as_me: failed program was:" >&5
20947 sed 's/^/| /' conftest.$ac_ext >&5
20948
20949 ac_cv_header_stdc=no
20950 fi
20951
20952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20953
20954 if test $ac_cv_header_stdc = yes; then
20955 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20956 cat >conftest.$ac_ext <<_ACEOF
20957 /* confdefs.h. */
20958 _ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20962 #include <string.h>
20963
20964 _ACEOF
20965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20966 $EGREP "memchr" >/dev/null 2>&1; then
20967 :
20968 else
20969 ac_cv_header_stdc=no
20970 fi
20971 rm -f conftest*
20972
20973 fi
20974
20975 if test $ac_cv_header_stdc = yes; then
20976 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20977 cat >conftest.$ac_ext <<_ACEOF
20978 /* confdefs.h. */
20979 _ACEOF
20980 cat confdefs.h >>conftest.$ac_ext
20981 cat >>conftest.$ac_ext <<_ACEOF
20982 /* end confdefs.h. */
20983 #include <stdlib.h>
20984
20985 _ACEOF
20986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20987 $EGREP "free" >/dev/null 2>&1; then
20988 :
20989 else
20990 ac_cv_header_stdc=no
20991 fi
20992 rm -f conftest*
20993
20994 fi
20995
20996 if test $ac_cv_header_stdc = yes; then
20997 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20998 if test "$cross_compiling" = yes; then
20999 :
21000 else
21001 cat >conftest.$ac_ext <<_ACEOF
21002 /* confdefs.h. */
21003 _ACEOF
21004 cat confdefs.h >>conftest.$ac_ext
21005 cat >>conftest.$ac_ext <<_ACEOF
21006 /* end confdefs.h. */
21007 #include <ctype.h>
21008 #include <stdlib.h>
21009 #if ((' ' & 0x0FF) == 0x020)
21010 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21011 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21012 #else
21013 # define ISLOWER(c) \
21014 (('a' <= (c) && (c) <= 'i') \
21015 || ('j' <= (c) && (c) <= 'r') \
21016 || ('s' <= (c) && (c) <= 'z'))
21017 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21018 #endif
21019
21020 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21021 int
21022 main ()
21023 {
21024 int i;
21025 for (i = 0; i < 256; i++)
21026 if (XOR (islower (i), ISLOWER (i))
21027 || toupper (i) != TOUPPER (i))
21028 return 2;
21029 return 0;
21030 }
21031 _ACEOF
21032 rm -f conftest$ac_exeext
21033 if { (ac_try="$ac_link"
21034 case "(($ac_try" in
21035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21036 *) ac_try_echo=$ac_try;;
21037 esac
21038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21039 (eval "$ac_link") 2>&5
21040 ac_status=$?
21041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21042 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21043 { (case "(($ac_try" in
21044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21045 *) ac_try_echo=$ac_try;;
21046 esac
21047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21048 (eval "$ac_try") 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052 :
21053 else
21054 echo "$as_me: program exited with status $ac_status" >&5
21055 echo "$as_me: failed program was:" >&5
21056 sed 's/^/| /' conftest.$ac_ext >&5
21057
21058 ( exit $ac_status )
21059 ac_cv_header_stdc=no
21060 fi
21061 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21062 fi
21063
21064
21065 fi
21066 fi
21067 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21068 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21069 if test $ac_cv_header_stdc = yes; then
21070
21071 cat >>confdefs.h <<\_ACEOF
21072 #define STDC_HEADERS 1
21073 _ACEOF
21074
21075 fi
21076
21077
21078
21079 for ac_header in stdint.h inttypes.h
21080 do
21081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21086 echo $ECHO_N "(cached) $ECHO_C" >&6
21087 fi
21088 ac_res=`eval echo '${'$as_ac_Header'}'`
21089 { echo "$as_me:$LINENO: result: $ac_res" >&5
21090 echo "${ECHO_T}$ac_res" >&6; }
21091 else
21092 # Is the header compilable?
21093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21095 cat >conftest.$ac_ext <<_ACEOF
21096 /* confdefs.h. */
21097 _ACEOF
21098 cat confdefs.h >>conftest.$ac_ext
21099 cat >>conftest.$ac_ext <<_ACEOF
21100 /* end confdefs.h. */
21101 $ac_includes_default
21102 #include <$ac_header>
21103 _ACEOF
21104 rm -f conftest.$ac_objext
21105 if { (ac_try="$ac_compile"
21106 case "(($ac_try" in
21107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21108 *) ac_try_echo=$ac_try;;
21109 esac
21110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21111 (eval "$ac_compile") 2>conftest.er1
21112 ac_status=$?
21113 grep -v '^ *+' conftest.er1 >conftest.err
21114 rm -f conftest.er1
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } && {
21118 test -z "$ac_c_werror_flag" ||
21119 test ! -s conftest.err
21120 } && test -s conftest.$ac_objext; then
21121 ac_header_compiler=yes
21122 else
21123 echo "$as_me: failed program was:" >&5
21124 sed 's/^/| /' conftest.$ac_ext >&5
21125
21126 ac_header_compiler=no
21127 fi
21128
21129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21131 echo "${ECHO_T}$ac_header_compiler" >&6; }
21132
21133 # Is the header present?
21134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21136 cat >conftest.$ac_ext <<_ACEOF
21137 /* confdefs.h. */
21138 _ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21142 #include <$ac_header>
21143 _ACEOF
21144 if { (ac_try="$ac_cpp conftest.$ac_ext"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21148 esac
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21151 ac_status=$?
21152 grep -v '^ *+' conftest.er1 >conftest.err
21153 rm -f conftest.er1
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); } >/dev/null && {
21157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21158 test ! -s conftest.err
21159 }; then
21160 ac_header_preproc=yes
21161 else
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21164
21165 ac_header_preproc=no
21166 fi
21167
21168 rm -f conftest.err conftest.$ac_ext
21169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21170 echo "${ECHO_T}$ac_header_preproc" >&6; }
21171
21172 # So? What about this header?
21173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21174 yes:no: )
21175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21179 ac_header_preproc=yes
21180 ;;
21181 no:yes:* )
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21194
21195 ;;
21196 esac
21197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21200 echo $ECHO_N "(cached) $ECHO_C" >&6
21201 else
21202 eval "$as_ac_Header=\$ac_header_preproc"
21203 fi
21204 ac_res=`eval echo '${'$as_ac_Header'}'`
21205 { echo "$as_me:$LINENO: result: $ac_res" >&5
21206 echo "${ECHO_T}$ac_res" >&6; }
21207
21208 fi
21209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21210 cat >>confdefs.h <<_ACEOF
21211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21212 _ACEOF
21213
21214 fi
21215
21216 done
21217
21218
21219 for ac_header in mathf.h
21220 do
21221 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21223 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21224 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21226 echo $ECHO_N "(cached) $ECHO_C" >&6
21227 fi
21228 ac_res=`eval echo '${'$as_ac_Header'}'`
21229 { echo "$as_me:$LINENO: result: $ac_res" >&5
21230 echo "${ECHO_T}$ac_res" >&6; }
21231 else
21232 # Is the header compilable?
21233 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21234 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21235 cat >conftest.$ac_ext <<_ACEOF
21236 /* confdefs.h. */
21237 _ACEOF
21238 cat confdefs.h >>conftest.$ac_ext
21239 cat >>conftest.$ac_ext <<_ACEOF
21240 /* end confdefs.h. */
21241 $ac_includes_default
21242 #include <$ac_header>
21243 _ACEOF
21244 rm -f conftest.$ac_objext
21245 if { (ac_try="$ac_compile"
21246 case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21249 esac
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_compile") 2>conftest.er1
21252 ac_status=$?
21253 grep -v '^ *+' conftest.er1 >conftest.err
21254 rm -f conftest.er1
21255 cat conftest.err >&5
21256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21257 (exit $ac_status); } && {
21258 test -z "$ac_c_werror_flag" ||
21259 test ! -s conftest.err
21260 } && test -s conftest.$ac_objext; then
21261 ac_header_compiler=yes
21262 else
21263 echo "$as_me: failed program was:" >&5
21264 sed 's/^/| /' conftest.$ac_ext >&5
21265
21266 ac_header_compiler=no
21267 fi
21268
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21271 echo "${ECHO_T}$ac_header_compiler" >&6; }
21272
21273 # Is the header present?
21274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21276 cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h. */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h. */
21282 #include <$ac_header>
21283 _ACEOF
21284 if { (ac_try="$ac_cpp conftest.$ac_ext"
21285 case "(($ac_try" in
21286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21287 *) ac_try_echo=$ac_try;;
21288 esac
21289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21291 ac_status=$?
21292 grep -v '^ *+' conftest.er1 >conftest.err
21293 rm -f conftest.er1
21294 cat conftest.err >&5
21295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21296 (exit $ac_status); } >/dev/null && {
21297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21298 test ! -s conftest.err
21299 }; then
21300 ac_header_preproc=yes
21301 else
21302 echo "$as_me: failed program was:" >&5
21303 sed 's/^/| /' conftest.$ac_ext >&5
21304
21305 ac_header_preproc=no
21306 fi
21307
21308 rm -f conftest.err conftest.$ac_ext
21309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21310 echo "${ECHO_T}$ac_header_preproc" >&6; }
21311
21312 # So? What about this header?
21313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21314 yes:no: )
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21316 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21318 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21319 ac_header_preproc=yes
21320 ;;
21321 no:yes:* )
21322 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21323 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21324 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21325 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21326 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21327 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21328 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21329 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21331 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21332 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21333 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21334
21335 ;;
21336 esac
21337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 else
21342 eval "$as_ac_Header=\$ac_header_preproc"
21343 fi
21344 ac_res=`eval echo '${'$as_ac_Header'}'`
21345 { echo "$as_me:$LINENO: result: $ac_res" >&5
21346 echo "${ECHO_T}$ac_res" >&6; }
21347
21348 fi
21349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21350 cat >>confdefs.h <<_ACEOF
21351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21352 _ACEOF
21353
21354 fi
21355
21356 done
21357
21358
21359 for ac_header in float.h
21360 do
21361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21367 fi
21368 ac_res=`eval echo '${'$as_ac_Header'}'`
21369 { echo "$as_me:$LINENO: result: $ac_res" >&5
21370 echo "${ECHO_T}$ac_res" >&6; }
21371 else
21372 # Is the header compilable?
21373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21375 cat >conftest.$ac_ext <<_ACEOF
21376 /* confdefs.h. */
21377 _ACEOF
21378 cat confdefs.h >>conftest.$ac_ext
21379 cat >>conftest.$ac_ext <<_ACEOF
21380 /* end confdefs.h. */
21381 $ac_includes_default
21382 #include <$ac_header>
21383 _ACEOF
21384 rm -f conftest.$ac_objext
21385 if { (ac_try="$ac_compile"
21386 case "(($ac_try" in
21387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388 *) ac_try_echo=$ac_try;;
21389 esac
21390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21391 (eval "$ac_compile") 2>conftest.er1
21392 ac_status=$?
21393 grep -v '^ *+' conftest.er1 >conftest.err
21394 rm -f conftest.er1
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } && {
21398 test -z "$ac_c_werror_flag" ||
21399 test ! -s conftest.err
21400 } && test -s conftest.$ac_objext; then
21401 ac_header_compiler=yes
21402 else
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 ac_header_compiler=no
21407 fi
21408
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21411 echo "${ECHO_T}$ac_header_compiler" >&6; }
21412
21413 # Is the header present?
21414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21416 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h. */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 #include <$ac_header>
21423 _ACEOF
21424 if { (ac_try="$ac_cpp conftest.$ac_ext"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21431 ac_status=$?
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } >/dev/null && {
21437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 }; then
21440 ac_header_preproc=yes
21441 else
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 ac_header_preproc=no
21446 fi
21447
21448 rm -f conftest.err conftest.$ac_ext
21449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21450 echo "${ECHO_T}$ac_header_preproc" >&6; }
21451
21452 # So? What about this header?
21453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21454 yes:no: )
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21459 ac_header_preproc=yes
21460 ;;
21461 no:yes:* )
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21474
21475 ;;
21476 esac
21477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482 eval "$as_ac_Header=\$ac_header_preproc"
21483 fi
21484 ac_res=`eval echo '${'$as_ac_Header'}'`
21485 { echo "$as_me:$LINENO: result: $ac_res" >&5
21486 echo "${ECHO_T}$ac_res" >&6; }
21487
21488 fi
21489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21490 cat >>confdefs.h <<_ACEOF
21491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21492 _ACEOF
21493
21494 fi
21495
21496 done
21497
21498
21499
21500 for ac_func in strchr memcpy
21501 do
21502 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21503 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21504 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21505 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508 cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h. */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21515 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21516 #define $ac_func innocuous_$ac_func
21517
21518 /* System header to define __stub macros and hopefully few prototypes,
21519 which can conflict with char $ac_func (); below.
21520 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21521 <limits.h> exists even on freestanding compilers. */
21522
21523 #ifdef __STDC__
21524 # include <limits.h>
21525 #else
21526 # include <assert.h>
21527 #endif
21528
21529 #undef $ac_func
21530
21531 /* Override any GCC internal prototype to avoid an error.
21532 Use char because int might match the return type of a GCC
21533 builtin and then its argument prototype would still apply. */
21534 #ifdef __cplusplus
21535 extern "C"
21536 #endif
21537 char $ac_func ();
21538 /* The GNU C library defines this for functions which it implements
21539 to always fail with ENOSYS. Some functions are actually named
21540 something starting with __ and the normal name is an alias. */
21541 #if defined __stub_$ac_func || defined __stub___$ac_func
21542 choke me
21543 #endif
21544
21545 int
21546 main ()
21547 {
21548 return $ac_func ();
21549 ;
21550 return 0;
21551 }
21552 _ACEOF
21553 rm -f conftest.$ac_objext conftest$ac_exeext
21554 if { (ac_try="$ac_link"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21558 esac
21559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_link") 2>conftest.er1
21561 ac_status=$?
21562 grep -v '^ *+' conftest.er1 >conftest.err
21563 rm -f conftest.er1
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21566 (exit $ac_status); } && {
21567 test -z "$ac_c_werror_flag" ||
21568 test ! -s conftest.err
21569 } && test -s conftest$ac_exeext &&
21570 $as_test_x conftest$ac_exeext; then
21571 eval "$as_ac_var=yes"
21572 else
21573 echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.$ac_ext >&5
21575
21576 eval "$as_ac_var=no"
21577 fi
21578
21579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21580 conftest$ac_exeext conftest.$ac_ext
21581 fi
21582 ac_res=`eval echo '${'$as_ac_var'}'`
21583 { echo "$as_me:$LINENO: result: $ac_res" >&5
21584 echo "${ECHO_T}$ac_res" >&6; }
21585 if test `eval echo '${'$as_ac_var'}'` = yes; then
21586 cat >>confdefs.h <<_ACEOF
21587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21588 _ACEOF
21589
21590 fi
21591 done
21592
21593
21594 for ac_header in sys/time.h
21595 do
21596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21601 echo $ECHO_N "(cached) $ECHO_C" >&6
21602 fi
21603 ac_res=`eval echo '${'$as_ac_Header'}'`
21604 { echo "$as_me:$LINENO: result: $ac_res" >&5
21605 echo "${ECHO_T}$ac_res" >&6; }
21606 else
21607 # Is the header compilable?
21608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h. */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 $ac_includes_default
21617 #include <$ac_header>
21618 _ACEOF
21619 rm -f conftest.$ac_objext
21620 if { (ac_try="$ac_compile"
21621 case "(($ac_try" in
21622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21623 *) ac_try_echo=$ac_try;;
21624 esac
21625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21626 (eval "$ac_compile") 2>conftest.er1
21627 ac_status=$?
21628 grep -v '^ *+' conftest.er1 >conftest.err
21629 rm -f conftest.er1
21630 cat conftest.err >&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); } && {
21633 test -z "$ac_c_werror_flag" ||
21634 test ! -s conftest.err
21635 } && test -s conftest.$ac_objext; then
21636 ac_header_compiler=yes
21637 else
21638 echo "$as_me: failed program was:" >&5
21639 sed 's/^/| /' conftest.$ac_ext >&5
21640
21641 ac_header_compiler=no
21642 fi
21643
21644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21646 echo "${ECHO_T}$ac_header_compiler" >&6; }
21647
21648 # Is the header present?
21649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21651 cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h. */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 #include <$ac_header>
21658 _ACEOF
21659 if { (ac_try="$ac_cpp conftest.$ac_ext"
21660 case "(($ac_try" in
21661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21662 *) ac_try_echo=$ac_try;;
21663 esac
21664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21666 ac_status=$?
21667 grep -v '^ *+' conftest.er1 >conftest.err
21668 rm -f conftest.er1
21669 cat conftest.err >&5
21670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21671 (exit $ac_status); } >/dev/null && {
21672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21673 test ! -s conftest.err
21674 }; then
21675 ac_header_preproc=yes
21676 else
21677 echo "$as_me: failed program was:" >&5
21678 sed 's/^/| /' conftest.$ac_ext >&5
21679
21680 ac_header_preproc=no
21681 fi
21682
21683 rm -f conftest.err conftest.$ac_ext
21684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21685 echo "${ECHO_T}$ac_header_preproc" >&6; }
21686
21687 # So? What about this header?
21688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21689 yes:no: )
21690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21694 ac_header_preproc=yes
21695 ;;
21696 no:yes:* )
21697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21709
21710 ;;
21711 esac
21712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21716 else
21717 eval "$as_ac_Header=\$ac_header_preproc"
21718 fi
21719 ac_res=`eval echo '${'$as_ac_Header'}'`
21720 { echo "$as_me:$LINENO: result: $ac_res" >&5
21721 echo "${ECHO_T}$ac_res" >&6; }
21722
21723 fi
21724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21725 cat >>confdefs.h <<_ACEOF
21726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21727 _ACEOF
21728
21729 fi
21730
21731 done
21732
21733 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21734 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
21735 if test "${ac_cv_header_time+set}" = set; then
21736 echo $ECHO_N "(cached) $ECHO_C" >&6
21737 else
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744 #include <sys/types.h>
21745 #include <sys/time.h>
21746 #include <time.h>
21747
21748 int
21749 main ()
21750 {
21751 if ((struct tm *) 0)
21752 return 0;
21753 ;
21754 return 0;
21755 }
21756 _ACEOF
21757 rm -f conftest.$ac_objext
21758 if { (ac_try="$ac_compile"
21759 case "(($ac_try" in
21760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761 *) ac_try_echo=$ac_try;;
21762 esac
21763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21764 (eval "$ac_compile") 2>conftest.er1
21765 ac_status=$?
21766 grep -v '^ *+' conftest.er1 >conftest.err
21767 rm -f conftest.er1
21768 cat conftest.err >&5
21769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21770 (exit $ac_status); } && {
21771 test -z "$ac_c_werror_flag" ||
21772 test ! -s conftest.err
21773 } && test -s conftest.$ac_objext; then
21774 ac_cv_header_time=yes
21775 else
21776 echo "$as_me: failed program was:" >&5
21777 sed 's/^/| /' conftest.$ac_ext >&5
21778
21779 ac_cv_header_time=no
21780 fi
21781
21782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21783 fi
21784 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21785 echo "${ECHO_T}$ac_cv_header_time" >&6; }
21786 if test $ac_cv_header_time = yes; then
21787
21788 cat >>confdefs.h <<\_ACEOF
21789 #define TIME_WITH_SYS_TIME 1
21790 _ACEOF
21791
21792 fi
21793
21794
21795
21796
21797
21798
21799 for ac_header in errno.h sys/stat.h sys/types.h limits.h
21800 do
21801 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21802 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21803 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21804 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21805 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21806 echo $ECHO_N "(cached) $ECHO_C" >&6
21807 fi
21808 ac_res=`eval echo '${'$as_ac_Header'}'`
21809 { echo "$as_me:$LINENO: result: $ac_res" >&5
21810 echo "${ECHO_T}$ac_res" >&6; }
21811 else
21812 # Is the header compilable?
21813 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21814 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h. */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 $ac_includes_default
21822 #include <$ac_header>
21823 _ACEOF
21824 rm -f conftest.$ac_objext
21825 if { (ac_try="$ac_compile"
21826 case "(($ac_try" in
21827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21828 *) ac_try_echo=$ac_try;;
21829 esac
21830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21831 (eval "$ac_compile") 2>conftest.er1
21832 ac_status=$?
21833 grep -v '^ *+' conftest.er1 >conftest.err
21834 rm -f conftest.er1
21835 cat conftest.err >&5
21836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21837 (exit $ac_status); } && {
21838 test -z "$ac_c_werror_flag" ||
21839 test ! -s conftest.err
21840 } && test -s conftest.$ac_objext; then
21841 ac_header_compiler=yes
21842 else
21843 echo "$as_me: failed program was:" >&5
21844 sed 's/^/| /' conftest.$ac_ext >&5
21845
21846 ac_header_compiler=no
21847 fi
21848
21849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21850 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21851 echo "${ECHO_T}$ac_header_compiler" >&6; }
21852
21853 # Is the header present?
21854 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21856 cat >conftest.$ac_ext <<_ACEOF
21857 /* confdefs.h. */
21858 _ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 #include <$ac_header>
21863 _ACEOF
21864 if { (ac_try="$ac_cpp conftest.$ac_ext"
21865 case "(($ac_try" in
21866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21867 *) ac_try_echo=$ac_try;;
21868 esac
21869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21870 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21871 ac_status=$?
21872 grep -v '^ *+' conftest.er1 >conftest.err
21873 rm -f conftest.er1
21874 cat conftest.err >&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); } >/dev/null && {
21877 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21878 test ! -s conftest.err
21879 }; then
21880 ac_header_preproc=yes
21881 else
21882 echo "$as_me: failed program was:" >&5
21883 sed 's/^/| /' conftest.$ac_ext >&5
21884
21885 ac_header_preproc=no
21886 fi
21887
21888 rm -f conftest.err conftest.$ac_ext
21889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21890 echo "${ECHO_T}$ac_header_preproc" >&6; }
21891
21892 # So? What about this header?
21893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21894 yes:no: )
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21899 ac_header_preproc=yes
21900 ;;
21901 no:yes:* )
21902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21914
21915 ;;
21916 esac
21917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21920 echo $ECHO_N "(cached) $ECHO_C" >&6
21921 else
21922 eval "$as_ac_Header=\$ac_header_preproc"
21923 fi
21924 ac_res=`eval echo '${'$as_ac_Header'}'`
21925 { echo "$as_me:$LINENO: result: $ac_res" >&5
21926 echo "${ECHO_T}$ac_res" >&6; }
21927
21928 fi
21929 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21930 cat >>confdefs.h <<_ACEOF
21931 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21932 _ACEOF
21933
21934 fi
21935
21936 done
21937
21938
21939 for ac_header in sysfs/libsysfs.h
21940 do
21941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21946 echo $ECHO_N "(cached) $ECHO_C" >&6
21947 fi
21948 ac_res=`eval echo '${'$as_ac_Header'}'`
21949 { echo "$as_me:$LINENO: result: $ac_res" >&5
21950 echo "${ECHO_T}$ac_res" >&6; }
21951 else
21952 # Is the header compilable?
21953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21955 cat >conftest.$ac_ext <<_ACEOF
21956 /* confdefs.h. */
21957 _ACEOF
21958 cat confdefs.h >>conftest.$ac_ext
21959 cat >>conftest.$ac_ext <<_ACEOF
21960 /* end confdefs.h. */
21961 $ac_includes_default
21962 #include <$ac_header>
21963 _ACEOF
21964 rm -f conftest.$ac_objext
21965 if { (ac_try="$ac_compile"
21966 case "(($ac_try" in
21967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21968 *) ac_try_echo=$ac_try;;
21969 esac
21970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21971 (eval "$ac_compile") 2>conftest.er1
21972 ac_status=$?
21973 grep -v '^ *+' conftest.er1 >conftest.err
21974 rm -f conftest.er1
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } && {
21978 test -z "$ac_c_werror_flag" ||
21979 test ! -s conftest.err
21980 } && test -s conftest.$ac_objext; then
21981 ac_header_compiler=yes
21982 else
21983 echo "$as_me: failed program was:" >&5
21984 sed 's/^/| /' conftest.$ac_ext >&5
21985
21986 ac_header_compiler=no
21987 fi
21988
21989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21991 echo "${ECHO_T}$ac_header_compiler" >&6; }
21992
21993 # Is the header present?
21994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21996 cat >conftest.$ac_ext <<_ACEOF
21997 /* confdefs.h. */
21998 _ACEOF
21999 cat confdefs.h >>conftest.$ac_ext
22000 cat >>conftest.$ac_ext <<_ACEOF
22001 /* end confdefs.h. */
22002 #include <$ac_header>
22003 _ACEOF
22004 if { (ac_try="$ac_cpp conftest.$ac_ext"
22005 case "(($ac_try" in
22006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007 *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22011 ac_status=$?
22012 grep -v '^ *+' conftest.er1 >conftest.err
22013 rm -f conftest.er1
22014 cat conftest.err >&5
22015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016 (exit $ac_status); } >/dev/null && {
22017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22018 test ! -s conftest.err
22019 }; then
22020 ac_header_preproc=yes
22021 else
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22024
22025 ac_header_preproc=no
22026 fi
22027
22028 rm -f conftest.err conftest.$ac_ext
22029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22030 echo "${ECHO_T}$ac_header_preproc" >&6; }
22031
22032 # So? What about this header?
22033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22034 yes:no: )
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22039 ac_header_preproc=yes
22040 ;;
22041 no:yes:* )
22042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22054
22055 ;;
22056 esac
22057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 else
22062 eval "$as_ac_Header=\$ac_header_preproc"
22063 fi
22064 ac_res=`eval echo '${'$as_ac_Header'}'`
22065 { echo "$as_me:$LINENO: result: $ac_res" >&5
22066 echo "${ECHO_T}$ac_res" >&6; }
22067
22068 fi
22069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22070 cat >>confdefs.h <<_ACEOF
22071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22072 _ACEOF
22073
22074 fi
22075
22076 done
22077
22078
22079 for ac_header in IOKit/IOKitLib.h
22080 do
22081 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22083 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22084 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22086 echo $ECHO_N "(cached) $ECHO_C" >&6
22087 fi
22088 ac_res=`eval echo '${'$as_ac_Header'}'`
22089 { echo "$as_me:$LINENO: result: $ac_res" >&5
22090 echo "${ECHO_T}$ac_res" >&6; }
22091 else
22092 # Is the header compilable?
22093 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22094 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22095 cat >conftest.$ac_ext <<_ACEOF
22096 /* confdefs.h. */
22097 _ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22101 $ac_includes_default
22102 #include <$ac_header>
22103 _ACEOF
22104 rm -f conftest.$ac_objext
22105 if { (ac_try="$ac_compile"
22106 case "(($ac_try" in
22107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22108 *) ac_try_echo=$ac_try;;
22109 esac
22110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22111 (eval "$ac_compile") 2>conftest.er1
22112 ac_status=$?
22113 grep -v '^ *+' conftest.er1 >conftest.err
22114 rm -f conftest.er1
22115 cat conftest.err >&5
22116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22117 (exit $ac_status); } && {
22118 test -z "$ac_c_werror_flag" ||
22119 test ! -s conftest.err
22120 } && test -s conftest.$ac_objext; then
22121 ac_header_compiler=yes
22122 else
22123 echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22125
22126 ac_header_compiler=no
22127 fi
22128
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22131 echo "${ECHO_T}$ac_header_compiler" >&6; }
22132
22133 # Is the header present?
22134 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22135 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22136 cat >conftest.$ac_ext <<_ACEOF
22137 /* confdefs.h. */
22138 _ACEOF
22139 cat confdefs.h >>conftest.$ac_ext
22140 cat >>conftest.$ac_ext <<_ACEOF
22141 /* end confdefs.h. */
22142 #include <$ac_header>
22143 _ACEOF
22144 if { (ac_try="$ac_cpp conftest.$ac_ext"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22148 esac
22149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22151 ac_status=$?
22152 grep -v '^ *+' conftest.er1 >conftest.err
22153 rm -f conftest.er1
22154 cat conftest.err >&5
22155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22156 (exit $ac_status); } >/dev/null && {
22157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22158 test ! -s conftest.err
22159 }; then
22160 ac_header_preproc=yes
22161 else
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165 ac_header_preproc=no
22166 fi
22167
22168 rm -f conftest.err conftest.$ac_ext
22169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22170 echo "${ECHO_T}$ac_header_preproc" >&6; }
22171
22172 # So? What about this header?
22173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22174 yes:no: )
22175 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22176 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22177 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22178 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22179 ac_header_preproc=yes
22180 ;;
22181 no:yes:* )
22182 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22183 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22184 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22185 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22186 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22187 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22188 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22189 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22190 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22191 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22192 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22193 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22194
22195 ;;
22196 esac
22197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22200 echo $ECHO_N "(cached) $ECHO_C" >&6
22201 else
22202 eval "$as_ac_Header=\$ac_header_preproc"
22203 fi
22204 ac_res=`eval echo '${'$as_ac_Header'}'`
22205 { echo "$as_me:$LINENO: result: $ac_res" >&5
22206 echo "${ECHO_T}$ac_res" >&6; }
22207
22208 fi
22209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22210 cat >>confdefs.h <<_ACEOF
22211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22212 _ACEOF
22213 { echo "$as_me:$LINENO: checking for main in -lIOKit" >&5
22214 echo $ECHO_N "checking for main in -lIOKit... $ECHO_C" >&6; }
22215 if test "${ac_cv_lib_IOKit_main+set}" = set; then
22216 echo $ECHO_N "(cached) $ECHO_C" >&6
22217 else
22218 ac_check_lib_save_LIBS=$LIBS
22219 LIBS="-lIOKit $LIBS"
22220 cat >conftest.$ac_ext <<_ACEOF
22221 /* confdefs.h. */
22222 _ACEOF
22223 cat confdefs.h >>conftest.$ac_ext
22224 cat >>conftest.$ac_ext <<_ACEOF
22225 /* end confdefs.h. */
22226
22227
22228 int
22229 main ()
22230 {
22231 return main ();
22232 ;
22233 return 0;
22234 }
22235 _ACEOF
22236 rm -f conftest.$ac_objext conftest$ac_exeext
22237 if { (ac_try="$ac_link"
22238 case "(($ac_try" in
22239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22241 esac
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243 (eval "$ac_link") 2>conftest.er1
22244 ac_status=$?
22245 grep -v '^ *+' conftest.er1 >conftest.err
22246 rm -f conftest.er1
22247 cat conftest.err >&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest$ac_exeext &&
22253 $as_test_x conftest$ac_exeext; then
22254 ac_cv_lib_IOKit_main=yes
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259 ac_cv_lib_IOKit_main=no
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22263 conftest$ac_exeext conftest.$ac_ext
22264 LIBS=$ac_check_lib_save_LIBS
22265 fi
22266 { echo "$as_me:$LINENO: result: $ac_cv_lib_IOKit_main" >&5
22267 echo "${ECHO_T}$ac_cv_lib_IOKit_main" >&6; }
22268 if test $ac_cv_lib_IOKit_main = yes; then
22269
22270 cat >>confdefs.h <<\_ACEOF
22271 #define HAVE_IOKIT_IOKITLIB_H 1
22272 _ACEOF
22273
22274 MP4FF_LIBS="-lIOKit"
22275
22276 fi
22277
22278 fi
22279
22280 done
22281
22282
22283 for ac_func in getpwuid
22284 do
22285 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22286 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22287 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22288 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22289 echo $ECHO_N "(cached) $ECHO_C" >&6
22290 else
22291 cat >conftest.$ac_ext <<_ACEOF
22292 /* confdefs.h. */
22293 _ACEOF
22294 cat confdefs.h >>conftest.$ac_ext
22295 cat >>conftest.$ac_ext <<_ACEOF
22296 /* end confdefs.h. */
22297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22299 #define $ac_func innocuous_$ac_func
22300
22301 /* System header to define __stub macros and hopefully few prototypes,
22302 which can conflict with char $ac_func (); below.
22303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22304 <limits.h> exists even on freestanding compilers. */
22305
22306 #ifdef __STDC__
22307 # include <limits.h>
22308 #else
22309 # include <assert.h>
22310 #endif
22311
22312 #undef $ac_func
22313
22314 /* Override any GCC internal prototype to avoid an error.
22315 Use char because int might match the return type of a GCC
22316 builtin and then its argument prototype would still apply. */
22317 #ifdef __cplusplus
22318 extern "C"
22319 #endif
22320 char $ac_func ();
22321 /* The GNU C library defines this for functions which it implements
22322 to always fail with ENOSYS. Some functions are actually named
22323 something starting with __ and the normal name is an alias. */
22324 #if defined __stub_$ac_func || defined __stub___$ac_func
22325 choke me
22326 #endif
22327
22328 int
22329 main ()
22330 {
22331 return $ac_func ();
22332 ;
22333 return 0;
22334 }
22335 _ACEOF
22336 rm -f conftest.$ac_objext conftest$ac_exeext
22337 if { (ac_try="$ac_link"
22338 case "(($ac_try" in
22339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22340 *) ac_try_echo=$ac_try;;
22341 esac
22342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22343 (eval "$ac_link") 2>conftest.er1
22344 ac_status=$?
22345 grep -v '^ *+' conftest.er1 >conftest.err
22346 rm -f conftest.er1
22347 cat conftest.err >&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } && {
22350 test -z "$ac_c_werror_flag" ||
22351 test ! -s conftest.err
22352 } && test -s conftest$ac_exeext &&
22353 $as_test_x conftest$ac_exeext; then
22354 eval "$as_ac_var=yes"
22355 else
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22358
22359 eval "$as_ac_var=no"
22360 fi
22361
22362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22363 conftest$ac_exeext conftest.$ac_ext
22364 fi
22365 ac_res=`eval echo '${'$as_ac_var'}'`
22366 { echo "$as_me:$LINENO: result: $ac_res" >&5
22367 echo "${ECHO_T}$ac_res" >&6; }
22368 if test `eval echo '${'$as_ac_var'}'` = yes; then
22369 cat >>confdefs.h <<_ACEOF
22370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22371 _ACEOF
22372
22373 fi
22374 done
22375
22376
22377 { echo "$as_me:$LINENO: checking for inline" >&5
22378 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
22379 if test "${ac_cv_c_inline+set}" = set; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22381 else
22382 ac_cv_c_inline=no
22383 for ac_kw in inline __inline__ __inline; do
22384 cat >conftest.$ac_ext <<_ACEOF
22385 /* confdefs.h. */
22386 _ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22390 #ifndef __cplusplus
22391 typedef int foo_t;
22392 static $ac_kw foo_t static_foo () {return 0; }
22393 $ac_kw foo_t foo () {return 0; }
22394 #endif
22395
22396 _ACEOF
22397 rm -f conftest.$ac_objext
22398 if { (ac_try="$ac_compile"
22399 case "(($ac_try" in
22400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22401 *) ac_try_echo=$ac_try;;
22402 esac
22403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22404 (eval "$ac_compile") 2>conftest.er1
22405 ac_status=$?
22406 grep -v '^ *+' conftest.er1 >conftest.err
22407 rm -f conftest.er1
22408 cat conftest.err >&5
22409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22410 (exit $ac_status); } && {
22411 test -z "$ac_c_werror_flag" ||
22412 test ! -s conftest.err
22413 } && test -s conftest.$ac_objext; then
22414 ac_cv_c_inline=$ac_kw
22415 else
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22418
22419
22420 fi
22421
22422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22423 test "$ac_cv_c_inline" != no && break
22424 done
22425
22426 fi
22427 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22428 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
22429
22430
22431 case $ac_cv_c_inline in
22432 inline | yes) ;;
22433 *)
22434 case $ac_cv_c_inline in
22435 no) ac_val=;;
22436 *) ac_val=$ac_cv_c_inline;;
22437 esac
22438 cat >>confdefs.h <<_ACEOF
22439 #ifndef __cplusplus
22440 #define inline $ac_val
22441 #endif
22442 _ACEOF
22443 ;;
22444 esac
22445
22446 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22447 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
22448 if test "${ac_cv_c_bigendian+set}" = set; then
22449 echo $ECHO_N "(cached) $ECHO_C" >&6
22450 else
22451 # See if sys/param.h defines the BYTE_ORDER macro.
22452 cat >conftest.$ac_ext <<_ACEOF
22453 /* confdefs.h. */
22454 _ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 #include <sys/types.h>
22459 #include <sys/param.h>
22460
22461 int
22462 main ()
22463 {
22464 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
22465 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
22466 bogus endian macros
22467 #endif
22468
22469 ;
22470 return 0;
22471 }
22472 _ACEOF
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477 *) ac_try_echo=$ac_try;;
22478 esac
22479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22480 (eval "$ac_compile") 2>conftest.er1
22481 ac_status=$?
22482 grep -v '^ *+' conftest.er1 >conftest.err
22483 rm -f conftest.er1
22484 cat conftest.err >&5
22485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } && {
22487 test -z "$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22489 } && test -s conftest.$ac_objext; then
22490 # It does; now see whether it defined to BIG_ENDIAN or not.
22491 cat >conftest.$ac_ext <<_ACEOF
22492 /* confdefs.h. */
22493 _ACEOF
22494 cat confdefs.h >>conftest.$ac_ext
22495 cat >>conftest.$ac_ext <<_ACEOF
22496 /* end confdefs.h. */
22497 #include <sys/types.h>
22498 #include <sys/param.h>
22499
22500 int
22501 main ()
22502 {
22503 #if BYTE_ORDER != BIG_ENDIAN
22504 not big endian
22505 #endif
22506
22507 ;
22508 return 0;
22509 }
22510 _ACEOF
22511 rm -f conftest.$ac_objext
22512 if { (ac_try="$ac_compile"
22513 case "(($ac_try" in
22514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22515 *) ac_try_echo=$ac_try;;
22516 esac
22517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22518 (eval "$ac_compile") 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && {
22525 test -z "$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 } && test -s conftest.$ac_objext; then
22528 ac_cv_c_bigendian=yes
22529 else
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22532
22533 ac_cv_c_bigendian=no
22534 fi
22535
22536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22537 else
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22540
22541 # It does not; compile a test program.
22542 if test "$cross_compiling" = yes; then
22543 # try to guess the endianness by grepping values into an object file
22544 ac_cv_c_bigendian=unknown
22545 cat >conftest.$ac_ext <<_ACEOF
22546 /* confdefs.h. */
22547 _ACEOF
22548 cat confdefs.h >>conftest.$ac_ext
22549 cat >>conftest.$ac_ext <<_ACEOF
22550 /* end confdefs.h. */
22551 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22552 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22553 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
22554 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22555 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22556 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
22557 int
22558 main ()
22559 {
22560 _ascii (); _ebcdic ();
22561 ;
22562 return 0;
22563 }
22564 _ACEOF
22565 rm -f conftest.$ac_objext
22566 if { (ac_try="$ac_compile"
22567 case "(($ac_try" in
22568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569 *) ac_try_echo=$ac_try;;
22570 esac
22571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572 (eval "$ac_compile") 2>conftest.er1
22573 ac_status=$?
22574 grep -v '^ *+' conftest.er1 >conftest.err
22575 rm -f conftest.er1
22576 cat conftest.err >&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); } && {
22579 test -z "$ac_c_werror_flag" ||
22580 test ! -s conftest.err
22581 } && test -s conftest.$ac_objext; then
22582 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
22583 ac_cv_c_bigendian=yes
22584 fi
22585 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22586 if test "$ac_cv_c_bigendian" = unknown; then
22587 ac_cv_c_bigendian=no
22588 else
22589 # finding both strings is unlikely to happen, but who knows?
22590 ac_cv_c_bigendian=unknown
22591 fi
22592 fi
22593 else
22594 echo "$as_me: failed program was:" >&5
22595 sed 's/^/| /' conftest.$ac_ext >&5
22596
22597
22598 fi
22599
22600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22601 else
22602 cat >conftest.$ac_ext <<_ACEOF
22603 /* confdefs.h. */
22604 _ACEOF
22605 cat confdefs.h >>conftest.$ac_ext
22606 cat >>conftest.$ac_ext <<_ACEOF
22607 /* end confdefs.h. */
22608 $ac_includes_default
22609 int
22610 main ()
22611 {
22612
22613 /* Are we little or big endian? From Harbison&Steele. */
22614 union
22615 {
22616 long int l;
22617 char c[sizeof (long int)];
22618 } u;
22619 u.l = 1;
22620 return u.c[sizeof (long int) - 1] == 1;
22621
22622 ;
22623 return 0;
22624 }
22625 _ACEOF
22626 rm -f conftest$ac_exeext
22627 if { (ac_try="$ac_link"
22628 case "(($ac_try" in
22629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22630 *) ac_try_echo=$ac_try;;
22631 esac
22632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22633 (eval "$ac_link") 2>&5
22634 ac_status=$?
22635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22637 { (case "(($ac_try" in
22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639 *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_try") 2>&5
22643 ac_status=$?
22644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; }; then
22646 ac_cv_c_bigendian=no
22647 else
22648 echo "$as_me: program exited with status $ac_status" >&5
22649 echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22651
22652 ( exit $ac_status )
22653 ac_cv_c_bigendian=yes
22654 fi
22655 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22656 fi
22657
22658
22659 fi
22660
22661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22662 fi
22663 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
22664 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
22665 case $ac_cv_c_bigendian in
22666 yes)
22667
22668 cat >>confdefs.h <<\_ACEOF
22669 #define WORDS_BIGENDIAN 1
22670 _ACEOF
22671 ;;
22672 no)
22673 ;;
22674 *)
22675 { { echo "$as_me:$LINENO: error: unknown endianness
22676 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
22677 echo "$as_me: error: unknown endianness
22678 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
22679 { (exit 1); exit 1; }; } ;;
22680 esac
22681
22682
22683 { echo "$as_me:$LINENO: checking for off_t" >&5
22684 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
22685 if test "${ac_cv_type_off_t+set}" = set; then
22686 echo $ECHO_N "(cached) $ECHO_C" >&6
22687 else
22688 cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h. */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22694 $ac_includes_default
22695 typedef off_t ac__type_new_;
22696 int
22697 main ()
22698 {
22699 if ((ac__type_new_ *) 0)
22700 return 0;
22701 if (sizeof (ac__type_new_))
22702 return 0;
22703 ;
22704 return 0;
22705 }
22706 _ACEOF
22707 rm -f conftest.$ac_objext
22708 if { (ac_try="$ac_compile"
22709 case "(($ac_try" in
22710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711 *) ac_try_echo=$ac_try;;
22712 esac
22713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22714 (eval "$ac_compile") 2>conftest.er1
22715 ac_status=$?
22716 grep -v '^ *+' conftest.er1 >conftest.err
22717 rm -f conftest.er1
22718 cat conftest.err >&5
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); } && {
22721 test -z "$ac_c_werror_flag" ||
22722 test ! -s conftest.err
22723 } && test -s conftest.$ac_objext; then
22724 ac_cv_type_off_t=yes
22725 else
22726 echo "$as_me: failed program was:" >&5
22727 sed 's/^/| /' conftest.$ac_ext >&5
22728
22729 ac_cv_type_off_t=no
22730 fi
22731
22732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22733 fi
22734 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22735 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
22736 if test $ac_cv_type_off_t = yes; then
22737 :
22738 else
22739
22740 cat >>confdefs.h <<_ACEOF
22741 #define off_t long int
22742 _ACEOF
22743
22744 fi
22745
22746
22747
22748
22749 # AC_C99_FUNC_LRINTF
22750 { echo "$as_me:$LINENO: checking for lrintf" >&5
22751 echo $ECHO_N "checking for lrintf... $ECHO_C" >&6; }
22752 if test "${ac_cv_c99_lrintf+set}" = set; then
22753 echo $ECHO_N "(cached) $ECHO_C" >&6
22754 else
22755
22756 lrintf_save_CFLAGS=$CFLAGS
22757 CFLAGS="-O -lm"
22758 cat >conftest.$ac_ext <<_ACEOF
22759 /* confdefs.h. */
22760 _ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22764
22765 #define _ISOC9X_SOURCE 1
22766 #define _ISOC99_SOURCE 1
22767 #define __USE_ISOC99 1
22768 #define __USE_ISOC9X 1
22769
22770 #include <math.h>
22771
22772 int
22773 main ()
22774 {
22775 if (!lrintf(3.14159)) lrintf(2.7183);
22776 ;
22777 return 0;
22778 }
22779 _ACEOF
22780 rm -f conftest.$ac_objext conftest$ac_exeext
22781 if { (ac_try="$ac_link"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22785 esac
22786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_link") 2>conftest.er1
22788 ac_status=$?
22789 grep -v '^ *+' conftest.er1 >conftest.err
22790 rm -f conftest.er1
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest$ac_exeext &&
22797 $as_test_x conftest$ac_exeext; then
22798 ac_cv_c99_lrintf=yes
22799 else
22800 echo "$as_me: failed program was:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22802
22803 ac_cv_c99_lrintf=no
22804 fi
22805
22806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22807 conftest$ac_exeext conftest.$ac_ext
22808
22809 CFLAGS=$lrintf_save_CFLAGS
22810
22811
22812 fi
22813 { echo "$as_me:$LINENO: result: $ac_cv_c99_lrintf" >&5
22814 echo "${ECHO_T}$ac_cv_c99_lrintf" >&6; }
22815
22816 if test "$ac_cv_c99_lrintf" = yes; then
22817
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_LRINTF 1
22820 _ACEOF
22821
22822 fi
22823
22824
22825
22826 { echo "$as_me:$LINENO: checking for float32_t temp" >&5
22827 echo $ECHO_N "checking for float32_t temp... $ECHO_C" >&6; }
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 #include <sys/types.h>,
22835 #include <sys/float.h>
22836 int
22837 main ()
22838 {
22839 float32_t temp;
22840 ;
22841 return 0;
22842 }
22843 _ACEOF
22844 rm -f conftest.$ac_objext
22845 if { (ac_try="$ac_compile"
22846 case "(($ac_try" in
22847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22848 *) ac_try_echo=$ac_try;;
22849 esac
22850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22851 (eval "$ac_compile") 2>conftest.er1
22852 ac_status=$?
22853 grep -v '^ *+' conftest.er1 >conftest.err
22854 rm -f conftest.er1
22855 cat conftest.err >&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } && {
22858 test -z "$ac_c_werror_flag" ||
22859 test ! -s conftest.err
22860 } && test -s conftest.$ac_objext; then
22861 libfaad_ok=yes
22862 else
22863 echo "$as_me: failed program was:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22865
22866 libfaad_ok=no
22867 fi
22868
22869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22870 if test $libfaad_ok = yes; then
22871
22872 cat >>confdefs.h <<\_ACEOF
22873 #define HAVE_FLOAT32_T 1
22874 _ACEOF
22875
22876 { echo "$as_me:$LINENO: result: yes" >&5
22877 echo "${ECHO_T}yes" >&6; }
22878 else
22879 { echo "$as_me:$LINENO: result: no" >&5
22880 echo "${ECHO_T}no" >&6; }
22881 fi
22882
22883
22884
22885 for ac_func in strsep
22886 do
22887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22891 echo $ECHO_N "(cached) $ECHO_C" >&6
22892 else
22893 cat >conftest.$ac_ext <<_ACEOF
22894 /* confdefs.h. */
22895 _ACEOF
22896 cat confdefs.h >>conftest.$ac_ext
22897 cat >>conftest.$ac_ext <<_ACEOF
22898 /* end confdefs.h. */
22899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22901 #define $ac_func innocuous_$ac_func
22902
22903 /* System header to define __stub macros and hopefully few prototypes,
22904 which can conflict with char $ac_func (); below.
22905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22906 <limits.h> exists even on freestanding compilers. */
22907
22908 #ifdef __STDC__
22909 # include <limits.h>
22910 #else
22911 # include <assert.h>
22912 #endif
22913
22914 #undef $ac_func
22915
22916 /* Override any GCC internal prototype to avoid an error.
22917 Use char because int might match the return type of a GCC
22918 builtin and then its argument prototype would still apply. */
22919 #ifdef __cplusplus
22920 extern "C"
22921 #endif
22922 char $ac_func ();
22923 /* The GNU C library defines this for functions which it implements
22924 to always fail with ENOSYS. Some functions are actually named
22925 something starting with __ and the normal name is an alias. */
22926 #if defined __stub_$ac_func || defined __stub___$ac_func
22927 choke me
22928 #endif
22929
22930 int
22931 main ()
22932 {
22933 return $ac_func ();
22934 ;
22935 return 0;
22936 }
22937 _ACEOF
22938 rm -f conftest.$ac_objext conftest$ac_exeext
22939 if { (ac_try="$ac_link"
22940 case "(($ac_try" in
22941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22942 *) ac_try_echo=$ac_try;;
22943 esac
22944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22945 (eval "$ac_link") 2>conftest.er1
22946 ac_status=$?
22947 grep -v '^ *+' conftest.er1 >conftest.err
22948 rm -f conftest.er1
22949 cat conftest.err >&5
22950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22951 (exit $ac_status); } && {
22952 test -z "$ac_c_werror_flag" ||
22953 test ! -s conftest.err
22954 } && test -s conftest$ac_exeext &&
22955 $as_test_x conftest$ac_exeext; then
22956 eval "$as_ac_var=yes"
22957 else
22958 echo "$as_me: failed program was:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22960
22961 eval "$as_ac_var=no"
22962 fi
22963
22964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22965 conftest$ac_exeext conftest.$ac_ext
22966 fi
22967 ac_res=`eval echo '${'$as_ac_var'}'`
22968 { echo "$as_me:$LINENO: result: $ac_res" >&5
22969 echo "${ECHO_T}$ac_res" >&6; }
22970 if test `eval echo '${'$as_ac_var'}'` = yes; then
22971 cat >>confdefs.h <<_ACEOF
22972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22973 _ACEOF
22974
22975 fi
22976 done
22977
22978
22979 # Extract the first word of "mpeg4ip-config", so it can be a program name with args.
22980 set dummy mpeg4ip-config; ac_word=$2
22981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
22982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22983 if test "${ac_cv_prog_external_mp4v2+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22985 else
22986 if test -n "$external_mp4v2"; then
22987 ac_cv_prog_external_mp4v2="$external_mp4v2" # Let the user override the test.
22988 else
22989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22990 for as_dir in $PATH
22991 do
22992 IFS=$as_save_IFS
22993 test -z "$as_dir" && as_dir=.
22994 for ac_exec_ext in '' $ac_executable_extensions; do
22995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22996 ac_cv_prog_external_mp4v2="yes"
22997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22998 break 2
22999 fi
23000 done
23001 done
23002 IFS=$as_save_IFS
23003
23004 test -z "$ac_cv_prog_external_mp4v2" && ac_cv_prog_external_mp4v2="no"
23005 fi
23006 fi
23007 external_mp4v2=$ac_cv_prog_external_mp4v2
23008 if test -n "$external_mp4v2"; then
23009 { echo "$as_me:$LINENO: result: $external_mp4v2" >&5
23010 echo "${ECHO_T}$external_mp4v2" >&6; }
23011 else
23012 { echo "$as_me:$LINENO: result: no" >&5
23013 echo "${ECHO_T}no" >&6; }
23014 fi
23015
23016
23017
23018
23019 if false; then
23020 HAVE_MPEG4IP_PLUG_TRUE=
23021 HAVE_MPEG4IP_PLUG_FALSE='#'
23022 else
23023 HAVE_MPEG4IP_PLUG_TRUE='#'
23024 HAVE_MPEG4IP_PLUG_FALSE=
23025 fi
23026
23027 if test x$WITHMPEG4IP = xyes; then
23028 if test x$external_mp4v2 = xyes; then
23029
23030
23031 if true; then
23032 HAVE_MPEG4IP_PLUG_TRUE=
23033 HAVE_MPEG4IP_PLUG_FALSE='#'
23034 else
23035 HAVE_MPEG4IP_PLUG_TRUE='#'
23036 HAVE_MPEG4IP_PLUG_FALSE=
23037 fi
23038
23039 { echo "$as_me:$LINENO: \"Building MPEG4IP plugin\"" >&5
23040 echo "$as_me: \"Building MPEG4IP plugin\"" >&6;}
23041 else
23042 { echo "$as_me:$LINENO: \"MPEG4IP libmp4v2 is required for MPEG4IP plugin\"" >&5
23043 echo "$as_me: \"MPEG4IP libmp4v2 is required for MPEG4IP plugin\"" >&6;}
23044 fi
23045 fi
23046
23047 if test x$WITHXMMS = xyes; then
23048 for ac_prog in xmms-config
23049 do
23050 # Extract the first word of "$ac_prog", so it can be a program name with args.
23051 set dummy $ac_prog; ac_word=$2
23052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23054 if test "${ac_cv_prog_XMMS_CONFIG+set}" = set; then
23055 echo $ECHO_N "(cached) $ECHO_C" >&6
23056 else
23057 if test -n "$XMMS_CONFIG"; then
23058 ac_cv_prog_XMMS_CONFIG="$XMMS_CONFIG" # Let the user override the test.
23059 else
23060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23061 for as_dir in $PATH
23062 do
23063 IFS=$as_save_IFS
23064 test -z "$as_dir" && as_dir=.
23065 for ac_exec_ext in '' $ac_executable_extensions; do
23066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23067 ac_cv_prog_XMMS_CONFIG="$ac_prog"
23068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23069 break 2
23070 fi
23071 done
23072 done
23073 IFS=$as_save_IFS
23074
23075 fi
23076 fi
23077 XMMS_CONFIG=$ac_cv_prog_XMMS_CONFIG
23078 if test -n "$XMMS_CONFIG"; then
23079 { echo "$as_me:$LINENO: result: $XMMS_CONFIG" >&5
23080 echo "${ECHO_T}$XMMS_CONFIG" >&6; }
23081 else
23082 { echo "$as_me:$LINENO: result: no" >&5
23083 echo "${ECHO_T}no" >&6; }
23084 fi
23085
23086
23087 test -n "$XMMS_CONFIG" && break
23088 done
23089 test -n "$XMMS_CONFIG" || XMMS_CONFIG=""not_found""
23090
23091 if test "$XMMS_CONFIG" = "not_found"; then
23092 { { echo "$as_me:$LINENO: error: \"*** xmms-config not found - xmms plugin can't be build\"" >&5
23093 echo "$as_me: error: \"*** xmms-config not found - xmms plugin can't be build\"" >&2;}
23094 { (exit 1); exit 1; }; }
23095 fi
23096 if test "${ac_cv_header_pthread_h+set}" = set; then
23097 { echo "$as_me:$LINENO: checking for pthread.h" >&5
23098 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
23099 if test "${ac_cv_header_pthread_h+set}" = set; then
23100 echo $ECHO_N "(cached) $ECHO_C" >&6
23101 fi
23102 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23103 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
23104 else
23105 # Is the header compilable?
23106 { echo "$as_me:$LINENO: checking pthread.h usability" >&5
23107 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6; }
23108 cat >conftest.$ac_ext <<_ACEOF
23109 /* confdefs.h. */
23110 _ACEOF
23111 cat confdefs.h >>conftest.$ac_ext
23112 cat >>conftest.$ac_ext <<_ACEOF
23113 /* end confdefs.h. */
23114 $ac_includes_default
23115 #include <pthread.h>
23116 _ACEOF
23117 rm -f conftest.$ac_objext
23118 if { (ac_try="$ac_compile"
23119 case "(($ac_try" in
23120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23121 *) ac_try_echo=$ac_try;;
23122 esac
23123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23124 (eval "$ac_compile") 2>conftest.er1
23125 ac_status=$?
23126 grep -v '^ *+' conftest.er1 >conftest.err
23127 rm -f conftest.er1
23128 cat conftest.err >&5
23129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23130 (exit $ac_status); } && {
23131 test -z "$ac_c_werror_flag" ||
23132 test ! -s conftest.err
23133 } && test -s conftest.$ac_objext; then
23134 ac_header_compiler=yes
23135 else
23136 echo "$as_me: failed program was:" >&5
23137 sed 's/^/| /' conftest.$ac_ext >&5
23138
23139 ac_header_compiler=no
23140 fi
23141
23142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23143 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23144 echo "${ECHO_T}$ac_header_compiler" >&6; }
23145
23146 # Is the header present?
23147 { echo "$as_me:$LINENO: checking pthread.h presence" >&5
23148 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6; }
23149 cat >conftest.$ac_ext <<_ACEOF
23150 /* confdefs.h. */
23151 _ACEOF
23152 cat confdefs.h >>conftest.$ac_ext
23153 cat >>conftest.$ac_ext <<_ACEOF
23154 /* end confdefs.h. */
23155 #include <pthread.h>
23156 _ACEOF
23157 if { (ac_try="$ac_cpp conftest.$ac_ext"
23158 case "(($ac_try" in
23159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23160 *) ac_try_echo=$ac_try;;
23161 esac
23162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23164 ac_status=$?
23165 grep -v '^ *+' conftest.er1 >conftest.err
23166 rm -f conftest.er1
23167 cat conftest.err >&5
23168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23169 (exit $ac_status); } >/dev/null && {
23170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23171 test ! -s conftest.err
23172 }; then
23173 ac_header_preproc=yes
23174 else
23175 echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23177
23178 ac_header_preproc=no
23179 fi
23180
23181 rm -f conftest.err conftest.$ac_ext
23182 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23183 echo "${ECHO_T}$ac_header_preproc" >&6; }
23184
23185 # So? What about this header?
23186 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23187 yes:no: )
23188 { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
23189 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23190 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
23191 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
23192 ac_header_preproc=yes
23193 ;;
23194 no:yes:* )
23195 { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
23196 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
23197 { echo "$as_me:$LINENO: WARNING: pthread.h: check for missing prerequisite headers?" >&5
23198 echo "$as_me: WARNING: pthread.h: check for missing prerequisite headers?" >&2;}
23199 { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
23200 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
23201 { echo "$as_me:$LINENO: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&5
23202 echo "$as_me: WARNING: pthread.h: section \"Present But Cannot Be Compiled\"" >&2;}
23203 { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
23204 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
23205 { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
23206 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
23207
23208 ;;
23209 esac
23210 { echo "$as_me:$LINENO: checking for pthread.h" >&5
23211 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6; }
23212 if test "${ac_cv_header_pthread_h+set}" = set; then
23213 echo $ECHO_N "(cached) $ECHO_C" >&6
23214 else
23215 ac_cv_header_pthread_h=$ac_header_preproc
23216 fi
23217 { echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
23218 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6; }
23219
23220 fi
23221 if test $ac_cv_header_pthread_h = yes; then
23222 :
23223 else
23224 { { echo "$as_me:$LINENO: error: *** pthread headers support not installed or not found" >&5
23225 echo "$as_me: error: *** pthread headers support not installed or not found" >&2;}
23226 { (exit 1); exit 1; }; }
23227 fi
23228
23229
23230 if test "${ac_cv_header_id3_h+set}" = set; then
23231 { echo "$as_me:$LINENO: checking for id3.h" >&5
23232 echo $ECHO_N "checking for id3.h... $ECHO_C" >&6; }
23233 if test "${ac_cv_header_id3_h+set}" = set; then
23234 echo $ECHO_N "(cached) $ECHO_C" >&6
23235 fi
23236 { echo "$as_me:$LINENO: result: $ac_cv_header_id3_h" >&5
23237 echo "${ECHO_T}$ac_cv_header_id3_h" >&6; }
23238 else
23239 # Is the header compilable?
23240 { echo "$as_me:$LINENO: checking id3.h usability" >&5
23241 echo $ECHO_N "checking id3.h usability... $ECHO_C" >&6; }
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h. */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23248 $ac_includes_default
23249 #include <id3.h>
23250 _ACEOF
23251 rm -f conftest.$ac_objext
23252 if { (ac_try="$ac_compile"
23253 case "(($ac_try" in
23254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23255 *) ac_try_echo=$ac_try;;
23256 esac
23257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23258 (eval "$ac_compile") 2>conftest.er1
23259 ac_status=$?
23260 grep -v '^ *+' conftest.er1 >conftest.err
23261 rm -f conftest.er1
23262 cat conftest.err >&5
23263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23264 (exit $ac_status); } && {
23265 test -z "$ac_c_werror_flag" ||
23266 test ! -s conftest.err
23267 } && test -s conftest.$ac_objext; then
23268 ac_header_compiler=yes
23269 else
23270 echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23272
23273 ac_header_compiler=no
23274 fi
23275
23276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23277 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23278 echo "${ECHO_T}$ac_header_compiler" >&6; }
23279
23280 # Is the header present?
23281 { echo "$as_me:$LINENO: checking id3.h presence" >&5
23282 echo $ECHO_N "checking id3.h presence... $ECHO_C" >&6; }
23283 cat >conftest.$ac_ext <<_ACEOF
23284 /* confdefs.h. */
23285 _ACEOF
23286 cat confdefs.h >>conftest.$ac_ext
23287 cat >>conftest.$ac_ext <<_ACEOF
23288 /* end confdefs.h. */
23289 #include <id3.h>
23290 _ACEOF
23291 if { (ac_try="$ac_cpp conftest.$ac_ext"
23292 case "(($ac_try" in
23293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23295 esac
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23298 ac_status=$?
23299 grep -v '^ *+' conftest.er1 >conftest.err
23300 rm -f conftest.er1
23301 cat conftest.err >&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } >/dev/null && {
23304 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23305 test ! -s conftest.err
23306 }; then
23307 ac_header_preproc=yes
23308 else
23309 echo "$as_me: failed program was:" >&5
23310 sed 's/^/| /' conftest.$ac_ext >&5
23311
23312 ac_header_preproc=no
23313 fi
23314
23315 rm -f conftest.err conftest.$ac_ext
23316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23317 echo "${ECHO_T}$ac_header_preproc" >&6; }
23318
23319 # So? What about this header?
23320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23321 yes:no: )
23322 { echo "$as_me:$LINENO: WARNING: id3.h: accepted by the compiler, rejected by the preprocessor!" >&5
23323 echo "$as_me: WARNING: id3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23324 { echo "$as_me:$LINENO: WARNING: id3.h: proceeding with the compiler's result" >&5
23325 echo "$as_me: WARNING: id3.h: proceeding with the compiler's result" >&2;}
23326 ac_header_preproc=yes
23327 ;;
23328 no:yes:* )
23329 { echo "$as_me:$LINENO: WARNING: id3.h: present but cannot be compiled" >&5
23330 echo "$as_me: WARNING: id3.h: present but cannot be compiled" >&2;}
23331 { echo "$as_me:$LINENO: WARNING: id3.h: check for missing prerequisite headers?" >&5
23332 echo "$as_me: WARNING: id3.h: check for missing prerequisite headers?" >&2;}
23333 { echo "$as_me:$LINENO: WARNING: id3.h: see the Autoconf documentation" >&5
23334 echo "$as_me: WARNING: id3.h: see the Autoconf documentation" >&2;}
23335 { echo "$as_me:$LINENO: WARNING: id3.h: section \"Present But Cannot Be Compiled\"" >&5
23336 echo "$as_me: WARNING: id3.h: section \"Present But Cannot Be Compiled\"" >&2;}
23337 { echo "$as_me:$LINENO: WARNING: id3.h: proceeding with the preprocessor's result" >&5
23338 echo "$as_me: WARNING: id3.h: proceeding with the preprocessor's result" >&2;}
23339 { echo "$as_me:$LINENO: WARNING: id3.h: in the future, the compiler will take precedence" >&5
23340 echo "$as_me: WARNING: id3.h: in the future, the compiler will take precedence" >&2;}
23341
23342 ;;
23343 esac
23344 { echo "$as_me:$LINENO: checking for id3.h" >&5
23345 echo $ECHO_N "checking for id3.h... $ECHO_C" >&6; }
23346 if test "${ac_cv_header_id3_h+set}" = set; then
23347 echo $ECHO_N "(cached) $ECHO_C" >&6
23348 else
23349 ac_cv_header_id3_h=$ac_header_preproc
23350 fi
23351 { echo "$as_me:$LINENO: result: $ac_cv_header_id3_h" >&5
23352 echo "${ECHO_T}$ac_cv_header_id3_h" >&6; }
23353
23354 fi
23355 if test $ac_cv_header_id3_h = yes; then
23356 :
23357 else
23358 { { echo "$as_me:$LINENO: error: *** id3lib headers support not installed or not found" >&5
23359 echo "$as_me: error: *** id3lib headers support not installed or not found" >&2;}
23360 { (exit 1); exit 1; }; }
23361 fi
23362
23363
23364 for ac_prog in gtk-config
23365 do
23366 # Extract the first word of "$ac_prog", so it can be a program name with args.
23367 set dummy $ac_prog; ac_word=$2
23368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23370 if test "${ac_cv_prog_GTK_CONFIG+set}" = set; then
23371 echo $ECHO_N "(cached) $ECHO_C" >&6
23372 else
23373 if test -n "$GTK_CONFIG"; then
23374 ac_cv_prog_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test.
23375 else
23376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23377 for as_dir in $PATH
23378 do
23379 IFS=$as_save_IFS
23380 test -z "$as_dir" && as_dir=.
23381 for ac_exec_ext in '' $ac_executable_extensions; do
23382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23383 ac_cv_prog_GTK_CONFIG="$ac_prog"
23384 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23385 break 2
23386 fi
23387 done
23388 done
23389 IFS=$as_save_IFS
23390
23391 fi
23392 fi
23393 GTK_CONFIG=$ac_cv_prog_GTK_CONFIG
23394 if test -n "$GTK_CONFIG"; then
23395 { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
23396 echo "${ECHO_T}$GTK_CONFIG" >&6; }
23397 else
23398 { echo "$as_me:$LINENO: result: no" >&5
23399 echo "${ECHO_T}no" >&6; }
23400 fi
23401
23402
23403 test -n "$GTK_CONFIG" && break
23404 done
23405 test -n "$GTK_CONFIG" || GTK_CONFIG=""not_found""
23406
23407 if test "$XGTK_CONFIG" = "not_found"; then
23408 { { echo "$as_me:$LINENO: error: \"*** gtk-config not found - xmms plugin can't be build without\"" >&5
23409 echo "$as_me: error: \"*** gtk-config not found - xmms plugin can't be build without\"" >&2;}
23410 { (exit 1); exit 1; }; }
23411 fi
23412
23413
23414
23415 if true; then
23416 HAVE_XMMS_TRUE=
23417 HAVE_XMMS_FALSE='#'
23418 else
23419 HAVE_XMMS_TRUE='#'
23420 HAVE_XMMS_FALSE=
23421 fi
23422
23423 else
23424 { echo "$as_me:$LINENO: no xmms build configured" >&5
23425 echo "$as_me: no xmms build configured" >&6;}
23426
23427
23428 if false; then
23429 HAVE_XMMS_TRUE=
23430 HAVE_XMMS_FALSE='#'
23431 else
23432 HAVE_XMMS_TRUE='#'
23433 HAVE_XMMS_FALSE=
23434 fi
23435
23436 fi
23437
23438 if test x$WITHDRM = xyes; then
23439
23440 cat >>confdefs.h <<\_ACEOF
23441 #define DRM 1
23442 _ACEOF
23443
23444
23445 cat >>confdefs.h <<\_ACEOF
23446 #define DRM_PS 1
23447 _ACEOF
23448
23449 fi
23450
23451 ac_config_files="$ac_config_files libfaad/Makefile"
23452
23453 ac_config_files="$ac_config_files common/Makefile"
23454
23455 ac_config_files="$ac_config_files common/mp4ff/Makefile"
23456
23457 ac_config_files="$ac_config_files plugins/Makefile"
23458
23459 ac_config_files="$ac_config_files plugins/xmms/Makefile"
23460
23461 ac_config_files="$ac_config_files plugins/xmms/src/Makefile"
23462
23463 ac_config_files="$ac_config_files plugins/mpeg4ip/Makefile"
23464
23465 ac_config_files="$ac_config_files faad2.spec"
23466
23467 ac_config_files="$ac_config_files frontend/Makefile"
23468
23469 ac_config_files="$ac_config_files Makefile"
23470
23471
23472 cat >confcache <<\_ACEOF
23473 # This file is a shell script that caches the results of configure
23474 # tests run on this system so they can be shared between configure
23475 # scripts and configure runs, see configure's option --config-cache.
23476 # It is not useful on other systems. If it contains results you don't
23477 # want to keep, you may remove or edit it.
23478 #
23479 # config.status only pays attention to the cache file if you give it
23480 # the --recheck option to rerun configure.
23481 #
23482 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23483 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23484 # following values.
23485
23486 _ACEOF
23487
23488 # The following way of writing the cache mishandles newlines in values,
23489 # but we know of no workaround that is simple, portable, and efficient.
23490 # So, we kill variables containing newlines.
23491 # Ultrix sh set writes to stderr and can't be redirected directly,
23492 # and sets the high bit in the cache file unless we assign to the vars.
23493 (
23494 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23495 eval ac_val=\$$ac_var
23496 case $ac_val in #(
23497 *${as_nl}*)
23498 case $ac_var in #(
23499 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23500 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23501 esac
23502 case $ac_var in #(
23503 _ | IFS | as_nl) ;; #(
23504 *) $as_unset $ac_var ;;
23505 esac ;;
23506 esac
23507 done
23508
23509 (set) 2>&1 |
23510 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23511 *${as_nl}ac_space=\ *)
23512 # `set' does not quote correctly, so add quotes (double-quote
23513 # substitution turns \\\\ into \\, and sed turns \\ into \).
23514 sed -n \
23515 "s/'/'\\\\''/g;
23516 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23517 ;; #(
23518 *)
23519 # `set' quotes correctly as required by POSIX, so do not add quotes.
23520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23521 ;;
23522 esac |
23523 sort
23524 ) |
23525 sed '
23526 /^ac_cv_env_/b end
23527 t clear
23528 :clear
23529 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23530 t end
23531 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23532 :end' >>confcache
23533 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23534 if test -w "$cache_file"; then
23535 test "x$cache_file" != "x/dev/null" &&
23536 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23537 echo "$as_me: updating cache $cache_file" >&6;}
23538 cat confcache >$cache_file
23539 else
23540 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23541 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23542 fi
23543 fi
23544 rm -f confcache
23545
23546 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23547 # Let make expand exec_prefix.
23548 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23549
23550 DEFS=-DHAVE_CONFIG_H
23551
23552 ac_libobjs=
23553 ac_ltlibobjs=
23554 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23555 # 1. Remove the extension, and $U if already installed.
23556 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23557 ac_i=`echo "$ac_i" | sed "$ac_script"`
23558 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23559 # will be set to the directory where LIBOBJS objects are built.
23560 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23561 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23562 done
23563 LIBOBJS=$ac_libobjs
23564
23565 LTLIBOBJS=$ac_ltlibobjs
23566
23567
23568 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23569 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23570 Usually this means the macro was only invoked conditionally." >&5
23571 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23572 Usually this means the macro was only invoked conditionally." >&2;}
23573 { (exit 1); exit 1; }; }
23574 fi
23575 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23576 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23577 Usually this means the macro was only invoked conditionally." >&5
23578 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23579 Usually this means the macro was only invoked conditionally." >&2;}
23580 { (exit 1); exit 1; }; }
23581 fi
23582 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23583 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23584 Usually this means the macro was only invoked conditionally." >&5
23585 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23586 Usually this means the macro was only invoked conditionally." >&2;}
23587 { (exit 1); exit 1; }; }
23588 fi
23589 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23590 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23591 Usually this means the macro was only invoked conditionally." >&5
23592 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23593 Usually this means the macro was only invoked conditionally." >&2;}
23594 { (exit 1); exit 1; }; }
23595 fi
23596 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23597 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23598 Usually this means the macro was only invoked conditionally." >&5
23599 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23600 Usually this means the macro was only invoked conditionally." >&2;}
23601 { (exit 1); exit 1; }; }
23602 fi
23603 if test -z "${HAVE_MPEG4IP_PLUG_TRUE}" && test -z "${HAVE_MPEG4IP_PLUG_FALSE}"; then
23604 { { echo "$as_me:$LINENO: error: conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
23605 Usually this means the macro was only invoked conditionally." >&5
23606 echo "$as_me: error: conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
23607 Usually this means the macro was only invoked conditionally." >&2;}
23608 { (exit 1); exit 1; }; }
23609 fi
23610 if test -z "${HAVE_MPEG4IP_PLUG_TRUE}" && test -z "${HAVE_MPEG4IP_PLUG_FALSE}"; then
23611 { { echo "$as_me:$LINENO: error: conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
23612 Usually this means the macro was only invoked conditionally." >&5
23613 echo "$as_me: error: conditional \"HAVE_MPEG4IP_PLUG\" was never defined.
23614 Usually this means the macro was only invoked conditionally." >&2;}
23615 { (exit 1); exit 1; }; }
23616 fi
23617 if test -z "${HAVE_XMMS_TRUE}" && test -z "${HAVE_XMMS_FALSE}"; then
23618 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMMS\" was never defined.
23619 Usually this means the macro was only invoked conditionally." >&5
23620 echo "$as_me: error: conditional \"HAVE_XMMS\" was never defined.
23621 Usually this means the macro was only invoked conditionally." >&2;}
23622 { (exit 1); exit 1; }; }
23623 fi
23624 if test -z "${HAVE_XMMS_TRUE}" && test -z "${HAVE_XMMS_FALSE}"; then
23625 { { echo "$as_me:$LINENO: error: conditional \"HAVE_XMMS\" was never defined.
23626 Usually this means the macro was only invoked conditionally." >&5
23627 echo "$as_me: error: conditional \"HAVE_XMMS\" was never defined.
23628 Usually this means the macro was only invoked conditionally." >&2;}
23629 { (exit 1); exit 1; }; }
23630 fi
23631
23632 : ${CONFIG_STATUS=./config.status}
23633 ac_clean_files_save=$ac_clean_files
23634 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23635 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23636 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23637 cat >$CONFIG_STATUS <<_ACEOF
23638 #! $SHELL
23639 # Generated by $as_me.
23640 # Run this file to recreate the current configuration.
23641 # Compiler output produced by configure, useful for debugging
23642 # configure, is in config.log if it exists.
23643
23644 debug=false
23645 ac_cs_recheck=false
23646 ac_cs_silent=false
23647 SHELL=\${CONFIG_SHELL-$SHELL}
23648 _ACEOF
23649
23650 cat >>$CONFIG_STATUS <<\_ACEOF
23651 ## --------------------- ##
23652 ## M4sh Initialization. ##
23653 ## --------------------- ##
23654
23655 # Be more Bourne compatible
23656 DUALCASE=1; export DUALCASE # for MKS sh
23657 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23658 emulate sh
23659 NULLCMD=:
23660 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23661 # is contrary to our usage. Disable this feature.
23662 alias -g '${1+"$@"}'='"$@"'
23663 setopt NO_GLOB_SUBST
23664 else
23665 case `(set -o) 2>/dev/null` in
23666 *posix*) set -o posix ;;
23667 esac
23668
23669 fi
23670
23671
23672
23673
23674 # PATH needs CR
23675 # Avoid depending upon Character Ranges.
23676 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23677 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23678 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23679 as_cr_digits='0123456789'
23680 as_cr_alnum=$as_cr_Letters$as_cr_digits
23681
23682 # The user is always right.
23683 if test "${PATH_SEPARATOR+set}" != set; then
23684 echo "#! /bin/sh" >conf$$.sh
23685 echo "exit 0" >>conf$$.sh
23686 chmod +x conf$$.sh
23687 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23688 PATH_SEPARATOR=';'
23689 else
23690 PATH_SEPARATOR=:
23691 fi
23692 rm -f conf$$.sh
23693 fi
23694
23695 # Support unset when possible.
23696 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23697 as_unset=unset
23698 else
23699 as_unset=false
23700 fi
23701
23702
23703 # IFS
23704 # We need space, tab and new line, in precisely that order. Quoting is
23705 # there to prevent editors from complaining about space-tab.
23706 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23707 # splitting by setting IFS to empty value.)
23708 as_nl='
23709 '
23710 IFS=" "" $as_nl"
23711
23712 # Find who we are. Look in the path if we contain no directory separator.
23713 case $0 in
23714 *[\\/]* ) as_myself=$0 ;;
23715 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23716 for as_dir in $PATH
23717 do
23718 IFS=$as_save_IFS
23719 test -z "$as_dir" && as_dir=.
23720 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23721 done
23722 IFS=$as_save_IFS
23723
23724 ;;
23725 esac
23726 # We did not find ourselves, most probably we were run as `sh COMMAND'
23727 # in which case we are not to be found in the path.
23728 if test "x$as_myself" = x; then
23729 as_myself=$0
23730 fi
23731 if test ! -f "$as_myself"; then
23732 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23733 { (exit 1); exit 1; }
23734 fi
23735
23736 # Work around bugs in pre-3.0 UWIN ksh.
23737 for as_var in ENV MAIL MAILPATH
23738 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23739 done
23740 PS1='$ '
23741 PS2='> '
23742 PS4='+ '
23743
23744 # NLS nuisances.
23745 for as_var in \
23746 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23747 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23748 LC_TELEPHONE LC_TIME
23749 do
23750 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23751 eval $as_var=C; export $as_var
23752 else
23753 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23754 fi
23755 done
23756
23757 # Required to use basename.
23758 if expr a : '\(a\)' >/dev/null 2>&1 &&
23759 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23760 as_expr=expr
23761 else
23762 as_expr=false
23763 fi
23764
23765 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23766 as_basename=basename
23767 else
23768 as_basename=false
23769 fi
23770
23771
23772 # Name of the executable.
23773 as_me=`$as_basename -- "$0" ||
23774 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23775 X"$0" : 'X\(//\)$' \| \
23776 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23777 echo X/"$0" |
23778 sed '/^.*\/\([^/][^/]*\)\/*$/{
23779 s//\1/
23780 q
23781 }
23782 /^X\/\(\/\/\)$/{
23783 s//\1/
23784 q
23785 }
23786 /^X\/\(\/\).*/{
23787 s//\1/
23788 q
23789 }
23790 s/.*/./; q'`
23791
23792 # CDPATH.
23793 $as_unset CDPATH
23794
23795
23796
23797 as_lineno_1=$LINENO
23798 as_lineno_2=$LINENO
23799 test "x$as_lineno_1" != "x$as_lineno_2" &&
23800 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23801
23802 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23803 # uniformly replaced by the line number. The first 'sed' inserts a
23804 # line-number line after each line using $LINENO; the second 'sed'
23805 # does the real work. The second script uses 'N' to pair each
23806 # line-number line with the line containing $LINENO, and appends
23807 # trailing '-' during substitution so that $LINENO is not a special
23808 # case at line end.
23809 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23810 # scripts with optimization help from Paolo Bonzini. Blame Lee
23811 # E. McMahon (1931-1989) for sed's syntax. :-)
23812 sed -n '
23813 p
23814 /[$]LINENO/=
23815 ' <$as_myself |
23816 sed '
23817 s/[$]LINENO.*/&-/
23818 t lineno
23819 b
23820 :lineno
23821 N
23822 :loop
23823 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23824 t loop
23825 s/-\n.*//
23826 ' >$as_me.lineno &&
23827 chmod +x "$as_me.lineno" ||
23828 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23829 { (exit 1); exit 1; }; }
23830
23831 # Don't try to exec as it changes $[0], causing all sort of problems
23832 # (the dirname of $[0] is not the place where we might find the
23833 # original and so on. Autoconf is especially sensitive to this).
23834 . "./$as_me.lineno"
23835 # Exit status is that of the last command.
23836 exit
23837 }
23838
23839
23840 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23841 as_dirname=dirname
23842 else
23843 as_dirname=false
23844 fi
23845
23846 ECHO_C= ECHO_N= ECHO_T=
23847 case `echo -n x` in
23848 -n*)
23849 case `echo 'x\c'` in
23850 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23851 *) ECHO_C='\c';;
23852 esac;;
23853 *)
23854 ECHO_N='-n';;
23855 esac
23856
23857 if expr a : '\(a\)' >/dev/null 2>&1 &&
23858 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23859 as_expr=expr
23860 else
23861 as_expr=false
23862 fi
23863
23864 rm -f conf$$ conf$$.exe conf$$.file
23865 if test -d conf$$.dir; then
23866 rm -f conf$$.dir/conf$$.file
23867 else
23868 rm -f conf$$.dir
23869 mkdir conf$$.dir
23870 fi
23871 echo >conf$$.file
23872 if ln -s conf$$.file conf$$ 2>/dev/null; then
23873 as_ln_s='ln -s'
23874 # ... but there are two gotchas:
23875 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23876 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23877 # In both cases, we have to default to `cp -p'.
23878 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23879 as_ln_s='cp -p'
23880 elif ln conf$$.file conf$$ 2>/dev/null; then
23881 as_ln_s=ln
23882 else
23883 as_ln_s='cp -p'
23884 fi
23885 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23886 rmdir conf$$.dir 2>/dev/null
23887
23888 if mkdir -p . 2>/dev/null; then
23889 as_mkdir_p=:
23890 else
23891 test -d ./-p && rmdir ./-p
23892 as_mkdir_p=false
23893 fi
23894
23895 if test -x / >/dev/null 2>&1; then
23896 as_test_x='test -x'
23897 else
23898 if ls -dL / >/dev/null 2>&1; then
23899 as_ls_L_option=L
23900 else
23901 as_ls_L_option=
23902 fi
23903 as_test_x='
23904 eval sh -c '\''
23905 if test -d "$1"; then
23906 test -d "$1/.";
23907 else
23908 case $1 in
23909 -*)set "./$1";;
23910 esac;
23911 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23912 ???[sx]*):;;*)false;;esac;fi
23913 '\'' sh
23914 '
23915 fi
23916 as_executable_p=$as_test_x
23917
23918 # Sed expression to map a string onto a valid CPP name.
23919 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23920
23921 # Sed expression to map a string onto a valid variable name.
23922 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23923
23924
23925 exec 6>&1
23926
23927 # Save the log message, to keep $[0] and so on meaningful, and to
23928 # report actual input values of CONFIG_FILES etc. instead of their
23929 # values after options handling.
23930 ac_log="
23931 This file was extended by $as_me, which was
23932 generated by GNU Autoconf 2.61. Invocation command line was
23933
23934 CONFIG_FILES = $CONFIG_FILES
23935 CONFIG_HEADERS = $CONFIG_HEADERS
23936 CONFIG_LINKS = $CONFIG_LINKS
23937 CONFIG_COMMANDS = $CONFIG_COMMANDS
23938 $ $0 $@
23939
23940 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23941 "
23942
23943 _ACEOF
23944
23945 cat >>$CONFIG_STATUS <<_ACEOF
23946 # Files that config.status was made for.
23947 config_files="$ac_config_files"
23948 config_headers="$ac_config_headers"
23949 config_commands="$ac_config_commands"
23950
23951 _ACEOF
23952
23953 cat >>$CONFIG_STATUS <<\_ACEOF
23954 ac_cs_usage="\
23955 \`$as_me' instantiates files from templates according to the
23956 current configuration.
23957
23958 Usage: $0 [OPTIONS] [FILE]...
23959
23960 -h, --help print this help, then exit
23961 -V, --version print version number and configuration settings, then exit
23962 -q, --quiet do not print progress messages
23963 -d, --debug don't remove temporary files
23964 --recheck update $as_me by reconfiguring in the same conditions
23965 --file=FILE[:TEMPLATE]
23966 instantiate the configuration file FILE
23967 --header=FILE[:TEMPLATE]
23968 instantiate the configuration header FILE
23969
23970 Configuration files:
23971 $config_files
23972
23973 Configuration headers:
23974 $config_headers
23975
23976 Configuration commands:
23977 $config_commands
23978
23979 Report bugs to <bug-autoconf@gnu.org>."
23980
23981 _ACEOF
23982 cat >>$CONFIG_STATUS <<_ACEOF
23983 ac_cs_version="\\
23984 config.status
23985 configured by $0, generated by GNU Autoconf 2.61,
23986 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23987
23988 Copyright (C) 2006 Free Software Foundation, Inc.
23989 This config.status script is free software; the Free Software Foundation
23990 gives unlimited permission to copy, distribute and modify it."
23991
23992 ac_pwd='$ac_pwd'
23993 srcdir='$srcdir'
23994 INSTALL='$INSTALL'
23995 _ACEOF
23996
23997 cat >>$CONFIG_STATUS <<\_ACEOF
23998 # If no file are specified by the user, then we need to provide default
23999 # value. By we need to know if files were specified by the user.
24000 ac_need_defaults=:
24001 while test $# != 0
24002 do
24003 case $1 in
24004 --*=*)
24005 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24006 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24007 ac_shift=:
24008 ;;
24009 *)
24010 ac_option=$1
24011 ac_optarg=$2
24012 ac_shift=shift
24013 ;;
24014 esac
24015
24016 case $ac_option in
24017 # Handling of the options.
24018 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24019 ac_cs_recheck=: ;;
24020 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24021 echo "$ac_cs_version"; exit ;;
24022 --debug | --debu | --deb | --de | --d | -d )
24023 debug=: ;;
24024 --file | --fil | --fi | --f )
24025 $ac_shift
24026 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24027 ac_need_defaults=false;;
24028 --header | --heade | --head | --hea )
24029 $ac_shift
24030 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24031 ac_need_defaults=false;;
24032 --he | --h)
24033 # Conflict between --help and --header
24034 { echo "$as_me: error: ambiguous option: $1
24035 Try \`$0 --help' for more information." >&2
24036 { (exit 1); exit 1; }; };;
24037 --help | --hel | -h )
24038 echo "$ac_cs_usage"; exit ;;
24039 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24040 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24041 ac_cs_silent=: ;;
24042
24043 # This is an error.
24044 -*) { echo "$as_me: error: unrecognized option: $1
24045 Try \`$0 --help' for more information." >&2
24046 { (exit 1); exit 1; }; } ;;
24047
24048 *) ac_config_targets="$ac_config_targets $1"
24049 ac_need_defaults=false ;;
24050
24051 esac
24052 shift
24053 done
24054
24055 ac_configure_extra_args=
24056
24057 if $ac_cs_silent; then
24058 exec 6>/dev/null
24059 ac_configure_extra_args="$ac_configure_extra_args --silent"
24060 fi
24061
24062 _ACEOF
24063 cat >>$CONFIG_STATUS <<_ACEOF
24064 if \$ac_cs_recheck; then
24065 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24066 CONFIG_SHELL=$SHELL
24067 export CONFIG_SHELL
24068 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24069 fi
24070
24071 _ACEOF
24072 cat >>$CONFIG_STATUS <<\_ACEOF
24073 exec 5>>config.log
24074 {
24075 echo
24076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24077 ## Running $as_me. ##
24078 _ASBOX
24079 echo "$ac_log"
24080 } >&5
24081
24082 _ACEOF
24083 cat >>$CONFIG_STATUS <<_ACEOF
24084 #
24085 # INIT-COMMANDS
24086 #
24087 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24088
24089 _ACEOF
24090
24091 cat >>$CONFIG_STATUS <<\_ACEOF
24092
24093 # Handling of arguments.
24094 for ac_config_target in $ac_config_targets
24095 do
24096 case $ac_config_target in
24097 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24098 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24099 "libfaad/Makefile") CONFIG_FILES="$CONFIG_FILES libfaad/Makefile" ;;
24100 "common/Makefile") CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
24101 "common/mp4ff/Makefile") CONFIG_FILES="$CONFIG_FILES common/mp4ff/Makefile" ;;
24102 "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
24103 "plugins/xmms/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/xmms/Makefile" ;;
24104 "plugins/xmms/src/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/xmms/src/Makefile" ;;
24105 "plugins/mpeg4ip/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/mpeg4ip/Makefile" ;;
24106 "faad2.spec") CONFIG_FILES="$CONFIG_FILES faad2.spec" ;;
24107 "frontend/Makefile") CONFIG_FILES="$CONFIG_FILES frontend/Makefile" ;;
24108 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24109
24110 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24111 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24112 { (exit 1); exit 1; }; };;
24113 esac
24114 done
24115
24116
24117 # If the user did not use the arguments to specify the items to instantiate,
24118 # then the envvar interface is used. Set only those that are not.
24119 # We use the long form for the default assignment because of an extremely
24120 # bizarre bug on SunOS 4.1.3.
24121 if $ac_need_defaults; then
24122 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24123 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24124 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24125 fi
24126
24127 # Have a temporary directory for convenience. Make it in the build tree
24128 # simply because there is no reason against having it here, and in addition,
24129 # creating and moving files from /tmp can sometimes cause problems.
24130 # Hook for its removal unless debugging.
24131 # Note that there is a small window in which the directory will not be cleaned:
24132 # after its creation but before its name has been assigned to `$tmp'.
24133 $debug ||
24134 {
24135 tmp=
24136 trap 'exit_status=$?
24137 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24138 ' 0
24139 trap '{ (exit 1); exit 1; }' 1 2 13 15
24140 }
24141 # Create a (secure) tmp directory for tmp files.
24142
24143 {
24144 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24145 test -n "$tmp" && test -d "$tmp"
24146 } ||
24147 {
24148 tmp=./conf$$-$RANDOM
24149 (umask 077 && mkdir "$tmp")
24150 } ||
24151 {
24152 echo "$me: cannot create a temporary directory in ." >&2
24153 { (exit 1); exit 1; }
24154 }
24155
24156 #
24157 # Set up the sed scripts for CONFIG_FILES section.
24158 #
24159
24160 # No need to generate the scripts if there are no CONFIG_FILES.
24161 # This happens for instance when ./config.status config.h
24162 if test -n "$CONFIG_FILES"; then
24163
24164 _ACEOF
24165
24166
24167
24168 ac_delim='%!_!# '
24169 for ac_last_try in false false false false false :; do
24170 cat >conf$$subs.sed <<_ACEOF
24171 SHELL!$SHELL$ac_delim
24172 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24173 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24174 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24175 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24176 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24177 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24178 exec_prefix!$exec_prefix$ac_delim
24179 prefix!$prefix$ac_delim
24180 program_transform_name!$program_transform_name$ac_delim
24181 bindir!$bindir$ac_delim
24182 sbindir!$sbindir$ac_delim
24183 libexecdir!$libexecdir$ac_delim
24184 datarootdir!$datarootdir$ac_delim
24185 datadir!$datadir$ac_delim
24186 sysconfdir!$sysconfdir$ac_delim
24187 sharedstatedir!$sharedstatedir$ac_delim
24188 localstatedir!$localstatedir$ac_delim
24189 includedir!$includedir$ac_delim
24190 oldincludedir!$oldincludedir$ac_delim
24191 docdir!$docdir$ac_delim
24192 infodir!$infodir$ac_delim
24193 htmldir!$htmldir$ac_delim
24194 dvidir!$dvidir$ac_delim
24195 pdfdir!$pdfdir$ac_delim
24196 psdir!$psdir$ac_delim
24197 libdir!$libdir$ac_delim
24198 localedir!$localedir$ac_delim
24199 mandir!$mandir$ac_delim
24200 DEFS!$DEFS$ac_delim
24201 ECHO_C!$ECHO_C$ac_delim
24202 ECHO_N!$ECHO_N$ac_delim
24203 ECHO_T!$ECHO_T$ac_delim
24204 LIBS!$LIBS$ac_delim
24205 build_alias!$build_alias$ac_delim
24206 host_alias!$host_alias$ac_delim
24207 target_alias!$target_alias$ac_delim
24208 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24209 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24210 INSTALL_DATA!$INSTALL_DATA$ac_delim
24211 CYGPATH_W!$CYGPATH_W$ac_delim
24212 PACKAGE!$PACKAGE$ac_delim
24213 VERSION!$VERSION$ac_delim
24214 ACLOCAL!$ACLOCAL$ac_delim
24215 AUTOCONF!$AUTOCONF$ac_delim
24216 AUTOMAKE!$AUTOMAKE$ac_delim
24217 AUTOHEADER!$AUTOHEADER$ac_delim
24218 MAKEINFO!$MAKEINFO$ac_delim
24219 install_sh!$install_sh$ac_delim
24220 STRIP!$STRIP$ac_delim
24221 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24222 mkdir_p!$mkdir_p$ac_delim
24223 AWK!$AWK$ac_delim
24224 SET_MAKE!$SET_MAKE$ac_delim
24225 am__leading_dot!$am__leading_dot$ac_delim
24226 AMTAR!$AMTAR$ac_delim
24227 am__tar!$am__tar$ac_delim
24228 am__untar!$am__untar$ac_delim
24229 build!$build$ac_delim
24230 build_cpu!$build_cpu$ac_delim
24231 build_vendor!$build_vendor$ac_delim
24232 build_os!$build_os$ac_delim
24233 host!$host$ac_delim
24234 host_cpu!$host_cpu$ac_delim
24235 host_vendor!$host_vendor$ac_delim
24236 host_os!$host_os$ac_delim
24237 CC!$CC$ac_delim
24238 CFLAGS!$CFLAGS$ac_delim
24239 LDFLAGS!$LDFLAGS$ac_delim
24240 CPPFLAGS!$CPPFLAGS$ac_delim
24241 ac_ct_CC!$ac_ct_CC$ac_delim
24242 EXEEXT!$EXEEXT$ac_delim
24243 OBJEXT!$OBJEXT$ac_delim
24244 DEPDIR!$DEPDIR$ac_delim
24245 am__include!$am__include$ac_delim
24246 am__quote!$am__quote$ac_delim
24247 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24248 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24249 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24250 CCDEPMODE!$CCDEPMODE$ac_delim
24251 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24252 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24253 GREP!$GREP$ac_delim
24254 EGREP!$EGREP$ac_delim
24255 LN_S!$LN_S$ac_delim
24256 ECHO!$ECHO$ac_delim
24257 AR!$AR$ac_delim
24258 RANLIB!$RANLIB$ac_delim
24259 CPP!$CPP$ac_delim
24260 CXX!$CXX$ac_delim
24261 CXXFLAGS!$CXXFLAGS$ac_delim
24262 ac_ct_CXX!$ac_ct_CXX$ac_delim
24263 CXXDEPMODE!$CXXDEPMODE$ac_delim
24264 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24265 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24266 CXXCPP!$CXXCPP$ac_delim
24267 F77!$F77$ac_delim
24268 _ACEOF
24269
24270 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24271 break
24272 elif $ac_last_try; then
24273 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24274 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24275 { (exit 1); exit 1; }; }
24276 else
24277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24278 fi
24279 done
24280
24281 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24282 if test -n "$ac_eof"; then
24283 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24284 ac_eof=`expr $ac_eof + 1`
24285 fi
24286
24287 cat >>$CONFIG_STATUS <<_ACEOF
24288 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24289 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24290 _ACEOF
24291 sed '
24292 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24293 s/^/s,@/; s/!/@,|#_!!_#|/
24294 :n
24295 t n
24296 s/'"$ac_delim"'$/,g/; t
24297 s/$/\\/; p
24298 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24299 ' >>$CONFIG_STATUS <conf$$subs.sed
24300 rm -f conf$$subs.sed
24301 cat >>$CONFIG_STATUS <<_ACEOF
24302 CEOF$ac_eof
24303 _ACEOF
24304
24305
24306 ac_delim='%!_!# '
24307 for ac_last_try in false false false false false :; do
24308 cat >conf$$subs.sed <<_ACEOF
24309 FFLAGS!$FFLAGS$ac_delim
24310 ac_ct_F77!$ac_ct_F77$ac_delim
24311 LIBTOOL!$LIBTOOL$ac_delim
24312 LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
24313 RPMBUILD!$RPMBUILD$ac_delim
24314 MP4FF_LIBS!$MP4FF_LIBS$ac_delim
24315 external_mp4v2!$external_mp4v2$ac_delim
24316 HAVE_MPEG4IP_PLUG_TRUE!$HAVE_MPEG4IP_PLUG_TRUE$ac_delim
24317 HAVE_MPEG4IP_PLUG_FALSE!$HAVE_MPEG4IP_PLUG_FALSE$ac_delim
24318 XMMS_CONFIG!$XMMS_CONFIG$ac_delim
24319 GTK_CONFIG!$GTK_CONFIG$ac_delim
24320 HAVE_XMMS_TRUE!$HAVE_XMMS_TRUE$ac_delim
24321 HAVE_XMMS_FALSE!$HAVE_XMMS_FALSE$ac_delim
24322 LIBOBJS!$LIBOBJS$ac_delim
24323 LTLIBOBJS!$LTLIBOBJS$ac_delim
24324 _ACEOF
24325
24326 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24327 break
24328 elif $ac_last_try; then
24329 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24330 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24331 { (exit 1); exit 1; }; }
24332 else
24333 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24334 fi
24335 done
24336
24337 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24338 if test -n "$ac_eof"; then
24339 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24340 ac_eof=`expr $ac_eof + 1`
24341 fi
24342
24343 cat >>$CONFIG_STATUS <<_ACEOF
24344 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24345 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24346 _ACEOF
24347 sed '
24348 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24349 s/^/s,@/; s/!/@,|#_!!_#|/
24350 :n
24351 t n
24352 s/'"$ac_delim"'$/,g/; t
24353 s/$/\\/; p
24354 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24355 ' >>$CONFIG_STATUS <conf$$subs.sed
24356 rm -f conf$$subs.sed
24357 cat >>$CONFIG_STATUS <<_ACEOF
24358 :end
24359 s/|#_!!_#|//g
24360 CEOF$ac_eof
24361 _ACEOF
24362
24363
24364 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24365 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24366 # trailing colons and then remove the whole line if VPATH becomes empty
24367 # (actually we leave an empty line to preserve line numbers).
24368 if test "x$srcdir" = x.; then
24369 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24370 s/:*\$(srcdir):*/:/
24371 s/:*\${srcdir}:*/:/
24372 s/:*@srcdir@:*/:/
24373 s/^\([^=]*=[ ]*\):*/\1/
24374 s/:*$//
24375 s/^[^=]*=[ ]*$//
24376 }'
24377 fi
24378
24379 cat >>$CONFIG_STATUS <<\_ACEOF
24380 fi # test -n "$CONFIG_FILES"
24381
24382
24383 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24384 do
24385 case $ac_tag in
24386 :[FHLC]) ac_mode=$ac_tag; continue;;
24387 esac
24388 case $ac_mode$ac_tag in
24389 :[FHL]*:*);;
24390 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24391 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24392 { (exit 1); exit 1; }; };;
24393 :[FH]-) ac_tag=-:-;;
24394 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24395 esac
24396 ac_save_IFS=$IFS
24397 IFS=:
24398 set x $ac_tag
24399 IFS=$ac_save_IFS
24400 shift
24401 ac_file=$1
24402 shift
24403
24404 case $ac_mode in
24405 :L) ac_source=$1;;
24406 :[FH])
24407 ac_file_inputs=
24408 for ac_f
24409 do
24410 case $ac_f in
24411 -) ac_f="$tmp/stdin";;
24412 *) # Look for the file first in the build tree, then in the source tree
24413 # (if the path is not absolute). The absolute path cannot be DOS-style,
24414 # because $ac_f cannot contain `:'.
24415 test -f "$ac_f" ||
24416 case $ac_f in
24417 [\\/$]*) false;;
24418 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24419 esac ||
24420 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24421 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24422 { (exit 1); exit 1; }; };;
24423 esac
24424 ac_file_inputs="$ac_file_inputs $ac_f"
24425 done
24426
24427 # Let's still pretend it is `configure' which instantiates (i.e., don't
24428 # use $as_me), people would be surprised to read:
24429 # /* config.h. Generated by config.status. */
24430 configure_input="Generated from "`IFS=:
24431 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24432 if test x"$ac_file" != x-; then
24433 configure_input="$ac_file. $configure_input"
24434 { echo "$as_me:$LINENO: creating $ac_file" >&5
24435 echo "$as_me: creating $ac_file" >&6;}
24436 fi
24437
24438 case $ac_tag in
24439 *:-:* | *:-) cat >"$tmp/stdin";;
24440 esac
24441 ;;
24442 esac
24443
24444 ac_dir=`$as_dirname -- "$ac_file" ||
24445 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24446 X"$ac_file" : 'X\(//\)[^/]' \| \
24447 X"$ac_file" : 'X\(//\)$' \| \
24448 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24449 echo X"$ac_file" |
24450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24451 s//\1/
24452 q
24453 }
24454 /^X\(\/\/\)[^/].*/{
24455 s//\1/
24456 q
24457 }
24458 /^X\(\/\/\)$/{
24459 s//\1/
24460 q
24461 }
24462 /^X\(\/\).*/{
24463 s//\1/
24464 q
24465 }
24466 s/.*/./; q'`
24467 { as_dir="$ac_dir"
24468 case $as_dir in #(
24469 -*) as_dir=./$as_dir;;
24470 esac
24471 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24472 as_dirs=
24473 while :; do
24474 case $as_dir in #(
24475 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24476 *) as_qdir=$as_dir;;
24477 esac
24478 as_dirs="'$as_qdir' $as_dirs"
24479 as_dir=`$as_dirname -- "$as_dir" ||
24480 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24481 X"$as_dir" : 'X\(//\)[^/]' \| \
24482 X"$as_dir" : 'X\(//\)$' \| \
24483 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24484 echo X"$as_dir" |
24485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24486 s//\1/
24487 q
24488 }
24489 /^X\(\/\/\)[^/].*/{
24490 s//\1/
24491 q
24492 }
24493 /^X\(\/\/\)$/{
24494 s//\1/
24495 q
24496 }
24497 /^X\(\/\).*/{
24498 s//\1/
24499 q
24500 }
24501 s/.*/./; q'`
24502 test -d "$as_dir" && break
24503 done
24504 test -z "$as_dirs" || eval "mkdir $as_dirs"
24505 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24506 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24507 { (exit 1); exit 1; }; }; }
24508 ac_builddir=.
24509
24510 case "$ac_dir" in
24511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24512 *)
24513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24514 # A ".." for each directory in $ac_dir_suffix.
24515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24516 case $ac_top_builddir_sub in
24517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24519 esac ;;
24520 esac
24521 ac_abs_top_builddir=$ac_pwd
24522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24523 # for backward compatibility:
24524 ac_top_builddir=$ac_top_build_prefix
24525
24526 case $srcdir in
24527 .) # We are building in place.
24528 ac_srcdir=.
24529 ac_top_srcdir=$ac_top_builddir_sub
24530 ac_abs_top_srcdir=$ac_pwd ;;
24531 [\\/]* | ?:[\\/]* ) # Absolute name.
24532 ac_srcdir=$srcdir$ac_dir_suffix;
24533 ac_top_srcdir=$srcdir
24534 ac_abs_top_srcdir=$srcdir ;;
24535 *) # Relative name.
24536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24537 ac_top_srcdir=$ac_top_build_prefix$srcdir
24538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24539 esac
24540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24541
24542
24543 case $ac_mode in
24544 :F)
24545 #
24546 # CONFIG_FILE
24547 #
24548
24549 case $INSTALL in
24550 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24551 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24552 esac
24553 _ACEOF
24554
24555 cat >>$CONFIG_STATUS <<\_ACEOF
24556 # If the template does not know about datarootdir, expand it.
24557 # FIXME: This hack should be removed a few years after 2.60.
24558 ac_datarootdir_hack=; ac_datarootdir_seen=
24559
24560 case `sed -n '/datarootdir/ {
24561 p
24562 q
24563 }
24564 /@datadir@/p
24565 /@docdir@/p
24566 /@infodir@/p
24567 /@localedir@/p
24568 /@mandir@/p
24569 ' $ac_file_inputs` in
24570 *datarootdir*) ac_datarootdir_seen=yes;;
24571 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24572 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24573 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24574 _ACEOF
24575 cat >>$CONFIG_STATUS <<_ACEOF
24576 ac_datarootdir_hack='
24577 s&@datadir@&$datadir&g
24578 s&@docdir@&$docdir&g
24579 s&@infodir@&$infodir&g
24580 s&@localedir@&$localedir&g
24581 s&@mandir@&$mandir&g
24582 s&\\\${datarootdir}&$datarootdir&g' ;;
24583 esac
24584 _ACEOF
24585
24586 # Neutralize VPATH when `$srcdir' = `.'.
24587 # Shell code in configure.ac might set extrasub.
24588 # FIXME: do we really want to maintain this feature?
24589 cat >>$CONFIG_STATUS <<_ACEOF
24590 sed "$ac_vpsub
24591 $extrasub
24592 _ACEOF
24593 cat >>$CONFIG_STATUS <<\_ACEOF
24594 :t
24595 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24596 s&@configure_input@&$configure_input&;t t
24597 s&@top_builddir@&$ac_top_builddir_sub&;t t
24598 s&@srcdir@&$ac_srcdir&;t t
24599 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24600 s&@top_srcdir@&$ac_top_srcdir&;t t
24601 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24602 s&@builddir@&$ac_builddir&;t t
24603 s&@abs_builddir@&$ac_abs_builddir&;t t
24604 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24605 s&@INSTALL@&$ac_INSTALL&;t t
24606 $ac_datarootdir_hack
24607 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24608
24609 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24610 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24611 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24612 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24613 which seems to be undefined. Please make sure it is defined." >&5
24614 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24615 which seems to be undefined. Please make sure it is defined." >&2;}
24616
24617 rm -f "$tmp/stdin"
24618 case $ac_file in
24619 -) cat "$tmp/out"; rm -f "$tmp/out";;
24620 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24621 esac
24622 ;;
24623 :H)
24624 #
24625 # CONFIG_HEADER
24626 #
24627 _ACEOF
24628
24629 # Transform confdefs.h into a sed script `conftest.defines', that
24630 # substitutes the proper values into config.h.in to produce config.h.
24631 rm -f conftest.defines conftest.tail
24632 # First, append a space to every undef/define line, to ease matching.
24633 echo 's/$/ /' >conftest.defines
24634 # Then, protect against being on the right side of a sed subst, or in
24635 # an unquoted here document, in config.status. If some macros were
24636 # called several times there might be several #defines for the same
24637 # symbol, which is useless. But do not sort them, since the last
24638 # AC_DEFINE must be honored.
24639 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24640 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24641 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24642 # PARAMS is the parameter list in the macro definition--in most cases, it's
24643 # just an empty string.
24644 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24645 ac_dB='\\)[ (].*,\\1define\\2'
24646 ac_dC=' '
24647 ac_dD=' ,'
24648
24649 uniq confdefs.h |
24650 sed -n '
24651 t rset
24652 :rset
24653 s/^[ ]*#[ ]*define[ ][ ]*//
24654 t ok
24655 d
24656 :ok
24657 s/[\\&,]/\\&/g
24658 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24659 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24660 ' >>conftest.defines
24661
24662 # Remove the space that was appended to ease matching.
24663 # Then replace #undef with comments. This is necessary, for
24664 # example, in the case of _POSIX_SOURCE, which is predefined and required
24665 # on some systems where configure will not decide to define it.
24666 # (The regexp can be short, since the line contains either #define or #undef.)
24667 echo 's/ $//
24668 s,^[ #]*u.*,/* & */,' >>conftest.defines
24669
24670 # Break up conftest.defines:
24671 ac_max_sed_lines=50
24672
24673 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24674 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24675 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24676 # et cetera.
24677 ac_in='$ac_file_inputs'
24678 ac_out='"$tmp/out1"'
24679 ac_nxt='"$tmp/out2"'
24680
24681 while :
24682 do
24683 # Write a here document:
24684 cat >>$CONFIG_STATUS <<_ACEOF
24685 # First, check the format of the line:
24686 cat >"\$tmp/defines.sed" <<\\CEOF
24687 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24688 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24689 b
24690 :def
24691 _ACEOF
24692 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24693 echo 'CEOF
24694 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24695 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24696 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24697 grep . conftest.tail >/dev/null || break
24698 rm -f conftest.defines
24699 mv conftest.tail conftest.defines
24700 done
24701 rm -f conftest.defines conftest.tail
24702
24703 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24704 cat >>$CONFIG_STATUS <<\_ACEOF
24705 if test x"$ac_file" != x-; then
24706 echo "/* $configure_input */" >"$tmp/config.h"
24707 cat "$ac_result" >>"$tmp/config.h"
24708 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24709 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24710 echo "$as_me: $ac_file is unchanged" >&6;}
24711 else
24712 rm -f $ac_file
24713 mv "$tmp/config.h" $ac_file
24714 fi
24715 else
24716 echo "/* $configure_input */"
24717 cat "$ac_result"
24718 fi
24719 rm -f "$tmp/out12"
24720 # Compute $ac_file's index in $config_headers.
24721 _am_stamp_count=1
24722 for _am_header in $config_headers :; do
24723 case $_am_header in
24724 $ac_file | $ac_file:* )
24725 break ;;
24726 * )
24727 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24728 esac
24729 done
24730 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24731 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24732 X$ac_file : 'X\(//\)[^/]' \| \
24733 X$ac_file : 'X\(//\)$' \| \
24734 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24735 echo X$ac_file |
24736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24737 s//\1/
24738 q
24739 }
24740 /^X\(\/\/\)[^/].*/{
24741 s//\1/
24742 q
24743 }
24744 /^X\(\/\/\)$/{
24745 s//\1/
24746 q
24747 }
24748 /^X\(\/\).*/{
24749 s//\1/
24750 q
24751 }
24752 s/.*/./; q'`/stamp-h$_am_stamp_count
24753 ;;
24754
24755 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24756 echo "$as_me: executing $ac_file commands" >&6;}
24757 ;;
24758 esac
24759
24760
24761 case $ac_file$ac_mode in
24762 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24763 # Strip MF so we end up with the name of the file.
24764 mf=`echo "$mf" | sed -e 's/:.*$//'`
24765 # Check whether this is an Automake generated Makefile or not.
24766 # We used to match only the files named `Makefile.in', but
24767 # some people rename them; so instead we look at the file content.
24768 # Grep'ing the first line is not enough: some people post-process
24769 # each Makefile.in and add a new line on top of each file to say so.
24770 # So let's grep whole file.
24771 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24772 dirpart=`$as_dirname -- "$mf" ||
24773 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24774 X"$mf" : 'X\(//\)[^/]' \| \
24775 X"$mf" : 'X\(//\)$' \| \
24776 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24777 echo X"$mf" |
24778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24779 s//\1/
24780 q
24781 }
24782 /^X\(\/\/\)[^/].*/{
24783 s//\1/
24784 q
24785 }
24786 /^X\(\/\/\)$/{
24787 s//\1/
24788 q
24789 }
24790 /^X\(\/\).*/{
24791 s//\1/
24792 q
24793 }
24794 s/.*/./; q'`
24795 else
24796 continue
24797 fi
24798 # Extract the definition of DEPDIR, am__include, and am__quote
24799 # from the Makefile without running `make'.
24800 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24801 test -z "$DEPDIR" && continue
24802 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24803 test -z "am__include" && continue
24804 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24805 # When using ansi2knr, U may be empty or an underscore; expand it
24806 U=`sed -n 's/^U = //p' < "$mf"`
24807 # Find all dependency output files, they are included files with
24808 # $(DEPDIR) in their names. We invoke sed twice because it is the
24809 # simplest approach to changing $(DEPDIR) to its actual value in the
24810 # expansion.
24811 for file in `sed -n "
24812 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24813 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24814 # Make sure the directory exists.
24815 test -f "$dirpart/$file" && continue
24816 fdir=`$as_dirname -- "$file" ||
24817 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24818 X"$file" : 'X\(//\)[^/]' \| \
24819 X"$file" : 'X\(//\)$' \| \
24820 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24821 echo X"$file" |
24822 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24823 s//\1/
24824 q
24825 }
24826 /^X\(\/\/\)[^/].*/{
24827 s//\1/
24828 q
24829 }
24830 /^X\(\/\/\)$/{
24831 s//\1/
24832 q
24833 }
24834 /^X\(\/\).*/{
24835 s//\1/
24836 q
24837 }
24838 s/.*/./; q'`
24839 { as_dir=$dirpart/$fdir
24840 case $as_dir in #(
24841 -*) as_dir=./$as_dir;;
24842 esac
24843 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24844 as_dirs=
24845 while :; do
24846 case $as_dir in #(
24847 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24848 *) as_qdir=$as_dir;;
24849 esac
24850 as_dirs="'$as_qdir' $as_dirs"
24851 as_dir=`$as_dirname -- "$as_dir" ||
24852 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24853 X"$as_dir" : 'X\(//\)[^/]' \| \
24854 X"$as_dir" : 'X\(//\)$' \| \
24855 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24856 echo X"$as_dir" |
24857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24858 s//\1/
24859 q
24860 }
24861 /^X\(\/\/\)[^/].*/{
24862 s//\1/
24863 q
24864 }
24865 /^X\(\/\/\)$/{
24866 s//\1/
24867 q
24868 }
24869 /^X\(\/\).*/{
24870 s//\1/
24871 q
24872 }
24873 s/.*/./; q'`
24874 test -d "$as_dir" && break
24875 done
24876 test -z "$as_dirs" || eval "mkdir $as_dirs"
24877 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24878 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24879 { (exit 1); exit 1; }; }; }
24880 # echo "creating $dirpart/$file"
24881 echo '# dummy' > "$dirpart/$file"
24882 done
24883 done
24884 ;;
24885
24886 esac
24887 done # for ac_tag
24888
24889
24890 { (exit 0); exit 0; }
24891 _ACEOF
24892 chmod +x $CONFIG_STATUS
24893 ac_clean_files=$ac_clean_files_save
24894
24895
24896 # configure is writing to config.log, and then calls config.status.
24897 # config.status does its own redirection, appending to config.log.
24898 # Unfortunately, on DOS this fails, as config.log is still kept open
24899 # by configure, so config.status won't be able to write to it; its
24900 # output is simply discarded. So we exec the FD to /dev/null,
24901 # effectively closing config.log, so it can be properly (re)opened and
24902 # appended to by config.status. When coming back to configure, we
24903 # need to make the FD available again.
24904 if test "$no_create" != yes; then
24905 ac_cs_success=:
24906 ac_config_status_args=
24907 test "$silent" = yes &&
24908 ac_config_status_args="$ac_config_status_args --quiet"
24909 exec 5>/dev/null
24910 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24911 exec 5>>config.log
24912 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24913 # would make configure fail if this is the last instruction.
24914 $ac_cs_success || { (exit 1); exit 1; }
24915 fi
24916
88
99 AC_INIT
1010 AC_CONFIG_AUX_DIR(.)
11 AM_INIT_AUTOMAKE(faad2, 2.6.0cvs)
11 AM_INIT_AUTOMAKE(faad2, 2.7.0)
1212
1313 AC_PROG_LIBTOOL
1414 AC_SUBST(LIBTOOL_DEPS)
1515
1616 dnl Checks for programs.
1717 AC_PROG_CC
18 AM_PROG_CC_C_O
1819 AC_PROG_CPP
1920 dnl disable for mpeg4ip plugin
20 dnl AC_PROG_CXX
21 AC_PROG_CXX
2122 AC_PROG_INSTALL
2223 AC_PROG_LN_S
2324 AC_PROG_MAKE_SET
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2005-07-09.11
4
5 # Copyright (C) 1999, 2000, 2003, 2004, 2005 Free Software Foundation, Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 # 02110-1301, USA.
21
22 # As a special exception to the GNU General Public License, if you
23 # distribute this file as part of a program that contains a
24 # configuration script generated by Autoconf, you may include it under
25 # the same distribution terms that you use for the rest of that program.
26
27 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
28
29 case $1 in
30 '')
31 echo "$0: No command. Try \`$0 --help' for more information." 1>&2
32 exit 1;
33 ;;
34 -h | --h*)
35 cat <<\EOF
36 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
37
38 Run PROGRAMS ARGS to compile a file, generating dependencies
39 as side-effects.
40
41 Environment variables:
42 depmode Dependency tracking mode.
43 source Source file read by `PROGRAMS ARGS'.
44 object Object file output by `PROGRAMS ARGS'.
45 DEPDIR directory where to store dependencies.
46 depfile Dependency file to output.
47 tmpdepfile Temporary file to use when outputing dependencies.
48 libtool Whether libtool is used (yes/no).
49
50 Report bugs to <bug-automake@gnu.org>.
51 EOF
52 exit $?
53 ;;
54 -v | --v*)
55 echo "depcomp $scriptversion"
56 exit $?
57 ;;
58 esac
59
60 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
61 echo "depcomp: Variables source, object and depmode must be set" 1>&2
62 exit 1
63 fi
64
65 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
66 depfile=${depfile-`echo "$object" |
67 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
68 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
69
70 rm -f "$tmpdepfile"
71
72 # Some modes work just like other modes, but use different flags. We
73 # parameterize here, but still list the modes in the big case below,
74 # to make depend.m4 easier to write. Note that we *cannot* use a case
75 # here, because this file can only contain one case statement.
76 if test "$depmode" = hp; then
77 # HP compiler uses -M and no extra arg.
78 gccflag=-M
79 depmode=gcc
80 fi
81
82 if test "$depmode" = dashXmstdout; then
83 # This is just like dashmstdout with a different argument.
84 dashmflag=-xM
85 depmode=dashmstdout
86 fi
87
88 case "$depmode" in
89 gcc3)
90 ## gcc 3 implements dependency tracking that does exactly what
91 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
92 ## it if -MD -MP comes after the -MF stuff. Hmm.
93 "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
94 stat=$?
95 if test $stat -eq 0; then :
96 else
97 rm -f "$tmpdepfile"
98 exit $stat
99 fi
100 mv "$tmpdepfile" "$depfile"
101 ;;
102
103 gcc)
104 ## There are various ways to get dependency output from gcc. Here's
105 ## why we pick this rather obscure method:
106 ## - Don't want to use -MD because we'd like the dependencies to end
107 ## up in a subdir. Having to rename by hand is ugly.
108 ## (We might end up doing this anyway to support other compilers.)
109 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
110 ## -MM, not -M (despite what the docs say).
111 ## - Using -M directly means running the compiler twice (even worse
112 ## than renaming).
113 if test -z "$gccflag"; then
114 gccflag=-MD,
115 fi
116 "$@" -Wp,"$gccflag$tmpdepfile"
117 stat=$?
118 if test $stat -eq 0; then :
119 else
120 rm -f "$tmpdepfile"
121 exit $stat
122 fi
123 rm -f "$depfile"
124 echo "$object : \\" > "$depfile"
125 alpha=ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
126 ## The second -e expression handles DOS-style file names with drive letters.
127 sed -e 's/^[^:]*: / /' \
128 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
129 ## This next piece of magic avoids the `deleted header file' problem.
130 ## The problem is that when a header file which appears in a .P file
131 ## is deleted, the dependency causes make to die (because there is
132 ## typically no way to rebuild the header). We avoid this by adding
133 ## dummy dependencies for each header file. Too bad gcc doesn't do
134 ## this for us directly.
135 tr ' ' '
136 ' < "$tmpdepfile" |
137 ## Some versions of gcc put a space before the `:'. On the theory
138 ## that the space means something, we add a space to the output as
139 ## well.
140 ## Some versions of the HPUX 10.20 sed can't process this invocation
141 ## correctly. Breaking it into two sed invocations is a workaround.
142 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
143 rm -f "$tmpdepfile"
144 ;;
145
146 hp)
147 # This case exists only to let depend.m4 do its work. It works by
148 # looking at the text of this script. This case will never be run,
149 # since it is checked for above.
150 exit 1
151 ;;
152
153 sgi)
154 if test "$libtool" = yes; then
155 "$@" "-Wp,-MDupdate,$tmpdepfile"
156 else
157 "$@" -MDupdate "$tmpdepfile"
158 fi
159 stat=$?
160 if test $stat -eq 0; then :
161 else
162 rm -f "$tmpdepfile"
163 exit $stat
164 fi
165 rm -f "$depfile"
166
167 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
168 echo "$object : \\" > "$depfile"
169
170 # Clip off the initial element (the dependent). Don't try to be
171 # clever and replace this with sed code, as IRIX sed won't handle
172 # lines with more than a fixed number of characters (4096 in
173 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
174 # the IRIX cc adds comments like `#:fec' to the end of the
175 # dependency line.
176 tr ' ' '
177 ' < "$tmpdepfile" \
178 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
179 tr '
180 ' ' ' >> $depfile
181 echo >> $depfile
182
183 # The second pass generates a dummy entry for each header file.
184 tr ' ' '
185 ' < "$tmpdepfile" \
186 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
187 >> $depfile
188 else
189 # The sourcefile does not contain any dependencies, so just
190 # store a dummy comment line, to avoid errors with the Makefile
191 # "include basename.Plo" scheme.
192 echo "#dummy" > "$depfile"
193 fi
194 rm -f "$tmpdepfile"
195 ;;
196
197 aix)
198 # The C for AIX Compiler uses -M and outputs the dependencies
199 # in a .u file. In older versions, this file always lives in the
200 # current directory. Also, the AIX compiler puts `$object:' at the
201 # start of each line; $object doesn't have directory information.
202 # Version 6 uses the directory in both cases.
203 stripped=`echo "$object" | sed 's/\(.*\)\..*$/\1/'`
204 tmpdepfile="$stripped.u"
205 if test "$libtool" = yes; then
206 "$@" -Wc,-M
207 else
208 "$@" -M
209 fi
210 stat=$?
211
212 if test -f "$tmpdepfile"; then :
213 else
214 stripped=`echo "$stripped" | sed 's,^.*/,,'`
215 tmpdepfile="$stripped.u"
216 fi
217
218 if test $stat -eq 0; then :
219 else
220 rm -f "$tmpdepfile"
221 exit $stat
222 fi
223
224 if test -f "$tmpdepfile"; then
225 outname="$stripped.o"
226 # Each line is of the form `foo.o: dependent.h'.
227 # Do two passes, one to just change these to
228 # `$object: dependent.h' and one to simply `dependent.h:'.
229 sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
230 sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
231 else
232 # The sourcefile does not contain any dependencies, so just
233 # store a dummy comment line, to avoid errors with the Makefile
234 # "include basename.Plo" scheme.
235 echo "#dummy" > "$depfile"
236 fi
237 rm -f "$tmpdepfile"
238 ;;
239
240 icc)
241 # Intel's C compiler understands `-MD -MF file'. However on
242 # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
243 # ICC 7.0 will fill foo.d with something like
244 # foo.o: sub/foo.c
245 # foo.o: sub/foo.h
246 # which is wrong. We want:
247 # sub/foo.o: sub/foo.c
248 # sub/foo.o: sub/foo.h
249 # sub/foo.c:
250 # sub/foo.h:
251 # ICC 7.1 will output
252 # foo.o: sub/foo.c sub/foo.h
253 # and will wrap long lines using \ :
254 # foo.o: sub/foo.c ... \
255 # sub/foo.h ... \
256 # ...
257
258 "$@" -MD -MF "$tmpdepfile"
259 stat=$?
260 if test $stat -eq 0; then :
261 else
262 rm -f "$tmpdepfile"
263 exit $stat
264 fi
265 rm -f "$depfile"
266 # Each line is of the form `foo.o: dependent.h',
267 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
268 # Do two passes, one to just change these to
269 # `$object: dependent.h' and one to simply `dependent.h:'.
270 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
271 # Some versions of the HPUX 10.20 sed can't process this invocation
272 # correctly. Breaking it into two sed invocations is a workaround.
273 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
274 sed -e 's/$/ :/' >> "$depfile"
275 rm -f "$tmpdepfile"
276 ;;
277
278 tru64)
279 # The Tru64 compiler uses -MD to generate dependencies as a side
280 # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
281 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
282 # dependencies in `foo.d' instead, so we check for that too.
283 # Subdirectories are respected.
284 dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
285 test "x$dir" = "x$object" && dir=
286 base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
287
288 if test "$libtool" = yes; then
289 # With Tru64 cc, shared objects can also be used to make a
290 # static library. This mecanism is used in libtool 1.4 series to
291 # handle both shared and static libraries in a single compilation.
292 # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
293 #
294 # With libtool 1.5 this exception was removed, and libtool now
295 # generates 2 separate objects for the 2 libraries. These two
296 # compilations output dependencies in in $dir.libs/$base.o.d and
297 # in $dir$base.o.d. We have to check for both files, because
298 # one of the two compilations can be disabled. We should prefer
299 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
300 # automatically cleaned when .libs/ is deleted, while ignoring
301 # the former would cause a distcleancheck panic.
302 tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
303 tmpdepfile2=$dir$base.o.d # libtool 1.5
304 tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
305 tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
306 "$@" -Wc,-MD
307 else
308 tmpdepfile1=$dir$base.o.d
309 tmpdepfile2=$dir$base.d
310 tmpdepfile3=$dir$base.d
311 tmpdepfile4=$dir$base.d
312 "$@" -MD
313 fi
314
315 stat=$?
316 if test $stat -eq 0; then :
317 else
318 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
319 exit $stat
320 fi
321
322 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
323 do
324 test -f "$tmpdepfile" && break
325 done
326 if test -f "$tmpdepfile"; then
327 sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
328 # That's a tab and a space in the [].
329 sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
330 else
331 echo "#dummy" > "$depfile"
332 fi
333 rm -f "$tmpdepfile"
334 ;;
335
336 #nosideeffect)
337 # This comment above is used by automake to tell side-effect
338 # dependency tracking mechanisms from slower ones.
339
340 dashmstdout)
341 # Important note: in order to support this mode, a compiler *must*
342 # always write the preprocessed file to stdout, regardless of -o.
343 "$@" || exit $?
344
345 # Remove the call to Libtool.
346 if test "$libtool" = yes; then
347 while test $1 != '--mode=compile'; do
348 shift
349 done
350 shift
351 fi
352
353 # Remove `-o $object'.
354 IFS=" "
355 for arg
356 do
357 case $arg in
358 -o)
359 shift
360 ;;
361 $object)
362 shift
363 ;;
364 *)
365 set fnord "$@" "$arg"
366 shift # fnord
367 shift # $arg
368 ;;
369 esac
370 done
371
372 test -z "$dashmflag" && dashmflag=-M
373 # Require at least two characters before searching for `:'
374 # in the target name. This is to cope with DOS-style filenames:
375 # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
376 "$@" $dashmflag |
377 sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
378 rm -f "$depfile"
379 cat < "$tmpdepfile" > "$depfile"
380 tr ' ' '
381 ' < "$tmpdepfile" | \
382 ## Some versions of the HPUX 10.20 sed can't process this invocation
383 ## correctly. Breaking it into two sed invocations is a workaround.
384 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
385 rm -f "$tmpdepfile"
386 ;;
387
388 dashXmstdout)
389 # This case only exists to satisfy depend.m4. It is never actually
390 # run, as this mode is specially recognized in the preamble.
391 exit 1
392 ;;
393
394 makedepend)
395 "$@" || exit $?
396 # Remove any Libtool call
397 if test "$libtool" = yes; then
398 while test $1 != '--mode=compile'; do
399 shift
400 done
401 shift
402 fi
403 # X makedepend
404 shift
405 cleared=no
406 for arg in "$@"; do
407 case $cleared in
408 no)
409 set ""; shift
410 cleared=yes ;;
411 esac
412 case "$arg" in
413 -D*|-I*)
414 set fnord "$@" "$arg"; shift ;;
415 # Strip any option that makedepend may not understand. Remove
416 # the object too, otherwise makedepend will parse it as a source file.
417 -*|$object)
418 ;;
419 *)
420 set fnord "$@" "$arg"; shift ;;
421 esac
422 done
423 obj_suffix="`echo $object | sed 's/^.*\././'`"
424 touch "$tmpdepfile"
425 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
426 rm -f "$depfile"
427 cat < "$tmpdepfile" > "$depfile"
428 sed '1,2d' "$tmpdepfile" | tr ' ' '
429 ' | \
430 ## Some versions of the HPUX 10.20 sed can't process this invocation
431 ## correctly. Breaking it into two sed invocations is a workaround.
432 sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' | sed -e 's/$/ :/' >> "$depfile"
433 rm -f "$tmpdepfile" "$tmpdepfile".bak
434 ;;
435
436 cpp)
437 # Important note: in order to support this mode, a compiler *must*
438 # always write the preprocessed file to stdout.
439 "$@" || exit $?
440
441 # Remove the call to Libtool.
442 if test "$libtool" = yes; then
443 while test $1 != '--mode=compile'; do
444 shift
445 done
446 shift
447 fi
448
449 # Remove `-o $object'.
450 IFS=" "
451 for arg
452 do
453 case $arg in
454 -o)
455 shift
456 ;;
457 $object)
458 shift
459 ;;
460 *)
461 set fnord "$@" "$arg"
462 shift # fnord
463 shift # $arg
464 ;;
465 esac
466 done
467
468 "$@" -E |
469 sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
470 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
471 sed '$ s: \\$::' > "$tmpdepfile"
472 rm -f "$depfile"
473 echo "$object : \\" > "$depfile"
474 cat < "$tmpdepfile" >> "$depfile"
475 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
476 rm -f "$tmpdepfile"
477 ;;
478
479 msvisualcpp)
480 # Important note: in order to support this mode, a compiler *must*
481 # always write the preprocessed file to stdout, regardless of -o,
482 # because we must use -o when running libtool.
483 "$@" || exit $?
484 IFS=" "
485 for arg
486 do
487 case "$arg" in
488 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
489 set fnord "$@"
490 shift
491 shift
492 ;;
493 *)
494 set fnord "$@" "$arg"
495 shift
496 shift
497 ;;
498 esac
499 done
500 "$@" -E |
501 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
502 rm -f "$depfile"
503 echo "$object : \\" > "$depfile"
504 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
505 echo " " >> "$depfile"
506 . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
507 rm -f "$tmpdepfile"
508 ;;
509
510 none)
511 exec "$@"
512 ;;
513
514 *)
515 echo "Unknown depmode $depmode" 1>&2
516 exit 1
517 ;;
518 esac
519
520 exit 0
521
522 # Local Variables:
523 # mode: shell-script
524 # sh-indentation: 2
525 # eval: (add-hook 'write-file-hooks 'time-stamp)
526 # time-stamp-start: "scriptversion="
527 # time-stamp-format: "%:y-%02m-%02d.%02H"
528 # time-stamp-end: "$"
529 # End:
(No changes)
00 bin_PROGRAMS = faad
1 man_MANS = faad.man
12
23 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/common/faad \
3 -I$(top_srcdir)/common/mp4ff
4 -I$(top_srcdir)/common/mp4ff
45
56 faad_LDADD = $(top_builddir)/libfaad/libfaad.la \
6 $(top_builddir)/common/mp4ff/libmp4ff.la
7 $(top_builddir)/common/mp4ff/libmp4ff.a
78
89 faad_SOURCES = main.c \
9 audio.c audio.h \
10 $(top_srcdir)/common/faad/getopt.c
10 audio.c audio.h \
11 $(top_srcdir)/common/faad/getopt.c
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 bin_PROGRAMS = faad$(EXEEXT)
39 subdir = frontend
40 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42 am__aclocal_m4_deps = $(top_srcdir)/configure.in
43 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
44 $(ACLOCAL_M4)
45 mkinstalldirs = $(install_sh) -d
46 CONFIG_HEADER = $(top_builddir)/config.h
47 CONFIG_CLEAN_FILES =
48 am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(manmdir)"
49 binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
50 PROGRAMS = $(bin_PROGRAMS)
51 am_faad_OBJECTS = main.$(OBJEXT) audio.$(OBJEXT) getopt.$(OBJEXT)
52 faad_OBJECTS = $(am_faad_OBJECTS)
53 faad_DEPENDENCIES = $(top_builddir)/libfaad/libfaad.la \
54 $(top_builddir)/common/mp4ff/libmp4ff.a
55 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
56 depcomp = $(SHELL) $(top_srcdir)/depcomp
57 am__depfiles_maybe = depfiles
58 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
59 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
60 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
61 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
62 $(AM_CFLAGS) $(CFLAGS)
63 CCLD = $(CC)
64 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
65 $(AM_LDFLAGS) $(LDFLAGS) -o $@
66 SOURCES = $(faad_SOURCES)
67 DIST_SOURCES = $(faad_SOURCES)
68 manmdir = $(mandir)/manm
69 NROFF = nroff
70 MANS = $(man_MANS)
71 ETAGS = etags
72 CTAGS = ctags
73 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
74 ACLOCAL = @ACLOCAL@
75 AMDEP_FALSE = @AMDEP_FALSE@
76 AMDEP_TRUE = @AMDEP_TRUE@
77 AMTAR = @AMTAR@
78 AR = @AR@
79 AUTOCONF = @AUTOCONF@
80 AUTOHEADER = @AUTOHEADER@
81 AUTOMAKE = @AUTOMAKE@
82 AWK = @AWK@
83 CC = @CC@
84 CCDEPMODE = @CCDEPMODE@
85 CFLAGS = @CFLAGS@
86 CPP = @CPP@
87 CPPFLAGS = @CPPFLAGS@
88 CXX = @CXX@
89 CXXCPP = @CXXCPP@
90 CXXDEPMODE = @CXXDEPMODE@
91 CXXFLAGS = @CXXFLAGS@
92 CYGPATH_W = @CYGPATH_W@
93 DEFS = @DEFS@
94 DEPDIR = @DEPDIR@
95 ECHO = @ECHO@
96 ECHO_C = @ECHO_C@
97 ECHO_N = @ECHO_N@
98 ECHO_T = @ECHO_T@
99 EGREP = @EGREP@
100 EXEEXT = @EXEEXT@
101 F77 = @F77@
102 FFLAGS = @FFLAGS@
103 GREP = @GREP@
104 GTK_CONFIG = @GTK_CONFIG@
105 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
106 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
107 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
108 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
109 INSTALL_DATA = @INSTALL_DATA@
110 INSTALL_PROGRAM = @INSTALL_PROGRAM@
111 INSTALL_SCRIPT = @INSTALL_SCRIPT@
112 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
113 LDFLAGS = @LDFLAGS@
114 LIBOBJS = @LIBOBJS@
115 LIBS = @LIBS@
116 LIBTOOL = @LIBTOOL@
117 LIBTOOL_DEPS = @LIBTOOL_DEPS@
118 LN_S = @LN_S@
119 LTLIBOBJS = @LTLIBOBJS@
120 MAKEINFO = @MAKEINFO@
121 MP4FF_LIBS = @MP4FF_LIBS@
122 OBJEXT = @OBJEXT@
123 PACKAGE = @PACKAGE@
124 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
125 PACKAGE_NAME = @PACKAGE_NAME@
126 PACKAGE_STRING = @PACKAGE_STRING@
127 PACKAGE_TARNAME = @PACKAGE_TARNAME@
128 PACKAGE_VERSION = @PACKAGE_VERSION@
129 PATH_SEPARATOR = @PATH_SEPARATOR@
130 RANLIB = @RANLIB@
131 RPMBUILD = @RPMBUILD@
132 SET_MAKE = @SET_MAKE@
133 SHELL = @SHELL@
134 STRIP = @STRIP@
135 VERSION = @VERSION@
136 XMMS_CONFIG = @XMMS_CONFIG@
137 ac_ct_CC = @ac_ct_CC@
138 ac_ct_CXX = @ac_ct_CXX@
139 ac_ct_F77 = @ac_ct_F77@
140 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
141 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
142 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
143 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
144 am__include = @am__include@
145 am__leading_dot = @am__leading_dot@
146 am__quote = @am__quote@
147 am__tar = @am__tar@
148 am__untar = @am__untar@
149 bindir = @bindir@
150 build = @build@
151 build_alias = @build_alias@
152 build_cpu = @build_cpu@
153 build_os = @build_os@
154 build_vendor = @build_vendor@
155 datadir = @datadir@
156 datarootdir = @datarootdir@
157 docdir = @docdir@
158 dvidir = @dvidir@
159 exec_prefix = @exec_prefix@
160 external_mp4v2 = @external_mp4v2@
161 host = @host@
162 host_alias = @host_alias@
163 host_cpu = @host_cpu@
164 host_os = @host_os@
165 host_vendor = @host_vendor@
166 htmldir = @htmldir@
167 includedir = @includedir@
168 infodir = @infodir@
169 install_sh = @install_sh@
170 libdir = @libdir@
171 libexecdir = @libexecdir@
172 localedir = @localedir@
173 localstatedir = @localstatedir@
174 mandir = @mandir@
175 mkdir_p = @mkdir_p@
176 oldincludedir = @oldincludedir@
177 pdfdir = @pdfdir@
178 prefix = @prefix@
179 program_transform_name = @program_transform_name@
180 psdir = @psdir@
181 sbindir = @sbindir@
182 sharedstatedir = @sharedstatedir@
183 sysconfdir = @sysconfdir@
184 target_alias = @target_alias@
185 man_MANS = faad.man
186 INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/common/faad \
187 -I$(top_srcdir)/common/mp4ff
188
189 faad_LDADD = $(top_builddir)/libfaad/libfaad.la \
190 $(top_builddir)/common/mp4ff/libmp4ff.a
191
192 faad_SOURCES = main.c \
193 audio.c audio.h \
194 $(top_srcdir)/common/faad/getopt.c
195
196 all: all-am
197
198 .SUFFIXES:
199 .SUFFIXES: .c .lo .o .obj
200 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
201 @for dep in $?; do \
202 case '$(am__configure_deps)' in \
203 *$$dep*) \
204 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
205 && exit 0; \
206 exit 1;; \
207 esac; \
208 done; \
209 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu frontend/Makefile'; \
210 cd $(top_srcdir) && \
211 $(AUTOMAKE) --gnu frontend/Makefile
212 .PRECIOUS: Makefile
213 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
214 @case '$?' in \
215 *config.status*) \
216 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
217 *) \
218 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
219 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
220 esac;
221
222 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
223 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
224
225 $(top_srcdir)/configure: $(am__configure_deps)
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
227 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
228 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
229 install-binPROGRAMS: $(bin_PROGRAMS)
230 @$(NORMAL_INSTALL)
231 test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
232 @list='$(bin_PROGRAMS)'; for p in $$list; do \
233 p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
234 if test -f $$p \
235 || test -f $$p1 \
236 ; then \
237 f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
238 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(bindir)/$$f'"; \
239 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(binPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(bindir)/$$f" || exit 1; \
240 else :; fi; \
241 done
242
243 uninstall-binPROGRAMS:
244 @$(NORMAL_UNINSTALL)
245 @list='$(bin_PROGRAMS)'; for p in $$list; do \
246 f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
247 echo " rm -f '$(DESTDIR)$(bindir)/$$f'"; \
248 rm -f "$(DESTDIR)$(bindir)/$$f"; \
249 done
250
251 clean-binPROGRAMS:
252 @list='$(bin_PROGRAMS)'; for p in $$list; do \
253 f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
254 echo " rm -f $$p $$f"; \
255 rm -f $$p $$f ; \
256 done
257 faad$(EXEEXT): $(faad_OBJECTS) $(faad_DEPENDENCIES)
258 @rm -f faad$(EXEEXT)
259 $(LINK) $(faad_LDFLAGS) $(faad_OBJECTS) $(faad_LDADD) $(LIBS)
260
261 mostlyclean-compile:
262 -rm -f *.$(OBJEXT)
263
264 distclean-compile:
265 -rm -f *.tab.c
266
267 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/audio.Po@am__quote@
268 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Po@am__quote@
269 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/main.Po@am__quote@
270
271 .c.o:
272 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
273 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
274 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
275 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
276 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
277
278 .c.obj:
279 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
280 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
281 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
282 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
283 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
284
285 .c.lo:
286 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
287 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
288 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
289 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
290 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
291
292 getopt.o: $(top_srcdir)/common/faad/getopt.c
293 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.o -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.o `test -f '$(top_srcdir)/common/faad/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/common/faad/getopt.c; \
294 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
295 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/common/faad/getopt.c' object='getopt.o' libtool=no @AMDEPBACKSLASH@
296 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
297 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.o `test -f '$(top_srcdir)/common/faad/getopt.c' || echo '$(srcdir)/'`$(top_srcdir)/common/faad/getopt.c
298
299 getopt.obj: $(top_srcdir)/common/faad/getopt.c
300 @am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -MT getopt.obj -MD -MP -MF "$(DEPDIR)/getopt.Tpo" -c -o getopt.obj `if test -f '$(top_srcdir)/common/faad/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/common/faad/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/common/faad/getopt.c'; fi`; \
301 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/getopt.Tpo" "$(DEPDIR)/getopt.Po"; else rm -f "$(DEPDIR)/getopt.Tpo"; exit 1; fi
302 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$(top_srcdir)/common/faad/getopt.c' object='getopt.obj' libtool=no @AMDEPBACKSLASH@
303 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
304 @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -c -o getopt.obj `if test -f '$(top_srcdir)/common/faad/getopt.c'; then $(CYGPATH_W) '$(top_srcdir)/common/faad/getopt.c'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/common/faad/getopt.c'; fi`
305
306 mostlyclean-libtool:
307 -rm -f *.lo
308
309 clean-libtool:
310 -rm -rf .libs _libs
311
312 distclean-libtool:
313 -rm -f libtool
314 uninstall-info-am:
315 install-manm: $(manm_MANS) $(man_MANS)
316 @$(NORMAL_INSTALL)
317 test -z "$(manmdir)" || $(mkdir_p) "$(DESTDIR)$(manmdir)"
318 @list='$(manm_MANS) $(dist_manm_MANS) $(nodist_manm_MANS)'; \
319 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
320 for i in $$l2; do \
321 case "$$i" in \
322 *.m*) list="$$list $$i" ;; \
323 esac; \
324 done; \
325 for i in $$list; do \
326 if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
327 else file=$$i; fi; \
328 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
329 case "$$ext" in \
330 m*) ;; \
331 *) ext='m' ;; \
332 esac; \
333 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
334 inst=`echo $$inst | sed -e 's/^.*\///'`; \
335 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
336 echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(manmdir)/$$inst'"; \
337 $(INSTALL_DATA) "$$file" "$(DESTDIR)$(manmdir)/$$inst"; \
338 done
339 uninstall-manm:
340 @$(NORMAL_UNINSTALL)
341 @list='$(manm_MANS) $(dist_manm_MANS) $(nodist_manm_MANS)'; \
342 l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
343 for i in $$l2; do \
344 case "$$i" in \
345 *.m*) list="$$list $$i" ;; \
346 esac; \
347 done; \
348 for i in $$list; do \
349 ext=`echo $$i | sed -e 's/^.*\\.//'`; \
350 case "$$ext" in \
351 m*) ;; \
352 *) ext='m' ;; \
353 esac; \
354 inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
355 inst=`echo $$inst | sed -e 's/^.*\///'`; \
356 inst=`echo $$inst | sed '$(transform)'`.$$ext; \
357 echo " rm -f '$(DESTDIR)$(manmdir)/$$inst'"; \
358 rm -f "$(DESTDIR)$(manmdir)/$$inst"; \
359 done
360
361 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
362 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
363 unique=`for i in $$list; do \
364 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
365 done | \
366 $(AWK) ' { files[$$0] = 1; } \
367 END { for (i in files) print i; }'`; \
368 mkid -fID $$unique
369 tags: TAGS
370
371 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
372 $(TAGS_FILES) $(LISP)
373 tags=; \
374 here=`pwd`; \
375 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
376 unique=`for i in $$list; do \
377 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
378 done | \
379 $(AWK) ' { files[$$0] = 1; } \
380 END { for (i in files) print i; }'`; \
381 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
382 test -n "$$unique" || unique=$$empty_fix; \
383 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
384 $$tags $$unique; \
385 fi
386 ctags: CTAGS
387 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
388 $(TAGS_FILES) $(LISP)
389 tags=; \
390 here=`pwd`; \
391 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
392 unique=`for i in $$list; do \
393 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
394 done | \
395 $(AWK) ' { files[$$0] = 1; } \
396 END { for (i in files) print i; }'`; \
397 test -z "$(CTAGS_ARGS)$$tags$$unique" \
398 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
399 $$tags $$unique
400
401 GTAGS:
402 here=`$(am__cd) $(top_builddir) && pwd` \
403 && cd $(top_srcdir) \
404 && gtags -i $(GTAGS_ARGS) $$here
405
406 distclean-tags:
407 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
408
409 distdir: $(DISTFILES)
410 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
411 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
412 list='$(DISTFILES)'; for file in $$list; do \
413 case $$file in \
414 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
415 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
416 esac; \
417 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
418 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
419 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
420 dir="/$$dir"; \
421 $(mkdir_p) "$(distdir)$$dir"; \
422 else \
423 dir=''; \
424 fi; \
425 if test -d $$d/$$file; then \
426 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
427 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
428 fi; \
429 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
430 else \
431 test -f $(distdir)/$$file \
432 || cp -p $$d/$$file $(distdir)/$$file \
433 || exit 1; \
434 fi; \
435 done
436 check-am: all-am
437 check: check-am
438 all-am: Makefile $(PROGRAMS) $(MANS)
439 installdirs:
440 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(manmdir)"; do \
441 test -z "$$dir" || $(mkdir_p) "$$dir"; \
442 done
443 install: install-am
444 install-exec: install-exec-am
445 install-data: install-data-am
446 uninstall: uninstall-am
447
448 install-am: all-am
449 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
450
451 installcheck: installcheck-am
452 install-strip:
453 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
454 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
455 `test -z '$(STRIP)' || \
456 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
457 mostlyclean-generic:
458
459 clean-generic:
460
461 distclean-generic:
462 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
463
464 maintainer-clean-generic:
465 @echo "This command is intended for maintainers to use"
466 @echo "it deletes files that may require special tools to rebuild."
467 clean: clean-am
468
469 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
470
471 distclean: distclean-am
472 -rm -rf ./$(DEPDIR)
473 -rm -f Makefile
474 distclean-am: clean-am distclean-compile distclean-generic \
475 distclean-libtool distclean-tags
476
477 dvi: dvi-am
478
479 dvi-am:
480
481 html: html-am
482
483 info: info-am
484
485 info-am:
486
487 install-data-am: install-man
488
489 install-exec-am: install-binPROGRAMS
490
491 install-info: install-info-am
492
493 install-man: install-manm
494
495 installcheck-am:
496
497 maintainer-clean: maintainer-clean-am
498 -rm -rf ./$(DEPDIR)
499 -rm -f Makefile
500 maintainer-clean-am: distclean-am maintainer-clean-generic
501
502 mostlyclean: mostlyclean-am
503
504 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
505 mostlyclean-libtool
506
507 pdf: pdf-am
508
509 pdf-am:
510
511 ps: ps-am
512
513 ps-am:
514
515 uninstall-am: uninstall-binPROGRAMS uninstall-info-am uninstall-man
516
517 uninstall-man: uninstall-manm
518
519 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-binPROGRAMS \
520 clean-generic clean-libtool ctags distclean distclean-compile \
521 distclean-generic distclean-libtool distclean-tags distdir dvi \
522 dvi-am html html-am info info-am install install-am \
523 install-binPROGRAMS install-data install-data-am install-exec \
524 install-exec-am install-info install-info-am install-man \
525 install-manm install-strip installcheck installcheck-am \
526 installdirs maintainer-clean maintainer-clean-generic \
527 mostlyclean mostlyclean-compile mostlyclean-generic \
528 mostlyclean-libtool pdf pdf-am ps ps-am tags uninstall \
529 uninstall-am uninstall-binPROGRAMS uninstall-info-am \
530 uninstall-man uninstall-manm
531
532 # Tell versions [3.59,3.63) of GNU make to not export all variables.
533 # Otherwise a system limit (for SysV at least) may be exceeded.
534 .NOEXPORT:
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: audio.c,v 1.28 2007/11/01 12:33:29 menno Exp $
27 ** $Id: audio.c,v 1.29 2008/09/19 22:50:17 menno Exp $
2828 **/
2929
3030 #ifdef _WIN32
119119
120120 void close_audio_file(audio_file *aufile)
121121 {
122 if (aufile->fileType == OUTPUT_WAV)
122 if ((aufile->fileType == OUTPUT_WAV) && (aufile->toStdio == 0))
123123 {
124124 fseek(aufile->sndfile, 0, SEEK_SET);
125125
(No changes)
+0
-127
frontend/faad.dsp less more
0 # Microsoft Developer Studio Project File - Name="faad" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Console Application" 0x0103
5
6 CFG=faad - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "faad.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "faad.mak" CFG="faad - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "faad - Win32 Release" (based on "Win32 (x86) Console Application")
20 !MESSAGE "faad - Win32 Debug" (based on "Win32 (x86) Console Application")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=xicl6.exe
28 RSC=rc.exe
29
30 !IF "$(CFG)" == "faad - Win32 Release"
31
32 # PROP BASE Use_MFC 0
33 # PROP BASE Use_Debug_Libraries 0
34 # PROP BASE Output_Dir "Release"
35 # PROP BASE Intermediate_Dir "Release"
36 # PROP BASE Target_Dir ""
37 # PROP Use_MFC 0
38 # PROP Use_Debug_Libraries 0
39 # PROP Output_Dir "Release"
40 # PROP Intermediate_Dir "Release"
41 # PROP Ignore_Export_Lib 0
42 # PROP Target_Dir ""
43 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
44 # ADD CPP /nologo /MD /W3 /I "../include" /I "../common/mp4ff" /I "../common/faad" /D "WIN32" /D "NDEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
45 # ADD BASE RSC /l 0x413 /d "NDEBUG"
46 # ADD RSC /l 0x413 /d "NDEBUG"
47 BSC32=bscmake.exe
48 # ADD BASE BSC32 /nologo
49 # ADD BSC32 /nologo
50 LINK32=xilink6.exe
51 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386
52 # ADD LINK32 Advapi32.lib /nologo /subsystem:console /machine:I386
53 # SUBTRACT LINK32 /profile
54
55 !ELSEIF "$(CFG)" == "faad - Win32 Debug"
56
57 # PROP BASE Use_MFC 0
58 # PROP BASE Use_Debug_Libraries 1
59 # PROP BASE Output_Dir "Debug"
60 # PROP BASE Intermediate_Dir "Debug"
61 # PROP BASE Target_Dir ""
62 # PROP Use_MFC 0
63 # PROP Use_Debug_Libraries 1
64 # PROP Output_Dir "Debug"
65 # PROP Intermediate_Dir "Debug"
66 # PROP Ignore_Export_Lib 0
67 # PROP Target_Dir ""
68 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
69 # ADD CPP /nologo /MDd /W3 /Gm /ZI /Od /I "../include" /I "../common/mp4ff" /I "../common/faad" /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c
70 # ADD BASE RSC /l 0x413 /d "_DEBUG"
71 # ADD RSC /l 0x413 /d "_DEBUG"
72 BSC32=bscmake.exe
73 # ADD BASE BSC32 /nologo
74 # ADD BSC32 /nologo
75 LINK32=xilink6.exe
76 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
77 # ADD LINK32 Advapi32.lib /nologo /subsystem:console /debug /machine:I386 /pdbtype:sept
78
79 !ENDIF
80
81 # Begin Target
82
83 # Name "faad - Win32 Release"
84 # Name "faad - Win32 Debug"
85 # Begin Group "Source Files"
86
87 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
88 # Begin Source File
89
90 SOURCE=.\audio.c
91 # End Source File
92 # Begin Source File
93
94 SOURCE=..\common\faad\getopt.c
95 # End Source File
96 # Begin Source File
97
98 SOURCE=.\main.c
99 # End Source File
100 # End Group
101 # Begin Group "Header Files"
102
103 # PROP Default_Filter "h;hpp;hxx;hm;inl"
104 # Begin Source File
105
106 SOURCE=.\audio.h
107 # End Source File
108 # Begin Source File
109
110 SOURCE=..\common\faad\getopt.h
111 # End Source File
112 # Begin Source File
113
114 SOURCE=..\common\mp4ff\mp4ff.h
115 # End Source File
116 # Begin Source File
117
118 SOURCE=..\common\mp4ff\mp4ff_int_types.h
119 # End Source File
120 # Begin Source File
121
122 SOURCE=..\include\neaacdec.h
123 # End Source File
124 # End Group
125 # End Target
126 # End Project
+0
-59
frontend/faad.dsw less more
0 Microsoft Developer Studio Workspace File, Format Version 6.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "faad"=.\faad.dsp - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 Begin Project Dependency
14 Project_Dep_Name libfaad
15 End Project Dependency
16 Begin Project Dependency
17 Project_Dep_Name mp4ff
18 End Project Dependency
19 }}}
20
21 ###############################################################################
22
23 Project: "libfaad"=..\libfaad\libfaad.dsp - Package Owner=<4>
24
25 Package=<5>
26 {{{
27 }}}
28
29 Package=<4>
30 {{{
31 }}}
32
33 ###############################################################################
34
35 Project: "mp4ff"=..\common\mp4ff\mp4ff.dsp - Package Owner=<4>
36
37 Package=<5>
38 {{{
39 }}}
40
41 Package=<4>
42 {{{
43 }}}
44
45 ###############################################################################
46
47 Global:
48
49 Package=<5>
50 {{{
51 }}}
52
53 Package=<3>
54 {{{
55 }}}
56
57 ###############################################################################
58
0 .TH FAAD "1" "October 2006" "faad 2.5" ""
1 .SH NAME
2 faad \(em Process an Advanced Audio Codec stream
3
4 .SH "SYNOPSIS"
5 .B faad
6 [options] [\-w | \-o <output_filename> | \-a <output_filename>] input_filename
7
8 .SH "DESCRIPTION"
9 This utility provides a command line interface to libfaad2. This program reads in MPEG\(hy4 AAC files, processes, and outputs them in either Microsoft WAV, MPEG\(hy4 AAC ADTS, or standard PCM formats.
10
11 .SH "OPTIONS"
12 .TP
13 .BI \-a " <filename>" ", \-\^\-adtsout" " <filename>"
14 Sets the processing to output to the specified file in MPEG\(hy4 AAC ADTS format
15 .TP
16 .BI \-b " <number>" ", \-\^\-bits" " <number>"
17 Set the output (individual) sample format. The number takes one of the following values:
18 .RS
19 .RS
20 1: 16\(hybit PCM data (default).
21 .br
22 2: 24\(hybit PCM data.
23 .br
24 3: 32\(hybit PCM data.
25 .br
26 4: 32\(hybit floating\hy(point data.
27 .br
28 5: 64\(hybit floating\hy(point data.
29 .RE
30 .RE
31 .TP
32 .B \-d ", \-\^\-downmix"
33 Set the processing to downsample from 5.1 (surround sound and bass) channels to 2 channels (stereo).
34 .TP
35 .BI \-f " <number>" ", \-\^\-format" " <number>"
36 Set the output file format. The number takes one of the following values:
37 .RS
38 .RS
39 1: Microsoft WAV format (default).
40 .br
41 2: Raw PCM data.
42 .RE
43 .RE
44 .TP
45 .BI \-g
46 Set the processing to not perform gapless decoding.
47 .TP
48 .B \-h ", \-\^\-help"
49 Shows a usage summary.
50 .TP
51 .B \-i ", \-\^\-info"
52 Shows information about the about the input file.
53 .TP
54 .BI \-l " <number>" ", \-\^\-objecttype" " <number>"
55 Sets the MPEG\hy(4 profile and object type for the processing to use. The number takes one of the following values:
56 .RS
57 .RS
58 1: Main object type.
59 .br
60 2: Low Complexity (LC) object type (default).
61 .br
62 4: Long Term Prediction (LTP) object type.
63 .br
64 23: Low Delay (LD) object type.
65 .RE
66 .RE
67 .TP
68 .BI \-o " <filename>" ", \-\^\-outfile" " <number>"
69 Sets the filename for processing output.
70 .TP
71 .B \-q ", \-\^\-quiet"
72 Quiet \- Suppresses status messages during processing.
73 .TP
74 .B \-t ", \-\^\-oldformat"
75 Sets the processing to use the old MPEG\(hy4 AAC ADTS format when outputting in said format.
76 .TP
77 .B \-w ", \-\^\-stdio"
78 Sets the processing output to be sent to the standard out.
79
80 .SH "AUTHOR"
81 Matthew W. S. Bell <matthew (at) bells23.org.uk>
82
83 .SH "SEE ALSO"
84 \fBfaac\fP(1)
0 
01 Microsoft Visual Studio Solution File, Format Version 9.00
1 # Visual C++ Express 2005
2 # Visual Studio 2005
23 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "faad", "faad.vcproj", "{2BD8CBB3-DFC9-4A6A-9B7A-07ED749BED58}"
34 ProjectSection(ProjectDependencies) = postProject
5 {F470BB4A-7675-4D6A-B310-41F33AC6F987} = {F470BB4A-7675-4D6A-B310-41F33AC6F987}
46 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114} = {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}
5 {F470BB4A-7675-4D6A-B310-41F33AC6F987} = {F470BB4A-7675-4D6A-B310-41F33AC6F987}
67 EndProjectSection
78 EndProject
89 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfaad", "..\libfaad\libfaad.vcproj", "{BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}"
00 <?xml version="1.0" encoding="Windows-1252"?>
11 <VisualStudioProject
22 ProjectType="Visual C++"
3 Version="8,00"
3 Version="8.00"
44 Name="faad"
55 ProjectGUID="{2BD8CBB3-DFC9-4A6A-9B7A-07ED749BED58}"
66 >
225225 >
226226 </File>
227227 <File
228 RelativePath="..\include\faad.h"
229 >
230 </File>
231 <File
232228 RelativePath="..\common\faad\getopt.h"
233229 >
234230 </File>
238234 </File>
239235 <File
240236 RelativePath="..\common\mp4v2\mpeg4ip.h"
237 >
238 </File>
239 <File
240 RelativePath="..\include\neaacdec.h"
241241 >
242242 </File>
243243 <File
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: main.c,v 1.81 2007/11/01 12:33:29 menno Exp $
27 ** $Id: main.c,v 1.85 2008/09/22 17:55:09 menno Exp $
2828 **/
2929
3030 #ifdef _WIN32
3939 #include <stdio.h>
4040 #include <stdarg.h>
4141 #include <stdlib.h>
42 #include <string.h>
4243 #include <getopt.h>
4344
4445 #include <neaacdec.h>
5657
5758 static int quiet = 0;
5859
59 void faad_fprintf(FILE *stream, const char *fmt, ...)
60 static void faad_fprintf(FILE *stream, const char *fmt, ...)
6061 {
6162 va_list ap;
6263
8182 } aac_buffer;
8283
8384
84 int fill_buffer(aac_buffer *b)
85 static int fill_buffer(aac_buffer *b)
8586 {
8687 int bread;
8788
126127 return 1;
127128 }
128129
129 void advance_buffer(aac_buffer *b, int bytes)
130 static void advance_buffer(aac_buffer *b, int bytes)
130131 {
131132 b->file_offset += bytes;
132133 b->bytes_consumed = bytes;
133134 b->bytes_into_buffer -= bytes;
135 if (b->bytes_into_buffer < 0)
136 b->bytes_into_buffer = 0;
134137 }
135138
136139 static int adts_sample_rates[] = {96000,88200,64000,48000,44100,32000,24000,22050,16000,12000,11025,8000,7350,0,0,0};
137140
138 int adts_parse(aac_buffer *b, int *bitrate, float *length)
141 static int adts_parse(aac_buffer *b, int *bitrate, float *length)
139142 {
140143 int frames, frame_length;
141144 int t_framelength = 0;
217220 #define SPEAKER_TOP_BACK_RIGHT 0x20000
218221 #define SPEAKER_RESERVED 0x80000000
219222
220 long aacChannelConfig2wavexChannelMask(NeAACDecFrameInfo *hInfo)
223 static long aacChannelConfig2wavexChannelMask(NeAACDecFrameInfo *hInfo)
221224 {
222225 if (hInfo->channels == 6 && hInfo->num_lfe_channels)
223226 {
229232 }
230233 }
231234
232 char *position2string(int position)
235 static char *position2string(int position)
233236 {
234237 switch (position)
235238 {
249252 return "";
250253 }
251254
252 void print_channel_info(NeAACDecFrameInfo *frameInfo)
255 static void print_channel_info(NeAACDecFrameInfo *frameInfo)
253256 {
254257 /* print some channel info */
255258 int i;
281284 faad_fprintf(stderr, "\n");
282285 }
283286
284 int FindAdtsSRIndex(int sr)
287 static int FindAdtsSRIndex(int sr)
285288 {
286289 int i;
287290
293296 return 16 - 1;
294297 }
295298
296 unsigned char *MakeAdtsHeader(int *dataSize, NeAACDecFrameInfo *hInfo, int old_format)
299 static unsigned char *MakeAdtsHeader(int *dataSize, NeAACDecFrameInfo *hInfo, int old_format)
297300 {
298301 unsigned char *data;
299302 int profile = (hInfo->object_type - 1) & 0x3;
343346 /* globals */
344347 char *progName;
345348
346 char *file_ext[] =
349 static const char *file_ext[] =
347350 {
348351 NULL,
349352 ".wav",
354357 NULL
355358 };
356359
357 void usage(void)
360 static void usage(void)
358361 {
359362 faad_fprintf(stdout, "\nUsage:\n");
360363 faad_fprintf(stdout, "%s [options] infile.aac\n", progName);
392395 return;
393396 }
394397
395 int decodeAACfile(char *aacfile, char *sndfile, char *adts_fn, int to_stdout,
398 static int decodeAACfile(char *aacfile, char *sndfile, char *adts_fn, int to_stdout,
396399 int def_srate, int object_type, int outputFormat, int fileType,
397400 int downMatrix, int infoOnly, int adts_out, int old_format,
398401 float *song_length)
639642
640643 if ((frameInfo.error == 0) && (frameInfo.samples > 0) && (!adts_out))
641644 {
642 write_audio_file(aufile, sample_buffer, frameInfo.samples, 0);
643 }
645 if (write_audio_file(aufile, sample_buffer, frameInfo.samples, 0) == 0)
646 break;
647 }
644648
645649 /* fill buffer */
646650 fill_buffer(&b);
668672 return frameInfo.error;
669673 }
670674
671 int GetAACTrack(mp4ff_t *infile)
675 static int GetAACTrack(mp4ff_t *infile)
672676 {
673677 /* find AAC track */
674678 int i, rc;
697701 return -1;
698702 }
699703
700 unsigned long srates[] =
704 static const unsigned long srates[] =
701705 {
702706 96000, 88200, 64000, 48000, 44100, 32000, 24000, 22050, 16000,
703707 12000, 11025, 8000
704708 };
705709
706 int decodeMP4file(char *mp4file, char *sndfile, char *adts_fn, int to_stdout,
710 static int decodeMP4file(char *mp4file, char *sndfile, char *adts_fn, int to_stdout,
707711 int outputFormat, int fileType, int downMatrix, int noGapless,
708712 int infoOnly, int adts_out, float *song_length)
709713 {
913917 sample_count = frameInfo.samples;
914918 } else {
915919 sample_count = (unsigned int)(dur * frameInfo.channels);
920 if (sample_count > frameInfo.samples)
921 sample_count = frameInfo.samples;
916922
917923 if (!useAacLength && !initial && (sampleId < numSamples/2) && (sample_count != frameInfo.samples))
918924 {
975981
976982 if ((frameInfo.error == 0) && (sample_count > 0) && (!adts_out))
977983 {
978 write_audio_file(aufile, sample_buffer, sample_count, delay);
984 if (write_audio_file(aufile, sample_buffer, sample_count, delay) == 0)
985 break;
979986 }
980987
981988 if (frameInfo.error > 0)
11881195 return 1;
11891196 }
11901197
1198 #if 0
11911199 /* only allow raw data on stdio */
11921200 if (writeToStdio == 1)
11931201 {
11941202 format = 2;
11951203 }
1204 #endif
11961205
11971206 /* point to the specified file name */
11981207 strcpy(aacFileName, argv[optind]);
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: neaacdec.h,v 1.11 2007/11/01 12:33:29 menno Exp $
27 ** $Id: neaacdec.h,v 1.13 2009/01/26 23:51:15 menno Exp $
2828 **/
2929
3030 #ifndef __NEAACDEC_H__
6868 #endif
6969 #endif
7070
71 #define FAAD2_VERSION "2.6"
71 #define FAAD2_VERSION "2.7"
7272
7373 /* object types for AAC */
7474 #define MAIN 1
8585 #define RAW 0
8686 #define ADIF 1
8787 #define ADTS 2
88 #define LATM 3
8889
8990 /* SBR signalling */
9091 #define NO_SBR 0
215216 unsigned char *channels);
216217
217218 /* Init the library using a DecoderSpecificInfo */
218 char NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, unsigned char *pBuffer,
219 char NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder,
220 unsigned char *pBuffer,
219221 unsigned long SizeOfDecoderSpecificInfo,
220 unsigned long *samplerate, unsigned char *channels);
222 unsigned long *samplerate,
223 unsigned char *channels);
221224
222225 /* Init the library for DRM */
223226 char NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, unsigned long samplerate,
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2005-05-14.22
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # `make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch. It can only install one file at a time, a restriction
42 # shared with many OS's install programs.
43
44 # set DOITPROG to echo to test this script
45
46 # Don't use :- since 4.3BSD and earlier shells don't like it.
47 doit="${DOITPROG-}"
48
49 # put in absolute paths if you don't have them in your path; or use env. vars.
50
51 mvprog="${MVPROG-mv}"
52 cpprog="${CPPROG-cp}"
53 chmodprog="${CHMODPROG-chmod}"
54 chownprog="${CHOWNPROG-chown}"
55 chgrpprog="${CHGRPPROG-chgrp}"
56 stripprog="${STRIPPROG-strip}"
57 rmprog="${RMPROG-rm}"
58 mkdirprog="${MKDIRPROG-mkdir}"
59
60 chmodcmd="$chmodprog 0755"
61 chowncmd=
62 chgrpcmd=
63 stripcmd=
64 rmcmd="$rmprog -f"
65 mvcmd="$mvprog"
66 src=
67 dst=
68 dir_arg=
69 dstarg=
70 no_target_directory=
71
72 usage="Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
73 or: $0 [OPTION]... SRCFILES... DIRECTORY
74 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
75 or: $0 [OPTION]... -d DIRECTORIES...
76
77 In the 1st form, copy SRCFILE to DSTFILE.
78 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
79 In the 4th, create DIRECTORIES.
80
81 Options:
82 -c (ignored)
83 -d create directories instead of installing files.
84 -g GROUP $chgrpprog installed files to GROUP.
85 -m MODE $chmodprog installed files to MODE.
86 -o USER $chownprog installed files to USER.
87 -s $stripprog installed files.
88 -t DIRECTORY install into DIRECTORY.
89 -T report an error if DSTFILE is a directory.
90 --help display this help and exit.
91 --version display version info and exit.
92
93 Environment variables override the default commands:
94 CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
95 "
96
97 while test -n "$1"; do
98 case $1 in
99 -c) shift
100 continue;;
101
102 -d) dir_arg=true
103 shift
104 continue;;
105
106 -g) chgrpcmd="$chgrpprog $2"
107 shift
108 shift
109 continue;;
110
111 --help) echo "$usage"; exit $?;;
112
113 -m) chmodcmd="$chmodprog $2"
114 shift
115 shift
116 continue;;
117
118 -o) chowncmd="$chownprog $2"
119 shift
120 shift
121 continue;;
122
123 -s) stripcmd=$stripprog
124 shift
125 continue;;
126
127 -t) dstarg=$2
128 shift
129 shift
130 continue;;
131
132 -T) no_target_directory=true
133 shift
134 continue;;
135
136 --version) echo "$0 $scriptversion"; exit $?;;
137
138 *) # When -d is used, all remaining arguments are directories to create.
139 # When -t is used, the destination is already specified.
140 test -n "$dir_arg$dstarg" && break
141 # Otherwise, the last argument is the destination. Remove it from $@.
142 for arg
143 do
144 if test -n "$dstarg"; then
145 # $@ is not empty: it contains at least $arg.
146 set fnord "$@" "$dstarg"
147 shift # fnord
148 fi
149 shift # arg
150 dstarg=$arg
151 done
152 break;;
153 esac
154 done
155
156 if test -z "$1"; then
157 if test -z "$dir_arg"; then
158 echo "$0: no input file specified." >&2
159 exit 1
160 fi
161 # It's OK to call `install-sh -d' without argument.
162 # This can happen when creating conditional directories.
163 exit 0
164 fi
165
166 for src
167 do
168 # Protect names starting with `-'.
169 case $src in
170 -*) src=./$src ;;
171 esac
172
173 if test -n "$dir_arg"; then
174 dst=$src
175 src=
176
177 if test -d "$dst"; then
178 mkdircmd=:
179 chmodcmd=
180 else
181 mkdircmd=$mkdirprog
182 fi
183 else
184 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
185 # might cause directories to be created, which would be especially bad
186 # if $src (and thus $dsttmp) contains '*'.
187 if test ! -f "$src" && test ! -d "$src"; then
188 echo "$0: $src does not exist." >&2
189 exit 1
190 fi
191
192 if test -z "$dstarg"; then
193 echo "$0: no destination specified." >&2
194 exit 1
195 fi
196
197 dst=$dstarg
198 # Protect names starting with `-'.
199 case $dst in
200 -*) dst=./$dst ;;
201 esac
202
203 # If destination is a directory, append the input filename; won't work
204 # if double slashes aren't ignored.
205 if test -d "$dst"; then
206 if test -n "$no_target_directory"; then
207 echo "$0: $dstarg: Is a directory" >&2
208 exit 1
209 fi
210 dst=$dst/`basename "$src"`
211 fi
212 fi
213
214 # This sed command emulates the dirname command.
215 dstdir=`echo "$dst" | sed -e 's,/*$,,;s,[^/]*$,,;s,/*$,,;s,^$,.,'`
216
217 # Make sure that the destination directory exists.
218
219 # Skip lots of stat calls in the usual case.
220 if test ! -d "$dstdir"; then
221 defaultIFS='
222 '
223 IFS="${IFS-$defaultIFS}"
224
225 oIFS=$IFS
226 # Some sh's can't handle IFS=/ for some reason.
227 IFS='%'
228 set x `echo "$dstdir" | sed -e 's@/@%@g' -e 's@^%@/@'`
229 shift
230 IFS=$oIFS
231
232 pathcomp=
233
234 while test $# -ne 0 ; do
235 pathcomp=$pathcomp$1
236 shift
237 if test ! -d "$pathcomp"; then
238 $mkdirprog "$pathcomp"
239 # mkdir can fail with a `File exist' error in case several
240 # install-sh are creating the directory concurrently. This
241 # is OK.
242 test -d "$pathcomp" || exit
243 fi
244 pathcomp=$pathcomp/
245 done
246 fi
247
248 if test -n "$dir_arg"; then
249 $doit $mkdircmd "$dst" \
250 && { test -z "$chowncmd" || $doit $chowncmd "$dst"; } \
251 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } \
252 && { test -z "$stripcmd" || $doit $stripcmd "$dst"; } \
253 && { test -z "$chmodcmd" || $doit $chmodcmd "$dst"; }
254
255 else
256 dstfile=`basename "$dst"`
257
258 # Make a couple of temp file names in the proper directory.
259 dsttmp=$dstdir/_inst.$$_
260 rmtmp=$dstdir/_rm.$$_
261
262 # Trap to clean up those temp files at exit.
263 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
264 trap '(exit $?); exit' 1 2 13 15
265
266 # Copy the file name to the temp name.
267 $doit $cpprog "$src" "$dsttmp" &&
268
269 # and set any options; do chmod last to preserve setuid bits.
270 #
271 # If any of these fail, we abort the whole thing. If we want to
272 # ignore errors from any of these, just make sure not to ignore
273 # errors from the above "$doit $cpprog $src $dsttmp" command.
274 #
275 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } \
276 && { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } \
277 && { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } \
278 && { test -z "$chmodcmd" || $doit $chmodcmd "$dsttmp"; } &&
279
280 # Now rename the file to the real destination.
281 { $doit $mvcmd -f "$dsttmp" "$dstdir/$dstfile" 2>/dev/null \
282 || {
283 # The rename failed, perhaps because mv can't rename something else
284 # to itself, or perhaps because mv is so ancient that it does not
285 # support -f.
286
287 # Now remove or move aside any old file at destination location.
288 # We try this two ways since rm can't unlink itself on some
289 # systems and the destination file might be busy for other
290 # reasons. In this case, the final cleanup might fail but the new
291 # file should still install successfully.
292 {
293 if test -f "$dstdir/$dstfile"; then
294 $doit $rmcmd -f "$dstdir/$dstfile" 2>/dev/null \
295 || $doit $mvcmd -f "$dstdir/$dstfile" "$rmtmp" 2>/dev/null \
296 || {
297 echo "$0: cannot unlink or rename $dstdir/$dstfile" >&2
298 (exit 1); exit 1
299 }
300 else
301 :
302 fi
303 } &&
304
305 # Now rename the file to the real destination.
306 $doit $mvcmd "$dsttmp" "$dstdir/$dstfile"
307 }
308 }
309 fi || { (exit 1); exit 1; }
310 done
311
312 # The final little trick to "correctly" pass the exit status to the exit trap.
313 {
314 (exit 0); exit 0
315 }
316
317 # Local variables:
318 # eval: (add-hook 'write-file-hooks 'time-stamp)
319 # time-stamp-start: "scriptversion="
320 # time-stamp-format: "%:y-%02m-%02d.%02H"
321 # time-stamp-end: "$"
322 # End:
00 lib_LTLIBRARIES = libfaad.la
11
2 AM_CFLAGS = -iquote $(top_srcdir)/include
23 include_HEADERS = $(top_srcdir)/include/faad.h \
3 $(top_srcdir)/include/neaacdec.h
4 $(top_srcdir)/include/neaacdec.h
45
5 libfaad_la_LDFLAGS = -lm
6 libfaad_la_LDFLAGS = -version-info 2:0:0
7 libfaad_la_LIBADD = -lm
68
79 libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \
8 drm_dec.c error.c filtbank.c \
9 ic_predict.c is.c lt_predict.c mdct.c mp4.c ms.c output.c pns.c \
10 ps_dec.c ps_syntax.c \
11 pulse.c specrec.c syntax.c tns.c hcr.c huffman.c \
12 rvlc.c ssr.c ssr_fb.c ssr_ipqf.c common.c \
13 sbr_dct.c sbr_e_nf.c sbr_fbt.c sbr_hfadj.c sbr_hfgen.c \
14 sbr_huff.c sbr_qmf.c sbr_syntax.c sbr_tf_grid.c sbr_dec.c \
15 analysis.h bits.h cfft.h cfft_tab.h common.h \
16 decoder.h drc.h drm_dec.h error.h fixed.h filtbank.h \
17 huffman.h ic_predict.h iq_table.h is.h kbd_win.h lt_predict.h \
18 mdct.h mdct_tab.h mp4.h ms.h output.h pns.h ps_dec.h ps_tables.h \
19 pulse.h rvlc.h \
20 sbr_dct.h sbr_dec.h sbr_e_nf.h sbr_fbt.h sbr_hfadj.h sbr_hfgen.h \
21 sbr_huff.h sbr_noise.h sbr_qmf.h sbr_syntax.h sbr_tf_grid.h \
22 sine_win.h specrec.h ssr.h ssr_fb.h ssr_ipqf.h \
23 ssr_win.h syntax.h structs.h tns.h \
24 sbr_qmf_c.h codebook/hcb.h \
25 codebook/hcb_1.h codebook/hcb_2.h codebook/hcb_3.h codebook/hcb_4.h \
26 codebook/hcb_5.h codebook/hcb_6.h codebook/hcb_7.h codebook/hcb_8.h \
27 codebook/hcb_9.h codebook/hcb_10.h codebook/hcb_11.h codebook/hcb_sf.h
10 drm_dec.c error.c filtbank.c \
11 ic_predict.c is.c lt_predict.c mdct.c mp4.c ms.c output.c pns.c \
12 ps_dec.c ps_syntax.c \
13 pulse.c specrec.c syntax.c tns.c hcr.c huffman.c \
14 rvlc.c ssr.c ssr_fb.c ssr_ipqf.c common.c \
15 sbr_dct.c sbr_e_nf.c sbr_fbt.c sbr_hfadj.c sbr_hfgen.c \
16 sbr_huff.c sbr_qmf.c sbr_syntax.c sbr_tf_grid.c sbr_dec.c \
17 analysis.h bits.h cfft.h cfft_tab.h common.h \
18 decoder.h drc.h drm_dec.h error.h fixed.h filtbank.h \
19 huffman.h ic_predict.h iq_table.h is.h kbd_win.h lt_predict.h \
20 mdct.h mdct_tab.h mp4.h ms.h output.h pns.h ps_dec.h ps_tables.h \
21 pulse.h rvlc.h \
22 sbr_dct.h sbr_dec.h sbr_e_nf.h sbr_fbt.h sbr_hfadj.h sbr_hfgen.h \
23 sbr_huff.h sbr_noise.h sbr_qmf.h sbr_syntax.h sbr_tf_grid.h \
24 sine_win.h specrec.h ssr.h ssr_fb.h ssr_ipqf.h \
25 ssr_win.h syntax.h structs.h tns.h \
26 sbr_qmf_c.h codebook/hcb.h \
27 codebook/hcb_1.h codebook/hcb_2.h codebook/hcb_3.h codebook/hcb_4.h \
28 codebook/hcb_5.h codebook/hcb_6.h codebook/hcb_7.h codebook/hcb_8.h \
29 codebook/hcb_9.h codebook/hcb_10.h codebook/hcb_11.h codebook/hcb_sf.h
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16
17 srcdir = @srcdir@
18 top_srcdir = @top_srcdir@
19 VPATH = @srcdir@
20 pkgdatadir = $(datadir)/@PACKAGE@
21 pkglibdir = $(libdir)/@PACKAGE@
22 pkgincludedir = $(includedir)/@PACKAGE@
23 top_builddir = ..
24 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
25 INSTALL = @INSTALL@
26 install_sh_DATA = $(install_sh) -c -m 644
27 install_sh_PROGRAM = $(install_sh) -c
28 install_sh_SCRIPT = $(install_sh) -c
29 INSTALL_HEADER = $(INSTALL_DATA)
30 transform = $(program_transform_name)
31 NORMAL_INSTALL = :
32 PRE_INSTALL = :
33 POST_INSTALL = :
34 NORMAL_UNINSTALL = :
35 PRE_UNINSTALL = :
36 POST_UNINSTALL = :
37 build_triplet = @build@
38 host_triplet = @host@
39 subdir = libfaad
40 DIST_COMMON = $(include_HEADERS) $(srcdir)/Makefile.am \
41 $(srcdir)/Makefile.in
42 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
43 am__aclocal_m4_deps = $(top_srcdir)/configure.in
44 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
45 $(ACLOCAL_M4)
46 mkinstalldirs = $(install_sh) -d
47 CONFIG_HEADER = $(top_builddir)/config.h
48 CONFIG_CLEAN_FILES =
49 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
50 am__vpath_adj = case $$p in \
51 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
52 *) f=$$p;; \
53 esac;
54 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
55 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"
56 libLTLIBRARIES_INSTALL = $(INSTALL)
57 LTLIBRARIES = $(lib_LTLIBRARIES)
58 libfaad_la_DEPENDENCIES =
59 am_libfaad_la_OBJECTS = bits.lo cfft.lo decoder.lo drc.lo drm_dec.lo \
60 error.lo filtbank.lo ic_predict.lo is.lo lt_predict.lo mdct.lo \
61 mp4.lo ms.lo output.lo pns.lo ps_dec.lo ps_syntax.lo pulse.lo \
62 specrec.lo syntax.lo tns.lo hcr.lo huffman.lo rvlc.lo ssr.lo \
63 ssr_fb.lo ssr_ipqf.lo common.lo sbr_dct.lo sbr_e_nf.lo \
64 sbr_fbt.lo sbr_hfadj.lo sbr_hfgen.lo sbr_huff.lo sbr_qmf.lo \
65 sbr_syntax.lo sbr_tf_grid.lo sbr_dec.lo
66 libfaad_la_OBJECTS = $(am_libfaad_la_OBJECTS)
67 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
68 depcomp = $(SHELL) $(top_srcdir)/depcomp
69 am__depfiles_maybe = depfiles
70 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
71 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
72 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
73 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
74 $(AM_CFLAGS) $(CFLAGS)
75 CCLD = $(CC)
76 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
77 $(AM_LDFLAGS) $(LDFLAGS) -o $@
78 SOURCES = $(libfaad_la_SOURCES)
79 DIST_SOURCES = $(libfaad_la_SOURCES)
80 includeHEADERS_INSTALL = $(INSTALL_HEADER)
81 HEADERS = $(include_HEADERS)
82 ETAGS = etags
83 CTAGS = ctags
84 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
85 ACLOCAL = @ACLOCAL@
86 AMDEP_FALSE = @AMDEP_FALSE@
87 AMDEP_TRUE = @AMDEP_TRUE@
88 AMTAR = @AMTAR@
89 AR = @AR@
90 AUTOCONF = @AUTOCONF@
91 AUTOHEADER = @AUTOHEADER@
92 AUTOMAKE = @AUTOMAKE@
93 AWK = @AWK@
94 CC = @CC@
95 CCDEPMODE = @CCDEPMODE@
96 CFLAGS = @CFLAGS@
97 CPP = @CPP@
98 CPPFLAGS = @CPPFLAGS@
99 CXX = @CXX@
100 CXXCPP = @CXXCPP@
101 CXXDEPMODE = @CXXDEPMODE@
102 CXXFLAGS = @CXXFLAGS@
103 CYGPATH_W = @CYGPATH_W@
104 DEFS = @DEFS@
105 DEPDIR = @DEPDIR@
106 ECHO = @ECHO@
107 ECHO_C = @ECHO_C@
108 ECHO_N = @ECHO_N@
109 ECHO_T = @ECHO_T@
110 EGREP = @EGREP@
111 EXEEXT = @EXEEXT@
112 F77 = @F77@
113 FFLAGS = @FFLAGS@
114 GREP = @GREP@
115 GTK_CONFIG = @GTK_CONFIG@
116 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
117 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
118 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
119 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
120 INSTALL_DATA = @INSTALL_DATA@
121 INSTALL_PROGRAM = @INSTALL_PROGRAM@
122 INSTALL_SCRIPT = @INSTALL_SCRIPT@
123 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
124 LDFLAGS = @LDFLAGS@
125 LIBOBJS = @LIBOBJS@
126 LIBS = @LIBS@
127 LIBTOOL = @LIBTOOL@
128 LIBTOOL_DEPS = @LIBTOOL_DEPS@
129 LN_S = @LN_S@
130 LTLIBOBJS = @LTLIBOBJS@
131 MAKEINFO = @MAKEINFO@
132 MP4FF_LIBS = @MP4FF_LIBS@
133 OBJEXT = @OBJEXT@
134 PACKAGE = @PACKAGE@
135 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
136 PACKAGE_NAME = @PACKAGE_NAME@
137 PACKAGE_STRING = @PACKAGE_STRING@
138 PACKAGE_TARNAME = @PACKAGE_TARNAME@
139 PACKAGE_VERSION = @PACKAGE_VERSION@
140 PATH_SEPARATOR = @PATH_SEPARATOR@
141 RANLIB = @RANLIB@
142 RPMBUILD = @RPMBUILD@
143 SET_MAKE = @SET_MAKE@
144 SHELL = @SHELL@
145 STRIP = @STRIP@
146 VERSION = @VERSION@
147 XMMS_CONFIG = @XMMS_CONFIG@
148 ac_ct_CC = @ac_ct_CC@
149 ac_ct_CXX = @ac_ct_CXX@
150 ac_ct_F77 = @ac_ct_F77@
151 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
152 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
153 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
154 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
155 am__include = @am__include@
156 am__leading_dot = @am__leading_dot@
157 am__quote = @am__quote@
158 am__tar = @am__tar@
159 am__untar = @am__untar@
160 bindir = @bindir@
161 build = @build@
162 build_alias = @build_alias@
163 build_cpu = @build_cpu@
164 build_os = @build_os@
165 build_vendor = @build_vendor@
166 datadir = @datadir@
167 datarootdir = @datarootdir@
168 docdir = @docdir@
169 dvidir = @dvidir@
170 exec_prefix = @exec_prefix@
171 external_mp4v2 = @external_mp4v2@
172 host = @host@
173 host_alias = @host_alias@
174 host_cpu = @host_cpu@
175 host_os = @host_os@
176 host_vendor = @host_vendor@
177 htmldir = @htmldir@
178 includedir = @includedir@
179 infodir = @infodir@
180 install_sh = @install_sh@
181 libdir = @libdir@
182 libexecdir = @libexecdir@
183 localedir = @localedir@
184 localstatedir = @localstatedir@
185 mandir = @mandir@
186 mkdir_p = @mkdir_p@
187 oldincludedir = @oldincludedir@
188 pdfdir = @pdfdir@
189 prefix = @prefix@
190 program_transform_name = @program_transform_name@
191 psdir = @psdir@
192 sbindir = @sbindir@
193 sharedstatedir = @sharedstatedir@
194 sysconfdir = @sysconfdir@
195 target_alias = @target_alias@
196 lib_LTLIBRARIES = libfaad.la
197 AM_CFLAGS = -iquote $(top_srcdir)/include
198 include_HEADERS = $(top_srcdir)/include/faad.h \
199 $(top_srcdir)/include/neaacdec.h
200
201 libfaad_la_LDFLAGS = -version-info 2:0:0
202 libfaad_la_LIBADD = -lm
203 libfaad_la_SOURCES = bits.c cfft.c decoder.c drc.c \
204 drm_dec.c error.c filtbank.c \
205 ic_predict.c is.c lt_predict.c mdct.c mp4.c ms.c output.c pns.c \
206 ps_dec.c ps_syntax.c \
207 pulse.c specrec.c syntax.c tns.c hcr.c huffman.c \
208 rvlc.c ssr.c ssr_fb.c ssr_ipqf.c common.c \
209 sbr_dct.c sbr_e_nf.c sbr_fbt.c sbr_hfadj.c sbr_hfgen.c \
210 sbr_huff.c sbr_qmf.c sbr_syntax.c sbr_tf_grid.c sbr_dec.c \
211 analysis.h bits.h cfft.h cfft_tab.h common.h \
212 decoder.h drc.h drm_dec.h error.h fixed.h filtbank.h \
213 huffman.h ic_predict.h iq_table.h is.h kbd_win.h lt_predict.h \
214 mdct.h mdct_tab.h mp4.h ms.h output.h pns.h ps_dec.h ps_tables.h \
215 pulse.h rvlc.h \
216 sbr_dct.h sbr_dec.h sbr_e_nf.h sbr_fbt.h sbr_hfadj.h sbr_hfgen.h \
217 sbr_huff.h sbr_noise.h sbr_qmf.h sbr_syntax.h sbr_tf_grid.h \
218 sine_win.h specrec.h ssr.h ssr_fb.h ssr_ipqf.h \
219 ssr_win.h syntax.h structs.h tns.h \
220 sbr_qmf_c.h codebook/hcb.h \
221 codebook/hcb_1.h codebook/hcb_2.h codebook/hcb_3.h codebook/hcb_4.h \
222 codebook/hcb_5.h codebook/hcb_6.h codebook/hcb_7.h codebook/hcb_8.h \
223 codebook/hcb_9.h codebook/hcb_10.h codebook/hcb_11.h codebook/hcb_sf.h
224
225 all: all-am
226
227 .SUFFIXES:
228 .SUFFIXES: .c .lo .o .obj
229 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
230 @for dep in $?; do \
231 case '$(am__configure_deps)' in \
232 *$$dep*) \
233 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
234 && exit 0; \
235 exit 1;; \
236 esac; \
237 done; \
238 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libfaad/Makefile'; \
239 cd $(top_srcdir) && \
240 $(AUTOMAKE) --gnu libfaad/Makefile
241 .PRECIOUS: Makefile
242 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
243 @case '$?' in \
244 *config.status*) \
245 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
246 *) \
247 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
248 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
249 esac;
250
251 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
252 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
253
254 $(top_srcdir)/configure: $(am__configure_deps)
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
256 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
257 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
258 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
259 @$(NORMAL_INSTALL)
260 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
261 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
262 if test -f $$p; then \
263 f=$(am__strip_dir) \
264 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
265 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
266 else :; fi; \
267 done
268
269 uninstall-libLTLIBRARIES:
270 @$(NORMAL_UNINSTALL)
271 @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
272 p=$(am__strip_dir) \
273 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
274 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
275 done
276
277 clean-libLTLIBRARIES:
278 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
279 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
280 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
281 test "$$dir" != "$$p" || dir=.; \
282 echo "rm -f \"$${dir}/so_locations\""; \
283 rm -f "$${dir}/so_locations"; \
284 done
285 libfaad.la: $(libfaad_la_OBJECTS) $(libfaad_la_DEPENDENCIES)
286 $(LINK) -rpath $(libdir) $(libfaad_la_LDFLAGS) $(libfaad_la_OBJECTS) $(libfaad_la_LIBADD) $(LIBS)
287
288 mostlyclean-compile:
289 -rm -f *.$(OBJEXT)
290
291 distclean-compile:
292 -rm -f *.tab.c
293
294 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bits.Plo@am__quote@
295 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cfft.Plo@am__quote@
296 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/common.Plo@am__quote@
297 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/decoder.Plo@am__quote@
298 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drc.Plo@am__quote@
299 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/drm_dec.Plo@am__quote@
300 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/error.Plo@am__quote@
301 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/filtbank.Plo@am__quote@
302 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hcr.Plo@am__quote@
303 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/huffman.Plo@am__quote@
304 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ic_predict.Plo@am__quote@
305 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/is.Plo@am__quote@
306 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lt_predict.Plo@am__quote@
307 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mdct.Plo@am__quote@
308 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mp4.Plo@am__quote@
309 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ms.Plo@am__quote@
310 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output.Plo@am__quote@
311 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pns.Plo@am__quote@
312 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ps_dec.Plo@am__quote@
313 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ps_syntax.Plo@am__quote@
314 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/pulse.Plo@am__quote@
315 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rvlc.Plo@am__quote@
316 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_dct.Plo@am__quote@
317 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_dec.Plo@am__quote@
318 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_e_nf.Plo@am__quote@
319 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_fbt.Plo@am__quote@
320 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_hfadj.Plo@am__quote@
321 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_hfgen.Plo@am__quote@
322 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_huff.Plo@am__quote@
323 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_qmf.Plo@am__quote@
324 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_syntax.Plo@am__quote@
325 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sbr_tf_grid.Plo@am__quote@
326 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/specrec.Plo@am__quote@
327 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ssr.Plo@am__quote@
328 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ssr_fb.Plo@am__quote@
329 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/ssr_ipqf.Plo@am__quote@
330 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/syntax.Plo@am__quote@
331 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tns.Plo@am__quote@
332
333 .c.o:
334 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
335 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
336 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
337 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
338 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
339
340 .c.obj:
341 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
342 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
343 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
344 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
345 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
346
347 .c.lo:
348 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
349 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
350 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
351 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
352 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
353
354 mostlyclean-libtool:
355 -rm -f *.lo
356
357 clean-libtool:
358 -rm -rf .libs _libs
359
360 distclean-libtool:
361 -rm -f libtool
362 uninstall-info-am:
363 install-includeHEADERS: $(include_HEADERS)
364 @$(NORMAL_INSTALL)
365 test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
366 @list='$(include_HEADERS)'; for p in $$list; do \
367 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
368 f=$(am__strip_dir) \
369 echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
370 $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
371 done
372
373 uninstall-includeHEADERS:
374 @$(NORMAL_UNINSTALL)
375 @list='$(include_HEADERS)'; for p in $$list; do \
376 f=$(am__strip_dir) \
377 echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
378 rm -f "$(DESTDIR)$(includedir)/$$f"; \
379 done
380
381 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
382 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
383 unique=`for i in $$list; do \
384 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
385 done | \
386 $(AWK) ' { files[$$0] = 1; } \
387 END { for (i in files) print i; }'`; \
388 mkid -fID $$unique
389 tags: TAGS
390
391 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
392 $(TAGS_FILES) $(LISP)
393 tags=; \
394 here=`pwd`; \
395 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
396 unique=`for i in $$list; do \
397 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
398 done | \
399 $(AWK) ' { files[$$0] = 1; } \
400 END { for (i in files) print i; }'`; \
401 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
402 test -n "$$unique" || unique=$$empty_fix; \
403 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
404 $$tags $$unique; \
405 fi
406 ctags: CTAGS
407 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
408 $(TAGS_FILES) $(LISP)
409 tags=; \
410 here=`pwd`; \
411 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
412 unique=`for i in $$list; do \
413 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
414 done | \
415 $(AWK) ' { files[$$0] = 1; } \
416 END { for (i in files) print i; }'`; \
417 test -z "$(CTAGS_ARGS)$$tags$$unique" \
418 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
419 $$tags $$unique
420
421 GTAGS:
422 here=`$(am__cd) $(top_builddir) && pwd` \
423 && cd $(top_srcdir) \
424 && gtags -i $(GTAGS_ARGS) $$here
425
426 distclean-tags:
427 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
428
429 distdir: $(DISTFILES)
430 $(mkdir_p) $(distdir)/../include
431 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
432 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
433 list='$(DISTFILES)'; for file in $$list; do \
434 case $$file in \
435 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
436 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
437 esac; \
438 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
439 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
440 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
441 dir="/$$dir"; \
442 $(mkdir_p) "$(distdir)$$dir"; \
443 else \
444 dir=''; \
445 fi; \
446 if test -d $$d/$$file; then \
447 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
448 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
449 fi; \
450 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
451 else \
452 test -f $(distdir)/$$file \
453 || cp -p $$d/$$file $(distdir)/$$file \
454 || exit 1; \
455 fi; \
456 done
457 check-am: all-am
458 check: check-am
459 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
460 installdirs:
461 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(includedir)"; do \
462 test -z "$$dir" || $(mkdir_p) "$$dir"; \
463 done
464 install: install-am
465 install-exec: install-exec-am
466 install-data: install-data-am
467 uninstall: uninstall-am
468
469 install-am: all-am
470 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
471
472 installcheck: installcheck-am
473 install-strip:
474 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
475 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
476 `test -z '$(STRIP)' || \
477 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
478 mostlyclean-generic:
479
480 clean-generic:
481
482 distclean-generic:
483 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
484
485 maintainer-clean-generic:
486 @echo "This command is intended for maintainers to use"
487 @echo "it deletes files that may require special tools to rebuild."
488 clean: clean-am
489
490 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
491 mostlyclean-am
492
493 distclean: distclean-am
494 -rm -rf ./$(DEPDIR)
495 -rm -f Makefile
496 distclean-am: clean-am distclean-compile distclean-generic \
497 distclean-libtool distclean-tags
498
499 dvi: dvi-am
500
501 dvi-am:
502
503 html: html-am
504
505 info: info-am
506
507 info-am:
508
509 install-data-am: install-includeHEADERS
510
511 install-exec-am: install-libLTLIBRARIES
512
513 install-info: install-info-am
514
515 install-man:
516
517 installcheck-am:
518
519 maintainer-clean: maintainer-clean-am
520 -rm -rf ./$(DEPDIR)
521 -rm -f Makefile
522 maintainer-clean-am: distclean-am maintainer-clean-generic
523
524 mostlyclean: mostlyclean-am
525
526 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
527 mostlyclean-libtool
528
529 pdf: pdf-am
530
531 pdf-am:
532
533 ps: ps-am
534
535 ps-am:
536
537 uninstall-am: uninstall-includeHEADERS uninstall-info-am \
538 uninstall-libLTLIBRARIES
539
540 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
541 clean-libLTLIBRARIES clean-libtool ctags distclean \
542 distclean-compile distclean-generic distclean-libtool \
543 distclean-tags distdir dvi dvi-am html html-am info info-am \
544 install install-am install-data install-data-am install-exec \
545 install-exec-am install-includeHEADERS install-info \
546 install-info-am install-libLTLIBRARIES install-man \
547 install-strip installcheck installcheck-am installdirs \
548 maintainer-clean maintainer-clean-generic mostlyclean \
549 mostlyclean-compile mostlyclean-generic mostlyclean-libtool \
550 pdf pdf-am ps ps-am tags uninstall uninstall-am \
551 uninstall-includeHEADERS uninstall-info-am \
552 uninstall-libLTLIBRARIES
553
554 # Tell versions [3.59,3.63) of GNU make to not export all variables.
555 # Otherwise a system limit (for SysV at least) may be exceeded.
556 .NOEXPORT:
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: common.c,v 1.26 2007/11/01 12:33:30 menno Exp $
27 ** $Id: common.c,v 1.27 2008/03/23 23:03:28 menno Exp $
2828 **/
2929
3030 /* just some common functions that could be used anywhere */
243243 return (*__r1 = (t3 >> 1) | t1 ) ^ (*__r2 = (t4 + t4) | t2 );
244244 }
245245
246 uint32_t ones32(uint32_t x)
246 static uint32_t ones32(uint32_t x)
247247 {
248248 x -= ((x >> 1) & 0x55555555);
249249 x = (((x >> 2) & 0x33333333) + (x & 0x33333333));
254254 return (x & 0x0000003f);
255255 }
256256
257 uint32_t floor_log2(uint32_t x)
257 static uint32_t floor_log2(uint32_t x)
258258 {
259259 #if 1
260260 x |= (x >> 1);
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: common.h,v 1.72 2007/11/01 12:33:30 menno Exp $
27 ** $Id: common.h,v 1.77 2009/02/05 00:51:03 menno Exp $
2828 **/
2929
3030 #ifndef __COMMON_H__
3737 #ifdef HAVE_CONFIG_H
3838 # include "../config.h"
3939 #endif
40
41 #include "neaacdec.h"
4042
4143 #if 1
4244 #define INLINE __inline
171173 typedef unsigned __int32 uint32_t;
172174 typedef unsigned __int16 uint16_t;
173175 typedef unsigned __int8 uint8_t;
174 typedef __int64 int64_t;
175 typedef __int32 int32_t;
176 typedef __int16 int16_t;
177 typedef __int8 int8_t;
176 typedef signed __int64 int64_t;
177 typedef signed __int32 int32_t;
178 typedef signed __int16 int16_t;
179 typedef signed __int8 int8_t;
178180 typedef float float32_t;
179181
180182
213215 /* we need these... */
214216 #ifndef __TCS__
215217 typedef unsigned long long uint64_t;
216 typedef long long int64_t;
218 typedef signed long long int64_t;
217219 #else
218220 typedef unsigned long uint64_t;
219 typedef long int64_t;
221 typedef signed long int64_t;
220222 #endif
221223 typedef unsigned long uint32_t;
222224 typedef unsigned short uint16_t;
223225 typedef unsigned char uint8_t;
224 typedef long int32_t;
225 typedef short int16_t;
226 typedef char int8_t;
226 typedef signed long int32_t;
227 typedef signed short int16_t;
228 typedef signed char int8_t;
227229 # endif
228230 #endif
229231 #if HAVE_UNISTD_H
404406 /* common functions */
405407 uint8_t cpu_has_sse(void);
406408 uint32_t ne_rng(uint32_t *__r1, uint32_t *__r2);
407 uint32_t ones32(uint32_t x);
408 uint32_t floor_log2(uint32_t x);
409409 uint32_t wl_min_lzc(uint32_t x);
410410 #ifdef FIXED_POINT
411411 #define LOG2_MIN_INF REAL_CONST(-10000)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: decoder.c,v 1.111 2007/11/01 12:33:30 menno Exp $
27 ** $Id: decoder.c,v 1.117 2009/02/05 00:51:03 menno Exp $
2828 **/
2929
3030 #include "common.h"
3131 #include "structs.h"
3232
3333 #include <stdlib.h>
34 #include <stdio.h>
3435 #include <string.h>
3536
36 #include "decoder.h"
3737 #include "mp4.h"
3838 #include "syntax.h"
3939 #include "error.h"
5353 #endif
5454
5555 /* static function declarations */
56 static void* aac_frame_decode(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo,
57 uint8_t *buffer, uint32_t buffer_size,
58 void **sample_buffer, uint32_t sample_buffer_size);
59 static void create_channel_config(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo);
60
61
62 char* NEAACDECAPI NeAACDecGetErrorMessage(uint8_t errcode)
56 static void* aac_frame_decode(NeAACDecStruct *hDecoder,
57 NeAACDecFrameInfo *hInfo,
58 unsigned char *buffer,
59 unsigned long buffer_size,
60 void **sample_buffer2,
61 unsigned long sample_buffer_size);
62 static void create_channel_config(NeAACDecStruct *hDecoder,
63 NeAACDecFrameInfo *hInfo);
64
65
66 char* NEAACDECAPI NeAACDecGetErrorMessage(unsigned char errcode)
6367 {
6468 if (errcode >= NUM_ERROR_MESSAGES)
6569 return NULL;
6670 return err_msg[errcode];
6771 }
6872
69 uint32_t NEAACDECAPI NeAACDecGetCapabilities(void)
73 unsigned long NEAACDECAPI NeAACDecGetCapabilities(void)
7074 {
7175 uint32_t cap = 0;
7276
96100 NeAACDecHandle NEAACDECAPI NeAACDecOpen(void)
97101 {
98102 uint8_t i;
99 NeAACDecHandle hDecoder = NULL;
100
101 if ((hDecoder = (NeAACDecHandle)faad_malloc(sizeof(NeAACDecStruct))) == NULL)
103 NeAACDecStruct *hDecoder = NULL;
104
105 if ((hDecoder = (NeAACDecStruct*)faad_malloc(sizeof(NeAACDecStruct))) == NULL)
102106 return NULL;
103107
104108 memset(hDecoder, 0, sizeof(NeAACDecStruct));
110114 hDecoder->config.downMatrix = 0;
111115 hDecoder->adts_header_present = 0;
112116 hDecoder->adif_header_present = 0;
117 hDecoder->latm_header_present = 0;
113118 #ifdef ERROR_RESILIENCE
114119 hDecoder->aacSectionDataResilienceFlag = 0;
115120 hDecoder->aacScalefactorDataResilienceFlag = 0;
153158 return hDecoder;
154159 }
155160
156 NeAACDecConfigurationPtr NEAACDECAPI NeAACDecGetCurrentConfiguration(NeAACDecHandle hDecoder)
157 {
161 NeAACDecConfigurationPtr NEAACDECAPI NeAACDecGetCurrentConfiguration(NeAACDecHandle hpDecoder)
162 {
163 NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder;
158164 if (hDecoder)
159165 {
160166 NeAACDecConfigurationPtr config = &(hDecoder->config);
165171 return NULL;
166172 }
167173
168 uint8_t NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hDecoder,
169 NeAACDecConfigurationPtr config)
170 {
174 unsigned char NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hpDecoder,
175 NeAACDecConfigurationPtr config)
176 {
177 NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder;
171178 if (hDecoder && config)
172179 {
173180 /* check if we can decode this object type */
202209 }
203210
204211
205 int32_t NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, uint8_t *buffer,
206 uint32_t buffer_size,
207 uint32_t *samplerate, uint8_t *channels)
212 static int latmCheck(latm_header *latm, bitfile *ld)
213 {
214 uint32_t good=0, bad=0, bits, m;
215
216 while (ld->bytes_left)
217 {
218 bits = faad_latm_frame(latm, ld);
219 if(bits==-1U)
220 bad++;
221 else
222 {
223 good++;
224 while(bits>0)
225 {
226 m = min(bits, 8);
227 faad_getbits(ld, m);
228 bits -= m;
229 }
230 }
231 }
232
233 return (good>0);
234 }
235
236
237 long NEAACDECAPI NeAACDecInit(NeAACDecHandle hpDecoder,
238 unsigned char *buffer,
239 unsigned long buffer_size,
240 unsigned long *samplerate,
241 unsigned char *channels)
208242 {
209243 uint32_t bits = 0;
210244 bitfile ld;
211245 adif_header adif;
212246 adts_header adts;
247 NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder;
213248
214249
215250 if ((hDecoder == NULL) || (samplerate == NULL) || (channels == NULL))
222257
223258 if (buffer != NULL)
224259 {
260 #if 0
261 int is_latm;
262 latm_header *l = &hDecoder->latm_config;
263 #endif
264
225265 faad_initbits(&ld, buffer, buffer_size);
226
266
267 #if 0
268 memset(l, 0, sizeof(latm_header));
269 is_latm = latmCheck(l, &ld);
270 l->inited = 0;
271 l->frameLength = 0;
272 faad_rewindbits(&ld);
273 if(is_latm && l->ASCbits>0)
274 {
275 int32_t x;
276 hDecoder->latm_header_present = 1;
277 x = NeAACDecInit2(hDecoder, l->ASC, (l->ASCbits+7)/8, samplerate, channels);
278 if(x!=0)
279 hDecoder->latm_header_present = 0;
280 return x;
281 } else
282 #endif
227283 /* Check if an ADIF header is present */
228284 if ((buffer[0] == 'A') && (buffer[1] == 'D') &&
229 (buffer[2] == 'I') && (buffer[3] == 'F'))
230 {
285 (buffer[2] == 'I') && (buffer[3] == 'F'))
286 {
231287 hDecoder->adif_header_present = 1;
232288
233289 get_adif_header(&adif, &ld);
280336
281337 #ifdef SBR_DEC
282338 /* implicit signalling */
283 if (*samplerate <= 24000 && !(hDecoder->config.dontUpSampleImplicitSBR))
339 if (*samplerate <= 24000 && (hDecoder->config.dontUpSampleImplicitSBR == 0))
284340 {
285341 *samplerate *= 2;
286342 hDecoder->forceUpSampling = 1;
287 } else if (*samplerate > 24000 && !(hDecoder->config.dontUpSampleImplicitSBR)) {
343 } else if (*samplerate > 24000 && (hDecoder->config.dontUpSampleImplicitSBR == 0)) {
288344 hDecoder->downSampledSBR = 1;
289345 }
290346 #endif
309365 }
310366
311367 /* Init the library using a DecoderSpecificInfo */
312 int8_t NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, uint8_t *pBuffer,
313 uint32_t SizeOfDecoderSpecificInfo,
314 uint32_t *samplerate, uint8_t *channels)
315 {
368 char NEAACDECAPI NeAACDecInit2(NeAACDecHandle hpDecoder,
369 unsigned char *pBuffer,
370 unsigned long SizeOfDecoderSpecificInfo,
371 unsigned long *samplerate,
372 unsigned char *channels)
373 {
374 NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder;
316375 int8_t rc;
317376 mp4AudioSpecificConfig mp4ASC;
318377
330389
331390 /* decode the audio specific config */
332391 rc = AudioSpecificConfig2(pBuffer, SizeOfDecoderSpecificInfo, &mp4ASC,
333 &(hDecoder->pce));
392 &(hDecoder->pce), hDecoder->latm_header_present);
334393
335394 /* copy the relevant info to the decoder handle */
336395 *samplerate = mp4ASC.samplingFrequency;
400459 }
401460
402461 #ifdef DRM
403 int8_t NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, uint32_t samplerate,
404 uint8_t channels)
405 {
462 char NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hpDecoder,
463 unsigned long samplerate,
464 unsigned char channels)
465 {
466 NeAACDecStruct** hDecoder = (NeAACDecStruct**)hpDecoder;
406467 if (hDecoder == NULL)
407468 return 1; /* error */
408469
441502 }
442503 #endif
443504
444 void NEAACDECAPI NeAACDecClose(NeAACDecHandle hDecoder)
505 void NEAACDECAPI NeAACDecClose(NeAACDecHandle hpDecoder)
445506 {
446507 uint8_t i;
508 NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder;
447509
448510 if (hDecoder == NULL)
449511 return;
494556 if (hDecoder) faad_free(hDecoder);
495557 }
496558
497 void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hDecoder, int32_t frame)
498 {
559 void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hpDecoder, long frame)
560 {
561 NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder;
499562 if (hDecoder)
500563 {
501564 hDecoder->postSeekResetFlag = 1;
505568 }
506569 }
507570
508 static void create_channel_config(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo)
571 static void create_channel_config(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo)
509572 {
510573 hInfo->num_front_channels = 0;
511574 hInfo->num_side_channels = 0;
723786 }
724787 }
725788
726 void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hDecoder,
789 void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hpDecoder,
727790 NeAACDecFrameInfo *hInfo,
728 uint8_t *buffer, uint32_t buffer_size)
729 {
791 unsigned char *buffer,
792 unsigned long buffer_size)
793 {
794 NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder;
730795 return aac_frame_decode(hDecoder, hInfo, buffer, buffer_size, NULL, 0);
731796 }
732797
733 void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hDecoder,
798 void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hpDecoder,
734799 NeAACDecFrameInfo *hInfo,
735 uint8_t *buffer, uint32_t buffer_size,
736 void **sample_buffer, uint32_t sample_buffer_size)
737 {
800 unsigned char *buffer,
801 unsigned long buffer_size,
802 void **sample_buffer,
803 unsigned long sample_buffer_size)
804 {
805 NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder;
738806 if ((sample_buffer == NULL) || (sample_buffer_size == 0))
739807 {
740808 hInfo->error = 27;
749817
750818 #define ERROR_STATE_INIT 6
751819
752 static void conceal_output(NeAACDecHandle hDecoder, uint16_t frame_len,
820 static void conceal_output(NeAACDecStruct *hDecoder, uint16_t frame_len,
753821 uint8_t out_ch, void *sample_buffer)
754822 {
755823 return;
756824 }
757825 #endif
758826
759 static void* aac_frame_decode(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo,
760 uint8_t *buffer, uint32_t buffer_size,
761 void **sample_buffer2, uint32_t sample_buffer_size)
827 static void* aac_frame_decode(NeAACDecStruct *hDecoder,
828 NeAACDecFrameInfo *hInfo,
829 unsigned char *buffer,
830 unsigned long buffer_size,
831 void **sample_buffer2,
832 unsigned long sample_buffer_size)
762833 {
763834 uint16_t i;
764835 uint8_t channels = 0;
767838 uint32_t bitsconsumed;
768839 uint16_t frame_len;
769840 void *sample_buffer;
841 uint32_t startbit=0, endbit=0, payload_bits=0;
770842
771843 #ifdef PROFILE
772844 int64_t count = faad_get_ts();
836908 }
837909 #endif
838910
911 #if 0
912 if(hDecoder->latm_header_present)
913 {
914 payload_bits = faad_latm_frame(&hDecoder->latm_config, &ld);
915 startbit = faad_get_processed_bits(&ld);
916 if(payload_bits == -1U)
917 {
918 hInfo->error = 1;
919 goto error;
920 }
921 }
922 #endif
923
839924 #ifdef DRM
840925 if (hDecoder->object_type == DRM_ER_LC)
841926 {
881966 }
882967 #endif
883968
969 #if 0
970 if(hDecoder->latm_header_present)
971 {
972 endbit = faad_get_processed_bits(&ld);
973 if(endbit-startbit > payload_bits)
974 fprintf(stderr, "\r\nERROR, too many payload bits read: %u > %d. Please. report with a link to a sample\n",
975 endbit-startbit, payload_bits);
976 if(hDecoder->latm_config.otherDataLenBits > 0)
977 faad_getbits(&ld, hDecoder->latm_config.otherDataLenBits);
978 faad_byte_align(&ld);
979 }
980 #endif
981
884982 channels = hDecoder->fr_channels;
885983
886984 if (hInfo->error > 0)
9051003 faad_endbits(&ld);
9061004
9071005
908 if (!hDecoder->adts_header_present && !hDecoder->adif_header_present)
1006 if (!hDecoder->adts_header_present && !hDecoder->adif_header_present
1007 #if 0
1008 && !hDecoder->latm_header_present
1009 #endif
1010 )
9091011 {
9101012 if (hDecoder->channelConfiguration == 0)
9111013 hDecoder->channelConfiguration = channels;
9541056 hInfo->header_type = ADIF;
9551057 if (hDecoder->adts_header_present)
9561058 hInfo->header_type = ADTS;
1059 #if 0
1060 if (hDecoder->latm_header_present)
1061 hInfo->header_type = LATM;
1062 #endif
9571063 #if (defined(PS_DEC) || defined(DRM_PS))
9581064 hInfo->ps = hDecoder->ps_used_global;
9591065 #endif
+0
-124
libfaad/decoder.h less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003-2005 M. Bakker, Nero AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** The "appropriate copyright message" mentioned in section 2c of the GPLv2
22 ** must read: "Code from FAAD2 is copyright (c) Nero AG, www.nero.com"
23 **
24 ** Commercial non-GPL licensing of this software is possible.
25 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
26 **
27 ** $Id: decoder.h,v 1.48 2007/11/01 12:33:30 menno Exp $
28 **/
29
30 #ifndef __DECODER_H__
31 #define __DECODER_H__
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37 #ifdef _WIN32
38 #pragma pack(push, 8)
39 #ifndef NEAACDECAPI
40 #define NEAACDECAPI __cdecl
41 #endif
42 #else
43 #ifndef NEAACDECAPI
44 #define NEAACDECAPI
45 #endif
46 #endif
47
48
49 /* library output formats */
50 #define FAAD_FMT_16BIT 1
51 #define FAAD_FMT_24BIT 2
52 #define FAAD_FMT_32BIT 3
53 #define FAAD_FMT_FLOAT 4
54 #define FAAD_FMT_FIXED FAAD_FMT_FLOAT
55 #define FAAD_FMT_DOUBLE 5
56
57 #define LC_DEC_CAP (1<<0)
58 #define MAIN_DEC_CAP (1<<1)
59 #define LTP_DEC_CAP (1<<2)
60 #define LD_DEC_CAP (1<<3)
61 #define ERROR_RESILIENCE_CAP (1<<4)
62 #define FIXED_POINT_CAP (1<<5)
63
64 #define FRONT_CHANNEL_CENTER (1)
65 #define FRONT_CHANNEL_LEFT (2)
66 #define FRONT_CHANNEL_RIGHT (3)
67 #define SIDE_CHANNEL_LEFT (4)
68 #define SIDE_CHANNEL_RIGHT (5)
69 #define BACK_CHANNEL_LEFT (6)
70 #define BACK_CHANNEL_RIGHT (7)
71 #define BACK_CHANNEL_CENTER (8)
72 #define LFE_CHANNEL (9)
73 #define UNKNOWN_CHANNEL (0)
74
75 char* NEAACDECAPI NeAACDecGetErrorMessage(uint8_t errcode);
76
77 uint32_t NEAACDECAPI NeAACDecGetCapabilities(void);
78
79 NeAACDecHandle NEAACDECAPI NeAACDecOpen(void);
80
81 NeAACDecConfigurationPtr NEAACDECAPI NeAACDecGetCurrentConfiguration(NeAACDecHandle hDecoder);
82
83 uint8_t NEAACDECAPI NeAACDecSetConfiguration(NeAACDecHandle hDecoder,
84 NeAACDecConfigurationPtr config);
85
86 /* Init the library based on info from the AAC file (ADTS/ADIF) */
87 int32_t NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder,
88 uint8_t *buffer,
89 uint32_t buffer_size,
90 uint32_t *samplerate,
91 uint8_t *channels);
92
93 /* Init the library using a DecoderSpecificInfo */
94 int8_t NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, uint8_t *pBuffer,
95 uint32_t SizeOfDecoderSpecificInfo,
96 uint32_t *samplerate, uint8_t *channels);
97
98 /* Init the library for DRM */
99 int8_t NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, uint32_t samplerate,
100 uint8_t channels);
101
102 void NEAACDECAPI NeAACDecClose(NeAACDecHandle hDecoder);
103
104 void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hDecoder, int32_t frame);
105
106 void* NEAACDECAPI NeAACDecDecode(NeAACDecHandle hDecoder,
107 NeAACDecFrameInfo *hInfo,
108 uint8_t *buffer,
109 uint32_t buffer_size);
110
111 void* NEAACDECAPI NeAACDecDecode2(NeAACDecHandle hDecoder,
112 NeAACDecFrameInfo *hInfo,
113 uint8_t *buffer, uint32_t buffer_size,
114 void **sample_buffer, uint32_t sample_buffer_size);
115
116 #ifdef _WIN32
117 #pragma pack(pop)
118 #endif
119
120 #ifdef __cplusplus
121 }
122 #endif
123 #endif
(No changes)
(No changes)
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: error.c,v 1.32 2007/11/01 12:33:30 menno Exp $
27 ** $Id: error.c,v 1.33 2008/09/19 23:31:39 menno Exp $
2828 **/
2929
3030 #include "common.h"
6363 "PNS not allowed in DRM data stream",
6464 "No standard extension payload allowed in DRM",
6565 "PCE shall be the first element in a frame",
66 "Bitstream value not allowed by specification"
66 "Bitstream value not allowed by specification",
67 "MAIN prediction not initialised"
6768 };
6869
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: error.h,v 1.26 2007/11/01 12:33:30 menno Exp $
27 ** $Id: error.h,v 1.27 2008/09/19 23:31:40 menno Exp $
2828 **/
2929
3030 #ifndef __ERROR_H__
3434 extern "C" {
3535 #endif
3636
37 #define NUM_ERROR_MESSAGES 33
37 #define NUM_ERROR_MESSAGES 34
3838 extern char *err_msg[];
3939
4040 #ifdef __cplusplus
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: filtbank.c,v 1.45 2007/11/01 12:33:30 menno Exp $
27 ** $Id: filtbank.c,v 1.46 2009/01/26 23:51:15 menno Exp $
2828 **/
2929
3030 #include "common.h"
3939 #endif
4040
4141 #include "filtbank.h"
42 #include "decoder.h"
4342 #include "syntax.h"
4443 #include "kbd_win.h"
4544 #include "sine_win.h"
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: hcr.c,v 1.24 2007/11/01 12:33:30 menno Exp $
27 ** $Id: hcr.c,v 1.26 2009/01/26 23:51:15 menno Exp $
2828 **/
2929
3030 #include "common.h"
172172 b->len += a->len;
173173 }
174174
175 uint8_t is_good_cb(uint8_t this_CB, uint8_t this_sec_CB)
175 static uint8_t is_good_cb(uint8_t this_CB, uint8_t this_sec_CB)
176176 {
177177 /* only want spectral data CB's */
178178 if ((this_sec_CB > ZERO_HCB && this_sec_CB <= ESC_HCB) || (this_sec_CB >= VCB11_FIRST && this_sec_CB <= VCB11_LAST))
190190 return 0;
191191 }
192192
193 void read_segment(bits_t *segment, uint8_t segwidth, bitfile *ld)
193 static void read_segment(bits_t *segment, uint8_t segwidth, bitfile *ld)
194194 {
195195 segment->len = segwidth;
196196
205205 }
206206 }
207207
208 void fill_in_codeword(codeword_t *codeword, uint16_t index, uint16_t sp, uint8_t cb)
208 static void fill_in_codeword(codeword_t *codeword, uint16_t index, uint16_t sp, uint8_t cb)
209209 {
210210 codeword[index].sp_offset = sp;
211211 codeword[index].cb = cb;
213213 codeword[index].bits.len = 0;
214214 }
215215
216 uint8_t reordered_spectral_data(NeAACDecHandle hDecoder, ic_stream *ics,
216 uint8_t reordered_spectral_data(NeAACDecStruct *hDecoder, ic_stream *ics,
217217 bitfile *ld, int16_t *spectral_data)
218218 {
219219 uint16_t PCWs_done;
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
+0
-484
libfaad/libfaad.dsp less more
0 # Microsoft Developer Studio Project File - Name="libfaad" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Static Library" 0x0104
5
6 CFG=libfaad - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "libfaad.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "libfaad.mak" CFG="libfaad - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "libfaad - Win32 Release" (based on "Win32 (x86) Static Library")
20 !MESSAGE "libfaad - Win32 Debug" (based on "Win32 (x86) Static Library")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=xicl6.exe
28 RSC=rc.exe
29
30 !IF "$(CFG)" == "libfaad - Win32 Release"
31
32 # PROP BASE Use_MFC 0
33 # PROP BASE Use_Debug_Libraries 0
34 # PROP BASE Output_Dir "Release"
35 # PROP BASE Intermediate_Dir "Release"
36 # PROP BASE Target_Dir ""
37 # PROP Use_MFC 0
38 # PROP Use_Debug_Libraries 0
39 # PROP Output_Dir "Release"
40 # PROP Intermediate_Dir "Release"
41 # PROP Target_Dir ""
42 MTL=midl.exe
43 F90=df.exe
44 # ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /YX /FD /c
45 # ADD CPP /nologo /G6 /MD /W3 /GX /O2 /D "NDEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /YX /FD /c
46 # ADD BASE RSC /l 0x413 /d "NDEBUG"
47 # ADD RSC /l 0x413 /d "NDEBUG"
48 BSC32=bscmake.exe
49 # ADD BASE BSC32 /nologo
50 # ADD BSC32 /nologo
51 LIB32=link.exe -lib
52 # ADD BASE LIB32 /nologo
53 # ADD LIB32 /nologo
54
55 !ELSEIF "$(CFG)" == "libfaad - Win32 Debug"
56
57 # PROP BASE Use_MFC 0
58 # PROP BASE Use_Debug_Libraries 1
59 # PROP BASE Output_Dir "Debug"
60 # PROP BASE Intermediate_Dir "Debug"
61 # PROP BASE Target_Dir ""
62 # PROP Use_MFC 0
63 # PROP Use_Debug_Libraries 1
64 # PROP Output_Dir "Debug"
65 # PROP Intermediate_Dir "Debug"
66 # PROP Target_Dir ""
67 MTL=midl.exe
68 F90=df.exe
69 # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
70 # ADD CPP /nologo /MDd /W3 /Gm /ZI /Od /D "_DEBUG" /D "WIN32" /D "_MBCS" /D "_LIB" /YX /FD /GZ /c
71 # ADD BASE RSC /l 0x413 /d "_DEBUG"
72 # ADD RSC /l 0x413 /d "_DEBUG"
73 BSC32=bscmake.exe
74 # ADD BASE BSC32 /nologo
75 # ADD BSC32 /nologo
76 LIB32=link.exe -lib
77 # ADD BASE LIB32 /nologo
78 # ADD LIB32 /nologo
79
80 !ENDIF
81
82 # Begin Target
83
84 # Name "libfaad - Win32 Release"
85 # Name "libfaad - Win32 Debug"
86 # Begin Group "Source Files"
87
88 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
89 # Begin Source File
90
91 SOURCE=.\bits.c
92 # End Source File
93 # Begin Source File
94
95 SOURCE=.\cfft.c
96 # End Source File
97 # Begin Source File
98
99 SOURCE=.\common.c
100 # End Source File
101 # Begin Source File
102
103 SOURCE=.\decoder.c
104 # End Source File
105 # Begin Source File
106
107 SOURCE=.\drc.c
108 # End Source File
109 # Begin Source File
110
111 SOURCE=.\drm_dec.c
112 # End Source File
113 # Begin Source File
114
115 SOURCE=.\error.c
116 # End Source File
117 # Begin Source File
118
119 SOURCE=.\filtbank.c
120 # End Source File
121 # Begin Source File
122
123 SOURCE=.\hcr.c
124 # End Source File
125 # Begin Source File
126
127 SOURCE=.\huffman.c
128 # End Source File
129 # Begin Source File
130
131 SOURCE=.\ic_predict.c
132 # End Source File
133 # Begin Source File
134
135 SOURCE=.\is.c
136 # End Source File
137 # Begin Source File
138
139 SOURCE=.\lt_predict.c
140 # End Source File
141 # Begin Source File
142
143 SOURCE=.\mdct.c
144 # End Source File
145 # Begin Source File
146
147 SOURCE=.\mp4.c
148 # End Source File
149 # Begin Source File
150
151 SOURCE=.\ms.c
152 # End Source File
153 # Begin Source File
154
155 SOURCE=.\output.c
156 # End Source File
157 # Begin Source File
158
159 SOURCE=.\pns.c
160 # End Source File
161 # Begin Source File
162
163 SOURCE=.\ps_dec.c
164 # End Source File
165 # Begin Source File
166
167 SOURCE=.\ps_syntax.c
168 # End Source File
169 # Begin Source File
170
171 SOURCE=.\pulse.c
172 # End Source File
173 # Begin Source File
174
175 SOURCE=.\rvlc.c
176 # End Source File
177 # Begin Source File
178
179 SOURCE=.\sbr_dct.c
180 # End Source File
181 # Begin Source File
182
183 SOURCE=.\sbr_dec.c
184 # End Source File
185 # Begin Source File
186
187 SOURCE=.\sbr_e_nf.c
188 # End Source File
189 # Begin Source File
190
191 SOURCE=.\sbr_fbt.c
192 # End Source File
193 # Begin Source File
194
195 SOURCE=.\sbr_hfadj.c
196 # End Source File
197 # Begin Source File
198
199 SOURCE=.\sbr_hfgen.c
200 # End Source File
201 # Begin Source File
202
203 SOURCE=.\sbr_huff.c
204 # End Source File
205 # Begin Source File
206
207 SOURCE=.\sbr_qmf.c
208 # End Source File
209 # Begin Source File
210
211 SOURCE=.\sbr_syntax.c
212 # End Source File
213 # Begin Source File
214
215 SOURCE=.\sbr_tf_grid.c
216 # End Source File
217 # Begin Source File
218
219 SOURCE=.\specrec.c
220 # End Source File
221 # Begin Source File
222
223 SOURCE=.\ssr.c
224 # End Source File
225 # Begin Source File
226
227 SOURCE=.\ssr_fb.c
228 # End Source File
229 # Begin Source File
230
231 SOURCE=.\ssr_ipqf.c
232 # End Source File
233 # Begin Source File
234
235 SOURCE=.\syntax.c
236 # End Source File
237 # Begin Source File
238
239 SOURCE=.\tns.c
240 # End Source File
241 # End Group
242 # Begin Group "Header Files"
243
244 # PROP Default_Filter "h;hpp;hxx;hm;inl"
245 # Begin Group "codebook"
246
247 # PROP Default_Filter ""
248 # Begin Source File
249
250 SOURCE=.\codebook\hcb_1.h
251 # End Source File
252 # Begin Source File
253
254 SOURCE=.\codebook\hcb_10.h
255 # End Source File
256 # Begin Source File
257
258 SOURCE=.\codebook\hcb_11.h
259 # End Source File
260 # Begin Source File
261
262 SOURCE=.\codebook\hcb_2.h
263 # End Source File
264 # Begin Source File
265
266 SOURCE=.\codebook\hcb_3.h
267 # End Source File
268 # Begin Source File
269
270 SOURCE=.\codebook\hcb_4.h
271 # End Source File
272 # Begin Source File
273
274 SOURCE=.\codebook\hcb_5.h
275 # End Source File
276 # Begin Source File
277
278 SOURCE=.\codebook\hcb_6.h
279 # End Source File
280 # Begin Source File
281
282 SOURCE=.\codebook\hcb_7.h
283 # End Source File
284 # Begin Source File
285
286 SOURCE=.\codebook\hcb_8.h
287 # End Source File
288 # Begin Source File
289
290 SOURCE=.\codebook\hcb_9.h
291 # End Source File
292 # Begin Source File
293
294 SOURCE=.\codebook\hcb_sf.h
295 # End Source File
296 # End Group
297 # Begin Source File
298
299 SOURCE=.\analysis.h
300 # End Source File
301 # Begin Source File
302
303 SOURCE=.\bits.h
304 # End Source File
305 # Begin Source File
306
307 SOURCE=.\cfft.h
308 # End Source File
309 # Begin Source File
310
311 SOURCE=.\cfft_tab.h
312 # End Source File
313 # Begin Source File
314
315 SOURCE=.\common.h
316 # End Source File
317 # Begin Source File
318
319 SOURCE=.\decoder.h
320 # End Source File
321 # Begin Source File
322
323 SOURCE=.\drc.h
324 # End Source File
325 # Begin Source File
326
327 SOURCE=.\drm_dec.h
328 # End Source File
329 # Begin Source File
330
331 SOURCE=.\error.h
332 # End Source File
333 # Begin Source File
334
335 SOURCE=.\filtbank.h
336 # End Source File
337 # Begin Source File
338
339 SOURCE=.\fixed.h
340 # End Source File
341 # Begin Source File
342
343 SOURCE=.\codebook\hcb.h
344 # End Source File
345 # Begin Source File
346
347 SOURCE=.\huffman.h
348 # End Source File
349 # Begin Source File
350
351 SOURCE=.\ic_predict.h
352 # End Source File
353 # Begin Source File
354
355 SOURCE=.\iq_table.h
356 # End Source File
357 # Begin Source File
358
359 SOURCE=.\is.h
360 # End Source File
361 # Begin Source File
362
363 SOURCE=.\kbd_win.h
364 # End Source File
365 # Begin Source File
366
367 SOURCE=.\lt_predict.h
368 # End Source File
369 # Begin Source File
370
371 SOURCE=.\mdct.h
372 # End Source File
373 # Begin Source File
374
375 SOURCE=.\mdct_tab.h
376 # End Source File
377 # Begin Source File
378
379 SOURCE=.\mp4.h
380 # End Source File
381 # Begin Source File
382
383 SOURCE=.\ms.h
384 # End Source File
385 # Begin Source File
386
387 SOURCE=.\output.h
388 # End Source File
389 # Begin Source File
390
391 SOURCE=.\pns.h
392 # End Source File
393 # Begin Source File
394
395 SOURCE=.\ps_dec.h
396 # End Source File
397 # Begin Source File
398
399 SOURCE=.\ps_tables.h
400 # End Source File
401 # Begin Source File
402
403 SOURCE=.\pulse.h
404 # End Source File
405 # Begin Source File
406
407 SOURCE=.\rvlc.h
408 # End Source File
409 # Begin Source File
410
411 SOURCE=.\sbr_dct.h
412 # End Source File
413 # Begin Source File
414
415 SOURCE=.\sbr_dec.h
416 # End Source File
417 # Begin Source File
418
419 SOURCE=.\sbr_e_nf.h
420 # End Source File
421 # Begin Source File
422
423 SOURCE=.\sbr_fbt.h
424 # End Source File
425 # Begin Source File
426
427 SOURCE=.\sbr_hfadj.h
428 # End Source File
429 # Begin Source File
430
431 SOURCE=.\sbr_hfgen.h
432 # End Source File
433 # Begin Source File
434
435 SOURCE=.\sbr_huff.h
436 # End Source File
437 # Begin Source File
438
439 SOURCE=.\sbr_noise.h
440 # End Source File
441 # Begin Source File
442
443 SOURCE=.\sbr_qmf.h
444 # End Source File
445 # Begin Source File
446
447 SOURCE=.\sbr_qmf_c.h
448 # End Source File
449 # Begin Source File
450
451 SOURCE=.\sbr_syntax.h
452 # End Source File
453 # Begin Source File
454
455 SOURCE=.\sbr_tf_grid.h
456 # End Source File
457 # Begin Source File
458
459 SOURCE=.\sine_win.h
460 # End Source File
461 # Begin Source File
462
463 SOURCE=.\specrec.h
464 # End Source File
465 # Begin Source File
466
467 SOURCE=.\ssr.h
468 # End Source File
469 # Begin Source File
470
471 SOURCE=.\structs.h
472 # End Source File
473 # Begin Source File
474
475 SOURCE=.\syntax.h
476 # End Source File
477 # Begin Source File
478
479 SOURCE=.\tns.h
480 # End Source File
481 # End Group
482 # End Target
483 # End Project
+0
-29
libfaad/libfaad.dsw less more
0 Microsoft Developer Studio Workspace File, Format Version 6.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "libfaad"=.\libfaad.dsp - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 }}}
14
15 ###############################################################################
16
17 Global:
18
19 Package=<5>
20 {{{
21 }}}
22
23 Package=<3>
24 {{{
25 }}}
26
27 ###############################################################################
28
0 Microsoft Visual Studio Solution File, Format Version 8.00
1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfaad", "libfaad.vcproj", "{4274723E-6B9D-4B3E-A8BE-7566165AA169}"
2 ProjectSection(ProjectDependencies) = postProject
3 EndProjectSection
0 Microsoft Visual Studio Solution File, Format Version 9.00
1 # Visual C++ Express 2005
2 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfaad", "libfaad.vcproj", "{BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}"
43 EndProject
54 Global
5 GlobalSection(SolutionConfigurationPlatforms) = preSolution
6 Debug|Win32 = Debug|Win32
7 Release|Win32 = Release|Win32
8 EndGlobalSection
9 GlobalSection(ProjectConfigurationPlatforms) = postSolution
10 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}.Debug|Win32.ActiveCfg = Debug|Win32
11 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}.Release|Win32.ActiveCfg = Release|Win32
12 EndGlobalSection
13 GlobalSection(SolutionProperties) = preSolution
14 HideSolutionNode = FALSE
15 EndGlobalSection
616 GlobalSection(DPCodeReviewSolutionGUID) = preSolution
717 DPCodeReviewSolutionGUID = {00000000-0000-0000-0000-000000000000}
818 EndGlobalSection
9 GlobalSection(SolutionConfiguration) = preSolution
10 Debug = Debug
11 Release = Release
12 EndGlobalSection
13 GlobalSection(ProjectConfiguration) = postSolution
14 {4274723E-6B9D-4B3E-A8BE-7566165AA169}.Debug.ActiveCfg = Debug|Win32
15 {4274723E-6B9D-4B3E-A8BE-7566165AA169}.Debug.Build.0 = Debug|Win32
16 {4274723E-6B9D-4B3E-A8BE-7566165AA169}.Release.ActiveCfg = Release|Win32
17 {4274723E-6B9D-4B3E-A8BE-7566165AA169}.Release.Build.0 = Release|Win32
18 EndGlobalSection
19 GlobalSection(ExtensibilityGlobals) = postSolution
20 EndGlobalSection
21 GlobalSection(ExtensibilityAddIns) = postSolution
22 EndGlobalSection
2319 EndGlobal
00 <?xml version="1.0" encoding="Windows-1252"?>
11 <VisualStudioProject
22 ProjectType="Visual C++"
3 Version="8,00"
3 Version="8.00"
44 Name="libfaad"
55 ProjectGUID="{BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}"
66 >
4242 AdditionalOptions=""
4343 Optimization="2"
4444 InlineFunctionExpansion="1"
45 AdditionalIncludeDirectories="../include"
4546 PreprocessorDefinitions="NDEBUG;WIN32;_LIB"
4647 StringPooling="true"
4748 RuntimeLibrary="2"
117118 Name="VCCLCompilerTool"
118119 AdditionalOptions=""
119120 Optimization="0"
121 AdditionalIncludeDirectories="../include"
120122 PreprocessorDefinitions="_DEBUG;WIN32;_LIB"
121123 BasicRuntimeChecks="3"
122124 RuntimeLibrary="3"
(No changes)
+0
-2091
libfaad/libfaad2.vcp less more
0 # Microsoft eMbedded Visual Tools Project File - Name="libfaad2" - Package Owner=<4>
1 # Microsoft eMbedded Visual Tools Generated Build File, Format Version 6.02
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (WCE x86) Static Library" 0x8304
5 # TARGTYPE "Win32 (WCE ARM) Static Library" 0x8504
6
7 CFG=libfaad2 - Win32 (WCE ARM) Debug
8 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
9 !MESSAGE use the Export Makefile command and run
10 !MESSAGE
11 !MESSAGE NMAKE /f "libfaad2.vcn".
12 !MESSAGE
13 !MESSAGE You can specify a configuration when running NMAKE
14 !MESSAGE by defining the macro CFG on the command line. For example:
15 !MESSAGE
16 !MESSAGE NMAKE /f "libfaad2.vcn" CFG="libfaad2 - Win32 (WCE ARM) Debug"
17 !MESSAGE
18 !MESSAGE Possible choices for configuration are:
19 !MESSAGE
20 !MESSAGE "libfaad2 - Win32 (WCE ARM) Release" (based on "Win32 (WCE ARM) Static Library")
21 !MESSAGE "libfaad2 - Win32 (WCE ARM) Debug" (based on "Win32 (WCE ARM) Static Library")
22 !MESSAGE "libfaad2 - Win32 (WCE x86) Release" (based on "Win32 (WCE x86) Static Library")
23 !MESSAGE "libfaad2 - Win32 (WCE x86) Debug" (based on "Win32 (WCE x86) Static Library")
24 !MESSAGE
25
26 # Begin Project
27 # PROP AllowPerConfigDependencies 0
28 # PROP Scc_ProjName ""
29 # PROP Scc_LocalPath ""
30 # PROP ATL_Project 2
31
32 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
33
34 # PROP BASE Use_MFC 0
35 # PROP BASE Use_Debug_Libraries 0
36 # PROP BASE Output_Dir "ARMRel"
37 # PROP BASE Intermediate_Dir "ARMRel"
38 # PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
39 # PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
40 # PROP BASE Target_Dir ""
41 # PROP Use_MFC 0
42 # PROP Use_Debug_Libraries 0
43 # PROP Output_Dir "ARMRel"
44 # PROP Intermediate_Dir "ARMRel"
45 # PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
46 # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
47 # PROP Target_Dir ""
48 CPP=clarm.exe
49 # ADD BASE CPP /nologo /W3 /GX- /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "NDEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /YX /Oxs /M$(CECrtMT) /c
50 # ADD CPP /nologo /W3 /GX- /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "NDEBUG" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /YX /Oxs /M$(CECrtMT) /c
51 LIB32=link.exe -lib
52 # ADD BASE LIB32 /nologo
53 # ADD LIB32 /nologo
54 BSC32=bscmake.exe
55 # ADD BASE BSC32 /nologo
56 # ADD BSC32 /nologo
57
58 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
59
60 # PROP BASE Use_MFC 0
61 # PROP BASE Use_Debug_Libraries 1
62 # PROP BASE Output_Dir "ARMDbg"
63 # PROP BASE Intermediate_Dir "ARMDbg"
64 # PROP BASE CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
65 # PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
66 # PROP BASE Target_Dir ""
67 # PROP Use_MFC 0
68 # PROP Use_Debug_Libraries 1
69 # PROP Output_Dir "ARMDbg"
70 # PROP Intermediate_Dir "ARMDbg"
71 # PROP CPU_ID "{D6518FFC-710F-11D3-99F2-00105A0DF099}"
72 # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
73 # PROP Target_Dir ""
74 CPP=clarm.exe
75 # ADD BASE CPP /nologo /W3 /GX- /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /YX /M$(CECrtMTDebug) /c
76 # ADD CPP /nologo /W3 /GX- /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "ARM" /D "_ARM_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_LIB" /YX /M$(CECrtMTDebug) /c
77 LIB32=link.exe -lib
78 # ADD BASE LIB32 /nologo
79 # ADD LIB32 /nologo
80 BSC32=bscmake.exe
81 # ADD BASE BSC32 /nologo
82 # ADD BSC32 /nologo
83
84 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
85
86 # PROP BASE Use_MFC 0
87 # PROP BASE Use_Debug_Libraries 0
88 # PROP BASE Output_Dir "X86Rel"
89 # PROP BASE Intermediate_Dir "X86Rel"
90 # PROP BASE CPU_ID "{D6518FF3-710F-11D3-99F2-00105A0DF099}"
91 # PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
92 # PROP BASE Target_Dir ""
93 # PROP Use_MFC 0
94 # PROP Use_Debug_Libraries 0
95 # PROP Output_Dir "X86Rel"
96 # PROP Intermediate_Dir "X86Rel"
97 # PROP CPU_ID "{D6518FF3-710F-11D3-99F2-00105A0DF099}"
98 # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
99 # PROP Target_Dir ""
100 CPP=cl.exe
101 # ADD BASE CPP /nologo /W3 /GX- /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /D "_LIB" /YX /Gs8192 /GF /Oxs /c
102 # ADD CPP /nologo /W3 /GX- /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "NDEBUG" /D "_LIB" /YX /Gs8192 /GF /Oxs /c
103 LIB32=link.exe -lib
104 # ADD BASE LIB32 /nologo
105 # ADD LIB32 /nologo
106 BSC32=bscmake.exe
107 # ADD BASE BSC32 /nologo
108 # ADD BSC32 /nologo
109
110 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
111
112 # PROP BASE Use_MFC 0
113 # PROP BASE Use_Debug_Libraries 1
114 # PROP BASE Output_Dir "X86Dbg"
115 # PROP BASE Intermediate_Dir "X86Dbg"
116 # PROP BASE CPU_ID "{D6518FF3-710F-11D3-99F2-00105A0DF099}"
117 # PROP BASE Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
118 # PROP BASE Target_Dir ""
119 # PROP Use_MFC 0
120 # PROP Use_Debug_Libraries 1
121 # PROP Output_Dir "X86Dbg"
122 # PROP Intermediate_Dir "X86Dbg"
123 # PROP CPU_ID "{D6518FF3-710F-11D3-99F2-00105A0DF099}"
124 # PROP Platform_ID "{8A9A2F80-6887-11D3-842E-005004848CBA}"
125 # PROP Target_Dir ""
126 CPP=cl.exe
127 # ADD BASE CPP /nologo /W3 /GX- /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "_LIB" /YX /Gs8192 /GF /c
128 # ADD CPP /nologo /W3 /GX- /Zi /Od /D "DEBUG" /D _WIN32_WCE=$(CEVersion) /D "$(CePlatform)" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "_LIB" /YX /Gs8192 /GF /c
129 LIB32=link.exe -lib
130 # ADD BASE LIB32 /nologo
131 # ADD LIB32 /nologo
132 BSC32=bscmake.exe
133 # ADD BASE BSC32 /nologo
134 # ADD BSC32 /nologo
135
136 !ENDIF
137
138 # Begin Target
139
140 # Name "libfaad2 - Win32 (WCE ARM) Release"
141 # Name "libfaad2 - Win32 (WCE ARM) Debug"
142 # Name "libfaad2 - Win32 (WCE x86) Release"
143 # Name "libfaad2 - Win32 (WCE x86) Debug"
144 # Begin Group "Source Files"
145
146 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
147 # Begin Group "codebook"
148
149 # PROP Default_Filter ""
150 # Begin Source File
151
152 SOURCE=.\codebook\hcb_1.c
153
154 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
155
156 DEP_CPP_HCB_1=\
157 ".\codebook\hcb.h"\
158 ".\common.h"\
159 ".\fixed.h"\
160
161
162 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
163
164 DEP_CPP_HCB_1=\
165 ".\codebook\hcb.h"\
166 ".\common.h"\
167 ".\fixed.h"\
168
169
170 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
171
172 DEP_CPP_HCB_1=\
173 ".\codebook\hcb.h"\
174 ".\common.h"\
175 ".\fixed.h"\
176
177
178 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
179
180 DEP_CPP_HCB_1=\
181 ".\codebook\hcb.h"\
182 ".\common.h"\
183 ".\fixed.h"\
184
185
186 !ENDIF
187
188 # End Source File
189 # Begin Source File
190
191 SOURCE=.\codebook\hcb_10.c
192
193 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
194
195 DEP_CPP_HCB_10=\
196 ".\codebook\hcb.h"\
197 ".\common.h"\
198 ".\fixed.h"\
199
200
201 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
202
203 DEP_CPP_HCB_10=\
204 ".\codebook\hcb.h"\
205 ".\common.h"\
206 ".\fixed.h"\
207
208
209 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
210
211 DEP_CPP_HCB_10=\
212 ".\codebook\hcb.h"\
213 ".\common.h"\
214 ".\fixed.h"\
215
216
217 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
218
219 DEP_CPP_HCB_10=\
220 ".\codebook\hcb.h"\
221 ".\common.h"\
222 ".\fixed.h"\
223
224
225 !ENDIF
226
227 # End Source File
228 # Begin Source File
229
230 SOURCE=.\codebook\hcb_11.c
231
232 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
233
234 DEP_CPP_HCB_11=\
235 ".\codebook\hcb.h"\
236 ".\common.h"\
237 ".\fixed.h"\
238
239
240 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
241
242 DEP_CPP_HCB_11=\
243 ".\codebook\hcb.h"\
244 ".\common.h"\
245 ".\fixed.h"\
246
247
248 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
249
250 DEP_CPP_HCB_11=\
251 ".\codebook\hcb.h"\
252 ".\common.h"\
253 ".\fixed.h"\
254
255
256 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
257
258 DEP_CPP_HCB_11=\
259 ".\codebook\hcb.h"\
260 ".\common.h"\
261 ".\fixed.h"\
262
263
264 !ENDIF
265
266 # End Source File
267 # Begin Source File
268
269 SOURCE=.\codebook\hcb_2.c
270
271 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
272
273 DEP_CPP_HCB_2=\
274 ".\codebook\hcb.h"\
275 ".\common.h"\
276 ".\fixed.h"\
277
278
279 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
280
281 DEP_CPP_HCB_2=\
282 ".\codebook\hcb.h"\
283 ".\common.h"\
284 ".\fixed.h"\
285
286
287 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
288
289 DEP_CPP_HCB_2=\
290 ".\codebook\hcb.h"\
291 ".\common.h"\
292 ".\fixed.h"\
293
294
295 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
296
297 DEP_CPP_HCB_2=\
298 ".\codebook\hcb.h"\
299 ".\common.h"\
300 ".\fixed.h"\
301
302
303 !ENDIF
304
305 # End Source File
306 # Begin Source File
307
308 SOURCE=.\codebook\hcb_3.c
309
310 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
311
312 DEP_CPP_HCB_3=\
313 ".\codebook\hcb.h"\
314 ".\common.h"\
315 ".\fixed.h"\
316
317
318 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
319
320 DEP_CPP_HCB_3=\
321 ".\codebook\hcb.h"\
322 ".\common.h"\
323 ".\fixed.h"\
324
325
326 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
327
328 DEP_CPP_HCB_3=\
329 ".\codebook\hcb.h"\
330 ".\common.h"\
331 ".\fixed.h"\
332
333
334 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
335
336 DEP_CPP_HCB_3=\
337 ".\codebook\hcb.h"\
338 ".\common.h"\
339 ".\fixed.h"\
340
341
342 !ENDIF
343
344 # End Source File
345 # Begin Source File
346
347 SOURCE=.\codebook\hcb_4.c
348
349 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
350
351 DEP_CPP_HCB_4=\
352 ".\codebook\hcb.h"\
353 ".\common.h"\
354 ".\fixed.h"\
355
356
357 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
358
359 DEP_CPP_HCB_4=\
360 ".\codebook\hcb.h"\
361 ".\common.h"\
362 ".\fixed.h"\
363
364
365 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
366
367 DEP_CPP_HCB_4=\
368 ".\codebook\hcb.h"\
369 ".\common.h"\
370 ".\fixed.h"\
371
372
373 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
374
375 DEP_CPP_HCB_4=\
376 ".\codebook\hcb.h"\
377 ".\common.h"\
378 ".\fixed.h"\
379
380
381 !ENDIF
382
383 # End Source File
384 # Begin Source File
385
386 SOURCE=.\codebook\hcb_5.c
387
388 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
389
390 DEP_CPP_HCB_5=\
391 ".\codebook\hcb.h"\
392 ".\common.h"\
393 ".\fixed.h"\
394
395
396 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
397
398 DEP_CPP_HCB_5=\
399 ".\codebook\hcb.h"\
400 ".\common.h"\
401 ".\fixed.h"\
402
403
404 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
405
406 DEP_CPP_HCB_5=\
407 ".\codebook\hcb.h"\
408 ".\common.h"\
409 ".\fixed.h"\
410
411
412 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
413
414 DEP_CPP_HCB_5=\
415 ".\codebook\hcb.h"\
416 ".\common.h"\
417 ".\fixed.h"\
418
419
420 !ENDIF
421
422 # End Source File
423 # Begin Source File
424
425 SOURCE=.\codebook\hcb_6.c
426
427 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
428
429 DEP_CPP_HCB_6=\
430 ".\codebook\hcb.h"\
431 ".\common.h"\
432 ".\fixed.h"\
433
434
435 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
436
437 DEP_CPP_HCB_6=\
438 ".\codebook\hcb.h"\
439 ".\common.h"\
440 ".\fixed.h"\
441
442
443 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
444
445 DEP_CPP_HCB_6=\
446 ".\codebook\hcb.h"\
447 ".\common.h"\
448 ".\fixed.h"\
449
450
451 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
452
453 DEP_CPP_HCB_6=\
454 ".\codebook\hcb.h"\
455 ".\common.h"\
456 ".\fixed.h"\
457
458
459 !ENDIF
460
461 # End Source File
462 # Begin Source File
463
464 SOURCE=.\codebook\hcb_7.c
465
466 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
467
468 DEP_CPP_HCB_7=\
469 ".\codebook\hcb.h"\
470 ".\common.h"\
471 ".\fixed.h"\
472
473
474 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
475
476 DEP_CPP_HCB_7=\
477 ".\codebook\hcb.h"\
478 ".\common.h"\
479 ".\fixed.h"\
480
481
482 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
483
484 DEP_CPP_HCB_7=\
485 ".\codebook\hcb.h"\
486 ".\common.h"\
487 ".\fixed.h"\
488
489
490 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
491
492 DEP_CPP_HCB_7=\
493 ".\codebook\hcb.h"\
494 ".\common.h"\
495 ".\fixed.h"\
496
497
498 !ENDIF
499
500 # End Source File
501 # Begin Source File
502
503 SOURCE=.\codebook\hcb_8.c
504
505 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
506
507 DEP_CPP_HCB_8=\
508 ".\codebook\hcb.h"\
509 ".\common.h"\
510 ".\fixed.h"\
511
512
513 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
514
515 DEP_CPP_HCB_8=\
516 ".\codebook\hcb.h"\
517 ".\common.h"\
518 ".\fixed.h"\
519
520
521 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
522
523 DEP_CPP_HCB_8=\
524 ".\codebook\hcb.h"\
525 ".\common.h"\
526 ".\fixed.h"\
527
528
529 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
530
531 DEP_CPP_HCB_8=\
532 ".\codebook\hcb.h"\
533 ".\common.h"\
534 ".\fixed.h"\
535
536
537 !ENDIF
538
539 # End Source File
540 # Begin Source File
541
542 SOURCE=.\codebook\hcb_9.c
543
544 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
545
546 DEP_CPP_HCB_9=\
547 ".\codebook\hcb.h"\
548 ".\common.h"\
549 ".\fixed.h"\
550
551
552 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
553
554 DEP_CPP_HCB_9=\
555 ".\codebook\hcb.h"\
556 ".\common.h"\
557 ".\fixed.h"\
558
559
560 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
561
562 DEP_CPP_HCB_9=\
563 ".\codebook\hcb.h"\
564 ".\common.h"\
565 ".\fixed.h"\
566
567
568 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
569
570 DEP_CPP_HCB_9=\
571 ".\codebook\hcb.h"\
572 ".\common.h"\
573 ".\fixed.h"\
574
575
576 !ENDIF
577
578 # End Source File
579 # Begin Source File
580
581 SOURCE=.\codebook\hcb_sf.c
582
583 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
584
585 DEP_CPP_HCB_S=\
586 ".\codebook\hcb.h"\
587 ".\common.h"\
588 ".\fixed.h"\
589
590
591 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
592
593 DEP_CPP_HCB_S=\
594 ".\codebook\hcb.h"\
595 ".\common.h"\
596 ".\fixed.h"\
597
598
599 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
600
601 DEP_CPP_HCB_S=\
602 ".\codebook\hcb.h"\
603 ".\common.h"\
604 ".\fixed.h"\
605
606
607 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
608
609 DEP_CPP_HCB_S=\
610 ".\codebook\hcb.h"\
611 ".\common.h"\
612 ".\fixed.h"\
613
614
615 !ENDIF
616
617 # End Source File
618 # End Group
619 # Begin Source File
620
621 SOURCE=.\bits.c
622
623 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
624
625 DEP_CPP_BITS_=\
626 ".\analysis.h"\
627 ".\bits.h"\
628 ".\common.h"\
629 ".\fixed.h"\
630
631
632 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
633
634 DEP_CPP_BITS_=\
635 ".\analysis.h"\
636 ".\bits.h"\
637 ".\common.h"\
638 ".\fixed.h"\
639
640
641 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
642
643 DEP_CPP_BITS_=\
644 ".\analysis.h"\
645 ".\bits.h"\
646 ".\common.h"\
647 ".\fixed.h"\
648
649
650 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
651
652 DEP_CPP_BITS_=\
653 ".\analysis.h"\
654 ".\bits.h"\
655 ".\common.h"\
656 ".\fixed.h"\
657
658
659 !ENDIF
660
661 # End Source File
662 # Begin Source File
663
664 SOURCE=.\cfft.c
665
666 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
667
668 DEP_CPP_CFFT_=\
669 ".\cfft.h"\
670 ".\cfft_tab.h"\
671 ".\common.h"\
672 ".\fixed.h"\
673
674
675 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
676
677 DEP_CPP_CFFT_=\
678 ".\cfft.h"\
679 ".\cfft_tab.h"\
680 ".\common.h"\
681 ".\fixed.h"\
682
683
684 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
685
686 DEP_CPP_CFFT_=\
687 ".\cfft.h"\
688 ".\cfft_tab.h"\
689 ".\common.h"\
690 ".\fixed.h"\
691
692
693 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
694
695 DEP_CPP_CFFT_=\
696 ".\cfft.h"\
697 ".\cfft_tab.h"\
698 ".\common.h"\
699 ".\fixed.h"\
700
701
702 !ENDIF
703
704 # End Source File
705 # Begin Source File
706
707 SOURCE=.\common.c
708
709 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
710
711 DEP_CPP_COMMO=\
712 ".\analysis.h"\
713 ".\bits.h"\
714 ".\common.h"\
715 ".\fixed.h"\
716 ".\syntax.h"\
717
718
719 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
720
721 DEP_CPP_COMMO=\
722 ".\analysis.h"\
723 ".\bits.h"\
724 ".\common.h"\
725 ".\fixed.h"\
726 ".\syntax.h"\
727
728
729 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
730
731 DEP_CPP_COMMO=\
732 ".\analysis.h"\
733 ".\bits.h"\
734 ".\common.h"\
735 ".\fixed.h"\
736 ".\syntax.h"\
737
738
739 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
740
741 DEP_CPP_COMMO=\
742 ".\analysis.h"\
743 ".\bits.h"\
744 ".\common.h"\
745 ".\fixed.h"\
746 ".\syntax.h"\
747
748
749 !ENDIF
750
751 # End Source File
752 # Begin Source File
753
754 SOURCE=.\data.c
755
756 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
757
758 DEP_CPP_DATA_=\
759 ".\common.h"\
760 ".\data.h"\
761 ".\fixed.h"\
762
763
764 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
765
766 DEP_CPP_DATA_=\
767 ".\common.h"\
768 ".\data.h"\
769 ".\fixed.h"\
770
771
772 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
773
774 DEP_CPP_DATA_=\
775 ".\common.h"\
776 ".\data.h"\
777 ".\fixed.h"\
778
779
780 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
781
782 DEP_CPP_DATA_=\
783 ".\common.h"\
784 ".\data.h"\
785 ".\fixed.h"\
786
787
788 !ENDIF
789
790 # End Source File
791 # Begin Source File
792
793 SOURCE=.\decoder.c
794
795 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
796
797 DEP_CPP_DECOD=\
798 ".\analysis.h"\
799 ".\bits.h"\
800 ".\cfft.h"\
801 ".\common.h"\
802 ".\data.h"\
803 ".\decoder.h"\
804 ".\dither.h"\
805 ".\drc.h"\
806 ".\error.h"\
807 ".\filtbank.h"\
808 ".\fixed.h"\
809 ".\ic_predict.h"\
810 ".\is.h"\
811 ".\lt_predict.h"\
812 ".\mdct.h"\
813 ".\mp4.h"\
814 ".\ms.h"\
815 ".\output.h"\
816 ".\pns.h"\
817 ".\specrec.h"\
818 ".\syntax.h"\
819 ".\tns.h"\
820
821
822 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
823
824 DEP_CPP_DECOD=\
825 ".\analysis.h"\
826 ".\bits.h"\
827 ".\cfft.h"\
828 ".\common.h"\
829 ".\data.h"\
830 ".\decoder.h"\
831 ".\dither.h"\
832 ".\drc.h"\
833 ".\error.h"\
834 ".\filtbank.h"\
835 ".\fixed.h"\
836 ".\ic_predict.h"\
837 ".\is.h"\
838 ".\lt_predict.h"\
839 ".\mdct.h"\
840 ".\mp4.h"\
841 ".\ms.h"\
842 ".\output.h"\
843 ".\pns.h"\
844 ".\specrec.h"\
845 ".\syntax.h"\
846 ".\tns.h"\
847
848
849 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
850
851 DEP_CPP_DECOD=\
852 ".\analysis.h"\
853 ".\bits.h"\
854 ".\cfft.h"\
855 ".\common.h"\
856 ".\data.h"\
857 ".\decoder.h"\
858 ".\dither.h"\
859 ".\drc.h"\
860 ".\error.h"\
861 ".\filtbank.h"\
862 ".\fixed.h"\
863 ".\ic_predict.h"\
864 ".\is.h"\
865 ".\lt_predict.h"\
866 ".\mdct.h"\
867 ".\mp4.h"\
868 ".\ms.h"\
869 ".\output.h"\
870 ".\pns.h"\
871 ".\specrec.h"\
872 ".\syntax.h"\
873 ".\tns.h"\
874
875
876 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
877
878 DEP_CPP_DECOD=\
879 ".\analysis.h"\
880 ".\bits.h"\
881 ".\cfft.h"\
882 ".\common.h"\
883 ".\data.h"\
884 ".\decoder.h"\
885 ".\dither.h"\
886 ".\drc.h"\
887 ".\error.h"\
888 ".\filtbank.h"\
889 ".\fixed.h"\
890 ".\ic_predict.h"\
891 ".\is.h"\
892 ".\lt_predict.h"\
893 ".\mdct.h"\
894 ".\mp4.h"\
895 ".\ms.h"\
896 ".\output.h"\
897 ".\pns.h"\
898 ".\specrec.h"\
899 ".\syntax.h"\
900 ".\tns.h"\
901
902
903 !ENDIF
904
905 # End Source File
906 # Begin Source File
907
908 SOURCE=.\dither.c
909
910 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
911
912 DEP_CPP_DITHE=\
913 ".\common.h"\
914 ".\dither.h"\
915 ".\fixed.h"\
916
917
918 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
919
920 DEP_CPP_DITHE=\
921 ".\common.h"\
922 ".\dither.h"\
923 ".\fixed.h"\
924
925
926 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
927
928 DEP_CPP_DITHE=\
929 ".\common.h"\
930 ".\dither.h"\
931 ".\fixed.h"\
932
933
934 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
935
936 DEP_CPP_DITHE=\
937 ".\common.h"\
938 ".\dither.h"\
939 ".\fixed.h"\
940
941
942 !ENDIF
943
944 # End Source File
945 # Begin Source File
946
947 SOURCE=.\drc.c
948
949 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
950
951 DEP_CPP_DRC_C=\
952 ".\analysis.h"\
953 ".\bits.h"\
954 ".\common.h"\
955 ".\drc.h"\
956 ".\fixed.h"\
957 ".\syntax.h"\
958
959
960 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
961
962 DEP_CPP_DRC_C=\
963 ".\analysis.h"\
964 ".\bits.h"\
965 ".\common.h"\
966 ".\drc.h"\
967 ".\fixed.h"\
968 ".\syntax.h"\
969
970
971 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
972
973 DEP_CPP_DRC_C=\
974 ".\analysis.h"\
975 ".\bits.h"\
976 ".\common.h"\
977 ".\drc.h"\
978 ".\fixed.h"\
979 ".\syntax.h"\
980
981
982 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
983
984 DEP_CPP_DRC_C=\
985 ".\analysis.h"\
986 ".\bits.h"\
987 ".\common.h"\
988 ".\drc.h"\
989 ".\fixed.h"\
990 ".\syntax.h"\
991
992
993 !ENDIF
994
995 # End Source File
996 # Begin Source File
997
998 SOURCE=.\error.c
999
1000 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1001
1002 DEP_CPP_ERROR=\
1003 ".\common.h"\
1004 ".\error.h"\
1005 ".\fixed.h"\
1006
1007
1008 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1009
1010 DEP_CPP_ERROR=\
1011 ".\common.h"\
1012 ".\error.h"\
1013 ".\fixed.h"\
1014
1015
1016 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1017
1018 DEP_CPP_ERROR=\
1019 ".\common.h"\
1020 ".\error.h"\
1021 ".\fixed.h"\
1022
1023
1024 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1025
1026 DEP_CPP_ERROR=\
1027 ".\common.h"\
1028 ".\error.h"\
1029 ".\fixed.h"\
1030
1031
1032 !ENDIF
1033
1034 # End Source File
1035 # Begin Source File
1036
1037 SOURCE=.\filtbank.c
1038
1039 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1040
1041 DEP_CPP_FILTB=\
1042 ".\analysis.h"\
1043 ".\bits.h"\
1044 ".\cfft.h"\
1045 ".\common.h"\
1046 ".\decoder.h"\
1047 ".\filtbank.h"\
1048 ".\fixed.h"\
1049 ".\ic_predict.h"\
1050 ".\kbd_win.h"\
1051 ".\mdct.h"\
1052 ".\sine_win.h"\
1053 ".\specrec.h"\
1054 ".\syntax.h"\
1055
1056
1057 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1058
1059 DEP_CPP_FILTB=\
1060 ".\analysis.h"\
1061 ".\bits.h"\
1062 ".\cfft.h"\
1063 ".\common.h"\
1064 ".\decoder.h"\
1065 ".\filtbank.h"\
1066 ".\fixed.h"\
1067 ".\ic_predict.h"\
1068 ".\kbd_win.h"\
1069 ".\mdct.h"\
1070 ".\sine_win.h"\
1071 ".\specrec.h"\
1072 ".\syntax.h"\
1073
1074
1075 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1076
1077 DEP_CPP_FILTB=\
1078 ".\analysis.h"\
1079 ".\bits.h"\
1080 ".\cfft.h"\
1081 ".\common.h"\
1082 ".\decoder.h"\
1083 ".\filtbank.h"\
1084 ".\fixed.h"\
1085 ".\ic_predict.h"\
1086 ".\kbd_win.h"\
1087 ".\mdct.h"\
1088 ".\sine_win.h"\
1089 ".\specrec.h"\
1090 ".\syntax.h"\
1091
1092
1093 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1094
1095 DEP_CPP_FILTB=\
1096 ".\analysis.h"\
1097 ".\bits.h"\
1098 ".\cfft.h"\
1099 ".\common.h"\
1100 ".\decoder.h"\
1101 ".\filtbank.h"\
1102 ".\fixed.h"\
1103 ".\ic_predict.h"\
1104 ".\kbd_win.h"\
1105 ".\mdct.h"\
1106 ".\sine_win.h"\
1107 ".\specrec.h"\
1108 ".\syntax.h"\
1109
1110
1111 !ENDIF
1112
1113 # End Source File
1114 # Begin Source File
1115
1116 SOURCE=.\ic_predict.c
1117
1118 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1119
1120 DEP_CPP_IC_PR=\
1121 ".\analysis.h"\
1122 ".\bits.h"\
1123 ".\common.h"\
1124 ".\fixed.h"\
1125 ".\ic_predict.h"\
1126 ".\pns.h"\
1127 ".\syntax.h"\
1128
1129
1130 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1131
1132 DEP_CPP_IC_PR=\
1133 ".\analysis.h"\
1134 ".\bits.h"\
1135 ".\common.h"\
1136 ".\fixed.h"\
1137 ".\ic_predict.h"\
1138 ".\pns.h"\
1139 ".\syntax.h"\
1140
1141
1142 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1143
1144 DEP_CPP_IC_PR=\
1145 ".\analysis.h"\
1146 ".\bits.h"\
1147 ".\common.h"\
1148 ".\fixed.h"\
1149 ".\ic_predict.h"\
1150 ".\pns.h"\
1151 ".\syntax.h"\
1152
1153
1154 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1155
1156 DEP_CPP_IC_PR=\
1157 ".\analysis.h"\
1158 ".\bits.h"\
1159 ".\common.h"\
1160 ".\fixed.h"\
1161 ".\ic_predict.h"\
1162 ".\pns.h"\
1163 ".\syntax.h"\
1164
1165
1166 !ENDIF
1167
1168 # End Source File
1169 # Begin Source File
1170
1171 SOURCE=.\is.c
1172
1173 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1174
1175 DEP_CPP_IS_C2c=\
1176 ".\analysis.h"\
1177 ".\bits.h"\
1178 ".\common.h"\
1179 ".\fixed.h"\
1180 ".\is.h"\
1181 ".\syntax.h"\
1182
1183
1184 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1185
1186 DEP_CPP_IS_C2c=\
1187 ".\analysis.h"\
1188 ".\bits.h"\
1189 ".\common.h"\
1190 ".\fixed.h"\
1191 ".\is.h"\
1192 ".\syntax.h"\
1193
1194
1195 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1196
1197 DEP_CPP_IS_C2c=\
1198 ".\analysis.h"\
1199 ".\bits.h"\
1200 ".\common.h"\
1201 ".\fixed.h"\
1202 ".\is.h"\
1203 ".\syntax.h"\
1204
1205
1206 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1207
1208 DEP_CPP_IS_C2c=\
1209 ".\analysis.h"\
1210 ".\bits.h"\
1211 ".\common.h"\
1212 ".\fixed.h"\
1213 ".\is.h"\
1214 ".\syntax.h"\
1215
1216
1217 !ENDIF
1218
1219 # End Source File
1220 # Begin Source File
1221
1222 SOURCE=.\lt_predict.c
1223
1224 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1225
1226 DEP_CPP_LT_PR=\
1227 ".\analysis.h"\
1228 ".\bits.h"\
1229 ".\cfft.h"\
1230 ".\common.h"\
1231 ".\filtbank.h"\
1232 ".\fixed.h"\
1233 ".\lt_predict.h"\
1234 ".\mdct.h"\
1235 ".\syntax.h"\
1236 ".\tns.h"\
1237
1238
1239 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1240
1241 DEP_CPP_LT_PR=\
1242 ".\analysis.h"\
1243 ".\bits.h"\
1244 ".\cfft.h"\
1245 ".\common.h"\
1246 ".\filtbank.h"\
1247 ".\fixed.h"\
1248 ".\lt_predict.h"\
1249 ".\mdct.h"\
1250 ".\syntax.h"\
1251 ".\tns.h"\
1252
1253
1254 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1255
1256 DEP_CPP_LT_PR=\
1257 ".\analysis.h"\
1258 ".\bits.h"\
1259 ".\cfft.h"\
1260 ".\common.h"\
1261 ".\filtbank.h"\
1262 ".\fixed.h"\
1263 ".\lt_predict.h"\
1264 ".\mdct.h"\
1265 ".\syntax.h"\
1266 ".\tns.h"\
1267
1268
1269 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1270
1271 DEP_CPP_LT_PR=\
1272 ".\analysis.h"\
1273 ".\bits.h"\
1274 ".\cfft.h"\
1275 ".\common.h"\
1276 ".\filtbank.h"\
1277 ".\fixed.h"\
1278 ".\lt_predict.h"\
1279 ".\mdct.h"\
1280 ".\syntax.h"\
1281 ".\tns.h"\
1282
1283
1284 !ENDIF
1285
1286 # End Source File
1287 # Begin Source File
1288
1289 SOURCE=.\mdct.c
1290
1291 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1292
1293 DEP_CPP_MDCT_=\
1294 ".\cfft.h"\
1295 ".\common.h"\
1296 ".\fixed.h"\
1297 ".\mdct.h"\
1298
1299
1300 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1301
1302 DEP_CPP_MDCT_=\
1303 ".\cfft.h"\
1304 ".\common.h"\
1305 ".\fixed.h"\
1306 ".\mdct.h"\
1307
1308
1309 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1310
1311 DEP_CPP_MDCT_=\
1312 ".\cfft.h"\
1313 ".\common.h"\
1314 ".\fixed.h"\
1315 ".\mdct.h"\
1316
1317
1318 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1319
1320 DEP_CPP_MDCT_=\
1321 ".\cfft.h"\
1322 ".\common.h"\
1323 ".\fixed.h"\
1324 ".\mdct.h"\
1325
1326
1327 !ENDIF
1328
1329 # End Source File
1330 # Begin Source File
1331
1332 SOURCE=.\mp4.c
1333
1334 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1335
1336 DEP_CPP_MP4_C=\
1337 ".\analysis.h"\
1338 ".\bits.h"\
1339 ".\cfft.h"\
1340 ".\common.h"\
1341 ".\data.h"\
1342 ".\decoder.h"\
1343 ".\filtbank.h"\
1344 ".\fixed.h"\
1345 ".\ic_predict.h"\
1346 ".\mdct.h"\
1347 ".\mp4.h"\
1348 ".\specrec.h"\
1349 ".\syntax.h"\
1350
1351
1352 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1353
1354 DEP_CPP_MP4_C=\
1355 ".\analysis.h"\
1356 ".\bits.h"\
1357 ".\cfft.h"\
1358 ".\common.h"\
1359 ".\data.h"\
1360 ".\decoder.h"\
1361 ".\filtbank.h"\
1362 ".\fixed.h"\
1363 ".\ic_predict.h"\
1364 ".\mdct.h"\
1365 ".\mp4.h"\
1366 ".\specrec.h"\
1367 ".\syntax.h"\
1368
1369
1370 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1371
1372 DEP_CPP_MP4_C=\
1373 ".\analysis.h"\
1374 ".\bits.h"\
1375 ".\cfft.h"\
1376 ".\common.h"\
1377 ".\data.h"\
1378 ".\decoder.h"\
1379 ".\filtbank.h"\
1380 ".\fixed.h"\
1381 ".\ic_predict.h"\
1382 ".\mdct.h"\
1383 ".\mp4.h"\
1384 ".\specrec.h"\
1385 ".\syntax.h"\
1386
1387
1388 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1389
1390 DEP_CPP_MP4_C=\
1391 ".\analysis.h"\
1392 ".\bits.h"\
1393 ".\cfft.h"\
1394 ".\common.h"\
1395 ".\data.h"\
1396 ".\decoder.h"\
1397 ".\filtbank.h"\
1398 ".\fixed.h"\
1399 ".\ic_predict.h"\
1400 ".\mdct.h"\
1401 ".\mp4.h"\
1402 ".\specrec.h"\
1403 ".\syntax.h"\
1404
1405
1406 !ENDIF
1407
1408 # End Source File
1409 # Begin Source File
1410
1411 SOURCE=.\ms.c
1412
1413 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1414
1415 DEP_CPP_MS_C34=\
1416 ".\analysis.h"\
1417 ".\bits.h"\
1418 ".\common.h"\
1419 ".\fixed.h"\
1420 ".\is.h"\
1421 ".\ms.h"\
1422 ".\pns.h"\
1423 ".\syntax.h"\
1424
1425
1426 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1427
1428 DEP_CPP_MS_C34=\
1429 ".\analysis.h"\
1430 ".\bits.h"\
1431 ".\common.h"\
1432 ".\fixed.h"\
1433 ".\is.h"\
1434 ".\ms.h"\
1435 ".\pns.h"\
1436 ".\syntax.h"\
1437
1438
1439 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1440
1441 DEP_CPP_MS_C34=\
1442 ".\analysis.h"\
1443 ".\bits.h"\
1444 ".\common.h"\
1445 ".\fixed.h"\
1446 ".\is.h"\
1447 ".\ms.h"\
1448 ".\pns.h"\
1449 ".\syntax.h"\
1450
1451
1452 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1453
1454 DEP_CPP_MS_C34=\
1455 ".\analysis.h"\
1456 ".\bits.h"\
1457 ".\common.h"\
1458 ".\fixed.h"\
1459 ".\is.h"\
1460 ".\ms.h"\
1461 ".\pns.h"\
1462 ".\syntax.h"\
1463
1464
1465 !ENDIF
1466
1467 # End Source File
1468 # Begin Source File
1469
1470 SOURCE=.\output.c
1471
1472 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1473
1474 DEP_CPP_OUTPU=\
1475 ".\analysis.h"\
1476 ".\bits.h"\
1477 ".\cfft.h"\
1478 ".\common.h"\
1479 ".\decoder.h"\
1480 ".\dither.h"\
1481 ".\filtbank.h"\
1482 ".\fixed.h"\
1483 ".\ic_predict.h"\
1484 ".\mdct.h"\
1485 ".\output.h"\
1486 ".\specrec.h"\
1487 ".\syntax.h"\
1488
1489
1490 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1491
1492 DEP_CPP_OUTPU=\
1493 ".\analysis.h"\
1494 ".\bits.h"\
1495 ".\cfft.h"\
1496 ".\common.h"\
1497 ".\decoder.h"\
1498 ".\dither.h"\
1499 ".\filtbank.h"\
1500 ".\fixed.h"\
1501 ".\ic_predict.h"\
1502 ".\mdct.h"\
1503 ".\output.h"\
1504 ".\specrec.h"\
1505 ".\syntax.h"\
1506
1507
1508 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1509
1510 DEP_CPP_OUTPU=\
1511 ".\analysis.h"\
1512 ".\bits.h"\
1513 ".\cfft.h"\
1514 ".\common.h"\
1515 ".\decoder.h"\
1516 ".\dither.h"\
1517 ".\filtbank.h"\
1518 ".\fixed.h"\
1519 ".\ic_predict.h"\
1520 ".\mdct.h"\
1521 ".\output.h"\
1522 ".\specrec.h"\
1523 ".\syntax.h"\
1524
1525
1526 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1527
1528 DEP_CPP_OUTPU=\
1529 ".\analysis.h"\
1530 ".\bits.h"\
1531 ".\cfft.h"\
1532 ".\common.h"\
1533 ".\decoder.h"\
1534 ".\dither.h"\
1535 ".\filtbank.h"\
1536 ".\fixed.h"\
1537 ".\ic_predict.h"\
1538 ".\mdct.h"\
1539 ".\output.h"\
1540 ".\specrec.h"\
1541 ".\syntax.h"\
1542
1543
1544 !ENDIF
1545
1546 # End Source File
1547 # Begin Source File
1548
1549 SOURCE=.\pns.c
1550
1551 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1552
1553 DEP_CPP_PNS_C=\
1554 ".\analysis.h"\
1555 ".\bits.h"\
1556 ".\common.h"\
1557 ".\fixed.h"\
1558 ".\pns.h"\
1559 ".\syntax.h"\
1560
1561
1562 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1563
1564 DEP_CPP_PNS_C=\
1565 ".\analysis.h"\
1566 ".\bits.h"\
1567 ".\common.h"\
1568 ".\fixed.h"\
1569 ".\pns.h"\
1570 ".\syntax.h"\
1571
1572
1573 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1574
1575 DEP_CPP_PNS_C=\
1576 ".\analysis.h"\
1577 ".\bits.h"\
1578 ".\common.h"\
1579 ".\fixed.h"\
1580 ".\pns.h"\
1581 ".\syntax.h"\
1582
1583
1584 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1585
1586 DEP_CPP_PNS_C=\
1587 ".\analysis.h"\
1588 ".\bits.h"\
1589 ".\common.h"\
1590 ".\fixed.h"\
1591 ".\pns.h"\
1592 ".\syntax.h"\
1593
1594
1595 !ENDIF
1596
1597 # End Source File
1598 # Begin Source File
1599
1600 SOURCE=.\pulse.c
1601
1602 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1603
1604 DEP_CPP_PULSE=\
1605 ".\analysis.h"\
1606 ".\bits.h"\
1607 ".\common.h"\
1608 ".\fixed.h"\
1609 ".\pulse.h"\
1610 ".\syntax.h"\
1611
1612
1613 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1614
1615 DEP_CPP_PULSE=\
1616 ".\analysis.h"\
1617 ".\bits.h"\
1618 ".\common.h"\
1619 ".\fixed.h"\
1620 ".\pulse.h"\
1621 ".\syntax.h"\
1622
1623
1624 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1625
1626 DEP_CPP_PULSE=\
1627 ".\analysis.h"\
1628 ".\bits.h"\
1629 ".\common.h"\
1630 ".\fixed.h"\
1631 ".\pulse.h"\
1632 ".\syntax.h"\
1633
1634
1635 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1636
1637 DEP_CPP_PULSE=\
1638 ".\analysis.h"\
1639 ".\bits.h"\
1640 ".\common.h"\
1641 ".\fixed.h"\
1642 ".\pulse.h"\
1643 ".\syntax.h"\
1644
1645
1646 !ENDIF
1647
1648 # End Source File
1649 # Begin Source File
1650
1651 SOURCE=.\reordered_spectral_data.c
1652
1653 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1654
1655 DEP_CPP_REORD=\
1656 ".\analysis.h"\
1657 ".\bits.h"\
1658 ".\codebook\hcb.h"\
1659 ".\common.h"\
1660 ".\data.h"\
1661 ".\fixed.h"\
1662 ".\pulse.h"\
1663 ".\specrec.h"\
1664 ".\syntax.h"\
1665
1666
1667 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1668
1669 DEP_CPP_REORD=\
1670 ".\analysis.h"\
1671 ".\bits.h"\
1672 ".\codebook\hcb.h"\
1673 ".\common.h"\
1674 ".\data.h"\
1675 ".\fixed.h"\
1676 ".\pulse.h"\
1677 ".\specrec.h"\
1678 ".\syntax.h"\
1679
1680
1681 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1682
1683 DEP_CPP_REORD=\
1684 ".\analysis.h"\
1685 ".\bits.h"\
1686 ".\codebook\hcb.h"\
1687 ".\common.h"\
1688 ".\data.h"\
1689 ".\fixed.h"\
1690 ".\pulse.h"\
1691 ".\specrec.h"\
1692 ".\syntax.h"\
1693
1694
1695 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1696
1697 DEP_CPP_REORD=\
1698 ".\analysis.h"\
1699 ".\bits.h"\
1700 ".\codebook\hcb.h"\
1701 ".\common.h"\
1702 ".\data.h"\
1703 ".\fixed.h"\
1704 ".\pulse.h"\
1705 ".\specrec.h"\
1706 ".\syntax.h"\
1707
1708
1709 !ENDIF
1710
1711 # End Source File
1712 # Begin Source File
1713
1714 SOURCE=.\rvlc_scale_factors.c
1715
1716 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1717
1718 DEP_CPP_RVLC_=\
1719 ".\analysis.h"\
1720 ".\bits.h"\
1721 ".\common.h"\
1722 ".\fixed.h"\
1723 ".\rvlc_scale_factors.h"\
1724 ".\syntax.h"\
1725
1726
1727 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1728
1729 DEP_CPP_RVLC_=\
1730 ".\analysis.h"\
1731 ".\bits.h"\
1732 ".\common.h"\
1733 ".\fixed.h"\
1734 ".\rvlc_scale_factors.h"\
1735 ".\syntax.h"\
1736
1737
1738 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1739
1740 DEP_CPP_RVLC_=\
1741 ".\analysis.h"\
1742 ".\bits.h"\
1743 ".\common.h"\
1744 ".\fixed.h"\
1745 ".\rvlc_scale_factors.h"\
1746 ".\syntax.h"\
1747
1748
1749 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1750
1751 DEP_CPP_RVLC_=\
1752 ".\analysis.h"\
1753 ".\bits.h"\
1754 ".\common.h"\
1755 ".\fixed.h"\
1756 ".\rvlc_scale_factors.h"\
1757 ".\syntax.h"\
1758
1759
1760 !ENDIF
1761
1762 # End Source File
1763 # Begin Source File
1764
1765 SOURCE=.\specrec.c
1766
1767 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1768
1769 DEP_CPP_SPECR=\
1770 ".\analysis.h"\
1771 ".\bits.h"\
1772 ".\common.h"\
1773 ".\data.h"\
1774 ".\fixed.h"\
1775 ".\iq_table.h"\
1776 ".\specrec.h"\
1777 ".\syntax.h"\
1778
1779
1780 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1781
1782 DEP_CPP_SPECR=\
1783 ".\analysis.h"\
1784 ".\bits.h"\
1785 ".\common.h"\
1786 ".\data.h"\
1787 ".\fixed.h"\
1788 ".\iq_table.h"\
1789 ".\specrec.h"\
1790 ".\syntax.h"\
1791
1792
1793 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1794
1795 DEP_CPP_SPECR=\
1796 ".\analysis.h"\
1797 ".\bits.h"\
1798 ".\common.h"\
1799 ".\data.h"\
1800 ".\fixed.h"\
1801 ".\iq_table.h"\
1802 ".\specrec.h"\
1803 ".\syntax.h"\
1804
1805
1806 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1807
1808 DEP_CPP_SPECR=\
1809 ".\analysis.h"\
1810 ".\bits.h"\
1811 ".\common.h"\
1812 ".\data.h"\
1813 ".\fixed.h"\
1814 ".\iq_table.h"\
1815 ".\specrec.h"\
1816 ".\syntax.h"\
1817
1818
1819 !ENDIF
1820
1821 # End Source File
1822 # Begin Source File
1823
1824 SOURCE=.\syntax.c
1825
1826 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1827
1828 DEP_CPP_SYNTA=\
1829 ".\analysis.h"\
1830 ".\bits.h"\
1831 ".\cfft.h"\
1832 ".\codebook\hcb.h"\
1833 ".\common.h"\
1834 ".\data.h"\
1835 ".\decoder.h"\
1836 ".\filtbank.h"\
1837 ".\fixed.h"\
1838 ".\huffman.h"\
1839 ".\ic_predict.h"\
1840 ".\mdct.h"\
1841 ".\pulse.h"\
1842 ".\rvlc_scale_factors.h"\
1843 ".\specrec.h"\
1844 ".\syntax.h"\
1845
1846
1847 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1848
1849 DEP_CPP_SYNTA=\
1850 ".\analysis.h"\
1851 ".\bits.h"\
1852 ".\cfft.h"\
1853 ".\codebook\hcb.h"\
1854 ".\common.h"\
1855 ".\data.h"\
1856 ".\decoder.h"\
1857 ".\filtbank.h"\
1858 ".\fixed.h"\
1859 ".\huffman.h"\
1860 ".\ic_predict.h"\
1861 ".\mdct.h"\
1862 ".\pulse.h"\
1863 ".\rvlc_scale_factors.h"\
1864 ".\specrec.h"\
1865 ".\syntax.h"\
1866
1867
1868 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1869
1870 DEP_CPP_SYNTA=\
1871 ".\analysis.h"\
1872 ".\bits.h"\
1873 ".\cfft.h"\
1874 ".\codebook\hcb.h"\
1875 ".\common.h"\
1876 ".\data.h"\
1877 ".\decoder.h"\
1878 ".\filtbank.h"\
1879 ".\fixed.h"\
1880 ".\huffman.h"\
1881 ".\ic_predict.h"\
1882 ".\mdct.h"\
1883 ".\pulse.h"\
1884 ".\rvlc_scale_factors.h"\
1885 ".\specrec.h"\
1886 ".\syntax.h"\
1887
1888
1889 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1890
1891 DEP_CPP_SYNTA=\
1892 ".\analysis.h"\
1893 ".\bits.h"\
1894 ".\cfft.h"\
1895 ".\codebook\hcb.h"\
1896 ".\common.h"\
1897 ".\data.h"\
1898 ".\decoder.h"\
1899 ".\filtbank.h"\
1900 ".\fixed.h"\
1901 ".\huffman.h"\
1902 ".\ic_predict.h"\
1903 ".\mdct.h"\
1904 ".\pulse.h"\
1905 ".\rvlc_scale_factors.h"\
1906 ".\specrec.h"\
1907 ".\syntax.h"\
1908
1909
1910 !ENDIF
1911
1912 # End Source File
1913 # Begin Source File
1914
1915 SOURCE=.\tns.c
1916
1917 !IF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Release"
1918
1919 DEP_CPP_TNS_C=\
1920 ".\analysis.h"\
1921 ".\bits.h"\
1922 ".\common.h"\
1923 ".\fixed.h"\
1924 ".\syntax.h"\
1925 ".\tns.h"\
1926
1927
1928 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE ARM) Debug"
1929
1930 DEP_CPP_TNS_C=\
1931 ".\analysis.h"\
1932 ".\bits.h"\
1933 ".\common.h"\
1934 ".\fixed.h"\
1935 ".\syntax.h"\
1936 ".\tns.h"\
1937
1938
1939 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Release"
1940
1941 DEP_CPP_TNS_C=\
1942 ".\analysis.h"\
1943 ".\bits.h"\
1944 ".\common.h"\
1945 ".\fixed.h"\
1946 ".\syntax.h"\
1947 ".\tns.h"\
1948
1949
1950 !ELSEIF "$(CFG)" == "libfaad2 - Win32 (WCE x86) Debug"
1951
1952 DEP_CPP_TNS_C=\
1953 ".\analysis.h"\
1954 ".\bits.h"\
1955 ".\common.h"\
1956 ".\fixed.h"\
1957 ".\syntax.h"\
1958 ".\tns.h"\
1959
1960
1961 !ENDIF
1962
1963 # End Source File
1964 # End Group
1965 # Begin Group "Header Files"
1966
1967 # PROP Default_Filter "h;hpp;hxx;hm;inl"
1968 # Begin Source File
1969
1970 SOURCE=.\analysis.h
1971 # End Source File
1972 # Begin Source File
1973
1974 SOURCE=.\bits.h
1975 # End Source File
1976 # Begin Source File
1977
1978 SOURCE=.\cfft.h
1979 # End Source File
1980 # Begin Source File
1981
1982 SOURCE=.\cfft_tab.h
1983 # End Source File
1984 # Begin Source File
1985
1986 SOURCE=.\common.h
1987 # End Source File
1988 # Begin Source File
1989
1990 SOURCE=.\data.h
1991 # End Source File
1992 # Begin Source File
1993
1994 SOURCE=.\decoder.h
1995 # End Source File
1996 # Begin Source File
1997
1998 SOURCE=.\dither.h
1999 # End Source File
2000 # Begin Source File
2001
2002 SOURCE=.\drc.h
2003 # End Source File
2004 # Begin Source File
2005
2006 SOURCE=.\error.h
2007 # End Source File
2008 # Begin Source File
2009
2010 SOURCE=.\filtbank.h
2011 # End Source File
2012 # Begin Source File
2013
2014 SOURCE=.\fixed.h
2015 # End Source File
2016 # Begin Source File
2017
2018 SOURCE=.\codebook\hcb.h
2019 # End Source File
2020 # Begin Source File
2021
2022 SOURCE=.\huffman.h
2023 # End Source File
2024 # Begin Source File
2025
2026 SOURCE=.\ic_predict.h
2027 # End Source File
2028 # Begin Source File
2029
2030 SOURCE=.\iq_table.h
2031 # End Source File
2032 # Begin Source File
2033
2034 SOURCE=.\is.h
2035 # End Source File
2036 # Begin Source File
2037
2038 SOURCE=.\kbd_win.h
2039 # End Source File
2040 # Begin Source File
2041
2042 SOURCE=.\lt_predict.h
2043 # End Source File
2044 # Begin Source File
2045
2046 SOURCE=.\mdct.h
2047 # End Source File
2048 # Begin Source File
2049
2050 SOURCE=.\mp4.h
2051 # End Source File
2052 # Begin Source File
2053
2054 SOURCE=.\ms.h
2055 # End Source File
2056 # Begin Source File
2057
2058 SOURCE=.\output.h
2059 # End Source File
2060 # Begin Source File
2061
2062 SOURCE=.\pns.h
2063 # End Source File
2064 # Begin Source File
2065
2066 SOURCE=.\pulse.h
2067 # End Source File
2068 # Begin Source File
2069
2070 SOURCE=.\rvlc_scale_factors.h
2071 # End Source File
2072 # Begin Source File
2073
2074 SOURCE=.\sine_win.h
2075 # End Source File
2076 # Begin Source File
2077
2078 SOURCE=.\specrec.h
2079 # End Source File
2080 # Begin Source File
2081
2082 SOURCE=.\syntax.h
2083 # End Source File
2084 # Begin Source File
2085
2086 SOURCE=.\tns.h
2087 # End Source File
2088 # End Group
2089 # End Target
2090 # End Project
+0
-29
libfaad/libfaad2.vcw less more
0 Microsoft eMbedded Visual Tools Workspace File, Format Version 3.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "libfaad2"=".\libfaad2.vcp" - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 }}}
14
15 ###############################################################################
16
17 Global:
18
19 Package=<5>
20 {{{
21 }}}
22
23 Package=<3>
24 {{{
25 }}}
26
27 ###############################################################################
28
+0
-359
libfaad/libfaad2_dll.dsp less more
0 # Microsoft Developer Studio Project File - Name="libfaad2_dll" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
5
6 CFG=libfaad2_dll - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "libfaad2_dll.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "libfaad2_dll.mak" CFG="libfaad2_dll - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "libfaad2_dll - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
20 !MESSAGE "libfaad2_dll - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=cl.exe
28 MTL=midl.exe
29 RSC=rc.exe
30
31 !IF "$(CFG)" == "libfaad2_dll - Win32 Release"
32
33 # PROP BASE Use_MFC 0
34 # PROP BASE Use_Debug_Libraries 0
35 # PROP BASE Output_Dir "libfaad2_dll___Win32_Release"
36 # PROP BASE Intermediate_Dir "libfaad2_dll___Win32_Release"
37 # PROP BASE Target_Dir ""
38 # PROP Use_MFC 0
39 # PROP Use_Debug_Libraries 0
40 # PROP Output_Dir "ReleaseDLL"
41 # PROP Intermediate_Dir "ReleaseDLL"
42 # PROP Ignore_Export_Lib 0
43 # PROP Target_Dir ""
44 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libfaad2_dll_EXPORTS" /YX /FD /c
45 # ADD CPP /nologo /MD /W3 /GX /O2 /I "fftw" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libfaad2_dll_EXPORTS" /YX /FD /c
46 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
47 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
48 # ADD BASE RSC /l 0x407 /d "NDEBUG"
49 # ADD RSC /l 0x407 /d "NDEBUG"
50 BSC32=bscmake.exe
51 # ADD BASE BSC32 /nologo
52 # ADD BSC32 /nologo
53 LINK32=link.exe
54 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /machine:I386
55 # ADD LINK32 /nologo /dll /machine:I386 /out:"ReleaseDLL/libfaad2.dll"
56
57 !ELSEIF "$(CFG)" == "libfaad2_dll - Win32 Debug"
58
59 # PROP BASE Use_MFC 0
60 # PROP BASE Use_Debug_Libraries 1
61 # PROP BASE Output_Dir "libfaad2_dll___Win32_Debug"
62 # PROP BASE Intermediate_Dir "libfaad2_dll___Win32_Debug"
63 # PROP BASE Target_Dir ""
64 # PROP Use_MFC 0
65 # PROP Use_Debug_Libraries 1
66 # PROP Output_Dir "DebugDLL"
67 # PROP Intermediate_Dir "DebugDLL"
68 # PROP Ignore_Export_Lib 0
69 # PROP Target_Dir ""
70 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libfaad2_dll_EXPORTS" /YX /FD /GZ /c
71 # ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "fftw" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "libfaad2_dll_EXPORTS" /YX /FD /GZ /c
72 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
73 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
74 # ADD BASE RSC /l 0x407 /d "_DEBUG"
75 # ADD RSC /l 0x407 /d "_DEBUG"
76 BSC32=bscmake.exe
77 # ADD BASE BSC32 /nologo
78 # ADD BSC32 /nologo
79 LINK32=link.exe
80 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /debug /machine:I386 /pdbtype:sept
81 # ADD LINK32 /nologo /dll /debug /machine:I386 /out:"DebugDLL/libfaad2.dll" /pdbtype:sept
82
83 !ENDIF
84
85 # Begin Target
86
87 # Name "libfaad2_dll - Win32 Release"
88 # Name "libfaad2_dll - Win32 Debug"
89 # Begin Group "Source Files"
90
91 # PROP Default_Filter ""
92 # Begin Source File
93
94 SOURCE=.\bits.c
95 # End Source File
96 # Begin Source File
97
98 SOURCE=.\cfft.c
99 # End Source File
100 # Begin Source File
101
102 SOURCE=.\common.c
103 # End Source File
104 # Begin Source File
105
106 SOURCE=.\decoder.c
107 # End Source File
108 # Begin Source File
109
110 SOURCE=.\drc.c
111 # End Source File
112 # Begin Source File
113
114 SOURCE=.\error.c
115 # End Source File
116 # Begin Source File
117
118 SOURCE=.\filtbank.c
119 # End Source File
120 # Begin Source File
121
122 SOURCE=.\hcr.c
123 # End Source File
124 # Begin Source File
125
126 SOURCE=.\huffman.c
127 # End Source File
128 # Begin Source File
129
130 SOURCE=.\ic_predict.c
131 # End Source File
132 # Begin Source File
133
134 SOURCE=.\is.c
135 # End Source File
136 # Begin Source File
137
138 SOURCE=.\lt_predict.c
139 # End Source File
140 # Begin Source File
141
142 SOURCE=.\mdct.c
143 # End Source File
144 # Begin Source File
145
146 SOURCE=.\mp4.c
147 # End Source File
148 # Begin Source File
149
150 SOURCE=.\ms.c
151 # End Source File
152 # Begin Source File
153
154 SOURCE=.\output.c
155 # End Source File
156 # Begin Source File
157
158 SOURCE=.\pns.c
159 # End Source File
160 # Begin Source File
161
162 SOURCE=.\ps_dec.c
163 # End Source File
164 # Begin Source File
165
166 SOURCE=.\ps_syntax.c
167 # End Source File
168 # Begin Source File
169
170 SOURCE=.\pulse.c
171 # End Source File
172 # Begin Source File
173
174 SOURCE=.\rvlc.c
175 # End Source File
176 # Begin Source File
177
178 SOURCE=.\sbr_dct.c
179 # End Source File
180 # Begin Source File
181
182 SOURCE=.\sbr_dec.c
183 # End Source File
184 # Begin Source File
185
186 SOURCE=.\sbr_e_nf.c
187 # End Source File
188 # Begin Source File
189
190 SOURCE=.\sbr_fbt.c
191 # End Source File
192 # Begin Source File
193
194 SOURCE=.\sbr_hfadj.c
195 # End Source File
196 # Begin Source File
197
198 SOURCE=.\sbr_hfgen.c
199 # End Source File
200 # Begin Source File
201
202 SOURCE=.\sbr_huff.c
203 # End Source File
204 # Begin Source File
205
206 SOURCE=.\sbr_qmf.c
207 # End Source File
208 # Begin Source File
209
210 SOURCE=.\sbr_syntax.c
211 # End Source File
212 # Begin Source File
213
214 SOURCE=.\sbr_tf_grid.c
215 # End Source File
216 # Begin Source File
217
218 SOURCE=.\specrec.c
219 # End Source File
220 # Begin Source File
221
222 SOURCE=.\ssr.c
223 # End Source File
224 # Begin Source File
225
226 SOURCE=.\ssr_fb.c
227 # End Source File
228 # Begin Source File
229
230 SOURCE=.\ssr_ipqf.c
231 # End Source File
232 # Begin Source File
233
234 SOURCE=.\syntax.c
235 # End Source File
236 # Begin Source File
237
238 SOURCE=.\tns.c
239 # End Source File
240 # End Group
241 # Begin Group "Header Files"
242
243 # PROP Default_Filter ""
244 # Begin Source File
245
246 SOURCE=.\analysis.h
247 # End Source File
248 # Begin Source File
249
250 SOURCE=.\bits.h
251 # End Source File
252 # Begin Source File
253
254 SOURCE=.\cfft.h
255 # End Source File
256 # Begin Source File
257
258 SOURCE=.\common.h
259 # End Source File
260 # Begin Source File
261
262 SOURCE=.\data.h
263 # End Source File
264 # Begin Source File
265
266 SOURCE=.\decoder.h
267 # End Source File
268 # Begin Source File
269
270 SOURCE=.\dither.h
271 # End Source File
272 # Begin Source File
273
274 SOURCE=.\drc.h
275 # End Source File
276 # Begin Source File
277
278 SOURCE=.\error.h
279 # End Source File
280 # Begin Source File
281
282 SOURCE=.\filtbank.h
283 # End Source File
284 # Begin Source File
285
286 SOURCE=.\codebook\hcb.h
287 # End Source File
288 # Begin Source File
289
290 SOURCE=.\huffman.h
291 # End Source File
292 # Begin Source File
293
294 SOURCE=.\ic_predict.h
295 # End Source File
296 # Begin Source File
297
298 SOURCE=.\is.h
299 # End Source File
300 # Begin Source File
301
302 SOURCE=.\kbd_win.h
303 # End Source File
304 # Begin Source File
305
306 SOURCE=.\lt_predict.h
307 # End Source File
308 # Begin Source File
309
310 SOURCE=.\mdct.h
311 # End Source File
312 # Begin Source File
313
314 SOURCE=.\mp4.h
315 # End Source File
316 # Begin Source File
317
318 SOURCE=.\ms.h
319 # End Source File
320 # Begin Source File
321
322 SOURCE=.\output.h
323 # End Source File
324 # Begin Source File
325
326 SOURCE=.\pns.h
327 # End Source File
328 # Begin Source File
329
330 SOURCE=.\pulse.h
331 # End Source File
332 # Begin Source File
333
334 SOURCE=.\rvlc.h
335 # End Source File
336 # Begin Source File
337
338 SOURCE=.\specrec.h
339 # End Source File
340 # Begin Source File
341
342 SOURCE=.\ssr.h
343 # End Source File
344 # Begin Source File
345
346 SOURCE=.\syntax.h
347 # End Source File
348 # Begin Source File
349
350 SOURCE=.\Tns.h
351 # End Source File
352 # End Group
353 # Begin Source File
354
355 SOURCE=.\libfaad2.def
356 # End Source File
357 # End Target
358 # End Project
+0
-29
libfaad/libfaad2_dll.dsw less more
0 Microsoft Developer Studio Workspace File, Format Version 6.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "libfaad2_dll"=.\libfaad2_dll.dsp - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 }}}
14
15 ###############################################################################
16
17 Global:
18
19 Package=<5>
20 {{{
21 }}}
22
23 Package=<3>
24 {{{
25 }}}
26
27 ###############################################################################
28
0 Microsoft Visual Studio Solution File, Format Version 7.00
0 Microsoft Visual Studio Solution File, Format Version 9.00
1 # Visual C++ Express 2005
12 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfaad2_dll", "libfaad2_dll.vcproj", "{482DA264-EE88-4575-B208-87C4CB80CD08}"
23 EndProject
34 Global
4 GlobalSection(SolutionConfiguration) = preSolution
5 ConfigName.0 = Debug
6 ConfigName.1 = Release
5 GlobalSection(SolutionConfigurationPlatforms) = preSolution
6 Debug|Win32 = Debug|Win32
7 Release|Win32 = Release|Win32
78 EndGlobalSection
8 GlobalSection(ProjectDependencies) = postSolution
9 GlobalSection(ProjectConfigurationPlatforms) = postSolution
10 {482DA264-EE88-4575-B208-87C4CB80CD08}.Debug|Win32.ActiveCfg = Debug|Win32
11 {482DA264-EE88-4575-B208-87C4CB80CD08}.Debug|Win32.Build.0 = Debug|Win32
12 {482DA264-EE88-4575-B208-87C4CB80CD08}.Release|Win32.ActiveCfg = Release|Win32
13 {482DA264-EE88-4575-B208-87C4CB80CD08}.Release|Win32.Build.0 = Release|Win32
914 EndGlobalSection
10 GlobalSection(ProjectConfiguration) = postSolution
11 {482DA264-EE88-4575-B208-87C4CB80CD08}.Debug.ActiveCfg = Debug|Win32
12 {482DA264-EE88-4575-B208-87C4CB80CD08}.Debug.Build.0 = Debug|Win32
13 {482DA264-EE88-4575-B208-87C4CB80CD08}.Release.ActiveCfg = Release|Win32
14 {482DA264-EE88-4575-B208-87C4CB80CD08}.Release.Build.0 = Release|Win32
15 EndGlobalSection
16 GlobalSection(ExtensibilityGlobals) = postSolution
17 EndGlobalSection
18 GlobalSection(ExtensibilityAddIns) = postSolution
15 GlobalSection(SolutionProperties) = preSolution
16 HideSolutionNode = FALSE
1917 EndGlobalSection
2018 EndGlobal
0 <?xml version="1.0" encoding = "Windows-1252"?>
0 <?xml version="1.0" encoding="Windows-1252"?>
11 <VisualStudioProject
22 ProjectType="Visual C++"
3 Version="7.00"
3 Version="8,00"
44 Name="libfaad2_dll"
5 SccProjectName=""
6 SccLocalPath="">
5 ProjectGUID="{482DA264-EE88-4575-B208-87C4CB80CD08}"
6 >
77 <Platforms>
88 <Platform
9 Name="Win32"/>
9 Name="Win32"
10 />
1011 </Platforms>
12 <ToolFiles>
13 </ToolFiles>
1114 <Configurations>
1215 <Configuration
1316 Name="Debug|Win32"
1417 OutputDirectory=".\DebugDLL"
1518 IntermediateDirectory=".\DebugDLL"
1619 ConfigurationType="2"
20 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
1721 UseOfMFC="0"
18 ATLMinimizesCRunTimeLibraryUsage="FALSE"
19 CharacterSet="2">
22 ATLMinimizesCRunTimeLibraryUsage="false"
23 CharacterSet="2"
24 >
25 <Tool
26 Name="VCPreBuildEventTool"
27 />
28 <Tool
29 Name="VCCustomBuildTool"
30 />
31 <Tool
32 Name="VCXMLDataGeneratorTool"
33 />
34 <Tool
35 Name="VCWebServiceProxyGeneratorTool"
36 />
37 <Tool
38 Name="VCMIDLTool"
39 PreprocessorDefinitions="_DEBUG"
40 MkTypLibCompatible="true"
41 SuppressStartupBanner="true"
42 TargetEnvironment="1"
43 TypeLibraryName=".\DebugDLL/libfaad2_dll.tlb"
44 />
2045 <Tool
2146 Name="VCCLCompilerTool"
47 AdditionalOptions=""
2248 Optimization="0"
2349 AdditionalIncludeDirectories="fftw"
2450 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS;_USRDLL;libfaad2_dll_EXPORTS"
2551 BasicRuntimeChecks="3"
2652 RuntimeLibrary="3"
27 UsePrecompiledHeader="2"
53 UsePrecompiledHeader="0"
2854 PrecompiledHeaderFile=".\DebugDLL/libfaad2_dll.pch"
2955 AssemblerListingLocation=".\DebugDLL/"
3056 ObjectFile=".\DebugDLL/"
3157 ProgramDataBaseFileName=".\DebugDLL/"
3258 WarningLevel="3"
33 SuppressStartupBanner="TRUE"
59 SuppressStartupBanner="true"
3460 DebugInformationFormat="4"
3561 CompileAs="0"
36 AdditionalOptions="">
37 <IntelOptions
38 Optimization="0"
39 MinimalRebuild="1"
40 BasicRuntimeChecks="3"
41 RuntimeLibrary="3"
42 AllOptions="/c /I &quot;fftw&quot; /ZI /nologo /W3 /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_WINDOWS&quot; /D &quot;_USRDLL&quot; /D &quot;libfaad2_dll_EXPORTS&quot; /D &quot;_WINDLL&quot; /D &quot;_MBCS&quot; /Gm /EHsc /RTC1 /MDd /YX&quot;StdAfx.h&quot; /Fp&quot;.\DebugDLL/libfaad2_dll.pch&quot; /Fo&quot;.\DebugDLL/&quot; /Fd&quot;.\DebugDLL/&quot; /Gd"
43 MSOriginalAdditionalOptions=""/>
44 </Tool>
45 <Tool
46 Name="VCCustomBuildTool"/>
62 />
63 <Tool
64 Name="VCManagedResourceCompilerTool"
65 />
66 <Tool
67 Name="VCResourceCompilerTool"
68 PreprocessorDefinitions="_DEBUG"
69 Culture="1031"
70 />
71 <Tool
72 Name="VCPreLinkEventTool"
73 />
4774 <Tool
4875 Name="VCLinkerTool"
4976 AdditionalOptions="/MACHINE:I386"
5077 AdditionalDependencies="odbc32.lib odbccp32.lib"
5178 OutputFile="DebugDLL/libfaad2.dll"
5279 LinkIncremental="2"
53 SuppressStartupBanner="TRUE"
80 SuppressStartupBanner="true"
5481 ModuleDefinitionFile=".\libfaad2.def"
55 GenerateDebugInformation="TRUE"
82 GenerateDebugInformation="true"
5683 ProgramDatabaseFile=".\DebugDLL/libfaad2.pdb"
57 ImportLibrary=".\DebugDLL/libfaad2.lib">
58 <IntelOptions
59 AllOptions="/NOLOGO /DLL /OUT:&quot;DebugDLL/libfaad2.dll&quot; /INCREMENTAL odbc32.lib odbccp32.lib /DEF:&quot;.\libfaad2.def&quot; /DEBUG /PDB:&quot;.\DebugDLL/libfaad2.pdb&quot; /TLBID:1 /IMPLIB:&quot;.\DebugDLL/libfaad2.lib&quot; /MACHINE:I386 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"
60 MSOriginalAdditionalOptions="/MACHINE:I386"/>
61 </Tool>
62 <Tool
63 Name="VCMIDLTool"
64 PreprocessorDefinitions="_DEBUG"
65 MkTypLibCompatible="TRUE"
66 SuppressStartupBanner="TRUE"
67 TargetEnvironment="1"
68 TypeLibraryName=".\DebugDLL/libfaad2_dll.tlb"/>
69 <Tool
70 Name="VCPostBuildEventTool"/>
71 <Tool
72 Name="VCPreBuildEventTool"/>
73 <Tool
74 Name="VCPreLinkEventTool"/>
75 <Tool
76 Name="VCResourceCompilerTool"
77 PreprocessorDefinitions="_DEBUG"
78 Culture="1031"/>
79 <Tool
80 Name="VCWebServiceProxyGeneratorTool"/>
81 <Tool
82 Name="VCWebDeploymentTool"/>
84 ImportLibrary=".\DebugDLL/libfaad2.lib"
85 />
86 <Tool
87 Name="VCALinkTool"
88 />
89 <Tool
90 Name="VCManifestTool"
91 />
92 <Tool
93 Name="VCXDCMakeTool"
94 />
95 <Tool
96 Name="VCBscMakeTool"
97 />
98 <Tool
99 Name="VCFxCopTool"
100 />
101 <Tool
102 Name="VCAppVerifierTool"
103 />
104 <Tool
105 Name="VCWebDeploymentTool"
106 />
107 <Tool
108 Name="VCPostBuildEventTool"
109 />
83110 </Configuration>
84111 <Configuration
85112 Name="Release|Win32"
86113 OutputDirectory=".\ReleaseDLL"
87114 IntermediateDirectory=".\ReleaseDLL"
88115 ConfigurationType="2"
116 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC70.vsprops"
89117 UseOfMFC="0"
90 ATLMinimizesCRunTimeLibraryUsage="FALSE"
91 CharacterSet="2">
118 ATLMinimizesCRunTimeLibraryUsage="false"
119 CharacterSet="2"
120 >
121 <Tool
122 Name="VCPreBuildEventTool"
123 />
124 <Tool
125 Name="VCCustomBuildTool"
126 />
127 <Tool
128 Name="VCXMLDataGeneratorTool"
129 />
130 <Tool
131 Name="VCWebServiceProxyGeneratorTool"
132 />
133 <Tool
134 Name="VCMIDLTool"
135 PreprocessorDefinitions="NDEBUG"
136 MkTypLibCompatible="true"
137 SuppressStartupBanner="true"
138 TargetEnvironment="1"
139 TypeLibraryName=".\ReleaseDLL/libfaad2_dll.tlb"
140 />
92141 <Tool
93142 Name="VCCLCompilerTool"
94 GlobalOptimizations="TRUE"
143 AdditionalOptions=""
95144 InlineFunctionExpansion="1"
96 EnableIntrinsicFunctions="TRUE"
145 EnableIntrinsicFunctions="true"
97146 FavorSizeOrSpeed="1"
98 OptimizeForProcessor="2"
99147 AdditionalIncludeDirectories=""
100148 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_USRDLL;libfaad2_dll_EXPORTS"
101 StringPooling="TRUE"
149 StringPooling="true"
102150 RuntimeLibrary="2"
103 EnableFunctionLevelLinking="TRUE"
104 UsePrecompiledHeader="2"
151 EnableFunctionLevelLinking="true"
152 UsePrecompiledHeader="0"
105153 PrecompiledHeaderFile=".\ReleaseDLL/libfaad2_dll.pch"
106154 AssemblerListingLocation=".\ReleaseDLL/"
107155 ObjectFile=".\ReleaseDLL/"
108156 ProgramDataBaseFileName=".\ReleaseDLL/"
109157 WarningLevel="3"
110 SuppressStartupBanner="TRUE"
158 SuppressStartupBanner="true"
111159 CompileAs="0"
112 AdditionalOptions="">
113 <IntelOptions
114 Optimization="2"
115 GlobalOptimizations="1"
116 InlineFuncExpansion="1"
117 OmitFramePtrs="1"
118 StringPooling="1"
119 RuntimeLibrary="2"
120 BufferSecurityCheck="1"
121 FunctionLevelLinking="1"
122 AllOptions="/c /nologo /W3 /O2 /Og /Ob1 /Oy /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_WINDOWS&quot; /D &quot;_USRDLL&quot; /D &quot;libfaad2_dll_EXPORTS&quot; /D &quot;_WINDLL&quot; /D &quot;_MBCS&quot; /GF /FD /EHsc /MD /GS /Gy /YX&quot;StdAfx.h&quot; /Fp&quot;.\ReleaseDLL/libfaad2_dll.pch&quot; /Fo&quot;.\ReleaseDLL/&quot; /Fd&quot;.\ReleaseDLL/&quot; /Gd"
123 MSOriginalAdditionalOptions=""/>
124 </Tool>
125 <Tool
126 Name="VCCustomBuildTool"/>
160 />
161 <Tool
162 Name="VCManagedResourceCompilerTool"
163 />
164 <Tool
165 Name="VCResourceCompilerTool"
166 PreprocessorDefinitions="NDEBUG"
167 Culture="1031"
168 />
169 <Tool
170 Name="VCPreLinkEventTool"
171 />
127172 <Tool
128173 Name="VCLinkerTool"
129174 AdditionalOptions="/MACHINE:I386"
130175 OutputFile="ReleaseDLL/libfaad2.dll"
131176 LinkIncremental="1"
132 SuppressStartupBanner="TRUE"
177 SuppressStartupBanner="true"
133178 ModuleDefinitionFile=".\libfaad2.def"
134179 ProgramDatabaseFile=".\ReleaseDLL/libfaad2.pdb"
135 ImportLibrary=".\ReleaseDLL/libfaad2.lib">
136 <IntelOptions
137 AllOptions="/NOLOGO /DLL /OUT:&quot;ReleaseDLL/libfaad2.dll&quot; /INCREMENTAL:NO /DEF:&quot;.\libfaad2.def&quot; /PDB:&quot;.\ReleaseDLL/libfaad2.pdb&quot; /TLBID:1 /IMPLIB:&quot;.\ReleaseDLL/libfaad2.lib&quot; /MACHINE:I386 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"
138 MSOriginalAdditionalOptions="/MACHINE:I386"/>
139 </Tool>
140 <Tool
141 Name="VCMIDLTool"
142 PreprocessorDefinitions="NDEBUG"
143 MkTypLibCompatible="TRUE"
144 SuppressStartupBanner="TRUE"
145 TargetEnvironment="1"
146 TypeLibraryName=".\ReleaseDLL/libfaad2_dll.tlb"/>
147 <Tool
148 Name="VCPostBuildEventTool"/>
149 <Tool
150 Name="VCPreBuildEventTool"/>
151 <Tool
152 Name="VCPreLinkEventTool"/>
153 <Tool
154 Name="VCResourceCompilerTool"
155 PreprocessorDefinitions="NDEBUG"
156 Culture="1031"/>
157 <Tool
158 Name="VCWebServiceProxyGeneratorTool"/>
159 <Tool
160 Name="VCWebDeploymentTool"/>
180 ImportLibrary=".\ReleaseDLL/libfaad2.lib"
181 />
182 <Tool
183 Name="VCALinkTool"
184 />
185 <Tool
186 Name="VCManifestTool"
187 />
188 <Tool
189 Name="VCXDCMakeTool"
190 />
191 <Tool
192 Name="VCBscMakeTool"
193 />
194 <Tool
195 Name="VCFxCopTool"
196 />
197 <Tool
198 Name="VCAppVerifierTool"
199 />
200 <Tool
201 Name="VCWebDeploymentTool"
202 />
203 <Tool
204 Name="VCPostBuildEventTool"
205 />
161206 </Configuration>
162207 </Configurations>
208 <References>
209 </References>
163210 <Files>
164211 <Filter
165212 Name="Source Files"
166 Filter="">
167 <File
168 RelativePath=".\bits.c"/>
169 <File
170 RelativePath=".\cfft.c"/>
171 <File
172 RelativePath="common.c"/>
173 <File
174 RelativePath=".\data.c"/>
175 <File
176 RelativePath=".\decoder.c"/>
177 <File
178 RelativePath="dither.c"/>
179 <File
180 RelativePath=".\drc.c"/>
181 <File
182 RelativePath=".\error.c"/>
183 <File
184 RelativePath=".\filtbank.c"/>
185 <File
186 RelativePath="hcr.c"/>
187 <File
188 RelativePath=".\ic_predict.c"/>
189 <File
190 RelativePath=".\is.c"/>
191 <File
192 RelativePath=".\lt_predict.c"/>
193 <File
194 RelativePath=".\mdct.c"/>
195 <File
196 RelativePath=".\mp4.c"/>
197 <File
198 RelativePath=".\ms.c"/>
199 <File
200 RelativePath=".\output.c"/>
201 <File
202 RelativePath=".\pns.c"/>
203 <File
204 RelativePath=".\pulse.c"/>
205 <File
206 RelativePath="rvlc.c"/>
207 <File
208 RelativePath=".\specrec.c"/>
209 <File
210 RelativePath="ssr.c"/>
211 <File
212 RelativePath=".\syntax.c"/>
213 <File
214 RelativePath=".\tns.c"/>
215 <Filter
216 Name="codebook"
217 Filter="">
218 <File
219 RelativePath=".\codebook\hcb_1.c"/>
220 <File
221 RelativePath=".\codebook\hcb_10.c"/>
222 <File
223 RelativePath=".\codebook\hcb_11.c"/>
224 <File
225 RelativePath=".\codebook\hcb_2.c"/>
226 <File
227 RelativePath=".\codebook\hcb_3.c"/>
228 <File
229 RelativePath=".\codebook\hcb_4.c"/>
230 <File
231 RelativePath=".\codebook\hcb_5.c"/>
232 <File
233 RelativePath=".\codebook\hcb_6.c"/>
234 <File
235 RelativePath=".\codebook\hcb_7.c"/>
236 <File
237 RelativePath=".\codebook\hcb_8.c"/>
238 <File
239 RelativePath=".\codebook\hcb_9.c"/>
240 <File
241 RelativePath=".\codebook\hcb_sf.c"/>
242 </Filter>
213 >
214 <File
215 RelativePath=".\bits.c"
216 >
217 </File>
218 <File
219 RelativePath=".\cfft.c"
220 >
221 </File>
222 <File
223 RelativePath="common.c"
224 >
225 </File>
226 <File
227 RelativePath=".\decoder.c"
228 >
229 </File>
230 <File
231 RelativePath=".\drc.c"
232 >
233 </File>
234 <File
235 RelativePath=".\drm_dec.c"
236 >
237 </File>
238 <File
239 RelativePath=".\error.c"
240 >
241 </File>
242 <File
243 RelativePath=".\filtbank.c"
244 >
245 </File>
246 <File
247 RelativePath="hcr.c"
248 >
249 </File>
250 <File
251 RelativePath=".\huffman.c"
252 >
253 </File>
254 <File
255 RelativePath=".\ic_predict.c"
256 >
257 </File>
258 <File
259 RelativePath=".\is.c"
260 >
261 </File>
262 <File
263 RelativePath=".\lt_predict.c"
264 >
265 </File>
266 <File
267 RelativePath=".\mdct.c"
268 >
269 </File>
270 <File
271 RelativePath=".\mp4.c"
272 >
273 </File>
274 <File
275 RelativePath=".\ms.c"
276 >
277 </File>
278 <File
279 RelativePath=".\output.c"
280 >
281 </File>
282 <File
283 RelativePath=".\pns.c"
284 >
285 </File>
286 <File
287 RelativePath=".\ps_dec.c"
288 >
289 </File>
290 <File
291 RelativePath=".\ps_syntax.c"
292 >
293 </File>
294 <File
295 RelativePath=".\pulse.c"
296 >
297 </File>
298 <File
299 RelativePath="rvlc.c"
300 >
301 </File>
302 <File
303 RelativePath=".\sbr_dct.c"
304 >
305 </File>
306 <File
307 RelativePath=".\sbr_dec.c"
308 >
309 </File>
310 <File
311 RelativePath=".\sbr_e_nf.c"
312 >
313 </File>
314 <File
315 RelativePath=".\sbr_fbt.c"
316 >
317 </File>
318 <File
319 RelativePath=".\sbr_hfadj.c"
320 >
321 </File>
322 <File
323 RelativePath=".\sbr_hfgen.c"
324 >
325 </File>
326 <File
327 RelativePath=".\sbr_huff.c"
328 >
329 </File>
330 <File
331 RelativePath=".\sbr_qmf.c"
332 >
333 </File>
334 <File
335 RelativePath=".\sbr_syntax.c"
336 >
337 </File>
338 <File
339 RelativePath=".\sbr_tf_grid.c"
340 >
341 </File>
342 <File
343 RelativePath=".\specrec.c"
344 >
345 </File>
346 <File
347 RelativePath="ssr.c"
348 >
349 </File>
350 <File
351 RelativePath=".\ssr_fb.c"
352 >
353 </File>
354 <File
355 RelativePath=".\ssr_ipqf.c"
356 >
357 </File>
358 <File
359 RelativePath=".\syntax.c"
360 >
361 </File>
362 <File
363 RelativePath=".\tns.c"
364 >
365 </File>
243366 </Filter>
244367 <Filter
245368 Name="Header Files"
246 Filter="">
247 <File
248 RelativePath=".\Tns.h"/>
249 <File
250 RelativePath=".\analysis.h"/>
251 <File
252 RelativePath=".\bits.h"/>
253 <File
254 RelativePath=".\cfft.h"/>
255 <File
256 RelativePath=".\common.h"/>
257 <File
258 RelativePath=".\data.h"/>
259 <File
260 RelativePath=".\decoder.h"/>
261 <File
262 RelativePath="dither.h"/>
263 <File
264 RelativePath=".\drc.h"/>
265 <File
266 RelativePath=".\error.h"/>
267 <File
268 RelativePath=".\filtbank.h"/>
269 <File
270 RelativePath=".\codebook\hcb.h"/>
271 <File
272 RelativePath=".\huffman.h"/>
273 <File
274 RelativePath=".\ic_predict.h"/>
275 <File
276 RelativePath=".\is.h"/>
277 <File
278 RelativePath=".\kbd_win.h"/>
279 <File
280 RelativePath=".\lt_predict.h"/>
281 <File
282 RelativePath=".\mdct.h"/>
283 <File
284 RelativePath=".\mp4.h"/>
285 <File
286 RelativePath=".\ms.h"/>
287 <File
288 RelativePath=".\output.h"/>
289 <File
290 RelativePath=".\pns.h"/>
291 <File
292 RelativePath=".\pulse.h"/>
293 <File
294 RelativePath="rvlc.h"/>
295 <File
296 RelativePath=".\specrec.h"/>
297 <File
298 RelativePath="ssr.h"/>
299 <File
300 RelativePath=".\syntax.h"/>
369 >
370 <File
371 RelativePath=".\analysis.h"
372 >
373 </File>
374 <File
375 RelativePath=".\bits.h"
376 >
377 </File>
378 <File
379 RelativePath=".\cfft.h"
380 >
381 </File>
382 <File
383 RelativePath=".\common.h"
384 >
385 </File>
386 <File
387 RelativePath=".\data.h"
388 >
389 </File>
390 <File
391 RelativePath=".\decoder.h"
392 >
393 </File>
394 <File
395 RelativePath="dither.h"
396 >
397 </File>
398 <File
399 RelativePath=".\drc.h"
400 >
401 </File>
402 <File
403 RelativePath=".\error.h"
404 >
405 </File>
406 <File
407 RelativePath=".\filtbank.h"
408 >
409 </File>
410 <File
411 RelativePath=".\codebook\hcb.h"
412 >
413 </File>
414 <File
415 RelativePath=".\huffman.h"
416 >
417 </File>
418 <File
419 RelativePath=".\ic_predict.h"
420 >
421 </File>
422 <File
423 RelativePath=".\is.h"
424 >
425 </File>
426 <File
427 RelativePath=".\kbd_win.h"
428 >
429 </File>
430 <File
431 RelativePath=".\lt_predict.h"
432 >
433 </File>
434 <File
435 RelativePath=".\mdct.h"
436 >
437 </File>
438 <File
439 RelativePath=".\mp4.h"
440 >
441 </File>
442 <File
443 RelativePath=".\ms.h"
444 >
445 </File>
446 <File
447 RelativePath=".\output.h"
448 >
449 </File>
450 <File
451 RelativePath=".\pns.h"
452 >
453 </File>
454 <File
455 RelativePath=".\pulse.h"
456 >
457 </File>
458 <File
459 RelativePath="rvlc.h"
460 >
461 </File>
462 <File
463 RelativePath=".\specrec.h"
464 >
465 </File>
466 <File
467 RelativePath="ssr.h"
468 >
469 </File>
470 <File
471 RelativePath=".\syntax.h"
472 >
473 </File>
474 <File
475 RelativePath=".\Tns.h"
476 >
477 </File>
301478 </Filter>
302479 <File
303 RelativePath=".\libfaad2.def"/>
480 RelativePath=".\libfaad2.def"
481 >
482 </File>
304483 </Files>
305 <Globals/>
484 <Globals>
485 </Globals>
306486 </VisualStudioProject>
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: mp4.c,v 1.38 2007/11/01 12:33:32 menno Exp $
27 ** $Id: mp4.c,v 1.40 2009/02/06 03:39:58 menno Exp $
2828 **/
2929
3030 #include "common.h"
113113 };
114114
115115 /* Table 1.6.1 */
116 int8_t NEAACDECAPI NeAACDecAudioSpecificConfig(uint8_t *pBuffer,
117 uint32_t buffer_size,
118 mp4AudioSpecificConfig *mp4ASC)
116 char NEAACDECAPI NeAACDecAudioSpecificConfig(unsigned char *pBuffer,
117 unsigned long buffer_size,
118 mp4AudioSpecificConfig *mp4ASC)
119119 {
120 return AudioSpecificConfig2(pBuffer, buffer_size, mp4ASC, NULL);
120 return AudioSpecificConfig2(pBuffer, buffer_size, mp4ASC, NULL, 0);
121121 }
122122
123 int8_t AudioSpecificConfig2(uint8_t *pBuffer,
124 uint32_t buffer_size,
123 int8_t AudioSpecificConfigFromBitfile(bitfile *ld,
125124 mp4AudioSpecificConfig *mp4ASC,
126 program_config *pce)
125 program_config *pce, uint32_t buffer_size, uint8_t short_form)
127126 {
128 bitfile ld;
129127 int8_t result = 0;
128 uint32_t startpos = faad_get_processed_bits(ld);
130129 #ifdef SBR_DEC
131130 int8_t bits_to_decode = 0;
132131 #endif
133132
134 if (pBuffer == NULL)
135 return -7;
136133 if (mp4ASC == NULL)
137134 return -8;
138135
139136 memset(mp4ASC, 0, sizeof(mp4AudioSpecificConfig));
140137
141 faad_initbits(&ld, pBuffer, buffer_size);
142 faad_byte_align(&ld);
143
144 mp4ASC->objectTypeIndex = (uint8_t)faad_getbits(&ld, 5
138 mp4ASC->objectTypeIndex = (uint8_t)faad_getbits(ld, 5
145139 DEBUGVAR(1,1,"parse_audio_decoder_specific_info(): ObjectTypeIndex"));
146140
147 mp4ASC->samplingFrequencyIndex = (uint8_t)faad_getbits(&ld, 4
141 mp4ASC->samplingFrequencyIndex = (uint8_t)faad_getbits(ld, 4
148142 DEBUGVAR(1,2,"parse_audio_decoder_specific_info(): SamplingFrequencyIndex"));
149
150 mp4ASC->channelsConfiguration = (uint8_t)faad_getbits(&ld, 4
143 if(mp4ASC->samplingFrequencyIndex==0x0f)
144 faad_getbits(ld, 24);
145
146 mp4ASC->channelsConfiguration = (uint8_t)faad_getbits(ld, 4
151147 DEBUGVAR(1,3,"parse_audio_decoder_specific_info(): ChannelsConfiguration"));
152148
153149 mp4ASC->samplingFrequency = get_sample_rate(mp4ASC->samplingFrequencyIndex);
154150
155151 if (ObjectTypesTable[mp4ASC->objectTypeIndex] != 1)
156152 {
157 faad_endbits(&ld);
158153 return -1;
159154 }
160155
161156 if (mp4ASC->samplingFrequency == 0)
162157 {
163 faad_endbits(&ld);
164158 return -2;
165159 }
166160
167161 if (mp4ASC->channelsConfiguration > 7)
168162 {
169 faad_endbits(&ld);
170163 return -3;
171164 }
172165
186179 uint8_t tmp;
187180
188181 mp4ASC->sbr_present_flag = 1;
189 tmp = (uint8_t)faad_getbits(&ld, 4
182 tmp = (uint8_t)faad_getbits(ld, 4
190183 DEBUGVAR(1,5,"parse_audio_decoder_specific_info(): extensionSamplingFrequencyIndex"));
191184 /* check for downsampled SBR */
192185 if (tmp == mp4ASC->samplingFrequencyIndex)
194187 mp4ASC->samplingFrequencyIndex = tmp;
195188 if (mp4ASC->samplingFrequencyIndex == 15)
196189 {
197 mp4ASC->samplingFrequency = (uint32_t)faad_getbits(&ld, 24
190 mp4ASC->samplingFrequency = (uint32_t)faad_getbits(ld, 24
198191 DEBUGVAR(1,6,"parse_audio_decoder_specific_info(): extensionSamplingFrequencyIndex"));
199192 } else {
200193 mp4ASC->samplingFrequency = get_sample_rate(mp4ASC->samplingFrequencyIndex);
201194 }
202 mp4ASC->objectTypeIndex = (uint8_t)faad_getbits(&ld, 5
195 mp4ASC->objectTypeIndex = (uint8_t)faad_getbits(ld, 5
203196 DEBUGVAR(1,7,"parse_audio_decoder_specific_info(): ObjectTypeIndex"));
204197 }
205198 #endif
209202 mp4ASC->objectTypeIndex == 3 || mp4ASC->objectTypeIndex == 4 ||
210203 mp4ASC->objectTypeIndex == 6 || mp4ASC->objectTypeIndex == 7)
211204 {
212 result = GASpecificConfig(&ld, mp4ASC, pce);
205 result = GASpecificConfig(ld, mp4ASC, pce);
213206
214207 #ifdef ERROR_RESILIENCE
215208 } else if (mp4ASC->objectTypeIndex >= ER_OBJECT_START) { /* ER */
216 result = GASpecificConfig(&ld, mp4ASC, pce);
217 mp4ASC->epConfig = (uint8_t)faad_getbits(&ld, 2
209 result = GASpecificConfig(ld, mp4ASC, pce);
210 mp4ASC->epConfig = (uint8_t)faad_getbits(ld, 2
218211 DEBUGVAR(1,143,"parse_audio_decoder_specific_info(): epConfig"));
219212
220213 if (mp4ASC->epConfig != 0)
233226
234227
235228 #ifdef SBR_DEC
236 bits_to_decode = (int8_t)(buffer_size*8 - faad_get_processed_bits(&ld));
229 if(short_form)
230 bits_to_decode = 0;
231 else
232 bits_to_decode = (int8_t)(buffer_size*8 - (startpos-faad_get_processed_bits(ld)));
237233
238234 if ((mp4ASC->objectTypeIndex != 5) && (bits_to_decode >= 16))
239235 {
240 int16_t syncExtensionType = (int16_t)faad_getbits(&ld, 11
236 int16_t syncExtensionType = (int16_t)faad_getbits(ld, 11
241237 DEBUGVAR(1,9,"parse_audio_decoder_specific_info(): syncExtensionType"));
242238
243239 if (syncExtensionType == 0x2b7)
244240 {
245 uint8_t tmp_OTi = (uint8_t)faad_getbits(&ld, 5
241 uint8_t tmp_OTi = (uint8_t)faad_getbits(ld, 5
246242 DEBUGVAR(1,10,"parse_audio_decoder_specific_info(): extensionAudioObjectType"));
247243
248244 if (tmp_OTi == 5)
249245 {
250 mp4ASC->sbr_present_flag = (uint8_t)faad_get1bit(&ld
246 mp4ASC->sbr_present_flag = (uint8_t)faad_get1bit(ld
251247 DEBUGVAR(1,11,"parse_audio_decoder_specific_info(): sbr_present_flag"));
252248
253249 if (mp4ASC->sbr_present_flag)
257253 /* Don't set OT to SBR until checked that it is actually there */
258254 mp4ASC->objectTypeIndex = tmp_OTi;
259255
260 tmp = (uint8_t)faad_getbits(&ld, 4
256 tmp = (uint8_t)faad_getbits(ld, 4
261257 DEBUGVAR(1,12,"parse_audio_decoder_specific_info(): extensionSamplingFrequencyIndex"));
262258
263259 /* check for downsampled SBR */
267263
268264 if (mp4ASC->samplingFrequencyIndex == 15)
269265 {
270 mp4ASC->samplingFrequency = (uint32_t)faad_getbits(&ld, 24
266 mp4ASC->samplingFrequency = (uint32_t)faad_getbits(ld, 24
271267 DEBUGVAR(1,13,"parse_audio_decoder_specific_info(): extensionSamplingFrequencyIndex"));
272268 } else {
273269 mp4ASC->samplingFrequency = get_sample_rate(mp4ASC->samplingFrequencyIndex);
291287 }
292288 #endif
293289
294 faad_endbits(&ld);
290 faad_endbits(ld);
295291
296292 return result;
297293 }
294
295 int8_t AudioSpecificConfig2(uint8_t *pBuffer,
296 uint32_t buffer_size,
297 mp4AudioSpecificConfig *mp4ASC,
298 program_config *pce,
299 uint8_t short_form)
300 {
301 uint8_t ret = 0;
302 bitfile ld;
303 faad_initbits(&ld, pBuffer, buffer_size);
304 faad_byte_align(&ld);
305 ret = AudioSpecificConfigFromBitfile(&ld, mp4ASC, pce, buffer_size, short_form);
306 faad_endbits(&ld);
307 return ret;
308 }
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: mp4.h,v 1.25 2007/11/01 12:33:32 menno Exp $
27 ** $Id: mp4.h,v 1.28 2009/02/05 00:51:03 menno Exp $
2828 **/
2929
3030 #ifndef __MP4_H__
3434 extern "C" {
3535 #endif
3636
37 #include "decoder.h"
38
39 int8_t NEAACDECAPI NeAACDecAudioSpecificConfig(uint8_t *pBuffer,
40 uint32_t buffer_size,
41 mp4AudioSpecificConfig *mp4ASC);
37 #include "neaacdec.h"
4238
4339 int8_t AudioSpecificConfig2(uint8_t *pBuffer,
4440 uint32_t buffer_size,
4541 mp4AudioSpecificConfig *mp4ASC,
46 program_config *pce);
42 program_config *pce, uint8_t short_form);
43
44 int8_t AudioSpecificConfigFromBitfile(bitfile *ld,
45 mp4AudioSpecificConfig *mp4ASC,
46 program_config *pce, uint32_t bsize, uint8_t short_form);
4747
4848 #ifdef __cplusplus
4949 }
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: output.c,v 1.46 2007/11/01 12:33:32 menno Exp $
27 ** $Id: output.c,v 1.47 2009/01/26 23:51:15 menno Exp $
2828 **/
2929
3030 #include "common.h"
3131 #include "structs.h"
3232
3333 #include "output.h"
34 #include "decoder.h"
3534
3635 #ifndef FIXED_POINT
3736
8685
8786 #define CONV(a,b) ((a<<1)|(b&0x1))
8887
89 static void to_PCM_16bit(NeAACDecHandle hDecoder, real_t **input,
88 static void to_PCM_16bit(NeAACDecStruct *hDecoder, real_t **input,
9089 uint8_t channels, uint16_t frame_len,
9190 int16_t **sample_buffer)
9291 {
151150 }
152151 }
153152
154 static void to_PCM_24bit(NeAACDecHandle hDecoder, real_t **input,
153 static void to_PCM_24bit(NeAACDecStruct *hDecoder, real_t **input,
155154 uint8_t channels, uint16_t frame_len,
156155 int32_t **sample_buffer)
157156 {
221220 }
222221 }
223222
224 static void to_PCM_32bit(NeAACDecHandle hDecoder, real_t **input,
223 static void to_PCM_32bit(NeAACDecStruct *hDecoder, real_t **input,
225224 uint8_t channels, uint16_t frame_len,
226225 int32_t **sample_buffer)
227226 {
291290 }
292291 }
293292
294 static void to_PCM_float(NeAACDecHandle hDecoder, real_t **input,
293 static void to_PCM_float(NeAACDecStruct *hDecoder, real_t **input,
295294 uint8_t channels, uint16_t frame_len,
296295 float32_t **sample_buffer)
297296 {
343342 }
344343 }
345344
346 static void to_PCM_double(NeAACDecHandle hDecoder, real_t **input,
345 static void to_PCM_double(NeAACDecStruct *hDecoder, real_t **input,
347346 uint8_t channels, uint16_t frame_len,
348347 double **sample_buffer)
349348 {
395394 }
396395 }
397396
398 void *output_to_PCM(NeAACDecHandle hDecoder,
397 void *output_to_PCM(NeAACDecStruct *hDecoder,
399398 real_t **input, void *sample_buffer, uint8_t channels,
400399 uint16_t frame_len, uint8_t format)
401400 {
465464 }
466465 }
467466
468 void* output_to_PCM(NeAACDecHandle hDecoder,
467 void* output_to_PCM(NeAACDecStruct *hDecoder,
469468 real_t **input, void *sample_buffer, uint8_t channels,
470469 uint16_t frame_len, uint8_t format)
471470 {
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: output.h,v 1.25 2007/11/01 12:33:32 menno Exp $
27 ** $Id: output.h,v 1.26 2009/01/26 23:51:15 menno Exp $
2828 **/
2929
3030 #ifndef __OUTPUT_H__
3434 extern "C" {
3535 #endif
3636
37 void* output_to_PCM(NeAACDecHandle hDecoder,
37 void* output_to_PCM(NeAACDecStruct *hDecoder,
3838 real_t **input,
3939 void *samplebuffer,
4040 uint8_t channels,
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: ps_dec.c,v 1.14 2007/11/01 12:33:33 menno Exp $
27 ** $Id: ps_dec.c,v 1.16 2009/01/26 22:32:31 menno Exp $
2828 **/
2929
3030 #include "common.h"
161161
162162 /* static function declarations */
163163 static void ps_data_decode(ps_info *ps);
164 static hyb_info *hybrid_init();
164 static hyb_info *hybrid_init(uint8_t numTimeSlotsRate);
165165 static void channel_filter2(hyb_info *hyb, uint8_t frame_len, const real_t *filter,
166166 qmf_t *buffer, qmf_t **X_hybrid);
167167 static void INLINE DCT3_4_unscaled(real_t *y, real_t *x);
168168 static void channel_filter8(hyb_info *hyb, uint8_t frame_len, const real_t *filter,
169169 qmf_t *buffer, qmf_t **X_hybrid);
170170 static void hybrid_analysis(hyb_info *hyb, qmf_t X[32][64], qmf_t X_hybrid[32][32],
171 uint8_t use34);
171 uint8_t use34, uint8_t numTimeSlotsRate);
172172 static void hybrid_synthesis(hyb_info *hyb, qmf_t X[32][64], qmf_t X_hybrid[32][32],
173 uint8_t use34);
173 uint8_t use34, uint8_t numTimeSlotsRate);
174174 static int8_t delta_clip(int8_t i, int8_t min, int8_t max);
175175 static void delta_decode(uint8_t enable, int8_t *index, int8_t *index_prev,
176176 uint8_t dt_flag, uint8_t nr_par, uint8_t stride,
191191 /* */
192192
193193
194 static hyb_info *hybrid_init()
194 static hyb_info *hybrid_init(uint8_t numTimeSlotsRate)
195195 {
196196 uint8_t i;
197197
207207 hyb->resolution20[1] = 2;
208208 hyb->resolution20[2] = 2;
209209
210 hyb->frame_len = 32;
210 hyb->frame_len = numTimeSlotsRate;
211211
212212 hyb->work = (qmf_t*)faad_malloc((hyb->frame_len+12) * sizeof(qmf_t));
213213 memset(hyb->work, 0, (hyb->frame_len+12) * sizeof(qmf_t));
232232 {
233233 uint8_t i;
234234
235 if (!hyb) return;
236
235237 if (hyb->work)
236238 faad_free(hyb->work);
237239
250252 }
251253 if (hyb->temp)
252254 faad_free(hyb->temp);
255
256 faad_free(hyb);
253257 }
254258
255259 /* real filter, size 2 */
500504 * to improve frequency resolution
501505 */
502506 static void hybrid_analysis(hyb_info *hyb, qmf_t X[32][64], qmf_t X_hybrid[32][32],
503 uint8_t use34)
507 uint8_t use34, uint8_t numTimeSlotsRate)
504508 {
505509 uint8_t k, n, band;
506510 uint8_t offset = 0;
558562 /* group hybrid channels */
559563 if (!use34)
560564 {
561 for (n = 0; n < 32 /*30?*/; n++)
565 for (n = 0; n < numTimeSlotsRate; n++)
562566 {
563567 QMF_RE(X_hybrid[n][3]) += QMF_RE(X_hybrid[n][4]);
564568 QMF_IM(X_hybrid[n][3]) += QMF_IM(X_hybrid[n][4]);
574578 }
575579
576580 static void hybrid_synthesis(hyb_info *hyb, qmf_t X[32][64], qmf_t X_hybrid[32][32],
577 uint8_t use34)
581 uint8_t use34, uint8_t numTimeSlotsRate)
578582 {
579583 uint8_t k, n, band;
580584 uint8_t offset = 0;
908912 ps->border_position[0] = 0;
909913 for (env = 1; env < ps->num_env; env++)
910914 {
911 ps->border_position[env] = (env * 32 /* 30 for 960? */) / ps->num_env;
912 }
913 ps->border_position[ps->num_env] = 32 /* 30 for 960? */;
915 ps->border_position[env] = (env * ps->numTimeSlotsRate) / ps->num_env;
916 }
917 ps->border_position[ps->num_env] = ps->numTimeSlotsRate;
914918 } else {
915919 ps->border_position[0] = 0;
916920
917 if (ps->border_position[ps->num_env] < 32 /* 30 for 960? */)
921 if (ps->border_position[ps->num_env] < ps->numTimeSlotsRate)
918922 {
919923 for (bin = 0; bin < 34; bin++)
920924 {
927931 ps->opd_index[ps->num_env][bin] = ps->opd_index[ps->num_env-1][bin];
928932 }
929933 ps->num_env++;
930 ps->border_position[ps->num_env] = 32 /* 30 for 960? */;
934 ps->border_position[ps->num_env] = ps->numTimeSlotsRate;
931935 }
932936
933937 for (env = 1; env < ps->num_env; env++)
934938 {
935 int8_t thr = 32 /* 30 for 960? */ - (ps->num_env - env);
939 int8_t thr = ps->numTimeSlotsRate - (ps->num_env - env);
936940
937941 if (ps->border_position[env] > thr)
938942 {
18611865 faad_free(ps);
18621866 }
18631867
1864 ps_info *ps_init(uint8_t sr_index)
1868 ps_info *ps_init(uint8_t sr_index, uint8_t numTimeSlotsRate)
18651869 {
18661870 uint8_t i;
18671871 uint8_t short_delay_band;
18691873 ps_info *ps = (ps_info*)faad_malloc(sizeof(ps_info));
18701874 memset(ps, 0, sizeof(ps_info));
18711875
1872 ps->hyb = hybrid_init();
1876 ps->hyb = hybrid_init(numTimeSlotsRate);
1877 ps->numTimeSlotsRate = numTimeSlotsRate;
18731878
18741879 ps->ps_data_available = 0;
18751880
19851990 * frequency resolution
19861991 */
19871992 hybrid_analysis((hyb_info*)ps->hyb, X_left, X_hybrid_left,
1988 ps->use34hybrid_bands);
1993 ps->use34hybrid_bands, ps->numTimeSlotsRate);
19891994
19901995 /* decorrelate mono signal */
19911996 ps_decorrelate(ps, X_left, X_right, X_hybrid_left, X_hybrid_right);
19952000
19962001 /* hybrid synthesis, to rebuild the SBR QMF matrices */
19972002 hybrid_synthesis((hyb_info*)ps->hyb, X_left, X_hybrid_left,
1998 ps->use34hybrid_bands);
2003 ps->use34hybrid_bands, ps->numTimeSlotsRate);
19992004
20002005 hybrid_synthesis((hyb_info*)ps->hyb, X_right, X_hybrid_right,
2001 ps->use34hybrid_bands);
2006 ps->use34hybrid_bands, ps->numTimeSlotsRate);
20022007
20032008 return 0;
20042009 }
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: ps_dec.h,v 1.12 2007/11/01 12:33:33 menno Exp $
27 ** $Id: ps_dec.h,v 1.13 2009/01/26 22:32:31 menno Exp $
2828 **/
2929
3030 #ifndef __PS_DEC_H__
9191 /* hybrid filterbank parameters */
9292 void *hyb;
9393 uint8_t use34hybrid_bands;
94 uint8_t numTimeSlotsRate;
9495
9596 /**/
9697 uint8_t num_groups;
137138 uint16_t ps_data(ps_info *ps, bitfile *ld, uint8_t *header);
138139
139140 /* ps_dec.c */
140 ps_info *ps_init(uint8_t sr_index);
141 ps_info *ps_init(uint8_t sr_index, uint8_t numTimeSlotsRate);
141142 void ps_free(ps_info *ps);
142143
143144 uint8_t ps_decode(ps_info *ps, qmf_t X_left[38][64], qmf_t X_right[38][64]);
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: sbr_dec.c,v 1.43 2007/11/01 12:33:34 menno Exp $
27 ** $Id: sbr_dec.c,v 1.44 2009/01/26 22:32:31 menno Exp $
2828 **/
2929
3030
636636 sbr->ret += sbr_process_channel(sbr, left_channel, X_left, 0, dont_process, downSampledSBR);
637637
638638 /* copy some extra data for PS */
639 for (l = 32; l < 38; l++)
639 for (l = sbr->numTimeSlotsRate; l < sbr->numTimeSlotsRate + 6; l++)
640640 {
641641 for (k = 0; k < 5; k++)
642642 {
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: sbr_e_nf.c,v 1.21 2007/11/01 12:33:35 menno Exp $
27 ** $Id: sbr_e_nf.c,v 1.22 2008/03/23 23:03:29 menno Exp $
2828 **/
2929
3030 #include "common.h"
233233
234234 /* calculates 1/(1+Q) */
235235 /* [0..1] */
236 real_t calc_Q_div(sbr_info *sbr, uint8_t ch, uint8_t m, uint8_t l)
236 static real_t calc_Q_div(sbr_info *sbr, uint8_t ch, uint8_t m, uint8_t l)
237237 {
238238 if (sbr->bs_coupling)
239239 {
352352
353353 /* calculates Q/(1+Q) */
354354 /* [0..1] */
355 real_t calc_Q_div2(sbr_info *sbr, uint8_t ch, uint8_t m, uint8_t l)
355 static real_t calc_Q_div2(sbr_info *sbr, uint8_t ch, uint8_t m, uint8_t l)
356356 {
357357 if (sbr->bs_coupling)
358358 {
(No changes)
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: sbr_hfadj.c,v 1.22 2007/11/01 12:33:35 menno Exp $
27 ** $Id: sbr_hfadj.c,v 1.23 2008/09/19 22:50:20 menno Exp $
2828 **/
2929
3030 /* High Frequency adjustment */
6565 sbr->l_A[ch] = -1;
6666 } else if (sbr->bs_frame_class[ch] == VARFIX) {
6767 if (sbr->bs_pointer[ch] > 1)
68 sbr->l_A[ch] = sbr->bs_pointer[ch] - 1;
69 else
6870 sbr->l_A[ch] = -1;
69 else
70 sbr->l_A[ch] = sbr->bs_pointer[ch] - 1;
7171 } else {
7272 if (sbr->bs_pointer[ch] == 0)
7373 sbr->l_A[ch] = -1;
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: sbr_syntax.c,v 1.38 2007/11/01 12:33:36 menno Exp $
27 ** $Id: sbr_syntax.c,v 1.39 2009/01/26 22:32:31 menno Exp $
2828 **/
2929
3030 #include "common.h"
856856 case EXTENSION_ID_PS:
857857 if (!sbr->ps)
858858 {
859 sbr->ps = ps_init(get_sr_index(sbr->sample_rate));
859 sbr->ps = ps_init(get_sr_index(sbr->sample_rate), sbr->numTimeSlotsRate);
860860 }
861861 if (sbr->psResetFlag)
862862 {
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: sbr_tf_grid.c,v 1.19 2007/11/01 12:33:36 menno Exp $
27 ** $Id: sbr_tf_grid.c,v 1.20 2008/09/19 22:50:20 menno Exp $
2828 **/
2929
3030 /* Time/Frequency grid */
6464 switch (sbr->L_E[ch])
6565 {
6666 case 4:
67 temp = (int) (sbr->numTimeSlots / 4);
67 temp = (sbr->numTimeSlots / 4);
6868 t_E_temp[3] = sbr->rate * 3 * temp;
6969 t_E_temp[2] = sbr->rate * 2 * temp;
7070 t_E_temp[1] = sbr->rate * temp;
7171 break;
7272 case 2:
73 t_E_temp[1] = sbr->rate * (int) (sbr->numTimeSlots / 2);
73 t_E_temp[1] = sbr->rate * (sbr->numTimeSlots / 2);
7474 break;
7575 default:
7676 break;
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: specrec.c,v 1.60 2007/11/01 12:33:36 menno Exp $
27 ** $Id: specrec.c,v 1.62 2009/01/26 23:51:15 menno Exp $
2828 **/
2929
3030 /*
5757
5858
5959 /* static function declarations */
60 static uint8_t quant_to_spec(NeAACDecHandle hDecoder,
60 static uint8_t quant_to_spec(NeAACDecStruct *hDecoder,
6161 ic_stream *ics, int16_t *quant_data,
6262 real_t *spec_data, uint16_t frame_len);
6363
299299 in section named section. This offset depends on window_sequence and
300300 scale_factor_grouping and is needed to decode the spectral_data().
301301 */
302 uint8_t window_grouping_info(NeAACDecHandle hDecoder, ic_stream *ics)
302 uint8_t window_grouping_info(NeAACDecStruct *hDecoder, ic_stream *ics)
303303 {
304304 uint8_t i, g;
305305
545545 - Within a scalefactor window band, the coefficients are in ascending
546546 spectral order.
547547 */
548 static uint8_t quant_to_spec(NeAACDecHandle hDecoder,
548 static uint8_t quant_to_spec(NeAACDecStruct *hDecoder,
549549 ic_stream *ics, int16_t *quant_data,
550550 real_t *spec_data, uint16_t frame_len)
551551 {
679679 return error;
680680 }
681681
682 static uint8_t allocate_single_channel(NeAACDecHandle hDecoder, uint8_t channel,
682 static uint8_t allocate_single_channel(NeAACDecStruct *hDecoder, uint8_t channel,
683683 uint8_t output_channels)
684684 {
685685 int mul = 1;
780780 return 0;
781781 }
782782
783 static uint8_t allocate_channel_pair(NeAACDecHandle hDecoder,
783 static uint8_t allocate_channel_pair(NeAACDecStruct *hDecoder,
784784 uint8_t channel, uint8_t paired_channel)
785785 {
786786 int mul = 1;
885885 return 0;
886886 }
887887
888 uint8_t reconstruct_single_channel(NeAACDecHandle hDecoder, ic_stream *ics,
888 uint8_t reconstruct_single_channel(NeAACDecStruct *hDecoder, ic_stream *ics,
889889 element *sce, int16_t *spec_data)
890890 {
891891 uint8_t retval;
957957 /* MAIN object type prediction */
958958 if (hDecoder->object_type == MAIN)
959959 {
960 if (!hDecoder->pred_stat[sce->channel])
961 return 33;
962
960963 /* intra channel prediction */
961964 ic_prediction(ics, spec_coef, hDecoder->pred_stat[sce->channel], hDecoder->frameLength,
962965 hDecoder->sf_index);
10951098 return 0;
10961099 }
10971100
1098 uint8_t reconstruct_channel_pair(NeAACDecHandle hDecoder, ic_stream *ics1, ic_stream *ics2,
1101 uint8_t reconstruct_channel_pair(NeAACDecStruct *hDecoder, ic_stream *ics1, ic_stream *ics2,
10991102 element *cpe, int16_t *spec_data1, int16_t *spec_data2)
11001103 {
11011104 uint8_t retval;
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: specrec.h,v 1.32 2007/11/01 12:33:36 menno Exp $
27 ** $Id: specrec.h,v 1.33 2009/01/26 23:51:15 menno Exp $
2828 **/
2929
3030 #ifndef __SPECREC_H__
3636
3737 #include "syntax.h"
3838
39 uint8_t window_grouping_info(NeAACDecHandle hDecoder, ic_stream *ics);
40 uint8_t reconstruct_channel_pair(NeAACDecHandle hDecoder, ic_stream *ics1, ic_stream *ics2,
39 uint8_t window_grouping_info(NeAACDecStruct *hDecoder, ic_stream *ics);
40 uint8_t reconstruct_channel_pair(NeAACDecStruct *hDecoder, ic_stream *ics1, ic_stream *ics2,
4141 element *cpe, int16_t *spec_data1, int16_t *spec_data2);
42 uint8_t reconstruct_single_channel(NeAACDecHandle hDecoder, ic_stream *ics, element *sce,
42 uint8_t reconstruct_single_channel(NeAACDecStruct *hDecoder, ic_stream *ics, element *sce,
4343 int16_t *spec_data);
4444
4545 #ifdef __cplusplus
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
(No changes)
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: structs.h,v 1.46 2007/11/01 12:33:40 menno Exp $
27 ** $Id: structs.h,v 1.49 2009/01/26 23:51:15 menno Exp $
2828 **/
2929
3030 #ifndef __STRUCTS_H__
311311 ic_stream ics2;
312312 } element; /* syntax element (SCE, CPE, LFE) */
313313
314 typedef struct mp4AudioSpecificConfig
315 {
316 /* Audio Specific Info */
317 /*uint8_t*/ unsigned char objectTypeIndex;
318 /*uint8_t*/ unsigned char samplingFrequencyIndex;
319 /*uint32_t*/ unsigned long samplingFrequency;
320 /*uint8_t*/ unsigned char channelsConfiguration;
321
322 /* GA Specific Info */
323 /*uint8_t*/ unsigned char frameLengthFlag;
324 /*uint8_t*/ unsigned char dependsOnCoreCoder;
325 /*uint16_t*/ unsigned short coreCoderDelay;
326 /*uint8_t*/ unsigned char extensionFlag;
327 /*uint8_t*/ unsigned char aacSectionDataResilienceFlag;
328 /*uint8_t*/ unsigned char aacScalefactorDataResilienceFlag;
329 /*uint8_t*/ unsigned char aacSpectralDataResilienceFlag;
330 /*uint8_t*/ unsigned char epConfig;
331
332 /*uint8_t*/ char sbr_present_flag;
333 /*uint8_t*/ char forceUpSampling;
334 /*uint8_t*/ char downSampledSBR;
335 } mp4AudioSpecificConfig;
336
337 typedef struct NeAACDecConfiguration
338 {
339 /*uint8_t*/ unsigned char defObjectType;
340 /*uint32_t*/ unsigned long defSampleRate;
341 /*uint8_t*/ unsigned char outputFormat;
342 /*uint8_t*/ unsigned char downMatrix;
343 /*uint8_t*/ unsigned char useOldADTSFormat;
344 /*uint8_t*/ unsigned char dontUpSampleImplicitSBR;
345 } NeAACDecConfiguration, *NeAACDecConfigurationPtr;
346
347 typedef struct NeAACDecFrameInfo
348 {
349 /*uint32_t*/ unsigned long bytesconsumed;
350 /*uint32_t*/ unsigned long samples;
351 /*uint8_t*/ unsigned char channels;
352 /*uint8_t*/ unsigned char error;
353 /*uint32_t*/ unsigned long samplerate;
354
355 /* SBR: 0: off, 1: on; normal, 2: on; downsampled */
356 /*uint8_t*/ unsigned char sbr;
357
358 /* MPEG-4 ObjectType */
359 /*uint8_t*/ unsigned char object_type;
360
361 /* AAC header type; MP4 will be signalled as RAW also */
362 /*uint8_t*/ unsigned char header_type;
363
364 /* multichannel configuration */
365 /*uint8_t*/ unsigned char num_front_channels;
366 /*uint8_t*/ unsigned char num_side_channels;
367 /*uint8_t*/ unsigned char num_back_channels;
368 /*uint8_t*/ unsigned char num_lfe_channels;
369 /*uint8_t*/ unsigned char channel_position[MAX_CHANNELS];
370
371 /* PS: 0: off, 1: on */
372 /*uint8_t*/ unsigned char ps;
373 } NeAACDecFrameInfo;
314 #define MAX_ASC_BYTES 64
315 typedef struct {
316 int inited;
317 int version, versionA;
318 int framelen_type;
319 int useSameStreamMux;
320 int allStreamsSameTimeFraming;
321 int numSubFrames;
322 int numPrograms;
323 int numLayers;
324 int otherDataPresent;
325 uint32_t otherDataLenBits;
326 uint32_t frameLength;
327 uint8_t ASC[MAX_ASC_BYTES];
328 uint32_t ASCbits;
329 } latm_header;
374330
375331 typedef struct
376332 {
377333 uint8_t adts_header_present;
378334 uint8_t adif_header_present;
335 uint8_t latm_header_present;
379336 uint8_t sf_index;
380337 uint8_t object_type;
381338 uint8_t channelConfiguration;
475432 int64_t scalefac_cycles;
476433 int64_t requant_cycles;
477434 #endif
435 latm_header latm_config;
478436 const unsigned char *cmes;
479 } NeAACDecStruct, *NeAACDecHandle;
437 } NeAACDecStruct;
480438
481439
482440
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: syntax.c,v 1.89 2007/11/01 12:33:40 menno Exp $
27 ** $Id: syntax.c,v 1.93 2009/01/26 23:51:15 menno Exp $
2828 **/
2929
3030 /*
3535 #include "structs.h"
3636
3737 #include <stdlib.h>
38 #include <stdio.h>
3839 #include <string.h>
3940
40 #include "decoder.h"
4141 #include "syntax.h"
4242 #include "specrec.h"
4343 #include "huffman.h"
5151 #ifdef SBR_DEC
5252 #include "sbr_syntax.h"
5353 #endif
54 #include "mp4.h"
5455
5556
5657 /* static function declarations */
57 static void decode_sce_lfe(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld,
58 static void decode_sce_lfe(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld,
5859 uint8_t id_syn_ele);
59 static void decode_cpe(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld,
60 static void decode_cpe(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld,
6061 uint8_t id_syn_ele);
61 static uint8_t single_lfe_channel_element(NeAACDecHandle hDecoder, bitfile *ld,
62 static uint8_t single_lfe_channel_element(NeAACDecStruct *hDecoder, bitfile *ld,
6263 uint8_t channel, uint8_t *tag);
63 static uint8_t channel_pair_element(NeAACDecHandle hDecoder, bitfile *ld,
64 static uint8_t channel_pair_element(NeAACDecStruct *hDecoder, bitfile *ld,
6465 uint8_t channel, uint8_t *tag);
6566 #ifdef COUPLING_DEC
66 static uint8_t coupling_channel_element(NeAACDecHandle hDecoder, bitfile *ld);
67 #endif
68 static uint16_t data_stream_element(NeAACDecHandle hDecoder, bitfile *ld);
67 static uint8_t coupling_channel_element(NeAACDecStruct *hDecoder, bitfile *ld);
68 #endif
69 static uint16_t data_stream_element(NeAACDecStruct *hDecoder, bitfile *ld);
6970 static uint8_t program_config_element(program_config *pce, bitfile *ld);
70 static uint8_t fill_element(NeAACDecHandle hDecoder, bitfile *ld, drc_info *drc
71 static uint8_t fill_element(NeAACDecStruct *hDecoder, bitfile *ld, drc_info *drc
7172 #ifdef SBR_DEC
7273 ,uint8_t sbr_ele
7374 #endif
7475 );
75 static uint8_t individual_channel_stream(NeAACDecHandle hDecoder, element *ele,
76 static uint8_t individual_channel_stream(NeAACDecStruct *hDecoder, element *ele,
7677 bitfile *ld, ic_stream *ics, uint8_t scal_flag,
7778 int16_t *spec_data);
78 static uint8_t ics_info(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld,
79 static uint8_t ics_info(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld,
7980 uint8_t common_window);
80 static uint8_t section_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld);
81 static uint8_t scale_factor_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld);
81 static uint8_t section_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld);
82 static uint8_t scale_factor_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld);
8283 #ifdef SSR_DEC
8384 static void gain_control_data(bitfile *ld, ic_stream *ics);
8485 #endif
85 static uint8_t spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld,
86 static uint8_t spectral_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld,
8687 int16_t *spectral_data);
8788 static uint16_t extension_payload(bitfile *ld, drc_info *drc, uint16_t count);
8889 static uint8_t pulse_data(ic_stream *ics, pulse_info *pul, bitfile *ld);
8990 static void tns_data(ic_stream *ics, tns_info *tns, bitfile *ld);
9091 #ifdef LTP_DEC
91 static uint8_t ltp_data(NeAACDecHandle hDecoder, ic_stream *ics, ltp_info *ltp, bitfile *ld);
92 static uint8_t ltp_data(NeAACDecStruct *hDecoder, ic_stream *ics, ltp_info *ltp, bitfile *ld);
9293 #endif
9394 static uint8_t adts_fixed_header(adts_header *adts, bitfile *ld);
9495 static void adts_variable_header(adts_header *adts, bitfile *ld);
9596 static void adts_error_check(adts_header *adts, bitfile *ld);
9697 static uint8_t dynamic_range_info(bitfile *ld, drc_info *drc);
9798 static uint8_t excluded_channels(bitfile *ld, drc_info *drc);
98 static uint8_t side_info(NeAACDecHandle hDecoder, element *ele,
99 static uint8_t side_info(NeAACDecStruct *hDecoder, element *ele,
99100 bitfile *ld, ic_stream *ics, uint8_t scal_flag);
100101 #ifdef DRM
101 static int8_t DRM_aac_scalable_main_header(NeAACDecHandle hDecoder, ic_stream *ics1, ic_stream *ics2,
102 static int8_t DRM_aac_scalable_main_header(NeAACDecStruct *hDecoder, ic_stream *ics1, ic_stream *ics2,
102103 bitfile *ld, uint8_t this_layer_stereo);
103104 #endif
104105
153154 DEBUGVAR(1,145,"GASpecificConfig(): aacScalefactorDataResilienceFlag"));
154155 mp4ASC->aacSpectralDataResilienceFlag = faad_get1bit(ld
155156 DEBUGVAR(1,146,"GASpecificConfig(): aacSpectralDataResilienceFlag"));
156
157 /* 1 bit: extensionFlag3 */
158 }
159 }
157 }
158 /* 1 bit: extensionFlag3 */
159 faad_getbits(ld, 1);
160 }
160161 #endif
161162
162163 return 0;
320321 return 0;
321322 }
322323
323 static void decode_sce_lfe(NeAACDecHandle hDecoder,
324 static void decode_sce_lfe(NeAACDecStruct *hDecoder,
324325 NeAACDecFrameInfo *hInfo, bitfile *ld,
325326 uint8_t id_syn_ele)
326327 {
365366 hDecoder->fr_ch_ele++;
366367 }
367368
368 static void decode_cpe(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld,
369 static void decode_cpe(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo, bitfile *ld,
369370 uint8_t id_syn_ele)
370371 {
371372 uint8_t channels = hDecoder->fr_channels;
413414 hDecoder->fr_ch_ele++;
414415 }
415416
416 void raw_data_block(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo,
417 void raw_data_block(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo,
417418 bitfile *ld, program_config *pce, drc_info *drc)
418419 {
419420 uint8_t id_syn_ele;
572573
573574 /* new in corrigendum 14496-3:2002 */
574575 #ifdef DRM
575 if (hDecoder->object_type != DRM_ER_LC)
576 if (hDecoder->object_type != DRM_ER_LC
577 #if 0
578 && !hDecoder->latm_header_present
579 #endif
580 )
576581 #endif
577582 {
578583 faad_byte_align(ld);
583588
584589 /* Table 4.4.4 and */
585590 /* Table 4.4.9 */
586 static uint8_t single_lfe_channel_element(NeAACDecHandle hDecoder, bitfile *ld,
591 static uint8_t single_lfe_channel_element(NeAACDecStruct *hDecoder, bitfile *ld,
587592 uint8_t channel, uint8_t *tag)
588593 {
589594 uint8_t retval = 0;
630635 }
631636
632637 /* Table 4.4.5 */
633 static uint8_t channel_pair_element(NeAACDecHandle hDecoder, bitfile *ld,
638 static uint8_t channel_pair_element(NeAACDecStruct *hDecoder, bitfile *ld,
634639 uint8_t channels, uint8_t *tag)
635640 {
636641 ALIGN int16_t spec_data1[1024] = {0};
760765 }
761766
762767 /* Table 4.4.6 */
763 static uint8_t ics_info(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld,
768 static uint8_t ics_info(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld,
764769 uint8_t common_window)
765770 {
766771 uint8_t retval = 0;
911916
912917 #ifdef COUPLING_DEC
913918 /* Table 4.4.8: Currently just for skipping the bits... */
914 static uint8_t coupling_channel_element(NeAACDecHandle hDecoder, bitfile *ld)
919 static uint8_t coupling_channel_element(NeAACDecStruct *hDecoder, bitfile *ld)
915920 {
916921 uint8_t c, result = 0;
917922 uint8_t ind_sw_cce_flag = 0;
10041009 #endif
10051010
10061011 /* Table 4.4.10 */
1007 static uint16_t data_stream_element(NeAACDecHandle hDecoder, bitfile *ld)
1012 static uint16_t data_stream_element(NeAACDecStruct *hDecoder, bitfile *ld)
10081013 {
10091014 uint8_t byte_aligned;
10101015 uint16_t i, count;
10331038 }
10341039
10351040 /* Table 4.4.11 */
1036 static uint8_t fill_element(NeAACDecHandle hDecoder, bitfile *ld, drc_info *drc
1041 static uint8_t fill_element(NeAACDecStruct *hDecoder, bitfile *ld, drc_info *drc
10371042 #ifdef SBR_DEC
10381043 ,uint8_t sbr_ele
10391044 #endif
12121217
12131218 #ifdef DRM
12141219 /* Table 4.4.13 ASME */
1215 void DRM_aac_scalable_main_element(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo,
1220 void DRM_aac_scalable_main_element(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo,
12161221 bitfile *ld, program_config *pce, drc_info *drc)
12171222 {
12181223 uint8_t retval = 0;
14221427 }
14231428
14241429 /* Table 4.4.15 */
1425 static int8_t DRM_aac_scalable_main_header(NeAACDecHandle hDecoder, ic_stream *ics1, ic_stream *ics2,
1430 static int8_t DRM_aac_scalable_main_header(NeAACDecStruct *hDecoder, ic_stream *ics1, ic_stream *ics2,
14261431 bitfile *ld, uint8_t this_layer_stereo)
14271432 {
14281433 uint8_t retval = 0;
14901495 }
14911496 #endif
14921497
1493 static uint8_t side_info(NeAACDecHandle hDecoder, element *ele,
1498 static uint8_t side_info(NeAACDecStruct *hDecoder, element *ele,
14941499 bitfile *ld, ic_stream *ics, uint8_t scal_flag)
14951500 {
14961501 uint8_t result;
15831588 }
15841589
15851590 /* Table 4.4.24 */
1586 static uint8_t individual_channel_stream(NeAACDecHandle hDecoder, element *ele,
1591 static uint8_t individual_channel_stream(NeAACDecStruct *hDecoder, element *ele,
15871592 bitfile *ld, ic_stream *ics, uint8_t scal_flag,
15881593 int16_t *spec_data)
15891594 {
16431648 }
16441649
16451650 /* Table 4.4.25 */
1646 static uint8_t section_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld)
1651 static uint8_t section_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld)
16471652 {
16481653 uint8_t g;
16491654 uint8_t sect_esc_val, sect_bits;
18901895 }
18911896
18921897 /* Table 4.4.26 */
1893 static uint8_t scale_factor_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld)
1898 static uint8_t scale_factor_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld)
18941899 {
18951900 uint8_t ret = 0;
18961901 #ifdef PROFILE
19982003
19992004 #ifdef LTP_DEC
20002005 /* Table 4.4.28 */
2001 static uint8_t ltp_data(NeAACDecHandle hDecoder, ic_stream *ics, ltp_info *ltp, bitfile *ld)
2006 static uint8_t ltp_data(NeAACDecStruct *hDecoder, ic_stream *ics, ltp_info *ltp, bitfile *ld)
20022007 {
20032008 uint8_t sfb, w;
20042009
20612066 #endif
20622067
20632068 /* Table 4.4.29 */
2064 static uint8_t spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld,
2069 static uint8_t spectral_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld,
20652070 int16_t *spectral_data)
20662071 {
20672072 int8_t i;
24412446 DEBUGVAR(1,134,"adts_error_check(): crc_check"));
24422447 }
24432448 }
2449
2450 /* LATM parsing functions */
2451
2452 static uint32_t latm_get_value(bitfile *ld)
2453 {
2454 uint32_t l, value;
2455 uint8_t bytesForValue;
2456
2457 bytesForValue = (uint8_t)faad_getbits(ld, 2);
2458 value = 0;
2459 for(l=0; l<bytesForValue; l++)
2460 value = (value << 8) | (uint8_t)faad_getbits(ld, 8);
2461
2462 return value;
2463 }
2464
2465
2466 static uint32_t latmParsePayload(latm_header *latm, bitfile *ld)
2467 {
2468 //assuming there's only one program with a single layer and 1 subFrame,
2469 //allStreamsSametimeframing is set,
2470 uint32_t framelen;
2471 uint8_t tmp;
2472
2473 //this should be the payload length field for the current configuration
2474 framelen = 0;
2475 if(latm->framelen_type==0)
2476 {
2477 do
2478 {
2479 tmp = (uint8_t)faad_getbits(ld, 8);
2480 framelen += tmp;
2481 } while(tmp==0xff);
2482 }
2483 else if(latm->framelen_type==1)
2484 framelen=latm->frameLength;
2485
2486 return framelen;
2487 }
2488
2489
2490 static uint32_t latmAudioMuxElement(latm_header *latm, bitfile *ld)
2491 {
2492 uint32_t ascLen, asc_bits=0;
2493 uint32_t x1, y1, m, n, i;
2494 program_config pce;
2495 mp4AudioSpecificConfig mp4ASC;
2496
2497 latm->useSameStreamMux = (uint8_t)faad_getbits(ld, 1);
2498 if(!latm->useSameStreamMux)
2499 {
2500 //parseSameStreamMuxConfig
2501 latm->version = (uint8_t) faad_getbits(ld, 1);
2502 if(latm->version)
2503 latm->versionA = (uint8_t) faad_getbits(ld, 1);
2504 if(latm->versionA)
2505 {
2506 //dunno the payload format for versionA
2507 fprintf(stderr, "versionA not supported\n");
2508 return 0;
2509 }
2510 if(latm->version) //read taraBufferFullness
2511 latm_get_value(ld);
2512 latm->allStreamsSameTimeFraming = (uint8_t)faad_getbits(ld, 1);
2513 latm->numSubFrames = (uint8_t)faad_getbits(ld, 6) + 1;
2514 latm->numPrograms = (uint8_t)faad_getbits(ld, 4) + 1;
2515 latm->numLayers = faad_getbits(ld, 3) + 1;
2516 if(latm->numPrograms>1 || !latm->allStreamsSameTimeFraming || latm->numSubFrames>1 || latm->numLayers>1)
2517 {
2518 fprintf(stderr, "\r\nUnsupported LATM configuration: %d programs/ %d subframes, %d layers, allstreams: %d\n",
2519 latm->numPrograms, latm->numSubFrames, latm->numLayers, latm->allStreamsSameTimeFraming);
2520 return 0;
2521 }
2522 ascLen = 0;
2523 if(latm->version)
2524 ascLen = latm_get_value(ld);
2525
2526 x1 = faad_get_processed_bits(ld);
2527 if(AudioSpecificConfigFromBitfile(ld, &mp4ASC, &pce, 0, 1) < 0)
2528 return 0;
2529
2530 //horrid hack to unread the ASC bits and store them in latm->ASC
2531 //the correct code would rely on an ideal faad_ungetbits()
2532 y1 = faad_get_processed_bits(ld);
2533 if((y1-x1) <= MAX_ASC_BYTES*8)
2534 {
2535 faad_rewindbits(ld);
2536 m = x1;
2537 while(m>0)
2538 {
2539 n = min(m, 32);
2540 faad_getbits(ld, n);
2541 m -= n;
2542 }
2543
2544 i = 0;
2545 m = latm->ASCbits = y1 - x1;
2546 while(m > 0)
2547 {
2548 n = min(m, 8);
2549 latm->ASC[i++] = (uint8_t) faad_getbits(ld, n);
2550 m -= n;
2551 }
2552 }
2553
2554 asc_bits = y1-x1;
2555
2556 if(ascLen>asc_bits)
2557 faad_getbits(ld, ascLen-asc_bits);
2558
2559 latm->framelen_type = (uint8_t) faad_getbits(ld, 3);
2560 if(latm->framelen_type == 0)
2561 {
2562 latm->frameLength = 0;
2563 faad_getbits(ld, 8); //buffer fullness for frame_len_type==0, useless
2564 }
2565 else if(latm->framelen_type == 1)
2566 {
2567 latm->frameLength = faad_getbits(ld, 9);
2568 if(latm->frameLength==0)
2569 {
2570 fprintf(stderr, "Invalid frameLength: 0\r\n");
2571 return 0;
2572 }
2573 latm->frameLength = (latm->frameLength+20)*8;
2574 }
2575 else
2576 { //hellish CELP or HCVX stuff, discard
2577 fprintf(stderr, "Unsupported CELP/HCVX framelentype: %d\n", latm->framelen_type);
2578 return 0;
2579 }
2580
2581 latm->otherDataLenBits = 0;
2582 if(faad_getbits(ld, 1))
2583 { //other data present
2584 int esc, tmp;
2585 if(latm->version)
2586 latm->otherDataLenBits = latm_get_value(ld);
2587 else do
2588 {
2589 esc = faad_getbits(ld, 1);
2590 tmp = faad_getbits(ld, 8);
2591 latm->otherDataLenBits = (latm->otherDataLenBits << 8) + tmp;
2592 } while(esc);
2593 }
2594 if(faad_getbits(ld, 1)) //crc
2595 faad_getbits(ld, 8);
2596 latm->inited = 1;
2597 }
2598
2599 //read payload
2600 if(latm->inited)
2601 return latmParsePayload(latm, ld);
2602 else
2603 return 0;
2604 }
2605
2606
2607 uint32_t faad_latm_frame(latm_header *latm, bitfile *ld)
2608 {
2609 uint16_t len;
2610 uint32_t initpos, endpos, firstpos, ret;
2611
2612 firstpos = faad_get_processed_bits(ld);
2613 while (ld->bytes_left)
2614 {
2615 faad_byte_align(ld);
2616 if(faad_showbits(ld, 11) != 0x2B7)
2617 {
2618 faad_getbits(ld, 8);
2619 continue;
2620 }
2621 faad_getbits(ld, 11);
2622 len = faad_getbits(ld, 13);
2623 if(!len)
2624 continue;
2625 initpos = faad_get_processed_bits(ld);
2626 ret = latmAudioMuxElement(latm, ld);
2627 endpos = faad_get_processed_bits(ld);
2628 if(ret>0)
2629 return (len*8)-(endpos-initpos);
2630 //faad_getbits(ld, initpos-endpos); //go back to initpos, but is valid a getbits(-N) ?
2631 }
2632 return -1U;
2633 }
2424 ** Commercial non-GPL licensing of this software is possible.
2525 ** For more info contact Nero AG through Mpeg4AAClicense@nero.com.
2626 **
27 ** $Id: syntax.h,v 1.58 2007/11/01 12:33:40 menno Exp $
27 ** $Id: syntax.h,v 1.60 2009/01/26 23:51:17 menno Exp $
2828 **/
2929
3030 #ifndef __SYNTAX_H__
3434 extern "C" {
3535 #endif
3636
37 #include "decoder.h"
3837 #include "bits.h"
3938
4039 #define MAIN 1
5150 #define RAW 0
5251 #define ADIF 1
5352 #define ADTS 2
53 #define LATM 3
5454
5555 /* SBR signalling */
5656 #define NO_SBR 0
112112
113113 uint8_t adts_frame(adts_header *adts, bitfile *ld);
114114 void get_adif_header(adif_header *adif, bitfile *ld);
115 void raw_data_block(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo,
115 void raw_data_block(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo,
116116 bitfile *ld, program_config *pce, drc_info *drc);
117 uint8_t reordered_spectral_data(NeAACDecHandle hDecoder, ic_stream *ics, bitfile *ld,
117 uint8_t reordered_spectral_data(NeAACDecStruct *hDecoder, ic_stream *ics, bitfile *ld,
118118 int16_t *spectral_data);
119119 #ifdef DRM
120 void DRM_aac_scalable_main_element(NeAACDecHandle hDecoder, NeAACDecFrameInfo *hInfo,
120 void DRM_aac_scalable_main_element(NeAACDecStruct *hDecoder, NeAACDecFrameInfo *hInfo,
121121 bitfile *ld, program_config *pce, drc_info *drc);
122122 #endif
123 uint32_t faad_latm_frame(latm_header *latm, bitfile *ld);
123124
124125 #ifdef __cplusplus
125126 }
(No changes)
(No changes)
0 # ltmain.sh - Provide generalized library-building support services.
1 # NOTE: Changing this file will not affect anything until you rerun configure.
2 #
3 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005
4 # Free Software Foundation, Inc.
5 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 #
21 # As a special exception to the GNU General Public License, if you
22 # distribute this file as part of a program that contains a
23 # configuration script generated by Autoconf, you may include it under
24 # the same distribution terms that you use for the rest of that program.
25
26 basename="s,^.*/,,g"
27
28 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
29 # is ksh but when the shell is invoked as "sh" and the current value of
30 # the _XPG environment variable is not equal to 1 (one), the special
31 # positional parameter $0, within a function call, is the name of the
32 # function.
33 progpath="$0"
34
35 # The name of this program:
36 progname=`echo "$progpath" | $SED $basename`
37 modename="$progname"
38
39 # Global variables:
40 EXIT_SUCCESS=0
41 EXIT_FAILURE=1
42
43 PROGRAM=ltmain.sh
44 PACKAGE=libtool
45 VERSION="1.5.22 Debian 1.5.22-4"
46 TIMESTAMP=" (1.1220.2.365 2005/12/18 22:14:06)"
47
48 # See if we are running on zsh, and set the options which allow our
49 # commands through without removal of \ escapes.
50 if test -n "${ZSH_VERSION+set}" ; then
51 setopt NO_GLOB_SUBST
52 fi
53
54 # Check that we have a working $echo.
55 if test "X$1" = X--no-reexec; then
56 # Discard the --no-reexec flag, and continue.
57 shift
58 elif test "X$1" = X--fallback-echo; then
59 # Avoid inline document here, it may be left over
60 :
61 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
62 # Yippee, $echo works!
63 :
64 else
65 # Restart under the correct shell, and then maybe $echo will work.
66 exec $SHELL "$progpath" --no-reexec ${1+"$@"}
67 fi
68
69 if test "X$1" = X--fallback-echo; then
70 # used as fallback echo
71 shift
72 cat <<EOF
73 $*
74 EOF
75 exit $EXIT_SUCCESS
76 fi
77
78 default_mode=
79 help="Try \`$progname --help' for more information."
80 magic="%%%MAGIC variable%%%"
81 mkdir="mkdir"
82 mv="mv -f"
83 rm="rm -f"
84
85 # Sed substitution that helps us do robust quoting. It backslashifies
86 # metacharacters that are still active within double-quoted strings.
87 Xsed="${SED}"' -e 1s/^X//'
88 sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
89 # test EBCDIC or ASCII
90 case `echo X|tr X '\101'` in
91 A) # ASCII based system
92 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
93 SP2NL='tr \040 \012'
94 NL2SP='tr \015\012 \040\040'
95 ;;
96 *) # EBCDIC based system
97 SP2NL='tr \100 \n'
98 NL2SP='tr \r\n \100\100'
99 ;;
100 esac
101
102 # NLS nuisances.
103 # Only set LANG and LC_ALL to C if already set.
104 # These must not be set unconditionally because not all systems understand
105 # e.g. LANG=C (notably SCO).
106 # We save the old values to restore during execute mode.
107 if test "${LC_ALL+set}" = set; then
108 save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
109 fi
110 if test "${LANG+set}" = set; then
111 save_LANG="$LANG"; LANG=C; export LANG
112 fi
113
114 # Make sure IFS has a sensible default
115 lt_nl='
116 '
117 IFS=" $lt_nl"
118
119 if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
120 $echo "$modename: not configured to build any kind of library" 1>&2
121 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
122 exit $EXIT_FAILURE
123 fi
124
125 # Global variables.
126 mode=$default_mode
127 nonopt=
128 prev=
129 prevopt=
130 run=
131 show="$echo"
132 show_help=
133 execute_dlfiles=
134 duplicate_deps=no
135 preserve_args=
136 lo2o="s/\\.lo\$/.${objext}/"
137 o2lo="s/\\.${objext}\$/.lo/"
138
139 #####################################
140 # Shell function definitions:
141 # This seems to be the best place for them
142
143 # func_mktempdir [string]
144 # Make a temporary directory that won't clash with other running
145 # libtool processes, and avoids race conditions if possible. If
146 # given, STRING is the basename for that directory.
147 func_mktempdir ()
148 {
149 my_template="${TMPDIR-/tmp}/${1-$progname}"
150
151 if test "$run" = ":"; then
152 # Return a directory name, but don't create it in dry-run mode
153 my_tmpdir="${my_template}-$$"
154 else
155
156 # If mktemp works, use that first and foremost
157 my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
158
159 if test ! -d "$my_tmpdir"; then
160 # Failing that, at least try and use $RANDOM to avoid a race
161 my_tmpdir="${my_template}-${RANDOM-0}$$"
162
163 save_mktempdir_umask=`umask`
164 umask 0077
165 $mkdir "$my_tmpdir"
166 umask $save_mktempdir_umask
167 fi
168
169 # If we're not in dry-run mode, bomb out on failure
170 test -d "$my_tmpdir" || {
171 $echo "cannot create temporary directory \`$my_tmpdir'" 1>&2
172 exit $EXIT_FAILURE
173 }
174 fi
175
176 $echo "X$my_tmpdir" | $Xsed
177 }
178
179
180 # func_win32_libid arg
181 # return the library type of file 'arg'
182 #
183 # Need a lot of goo to handle *both* DLLs and import libs
184 # Has to be a shell function in order to 'eat' the argument
185 # that is supplied when $file_magic_command is called.
186 func_win32_libid ()
187 {
188 win32_libid_type="unknown"
189 win32_fileres=`file -L $1 2>/dev/null`
190 case $win32_fileres in
191 *ar\ archive\ import\ library*) # definitely import
192 win32_libid_type="x86 archive import"
193 ;;
194 *ar\ archive*) # could be an import, or static
195 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
196 $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
197 win32_nmres=`eval $NM -f posix -A $1 | \
198 $SED -n -e '1,100{/ I /{s,.*,import,;p;q;};}'`
199 case $win32_nmres in
200 import*) win32_libid_type="x86 archive import";;
201 *) win32_libid_type="x86 archive static";;
202 esac
203 fi
204 ;;
205 *DLL*)
206 win32_libid_type="x86 DLL"
207 ;;
208 *executable*) # but shell scripts are "executable" too...
209 case $win32_fileres in
210 *MS\ Windows\ PE\ Intel*)
211 win32_libid_type="x86 DLL"
212 ;;
213 esac
214 ;;
215 esac
216 $echo $win32_libid_type
217 }
218
219
220 # func_infer_tag arg
221 # Infer tagged configuration to use if any are available and
222 # if one wasn't chosen via the "--tag" command line option.
223 # Only attempt this if the compiler in the base compile
224 # command doesn't match the default compiler.
225 # arg is usually of the form 'gcc ...'
226 func_infer_tag ()
227 {
228 if test -n "$available_tags" && test -z "$tagname"; then
229 CC_quoted=
230 for arg in $CC; do
231 case $arg in
232 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
233 arg="\"$arg\""
234 ;;
235 esac
236 CC_quoted="$CC_quoted $arg"
237 done
238 case $@ in
239 # Blanks in the command may have been stripped by the calling shell,
240 # but not from the CC environment variable when configure was run.
241 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
242 # Blanks at the start of $base_compile will cause this to fail
243 # if we don't check for them as well.
244 *)
245 for z in $available_tags; do
246 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
247 # Evaluate the configuration.
248 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
249 CC_quoted=
250 for arg in $CC; do
251 # Double-quote args containing other shell metacharacters.
252 case $arg in
253 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
254 arg="\"$arg\""
255 ;;
256 esac
257 CC_quoted="$CC_quoted $arg"
258 done
259 case "$@ " in
260 " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
261 # The compiler in the base compile command matches
262 # the one in the tagged configuration.
263 # Assume this is the tagged configuration we want.
264 tagname=$z
265 break
266 ;;
267 esac
268 fi
269 done
270 # If $tagname still isn't set, then no tagged configuration
271 # was found and let the user know that the "--tag" command
272 # line option must be used.
273 if test -z "$tagname"; then
274 $echo "$modename: unable to infer tagged configuration"
275 $echo "$modename: specify a tag with \`--tag'" 1>&2
276 exit $EXIT_FAILURE
277 # else
278 # $echo "$modename: using $tagname tagged configuration"
279 fi
280 ;;
281 esac
282 fi
283 }
284
285
286 # func_extract_an_archive dir oldlib
287 func_extract_an_archive ()
288 {
289 f_ex_an_ar_dir="$1"; shift
290 f_ex_an_ar_oldlib="$1"
291
292 $show "(cd $f_ex_an_ar_dir && $AR x $f_ex_an_ar_oldlib)"
293 $run eval "(cd \$f_ex_an_ar_dir && $AR x \$f_ex_an_ar_oldlib)" || exit $?
294 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
295 :
296 else
297 $echo "$modename: ERROR: object name conflicts: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib" 1>&2
298 exit $EXIT_FAILURE
299 fi
300 }
301
302 # func_extract_archives gentop oldlib ...
303 func_extract_archives ()
304 {
305 my_gentop="$1"; shift
306 my_oldlibs=${1+"$@"}
307 my_oldobjs=""
308 my_xlib=""
309 my_xabs=""
310 my_xdir=""
311 my_status=""
312
313 $show "${rm}r $my_gentop"
314 $run ${rm}r "$my_gentop"
315 $show "$mkdir $my_gentop"
316 $run $mkdir "$my_gentop"
317 my_status=$?
318 if test "$my_status" -ne 0 && test ! -d "$my_gentop"; then
319 exit $my_status
320 fi
321
322 for my_xlib in $my_oldlibs; do
323 # Extract the objects.
324 case $my_xlib in
325 [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
326 *) my_xabs=`pwd`"/$my_xlib" ;;
327 esac
328 my_xlib=`$echo "X$my_xlib" | $Xsed -e 's%^.*/%%'`
329 my_xdir="$my_gentop/$my_xlib"
330
331 $show "${rm}r $my_xdir"
332 $run ${rm}r "$my_xdir"
333 $show "$mkdir $my_xdir"
334 $run $mkdir "$my_xdir"
335 exit_status=$?
336 if test "$exit_status" -ne 0 && test ! -d "$my_xdir"; then
337 exit $exit_status
338 fi
339 case $host in
340 *-darwin*)
341 $show "Extracting $my_xabs"
342 # Do not bother doing anything if just a dry run
343 if test -z "$run"; then
344 darwin_orig_dir=`pwd`
345 cd $my_xdir || exit $?
346 darwin_archive=$my_xabs
347 darwin_curdir=`pwd`
348 darwin_base_archive=`$echo "X$darwin_archive" | $Xsed -e 's%^.*/%%'`
349 darwin_arches=`lipo -info "$darwin_archive" 2>/dev/null | $EGREP Architectures 2>/dev/null`
350 if test -n "$darwin_arches"; then
351 darwin_arches=`echo "$darwin_arches" | $SED -e 's/.*are://'`
352 darwin_arch=
353 $show "$darwin_base_archive has multiple architectures $darwin_arches"
354 for darwin_arch in $darwin_arches ; do
355 mkdir -p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
356 lipo -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
357 cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
358 func_extract_an_archive "`pwd`" "${darwin_base_archive}"
359 cd "$darwin_curdir"
360 $rm "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
361 done # $darwin_arches
362 ## Okay now we have a bunch of thin objects, gotta fatten them up :)
363 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print| xargs basename | sort -u | $NL2SP`
364 darwin_file=
365 darwin_files=
366 for darwin_file in $darwin_filelist; do
367 darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
368 lipo -create -output "$darwin_file" $darwin_files
369 done # $darwin_filelist
370 ${rm}r unfat-$$
371 cd "$darwin_orig_dir"
372 else
373 cd "$darwin_orig_dir"
374 func_extract_an_archive "$my_xdir" "$my_xabs"
375 fi # $darwin_arches
376 fi # $run
377 ;;
378 *)
379 func_extract_an_archive "$my_xdir" "$my_xabs"
380 ;;
381 esac
382 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
383 done
384 func_extract_archives_result="$my_oldobjs"
385 }
386 # End of Shell function definitions
387 #####################################
388
389 # Darwin sucks
390 eval std_shrext=\"$shrext_cmds\"
391
392 disable_libs=no
393
394 # Parse our command line options once, thoroughly.
395 while test "$#" -gt 0
396 do
397 arg="$1"
398 shift
399
400 case $arg in
401 -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
402 *) optarg= ;;
403 esac
404
405 # If the previous option needs an argument, assign it.
406 if test -n "$prev"; then
407 case $prev in
408 execute_dlfiles)
409 execute_dlfiles="$execute_dlfiles $arg"
410 ;;
411 tag)
412 tagname="$arg"
413 preserve_args="${preserve_args}=$arg"
414
415 # Check whether tagname contains only valid characters
416 case $tagname in
417 *[!-_A-Za-z0-9,/]*)
418 $echo "$progname: invalid tag name: $tagname" 1>&2
419 exit $EXIT_FAILURE
420 ;;
421 esac
422
423 case $tagname in
424 CC)
425 # Don't test for the "default" C tag, as we know, it's there, but
426 # not specially marked.
427 ;;
428 *)
429 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
430 taglist="$taglist $tagname"
431 # Evaluate the configuration.
432 eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
433 else
434 $echo "$progname: ignoring unknown tag $tagname" 1>&2
435 fi
436 ;;
437 esac
438 ;;
439 *)
440 eval "$prev=\$arg"
441 ;;
442 esac
443
444 prev=
445 prevopt=
446 continue
447 fi
448
449 # Have we seen a non-optional argument yet?
450 case $arg in
451 --help)
452 show_help=yes
453 ;;
454
455 --version)
456 $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
457 $echo
458 $echo "Copyright (C) 2005 Free Software Foundation, Inc."
459 $echo "This is free software; see the source for copying conditions. There is NO"
460 $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
461 exit $?
462 ;;
463
464 --config)
465 ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
466 # Now print the configurations for the tags.
467 for tagname in $taglist; do
468 ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
469 done
470 exit $?
471 ;;
472
473 --debug)
474 $echo "$progname: enabling shell trace mode"
475 set -x
476 preserve_args="$preserve_args $arg"
477 ;;
478
479 --dry-run | -n)
480 run=:
481 ;;
482
483 --features)
484 $echo "host: $host"
485 if test "$build_libtool_libs" = yes; then
486 $echo "enable shared libraries"
487 else
488 $echo "disable shared libraries"
489 fi
490 if test "$build_old_libs" = yes; then
491 $echo "enable static libraries"
492 else
493 $echo "disable static libraries"
494 fi
495 exit $?
496 ;;
497
498 --finish) mode="finish" ;;
499
500 --mode) prevopt="--mode" prev=mode ;;
501 --mode=*) mode="$optarg" ;;
502
503 --preserve-dup-deps) duplicate_deps="yes" ;;
504
505 --quiet | --silent)
506 show=:
507 preserve_args="$preserve_args $arg"
508 ;;
509
510 --tag)
511 prevopt="--tag"
512 prev=tag
513 preserve_args="$preserve_args --tag"
514 ;;
515 --tag=*)
516 set tag "$optarg" ${1+"$@"}
517 shift
518 prev=tag
519 preserve_args="$preserve_args --tag"
520 ;;
521
522 -dlopen)
523 prevopt="-dlopen"
524 prev=execute_dlfiles
525 ;;
526
527 -*)
528 $echo "$modename: unrecognized option \`$arg'" 1>&2
529 $echo "$help" 1>&2
530 exit $EXIT_FAILURE
531 ;;
532
533 *)
534 nonopt="$arg"
535 break
536 ;;
537 esac
538 done
539
540 if test -n "$prevopt"; then
541 $echo "$modename: option \`$prevopt' requires an argument" 1>&2
542 $echo "$help" 1>&2
543 exit $EXIT_FAILURE
544 fi
545
546 case $disable_libs in
547 no)
548 ;;
549 shared)
550 build_libtool_libs=no
551 build_old_libs=yes
552 ;;
553 static)
554 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
555 ;;
556 esac
557
558 # If this variable is set in any of the actions, the command in it
559 # will be execed at the end. This prevents here-documents from being
560 # left over by shells.
561 exec_cmd=
562
563 if test -z "$show_help"; then
564
565 # Infer the operation mode.
566 if test -z "$mode"; then
567 $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
568 $echo "*** Future versions of Libtool will require --mode=MODE be specified." 1>&2
569 case $nonopt in
570 *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
571 mode=link
572 for arg
573 do
574 case $arg in
575 -c)
576 mode=compile
577 break
578 ;;
579 esac
580 done
581 ;;
582 *db | *dbx | *strace | *truss)
583 mode=execute
584 ;;
585 *install*|cp|mv)
586 mode=install
587 ;;
588 *rm)
589 mode=uninstall
590 ;;
591 *)
592 # If we have no mode, but dlfiles were specified, then do execute mode.
593 test -n "$execute_dlfiles" && mode=execute
594
595 # Just use the default operation mode.
596 if test -z "$mode"; then
597 if test -n "$nonopt"; then
598 $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
599 else
600 $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
601 fi
602 fi
603 ;;
604 esac
605 fi
606
607 # Only execute mode is allowed to have -dlopen flags.
608 if test -n "$execute_dlfiles" && test "$mode" != execute; then
609 $echo "$modename: unrecognized option \`-dlopen'" 1>&2
610 $echo "$help" 1>&2
611 exit $EXIT_FAILURE
612 fi
613
614 # Change the help message to a mode-specific one.
615 generic_help="$help"
616 help="Try \`$modename --help --mode=$mode' for more information."
617
618 # These modes are in order of execution frequency so that they run quickly.
619 case $mode in
620 # libtool compile mode
621 compile)
622 modename="$modename: compile"
623 # Get the compilation command and the source file.
624 base_compile=
625 srcfile="$nonopt" # always keep a non-empty value in "srcfile"
626 suppress_opt=yes
627 suppress_output=
628 arg_mode=normal
629 libobj=
630 later=
631
632 for arg
633 do
634 case $arg_mode in
635 arg )
636 # do not "continue". Instead, add this to base_compile
637 lastarg="$arg"
638 arg_mode=normal
639 ;;
640
641 target )
642 libobj="$arg"
643 arg_mode=normal
644 continue
645 ;;
646
647 normal )
648 # Accept any command-line options.
649 case $arg in
650 -o)
651 if test -n "$libobj" ; then
652 $echo "$modename: you cannot specify \`-o' more than once" 1>&2
653 exit $EXIT_FAILURE
654 fi
655 arg_mode=target
656 continue
657 ;;
658
659 -static | -prefer-pic | -prefer-non-pic)
660 later="$later $arg"
661 continue
662 ;;
663
664 -no-suppress)
665 suppress_opt=no
666 continue
667 ;;
668
669 -Xcompiler)
670 arg_mode=arg # the next one goes into the "base_compile" arg list
671 continue # The current "srcfile" will either be retained or
672 ;; # replaced later. I would guess that would be a bug.
673
674 -Wc,*)
675 args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
676 lastarg=
677 save_ifs="$IFS"; IFS=','
678 for arg in $args; do
679 IFS="$save_ifs"
680
681 # Double-quote args containing other shell metacharacters.
682 # Many Bourne shells cannot handle close brackets correctly
683 # in scan sets, so we specify it separately.
684 case $arg in
685 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
686 arg="\"$arg\""
687 ;;
688 esac
689 lastarg="$lastarg $arg"
690 done
691 IFS="$save_ifs"
692 lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
693
694 # Add the arguments to base_compile.
695 base_compile="$base_compile $lastarg"
696 continue
697 ;;
698
699 * )
700 # Accept the current argument as the source file.
701 # The previous "srcfile" becomes the current argument.
702 #
703 lastarg="$srcfile"
704 srcfile="$arg"
705 ;;
706 esac # case $arg
707 ;;
708 esac # case $arg_mode
709
710 # Aesthetically quote the previous argument.
711 lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
712
713 case $lastarg in
714 # Double-quote args containing other shell metacharacters.
715 # Many Bourne shells cannot handle close brackets correctly
716 # in scan sets, and some SunOS ksh mistreat backslash-escaping
717 # in scan sets (worked around with variable expansion),
718 # and furthermore cannot handle '|' '&' '(' ')' in scan sets
719 # at all, so we specify them separately.
720 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
721 lastarg="\"$lastarg\""
722 ;;
723 esac
724
725 base_compile="$base_compile $lastarg"
726 done # for arg
727
728 case $arg_mode in
729 arg)
730 $echo "$modename: you must specify an argument for -Xcompile"
731 exit $EXIT_FAILURE
732 ;;
733 target)
734 $echo "$modename: you must specify a target with \`-o'" 1>&2
735 exit $EXIT_FAILURE
736 ;;
737 *)
738 # Get the name of the library object.
739 [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
740 ;;
741 esac
742
743 # Recognize several different file suffixes.
744 # If the user specifies -o file.o, it is replaced with file.lo
745 xform='[cCFSifmso]'
746 case $libobj in
747 *.ada) xform=ada ;;
748 *.adb) xform=adb ;;
749 *.ads) xform=ads ;;
750 *.asm) xform=asm ;;
751 *.c++) xform=c++ ;;
752 *.cc) xform=cc ;;
753 *.ii) xform=ii ;;
754 *.class) xform=class ;;
755 *.cpp) xform=cpp ;;
756 *.cxx) xform=cxx ;;
757 *.f90) xform=f90 ;;
758 *.for) xform=for ;;
759 *.java) xform=java ;;
760 esac
761
762 libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
763
764 case $libobj in
765 *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
766 *)
767 $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
768 exit $EXIT_FAILURE
769 ;;
770 esac
771
772 func_infer_tag $base_compile
773
774 for arg in $later; do
775 case $arg in
776 -static)
777 build_old_libs=yes
778 continue
779 ;;
780
781 -prefer-pic)
782 pic_mode=yes
783 continue
784 ;;
785
786 -prefer-non-pic)
787 pic_mode=no
788 continue
789 ;;
790 esac
791 done
792
793 qlibobj=`$echo "X$libobj" | $Xsed -e "$sed_quote_subst"`
794 case $qlibobj in
795 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
796 qlibobj="\"$qlibobj\"" ;;
797 esac
798 test "X$libobj" != "X$qlibobj" \
799 && $echo "X$libobj" | grep '[]~#^*{};<>?"'"'"' &()|`$[]' \
800 && $echo "$modename: libobj name \`$libobj' may not contain shell special characters."
801 objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
802 xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
803 if test "X$xdir" = "X$obj"; then
804 xdir=
805 else
806 xdir=$xdir/
807 fi
808 lobj=${xdir}$objdir/$objname
809
810 if test -z "$base_compile"; then
811 $echo "$modename: you must specify a compilation command" 1>&2
812 $echo "$help" 1>&2
813 exit $EXIT_FAILURE
814 fi
815
816 # Delete any leftover library objects.
817 if test "$build_old_libs" = yes; then
818 removelist="$obj $lobj $libobj ${libobj}T"
819 else
820 removelist="$lobj $libobj ${libobj}T"
821 fi
822
823 $run $rm $removelist
824 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
825
826 # On Cygwin there's no "real" PIC flag so we must build both object types
827 case $host_os in
828 cygwin* | mingw* | pw32* | os2*)
829 pic_mode=default
830 ;;
831 esac
832 if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
833 # non-PIC code in shared libraries is not supported
834 pic_mode=default
835 fi
836
837 # Calculate the filename of the output object if compiler does
838 # not support -o with -c
839 if test "$compiler_c_o" = no; then
840 output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
841 lockfile="$output_obj.lock"
842 removelist="$removelist $output_obj $lockfile"
843 trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
844 else
845 output_obj=
846 need_locks=no
847 lockfile=
848 fi
849
850 # Lock this critical section if it is needed
851 # We use this script file to make the link, it avoids creating a new file
852 if test "$need_locks" = yes; then
853 until $run ln "$progpath" "$lockfile" 2>/dev/null; do
854 $show "Waiting for $lockfile to be removed"
855 sleep 2
856 done
857 elif test "$need_locks" = warn; then
858 if test -f "$lockfile"; then
859 $echo "\
860 *** ERROR, $lockfile exists and contains:
861 `cat $lockfile 2>/dev/null`
862
863 This indicates that another process is trying to use the same
864 temporary object file, and libtool could not work around it because
865 your compiler does not support \`-c' and \`-o' together. If you
866 repeat this compilation, it may succeed, by chance, but you had better
867 avoid parallel builds (make -j) in this platform, or get a better
868 compiler."
869
870 $run $rm $removelist
871 exit $EXIT_FAILURE
872 fi
873 $echo "$srcfile" > "$lockfile"
874 fi
875
876 if test -n "$fix_srcfile_path"; then
877 eval srcfile=\"$fix_srcfile_path\"
878 fi
879 qsrcfile=`$echo "X$srcfile" | $Xsed -e "$sed_quote_subst"`
880 case $qsrcfile in
881 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
882 qsrcfile="\"$qsrcfile\"" ;;
883 esac
884
885 $run $rm "$libobj" "${libobj}T"
886
887 # Create a libtool object file (analogous to a ".la" file),
888 # but don't create it if we're doing a dry run.
889 test -z "$run" && cat > ${libobj}T <<EOF
890 # $libobj - a libtool object file
891 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
892 #
893 # Please DO NOT delete this file!
894 # It is necessary for linking the library.
895
896 # Name of the PIC object.
897 EOF
898
899 # Only build a PIC object if we are building libtool libraries.
900 if test "$build_libtool_libs" = yes; then
901 # Without this assignment, base_compile gets emptied.
902 fbsd_hideous_sh_bug=$base_compile
903
904 if test "$pic_mode" != no; then
905 command="$base_compile $qsrcfile $pic_flag"
906 else
907 # Don't build PIC code
908 command="$base_compile $qsrcfile"
909 fi
910
911 if test ! -d "${xdir}$objdir"; then
912 $show "$mkdir ${xdir}$objdir"
913 $run $mkdir ${xdir}$objdir
914 exit_status=$?
915 if test "$exit_status" -ne 0 && test ! -d "${xdir}$objdir"; then
916 exit $exit_status
917 fi
918 fi
919
920 if test -z "$output_obj"; then
921 # Place PIC objects in $objdir
922 command="$command -o $lobj"
923 fi
924
925 $run $rm "$lobj" "$output_obj"
926
927 $show "$command"
928 if $run eval "$command"; then :
929 else
930 test -n "$output_obj" && $run $rm $removelist
931 exit $EXIT_FAILURE
932 fi
933
934 if test "$need_locks" = warn &&
935 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
936 $echo "\
937 *** ERROR, $lockfile contains:
938 `cat $lockfile 2>/dev/null`
939
940 but it should contain:
941 $srcfile
942
943 This indicates that another process is trying to use the same
944 temporary object file, and libtool could not work around it because
945 your compiler does not support \`-c' and \`-o' together. If you
946 repeat this compilation, it may succeed, by chance, but you had better
947 avoid parallel builds (make -j) in this platform, or get a better
948 compiler."
949
950 $run $rm $removelist
951 exit $EXIT_FAILURE
952 fi
953
954 # Just move the object if needed, then go on to compile the next one
955 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
956 $show "$mv $output_obj $lobj"
957 if $run $mv $output_obj $lobj; then :
958 else
959 error=$?
960 $run $rm $removelist
961 exit $error
962 fi
963 fi
964
965 # Append the name of the PIC object to the libtool object file.
966 test -z "$run" && cat >> ${libobj}T <<EOF
967 pic_object='$objdir/$objname'
968
969 EOF
970
971 # Allow error messages only from the first compilation.
972 if test "$suppress_opt" = yes; then
973 suppress_output=' >/dev/null 2>&1'
974 fi
975 else
976 # No PIC object so indicate it doesn't exist in the libtool
977 # object file.
978 test -z "$run" && cat >> ${libobj}T <<EOF
979 pic_object=none
980
981 EOF
982 fi
983
984 # Only build a position-dependent object if we build old libraries.
985 if test "$build_old_libs" = yes; then
986 if test "$pic_mode" != yes; then
987 # Don't build PIC code
988 command="$base_compile $qsrcfile"
989 else
990 command="$base_compile $qsrcfile $pic_flag"
991 fi
992 if test "$compiler_c_o" = yes; then
993 command="$command -o $obj"
994 fi
995
996 # Suppress compiler output if we already did a PIC compilation.
997 command="$command$suppress_output"
998 $run $rm "$obj" "$output_obj"
999 $show "$command"
1000 if $run eval "$command"; then :
1001 else
1002 $run $rm $removelist
1003 exit $EXIT_FAILURE
1004 fi
1005
1006 if test "$need_locks" = warn &&
1007 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
1008 $echo "\
1009 *** ERROR, $lockfile contains:
1010 `cat $lockfile 2>/dev/null`
1011
1012 but it should contain:
1013 $srcfile
1014
1015 This indicates that another process is trying to use the same
1016 temporary object file, and libtool could not work around it because
1017 your compiler does not support \`-c' and \`-o' together. If you
1018 repeat this compilation, it may succeed, by chance, but you had better
1019 avoid parallel builds (make -j) in this platform, or get a better
1020 compiler."
1021
1022 $run $rm $removelist
1023 exit $EXIT_FAILURE
1024 fi
1025
1026 # Just move the object if needed
1027 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
1028 $show "$mv $output_obj $obj"
1029 if $run $mv $output_obj $obj; then :
1030 else
1031 error=$?
1032 $run $rm $removelist
1033 exit $error
1034 fi
1035 fi
1036
1037 # Append the name of the non-PIC object the libtool object file.
1038 # Only append if the libtool object file exists.
1039 test -z "$run" && cat >> ${libobj}T <<EOF
1040 # Name of the non-PIC object.
1041 non_pic_object='$objname'
1042
1043 EOF
1044 else
1045 # Append the name of the non-PIC object the libtool object file.
1046 # Only append if the libtool object file exists.
1047 test -z "$run" && cat >> ${libobj}T <<EOF
1048 # Name of the non-PIC object.
1049 non_pic_object=none
1050
1051 EOF
1052 fi
1053
1054 $run $mv "${libobj}T" "${libobj}"
1055
1056 # Unlock the critical section if it was locked
1057 if test "$need_locks" != no; then
1058 $run $rm "$lockfile"
1059 fi
1060
1061 exit $EXIT_SUCCESS
1062 ;;
1063
1064 # libtool link mode
1065 link | relink)
1066 modename="$modename: link"
1067 case $host in
1068 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1069 # It is impossible to link a dll without this setting, and
1070 # we shouldn't force the makefile maintainer to figure out
1071 # which system we are compiling for in order to pass an extra
1072 # flag for every libtool invocation.
1073 # allow_undefined=no
1074
1075 # FIXME: Unfortunately, there are problems with the above when trying
1076 # to make a dll which has undefined symbols, in which case not
1077 # even a static library is built. For now, we need to specify
1078 # -no-undefined on the libtool link line when we can be certain
1079 # that all symbols are satisfied, otherwise we get a static library.
1080 allow_undefined=yes
1081 ;;
1082 *)
1083 allow_undefined=yes
1084 ;;
1085 esac
1086 libtool_args="$nonopt"
1087 base_compile="$nonopt $@"
1088 compile_command="$nonopt"
1089 finalize_command="$nonopt"
1090
1091 compile_rpath=
1092 finalize_rpath=
1093 compile_shlibpath=
1094 finalize_shlibpath=
1095 convenience=
1096 old_convenience=
1097 deplibs=
1098 old_deplibs=
1099 compiler_flags=
1100 linker_flags=
1101 dllsearchpath=
1102 lib_search_path=`pwd`
1103 inst_prefix_dir=
1104
1105 avoid_version=no
1106 dlfiles=
1107 dlprefiles=
1108 dlself=no
1109 export_dynamic=no
1110 export_symbols=
1111 export_symbols_regex=
1112 generated=
1113 libobjs=
1114 ltlibs=
1115 module=no
1116 no_install=no
1117 objs=
1118 non_pic_objects=
1119 notinst_path= # paths that contain not-installed libtool libraries
1120 precious_files_regex=
1121 prefer_static_libs=no
1122 preload=no
1123 prev=
1124 prevarg=
1125 release=
1126 rpath=
1127 xrpath=
1128 perm_rpath=
1129 temp_rpath=
1130 thread_safe=no
1131 vinfo=
1132 vinfo_number=no
1133
1134 func_infer_tag $base_compile
1135
1136 # We need to know -static, to get the right output filenames.
1137 for arg
1138 do
1139 case $arg in
1140 -all-static | -static)
1141 if test "X$arg" = "X-all-static"; then
1142 if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
1143 $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
1144 fi
1145 if test -n "$link_static_flag"; then
1146 dlopen_self=$dlopen_self_static
1147 fi
1148 prefer_static_libs=yes
1149 else
1150 if test -z "$pic_flag" && test -n "$link_static_flag"; then
1151 dlopen_self=$dlopen_self_static
1152 fi
1153 prefer_static_libs=built
1154 fi
1155 build_libtool_libs=no
1156 build_old_libs=yes
1157 break
1158 ;;
1159 esac
1160 done
1161
1162 # See if our shared archives depend on static archives.
1163 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
1164
1165 # Go through the arguments, transforming them on the way.
1166 while test "$#" -gt 0; do
1167 arg="$1"
1168 shift
1169 case $arg in
1170 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1171 qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
1172 ;;
1173 *) qarg=$arg ;;
1174 esac
1175 libtool_args="$libtool_args $qarg"
1176
1177 # If the previous option needs an argument, assign it.
1178 if test -n "$prev"; then
1179 case $prev in
1180 output)
1181 compile_command="$compile_command @OUTPUT@"
1182 finalize_command="$finalize_command @OUTPUT@"
1183 ;;
1184 esac
1185
1186 case $prev in
1187 dlfiles|dlprefiles)
1188 if test "$preload" = no; then
1189 # Add the symbol object into the linking commands.
1190 compile_command="$compile_command @SYMFILE@"
1191 finalize_command="$finalize_command @SYMFILE@"
1192 preload=yes
1193 fi
1194 case $arg in
1195 *.la | *.lo) ;; # We handle these cases below.
1196 force)
1197 if test "$dlself" = no; then
1198 dlself=needless
1199 export_dynamic=yes
1200 fi
1201 prev=
1202 continue
1203 ;;
1204 self)
1205 if test "$prev" = dlprefiles; then
1206 dlself=yes
1207 elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
1208 dlself=yes
1209 else
1210 dlself=needless
1211 export_dynamic=yes
1212 fi
1213 prev=
1214 continue
1215 ;;
1216 *)
1217 if test "$prev" = dlfiles; then
1218 dlfiles="$dlfiles $arg"
1219 else
1220 dlprefiles="$dlprefiles $arg"
1221 fi
1222 prev=
1223 continue
1224 ;;
1225 esac
1226 ;;
1227 expsyms)
1228 export_symbols="$arg"
1229 if test ! -f "$arg"; then
1230 $echo "$modename: symbol file \`$arg' does not exist"
1231 exit $EXIT_FAILURE
1232 fi
1233 prev=
1234 continue
1235 ;;
1236 expsyms_regex)
1237 export_symbols_regex="$arg"
1238 prev=
1239 continue
1240 ;;
1241 inst_prefix)
1242 inst_prefix_dir="$arg"
1243 prev=
1244 continue
1245 ;;
1246 precious_regex)
1247 precious_files_regex="$arg"
1248 prev=
1249 continue
1250 ;;
1251 release)
1252 release="-$arg"
1253 prev=
1254 continue
1255 ;;
1256 objectlist)
1257 if test -f "$arg"; then
1258 save_arg=$arg
1259 moreargs=
1260 for fil in `cat $save_arg`
1261 do
1262 # moreargs="$moreargs $fil"
1263 arg=$fil
1264 # A libtool-controlled object.
1265
1266 # Check to see that this really is a libtool object.
1267 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1268 pic_object=
1269 non_pic_object=
1270
1271 # Read the .lo file
1272 # If there is no directory component, then add one.
1273 case $arg in
1274 */* | *\\*) . $arg ;;
1275 *) . ./$arg ;;
1276 esac
1277
1278 if test -z "$pic_object" || \
1279 test -z "$non_pic_object" ||
1280 test "$pic_object" = none && \
1281 test "$non_pic_object" = none; then
1282 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1283 exit $EXIT_FAILURE
1284 fi
1285
1286 # Extract subdirectory from the argument.
1287 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1288 if test "X$xdir" = "X$arg"; then
1289 xdir=
1290 else
1291 xdir="$xdir/"
1292 fi
1293
1294 if test "$pic_object" != none; then
1295 # Prepend the subdirectory the object is found in.
1296 pic_object="$xdir$pic_object"
1297
1298 if test "$prev" = dlfiles; then
1299 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1300 dlfiles="$dlfiles $pic_object"
1301 prev=
1302 continue
1303 else
1304 # If libtool objects are unsupported, then we need to preload.
1305 prev=dlprefiles
1306 fi
1307 fi
1308
1309 # CHECK ME: I think I busted this. -Ossama
1310 if test "$prev" = dlprefiles; then
1311 # Preload the old-style object.
1312 dlprefiles="$dlprefiles $pic_object"
1313 prev=
1314 fi
1315
1316 # A PIC object.
1317 libobjs="$libobjs $pic_object"
1318 arg="$pic_object"
1319 fi
1320
1321 # Non-PIC object.
1322 if test "$non_pic_object" != none; then
1323 # Prepend the subdirectory the object is found in.
1324 non_pic_object="$xdir$non_pic_object"
1325
1326 # A standard non-PIC object
1327 non_pic_objects="$non_pic_objects $non_pic_object"
1328 if test -z "$pic_object" || test "$pic_object" = none ; then
1329 arg="$non_pic_object"
1330 fi
1331 else
1332 # If the PIC object exists, use it instead.
1333 # $xdir was prepended to $pic_object above.
1334 non_pic_object="$pic_object"
1335 non_pic_objects="$non_pic_objects $non_pic_object"
1336 fi
1337 else
1338 # Only an error if not doing a dry-run.
1339 if test -z "$run"; then
1340 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1341 exit $EXIT_FAILURE
1342 else
1343 # Dry-run case.
1344
1345 # Extract subdirectory from the argument.
1346 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1347 if test "X$xdir" = "X$arg"; then
1348 xdir=
1349 else
1350 xdir="$xdir/"
1351 fi
1352
1353 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1354 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1355 libobjs="$libobjs $pic_object"
1356 non_pic_objects="$non_pic_objects $non_pic_object"
1357 fi
1358 fi
1359 done
1360 else
1361 $echo "$modename: link input file \`$save_arg' does not exist"
1362 exit $EXIT_FAILURE
1363 fi
1364 arg=$save_arg
1365 prev=
1366 continue
1367 ;;
1368 rpath | xrpath)
1369 # We need an absolute path.
1370 case $arg in
1371 [\\/]* | [A-Za-z]:[\\/]*) ;;
1372 *)
1373 $echo "$modename: only absolute run-paths are allowed" 1>&2
1374 exit $EXIT_FAILURE
1375 ;;
1376 esac
1377 if test "$prev" = rpath; then
1378 case "$rpath " in
1379 *" $arg "*) ;;
1380 *) rpath="$rpath $arg" ;;
1381 esac
1382 else
1383 case "$xrpath " in
1384 *" $arg "*) ;;
1385 *) xrpath="$xrpath $arg" ;;
1386 esac
1387 fi
1388 prev=
1389 continue
1390 ;;
1391 xcompiler)
1392 compiler_flags="$compiler_flags $qarg"
1393 prev=
1394 compile_command="$compile_command $qarg"
1395 finalize_command="$finalize_command $qarg"
1396 continue
1397 ;;
1398 xlinker)
1399 linker_flags="$linker_flags $qarg"
1400 compiler_flags="$compiler_flags $wl$qarg"
1401 prev=
1402 compile_command="$compile_command $wl$qarg"
1403 finalize_command="$finalize_command $wl$qarg"
1404 continue
1405 ;;
1406 xcclinker)
1407 linker_flags="$linker_flags $qarg"
1408 compiler_flags="$compiler_flags $qarg"
1409 prev=
1410 compile_command="$compile_command $qarg"
1411 finalize_command="$finalize_command $qarg"
1412 continue
1413 ;;
1414 shrext)
1415 shrext_cmds="$arg"
1416 prev=
1417 continue
1418 ;;
1419 darwin_framework|darwin_framework_skip)
1420 test "$prev" = "darwin_framework" && compiler_flags="$compiler_flags $arg"
1421 compile_command="$compile_command $arg"
1422 finalize_command="$finalize_command $arg"
1423 prev=
1424 continue
1425 ;;
1426 *)
1427 eval "$prev=\"\$arg\""
1428 prev=
1429 continue
1430 ;;
1431 esac
1432 fi # test -n "$prev"
1433
1434 prevarg="$arg"
1435
1436 case $arg in
1437 -all-static)
1438 if test -n "$link_static_flag"; then
1439 compile_command="$compile_command $link_static_flag"
1440 finalize_command="$finalize_command $link_static_flag"
1441 fi
1442 continue
1443 ;;
1444
1445 -allow-undefined)
1446 # FIXME: remove this flag sometime in the future.
1447 $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
1448 continue
1449 ;;
1450
1451 -avoid-version)
1452 avoid_version=yes
1453 continue
1454 ;;
1455
1456 -dlopen)
1457 prev=dlfiles
1458 continue
1459 ;;
1460
1461 -dlpreopen)
1462 prev=dlprefiles
1463 continue
1464 ;;
1465
1466 -export-dynamic)
1467 export_dynamic=yes
1468 continue
1469 ;;
1470
1471 -export-symbols | -export-symbols-regex)
1472 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
1473 $echo "$modename: more than one -exported-symbols argument is not allowed"
1474 exit $EXIT_FAILURE
1475 fi
1476 if test "X$arg" = "X-export-symbols"; then
1477 prev=expsyms
1478 else
1479 prev=expsyms_regex
1480 fi
1481 continue
1482 ;;
1483
1484 -framework|-arch|-isysroot)
1485 case " $CC " in
1486 *" ${arg} ${1} "* | *" ${arg} ${1} "*)
1487 prev=darwin_framework_skip ;;
1488 *) compiler_flags="$compiler_flags $arg"
1489 prev=darwin_framework ;;
1490 esac
1491 compile_command="$compile_command $arg"
1492 finalize_command="$finalize_command $arg"
1493 continue
1494 ;;
1495
1496 -inst-prefix-dir)
1497 prev=inst_prefix
1498 continue
1499 ;;
1500
1501 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
1502 # so, if we see these flags be careful not to treat them like -L
1503 -L[A-Z][A-Z]*:*)
1504 case $with_gcc/$host in
1505 no/*-*-irix* | /*-*-irix*)
1506 compile_command="$compile_command $arg"
1507 finalize_command="$finalize_command $arg"
1508 ;;
1509 esac
1510 continue
1511 ;;
1512
1513 -L*)
1514 dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
1515 # We need an absolute path.
1516 case $dir in
1517 [\\/]* | [A-Za-z]:[\\/]*) ;;
1518 *)
1519 absdir=`cd "$dir" && pwd`
1520 if test -z "$absdir"; then
1521 $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
1522 absdir="$dir"
1523 notinst_path="$notinst_path $dir"
1524 fi
1525 dir="$absdir"
1526 ;;
1527 esac
1528 case "$deplibs " in
1529 *" -L$dir "*) ;;
1530 *)
1531 deplibs="$deplibs -L$dir"
1532 lib_search_path="$lib_search_path $dir"
1533 ;;
1534 esac
1535 case $host in
1536 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1537 testbindir=`$echo "X$dir" | $Xsed -e 's*/lib$*/bin*'`
1538 case :$dllsearchpath: in
1539 *":$dir:"*) ;;
1540 *) dllsearchpath="$dllsearchpath:$dir";;
1541 esac
1542 case :$dllsearchpath: in
1543 *":$testbindir:"*) ;;
1544 *) dllsearchpath="$dllsearchpath:$testbindir";;
1545 esac
1546 ;;
1547 esac
1548 continue
1549 ;;
1550
1551 -l*)
1552 if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
1553 case $host in
1554 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
1555 # These systems don't actually have a C or math library (as such)
1556 continue
1557 ;;
1558 *-*-os2*)
1559 # These systems don't actually have a C library (as such)
1560 test "X$arg" = "X-lc" && continue
1561 ;;
1562 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1563 # Do not include libc due to us having libc/libc_r.
1564 test "X$arg" = "X-lc" && continue
1565 ;;
1566 *-*-rhapsody* | *-*-darwin1.[012])
1567 # Rhapsody C and math libraries are in the System framework
1568 deplibs="$deplibs -framework System"
1569 continue
1570 ;;
1571 *-*-sco3.2v5* | *-*-sco5v6*)
1572 # Causes problems with __ctype
1573 test "X$arg" = "X-lc" && continue
1574 ;;
1575 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
1576 # Compiler inserts libc in the correct place for threads to work
1577 test "X$arg" = "X-lc" && continue
1578 ;;
1579 esac
1580 elif test "X$arg" = "X-lc_r"; then
1581 case $host in
1582 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
1583 # Do not include libc_r directly, use -pthread flag.
1584 continue
1585 ;;
1586 esac
1587 fi
1588 deplibs="$deplibs $arg"
1589 continue
1590 ;;
1591
1592 # Tru64 UNIX uses -model [arg] to determine the layout of C++
1593 # classes, name mangling, and exception handling.
1594 -model)
1595 compile_command="$compile_command $arg"
1596 compiler_flags="$compiler_flags $arg"
1597 finalize_command="$finalize_command $arg"
1598 prev=xcompiler
1599 continue
1600 ;;
1601
1602 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
1603 compiler_flags="$compiler_flags $arg"
1604 compile_command="$compile_command $arg"
1605 finalize_command="$finalize_command $arg"
1606 continue
1607 ;;
1608
1609 -module)
1610 module=yes
1611 continue
1612 ;;
1613
1614 # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
1615 # -r[0-9][0-9]* specifies the processor on the SGI compiler
1616 # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
1617 # +DA*, +DD* enable 64-bit mode on the HP compiler
1618 # -q* pass through compiler args for the IBM compiler
1619 # -m* pass through architecture-specific compiler args for GCC
1620 # -m*, -t[45]*, -txscale* pass through architecture-specific
1621 # compiler args for GCC
1622 # -pg pass through profiling flag for GCC
1623 # @file GCC response files
1624 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*|-pg| \
1625 -t[45]*|-txscale*|@*)
1626
1627 # Unknown arguments in both finalize_command and compile_command need
1628 # to be aesthetically quoted because they are evaled later.
1629 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1630 case $arg in
1631 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1632 arg="\"$arg\""
1633 ;;
1634 esac
1635 compile_command="$compile_command $arg"
1636 finalize_command="$finalize_command $arg"
1637 compiler_flags="$compiler_flags $arg"
1638 continue
1639 ;;
1640
1641 -shrext)
1642 prev=shrext
1643 continue
1644 ;;
1645
1646 -no-fast-install)
1647 fast_install=no
1648 continue
1649 ;;
1650
1651 -no-install)
1652 case $host in
1653 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
1654 # The PATH hackery in wrapper scripts is required on Windows
1655 # in order for the loader to find any dlls it needs.
1656 $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
1657 $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
1658 fast_install=no
1659 ;;
1660 *) no_install=yes ;;
1661 esac
1662 continue
1663 ;;
1664
1665 -no-undefined)
1666 allow_undefined=no
1667 continue
1668 ;;
1669
1670 -objectlist)
1671 prev=objectlist
1672 continue
1673 ;;
1674
1675 -o) prev=output ;;
1676
1677 -precious-files-regex)
1678 prev=precious_regex
1679 continue
1680 ;;
1681
1682 -release)
1683 prev=release
1684 continue
1685 ;;
1686
1687 -rpath)
1688 prev=rpath
1689 continue
1690 ;;
1691
1692 -R)
1693 prev=xrpath
1694 continue
1695 ;;
1696
1697 -R*)
1698 dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
1699 # We need an absolute path.
1700 case $dir in
1701 [\\/]* | [A-Za-z]:[\\/]*) ;;
1702 *)
1703 $echo "$modename: only absolute run-paths are allowed" 1>&2
1704 exit $EXIT_FAILURE
1705 ;;
1706 esac
1707 case "$xrpath " in
1708 *" $dir "*) ;;
1709 *) xrpath="$xrpath $dir" ;;
1710 esac
1711 continue
1712 ;;
1713
1714 -static)
1715 # The effects of -static are defined in a previous loop.
1716 # We used to do the same as -all-static on platforms that
1717 # didn't have a PIC flag, but the assumption that the effects
1718 # would be equivalent was wrong. It would break on at least
1719 # Digital Unix and AIX.
1720 continue
1721 ;;
1722
1723 -thread-safe)
1724 thread_safe=yes
1725 continue
1726 ;;
1727
1728 -version-info)
1729 prev=vinfo
1730 continue
1731 ;;
1732 -version-number)
1733 prev=vinfo
1734 vinfo_number=yes
1735 continue
1736 ;;
1737
1738 -Wc,*)
1739 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
1740 arg=
1741 save_ifs="$IFS"; IFS=','
1742 for flag in $args; do
1743 IFS="$save_ifs"
1744 case $flag in
1745 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1746 flag="\"$flag\""
1747 ;;
1748 esac
1749 arg="$arg $wl$flag"
1750 compiler_flags="$compiler_flags $flag"
1751 done
1752 IFS="$save_ifs"
1753 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1754 ;;
1755
1756 -Wl,*)
1757 args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
1758 arg=
1759 save_ifs="$IFS"; IFS=','
1760 for flag in $args; do
1761 IFS="$save_ifs"
1762 case $flag in
1763 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1764 flag="\"$flag\""
1765 ;;
1766 esac
1767 arg="$arg $wl$flag"
1768 compiler_flags="$compiler_flags $wl$flag"
1769 linker_flags="$linker_flags $flag"
1770 done
1771 IFS="$save_ifs"
1772 arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
1773 ;;
1774
1775 -Xcompiler)
1776 prev=xcompiler
1777 continue
1778 ;;
1779
1780 -Xlinker)
1781 prev=xlinker
1782 continue
1783 ;;
1784
1785 -XCClinker)
1786 prev=xcclinker
1787 continue
1788 ;;
1789
1790 # Some other compiler flag.
1791 -* | +*)
1792 # Unknown arguments in both finalize_command and compile_command need
1793 # to be aesthetically quoted because they are evaled later.
1794 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1795 case $arg in
1796 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1797 arg="\"$arg\""
1798 ;;
1799 esac
1800 ;;
1801
1802 *.$objext)
1803 # A standard object.
1804 objs="$objs $arg"
1805 ;;
1806
1807 *.lo)
1808 # A libtool-controlled object.
1809
1810 # Check to see that this really is a libtool object.
1811 if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
1812 pic_object=
1813 non_pic_object=
1814
1815 # Read the .lo file
1816 # If there is no directory component, then add one.
1817 case $arg in
1818 */* | *\\*) . $arg ;;
1819 *) . ./$arg ;;
1820 esac
1821
1822 if test -z "$pic_object" || \
1823 test -z "$non_pic_object" ||
1824 test "$pic_object" = none && \
1825 test "$non_pic_object" = none; then
1826 $echo "$modename: cannot find name of object for \`$arg'" 1>&2
1827 exit $EXIT_FAILURE
1828 fi
1829
1830 # Extract subdirectory from the argument.
1831 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1832 if test "X$xdir" = "X$arg"; then
1833 xdir=
1834 else
1835 xdir="$xdir/"
1836 fi
1837
1838 if test "$pic_object" != none; then
1839 # Prepend the subdirectory the object is found in.
1840 pic_object="$xdir$pic_object"
1841
1842 if test "$prev" = dlfiles; then
1843 if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
1844 dlfiles="$dlfiles $pic_object"
1845 prev=
1846 continue
1847 else
1848 # If libtool objects are unsupported, then we need to preload.
1849 prev=dlprefiles
1850 fi
1851 fi
1852
1853 # CHECK ME: I think I busted this. -Ossama
1854 if test "$prev" = dlprefiles; then
1855 # Preload the old-style object.
1856 dlprefiles="$dlprefiles $pic_object"
1857 prev=
1858 fi
1859
1860 # A PIC object.
1861 libobjs="$libobjs $pic_object"
1862 arg="$pic_object"
1863 fi
1864
1865 # Non-PIC object.
1866 if test "$non_pic_object" != none; then
1867 # Prepend the subdirectory the object is found in.
1868 non_pic_object="$xdir$non_pic_object"
1869
1870 # A standard non-PIC object
1871 non_pic_objects="$non_pic_objects $non_pic_object"
1872 if test -z "$pic_object" || test "$pic_object" = none ; then
1873 arg="$non_pic_object"
1874 fi
1875 else
1876 # If the PIC object exists, use it instead.
1877 # $xdir was prepended to $pic_object above.
1878 non_pic_object="$pic_object"
1879 non_pic_objects="$non_pic_objects $non_pic_object"
1880 fi
1881 else
1882 # Only an error if not doing a dry-run.
1883 if test -z "$run"; then
1884 $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
1885 exit $EXIT_FAILURE
1886 else
1887 # Dry-run case.
1888
1889 # Extract subdirectory from the argument.
1890 xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
1891 if test "X$xdir" = "X$arg"; then
1892 xdir=
1893 else
1894 xdir="$xdir/"
1895 fi
1896
1897 pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
1898 non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
1899 libobjs="$libobjs $pic_object"
1900 non_pic_objects="$non_pic_objects $non_pic_object"
1901 fi
1902 fi
1903 ;;
1904
1905 *.$libext)
1906 # An archive.
1907 deplibs="$deplibs $arg"
1908 old_deplibs="$old_deplibs $arg"
1909 continue
1910 ;;
1911
1912 *.la)
1913 # A libtool-controlled library.
1914
1915 if test "$prev" = dlfiles; then
1916 # This library was specified with -dlopen.
1917 dlfiles="$dlfiles $arg"
1918 prev=
1919 elif test "$prev" = dlprefiles; then
1920 # The library was specified with -dlpreopen.
1921 dlprefiles="$dlprefiles $arg"
1922 prev=
1923 else
1924 deplibs="$deplibs $arg"
1925 fi
1926 continue
1927 ;;
1928
1929 # Some other compiler argument.
1930 *)
1931 # Unknown arguments in both finalize_command and compile_command need
1932 # to be aesthetically quoted because they are evaled later.
1933 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
1934 case $arg in
1935 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1936 arg="\"$arg\""
1937 ;;
1938 esac
1939 ;;
1940 esac # arg
1941
1942 # Now actually substitute the argument into the commands.
1943 if test -n "$arg"; then
1944 compile_command="$compile_command $arg"
1945 finalize_command="$finalize_command $arg"
1946 fi
1947 done # argument parsing loop
1948
1949 if test -n "$prev"; then
1950 $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
1951 $echo "$help" 1>&2
1952 exit $EXIT_FAILURE
1953 fi
1954
1955 if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
1956 eval arg=\"$export_dynamic_flag_spec\"
1957 compile_command="$compile_command $arg"
1958 finalize_command="$finalize_command $arg"
1959 fi
1960
1961 oldlibs=
1962 # calculate the name of the file, without its directory
1963 outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
1964 libobjs_save="$libobjs"
1965
1966 if test -n "$shlibpath_var"; then
1967 # get the directories listed in $shlibpath_var
1968 eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
1969 else
1970 shlib_search_path=
1971 fi
1972 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
1973 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
1974
1975 output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
1976 if test "X$output_objdir" = "X$output"; then
1977 output_objdir="$objdir"
1978 else
1979 output_objdir="$output_objdir/$objdir"
1980 fi
1981 # Create the object directory.
1982 if test ! -d "$output_objdir"; then
1983 $show "$mkdir $output_objdir"
1984 $run $mkdir $output_objdir
1985 exit_status=$?
1986 if test "$exit_status" -ne 0 && test ! -d "$output_objdir"; then
1987 exit $exit_status
1988 fi
1989 fi
1990
1991 # Determine the type of output
1992 case $output in
1993 "")
1994 $echo "$modename: you must specify an output file" 1>&2
1995 $echo "$help" 1>&2
1996 exit $EXIT_FAILURE
1997 ;;
1998 *.$libext) linkmode=oldlib ;;
1999 *.lo | *.$objext) linkmode=obj ;;
2000 *.la) linkmode=lib ;;
2001 *) linkmode=prog ;; # Anything else should be a program.
2002 esac
2003
2004 case $host in
2005 *cygwin* | *mingw* | *pw32*)
2006 # don't eliminate duplications in $postdeps and $predeps
2007 duplicate_compiler_generated_deps=yes
2008 ;;
2009 *)
2010 duplicate_compiler_generated_deps=$duplicate_deps
2011 ;;
2012 esac
2013 specialdeplibs=
2014
2015 libs=
2016 # Find all interdependent deplibs by searching for libraries
2017 # that are linked more than once (e.g. -la -lb -la)
2018 for deplib in $deplibs; do
2019 if test "X$duplicate_deps" = "Xyes" ; then
2020 case "$libs " in
2021 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2022 esac
2023 fi
2024 libs="$libs $deplib"
2025 done
2026
2027 if test "$linkmode" = lib; then
2028 libs="$predeps $libs $compiler_lib_search_path $postdeps"
2029
2030 # Compute libraries that are listed more than once in $predeps
2031 # $postdeps and mark them as special (i.e., whose duplicates are
2032 # not to be eliminated).
2033 pre_post_deps=
2034 if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
2035 for pre_post_dep in $predeps $postdeps; do
2036 case "$pre_post_deps " in
2037 *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
2038 esac
2039 pre_post_deps="$pre_post_deps $pre_post_dep"
2040 done
2041 fi
2042 pre_post_deps=
2043 fi
2044
2045 deplibs=
2046 newdependency_libs=
2047 newlib_search_path=
2048 need_relink=no # whether we're linking any uninstalled libtool libraries
2049 notinst_deplibs= # not-installed libtool libraries
2050 case $linkmode in
2051 lib)
2052 passes="conv link"
2053 for file in $dlfiles $dlprefiles; do
2054 case $file in
2055 *.la) ;;
2056 *)
2057 $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
2058 exit $EXIT_FAILURE
2059 ;;
2060 esac
2061 done
2062 ;;
2063 prog)
2064 compile_deplibs=
2065 finalize_deplibs=
2066 alldeplibs=no
2067 newdlfiles=
2068 newdlprefiles=
2069 passes="conv scan dlopen dlpreopen link"
2070 ;;
2071 *) passes="conv"
2072 ;;
2073 esac
2074 for pass in $passes; do
2075 if test "$linkmode,$pass" = "lib,link" ||
2076 test "$linkmode,$pass" = "prog,scan"; then
2077 libs="$deplibs"
2078 deplibs=
2079 fi
2080 if test "$linkmode" = prog; then
2081 case $pass in
2082 dlopen) libs="$dlfiles" ;;
2083 dlpreopen) libs="$dlprefiles" ;;
2084 link)
2085 libs="$deplibs %DEPLIBS%"
2086 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
2087 ;;
2088 esac
2089 fi
2090 if test "$pass" = dlopen; then
2091 # Collect dlpreopened libraries
2092 save_deplibs="$deplibs"
2093 deplibs=
2094 fi
2095 for deplib in $libs; do
2096 lib=
2097 found=no
2098 case $deplib in
2099 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
2100 if test "$linkmode,$pass" = "prog,link"; then
2101 compile_deplibs="$deplib $compile_deplibs"
2102 finalize_deplibs="$deplib $finalize_deplibs"
2103 else
2104 compiler_flags="$compiler_flags $deplib"
2105 fi
2106 continue
2107 ;;
2108 -l*)
2109 if test "$linkmode" != lib && test "$linkmode" != prog; then
2110 $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
2111 continue
2112 fi
2113 name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
2114 for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
2115 for search_ext in .la $std_shrext .so .a; do
2116 # Search the libtool library
2117 lib="$searchdir/lib${name}${search_ext}"
2118 if test -f "$lib"; then
2119 if test "$search_ext" = ".la"; then
2120 found=yes
2121 else
2122 found=no
2123 fi
2124 break 2
2125 fi
2126 done
2127 done
2128 if test "$found" != yes; then
2129 # deplib doesn't seem to be a libtool library
2130 if test "$linkmode,$pass" = "prog,link"; then
2131 compile_deplibs="$deplib $compile_deplibs"
2132 finalize_deplibs="$deplib $finalize_deplibs"
2133 else
2134 deplibs="$deplib $deplibs"
2135 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2136 fi
2137 continue
2138 else # deplib is a libtool library
2139 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
2140 # We need to do some special things here, and not later.
2141 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
2142 case " $predeps $postdeps " in
2143 *" $deplib "*)
2144 if (${SED} -e '2q' $lib |
2145 grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
2146 library_names=
2147 old_library=
2148 case $lib in
2149 */* | *\\*) . $lib ;;
2150 *) . ./$lib ;;
2151 esac
2152 for l in $old_library $library_names; do
2153 ll="$l"
2154 done
2155 if test "X$ll" = "X$old_library" ; then # only static version available
2156 found=no
2157 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2158 test "X$ladir" = "X$lib" && ladir="."
2159 lib=$ladir/$old_library
2160 if test "$linkmode,$pass" = "prog,link"; then
2161 compile_deplibs="$deplib $compile_deplibs"
2162 finalize_deplibs="$deplib $finalize_deplibs"
2163 else
2164 deplibs="$deplib $deplibs"
2165 test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
2166 fi
2167 continue
2168 fi
2169 fi
2170 ;;
2171 *) ;;
2172 esac
2173 fi
2174 fi
2175 ;; # -l
2176 -L*)
2177 case $linkmode in
2178 lib)
2179 deplibs="$deplib $deplibs"
2180 test "$pass" = conv && continue
2181 newdependency_libs="$deplib $newdependency_libs"
2182 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2183 ;;
2184 prog)
2185 if test "$pass" = conv; then
2186 deplibs="$deplib $deplibs"
2187 continue
2188 fi
2189 if test "$pass" = scan; then
2190 deplibs="$deplib $deplibs"
2191 else
2192 compile_deplibs="$deplib $compile_deplibs"
2193 finalize_deplibs="$deplib $finalize_deplibs"
2194 fi
2195 newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
2196 ;;
2197 *)
2198 $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
2199 ;;
2200 esac # linkmode
2201 continue
2202 ;; # -L
2203 -R*)
2204 if test "$pass" = link; then
2205 dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
2206 # Make sure the xrpath contains only unique directories.
2207 case "$xrpath " in
2208 *" $dir "*) ;;
2209 *) xrpath="$xrpath $dir" ;;
2210 esac
2211 fi
2212 deplibs="$deplib $deplibs"
2213 continue
2214 ;;
2215 *.la) lib="$deplib" ;;
2216 *.$libext)
2217 if test "$pass" = conv; then
2218 deplibs="$deplib $deplibs"
2219 continue
2220 fi
2221 case $linkmode in
2222 lib)
2223 valid_a_lib=no
2224 case $deplibs_check_method in
2225 match_pattern*)
2226 set dummy $deplibs_check_method
2227 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
2228 if eval $echo \"$deplib\" 2>/dev/null \
2229 | $SED 10q \
2230 | $EGREP "$match_pattern_regex" > /dev/null; then
2231 valid_a_lib=yes
2232 fi
2233 ;;
2234 pass_all)
2235 valid_a_lib=yes
2236 ;;
2237 esac
2238 if test "$valid_a_lib" != yes; then
2239 $echo
2240 $echo "*** Warning: Trying to link with static lib archive $deplib."
2241 $echo "*** I have the capability to make that library automatically link in when"
2242 $echo "*** you link to this library. But I can only do this if you have a"
2243 $echo "*** shared version of the library, which you do not appear to have"
2244 $echo "*** because the file extensions .$libext of this argument makes me believe"
2245 $echo "*** that it is just a static archive that I should not used here."
2246 else
2247 $echo
2248 $echo "*** Warning: Linking the shared library $output against the"
2249 $echo "*** static library $deplib is not portable!"
2250 deplibs="$deplib $deplibs"
2251 fi
2252 continue
2253 ;;
2254 prog)
2255 if test "$pass" != link; then
2256 deplibs="$deplib $deplibs"
2257 else
2258 compile_deplibs="$deplib $compile_deplibs"
2259 finalize_deplibs="$deplib $finalize_deplibs"
2260 fi
2261 continue
2262 ;;
2263 esac # linkmode
2264 ;; # *.$libext
2265 *.lo | *.$objext)
2266 if test "$pass" = conv; then
2267 deplibs="$deplib $deplibs"
2268 elif test "$linkmode" = prog; then
2269 if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
2270 # If there is no dlopen support or we're linking statically,
2271 # we need to preload.
2272 newdlprefiles="$newdlprefiles $deplib"
2273 compile_deplibs="$deplib $compile_deplibs"
2274 finalize_deplibs="$deplib $finalize_deplibs"
2275 else
2276 newdlfiles="$newdlfiles $deplib"
2277 fi
2278 fi
2279 continue
2280 ;;
2281 %DEPLIBS%)
2282 alldeplibs=yes
2283 continue
2284 ;;
2285 esac # case $deplib
2286 if test "$found" = yes || test -f "$lib"; then :
2287 else
2288 $echo "$modename: cannot find the library \`$lib' or unhandled argument \`$deplib'" 1>&2
2289 exit $EXIT_FAILURE
2290 fi
2291
2292 # Check to see that this really is a libtool archive.
2293 if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
2294 else
2295 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
2296 exit $EXIT_FAILURE
2297 fi
2298
2299 ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
2300 test "X$ladir" = "X$lib" && ladir="."
2301
2302 dlname=
2303 dlopen=
2304 dlpreopen=
2305 libdir=
2306 library_names=
2307 old_library=
2308 # If the library was installed with an old release of libtool,
2309 # it will not redefine variables installed, or shouldnotlink
2310 installed=yes
2311 shouldnotlink=no
2312 avoidtemprpath=
2313
2314
2315 # Read the .la file
2316 case $lib in
2317 */* | *\\*) . $lib ;;
2318 *) . ./$lib ;;
2319 esac
2320
2321 if test "$linkmode,$pass" = "lib,link" ||
2322 test "$linkmode,$pass" = "prog,scan" ||
2323 { test "$linkmode" != prog && test "$linkmode" != lib; }; then
2324 test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
2325 test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
2326 fi
2327
2328 if test "$pass" = conv; then
2329 # Only check for convenience libraries
2330 deplibs="$lib $deplibs"
2331 if test -z "$libdir"; then
2332 if test -z "$old_library"; then
2333 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2334 exit $EXIT_FAILURE
2335 fi
2336 # It is a libtool convenience library, so add in its objects.
2337 convenience="$convenience $ladir/$objdir/$old_library"
2338 old_convenience="$old_convenience $ladir/$objdir/$old_library"
2339 tmp_libs=
2340 for deplib in $dependency_libs; do
2341 deplibs="$deplib $deplibs"
2342 if test "X$duplicate_deps" = "Xyes" ; then
2343 case "$tmp_libs " in
2344 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2345 esac
2346 fi
2347 tmp_libs="$tmp_libs $deplib"
2348 done
2349 elif test "$linkmode" != prog && test "$linkmode" != lib; then
2350 $echo "$modename: \`$lib' is not a convenience library" 1>&2
2351 exit $EXIT_FAILURE
2352 fi
2353 continue
2354 fi # $pass = conv
2355
2356
2357 # Get the name of the library we link against.
2358 linklib=
2359 for l in $old_library $library_names; do
2360 linklib="$l"
2361 done
2362 if test -z "$linklib"; then
2363 $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
2364 exit $EXIT_FAILURE
2365 fi
2366
2367 # This library was specified with -dlopen.
2368 if test "$pass" = dlopen; then
2369 if test -z "$libdir"; then
2370 $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
2371 exit $EXIT_FAILURE
2372 fi
2373 if test -z "$dlname" ||
2374 test "$dlopen_support" != yes ||
2375 test "$build_libtool_libs" = no; then
2376 # If there is no dlname, no dlopen support or we're linking
2377 # statically, we need to preload. We also need to preload any
2378 # dependent libraries so libltdl's deplib preloader doesn't
2379 # bomb out in the load deplibs phase.
2380 dlprefiles="$dlprefiles $lib $dependency_libs"
2381 else
2382 newdlfiles="$newdlfiles $lib"
2383 fi
2384 continue
2385 fi # $pass = dlopen
2386
2387 # We need an absolute path.
2388 case $ladir in
2389 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
2390 *)
2391 abs_ladir=`cd "$ladir" && pwd`
2392 if test -z "$abs_ladir"; then
2393 $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
2394 $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
2395 abs_ladir="$ladir"
2396 fi
2397 ;;
2398 esac
2399 laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
2400
2401 # Find the relevant object directory and library name.
2402 if test "X$installed" = Xyes; then
2403 if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2404 $echo "$modename: warning: library \`$lib' was moved." 1>&2
2405 dir="$ladir"
2406 absdir="$abs_ladir"
2407 libdir="$abs_ladir"
2408 else
2409 dir="$libdir"
2410 absdir="$libdir"
2411 fi
2412 test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
2413 else
2414 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
2415 dir="$ladir"
2416 absdir="$abs_ladir"
2417 # Remove this search path later
2418 notinst_path="$notinst_path $abs_ladir"
2419 else
2420 dir="$ladir/$objdir"
2421 absdir="$abs_ladir/$objdir"
2422 # Remove this search path later
2423 notinst_path="$notinst_path $abs_ladir"
2424 fi
2425 fi # $installed = yes
2426 name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
2427
2428 # This library was specified with -dlpreopen.
2429 if test "$pass" = dlpreopen; then
2430 if test -z "$libdir"; then
2431 $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
2432 exit $EXIT_FAILURE
2433 fi
2434 # Prefer using a static library (so that no silly _DYNAMIC symbols
2435 # are required to link).
2436 if test -n "$old_library"; then
2437 newdlprefiles="$newdlprefiles $dir/$old_library"
2438 # Otherwise, use the dlname, so that lt_dlopen finds it.
2439 elif test -n "$dlname"; then
2440 newdlprefiles="$newdlprefiles $dir/$dlname"
2441 else
2442 newdlprefiles="$newdlprefiles $dir/$linklib"
2443 fi
2444 fi # $pass = dlpreopen
2445
2446 if test -z "$libdir"; then
2447 # Link the convenience library
2448 if test "$linkmode" = lib; then
2449 deplibs="$dir/$old_library $deplibs"
2450 elif test "$linkmode,$pass" = "prog,link"; then
2451 compile_deplibs="$dir/$old_library $compile_deplibs"
2452 finalize_deplibs="$dir/$old_library $finalize_deplibs"
2453 else
2454 deplibs="$lib $deplibs" # used for prog,scan pass
2455 fi
2456 continue
2457 fi
2458
2459
2460 if test "$linkmode" = prog && test "$pass" != link; then
2461 newlib_search_path="$newlib_search_path $ladir"
2462 deplibs="$lib $deplibs"
2463
2464 linkalldeplibs=no
2465 if test "$link_all_deplibs" != no || test -z "$library_names" ||
2466 test "$build_libtool_libs" = no; then
2467 linkalldeplibs=yes
2468 fi
2469
2470 tmp_libs=
2471 for deplib in $dependency_libs; do
2472 case $deplib in
2473 -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
2474 esac
2475 # Need to link against all dependency_libs?
2476 if test "$linkalldeplibs" = yes; then
2477 deplibs="$deplib $deplibs"
2478 else
2479 # Need to hardcode shared library paths
2480 # or/and link against static libraries
2481 newdependency_libs="$deplib $newdependency_libs"
2482 fi
2483 if test "X$duplicate_deps" = "Xyes" ; then
2484 case "$tmp_libs " in
2485 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2486 esac
2487 fi
2488 tmp_libs="$tmp_libs $deplib"
2489 done # for deplib
2490 continue
2491 fi # $linkmode = prog...
2492
2493 if test "$linkmode,$pass" = "prog,link"; then
2494 if test -n "$library_names" &&
2495 { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
2496 # We need to hardcode the library path
2497 if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
2498 # Make sure the rpath contains only unique directories.
2499 case "$temp_rpath " in
2500 *" $dir "*) ;;
2501 *" $absdir "*) ;;
2502 *) temp_rpath="$temp_rpath $absdir" ;;
2503 esac
2504 fi
2505
2506 # Hardcode the library path.
2507 # Skip directories that are in the system default run-time
2508 # search path.
2509 case " $sys_lib_dlsearch_path " in
2510 *" $absdir "*) ;;
2511 *)
2512 case "$compile_rpath " in
2513 *" $absdir "*) ;;
2514 *) compile_rpath="$compile_rpath $absdir"
2515 esac
2516 ;;
2517 esac
2518 case " $sys_lib_dlsearch_path " in
2519 *" $libdir "*) ;;
2520 *)
2521 case "$finalize_rpath " in
2522 *" $libdir "*) ;;
2523 *) finalize_rpath="$finalize_rpath $libdir"
2524 esac
2525 ;;
2526 esac
2527 fi # $linkmode,$pass = prog,link...
2528
2529 if test "$alldeplibs" = yes &&
2530 { test "$deplibs_check_method" = pass_all ||
2531 { test "$build_libtool_libs" = yes &&
2532 test -n "$library_names"; }; }; then
2533 # We only need to search for static libraries
2534 continue
2535 fi
2536 fi
2537
2538 link_static=no # Whether the deplib will be linked statically
2539 use_static_libs=$prefer_static_libs
2540 if test "$use_static_libs" = built && test "$installed" = yes ; then
2541 use_static_libs=no
2542 fi
2543 if test -n "$library_names" &&
2544 { test "$use_static_libs" = no || test -z "$old_library"; }; then
2545 if test "$installed" = no; then
2546 notinst_deplibs="$notinst_deplibs $lib"
2547 need_relink=yes
2548 fi
2549 # This is a shared library
2550
2551 # Warn about portability, can't link against -module's on
2552 # some systems (darwin)
2553 if test "$shouldnotlink" = yes && test "$pass" = link ; then
2554 $echo
2555 if test "$linkmode" = prog; then
2556 $echo "*** Warning: Linking the executable $output against the loadable module"
2557 else
2558 $echo "*** Warning: Linking the shared library $output against the loadable module"
2559 fi
2560 $echo "*** $linklib is not portable!"
2561 fi
2562 if test "$linkmode" = lib &&
2563 test "$hardcode_into_libs" = yes; then
2564 # Hardcode the library path.
2565 # Skip directories that are in the system default run-time
2566 # search path.
2567 case " $sys_lib_dlsearch_path " in
2568 *" $absdir "*) ;;
2569 *)
2570 case "$compile_rpath " in
2571 *" $absdir "*) ;;
2572 *) compile_rpath="$compile_rpath $absdir"
2573 esac
2574 ;;
2575 esac
2576 case " $sys_lib_dlsearch_path " in
2577 *" $libdir "*) ;;
2578 *)
2579 case "$finalize_rpath " in
2580 *" $libdir "*) ;;
2581 *) finalize_rpath="$finalize_rpath $libdir"
2582 esac
2583 ;;
2584 esac
2585 fi
2586
2587 if test -n "$old_archive_from_expsyms_cmds"; then
2588 # figure out the soname
2589 set dummy $library_names
2590 realname="$2"
2591 shift; shift
2592 libname=`eval \\$echo \"$libname_spec\"`
2593 # use dlname if we got it. it's perfectly good, no?
2594 if test -n "$dlname"; then
2595 soname="$dlname"
2596 elif test -n "$soname_spec"; then
2597 # bleh windows
2598 case $host in
2599 *cygwin* | mingw*)
2600 major=`expr $current - $age`
2601 versuffix="-$major"
2602 ;;
2603 esac
2604 eval soname=\"$soname_spec\"
2605 else
2606 soname="$realname"
2607 fi
2608
2609 # Make a new name for the extract_expsyms_cmds to use
2610 soroot="$soname"
2611 soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
2612 newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
2613
2614 # If the library has no export list, then create one now
2615 if test -f "$output_objdir/$soname-def"; then :
2616 else
2617 $show "extracting exported symbol list from \`$soname'"
2618 save_ifs="$IFS"; IFS='~'
2619 cmds=$extract_expsyms_cmds
2620 for cmd in $cmds; do
2621 IFS="$save_ifs"
2622 eval cmd=\"$cmd\"
2623 $show "$cmd"
2624 $run eval "$cmd" || exit $?
2625 done
2626 IFS="$save_ifs"
2627 fi
2628
2629 # Create $newlib
2630 if test -f "$output_objdir/$newlib"; then :; else
2631 $show "generating import library for \`$soname'"
2632 save_ifs="$IFS"; IFS='~'
2633 cmds=$old_archive_from_expsyms_cmds
2634 for cmd in $cmds; do
2635 IFS="$save_ifs"
2636 eval cmd=\"$cmd\"
2637 $show "$cmd"
2638 $run eval "$cmd" || exit $?
2639 done
2640 IFS="$save_ifs"
2641 fi
2642 # make sure the library variables are pointing to the new library
2643 dir=$output_objdir
2644 linklib=$newlib
2645 fi # test -n "$old_archive_from_expsyms_cmds"
2646
2647 if test "$linkmode" = prog || test "$mode" != relink; then
2648 add_shlibpath=
2649 add_dir=
2650 add=
2651 lib_linked=yes
2652 case $hardcode_action in
2653 immediate | unsupported)
2654 if test "$hardcode_direct" = no; then
2655 add="$dir/$linklib"
2656 case $host in
2657 *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
2658 *-*-sysv4*uw2*) add_dir="-L$dir" ;;
2659 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
2660 *-*-unixware7*) add_dir="-L$dir" ;;
2661 *-*-darwin* )
2662 # if the lib is a module then we can not link against
2663 # it, someone is ignoring the new warnings I added
2664 if /usr/bin/file -L $add 2> /dev/null |
2665 $EGREP ": [^:]* bundle" >/dev/null ; then
2666 $echo "** Warning, lib $linklib is a module, not a shared library"
2667 if test -z "$old_library" ; then
2668 $echo
2669 $echo "** And there doesn't seem to be a static archive available"
2670 $echo "** The link will probably fail, sorry"
2671 else
2672 add="$dir/$old_library"
2673 fi
2674 fi
2675 esac
2676 elif test "$hardcode_minus_L" = no; then
2677 case $host in
2678 *-*-sunos*) add_shlibpath="$dir" ;;
2679 esac
2680 add_dir="-L$dir"
2681 add="-l$name"
2682 elif test "$hardcode_shlibpath_var" = no; then
2683 add_shlibpath="$dir"
2684 add="-l$name"
2685 else
2686 lib_linked=no
2687 fi
2688 ;;
2689 relink)
2690 if test "$hardcode_direct" = yes; then
2691 add="$dir/$linklib"
2692 elif test "$hardcode_minus_L" = yes; then
2693 add_dir="-L$dir"
2694 # Try looking first in the location we're being installed to.
2695 if test -n "$inst_prefix_dir"; then
2696 case $libdir in
2697 [\\/]*)
2698 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2699 ;;
2700 esac
2701 fi
2702 add="-l$name"
2703 elif test "$hardcode_shlibpath_var" = yes; then
2704 add_shlibpath="$dir"
2705 add="-l$name"
2706 else
2707 lib_linked=no
2708 fi
2709 ;;
2710 *) lib_linked=no ;;
2711 esac
2712
2713 if test "$lib_linked" != yes; then
2714 $echo "$modename: configuration error: unsupported hardcode properties"
2715 exit $EXIT_FAILURE
2716 fi
2717
2718 if test -n "$add_shlibpath"; then
2719 case :$compile_shlibpath: in
2720 *":$add_shlibpath:"*) ;;
2721 *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
2722 esac
2723 fi
2724 if test "$linkmode" = prog; then
2725 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
2726 test -n "$add" && compile_deplibs="$add $compile_deplibs"
2727 else
2728 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2729 test -n "$add" && deplibs="$add $deplibs"
2730 if test "$hardcode_direct" != yes && \
2731 test "$hardcode_minus_L" != yes && \
2732 test "$hardcode_shlibpath_var" = yes; then
2733 case :$finalize_shlibpath: in
2734 *":$libdir:"*) ;;
2735 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2736 esac
2737 fi
2738 fi
2739 fi
2740
2741 if test "$linkmode" = prog || test "$mode" = relink; then
2742 add_shlibpath=
2743 add_dir=
2744 add=
2745 # Finalize command for both is simple: just hardcode it.
2746 if test "$hardcode_direct" = yes; then
2747 add="$libdir/$linklib"
2748 elif test "$hardcode_minus_L" = yes; then
2749 add_dir="-L$libdir"
2750 add="-l$name"
2751 elif test "$hardcode_shlibpath_var" = yes; then
2752 case :$finalize_shlibpath: in
2753 *":$libdir:"*) ;;
2754 *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
2755 esac
2756 add="-l$name"
2757 elif test "$hardcode_automatic" = yes; then
2758 if test -n "$inst_prefix_dir" &&
2759 test -f "$inst_prefix_dir$libdir/$linklib" ; then
2760 add="$inst_prefix_dir$libdir/$linklib"
2761 else
2762 add="$libdir/$linklib"
2763 fi
2764 else
2765 # We cannot seem to hardcode it, guess we'll fake it.
2766 add_dir="-L$libdir"
2767 # Try looking first in the location we're being installed to.
2768 if test -n "$inst_prefix_dir"; then
2769 case $libdir in
2770 [\\/]*)
2771 add_dir="$add_dir -L$inst_prefix_dir$libdir"
2772 ;;
2773 esac
2774 fi
2775 add="-l$name"
2776 fi
2777
2778 if test "$linkmode" = prog; then
2779 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
2780 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
2781 else
2782 test -n "$add_dir" && deplibs="$add_dir $deplibs"
2783 test -n "$add" && deplibs="$add $deplibs"
2784 fi
2785 fi
2786 elif test "$linkmode" = prog; then
2787 # Here we assume that one of hardcode_direct or hardcode_minus_L
2788 # is not unsupported. This is valid on all known static and
2789 # shared platforms.
2790 if test "$hardcode_direct" != unsupported; then
2791 test -n "$old_library" && linklib="$old_library"
2792 compile_deplibs="$dir/$linklib $compile_deplibs"
2793 finalize_deplibs="$dir/$linklib $finalize_deplibs"
2794 else
2795 compile_deplibs="-l$name -L$dir $compile_deplibs"
2796 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
2797 fi
2798 elif test "$build_libtool_libs" = yes; then
2799 # Not a shared library
2800 if test "$deplibs_check_method" != pass_all; then
2801 # We're trying link a shared library against a static one
2802 # but the system doesn't support it.
2803
2804 # Just print a warning and add the library to dependency_libs so
2805 # that the program can be linked against the static library.
2806 $echo
2807 $echo "*** Warning: This system can not link to static lib archive $lib."
2808 $echo "*** I have the capability to make that library automatically link in when"
2809 $echo "*** you link to this library. But I can only do this if you have a"
2810 $echo "*** shared version of the library, which you do not appear to have."
2811 if test "$module" = yes; then
2812 $echo "*** But as you try to build a module library, libtool will still create "
2813 $echo "*** a static module, that should work as long as the dlopening application"
2814 $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
2815 if test -z "$global_symbol_pipe"; then
2816 $echo
2817 $echo "*** However, this would only work if libtool was able to extract symbol"
2818 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
2819 $echo "*** not find such a program. So, this module is probably useless."
2820 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
2821 fi
2822 if test "$build_old_libs" = no; then
2823 build_libtool_libs=module
2824 build_old_libs=yes
2825 else
2826 build_libtool_libs=no
2827 fi
2828 fi
2829 else
2830 deplibs="$dir/$old_library $deplibs"
2831 link_static=yes
2832 fi
2833 fi # link shared/static library?
2834
2835 if test "$linkmode" = lib; then
2836 if test -n "$dependency_libs" &&
2837 { test "$hardcode_into_libs" != yes ||
2838 test "$build_old_libs" = yes ||
2839 test "$link_static" = yes; }; then
2840 # Extract -R from dependency_libs
2841 temp_deplibs=
2842 for libdir in $dependency_libs; do
2843 case $libdir in
2844 -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
2845 case " $xrpath " in
2846 *" $temp_xrpath "*) ;;
2847 *) xrpath="$xrpath $temp_xrpath";;
2848 esac;;
2849 *) temp_deplibs="$temp_deplibs $libdir";;
2850 esac
2851 done
2852 dependency_libs="$temp_deplibs"
2853 fi
2854
2855 newlib_search_path="$newlib_search_path $absdir"
2856 # Link against this library
2857 test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
2858 # ... and its dependency_libs
2859 tmp_libs=
2860 for deplib in $dependency_libs; do
2861 newdependency_libs="$deplib $newdependency_libs"
2862 if test "X$duplicate_deps" = "Xyes" ; then
2863 case "$tmp_libs " in
2864 *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
2865 esac
2866 fi
2867 tmp_libs="$tmp_libs $deplib"
2868 done
2869
2870 if test "$link_all_deplibs" != no; then
2871 # Add the search paths of all dependency libraries
2872 for deplib in $dependency_libs; do
2873 case $deplib in
2874 -L*) path="$deplib" ;;
2875 *.la)
2876 dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
2877 test "X$dir" = "X$deplib" && dir="."
2878 # We need an absolute path.
2879 case $dir in
2880 [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
2881 *)
2882 absdir=`cd "$dir" && pwd`
2883 if test -z "$absdir"; then
2884 $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
2885 absdir="$dir"
2886 fi
2887 ;;
2888 esac
2889 if grep "^installed=no" $deplib > /dev/null; then
2890 path="$absdir/$objdir"
2891 else
2892 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
2893 if test -z "$libdir"; then
2894 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
2895 exit $EXIT_FAILURE
2896 fi
2897 if test "$absdir" != "$libdir"; then
2898 $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
2899 fi
2900 path="$absdir"
2901 fi
2902 depdepl=
2903 case $host in
2904 *-*-darwin*)
2905 # we do not want to link against static libs,
2906 # but need to link against shared
2907 eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
2908 if test -n "$deplibrary_names" ; then
2909 for tmp in $deplibrary_names ; do
2910 depdepl=$tmp
2911 done
2912 if test -f "$path/$depdepl" ; then
2913 depdepl="$path/$depdepl"
2914 fi
2915 # do not add paths which are already there
2916 case " $newlib_search_path " in
2917 *" $path "*) ;;
2918 *) newlib_search_path="$newlib_search_path $path";;
2919 esac
2920 fi
2921 path=""
2922 ;;
2923 *)
2924 path="-L$path"
2925 ;;
2926 esac
2927 ;;
2928 -l*)
2929 case $host in
2930 *-*-darwin*)
2931 # Again, we only want to link against shared libraries
2932 eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
2933 for tmp in $newlib_search_path ; do
2934 if test -f "$tmp/lib$tmp_libs.dylib" ; then
2935 eval depdepl="$tmp/lib$tmp_libs.dylib"
2936 break
2937 fi
2938 done
2939 path=""
2940 ;;
2941 *) continue ;;
2942 esac
2943 ;;
2944 *) continue ;;
2945 esac
2946 case " $deplibs " in
2947 *" $path "*) ;;
2948 *) deplibs="$path $deplibs" ;;
2949 esac
2950 case " $deplibs " in
2951 *" $depdepl "*) ;;
2952 *) deplibs="$depdepl $deplibs" ;;
2953 esac
2954 done
2955 fi # link_all_deplibs != no
2956 fi # linkmode = lib
2957 done # for deplib in $libs
2958 dependency_libs="$newdependency_libs"
2959 if test "$pass" = dlpreopen; then
2960 # Link the dlpreopened libraries before other libraries
2961 for deplib in $save_deplibs; do
2962 deplibs="$deplib $deplibs"
2963 done
2964 fi
2965 if test "$pass" != dlopen; then
2966 if test "$pass" != conv; then
2967 # Make sure lib_search_path contains only unique directories.
2968 lib_search_path=
2969 for dir in $newlib_search_path; do
2970 case "$lib_search_path " in
2971 *" $dir "*) ;;
2972 *) lib_search_path="$lib_search_path $dir" ;;
2973 esac
2974 done
2975 newlib_search_path=
2976 fi
2977
2978 if test "$linkmode,$pass" != "prog,link"; then
2979 vars="deplibs"
2980 else
2981 vars="compile_deplibs finalize_deplibs"
2982 fi
2983 for var in $vars dependency_libs; do
2984 # Add libraries to $var in reverse order
2985 eval tmp_libs=\"\$$var\"
2986 new_libs=
2987 for deplib in $tmp_libs; do
2988 # FIXME: Pedantically, this is the right thing to do, so
2989 # that some nasty dependency loop isn't accidentally
2990 # broken:
2991 #new_libs="$deplib $new_libs"
2992 # Pragmatically, this seems to cause very few problems in
2993 # practice:
2994 case $deplib in
2995 -L*) new_libs="$deplib $new_libs" ;;
2996 -R*) ;;
2997 *)
2998 # And here is the reason: when a library appears more
2999 # than once as an explicit dependence of a library, or
3000 # is implicitly linked in more than once by the
3001 # compiler, it is considered special, and multiple
3002 # occurrences thereof are not removed. Compare this
3003 # with having the same library being listed as a
3004 # dependency of multiple other libraries: in this case,
3005 # we know (pedantically, we assume) the library does not
3006 # need to be listed more than once, so we keep only the
3007 # last copy. This is not always right, but it is rare
3008 # enough that we require users that really mean to play
3009 # such unportable linking tricks to link the library
3010 # using -Wl,-lname, so that libtool does not consider it
3011 # for duplicate removal.
3012 case " $specialdeplibs " in
3013 *" $deplib "*) new_libs="$deplib $new_libs" ;;
3014 *)
3015 case " $new_libs " in
3016 *" $deplib "*) ;;
3017 *) new_libs="$deplib $new_libs" ;;
3018 esac
3019 ;;
3020 esac
3021 ;;
3022 esac
3023 done
3024 tmp_libs=
3025 for deplib in $new_libs; do
3026 case $deplib in
3027 -L*)
3028 case " $tmp_libs " in
3029 *" $deplib "*) ;;
3030 *) tmp_libs="$tmp_libs $deplib" ;;
3031 esac
3032 ;;
3033 *) tmp_libs="$tmp_libs $deplib" ;;
3034 esac
3035 done
3036 eval $var=\"$tmp_libs\"
3037 done # for var
3038 fi
3039 # Last step: remove runtime libs from dependency_libs
3040 # (they stay in deplibs)
3041 tmp_libs=
3042 for i in $dependency_libs ; do
3043 case " $predeps $postdeps $compiler_lib_search_path " in
3044 *" $i "*)
3045 i=""
3046 ;;
3047 esac
3048 if test -n "$i" ; then
3049 tmp_libs="$tmp_libs $i"
3050 fi
3051 done
3052 dependency_libs=$tmp_libs
3053 done # for pass
3054 if test "$linkmode" = prog; then
3055 dlfiles="$newdlfiles"
3056 dlprefiles="$newdlprefiles"
3057 fi
3058
3059 case $linkmode in
3060 oldlib)
3061 if test -n "$deplibs"; then
3062 $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
3063 fi
3064
3065 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
3066 $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
3067 fi
3068
3069 if test -n "$rpath"; then
3070 $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
3071 fi
3072
3073 if test -n "$xrpath"; then
3074 $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
3075 fi
3076
3077 if test -n "$vinfo"; then
3078 $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
3079 fi
3080
3081 if test -n "$release"; then
3082 $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
3083 fi
3084
3085 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
3086 $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
3087 fi
3088
3089 # Now set the variables for building old libraries.
3090 build_libtool_libs=no
3091 oldlibs="$output"
3092 objs="$objs$old_deplibs"
3093 ;;
3094
3095 lib)
3096 # Make sure we only generate libraries of the form `libNAME.la'.
3097 case $outputname in
3098 lib*)
3099 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
3100 eval shared_ext=\"$shrext_cmds\"
3101 eval libname=\"$libname_spec\"
3102 ;;
3103 *)
3104 if test "$module" = no; then
3105 $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
3106 $echo "$help" 1>&2
3107 exit $EXIT_FAILURE
3108 fi
3109 if test "$need_lib_prefix" != no; then
3110 # Add the "lib" prefix for modules if required
3111 name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3112 eval shared_ext=\"$shrext_cmds\"
3113 eval libname=\"$libname_spec\"
3114 else
3115 libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
3116 fi
3117 ;;
3118 esac
3119
3120 if test -n "$objs"; then
3121 if test "$deplibs_check_method" != pass_all; then
3122 $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
3123 exit $EXIT_FAILURE
3124 else
3125 $echo
3126 $echo "*** Warning: Linking the shared library $output against the non-libtool"
3127 $echo "*** objects $objs is not portable!"
3128 libobjs="$libobjs $objs"
3129 fi
3130 fi
3131
3132 if test "$dlself" != no; then
3133 $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
3134 fi
3135
3136 set dummy $rpath
3137 if test "$#" -gt 2; then
3138 $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
3139 fi
3140 install_libdir="$2"
3141
3142 oldlibs=
3143 if test -z "$rpath"; then
3144 if test "$build_libtool_libs" = yes; then
3145 # Building a libtool convenience library.
3146 # Some compilers have problems with a `.al' extension so
3147 # convenience libraries should have the same extension an
3148 # archive normally would.
3149 oldlibs="$output_objdir/$libname.$libext $oldlibs"
3150 build_libtool_libs=convenience
3151 build_old_libs=yes
3152 fi
3153
3154 if test -n "$vinfo"; then
3155 $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
3156 fi
3157
3158 if test -n "$release"; then
3159 $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
3160 fi
3161 else
3162
3163 # Parse the version information argument.
3164 save_ifs="$IFS"; IFS=':'
3165 set dummy $vinfo 0 0 0
3166 IFS="$save_ifs"
3167
3168 if test -n "$8"; then
3169 $echo "$modename: too many parameters to \`-version-info'" 1>&2
3170 $echo "$help" 1>&2
3171 exit $EXIT_FAILURE
3172 fi
3173
3174 # convert absolute version numbers to libtool ages
3175 # this retains compatibility with .la files and attempts
3176 # to make the code below a bit more comprehensible
3177
3178 case $vinfo_number in
3179 yes)
3180 number_major="$2"
3181 number_minor="$3"
3182 number_revision="$4"
3183 #
3184 # There are really only two kinds -- those that
3185 # use the current revision as the major version
3186 # and those that subtract age and use age as
3187 # a minor version. But, then there is irix
3188 # which has an extra 1 added just for fun
3189 #
3190 case $version_type in
3191 darwin|linux|osf|windows)
3192 current=`expr $number_major + $number_minor`
3193 age="$number_minor"
3194 revision="$number_revision"
3195 ;;
3196 freebsd-aout|freebsd-elf|sunos)
3197 current="$number_major"
3198 revision="$number_minor"
3199 age="0"
3200 ;;
3201 irix|nonstopux)
3202 current=`expr $number_major + $number_minor - 1`
3203 age="$number_minor"
3204 revision="$number_minor"
3205 ;;
3206 *)
3207 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3208 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3209 exit $EXIT_FAILURE
3210 ;;
3211 esac
3212 ;;
3213 no)
3214 current="$2"
3215 revision="$3"
3216 age="$4"
3217 ;;
3218 esac
3219
3220 # Check that each of the things are valid numbers.
3221 case $current in
3222 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
3223 *)
3224 $echo "$modename: CURRENT \`$current' must be a nonnegative integer" 1>&2
3225 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3226 exit $EXIT_FAILURE
3227 ;;
3228 esac
3229
3230 case $revision in
3231 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
3232 *)
3233 $echo "$modename: REVISION \`$revision' must be a nonnegative integer" 1>&2
3234 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3235 exit $EXIT_FAILURE
3236 ;;
3237 esac
3238
3239 case $age in
3240 0|[1-9]|[1-9][0-9]|[1-9][0-9][0-9]|[1-9][0-9][0-9][0-9]|[1-9][0-9][0-9][0-9][0-9]) ;;
3241 *)
3242 $echo "$modename: AGE \`$age' must be a nonnegative integer" 1>&2
3243 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3244 exit $EXIT_FAILURE
3245 ;;
3246 esac
3247
3248 if test "$age" -gt "$current"; then
3249 $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
3250 $echo "$modename: \`$vinfo' is not valid version information" 1>&2
3251 exit $EXIT_FAILURE
3252 fi
3253
3254 # Calculate the version variables.
3255 major=
3256 versuffix=
3257 verstring=
3258 case $version_type in
3259 none) ;;
3260
3261 darwin)
3262 # Like Linux, but with the current version available in
3263 # verstring for coding it into the library header
3264 major=.`expr $current - $age`
3265 versuffix="$major.$age.$revision"
3266 # Darwin ld doesn't like 0 for these options...
3267 minor_current=`expr $current + 1`
3268 verstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
3269 ;;
3270
3271 freebsd-aout)
3272 major=".$current"
3273 versuffix=".$current.$revision";
3274 ;;
3275
3276 freebsd-elf)
3277 major=".$current"
3278 versuffix=".$current";
3279 ;;
3280
3281 irix | nonstopux)
3282 major=`expr $current - $age + 1`
3283
3284 case $version_type in
3285 nonstopux) verstring_prefix=nonstopux ;;
3286 *) verstring_prefix=sgi ;;
3287 esac
3288 verstring="$verstring_prefix$major.$revision"
3289
3290 # Add in all the interfaces that we are compatible with.
3291 loop=$revision
3292 while test "$loop" -ne 0; do
3293 iface=`expr $revision - $loop`
3294 loop=`expr $loop - 1`
3295 verstring="$verstring_prefix$major.$iface:$verstring"
3296 done
3297
3298 # Before this point, $major must not contain `.'.
3299 major=.$major
3300 versuffix="$major.$revision"
3301 ;;
3302
3303 linux)
3304 major=.`expr $current - $age`
3305 versuffix="$major.$age.$revision"
3306 ;;
3307
3308 osf)
3309 major=.`expr $current - $age`
3310 versuffix=".$current.$age.$revision"
3311 verstring="$current.$age.$revision"
3312
3313 # Add in all the interfaces that we are compatible with.
3314 loop=$age
3315 while test "$loop" -ne 0; do
3316 iface=`expr $current - $loop`
3317 loop=`expr $loop - 1`
3318 verstring="$verstring:${iface}.0"
3319 done
3320
3321 # Make executables depend on our current version.
3322 verstring="$verstring:${current}.0"
3323 ;;
3324
3325 sunos)
3326 major=".$current"
3327 versuffix=".$current.$revision"
3328 ;;
3329
3330 windows)
3331 # Use '-' rather than '.', since we only want one
3332 # extension on DOS 8.3 filesystems.
3333 major=`expr $current - $age`
3334 versuffix="-$major"
3335 ;;
3336
3337 *)
3338 $echo "$modename: unknown library version type \`$version_type'" 1>&2
3339 $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
3340 exit $EXIT_FAILURE
3341 ;;
3342 esac
3343
3344 # Clear the version info if we defaulted, and they specified a release.
3345 if test -z "$vinfo" && test -n "$release"; then
3346 major=
3347 case $version_type in
3348 darwin)
3349 # we can't check for "0.0" in archive_cmds due to quoting
3350 # problems, so we reset it completely
3351 verstring=
3352 ;;
3353 *)
3354 verstring="0.0"
3355 ;;
3356 esac
3357 if test "$need_version" = no; then
3358 versuffix=
3359 else
3360 versuffix=".0.0"
3361 fi
3362 fi
3363
3364 # Remove version info from name if versioning should be avoided
3365 if test "$avoid_version" = yes && test "$need_version" = no; then
3366 major=
3367 versuffix=
3368 verstring=""
3369 fi
3370
3371 # Check to see if the archive will have undefined symbols.
3372 if test "$allow_undefined" = yes; then
3373 if test "$allow_undefined_flag" = unsupported; then
3374 $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
3375 build_libtool_libs=no
3376 build_old_libs=yes
3377 fi
3378 else
3379 # Don't allow undefined symbols.
3380 allow_undefined_flag="$no_undefined_flag"
3381 fi
3382 fi
3383
3384 if test "$mode" != relink; then
3385 # Remove our outputs, but don't remove object files since they
3386 # may have been created when compiling PIC objects.
3387 removelist=
3388 tempremovelist=`$echo "$output_objdir/*"`
3389 for p in $tempremovelist; do
3390 case $p in
3391 *.$objext)
3392 ;;
3393 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
3394 if test "X$precious_files_regex" != "X"; then
3395 if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
3396 then
3397 continue
3398 fi
3399 fi
3400 removelist="$removelist $p"
3401 ;;
3402 *) ;;
3403 esac
3404 done
3405 if test -n "$removelist"; then
3406 $show "${rm}r $removelist"
3407 $run ${rm}r $removelist
3408 fi
3409 fi
3410
3411 # Now set the variables for building old libraries.
3412 if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
3413 oldlibs="$oldlibs $output_objdir/$libname.$libext"
3414
3415 # Transform .lo files to .o files.
3416 oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
3417 fi
3418
3419 # Eliminate all temporary directories.
3420 for path in $notinst_path; do
3421 lib_search_path=`$echo "$lib_search_path " | ${SED} -e "s% $path % %g"`
3422 deplibs=`$echo "$deplibs " | ${SED} -e "s% -L$path % %g"`
3423 dependency_libs=`$echo "$dependency_libs " | ${SED} -e "s% -L$path % %g"`
3424 done
3425
3426 if test -n "$xrpath"; then
3427 # If the user specified any rpath flags, then add them.
3428 temp_xrpath=
3429 for libdir in $xrpath; do
3430 temp_xrpath="$temp_xrpath -R$libdir"
3431 case "$finalize_rpath " in
3432 *" $libdir "*) ;;
3433 *) finalize_rpath="$finalize_rpath $libdir" ;;
3434 esac
3435 done
3436 if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
3437 dependency_libs="$temp_xrpath $dependency_libs"
3438 fi
3439 fi
3440
3441 # Make sure dlfiles contains only unique files that won't be dlpreopened
3442 old_dlfiles="$dlfiles"
3443 dlfiles=
3444 for lib in $old_dlfiles; do
3445 case " $dlprefiles $dlfiles " in
3446 *" $lib "*) ;;
3447 *) dlfiles="$dlfiles $lib" ;;
3448 esac
3449 done
3450
3451 # Make sure dlprefiles contains only unique files
3452 old_dlprefiles="$dlprefiles"
3453 dlprefiles=
3454 for lib in $old_dlprefiles; do
3455 case "$dlprefiles " in
3456 *" $lib "*) ;;
3457 *) dlprefiles="$dlprefiles $lib" ;;
3458 esac
3459 done
3460
3461 if test "$build_libtool_libs" = yes; then
3462 if test -n "$rpath"; then
3463 case $host in
3464 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
3465 # these systems don't actually have a c library (as such)!
3466 ;;
3467 *-*-rhapsody* | *-*-darwin1.[012])
3468 # Rhapsody C library is in the System framework
3469 deplibs="$deplibs -framework System"
3470 ;;
3471 *-*-netbsd*)
3472 # Don't link with libc until the a.out ld.so is fixed.
3473 ;;
3474 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
3475 # Do not include libc due to us having libc/libc_r.
3476 ;;
3477 *-*-sco3.2v5* | *-*-sco5v6*)
3478 # Causes problems with __ctype
3479 ;;
3480 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
3481 # Compiler inserts libc in the correct place for threads to work
3482 ;;
3483 *)
3484 # Add libc to deplibs on all other systems if necessary.
3485 if test "$build_libtool_need_lc" = "yes"; then
3486 deplibs="$deplibs -lc"
3487 fi
3488 ;;
3489 esac
3490 fi
3491
3492 # Transform deplibs into only deplibs that can be linked in shared.
3493 name_save=$name
3494 libname_save=$libname
3495 release_save=$release
3496 versuffix_save=$versuffix
3497 major_save=$major
3498 # I'm not sure if I'm treating the release correctly. I think
3499 # release should show up in the -l (ie -lgmp5) so we don't want to
3500 # add it in twice. Is that correct?
3501 release=""
3502 versuffix=""
3503 major=""
3504 newdeplibs=
3505 droppeddeps=no
3506 case $deplibs_check_method in
3507 pass_all)
3508 # Don't check for shared/static. Everything works.
3509 # This might be a little naive. We might want to check
3510 # whether the library exists or not. But this is on
3511 # osf3 & osf4 and I'm not really sure... Just
3512 # implementing what was already the behavior.
3513 newdeplibs=$deplibs
3514 ;;
3515 test_compile)
3516 # This code stresses the "libraries are programs" paradigm to its
3517 # limits. Maybe even breaks it. We compile a program, linking it
3518 # against the deplibs as a proxy for the library. Then we can check
3519 # whether they linked in statically or dynamically with ldd.
3520 $rm conftest.c
3521 cat > conftest.c <<EOF
3522 int main() { return 0; }
3523 EOF
3524 $rm conftest
3525 $LTCC $LTCFLAGS -o conftest conftest.c $deplibs
3526 if test "$?" -eq 0 ; then
3527 ldd_output=`ldd conftest`
3528 for i in $deplibs; do
3529 name=`expr $i : '-l\(.*\)'`
3530 # If $name is empty we are operating on a -L argument.
3531 if test "$name" != "" && test "$name" -ne "0"; then
3532 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3533 case " $predeps $postdeps " in
3534 *" $i "*)
3535 newdeplibs="$newdeplibs $i"
3536 i=""
3537 ;;
3538 esac
3539 fi
3540 if test -n "$i" ; then
3541 libname=`eval \\$echo \"$libname_spec\"`
3542 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3543 set dummy $deplib_matches
3544 deplib_match=$2
3545 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3546 newdeplibs="$newdeplibs $i"
3547 else
3548 droppeddeps=yes
3549 $echo
3550 $echo "*** Warning: dynamic linker does not accept needed library $i."
3551 $echo "*** I have the capability to make that library automatically link in when"
3552 $echo "*** you link to this library. But I can only do this if you have a"
3553 $echo "*** shared version of the library, which I believe you do not have"
3554 $echo "*** because a test_compile did reveal that the linker did not use it for"
3555 $echo "*** its dynamic dependency list that programs get resolved with at runtime."
3556 fi
3557 fi
3558 else
3559 newdeplibs="$newdeplibs $i"
3560 fi
3561 done
3562 else
3563 # Error occurred in the first compile. Let's try to salvage
3564 # the situation: Compile a separate program for each library.
3565 for i in $deplibs; do
3566 name=`expr $i : '-l\(.*\)'`
3567 # If $name is empty we are operating on a -L argument.
3568 if test "$name" != "" && test "$name" != "0"; then
3569 $rm conftest
3570 $LTCC $LTCFLAGS -o conftest conftest.c $i
3571 # Did it work?
3572 if test "$?" -eq 0 ; then
3573 ldd_output=`ldd conftest`
3574 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3575 case " $predeps $postdeps " in
3576 *" $i "*)
3577 newdeplibs="$newdeplibs $i"
3578 i=""
3579 ;;
3580 esac
3581 fi
3582 if test -n "$i" ; then
3583 libname=`eval \\$echo \"$libname_spec\"`
3584 deplib_matches=`eval \\$echo \"$library_names_spec\"`
3585 set dummy $deplib_matches
3586 deplib_match=$2
3587 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
3588 newdeplibs="$newdeplibs $i"
3589 else
3590 droppeddeps=yes
3591 $echo
3592 $echo "*** Warning: dynamic linker does not accept needed library $i."
3593 $echo "*** I have the capability to make that library automatically link in when"
3594 $echo "*** you link to this library. But I can only do this if you have a"
3595 $echo "*** shared version of the library, which you do not appear to have"
3596 $echo "*** because a test_compile did reveal that the linker did not use this one"
3597 $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
3598 fi
3599 fi
3600 else
3601 droppeddeps=yes
3602 $echo
3603 $echo "*** Warning! Library $i is needed by this library but I was not able to"
3604 $echo "*** make it link in! You will probably need to install it or some"
3605 $echo "*** library that it depends on before this library will be fully"
3606 $echo "*** functional. Installing it before continuing would be even better."
3607 fi
3608 else
3609 newdeplibs="$newdeplibs $i"
3610 fi
3611 done
3612 fi
3613 ;;
3614 file_magic*)
3615 set dummy $deplibs_check_method
3616 file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3617 for a_deplib in $deplibs; do
3618 name=`expr $a_deplib : '-l\(.*\)'`
3619 # If $name is empty we are operating on a -L argument.
3620 if test "$name" != "" && test "$name" != "0"; then
3621 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3622 case " $predeps $postdeps " in
3623 *" $a_deplib "*)
3624 newdeplibs="$newdeplibs $a_deplib"
3625 a_deplib=""
3626 ;;
3627 esac
3628 fi
3629 if test -n "$a_deplib" ; then
3630 libname=`eval \\$echo \"$libname_spec\"`
3631 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3632 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3633 for potent_lib in $potential_libs; do
3634 # Follow soft links.
3635 if ls -lLd "$potent_lib" 2>/dev/null \
3636 | grep " -> " >/dev/null; then
3637 continue
3638 fi
3639 # The statement above tries to avoid entering an
3640 # endless loop below, in case of cyclic links.
3641 # We might still enter an endless loop, since a link
3642 # loop can be closed while we follow links,
3643 # but so what?
3644 potlib="$potent_lib"
3645 while test -h "$potlib" 2>/dev/null; do
3646 potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
3647 case $potliblink in
3648 [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
3649 *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
3650 esac
3651 done
3652 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
3653 | ${SED} 10q \
3654 | $EGREP "$file_magic_regex" > /dev/null; then
3655 newdeplibs="$newdeplibs $a_deplib"
3656 a_deplib=""
3657 break 2
3658 fi
3659 done
3660 done
3661 fi
3662 if test -n "$a_deplib" ; then
3663 droppeddeps=yes
3664 $echo
3665 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3666 $echo "*** I have the capability to make that library automatically link in when"
3667 $echo "*** you link to this library. But I can only do this if you have a"
3668 $echo "*** shared version of the library, which you do not appear to have"
3669 $echo "*** because I did check the linker path looking for a file starting"
3670 if test -z "$potlib" ; then
3671 $echo "*** with $libname but no candidates were found. (...for file magic test)"
3672 else
3673 $echo "*** with $libname and none of the candidates passed a file format test"
3674 $echo "*** using a file magic. Last file checked: $potlib"
3675 fi
3676 fi
3677 else
3678 # Add a -L argument.
3679 newdeplibs="$newdeplibs $a_deplib"
3680 fi
3681 done # Gone through all deplibs.
3682 ;;
3683 match_pattern*)
3684 set dummy $deplibs_check_method
3685 match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
3686 for a_deplib in $deplibs; do
3687 name=`expr $a_deplib : '-l\(.*\)'`
3688 # If $name is empty we are operating on a -L argument.
3689 if test -n "$name" && test "$name" != "0"; then
3690 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3691 case " $predeps $postdeps " in
3692 *" $a_deplib "*)
3693 newdeplibs="$newdeplibs $a_deplib"
3694 a_deplib=""
3695 ;;
3696 esac
3697 fi
3698 if test -n "$a_deplib" ; then
3699 libname=`eval \\$echo \"$libname_spec\"`
3700 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
3701 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
3702 for potent_lib in $potential_libs; do
3703 potlib="$potent_lib" # see symlink-check above in file_magic test
3704 if eval $echo \"$potent_lib\" 2>/dev/null \
3705 | ${SED} 10q \
3706 | $EGREP "$match_pattern_regex" > /dev/null; then
3707 newdeplibs="$newdeplibs $a_deplib"
3708 a_deplib=""
3709 break 2
3710 fi
3711 done
3712 done
3713 fi
3714 if test -n "$a_deplib" ; then
3715 droppeddeps=yes
3716 $echo
3717 $echo "*** Warning: linker path does not have real file for library $a_deplib."
3718 $echo "*** I have the capability to make that library automatically link in when"
3719 $echo "*** you link to this library. But I can only do this if you have a"
3720 $echo "*** shared version of the library, which you do not appear to have"
3721 $echo "*** because I did check the linker path looking for a file starting"
3722 if test -z "$potlib" ; then
3723 $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
3724 else
3725 $echo "*** with $libname and none of the candidates passed a file format test"
3726 $echo "*** using a regex pattern. Last file checked: $potlib"
3727 fi
3728 fi
3729 else
3730 # Add a -L argument.
3731 newdeplibs="$newdeplibs $a_deplib"
3732 fi
3733 done # Gone through all deplibs.
3734 ;;
3735 none | unknown | *)
3736 newdeplibs=""
3737 tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
3738 -e 's/ -[LR][^ ]*//g'`
3739 if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
3740 for i in $predeps $postdeps ; do
3741 # can't use Xsed below, because $i might contain '/'
3742 tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
3743 done
3744 fi
3745 if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
3746 | grep . >/dev/null; then
3747 $echo
3748 if test "X$deplibs_check_method" = "Xnone"; then
3749 $echo "*** Warning: inter-library dependencies are not supported in this platform."
3750 else
3751 $echo "*** Warning: inter-library dependencies are not known to be supported."
3752 fi
3753 $echo "*** All declared inter-library dependencies are being dropped."
3754 droppeddeps=yes
3755 fi
3756 ;;
3757 esac
3758 versuffix=$versuffix_save
3759 major=$major_save
3760 release=$release_save
3761 libname=$libname_save
3762 name=$name_save
3763
3764 case $host in
3765 *-*-rhapsody* | *-*-darwin1.[012])
3766 # On Rhapsody replace the C library is the System framework
3767 newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
3768 ;;
3769 esac
3770
3771 if test "$droppeddeps" = yes; then
3772 if test "$module" = yes; then
3773 $echo
3774 $echo "*** Warning: libtool could not satisfy all declared inter-library"
3775 $echo "*** dependencies of module $libname. Therefore, libtool will create"
3776 $echo "*** a static module, that should work as long as the dlopening"
3777 $echo "*** application is linked with the -dlopen flag."
3778 if test -z "$global_symbol_pipe"; then
3779 $echo
3780 $echo "*** However, this would only work if libtool was able to extract symbol"
3781 $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
3782 $echo "*** not find such a program. So, this module is probably useless."
3783 $echo "*** \`nm' from GNU binutils and a full rebuild may help."
3784 fi
3785 if test "$build_old_libs" = no; then
3786 oldlibs="$output_objdir/$libname.$libext"
3787 build_libtool_libs=module
3788 build_old_libs=yes
3789 else
3790 build_libtool_libs=no
3791 fi
3792 else
3793 $echo "*** The inter-library dependencies that have been dropped here will be"
3794 $echo "*** automatically added whenever a program is linked with this library"
3795 $echo "*** or is declared to -dlopen it."
3796
3797 if test "$allow_undefined" = no; then
3798 $echo
3799 $echo "*** Since this library must not contain undefined symbols,"
3800 $echo "*** because either the platform does not support them or"
3801 $echo "*** it was explicitly requested with -no-undefined,"
3802 $echo "*** libtool will only create a static version of it."
3803 if test "$build_old_libs" = no; then
3804 oldlibs="$output_objdir/$libname.$libext"
3805 build_libtool_libs=module
3806 build_old_libs=yes
3807 else
3808 build_libtool_libs=no
3809 fi
3810 fi
3811 fi
3812 fi
3813 # Done checking deplibs!
3814 deplibs=$newdeplibs
3815 fi
3816
3817
3818 # move library search paths that coincide with paths to not yet
3819 # installed libraries to the beginning of the library search list
3820 new_libs=
3821 for path in $notinst_path; do
3822 case " $new_libs " in
3823 *" -L$path/$objdir "*) ;;
3824 *)
3825 case " $deplibs " in
3826 *" -L$path/$objdir "*)
3827 new_libs="$new_libs -L$path/$objdir" ;;
3828 esac
3829 ;;
3830 esac
3831 done
3832 for deplib in $deplibs; do
3833 case $deplib in
3834 -L*)
3835 case " $new_libs " in
3836 *" $deplib "*) ;;
3837 *) new_libs="$new_libs $deplib" ;;
3838 esac
3839 ;;
3840 *) new_libs="$new_libs $deplib" ;;
3841 esac
3842 done
3843 deplibs="$new_libs"
3844
3845
3846 # All the library-specific variables (install_libdir is set above).
3847 library_names=
3848 old_library=
3849 dlname=
3850
3851 # Test again, we may have decided not to build it any more
3852 if test "$build_libtool_libs" = yes; then
3853 if test "$hardcode_into_libs" = yes; then
3854 # Hardcode the library paths
3855 hardcode_libdirs=
3856 dep_rpath=
3857 rpath="$finalize_rpath"
3858 test "$mode" != relink && rpath="$compile_rpath$rpath"
3859 for libdir in $rpath; do
3860 if test -n "$hardcode_libdir_flag_spec"; then
3861 if test -n "$hardcode_libdir_separator"; then
3862 if test -z "$hardcode_libdirs"; then
3863 hardcode_libdirs="$libdir"
3864 else
3865 # Just accumulate the unique libdirs.
3866 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
3867 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
3868 ;;
3869 *)
3870 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
3871 ;;
3872 esac
3873 fi
3874 else
3875 eval flag=\"$hardcode_libdir_flag_spec\"
3876 dep_rpath="$dep_rpath $flag"
3877 fi
3878 elif test -n "$runpath_var"; then
3879 case "$perm_rpath " in
3880 *" $libdir "*) ;;
3881 *) perm_rpath="$perm_rpath $libdir" ;;
3882 esac
3883 fi
3884 done
3885 # Substitute the hardcoded libdirs into the rpath.
3886 if test -n "$hardcode_libdir_separator" &&
3887 test -n "$hardcode_libdirs"; then
3888 libdir="$hardcode_libdirs"
3889 if test -n "$hardcode_libdir_flag_spec_ld"; then
3890 eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
3891 else
3892 eval dep_rpath=\"$hardcode_libdir_flag_spec\"
3893 fi
3894 fi
3895 if test -n "$runpath_var" && test -n "$perm_rpath"; then
3896 # We should set the runpath_var.
3897 rpath=
3898 for dir in $perm_rpath; do
3899 rpath="$rpath$dir:"
3900 done
3901 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
3902 fi
3903 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
3904 fi
3905
3906 shlibpath="$finalize_shlibpath"
3907 test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
3908 if test -n "$shlibpath"; then
3909 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
3910 fi
3911
3912 # Get the real and link names of the library.
3913 eval shared_ext=\"$shrext_cmds\"
3914 eval library_names=\"$library_names_spec\"
3915 set dummy $library_names
3916 realname="$2"
3917 shift; shift
3918
3919 if test -n "$soname_spec"; then
3920 eval soname=\"$soname_spec\"
3921 else
3922 soname="$realname"
3923 fi
3924 if test -z "$dlname"; then
3925 dlname=$soname
3926 fi
3927
3928 lib="$output_objdir/$realname"
3929 linknames=
3930 for link
3931 do
3932 linknames="$linknames $link"
3933 done
3934
3935 # Use standard objects if they are pic
3936 test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
3937
3938 # Prepare the list of exported symbols
3939 if test -z "$export_symbols"; then
3940 if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
3941 $show "generating symbol list for \`$libname.la'"
3942 export_symbols="$output_objdir/$libname.exp"
3943 $run $rm $export_symbols
3944 cmds=$export_symbols_cmds
3945 save_ifs="$IFS"; IFS='~'
3946 for cmd in $cmds; do
3947 IFS="$save_ifs"
3948 eval cmd=\"$cmd\"
3949 if len=`expr "X$cmd" : ".*"` &&
3950 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
3951 $show "$cmd"
3952 $run eval "$cmd" || exit $?
3953 skipped_export=false
3954 else
3955 # The command line is too long to execute in one step.
3956 $show "using reloadable object file for export list..."
3957 skipped_export=:
3958 # Break out early, otherwise skipped_export may be
3959 # set to false by a later but shorter cmd.
3960 break
3961 fi
3962 done
3963 IFS="$save_ifs"
3964 if test -n "$export_symbols_regex"; then
3965 $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
3966 $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
3967 $show "$mv \"${export_symbols}T\" \"$export_symbols\""
3968 $run eval '$mv "${export_symbols}T" "$export_symbols"'
3969 fi
3970 fi
3971 fi
3972
3973 if test -n "$export_symbols" && test -n "$include_expsyms"; then
3974 $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
3975 fi
3976
3977 tmp_deplibs=
3978 for test_deplib in $deplibs; do
3979 case " $convenience " in
3980 *" $test_deplib "*) ;;
3981 *)
3982 tmp_deplibs="$tmp_deplibs $test_deplib"
3983 ;;
3984 esac
3985 done
3986 deplibs="$tmp_deplibs"
3987
3988 if test -n "$convenience"; then
3989 if test -n "$whole_archive_flag_spec"; then
3990 save_libobjs=$libobjs
3991 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
3992 else
3993 gentop="$output_objdir/${outputname}x"
3994 generated="$generated $gentop"
3995
3996 func_extract_archives $gentop $convenience
3997 libobjs="$libobjs $func_extract_archives_result"
3998 fi
3999 fi
4000
4001 if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
4002 eval flag=\"$thread_safe_flag_spec\"
4003 linker_flags="$linker_flags $flag"
4004 fi
4005
4006 # Make a backup of the uninstalled library when relinking
4007 if test "$mode" = relink; then
4008 $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
4009 fi
4010
4011 # Do each of the archive commands.
4012 if test "$module" = yes && test -n "$module_cmds" ; then
4013 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4014 eval test_cmds=\"$module_expsym_cmds\"
4015 cmds=$module_expsym_cmds
4016 else
4017 eval test_cmds=\"$module_cmds\"
4018 cmds=$module_cmds
4019 fi
4020 else
4021 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4022 eval test_cmds=\"$archive_expsym_cmds\"
4023 cmds=$archive_expsym_cmds
4024 else
4025 eval test_cmds=\"$archive_cmds\"
4026 cmds=$archive_cmds
4027 fi
4028 fi
4029
4030 if test "X$skipped_export" != "X:" &&
4031 len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4032 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
4033 :
4034 else
4035 # The command line is too long to link in one step, link piecewise.
4036 $echo "creating reloadable object files..."
4037
4038 # Save the value of $output and $libobjs because we want to
4039 # use them later. If we have whole_archive_flag_spec, we
4040 # want to use save_libobjs as it was before
4041 # whole_archive_flag_spec was expanded, because we can't
4042 # assume the linker understands whole_archive_flag_spec.
4043 # This may have to be revisited, in case too many
4044 # convenience libraries get linked in and end up exceeding
4045 # the spec.
4046 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
4047 save_libobjs=$libobjs
4048 fi
4049 save_output=$output
4050 output_la=`$echo "X$output" | $Xsed -e "$basename"`
4051
4052 # Clear the reloadable object creation command queue and
4053 # initialize k to one.
4054 test_cmds=
4055 concat_cmds=
4056 objlist=
4057 delfiles=
4058 last_robj=
4059 k=1
4060 output=$output_objdir/$output_la-${k}.$objext
4061 # Loop over the list of objects to be linked.
4062 for obj in $save_libobjs
4063 do
4064 eval test_cmds=\"$reload_cmds $objlist $last_robj\"
4065 if test "X$objlist" = X ||
4066 { len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
4067 test "$len" -le "$max_cmd_len"; }; then
4068 objlist="$objlist $obj"
4069 else
4070 # The command $test_cmds is almost too long, add a
4071 # command to the queue.
4072 if test "$k" -eq 1 ; then
4073 # The first file doesn't have a previous command to add.
4074 eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
4075 else
4076 # All subsequent reloadable object files will link in
4077 # the last one created.
4078 eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
4079 fi
4080 last_robj=$output_objdir/$output_la-${k}.$objext
4081 k=`expr $k + 1`
4082 output=$output_objdir/$output_la-${k}.$objext
4083 objlist=$obj
4084 len=1
4085 fi
4086 done
4087 # Handle the remaining objects by creating one last
4088 # reloadable object file. All subsequent reloadable object
4089 # files will link in the last one created.
4090 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
4091 eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
4092
4093 if ${skipped_export-false}; then
4094 $show "generating symbol list for \`$libname.la'"
4095 export_symbols="$output_objdir/$libname.exp"
4096 $run $rm $export_symbols
4097 libobjs=$output
4098 # Append the command to create the export file.
4099 eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
4100 fi
4101
4102 # Set up a command to remove the reloadable object files
4103 # after they are used.
4104 i=0
4105 while test "$i" -lt "$k"
4106 do
4107 i=`expr $i + 1`
4108 delfiles="$delfiles $output_objdir/$output_la-${i}.$objext"
4109 done
4110
4111 $echo "creating a temporary reloadable object file: $output"
4112
4113 # Loop through the commands generated above and execute them.
4114 save_ifs="$IFS"; IFS='~'
4115 for cmd in $concat_cmds; do
4116 IFS="$save_ifs"
4117 $show "$cmd"
4118 $run eval "$cmd" || exit $?
4119 done
4120 IFS="$save_ifs"
4121
4122 libobjs=$output
4123 # Restore the value of output.
4124 output=$save_output
4125
4126 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
4127 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
4128 fi
4129 # Expand the library linking commands again to reset the
4130 # value of $libobjs for piecewise linking.
4131
4132 # Do each of the archive commands.
4133 if test "$module" = yes && test -n "$module_cmds" ; then
4134 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
4135 cmds=$module_expsym_cmds
4136 else
4137 cmds=$module_cmds
4138 fi
4139 else
4140 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
4141 cmds=$archive_expsym_cmds
4142 else
4143 cmds=$archive_cmds
4144 fi
4145 fi
4146
4147 # Append the command to remove the reloadable object files
4148 # to the just-reset $cmds.
4149 eval cmds=\"\$cmds~\$rm $delfiles\"
4150 fi
4151 save_ifs="$IFS"; IFS='~'
4152 for cmd in $cmds; do
4153 IFS="$save_ifs"
4154 eval cmd=\"$cmd\"
4155 $show "$cmd"
4156 $run eval "$cmd" || {
4157 lt_exit=$?
4158
4159 # Restore the uninstalled library and exit
4160 if test "$mode" = relink; then
4161 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
4162 fi
4163
4164 exit $lt_exit
4165 }
4166 done
4167 IFS="$save_ifs"
4168
4169 # Restore the uninstalled library and exit
4170 if test "$mode" = relink; then
4171 $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
4172
4173 if test -n "$convenience"; then
4174 if test -z "$whole_archive_flag_spec"; then
4175 $show "${rm}r $gentop"
4176 $run ${rm}r "$gentop"
4177 fi
4178 fi
4179
4180 exit $EXIT_SUCCESS
4181 fi
4182
4183 # Create links to the real library.
4184 for linkname in $linknames; do
4185 if test "$realname" != "$linkname"; then
4186 $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
4187 $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
4188 fi
4189 done
4190
4191 # If -module or -export-dynamic was specified, set the dlname.
4192 if test "$module" = yes || test "$export_dynamic" = yes; then
4193 # On all known operating systems, these are identical.
4194 dlname="$soname"
4195 fi
4196 fi
4197 ;;
4198
4199 obj)
4200 if test -n "$deplibs"; then
4201 $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
4202 fi
4203
4204 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4205 $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
4206 fi
4207
4208 if test -n "$rpath"; then
4209 $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
4210 fi
4211
4212 if test -n "$xrpath"; then
4213 $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
4214 fi
4215
4216 if test -n "$vinfo"; then
4217 $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
4218 fi
4219
4220 if test -n "$release"; then
4221 $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
4222 fi
4223
4224 case $output in
4225 *.lo)
4226 if test -n "$objs$old_deplibs"; then
4227 $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
4228 exit $EXIT_FAILURE
4229 fi
4230 libobj="$output"
4231 obj=`$echo "X$output" | $Xsed -e "$lo2o"`
4232 ;;
4233 *)
4234 libobj=
4235 obj="$output"
4236 ;;
4237 esac
4238
4239 # Delete the old objects.
4240 $run $rm $obj $libobj
4241
4242 # Objects from convenience libraries. This assumes
4243 # single-version convenience libraries. Whenever we create
4244 # different ones for PIC/non-PIC, this we'll have to duplicate
4245 # the extraction.
4246 reload_conv_objs=
4247 gentop=
4248 # reload_cmds runs $LD directly, so let us get rid of
4249 # -Wl from whole_archive_flag_spec
4250 wl=
4251
4252 if test -n "$convenience"; then
4253 if test -n "$whole_archive_flag_spec"; then
4254 eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
4255 else
4256 gentop="$output_objdir/${obj}x"
4257 generated="$generated $gentop"
4258
4259 func_extract_archives $gentop $convenience
4260 reload_conv_objs="$reload_objs $func_extract_archives_result"
4261 fi
4262 fi
4263
4264 # Create the old-style object.
4265 reload_objs="$objs$old_deplibs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}$'/d' -e '/\.lib$/d' -e "$lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test
4266
4267 output="$obj"
4268 cmds=$reload_cmds
4269 save_ifs="$IFS"; IFS='~'
4270 for cmd in $cmds; do
4271 IFS="$save_ifs"
4272 eval cmd=\"$cmd\"
4273 $show "$cmd"
4274 $run eval "$cmd" || exit $?
4275 done
4276 IFS="$save_ifs"
4277
4278 # Exit if we aren't doing a library object file.
4279 if test -z "$libobj"; then
4280 if test -n "$gentop"; then
4281 $show "${rm}r $gentop"
4282 $run ${rm}r $gentop
4283 fi
4284
4285 exit $EXIT_SUCCESS
4286 fi
4287
4288 if test "$build_libtool_libs" != yes; then
4289 if test -n "$gentop"; then
4290 $show "${rm}r $gentop"
4291 $run ${rm}r $gentop
4292 fi
4293
4294 # Create an invalid libtool object if no PIC, so that we don't
4295 # accidentally link it into a program.
4296 # $show "echo timestamp > $libobj"
4297 # $run eval "echo timestamp > $libobj" || exit $?
4298 exit $EXIT_SUCCESS
4299 fi
4300
4301 if test -n "$pic_flag" || test "$pic_mode" != default; then
4302 # Only do commands if we really have different PIC objects.
4303 reload_objs="$libobjs $reload_conv_objs"
4304 output="$libobj"
4305 cmds=$reload_cmds
4306 save_ifs="$IFS"; IFS='~'
4307 for cmd in $cmds; do
4308 IFS="$save_ifs"
4309 eval cmd=\"$cmd\"
4310 $show "$cmd"
4311 $run eval "$cmd" || exit $?
4312 done
4313 IFS="$save_ifs"
4314 fi
4315
4316 if test -n "$gentop"; then
4317 $show "${rm}r $gentop"
4318 $run ${rm}r $gentop
4319 fi
4320
4321 exit $EXIT_SUCCESS
4322 ;;
4323
4324 prog)
4325 case $host in
4326 *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
4327 esac
4328 if test -n "$vinfo"; then
4329 $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
4330 fi
4331
4332 if test -n "$release"; then
4333 $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
4334 fi
4335
4336 if test "$preload" = yes; then
4337 if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
4338 test "$dlopen_self_static" = unknown; then
4339 $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
4340 fi
4341 fi
4342
4343 case $host in
4344 *-*-rhapsody* | *-*-darwin1.[012])
4345 # On Rhapsody replace the C library is the System framework
4346 compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4347 finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
4348 ;;
4349 esac
4350
4351 case $host in
4352 *darwin*)
4353 # Don't allow lazy linking, it breaks C++ global constructors
4354 if test "$tagname" = CXX ; then
4355 compile_command="$compile_command ${wl}-bind_at_load"
4356 finalize_command="$finalize_command ${wl}-bind_at_load"
4357 fi
4358 ;;
4359 esac
4360
4361
4362 # move library search paths that coincide with paths to not yet
4363 # installed libraries to the beginning of the library search list
4364 new_libs=
4365 for path in $notinst_path; do
4366 case " $new_libs " in
4367 *" -L$path/$objdir "*) ;;
4368 *)
4369 case " $compile_deplibs " in
4370 *" -L$path/$objdir "*)
4371 new_libs="$new_libs -L$path/$objdir" ;;
4372 esac
4373 ;;
4374 esac
4375 done
4376 for deplib in $compile_deplibs; do
4377 case $deplib in
4378 -L*)
4379 case " $new_libs " in
4380 *" $deplib "*) ;;
4381 *) new_libs="$new_libs $deplib" ;;
4382 esac
4383 ;;
4384 *) new_libs="$new_libs $deplib" ;;
4385 esac
4386 done
4387 compile_deplibs="$new_libs"
4388
4389
4390 compile_command="$compile_command $compile_deplibs"
4391 finalize_command="$finalize_command $finalize_deplibs"
4392
4393 if test -n "$rpath$xrpath"; then
4394 # If the user specified any rpath flags, then add them.
4395 for libdir in $rpath $xrpath; do
4396 # This is the magic to use -rpath.
4397 case "$finalize_rpath " in
4398 *" $libdir "*) ;;
4399 *) finalize_rpath="$finalize_rpath $libdir" ;;
4400 esac
4401 done
4402 fi
4403
4404 # Now hardcode the library paths
4405 rpath=
4406 hardcode_libdirs=
4407 for libdir in $compile_rpath $finalize_rpath; do
4408 if test -n "$hardcode_libdir_flag_spec"; then
4409 if test -n "$hardcode_libdir_separator"; then
4410 if test -z "$hardcode_libdirs"; then
4411 hardcode_libdirs="$libdir"
4412 else
4413 # Just accumulate the unique libdirs.
4414 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4415 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4416 ;;
4417 *)
4418 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4419 ;;
4420 esac
4421 fi
4422 else
4423 eval flag=\"$hardcode_libdir_flag_spec\"
4424 rpath="$rpath $flag"
4425 fi
4426 elif test -n "$runpath_var"; then
4427 case "$perm_rpath " in
4428 *" $libdir "*) ;;
4429 *) perm_rpath="$perm_rpath $libdir" ;;
4430 esac
4431 fi
4432 case $host in
4433 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
4434 testbindir=`$echo "X$libdir" | $Xsed -e 's*/lib$*/bin*'`
4435 case :$dllsearchpath: in
4436 *":$libdir:"*) ;;
4437 *) dllsearchpath="$dllsearchpath:$libdir";;
4438 esac
4439 case :$dllsearchpath: in
4440 *":$testbindir:"*) ;;
4441 *) dllsearchpath="$dllsearchpath:$testbindir";;
4442 esac
4443 ;;
4444 esac
4445 done
4446 # Substitute the hardcoded libdirs into the rpath.
4447 if test -n "$hardcode_libdir_separator" &&
4448 test -n "$hardcode_libdirs"; then
4449 libdir="$hardcode_libdirs"
4450 eval rpath=\" $hardcode_libdir_flag_spec\"
4451 fi
4452 compile_rpath="$rpath"
4453
4454 rpath=
4455 hardcode_libdirs=
4456 for libdir in $finalize_rpath; do
4457 if test -n "$hardcode_libdir_flag_spec"; then
4458 if test -n "$hardcode_libdir_separator"; then
4459 if test -z "$hardcode_libdirs"; then
4460 hardcode_libdirs="$libdir"
4461 else
4462 # Just accumulate the unique libdirs.
4463 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
4464 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
4465 ;;
4466 *)
4467 hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
4468 ;;
4469 esac
4470 fi
4471 else
4472 eval flag=\"$hardcode_libdir_flag_spec\"
4473 rpath="$rpath $flag"
4474 fi
4475 elif test -n "$runpath_var"; then
4476 case "$finalize_perm_rpath " in
4477 *" $libdir "*) ;;
4478 *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
4479 esac
4480 fi
4481 done
4482 # Substitute the hardcoded libdirs into the rpath.
4483 if test -n "$hardcode_libdir_separator" &&
4484 test -n "$hardcode_libdirs"; then
4485 libdir="$hardcode_libdirs"
4486 eval rpath=\" $hardcode_libdir_flag_spec\"
4487 fi
4488 finalize_rpath="$rpath"
4489
4490 if test -n "$libobjs" && test "$build_old_libs" = yes; then
4491 # Transform all the library objects into standard objects.
4492 compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4493 finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4494 fi
4495
4496 dlsyms=
4497 if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
4498 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4499 dlsyms="${outputname}S.c"
4500 else
4501 $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
4502 fi
4503 fi
4504
4505 if test -n "$dlsyms"; then
4506 case $dlsyms in
4507 "") ;;
4508 *.c)
4509 # Discover the nlist of each of the dlfiles.
4510 nlist="$output_objdir/${outputname}.nm"
4511
4512 $show "$rm $nlist ${nlist}S ${nlist}T"
4513 $run $rm "$nlist" "${nlist}S" "${nlist}T"
4514
4515 # Parse the name list into a source file.
4516 $show "creating $output_objdir/$dlsyms"
4517
4518 test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
4519 /* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
4520 /* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
4521
4522 #ifdef __cplusplus
4523 extern \"C\" {
4524 #endif
4525
4526 /* Prevent the only kind of declaration conflicts we can make. */
4527 #define lt_preloaded_symbols some_other_symbol
4528
4529 /* External symbol declarations for the compiler. */\
4530 "
4531
4532 if test "$dlself" = yes; then
4533 $show "generating symbol list for \`$output'"
4534
4535 test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
4536
4537 # Add our own program objects to the symbol list.
4538 progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
4539 for arg in $progfiles; do
4540 $show "extracting global C symbols from \`$arg'"
4541 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4542 done
4543
4544 if test -n "$exclude_expsyms"; then
4545 $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4546 $run eval '$mv "$nlist"T "$nlist"'
4547 fi
4548
4549 if test -n "$export_symbols_regex"; then
4550 $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4551 $run eval '$mv "$nlist"T "$nlist"'
4552 fi
4553
4554 # Prepare the list of exported symbols
4555 if test -z "$export_symbols"; then
4556 export_symbols="$output_objdir/$outputname.exp"
4557 $run $rm $export_symbols
4558 $run eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4559 case $host in
4560 *cygwin* | *mingw* )
4561 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4562 $run eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4563 ;;
4564 esac
4565 else
4566 $run eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4567 $run eval 'grep -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4568 $run eval 'mv "$nlist"T "$nlist"'
4569 case $host in
4570 *cygwin* | *mingw* )
4571 $run eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4572 $run eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4573 ;;
4574 esac
4575 fi
4576 fi
4577
4578 for arg in $dlprefiles; do
4579 $show "extracting global C symbols from \`$arg'"
4580 name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
4581 $run eval '$echo ": $name " >> "$nlist"'
4582 $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
4583 done
4584
4585 if test -z "$run"; then
4586 # Make sure we have at least an empty file.
4587 test -f "$nlist" || : > "$nlist"
4588
4589 if test -n "$exclude_expsyms"; then
4590 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4591 $mv "$nlist"T "$nlist"
4592 fi
4593
4594 # Try sorting and uniquifying the output.
4595 if grep -v "^: " < "$nlist" |
4596 if sort -k 3 </dev/null >/dev/null 2>&1; then
4597 sort -k 3
4598 else
4599 sort +2
4600 fi |
4601 uniq > "$nlist"S; then
4602 :
4603 else
4604 grep -v "^: " < "$nlist" > "$nlist"S
4605 fi
4606
4607 if test -f "$nlist"S; then
4608 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
4609 else
4610 $echo '/* NONE */' >> "$output_objdir/$dlsyms"
4611 fi
4612
4613 $echo >> "$output_objdir/$dlsyms" "\
4614
4615 #undef lt_preloaded_symbols
4616
4617 #if defined (__STDC__) && __STDC__
4618 # define lt_ptr void *
4619 #else
4620 # define lt_ptr char *
4621 # define const
4622 #endif
4623
4624 /* The mapping between symbol names and symbols. */
4625 "
4626
4627 case $host in
4628 *cygwin* | *mingw* )
4629 $echo >> "$output_objdir/$dlsyms" "\
4630 /* DATA imports from DLLs on WIN32 can't be const, because
4631 runtime relocations are performed -- see ld's documentation
4632 on pseudo-relocs */
4633 struct {
4634 "
4635 ;;
4636 * )
4637 $echo >> "$output_objdir/$dlsyms" "\
4638 const struct {
4639 "
4640 ;;
4641 esac
4642
4643
4644 $echo >> "$output_objdir/$dlsyms" "\
4645 const char *name;
4646 lt_ptr address;
4647 }
4648 lt_preloaded_symbols[] =
4649 {\
4650 "
4651
4652 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
4653
4654 $echo >> "$output_objdir/$dlsyms" "\
4655 {0, (lt_ptr) 0}
4656 };
4657
4658 /* This works around a problem in FreeBSD linker */
4659 #ifdef FREEBSD_WORKAROUND
4660 static const void *lt_preloaded_setup() {
4661 return lt_preloaded_symbols;
4662 }
4663 #endif
4664
4665 #ifdef __cplusplus
4666 }
4667 #endif\
4668 "
4669 fi
4670
4671 pic_flag_for_symtable=
4672 case $host in
4673 # compiling the symbol table file with pic_flag works around
4674 # a FreeBSD bug that causes programs to crash when -lm is
4675 # linked before any other PIC object. But we must not use
4676 # pic_flag when linking with -static. The problem exists in
4677 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4678 *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4679 case "$compile_command " in
4680 *" -static "*) ;;
4681 *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
4682 esac;;
4683 *-*-hpux*)
4684 case "$compile_command " in
4685 *" -static "*) ;;
4686 *) pic_flag_for_symtable=" $pic_flag";;
4687 esac
4688 esac
4689
4690 # Now compile the dynamic symbol file.
4691 $show "(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
4692 $run eval '(cd $output_objdir && $LTCC $LTCFLAGS -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
4693
4694 # Clean up the generated files.
4695 $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
4696 $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
4697
4698 # Transform the symbol file into the correct name.
4699 case $host in
4700 *cygwin* | *mingw* )
4701 if test -f "$output_objdir/${outputname}.def" ; then
4702 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4703 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}.def $output_objdir/${outputname}S.${objext}%"`
4704 else
4705 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4706 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4707 fi
4708 ;;
4709 * )
4710 compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4711 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
4712 ;;
4713 esac
4714 ;;
4715 *)
4716 $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
4717 exit $EXIT_FAILURE
4718 ;;
4719 esac
4720 else
4721 # We keep going just in case the user didn't refer to
4722 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4723 # really was required.
4724
4725 # Nullify the symbol file.
4726 compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
4727 finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
4728 fi
4729
4730 if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
4731 # Replace the output file specification.
4732 compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4733 link_command="$compile_command$compile_rpath"
4734
4735 # We have no uninstalled library dependencies, so finalize right now.
4736 $show "$link_command"
4737 $run eval "$link_command"
4738 exit_status=$?
4739
4740 # Delete the generated files.
4741 if test -n "$dlsyms"; then
4742 $show "$rm $output_objdir/${outputname}S.${objext}"
4743 $run $rm "$output_objdir/${outputname}S.${objext}"
4744 fi
4745
4746 exit $exit_status
4747 fi
4748
4749 if test -n "$shlibpath_var"; then
4750 # We should set the shlibpath_var
4751 rpath=
4752 for dir in $temp_rpath; do
4753 case $dir in
4754 [\\/]* | [A-Za-z]:[\\/]*)
4755 # Absolute path.
4756 rpath="$rpath$dir:"
4757 ;;
4758 *)
4759 # Relative path: add a thisdir entry.
4760 rpath="$rpath\$thisdir/$dir:"
4761 ;;
4762 esac
4763 done
4764 temp_rpath="$rpath"
4765 fi
4766
4767 if test -n "$compile_shlibpath$finalize_shlibpath"; then
4768 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
4769 fi
4770 if test -n "$finalize_shlibpath"; then
4771 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
4772 fi
4773
4774 compile_var=
4775 finalize_var=
4776 if test -n "$runpath_var"; then
4777 if test -n "$perm_rpath"; then
4778 # We should set the runpath_var.
4779 rpath=
4780 for dir in $perm_rpath; do
4781 rpath="$rpath$dir:"
4782 done
4783 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
4784 fi
4785 if test -n "$finalize_perm_rpath"; then
4786 # We should set the runpath_var.
4787 rpath=
4788 for dir in $finalize_perm_rpath; do
4789 rpath="$rpath$dir:"
4790 done
4791 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
4792 fi
4793 fi
4794
4795 if test "$no_install" = yes; then
4796 # We don't need to create a wrapper script.
4797 link_command="$compile_var$compile_command$compile_rpath"
4798 # Replace the output file specification.
4799 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
4800 # Delete the old output file.
4801 $run $rm $output
4802 # Link the executable and exit
4803 $show "$link_command"
4804 $run eval "$link_command" || exit $?
4805 exit $EXIT_SUCCESS
4806 fi
4807
4808 if test "$hardcode_action" = relink; then
4809 # Fast installation is not supported
4810 link_command="$compile_var$compile_command$compile_rpath"
4811 relink_command="$finalize_var$finalize_command$finalize_rpath"
4812
4813 $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
4814 $echo "$modename: \`$output' will be relinked during installation" 1>&2
4815 else
4816 if test "$fast_install" != no; then
4817 link_command="$finalize_var$compile_command$finalize_rpath"
4818 if test "$fast_install" = yes; then
4819 relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
4820 else
4821 # fast_install is set to needless
4822 relink_command=
4823 fi
4824 else
4825 link_command="$compile_var$compile_command$compile_rpath"
4826 relink_command="$finalize_var$finalize_command$finalize_rpath"
4827 fi
4828 fi
4829
4830 # Replace the output file specification.
4831 link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
4832
4833 # Delete the old output files.
4834 $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
4835
4836 $show "$link_command"
4837 $run eval "$link_command" || exit $?
4838
4839 # Now create the wrapper script.
4840 $show "creating $output"
4841
4842 # Quote the relink command for shipping.
4843 if test -n "$relink_command"; then
4844 # Preserve any variables that may affect compiler behavior
4845 for var in $variables_saved_for_relink; do
4846 if eval test -z \"\${$var+set}\"; then
4847 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
4848 elif eval var_value=\$$var; test -z "$var_value"; then
4849 relink_command="$var=; export $var; $relink_command"
4850 else
4851 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
4852 relink_command="$var=\"$var_value\"; export $var; $relink_command"
4853 fi
4854 done
4855 relink_command="(cd `pwd`; $relink_command)"
4856 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
4857 fi
4858
4859 # Quote $echo for shipping.
4860 if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
4861 case $progpath in
4862 [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
4863 *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
4864 esac
4865 qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
4866 else
4867 qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
4868 fi
4869
4870 # Only actually do things if our run command is non-null.
4871 if test -z "$run"; then
4872 # win32 will think the script is a binary if it has
4873 # a .exe suffix, so we strip it off here.
4874 case $output in
4875 *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
4876 esac
4877 # test for cygwin because mv fails w/o .exe extensions
4878 case $host in
4879 *cygwin*)
4880 exeext=.exe
4881 outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
4882 *) exeext= ;;
4883 esac
4884 case $host in
4885 *cygwin* | *mingw* )
4886 output_name=`basename $output`
4887 output_path=`dirname $output`
4888 cwrappersource="$output_path/$objdir/lt-$output_name.c"
4889 cwrapper="$output_path/$output_name.exe"
4890 $rm $cwrappersource $cwrapper
4891 trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
4892
4893 cat > $cwrappersource <<EOF
4894
4895 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
4896 Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
4897
4898 The $output program cannot be directly executed until all the libtool
4899 libraries that it depends on are installed.
4900
4901 This wrapper executable should never be moved out of the build directory.
4902 If it is, it will not operate correctly.
4903
4904 Currently, it simply execs the wrapper *script* "/bin/sh $output",
4905 but could eventually absorb all of the scripts functionality and
4906 exec $objdir/$outputname directly.
4907 */
4908 EOF
4909 cat >> $cwrappersource<<"EOF"
4910 #include <stdio.h>
4911 #include <stdlib.h>
4912 #include <unistd.h>
4913 #include <malloc.h>
4914 #include <stdarg.h>
4915 #include <assert.h>
4916 #include <string.h>
4917 #include <ctype.h>
4918 #include <sys/stat.h>
4919
4920 #if defined(PATH_MAX)
4921 # define LT_PATHMAX PATH_MAX
4922 #elif defined(MAXPATHLEN)
4923 # define LT_PATHMAX MAXPATHLEN
4924 #else
4925 # define LT_PATHMAX 1024
4926 #endif
4927
4928 #ifndef DIR_SEPARATOR
4929 # define DIR_SEPARATOR '/'
4930 # define PATH_SEPARATOR ':'
4931 #endif
4932
4933 #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
4934 defined (__OS2__)
4935 # define HAVE_DOS_BASED_FILE_SYSTEM
4936 # ifndef DIR_SEPARATOR_2
4937 # define DIR_SEPARATOR_2 '\\'
4938 # endif
4939 # ifndef PATH_SEPARATOR_2
4940 # define PATH_SEPARATOR_2 ';'
4941 # endif
4942 #endif
4943
4944 #ifndef DIR_SEPARATOR_2
4945 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
4946 #else /* DIR_SEPARATOR_2 */
4947 # define IS_DIR_SEPARATOR(ch) \
4948 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
4949 #endif /* DIR_SEPARATOR_2 */
4950
4951 #ifndef PATH_SEPARATOR_2
4952 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
4953 #else /* PATH_SEPARATOR_2 */
4954 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
4955 #endif /* PATH_SEPARATOR_2 */
4956
4957 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
4958 #define XFREE(stale) do { \
4959 if (stale) { free ((void *) stale); stale = 0; } \
4960 } while (0)
4961
4962 /* -DDEBUG is fairly common in CFLAGS. */
4963 #undef DEBUG
4964 #if defined DEBUGWRAPPER
4965 # define DEBUG(format, ...) fprintf(stderr, format, __VA_ARGS__)
4966 #else
4967 # define DEBUG(format, ...)
4968 #endif
4969
4970 const char *program_name = NULL;
4971
4972 void * xmalloc (size_t num);
4973 char * xstrdup (const char *string);
4974 const char * base_name (const char *name);
4975 char * find_executable(const char *wrapper);
4976 int check_executable(const char *path);
4977 char * strendzap(char *str, const char *pat);
4978 void lt_fatal (const char *message, ...);
4979
4980 int
4981 main (int argc, char *argv[])
4982 {
4983 char **newargz;
4984 int i;
4985
4986 program_name = (char *) xstrdup (base_name (argv[0]));
4987 DEBUG("(main) argv[0] : %s\n",argv[0]);
4988 DEBUG("(main) program_name : %s\n",program_name);
4989 newargz = XMALLOC(char *, argc+2);
4990 EOF
4991
4992 cat >> $cwrappersource <<EOF
4993 newargz[0] = (char *) xstrdup("$SHELL");
4994 EOF
4995
4996 cat >> $cwrappersource <<"EOF"
4997 newargz[1] = find_executable(argv[0]);
4998 if (newargz[1] == NULL)
4999 lt_fatal("Couldn't find %s", argv[0]);
5000 DEBUG("(main) found exe at : %s\n",newargz[1]);
5001 /* we know the script has the same name, without the .exe */
5002 /* so make sure newargz[1] doesn't end in .exe */
5003 strendzap(newargz[1],".exe");
5004 for (i = 1; i < argc; i++)
5005 newargz[i+1] = xstrdup(argv[i]);
5006 newargz[argc+1] = NULL;
5007
5008 for (i=0; i<argc+1; i++)
5009 {
5010 DEBUG("(main) newargz[%d] : %s\n",i,newargz[i]);
5011 ;
5012 }
5013
5014 EOF
5015
5016 case $host_os in
5017 mingw*)
5018 cat >> $cwrappersource <<EOF
5019 execv("$SHELL",(char const **)newargz);
5020 EOF
5021 ;;
5022 *)
5023 cat >> $cwrappersource <<EOF
5024 execv("$SHELL",newargz);
5025 EOF
5026 ;;
5027 esac
5028
5029 cat >> $cwrappersource <<"EOF"
5030 return 127;
5031 }
5032
5033 void *
5034 xmalloc (size_t num)
5035 {
5036 void * p = (void *) malloc (num);
5037 if (!p)
5038 lt_fatal ("Memory exhausted");
5039
5040 return p;
5041 }
5042
5043 char *
5044 xstrdup (const char *string)
5045 {
5046 return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
5047 ;
5048 }
5049
5050 const char *
5051 base_name (const char *name)
5052 {
5053 const char *base;
5054
5055 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5056 /* Skip over the disk name in MSDOS pathnames. */
5057 if (isalpha ((unsigned char)name[0]) && name[1] == ':')
5058 name += 2;
5059 #endif
5060
5061 for (base = name; *name; name++)
5062 if (IS_DIR_SEPARATOR (*name))
5063 base = name + 1;
5064 return base;
5065 }
5066
5067 int
5068 check_executable(const char * path)
5069 {
5070 struct stat st;
5071
5072 DEBUG("(check_executable) : %s\n", path ? (*path ? path : "EMPTY!") : "NULL!");
5073 if ((!path) || (!*path))
5074 return 0;
5075
5076 if ((stat (path, &st) >= 0) &&
5077 (
5078 /* MinGW & native WIN32 do not support S_IXOTH or S_IXGRP */
5079 #if defined (S_IXOTH)
5080 ((st.st_mode & S_IXOTH) == S_IXOTH) ||
5081 #endif
5082 #if defined (S_IXGRP)
5083 ((st.st_mode & S_IXGRP) == S_IXGRP) ||
5084 #endif
5085 ((st.st_mode & S_IXUSR) == S_IXUSR))
5086 )
5087 return 1;
5088 else
5089 return 0;
5090 }
5091
5092 /* Searches for the full path of the wrapper. Returns
5093 newly allocated full path name if found, NULL otherwise */
5094 char *
5095 find_executable (const char* wrapper)
5096 {
5097 int has_slash = 0;
5098 const char* p;
5099 const char* p_next;
5100 /* static buffer for getcwd */
5101 char tmp[LT_PATHMAX + 1];
5102 int tmp_len;
5103 char* concat_name;
5104
5105 DEBUG("(find_executable) : %s\n", wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!");
5106
5107 if ((wrapper == NULL) || (*wrapper == '\0'))
5108 return NULL;
5109
5110 /* Absolute path? */
5111 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5112 if (isalpha ((unsigned char)wrapper[0]) && wrapper[1] == ':')
5113 {
5114 concat_name = xstrdup (wrapper);
5115 if (check_executable(concat_name))
5116 return concat_name;
5117 XFREE(concat_name);
5118 }
5119 else
5120 {
5121 #endif
5122 if (IS_DIR_SEPARATOR (wrapper[0]))
5123 {
5124 concat_name = xstrdup (wrapper);
5125 if (check_executable(concat_name))
5126 return concat_name;
5127 XFREE(concat_name);
5128 }
5129 #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
5130 }
5131 #endif
5132
5133 for (p = wrapper; *p; p++)
5134 if (*p == '/')
5135 {
5136 has_slash = 1;
5137 break;
5138 }
5139 if (!has_slash)
5140 {
5141 /* no slashes; search PATH */
5142 const char* path = getenv ("PATH");
5143 if (path != NULL)
5144 {
5145 for (p = path; *p; p = p_next)
5146 {
5147 const char* q;
5148 size_t p_len;
5149 for (q = p; *q; q++)
5150 if (IS_PATH_SEPARATOR(*q))
5151 break;
5152 p_len = q - p;
5153 p_next = (*q == '\0' ? q : q + 1);
5154 if (p_len == 0)
5155 {
5156 /* empty path: current directory */
5157 if (getcwd (tmp, LT_PATHMAX) == NULL)
5158 lt_fatal ("getcwd failed");
5159 tmp_len = strlen(tmp);
5160 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5161 memcpy (concat_name, tmp, tmp_len);
5162 concat_name[tmp_len] = '/';
5163 strcpy (concat_name + tmp_len + 1, wrapper);
5164 }
5165 else
5166 {
5167 concat_name = XMALLOC(char, p_len + 1 + strlen(wrapper) + 1);
5168 memcpy (concat_name, p, p_len);
5169 concat_name[p_len] = '/';
5170 strcpy (concat_name + p_len + 1, wrapper);
5171 }
5172 if (check_executable(concat_name))
5173 return concat_name;
5174 XFREE(concat_name);
5175 }
5176 }
5177 /* not found in PATH; assume curdir */
5178 }
5179 /* Relative path | not found in path: prepend cwd */
5180 if (getcwd (tmp, LT_PATHMAX) == NULL)
5181 lt_fatal ("getcwd failed");
5182 tmp_len = strlen(tmp);
5183 concat_name = XMALLOC(char, tmp_len + 1 + strlen(wrapper) + 1);
5184 memcpy (concat_name, tmp, tmp_len);
5185 concat_name[tmp_len] = '/';
5186 strcpy (concat_name + tmp_len + 1, wrapper);
5187
5188 if (check_executable(concat_name))
5189 return concat_name;
5190 XFREE(concat_name);
5191 return NULL;
5192 }
5193
5194 char *
5195 strendzap(char *str, const char *pat)
5196 {
5197 size_t len, patlen;
5198
5199 assert(str != NULL);
5200 assert(pat != NULL);
5201
5202 len = strlen(str);
5203 patlen = strlen(pat);
5204
5205 if (patlen <= len)
5206 {
5207 str += len - patlen;
5208 if (strcmp(str, pat) == 0)
5209 *str = '\0';
5210 }
5211 return str;
5212 }
5213
5214 static void
5215 lt_error_core (int exit_status, const char * mode,
5216 const char * message, va_list ap)
5217 {
5218 fprintf (stderr, "%s: %s: ", program_name, mode);
5219 vfprintf (stderr, message, ap);
5220 fprintf (stderr, ".\n");
5221
5222 if (exit_status >= 0)
5223 exit (exit_status);
5224 }
5225
5226 void
5227 lt_fatal (const char *message, ...)
5228 {
5229 va_list ap;
5230 va_start (ap, message);
5231 lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
5232 va_end (ap);
5233 }
5234 EOF
5235 # we should really use a build-platform specific compiler
5236 # here, but OTOH, the wrappers (shell script and this C one)
5237 # are only useful if you want to execute the "real" binary.
5238 # Since the "real" binary is built for $host, then this
5239 # wrapper might as well be built for $host, too.
5240 $run $LTCC $LTCFLAGS -s -o $cwrapper $cwrappersource
5241 ;;
5242 esac
5243 $rm $output
5244 trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
5245
5246 $echo > $output "\
5247 #! $SHELL
5248
5249 # $output - temporary wrapper script for $objdir/$outputname
5250 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5251 #
5252 # The $output program cannot be directly executed until all the libtool
5253 # libraries that it depends on are installed.
5254 #
5255 # This wrapper script should never be moved out of the build directory.
5256 # If it is, it will not operate correctly.
5257
5258 # Sed substitution that helps us do robust quoting. It backslashifies
5259 # metacharacters that are still active within double-quoted strings.
5260 Xsed='${SED} -e 1s/^X//'
5261 sed_quote_subst='$sed_quote_subst'
5262
5263 # The HP-UX ksh and POSIX shell print the target directory to stdout
5264 # if CDPATH is set.
5265 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5266
5267 relink_command=\"$relink_command\"
5268
5269 # This environment variable determines our operation mode.
5270 if test \"\$libtool_install_magic\" = \"$magic\"; then
5271 # install mode needs the following variable:
5272 notinst_deplibs='$notinst_deplibs'
5273 else
5274 # When we are sourced in execute mode, \$file and \$echo are already set.
5275 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5276 echo=\"$qecho\"
5277 file=\"\$0\"
5278 # Make sure echo works.
5279 if test \"X\$1\" = X--no-reexec; then
5280 # Discard the --no-reexec flag, and continue.
5281 shift
5282 elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
5283 # Yippee, \$echo works!
5284 :
5285 else
5286 # Restart under the correct shell, and then maybe \$echo will work.
5287 exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
5288 fi
5289 fi\
5290 "
5291 $echo >> $output "\
5292
5293 # Find the directory that this script lives in.
5294 thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
5295 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5296
5297 # Follow symbolic links until we get to the real thisdir.
5298 file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
5299 while test -n \"\$file\"; do
5300 destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
5301
5302 # If there was a directory component, then change thisdir.
5303 if test \"x\$destdir\" != \"x\$file\"; then
5304 case \"\$destdir\" in
5305 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5306 *) thisdir=\"\$thisdir/\$destdir\" ;;
5307 esac
5308 fi
5309
5310 file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
5311 file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
5312 done
5313
5314 # Try to get the absolute directory name.
5315 absdir=\`cd \"\$thisdir\" && pwd\`
5316 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5317 "
5318
5319 if test "$fast_install" = yes; then
5320 $echo >> $output "\
5321 program=lt-'$outputname'$exeext
5322 progdir=\"\$thisdir/$objdir\"
5323
5324 if test ! -f \"\$progdir/\$program\" || \\
5325 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
5326 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5327
5328 file=\"\$\$-\$program\"
5329
5330 if test ! -d \"\$progdir\"; then
5331 $mkdir \"\$progdir\"
5332 else
5333 $rm \"\$progdir/\$file\"
5334 fi"
5335
5336 $echo >> $output "\
5337
5338 # relink executable if necessary
5339 if test -n \"\$relink_command\"; then
5340 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5341 else
5342 $echo \"\$relink_command_output\" >&2
5343 $rm \"\$progdir/\$file\"
5344 exit $EXIT_FAILURE
5345 fi
5346 fi
5347
5348 $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5349 { $rm \"\$progdir/\$program\";
5350 $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5351 $rm \"\$progdir/\$file\"
5352 fi"
5353 else
5354 $echo >> $output "\
5355 program='$outputname'
5356 progdir=\"\$thisdir/$objdir\"
5357 "
5358 fi
5359
5360 $echo >> $output "\
5361
5362 if test -f \"\$progdir/\$program\"; then"
5363
5364 # Export our shlibpath_var if we have one.
5365 if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5366 $echo >> $output "\
5367 # Add our own library path to $shlibpath_var
5368 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5369
5370 # Some systems cannot cope with colon-terminated $shlibpath_var
5371 # The second colon is a workaround for a bug in BeOS R4 sed
5372 $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
5373
5374 export $shlibpath_var
5375 "
5376 fi
5377
5378 # fixup the dll searchpath if we need to.
5379 if test -n "$dllsearchpath"; then
5380 $echo >> $output "\
5381 # Add the dll search path components to the executable PATH
5382 PATH=$dllsearchpath:\$PATH
5383 "
5384 fi
5385
5386 $echo >> $output "\
5387 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5388 # Run the actual program with our arguments.
5389 "
5390 case $host in
5391 # Backslashes separate directories on plain windows
5392 *-*-mingw | *-*-os2*)
5393 $echo >> $output "\
5394 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5395 "
5396 ;;
5397
5398 *)
5399 $echo >> $output "\
5400 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5401 "
5402 ;;
5403 esac
5404 $echo >> $output "\
5405 \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
5406 exit $EXIT_FAILURE
5407 fi
5408 else
5409 # The program doesn't exist.
5410 \$echo \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
5411 \$echo \"This script is just a wrapper for \$program.\" 1>&2
5412 $echo \"See the $PACKAGE documentation for more information.\" 1>&2
5413 exit $EXIT_FAILURE
5414 fi
5415 fi\
5416 "
5417 chmod +x $output
5418 fi
5419 exit $EXIT_SUCCESS
5420 ;;
5421 esac
5422
5423 # See if we need to build an old-fashioned archive.
5424 for oldlib in $oldlibs; do
5425
5426 if test "$build_libtool_libs" = convenience; then
5427 oldobjs="$libobjs_save"
5428 addlibs="$convenience"
5429 build_libtool_libs=no
5430 else
5431 if test "$build_libtool_libs" = module; then
5432 oldobjs="$libobjs_save"
5433 build_libtool_libs=no
5434 else
5435 oldobjs="$old_deplibs $non_pic_objects"
5436 fi
5437 addlibs="$old_convenience"
5438 fi
5439
5440 if test -n "$addlibs"; then
5441 gentop="$output_objdir/${outputname}x"
5442 generated="$generated $gentop"
5443
5444 func_extract_archives $gentop $addlibs
5445 oldobjs="$oldobjs $func_extract_archives_result"
5446 fi
5447
5448 # Do each command in the archive commands.
5449 if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
5450 cmds=$old_archive_from_new_cmds
5451 else
5452 # POSIX demands no paths to be encoded in archives. We have
5453 # to avoid creating archives with duplicate basenames if we
5454 # might have to extract them afterwards, e.g., when creating a
5455 # static archive out of a convenience library, or when linking
5456 # the entirety of a libtool archive into another (currently
5457 # not supported by libtool).
5458 if (for obj in $oldobjs
5459 do
5460 $echo "X$obj" | $Xsed -e 's%^.*/%%'
5461 done | sort | sort -uc >/dev/null 2>&1); then
5462 :
5463 else
5464 $echo "copying selected object files to avoid basename conflicts..."
5465
5466 if test -z "$gentop"; then
5467 gentop="$output_objdir/${outputname}x"
5468 generated="$generated $gentop"
5469
5470 $show "${rm}r $gentop"
5471 $run ${rm}r "$gentop"
5472 $show "$mkdir $gentop"
5473 $run $mkdir "$gentop"
5474 exit_status=$?
5475 if test "$exit_status" -ne 0 && test ! -d "$gentop"; then
5476 exit $exit_status
5477 fi
5478 fi
5479
5480 save_oldobjs=$oldobjs
5481 oldobjs=
5482 counter=1
5483 for obj in $save_oldobjs
5484 do
5485 objbase=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
5486 case " $oldobjs " in
5487 " ") oldobjs=$obj ;;
5488 *[\ /]"$objbase "*)
5489 while :; do
5490 # Make sure we don't pick an alternate name that also
5491 # overlaps.
5492 newobj=lt$counter-$objbase
5493 counter=`expr $counter + 1`
5494 case " $oldobjs " in
5495 *[\ /]"$newobj "*) ;;
5496 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
5497 esac
5498 done
5499 $show "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
5500 $run ln "$obj" "$gentop/$newobj" ||
5501 $run cp "$obj" "$gentop/$newobj"
5502 oldobjs="$oldobjs $gentop/$newobj"
5503 ;;
5504 *) oldobjs="$oldobjs $obj" ;;
5505 esac
5506 done
5507 fi
5508
5509 eval cmds=\"$old_archive_cmds\"
5510
5511 if len=`expr "X$cmds" : ".*"` &&
5512 test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
5513 cmds=$old_archive_cmds
5514 else
5515 # the command line is too long to link in one step, link in parts
5516 $echo "using piecewise archive linking..."
5517 save_RANLIB=$RANLIB
5518 RANLIB=:
5519 objlist=
5520 concat_cmds=
5521 save_oldobjs=$oldobjs
5522
5523 # Is there a better way of finding the last object in the list?
5524 for obj in $save_oldobjs
5525 do
5526 last_oldobj=$obj
5527 done
5528 for obj in $save_oldobjs
5529 do
5530 oldobjs="$objlist $obj"
5531 objlist="$objlist $obj"
5532 eval test_cmds=\"$old_archive_cmds\"
5533 if len=`expr "X$test_cmds" : ".*" 2>/dev/null` &&
5534 test "$len" -le "$max_cmd_len"; then
5535 :
5536 else
5537 # the above command should be used before it gets too long
5538 oldobjs=$objlist
5539 if test "$obj" = "$last_oldobj" ; then
5540 RANLIB=$save_RANLIB
5541 fi
5542 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
5543 eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
5544 objlist=
5545 fi
5546 done
5547 RANLIB=$save_RANLIB
5548 oldobjs=$objlist
5549 if test "X$oldobjs" = "X" ; then
5550 eval cmds=\"\$concat_cmds\"
5551 else
5552 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
5553 fi
5554 fi
5555 fi
5556 save_ifs="$IFS"; IFS='~'
5557 for cmd in $cmds; do
5558 eval cmd=\"$cmd\"
5559 IFS="$save_ifs"
5560 $show "$cmd"
5561 $run eval "$cmd" || exit $?
5562 done
5563 IFS="$save_ifs"
5564 done
5565
5566 if test -n "$generated"; then
5567 $show "${rm}r$generated"
5568 $run ${rm}r$generated
5569 fi
5570
5571 # Now create the libtool archive.
5572 case $output in
5573 *.la)
5574 old_library=
5575 test "$build_old_libs" = yes && old_library="$libname.$libext"
5576 $show "creating $output"
5577
5578 # Preserve any variables that may affect compiler behavior
5579 for var in $variables_saved_for_relink; do
5580 if eval test -z \"\${$var+set}\"; then
5581 relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
5582 elif eval var_value=\$$var; test -z "$var_value"; then
5583 relink_command="$var=; export $var; $relink_command"
5584 else
5585 var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
5586 relink_command="$var=\"$var_value\"; export $var; $relink_command"
5587 fi
5588 done
5589 # Quote the link command for shipping.
5590 relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
5591 relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
5592 if test "$hardcode_automatic" = yes ; then
5593 relink_command=
5594 fi
5595
5596
5597 # Only create the output if not a dry run.
5598 if test -z "$run"; then
5599 for installed in no yes; do
5600 if test "$installed" = yes; then
5601 if test -z "$install_libdir"; then
5602 break
5603 fi
5604 output="$output_objdir/$outputname"i
5605 # Replace all uninstalled libtool libraries with the installed ones
5606 newdependency_libs=
5607 for deplib in $dependency_libs; do
5608 case $deplib in
5609 *.la)
5610 name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
5611 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
5612 if test -z "$libdir"; then
5613 $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
5614 exit $EXIT_FAILURE
5615 fi
5616 newdependency_libs="$newdependency_libs $libdir/$name"
5617 ;;
5618 *) newdependency_libs="$newdependency_libs $deplib" ;;
5619 esac
5620 done
5621 dependency_libs="$newdependency_libs"
5622 newdlfiles=
5623 for lib in $dlfiles; do
5624 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5625 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5626 if test -z "$libdir"; then
5627 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5628 exit $EXIT_FAILURE
5629 fi
5630 newdlfiles="$newdlfiles $libdir/$name"
5631 done
5632 dlfiles="$newdlfiles"
5633 newdlprefiles=
5634 for lib in $dlprefiles; do
5635 name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
5636 eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
5637 if test -z "$libdir"; then
5638 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
5639 exit $EXIT_FAILURE
5640 fi
5641 newdlprefiles="$newdlprefiles $libdir/$name"
5642 done
5643 dlprefiles="$newdlprefiles"
5644 else
5645 newdlfiles=
5646 for lib in $dlfiles; do
5647 case $lib in
5648 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5649 *) abs=`pwd`"/$lib" ;;
5650 esac
5651 newdlfiles="$newdlfiles $abs"
5652 done
5653 dlfiles="$newdlfiles"
5654 newdlprefiles=
5655 for lib in $dlprefiles; do
5656 case $lib in
5657 [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
5658 *) abs=`pwd`"/$lib" ;;
5659 esac
5660 newdlprefiles="$newdlprefiles $abs"
5661 done
5662 dlprefiles="$newdlprefiles"
5663 fi
5664 $rm $output
5665 # place dlname in correct position for cygwin
5666 tdlname=$dlname
5667 case $host,$output,$installed,$module,$dlname in
5668 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
5669 esac
5670 $echo > $output "\
5671 # $outputname - a libtool library file
5672 # Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
5673 #
5674 # Please DO NOT delete this file!
5675 # It is necessary for linking the library.
5676
5677 # The name that we can dlopen(3).
5678 dlname='$tdlname'
5679
5680 # Names of this library.
5681 library_names='$library_names'
5682
5683 # The name of the static archive.
5684 old_library='$old_library'
5685
5686 # Libraries that this one depends upon.
5687 dependency_libs='$dependency_libs'
5688
5689 # Version information for $libname.
5690 current=$current
5691 age=$age
5692 revision=$revision
5693
5694 # Is this an already installed library?
5695 installed=$installed
5696
5697 # Should we warn about portability when linking against -modules?
5698 shouldnotlink=$module
5699
5700 # Files to dlopen/dlpreopen
5701 dlopen='$dlfiles'
5702 dlpreopen='$dlprefiles'
5703
5704 # Directory that this library needs to be installed in:
5705 libdir='$install_libdir'"
5706 if test "$installed" = no && test "$need_relink" = yes; then
5707 $echo >> $output "\
5708 relink_command=\"$relink_command\""
5709 fi
5710 done
5711 fi
5712
5713 # Do a symbolic link so that the libtool archive can be found in
5714 # LD_LIBRARY_PATH before the program is installed.
5715 $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
5716 $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
5717 ;;
5718 esac
5719 exit $EXIT_SUCCESS
5720 ;;
5721
5722 # libtool install mode
5723 install)
5724 modename="$modename: install"
5725
5726 # There may be an optional sh(1) argument at the beginning of
5727 # install_prog (especially on Windows NT).
5728 if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
5729 # Allow the use of GNU shtool's install command.
5730 $echo "X$nonopt" | grep shtool > /dev/null; then
5731 # Aesthetically quote it.
5732 arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
5733 case $arg in
5734 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5735 arg="\"$arg\""
5736 ;;
5737 esac
5738 install_prog="$arg "
5739 arg="$1"
5740 shift
5741 else
5742 install_prog=
5743 arg=$nonopt
5744 fi
5745
5746 # The real first argument should be the name of the installation program.
5747 # Aesthetically quote it.
5748 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5749 case $arg in
5750 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5751 arg="\"$arg\""
5752 ;;
5753 esac
5754 install_prog="$install_prog$arg"
5755
5756 # We need to accept at least all the BSD install flags.
5757 dest=
5758 files=
5759 opts=
5760 prev=
5761 install_type=
5762 isdir=no
5763 stripme=
5764 for arg
5765 do
5766 if test -n "$dest"; then
5767 files="$files $dest"
5768 dest=$arg
5769 continue
5770 fi
5771
5772 case $arg in
5773 -d) isdir=yes ;;
5774 -f)
5775 case " $install_prog " in
5776 *[\\\ /]cp\ *) ;;
5777 *) prev=$arg ;;
5778 esac
5779 ;;
5780 -g | -m | -o) prev=$arg ;;
5781 -s)
5782 stripme=" -s"
5783 continue
5784 ;;
5785 -*)
5786 ;;
5787 *)
5788 # If the previous option needed an argument, then skip it.
5789 if test -n "$prev"; then
5790 prev=
5791 else
5792 dest=$arg
5793 continue
5794 fi
5795 ;;
5796 esac
5797
5798 # Aesthetically quote the argument.
5799 arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
5800 case $arg in
5801 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
5802 arg="\"$arg\""
5803 ;;
5804 esac
5805 install_prog="$install_prog $arg"
5806 done
5807
5808 if test -z "$install_prog"; then
5809 $echo "$modename: you must specify an install program" 1>&2
5810 $echo "$help" 1>&2
5811 exit $EXIT_FAILURE
5812 fi
5813
5814 if test -n "$prev"; then
5815 $echo "$modename: the \`$prev' option requires an argument" 1>&2
5816 $echo "$help" 1>&2
5817 exit $EXIT_FAILURE
5818 fi
5819
5820 if test -z "$files"; then
5821 if test -z "$dest"; then
5822 $echo "$modename: no file or destination specified" 1>&2
5823 else
5824 $echo "$modename: you must specify a destination" 1>&2
5825 fi
5826 $echo "$help" 1>&2
5827 exit $EXIT_FAILURE
5828 fi
5829
5830 # Strip any trailing slash from the destination.
5831 dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
5832
5833 # Check to see that the destination is a directory.
5834 test -d "$dest" && isdir=yes
5835 if test "$isdir" = yes; then
5836 destdir="$dest"
5837 destname=
5838 else
5839 destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
5840 test "X$destdir" = "X$dest" && destdir=.
5841 destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
5842
5843 # Not a directory, so check to see that there is only one file specified.
5844 set dummy $files
5845 if test "$#" -gt 2; then
5846 $echo "$modename: \`$dest' is not a directory" 1>&2
5847 $echo "$help" 1>&2
5848 exit $EXIT_FAILURE
5849 fi
5850 fi
5851 case $destdir in
5852 [\\/]* | [A-Za-z]:[\\/]*) ;;
5853 *)
5854 for file in $files; do
5855 case $file in
5856 *.lo) ;;
5857 *)
5858 $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
5859 $echo "$help" 1>&2
5860 exit $EXIT_FAILURE
5861 ;;
5862 esac
5863 done
5864 ;;
5865 esac
5866
5867 # This variable tells wrapper scripts just to set variables rather
5868 # than running their programs.
5869 libtool_install_magic="$magic"
5870
5871 staticlibs=
5872 future_libdirs=
5873 current_libdirs=
5874 for file in $files; do
5875
5876 # Do each installation.
5877 case $file in
5878 *.$libext)
5879 # Do the static libraries later.
5880 staticlibs="$staticlibs $file"
5881 ;;
5882
5883 *.la)
5884 # Check to see that this really is a libtool archive.
5885 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
5886 else
5887 $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
5888 $echo "$help" 1>&2
5889 exit $EXIT_FAILURE
5890 fi
5891
5892 library_names=
5893 old_library=
5894 relink_command=
5895 # If there is no directory component, then add one.
5896 case $file in
5897 */* | *\\*) . $file ;;
5898 *) . ./$file ;;
5899 esac
5900
5901 # Add the libdir to current_libdirs if it is the destination.
5902 if test "X$destdir" = "X$libdir"; then
5903 case "$current_libdirs " in
5904 *" $libdir "*) ;;
5905 *) current_libdirs="$current_libdirs $libdir" ;;
5906 esac
5907 else
5908 # Note the libdir as a future libdir.
5909 case "$future_libdirs " in
5910 *" $libdir "*) ;;
5911 *) future_libdirs="$future_libdirs $libdir" ;;
5912 esac
5913 fi
5914
5915 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
5916 test "X$dir" = "X$file/" && dir=
5917 dir="$dir$objdir"
5918
5919 if test -n "$relink_command"; then
5920 # Determine the prefix the user has applied to our future dir.
5921 inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
5922
5923 # Don't allow the user to place us outside of our expected
5924 # location b/c this prevents finding dependent libraries that
5925 # are installed to the same prefix.
5926 # At present, this check doesn't affect windows .dll's that
5927 # are installed into $libdir/../bin (currently, that works fine)
5928 # but it's something to keep an eye on.
5929 if test "$inst_prefix_dir" = "$destdir"; then
5930 $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
5931 exit $EXIT_FAILURE
5932 fi
5933
5934 if test -n "$inst_prefix_dir"; then
5935 # Stick the inst_prefix_dir data into the link command.
5936 relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
5937 else
5938 relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
5939 fi
5940
5941 $echo "$modename: warning: relinking \`$file'" 1>&2
5942 $show "$relink_command"
5943 if $run eval "$relink_command"; then :
5944 else
5945 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
5946 exit $EXIT_FAILURE
5947 fi
5948 fi
5949
5950 # See the names of the shared library.
5951 set dummy $library_names
5952 if test -n "$2"; then
5953 realname="$2"
5954 shift
5955 shift
5956
5957 srcname="$realname"
5958 test -n "$relink_command" && srcname="$realname"T
5959
5960 # Install the shared library and build the symlinks.
5961 $show "$install_prog $dir/$srcname $destdir/$realname"
5962 $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
5963 if test -n "$stripme" && test -n "$striplib"; then
5964 $show "$striplib $destdir/$realname"
5965 $run eval "$striplib $destdir/$realname" || exit $?
5966 fi
5967
5968 if test "$#" -gt 0; then
5969 # Delete the old symlinks, and create new ones.
5970 # Try `ln -sf' first, because the `ln' binary might depend on
5971 # the symlink we replace! Solaris /bin/ln does not understand -f,
5972 # so we also need to try rm && ln -s.
5973 for linkname
5974 do
5975 if test "$linkname" != "$realname"; then
5976 $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5977 $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
5978 fi
5979 done
5980 fi
5981
5982 # Do each command in the postinstall commands.
5983 lib="$destdir/$realname"
5984 cmds=$postinstall_cmds
5985 save_ifs="$IFS"; IFS='~'
5986 for cmd in $cmds; do
5987 IFS="$save_ifs"
5988 eval cmd=\"$cmd\"
5989 $show "$cmd"
5990 $run eval "$cmd" || {
5991 lt_exit=$?
5992
5993 # Restore the uninstalled library and exit
5994 if test "$mode" = relink; then
5995 $run eval '(cd $output_objdir && $rm ${realname}T && $mv ${realname}U $realname)'
5996 fi
5997
5998 exit $lt_exit
5999 }
6000 done
6001 IFS="$save_ifs"
6002 fi
6003
6004 # Install the pseudo-library for information purposes.
6005 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6006 instname="$dir/$name"i
6007 $show "$install_prog $instname $destdir/$name"
6008 $run eval "$install_prog $instname $destdir/$name" || exit $?
6009
6010 # Maybe install the static library, too.
6011 test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
6012 ;;
6013
6014 *.lo)
6015 # Install (i.e. copy) a libtool object.
6016
6017 # Figure out destination file name, if it wasn't already specified.
6018 if test -n "$destname"; then
6019 destfile="$destdir/$destname"
6020 else
6021 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6022 destfile="$destdir/$destfile"
6023 fi
6024
6025 # Deduce the name of the destination old-style object file.
6026 case $destfile in
6027 *.lo)
6028 staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
6029 ;;
6030 *.$objext)
6031 staticdest="$destfile"
6032 destfile=
6033 ;;
6034 *)
6035 $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
6036 $echo "$help" 1>&2
6037 exit $EXIT_FAILURE
6038 ;;
6039 esac
6040
6041 # Install the libtool object if requested.
6042 if test -n "$destfile"; then
6043 $show "$install_prog $file $destfile"
6044 $run eval "$install_prog $file $destfile" || exit $?
6045 fi
6046
6047 # Install the old object if enabled.
6048 if test "$build_old_libs" = yes; then
6049 # Deduce the name of the old-style object file.
6050 staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
6051
6052 $show "$install_prog $staticobj $staticdest"
6053 $run eval "$install_prog \$staticobj \$staticdest" || exit $?
6054 fi
6055 exit $EXIT_SUCCESS
6056 ;;
6057
6058 *)
6059 # Figure out destination file name, if it wasn't already specified.
6060 if test -n "$destname"; then
6061 destfile="$destdir/$destname"
6062 else
6063 destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6064 destfile="$destdir/$destfile"
6065 fi
6066
6067 # If the file is missing, and there is a .exe on the end, strip it
6068 # because it is most likely a libtool script we actually want to
6069 # install
6070 stripped_ext=""
6071 case $file in
6072 *.exe)
6073 if test ! -f "$file"; then
6074 file=`$echo $file|${SED} 's,.exe$,,'`
6075 stripped_ext=".exe"
6076 fi
6077 ;;
6078 esac
6079
6080 # Do a test to see if this is really a libtool program.
6081 case $host in
6082 *cygwin*|*mingw*)
6083 wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
6084 ;;
6085 *)
6086 wrapper=$file
6087 ;;
6088 esac
6089 if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
6090 notinst_deplibs=
6091 relink_command=
6092
6093 # Note that it is not necessary on cygwin/mingw to append a dot to
6094 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6095 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6096 # `FILE.' does not work on cygwin managed mounts.
6097 #
6098 # If there is no directory component, then add one.
6099 case $wrapper in
6100 */* | *\\*) . ${wrapper} ;;
6101 *) . ./${wrapper} ;;
6102 esac
6103
6104 # Check the variables that should have been set.
6105 if test -z "$notinst_deplibs"; then
6106 $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
6107 exit $EXIT_FAILURE
6108 fi
6109
6110 finalize=yes
6111 for lib in $notinst_deplibs; do
6112 # Check to see that each library is installed.
6113 libdir=
6114 if test -f "$lib"; then
6115 # If there is no directory component, then add one.
6116 case $lib in
6117 */* | *\\*) . $lib ;;
6118 *) . ./$lib ;;
6119 esac
6120 fi
6121 libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
6122 if test -n "$libdir" && test ! -f "$libfile"; then
6123 $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
6124 finalize=no
6125 fi
6126 done
6127
6128 relink_command=
6129 # Note that it is not necessary on cygwin/mingw to append a dot to
6130 # foo even if both foo and FILE.exe exist: automatic-append-.exe
6131 # behavior happens only for exec(3), not for open(2)! Also, sourcing
6132 # `FILE.' does not work on cygwin managed mounts.
6133 #
6134 # If there is no directory component, then add one.
6135 case $wrapper in
6136 */* | *\\*) . ${wrapper} ;;
6137 *) . ./${wrapper} ;;
6138 esac
6139
6140 outputname=
6141 if test "$fast_install" = no && test -n "$relink_command"; then
6142 if test "$finalize" = yes && test -z "$run"; then
6143 tmpdir=`func_mktempdir`
6144 file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
6145 outputname="$tmpdir/$file"
6146 # Replace the output file specification.
6147 relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
6148
6149 $show "$relink_command"
6150 if $run eval "$relink_command"; then :
6151 else
6152 $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
6153 ${rm}r "$tmpdir"
6154 continue
6155 fi
6156 file="$outputname"
6157 else
6158 $echo "$modename: warning: cannot relink \`$file'" 1>&2
6159 fi
6160 else
6161 # Install the binary that we compiled earlier.
6162 file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
6163 fi
6164 fi
6165
6166 # remove .exe since cygwin /usr/bin/install will append another
6167 # one anyway
6168 case $install_prog,$host in
6169 */usr/bin/install*,*cygwin*)
6170 case $file:$destfile in
6171 *.exe:*.exe)
6172 # this is ok
6173 ;;
6174 *.exe:*)
6175 destfile=$destfile.exe
6176 ;;
6177 *:*.exe)
6178 destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
6179 ;;
6180 esac
6181 ;;
6182 esac
6183 $show "$install_prog$stripme $file $destfile"
6184 $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
6185 test -n "$outputname" && ${rm}r "$tmpdir"
6186 ;;
6187 esac
6188 done
6189
6190 for file in $staticlibs; do
6191 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6192
6193 # Set up the ranlib parameters.
6194 oldlib="$destdir/$name"
6195
6196 $show "$install_prog $file $oldlib"
6197 $run eval "$install_prog \$file \$oldlib" || exit $?
6198
6199 if test -n "$stripme" && test -n "$old_striplib"; then
6200 $show "$old_striplib $oldlib"
6201 $run eval "$old_striplib $oldlib" || exit $?
6202 fi
6203
6204 # Do each command in the postinstall commands.
6205 cmds=$old_postinstall_cmds
6206 save_ifs="$IFS"; IFS='~'
6207 for cmd in $cmds; do
6208 IFS="$save_ifs"
6209 eval cmd=\"$cmd\"
6210 $show "$cmd"
6211 $run eval "$cmd" || exit $?
6212 done
6213 IFS="$save_ifs"
6214 done
6215
6216 if test -n "$future_libdirs"; then
6217 $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
6218 fi
6219
6220 if test -n "$current_libdirs"; then
6221 # Maybe just do a dry run.
6222 test -n "$run" && current_libdirs=" -n$current_libdirs"
6223 exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
6224 else
6225 exit $EXIT_SUCCESS
6226 fi
6227 ;;
6228
6229 # libtool finish mode
6230 finish)
6231 modename="$modename: finish"
6232 libdirs="$nonopt"
6233 admincmds=
6234
6235 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
6236 for dir
6237 do
6238 libdirs="$libdirs $dir"
6239 done
6240
6241 for libdir in $libdirs; do
6242 if test -n "$finish_cmds"; then
6243 # Do each command in the finish commands.
6244 cmds=$finish_cmds
6245 save_ifs="$IFS"; IFS='~'
6246 for cmd in $cmds; do
6247 IFS="$save_ifs"
6248 eval cmd=\"$cmd\"
6249 $show "$cmd"
6250 $run eval "$cmd" || admincmds="$admincmds
6251 $cmd"
6252 done
6253 IFS="$save_ifs"
6254 fi
6255 if test -n "$finish_eval"; then
6256 # Do the single finish_eval.
6257 eval cmds=\"$finish_eval\"
6258 $run eval "$cmds" || admincmds="$admincmds
6259 $cmds"
6260 fi
6261 done
6262 fi
6263
6264 # Exit here if they wanted silent mode.
6265 test "$show" = : && exit $EXIT_SUCCESS
6266
6267 $echo "X----------------------------------------------------------------------" | $Xsed
6268 $echo "Libraries have been installed in:"
6269 for libdir in $libdirs; do
6270 $echo " $libdir"
6271 done
6272 $echo
6273 $echo "If you ever happen to want to link against installed libraries"
6274 $echo "in a given directory, LIBDIR, you must either use libtool, and"
6275 $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
6276 $echo "flag during linking and do at least one of the following:"
6277 if test -n "$shlibpath_var"; then
6278 $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
6279 $echo " during execution"
6280 fi
6281 if test -n "$runpath_var"; then
6282 $echo " - add LIBDIR to the \`$runpath_var' environment variable"
6283 $echo " during linking"
6284 fi
6285 if test -n "$hardcode_libdir_flag_spec"; then
6286 libdir=LIBDIR
6287 eval flag=\"$hardcode_libdir_flag_spec\"
6288
6289 $echo " - use the \`$flag' linker flag"
6290 fi
6291 if test -n "$admincmds"; then
6292 $echo " - have your system administrator run these commands:$admincmds"
6293 fi
6294 if test -f /etc/ld.so.conf; then
6295 $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
6296 fi
6297 $echo
6298 $echo "See any operating system documentation about shared libraries for"
6299 $echo "more information, such as the ld(1) and ld.so(8) manual pages."
6300 $echo "X----------------------------------------------------------------------" | $Xsed
6301 exit $EXIT_SUCCESS
6302 ;;
6303
6304 # libtool execute mode
6305 execute)
6306 modename="$modename: execute"
6307
6308 # The first argument is the command name.
6309 cmd="$nonopt"
6310 if test -z "$cmd"; then
6311 $echo "$modename: you must specify a COMMAND" 1>&2
6312 $echo "$help"
6313 exit $EXIT_FAILURE
6314 fi
6315
6316 # Handle -dlopen flags immediately.
6317 for file in $execute_dlfiles; do
6318 if test ! -f "$file"; then
6319 $echo "$modename: \`$file' is not a file" 1>&2
6320 $echo "$help" 1>&2
6321 exit $EXIT_FAILURE
6322 fi
6323
6324 dir=
6325 case $file in
6326 *.la)
6327 # Check to see that this really is a libtool archive.
6328 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
6329 else
6330 $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
6331 $echo "$help" 1>&2
6332 exit $EXIT_FAILURE
6333 fi
6334
6335 # Read the libtool library.
6336 dlname=
6337 library_names=
6338
6339 # If there is no directory component, then add one.
6340 case $file in
6341 */* | *\\*) . $file ;;
6342 *) . ./$file ;;
6343 esac
6344
6345 # Skip this library if it cannot be dlopened.
6346 if test -z "$dlname"; then
6347 # Warn if it was a shared library.
6348 test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
6349 continue
6350 fi
6351
6352 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6353 test "X$dir" = "X$file" && dir=.
6354
6355 if test -f "$dir/$objdir/$dlname"; then
6356 dir="$dir/$objdir"
6357 else
6358 $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
6359 exit $EXIT_FAILURE
6360 fi
6361 ;;
6362
6363 *.lo)
6364 # Just add the directory containing the .lo file.
6365 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6366 test "X$dir" = "X$file" && dir=.
6367 ;;
6368
6369 *)
6370 $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
6371 continue
6372 ;;
6373 esac
6374
6375 # Get the absolute pathname.
6376 absdir=`cd "$dir" && pwd`
6377 test -n "$absdir" && dir="$absdir"
6378
6379 # Now add the directory to shlibpath_var.
6380 if eval "test -z \"\$$shlibpath_var\""; then
6381 eval "$shlibpath_var=\"\$dir\""
6382 else
6383 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
6384 fi
6385 done
6386
6387 # This variable tells wrapper scripts just to set shlibpath_var
6388 # rather than running their programs.
6389 libtool_execute_magic="$magic"
6390
6391 # Check if any of the arguments is a wrapper script.
6392 args=
6393 for file
6394 do
6395 case $file in
6396 -*) ;;
6397 *)
6398 # Do a test to see if this is really a libtool program.
6399 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6400 # If there is no directory component, then add one.
6401 case $file in
6402 */* | *\\*) . $file ;;
6403 *) . ./$file ;;
6404 esac
6405
6406 # Transform arg to wrapped name.
6407 file="$progdir/$program"
6408 fi
6409 ;;
6410 esac
6411 # Quote arguments (to preserve shell metacharacters).
6412 file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
6413 args="$args \"$file\""
6414 done
6415
6416 if test -z "$run"; then
6417 if test -n "$shlibpath_var"; then
6418 # Export the shlibpath_var.
6419 eval "export $shlibpath_var"
6420 fi
6421
6422 # Restore saved environment variables
6423 if test "${save_LC_ALL+set}" = set; then
6424 LC_ALL="$save_LC_ALL"; export LC_ALL
6425 fi
6426 if test "${save_LANG+set}" = set; then
6427 LANG="$save_LANG"; export LANG
6428 fi
6429
6430 # Now prepare to actually exec the command.
6431 exec_cmd="\$cmd$args"
6432 else
6433 # Display what would be done.
6434 if test -n "$shlibpath_var"; then
6435 eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
6436 $echo "export $shlibpath_var"
6437 fi
6438 $echo "$cmd$args"
6439 exit $EXIT_SUCCESS
6440 fi
6441 ;;
6442
6443 # libtool clean and uninstall mode
6444 clean | uninstall)
6445 modename="$modename: $mode"
6446 rm="$nonopt"
6447 files=
6448 rmforce=
6449 exit_status=0
6450
6451 # This variable tells wrapper scripts just to set variables rather
6452 # than running their programs.
6453 libtool_install_magic="$magic"
6454
6455 for arg
6456 do
6457 case $arg in
6458 -f) rm="$rm $arg"; rmforce=yes ;;
6459 -*) rm="$rm $arg" ;;
6460 *) files="$files $arg" ;;
6461 esac
6462 done
6463
6464 if test -z "$rm"; then
6465 $echo "$modename: you must specify an RM program" 1>&2
6466 $echo "$help" 1>&2
6467 exit $EXIT_FAILURE
6468 fi
6469
6470 rmdirs=
6471
6472 origobjdir="$objdir"
6473 for file in $files; do
6474 dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
6475 if test "X$dir" = "X$file"; then
6476 dir=.
6477 objdir="$origobjdir"
6478 else
6479 objdir="$dir/$origobjdir"
6480 fi
6481 name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
6482 test "$mode" = uninstall && objdir="$dir"
6483
6484 # Remember objdir for removal later, being careful to avoid duplicates
6485 if test "$mode" = clean; then
6486 case " $rmdirs " in
6487 *" $objdir "*) ;;
6488 *) rmdirs="$rmdirs $objdir" ;;
6489 esac
6490 fi
6491
6492 # Don't error if the file doesn't exist and rm -f was used.
6493 if (test -L "$file") >/dev/null 2>&1 \
6494 || (test -h "$file") >/dev/null 2>&1 \
6495 || test -f "$file"; then
6496 :
6497 elif test -d "$file"; then
6498 exit_status=1
6499 continue
6500 elif test "$rmforce" = yes; then
6501 continue
6502 fi
6503
6504 rmfiles="$file"
6505
6506 case $name in
6507 *.la)
6508 # Possibly a libtool archive, so verify it.
6509 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6510 . $dir/$name
6511
6512 # Delete the libtool libraries and symlinks.
6513 for n in $library_names; do
6514 rmfiles="$rmfiles $objdir/$n"
6515 done
6516 test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
6517
6518 case "$mode" in
6519 clean)
6520 case " $library_names " in
6521 # " " in the beginning catches empty $dlname
6522 *" $dlname "*) ;;
6523 *) rmfiles="$rmfiles $objdir/$dlname" ;;
6524 esac
6525 test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
6526 ;;
6527 uninstall)
6528 if test -n "$library_names"; then
6529 # Do each command in the postuninstall commands.
6530 cmds=$postuninstall_cmds
6531 save_ifs="$IFS"; IFS='~'
6532 for cmd in $cmds; do
6533 IFS="$save_ifs"
6534 eval cmd=\"$cmd\"
6535 $show "$cmd"
6536 $run eval "$cmd"
6537 if test "$?" -ne 0 && test "$rmforce" != yes; then
6538 exit_status=1
6539 fi
6540 done
6541 IFS="$save_ifs"
6542 fi
6543
6544 if test -n "$old_library"; then
6545 # Do each command in the old_postuninstall commands.
6546 cmds=$old_postuninstall_cmds
6547 save_ifs="$IFS"; IFS='~'
6548 for cmd in $cmds; do
6549 IFS="$save_ifs"
6550 eval cmd=\"$cmd\"
6551 $show "$cmd"
6552 $run eval "$cmd"
6553 if test "$?" -ne 0 && test "$rmforce" != yes; then
6554 exit_status=1
6555 fi
6556 done
6557 IFS="$save_ifs"
6558 fi
6559 # FIXME: should reinstall the best remaining shared library.
6560 ;;
6561 esac
6562 fi
6563 ;;
6564
6565 *.lo)
6566 # Possibly a libtool object, so verify it.
6567 if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6568
6569 # Read the .lo file
6570 . $dir/$name
6571
6572 # Add PIC object to the list of files to remove.
6573 if test -n "$pic_object" \
6574 && test "$pic_object" != none; then
6575 rmfiles="$rmfiles $dir/$pic_object"
6576 fi
6577
6578 # Add non-PIC object to the list of files to remove.
6579 if test -n "$non_pic_object" \
6580 && test "$non_pic_object" != none; then
6581 rmfiles="$rmfiles $dir/$non_pic_object"
6582 fi
6583 fi
6584 ;;
6585
6586 *)
6587 if test "$mode" = clean ; then
6588 noexename=$name
6589 case $file in
6590 *.exe)
6591 file=`$echo $file|${SED} 's,.exe$,,'`
6592 noexename=`$echo $name|${SED} 's,.exe$,,'`
6593 # $file with .exe has already been added to rmfiles,
6594 # add $file without .exe
6595 rmfiles="$rmfiles $file"
6596 ;;
6597 esac
6598 # Do a test to see if this is a libtool program.
6599 if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
6600 relink_command=
6601 . $dir/$noexename
6602
6603 # note $name still contains .exe if it was in $file originally
6604 # as does the version of $file that was added into $rmfiles
6605 rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}"
6606 if test "$fast_install" = yes && test -n "$relink_command"; then
6607 rmfiles="$rmfiles $objdir/lt-$name"
6608 fi
6609 if test "X$noexename" != "X$name" ; then
6610 rmfiles="$rmfiles $objdir/lt-${noexename}.c"
6611 fi
6612 fi
6613 fi
6614 ;;
6615 esac
6616 $show "$rm $rmfiles"
6617 $run $rm $rmfiles || exit_status=1
6618 done
6619 objdir="$origobjdir"
6620
6621 # Try to remove the ${objdir}s in the directories where we deleted files
6622 for dir in $rmdirs; do
6623 if test -d "$dir"; then
6624 $show "rmdir $dir"
6625 $run rmdir $dir >/dev/null 2>&1
6626 fi
6627 done
6628
6629 exit $exit_status
6630 ;;
6631
6632 "")
6633 $echo "$modename: you must specify a MODE" 1>&2
6634 $echo "$generic_help" 1>&2
6635 exit $EXIT_FAILURE
6636 ;;
6637 esac
6638
6639 if test -z "$exec_cmd"; then
6640 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6641 $echo "$generic_help" 1>&2
6642 exit $EXIT_FAILURE
6643 fi
6644 fi # test -z "$show_help"
6645
6646 if test -n "$exec_cmd"; then
6647 eval exec $exec_cmd
6648 exit $EXIT_FAILURE
6649 fi
6650
6651 # We need to display help for each of the modes.
6652 case $mode in
6653 "") $echo \
6654 "Usage: $modename [OPTION]... [MODE-ARG]...
6655
6656 Provide generalized library-building support services.
6657
6658 --config show all configuration variables
6659 --debug enable verbose shell tracing
6660 -n, --dry-run display commands without modifying any files
6661 --features display basic configuration information and exit
6662 --finish same as \`--mode=finish'
6663 --help display this help message and exit
6664 --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
6665 --quiet same as \`--silent'
6666 --silent don't print informational messages
6667 --tag=TAG use configuration variables from tag TAG
6668 --version print version information
6669
6670 MODE must be one of the following:
6671
6672 clean remove files from the build directory
6673 compile compile a source file into a libtool object
6674 execute automatically set library path, then run a program
6675 finish complete the installation of libtool libraries
6676 install install libraries or executables
6677 link create a library or an executable
6678 uninstall remove libraries from an installed directory
6679
6680 MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
6681 a more detailed description of MODE.
6682
6683 Report bugs to <bug-libtool@gnu.org>."
6684 exit $EXIT_SUCCESS
6685 ;;
6686
6687 clean)
6688 $echo \
6689 "Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
6690
6691 Remove files from the build directory.
6692
6693 RM is the name of the program to use to delete files associated with each FILE
6694 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6695 to RM.
6696
6697 If FILE is a libtool library, object or program, all the files associated
6698 with it are deleted. Otherwise, only FILE itself is deleted using RM."
6699 ;;
6700
6701 compile)
6702 $echo \
6703 "Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
6704
6705 Compile a source file into a libtool library object.
6706
6707 This mode accepts the following additional options:
6708
6709 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
6710 -prefer-pic try to building PIC objects only
6711 -prefer-non-pic try to building non-PIC objects only
6712 -static always build a \`.o' file suitable for static linking
6713
6714 COMPILE-COMMAND is a command to be used in creating a \`standard' object file
6715 from the given SOURCEFILE.
6716
6717 The output file name is determined by removing the directory component from
6718 SOURCEFILE, then substituting the C source code suffix \`.c' with the
6719 library object suffix, \`.lo'."
6720 ;;
6721
6722 execute)
6723 $echo \
6724 "Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
6725
6726 Automatically set library path, then run a program.
6727
6728 This mode accepts the following additional options:
6729
6730 -dlopen FILE add the directory containing FILE to the library path
6731
6732 This mode sets the library path environment variable according to \`-dlopen'
6733 flags.
6734
6735 If any of the ARGS are libtool executable wrappers, then they are translated
6736 into their corresponding uninstalled binary, and any of their required library
6737 directories are added to the library path.
6738
6739 Then, COMMAND is executed, with ARGS as arguments."
6740 ;;
6741
6742 finish)
6743 $echo \
6744 "Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
6745
6746 Complete the installation of libtool libraries.
6747
6748 Each LIBDIR is a directory that contains libtool libraries.
6749
6750 The commands that this mode executes may require superuser privileges. Use
6751 the \`--dry-run' option if you just want to see what would be executed."
6752 ;;
6753
6754 install)
6755 $echo \
6756 "Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
6757
6758 Install executables or libraries.
6759
6760 INSTALL-COMMAND is the installation command. The first component should be
6761 either the \`install' or \`cp' program.
6762
6763 The rest of the components are interpreted as arguments to that command (only
6764 BSD-compatible install options are recognized)."
6765 ;;
6766
6767 link)
6768 $echo \
6769 "Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
6770
6771 Link object files or libraries together to form another library, or to
6772 create an executable program.
6773
6774 LINK-COMMAND is a command using the C compiler that you would use to create
6775 a program from several object files.
6776
6777 The following components of LINK-COMMAND are treated specially:
6778
6779 -all-static do not do any dynamic linking at all
6780 -avoid-version do not add a version suffix if possible
6781 -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
6782 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
6783 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
6784 -export-symbols SYMFILE
6785 try to export only the symbols listed in SYMFILE
6786 -export-symbols-regex REGEX
6787 try to export only the symbols matching REGEX
6788 -LLIBDIR search LIBDIR for required installed libraries
6789 -lNAME OUTPUT-FILE requires the installed library libNAME
6790 -module build a library that can dlopened
6791 -no-fast-install disable the fast-install mode
6792 -no-install link a not-installable executable
6793 -no-undefined declare that a library does not refer to external symbols
6794 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
6795 -objectlist FILE Use a list of object files found in FILE to specify objects
6796 -precious-files-regex REGEX
6797 don't remove output files matching REGEX
6798 -release RELEASE specify package release information
6799 -rpath LIBDIR the created library will eventually be installed in LIBDIR
6800 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
6801 -static do not do any dynamic linking of libtool libraries
6802 -version-info CURRENT[:REVISION[:AGE]]
6803 specify library version info [each variable defaults to 0]
6804
6805 All other options (arguments beginning with \`-') are ignored.
6806
6807 Every other argument is treated as a filename. Files ending in \`.la' are
6808 treated as uninstalled libtool libraries, other files are standard or library
6809 object files.
6810
6811 If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
6812 only library objects (\`.lo' files) may be specified, and \`-rpath' is
6813 required, except when creating a convenience library.
6814
6815 If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
6816 using \`ar' and \`ranlib', or on Windows using \`lib'.
6817
6818 If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
6819 is created, otherwise an executable program is created."
6820 ;;
6821
6822 uninstall)
6823 $echo \
6824 "Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
6825
6826 Remove libraries from an installation directory.
6827
6828 RM is the name of the program to use to delete files associated with each FILE
6829 (typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
6830 to RM.
6831
6832 If FILE is a libtool library, all the files associated with it are deleted.
6833 Otherwise, only FILE itself is deleted using RM."
6834 ;;
6835
6836 *)
6837 $echo "$modename: invalid operation mode \`$mode'" 1>&2
6838 $echo "$help" 1>&2
6839 exit $EXIT_FAILURE
6840 ;;
6841 esac
6842
6843 $echo
6844 $echo "Try \`$modename --help' for more information about other modes."
6845
6846 exit $?
6847
6848 # The TAGs below are defined such that we never get into a situation
6849 # in which we disable both kinds of libraries. Given conflicting
6850 # choices, we go for a static library, that is the most portable,
6851 # since we can't tell whether shared libraries were disabled because
6852 # the user asked for that or because the platform doesn't support
6853 # them. This is particularly important on AIX, because we don't
6854 # support having both static and shared libraries enabled at the same
6855 # time on that platform, so we default to a shared-only configuration.
6856 # If a disable-shared tag is given, we'll fallback to a static-only
6857 # configuration. But we'll never go from static-only to shared-only.
6858
6859 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
6860 disable_libs=shared
6861 # ### END LIBTOOL TAG CONFIG: disable-shared
6862
6863 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
6864 disable_libs=static
6865 # ### END LIBTOOL TAG CONFIG: disable-static
6866
6867 # Local Variables:
6868 # mode:shell-script
6869 # sh-indentation:2
6870 # End:
0 #! /bin/sh
1 # Common stub for a few missing GNU programs while installing.
2
3 scriptversion=2005-06-08.21
4
5 # Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005
6 # Free Software Foundation, Inc.
7 # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; either version 2, or (at your option)
12 # any later version.
13
14 # This program is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
18
19 # You should have received a copy of the GNU General Public License
20 # along with this program; if not, write to the Free Software
21 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 # 02110-1301, USA.
23
24 # As a special exception to the GNU General Public License, if you
25 # distribute this file as part of a program that contains a
26 # configuration script generated by Autoconf, you may include it under
27 # the same distribution terms that you use for the rest of that program.
28
29 if test $# -eq 0; then
30 echo 1>&2 "Try \`$0 --help' for more information"
31 exit 1
32 fi
33
34 run=:
35
36 # In the cases where this matters, `missing' is being run in the
37 # srcdir already.
38 if test -f configure.ac; then
39 configure_ac=configure.ac
40 else
41 configure_ac=configure.in
42 fi
43
44 msg="missing on your system"
45
46 case "$1" in
47 --run)
48 # Try to run requested program, and just exit if it succeeds.
49 run=
50 shift
51 "$@" && exit 0
52 # Exit code 63 means version mismatch. This often happens
53 # when the user try to use an ancient version of a tool on
54 # a file that requires a minimum version. In this case we
55 # we should proceed has if the program had been absent, or
56 # if --run hadn't been passed.
57 if test $? = 63; then
58 run=:
59 msg="probably too old"
60 fi
61 ;;
62
63 -h|--h|--he|--hel|--help)
64 echo "\
65 $0 [OPTION]... PROGRAM [ARGUMENT]...
66
67 Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
68 error status if there is no known handling for PROGRAM.
69
70 Options:
71 -h, --help display this help and exit
72 -v, --version output version information and exit
73 --run try to run the given command, and emulate it if it fails
74
75 Supported PROGRAM values:
76 aclocal touch file \`aclocal.m4'
77 autoconf touch file \`configure'
78 autoheader touch file \`config.h.in'
79 automake touch all \`Makefile.in' files
80 bison create \`y.tab.[ch]', if possible, from existing .[ch]
81 flex create \`lex.yy.c', if possible, from existing .c
82 help2man touch the output file
83 lex create \`lex.yy.c', if possible, from existing .c
84 makeinfo touch the output file
85 tar try tar, gnutar, gtar, then tar without non-portable flags
86 yacc create \`y.tab.[ch]', if possible, from existing .[ch]
87
88 Send bug reports to <bug-automake@gnu.org>."
89 exit $?
90 ;;
91
92 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
93 echo "missing $scriptversion (GNU Automake)"
94 exit $?
95 ;;
96
97 -*)
98 echo 1>&2 "$0: Unknown \`$1' option"
99 echo 1>&2 "Try \`$0 --help' for more information"
100 exit 1
101 ;;
102
103 esac
104
105 # Now exit if we have it, but it failed. Also exit now if we
106 # don't have it and --version was passed (most likely to detect
107 # the program).
108 case "$1" in
109 lex|yacc)
110 # Not GNU programs, they don't have --version.
111 ;;
112
113 tar)
114 if test -n "$run"; then
115 echo 1>&2 "ERROR: \`tar' requires --run"
116 exit 1
117 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
118 exit 1
119 fi
120 ;;
121
122 *)
123 if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
124 # We have it, but it failed.
125 exit 1
126 elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
127 # Could not run --version or --help. This is probably someone
128 # running `$TOOL --version' or `$TOOL --help' to check whether
129 # $TOOL exists and not knowing $TOOL uses missing.
130 exit 1
131 fi
132 ;;
133 esac
134
135 # If it does not exist, or fails to run (possibly an outdated version),
136 # try to emulate it.
137 case "$1" in
138 aclocal*)
139 echo 1>&2 "\
140 WARNING: \`$1' is $msg. You should only need it if
141 you modified \`acinclude.m4' or \`${configure_ac}'. You might want
142 to install the \`Automake' and \`Perl' packages. Grab them from
143 any GNU archive site."
144 touch aclocal.m4
145 ;;
146
147 autoconf)
148 echo 1>&2 "\
149 WARNING: \`$1' is $msg. You should only need it if
150 you modified \`${configure_ac}'. You might want to install the
151 \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
152 archive site."
153 touch configure
154 ;;
155
156 autoheader)
157 echo 1>&2 "\
158 WARNING: \`$1' is $msg. You should only need it if
159 you modified \`acconfig.h' or \`${configure_ac}'. You might want
160 to install the \`Autoconf' and \`GNU m4' packages. Grab them
161 from any GNU archive site."
162 files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
163 test -z "$files" && files="config.h"
164 touch_files=
165 for f in $files; do
166 case "$f" in
167 *:*) touch_files="$touch_files "`echo "$f" |
168 sed -e 's/^[^:]*://' -e 's/:.*//'`;;
169 *) touch_files="$touch_files $f.in";;
170 esac
171 done
172 touch $touch_files
173 ;;
174
175 automake*)
176 echo 1>&2 "\
177 WARNING: \`$1' is $msg. You should only need it if
178 you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
179 You might want to install the \`Automake' and \`Perl' packages.
180 Grab them from any GNU archive site."
181 find . -type f -name Makefile.am -print |
182 sed 's/\.am$/.in/' |
183 while read f; do touch "$f"; done
184 ;;
185
186 autom4te)
187 echo 1>&2 "\
188 WARNING: \`$1' is needed, but is $msg.
189 You might have modified some files without having the
190 proper tools for further handling them.
191 You can get \`$1' as part of \`Autoconf' from any GNU
192 archive site."
193
194 file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
195 test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
196 if test -f "$file"; then
197 touch $file
198 else
199 test -z "$file" || exec >$file
200 echo "#! /bin/sh"
201 echo "# Created by GNU Automake missing as a replacement of"
202 echo "# $ $@"
203 echo "exit 0"
204 chmod +x $file
205 exit 1
206 fi
207 ;;
208
209 bison|yacc)
210 echo 1>&2 "\
211 WARNING: \`$1' $msg. You should only need it if
212 you modified a \`.y' file. You may need the \`Bison' package
213 in order for those modifications to take effect. You can get
214 \`Bison' from any GNU archive site."
215 rm -f y.tab.c y.tab.h
216 if [ $# -ne 1 ]; then
217 eval LASTARG="\${$#}"
218 case "$LASTARG" in
219 *.y)
220 SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
221 if [ -f "$SRCFILE" ]; then
222 cp "$SRCFILE" y.tab.c
223 fi
224 SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
225 if [ -f "$SRCFILE" ]; then
226 cp "$SRCFILE" y.tab.h
227 fi
228 ;;
229 esac
230 fi
231 if [ ! -f y.tab.h ]; then
232 echo >y.tab.h
233 fi
234 if [ ! -f y.tab.c ]; then
235 echo 'main() { return 0; }' >y.tab.c
236 fi
237 ;;
238
239 lex|flex)
240 echo 1>&2 "\
241 WARNING: \`$1' is $msg. You should only need it if
242 you modified a \`.l' file. You may need the \`Flex' package
243 in order for those modifications to take effect. You can get
244 \`Flex' from any GNU archive site."
245 rm -f lex.yy.c
246 if [ $# -ne 1 ]; then
247 eval LASTARG="\${$#}"
248 case "$LASTARG" in
249 *.l)
250 SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
251 if [ -f "$SRCFILE" ]; then
252 cp "$SRCFILE" lex.yy.c
253 fi
254 ;;
255 esac
256 fi
257 if [ ! -f lex.yy.c ]; then
258 echo 'main() { return 0; }' >lex.yy.c
259 fi
260 ;;
261
262 help2man)
263 echo 1>&2 "\
264 WARNING: \`$1' is $msg. You should only need it if
265 you modified a dependency of a manual page. You may need the
266 \`Help2man' package in order for those modifications to take
267 effect. You can get \`Help2man' from any GNU archive site."
268
269 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
270 if test -z "$file"; then
271 file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
272 fi
273 if [ -f "$file" ]; then
274 touch $file
275 else
276 test -z "$file" || exec >$file
277 echo ".ab help2man is required to generate this page"
278 exit 1
279 fi
280 ;;
281
282 makeinfo)
283 echo 1>&2 "\
284 WARNING: \`$1' is $msg. You should only need it if
285 you modified a \`.texi' or \`.texinfo' file, or any other file
286 indirectly affecting the aspect of the manual. The spurious
287 call might also be the consequence of using a buggy \`make' (AIX,
288 DU, IRIX). You might want to install the \`Texinfo' package or
289 the \`GNU make' package. Grab either from any GNU archive site."
290 # The file to touch is that specified with -o ...
291 file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
292 if test -z "$file"; then
293 # ... or it is the one specified with @setfilename ...
294 infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
295 file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $infile`
296 # ... or it is derived from the source name (dir/f.texi becomes f.info)
297 test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
298 fi
299 # If the file does not exist, the user really needs makeinfo;
300 # let's fail without touching anything.
301 test -f $file || exit 1
302 touch $file
303 ;;
304
305 tar)
306 shift
307
308 # We have already tried tar in the generic part.
309 # Look for gnutar/gtar before invocation to avoid ugly error
310 # messages.
311 if (gnutar --version > /dev/null 2>&1); then
312 gnutar "$@" && exit 0
313 fi
314 if (gtar --version > /dev/null 2>&1); then
315 gtar "$@" && exit 0
316 fi
317 firstarg="$1"
318 if shift; then
319 case "$firstarg" in
320 *o*)
321 firstarg=`echo "$firstarg" | sed s/o//`
322 tar "$firstarg" "$@" && exit 0
323 ;;
324 esac
325 case "$firstarg" in
326 *h*)
327 firstarg=`echo "$firstarg" | sed s/h//`
328 tar "$firstarg" "$@" && exit 0
329 ;;
330 esac
331 fi
332
333 echo 1>&2 "\
334 WARNING: I can't seem to be able to run \`tar' with the given arguments.
335 You may want to install GNU tar or Free paxutils, or check the
336 command line arguments."
337 exit 1
338 ;;
339
340 *)
341 echo 1>&2 "\
342 WARNING: \`$1' is needed, and is $msg.
343 You might have modified some files without having the
344 proper tools for further handling them. Check the \`README' file,
345 it often tells you about the needed prerequisites for installing
346 this package. You may also peek at any GNU archive site, in case
347 some other package would contain this missing \`$1' program."
348 exit 1
349 ;;
350 esac
351
352 exit 0
353
354 # Local variables:
355 # eval: (add-hook 'write-file-hooks 'time-stamp)
356 # time-stamp-start: "scriptversion="
357 # time-stamp-format: "%:y-%02m-%02d.%02H"
358 # time-stamp-end: "$"
359 # End:
(No changes)
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = plugins
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/configure.in
41 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
42 $(ACLOCAL_M4)
43 mkinstalldirs = $(install_sh) -d
44 CONFIG_HEADER = $(top_builddir)/config.h
45 CONFIG_CLEAN_FILES =
46 SOURCES =
47 DIST_SOURCES =
48 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
49 html-recursive info-recursive install-data-recursive \
50 install-exec-recursive install-info-recursive \
51 install-recursive installcheck-recursive installdirs-recursive \
52 pdf-recursive ps-recursive uninstall-info-recursive \
53 uninstall-recursive
54 ETAGS = etags
55 CTAGS = ctags
56 DIST_SUBDIRS = xmms mpeg4ip
57 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
58 ACLOCAL = @ACLOCAL@
59 AMDEP_FALSE = @AMDEP_FALSE@
60 AMDEP_TRUE = @AMDEP_TRUE@
61 AMTAR = @AMTAR@
62 AR = @AR@
63 AUTOCONF = @AUTOCONF@
64 AUTOHEADER = @AUTOHEADER@
65 AUTOMAKE = @AUTOMAKE@
66 AWK = @AWK@
67 CC = @CC@
68 CCDEPMODE = @CCDEPMODE@
69 CFLAGS = @CFLAGS@
70 CPP = @CPP@
71 CPPFLAGS = @CPPFLAGS@
72 CXX = @CXX@
73 CXXCPP = @CXXCPP@
74 CXXDEPMODE = @CXXDEPMODE@
75 CXXFLAGS = @CXXFLAGS@
76 CYGPATH_W = @CYGPATH_W@
77 DEFS = @DEFS@
78 DEPDIR = @DEPDIR@
79 ECHO = @ECHO@
80 ECHO_C = @ECHO_C@
81 ECHO_N = @ECHO_N@
82 ECHO_T = @ECHO_T@
83 EGREP = @EGREP@
84 EXEEXT = @EXEEXT@
85 F77 = @F77@
86 FFLAGS = @FFLAGS@
87 GREP = @GREP@
88 GTK_CONFIG = @GTK_CONFIG@
89 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
90 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
91 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
92 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
93 INSTALL_DATA = @INSTALL_DATA@
94 INSTALL_PROGRAM = @INSTALL_PROGRAM@
95 INSTALL_SCRIPT = @INSTALL_SCRIPT@
96 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
97 LDFLAGS = @LDFLAGS@
98 LIBOBJS = @LIBOBJS@
99 LIBS = @LIBS@
100 LIBTOOL = @LIBTOOL@
101 LIBTOOL_DEPS = @LIBTOOL_DEPS@
102 LN_S = @LN_S@
103 LTLIBOBJS = @LTLIBOBJS@
104 MAKEINFO = @MAKEINFO@
105 MP4FF_LIBS = @MP4FF_LIBS@
106 OBJEXT = @OBJEXT@
107 PACKAGE = @PACKAGE@
108 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
109 PACKAGE_NAME = @PACKAGE_NAME@
110 PACKAGE_STRING = @PACKAGE_STRING@
111 PACKAGE_TARNAME = @PACKAGE_TARNAME@
112 PACKAGE_VERSION = @PACKAGE_VERSION@
113 PATH_SEPARATOR = @PATH_SEPARATOR@
114 RANLIB = @RANLIB@
115 RPMBUILD = @RPMBUILD@
116 SET_MAKE = @SET_MAKE@
117 SHELL = @SHELL@
118 STRIP = @STRIP@
119 VERSION = @VERSION@
120 XMMS_CONFIG = @XMMS_CONFIG@
121 ac_ct_CC = @ac_ct_CC@
122 ac_ct_CXX = @ac_ct_CXX@
123 ac_ct_F77 = @ac_ct_F77@
124 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
125 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
126 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
127 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
128 am__include = @am__include@
129 am__leading_dot = @am__leading_dot@
130 am__quote = @am__quote@
131 am__tar = @am__tar@
132 am__untar = @am__untar@
133 bindir = @bindir@
134 build = @build@
135 build_alias = @build_alias@
136 build_cpu = @build_cpu@
137 build_os = @build_os@
138 build_vendor = @build_vendor@
139 datadir = @datadir@
140 datarootdir = @datarootdir@
141 docdir = @docdir@
142 dvidir = @dvidir@
143 exec_prefix = @exec_prefix@
144 external_mp4v2 = @external_mp4v2@
145 host = @host@
146 host_alias = @host_alias@
147 host_cpu = @host_cpu@
148 host_os = @host_os@
149 host_vendor = @host_vendor@
150 htmldir = @htmldir@
151 includedir = @includedir@
152 infodir = @infodir@
153 install_sh = @install_sh@
154 libdir = @libdir@
155 libexecdir = @libexecdir@
156 localedir = @localedir@
157 localstatedir = @localstatedir@
158 mandir = @mandir@
159 mkdir_p = @mkdir_p@
160 oldincludedir = @oldincludedir@
161 pdfdir = @pdfdir@
162 prefix = @prefix@
163 program_transform_name = @program_transform_name@
164 psdir = @psdir@
165 sbindir = @sbindir@
166 sharedstatedir = @sharedstatedir@
167 sysconfdir = @sysconfdir@
168 target_alias = @target_alias@
169 @HAVE_MPEG4IP_PLUG_FALSE@@HAVE_XMMS_FALSE@SUBDIRS =
170 @HAVE_MPEG4IP_PLUG_FALSE@@HAVE_XMMS_TRUE@SUBDIRS = xmms
171 @HAVE_MPEG4IP_PLUG_TRUE@@HAVE_XMMS_FALSE@SUBDIRS = mpeg4ip
172 @HAVE_MPEG4IP_PLUG_TRUE@@HAVE_XMMS_TRUE@SUBDIRS = xmms mpeg4ip
173 all: all-recursive
174
175 .SUFFIXES:
176 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
177 @for dep in $?; do \
178 case '$(am__configure_deps)' in \
179 *$$dep*) \
180 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
181 && exit 0; \
182 exit 1;; \
183 esac; \
184 done; \
185 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/Makefile'; \
186 cd $(top_srcdir) && \
187 $(AUTOMAKE) --gnu plugins/Makefile
188 .PRECIOUS: Makefile
189 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
190 @case '$?' in \
191 *config.status*) \
192 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
193 *) \
194 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
195 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
196 esac;
197
198 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
199 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
200
201 $(top_srcdir)/configure: $(am__configure_deps)
202 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
203 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
204 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
205
206 mostlyclean-libtool:
207 -rm -f *.lo
208
209 clean-libtool:
210 -rm -rf .libs _libs
211
212 distclean-libtool:
213 -rm -f libtool
214 uninstall-info-am:
215
216 # This directory's subdirectories are mostly independent; you can cd
217 # into them and run `make' without going through this Makefile.
218 # To change the values of `make' variables: instead of editing Makefiles,
219 # (1) if the variable is set in `config.status', edit `config.status'
220 # (which will cause the Makefiles to be regenerated when you run `make');
221 # (2) otherwise, pass the desired values on the `make' command line.
222 $(RECURSIVE_TARGETS):
223 @failcom='exit 1'; \
224 for f in x $$MAKEFLAGS; do \
225 case $$f in \
226 *=* | --[!k]*);; \
227 *k*) failcom='fail=yes';; \
228 esac; \
229 done; \
230 dot_seen=no; \
231 target=`echo $@ | sed s/-recursive//`; \
232 list='$(SUBDIRS)'; for subdir in $$list; do \
233 echo "Making $$target in $$subdir"; \
234 if test "$$subdir" = "."; then \
235 dot_seen=yes; \
236 local_target="$$target-am"; \
237 else \
238 local_target="$$target"; \
239 fi; \
240 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
241 || eval $$failcom; \
242 done; \
243 if test "$$dot_seen" = "no"; then \
244 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
245 fi; test -z "$$fail"
246
247 mostlyclean-recursive clean-recursive distclean-recursive \
248 maintainer-clean-recursive:
249 @failcom='exit 1'; \
250 for f in x $$MAKEFLAGS; do \
251 case $$f in \
252 *=* | --[!k]*);; \
253 *k*) failcom='fail=yes';; \
254 esac; \
255 done; \
256 dot_seen=no; \
257 case "$@" in \
258 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
259 *) list='$(SUBDIRS)' ;; \
260 esac; \
261 rev=''; for subdir in $$list; do \
262 if test "$$subdir" = "."; then :; else \
263 rev="$$subdir $$rev"; \
264 fi; \
265 done; \
266 rev="$$rev ."; \
267 target=`echo $@ | sed s/-recursive//`; \
268 for subdir in $$rev; do \
269 echo "Making $$target in $$subdir"; \
270 if test "$$subdir" = "."; then \
271 local_target="$$target-am"; \
272 else \
273 local_target="$$target"; \
274 fi; \
275 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
276 || eval $$failcom; \
277 done && test -z "$$fail"
278 tags-recursive:
279 list='$(SUBDIRS)'; for subdir in $$list; do \
280 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
281 done
282 ctags-recursive:
283 list='$(SUBDIRS)'; for subdir in $$list; do \
284 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
285 done
286
287 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
288 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
289 unique=`for i in $$list; do \
290 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
291 done | \
292 $(AWK) ' { files[$$0] = 1; } \
293 END { for (i in files) print i; }'`; \
294 mkid -fID $$unique
295 tags: TAGS
296
297 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
298 $(TAGS_FILES) $(LISP)
299 tags=; \
300 here=`pwd`; \
301 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
302 include_option=--etags-include; \
303 empty_fix=.; \
304 else \
305 include_option=--include; \
306 empty_fix=; \
307 fi; \
308 list='$(SUBDIRS)'; for subdir in $$list; do \
309 if test "$$subdir" = .; then :; else \
310 test ! -f $$subdir/TAGS || \
311 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
312 fi; \
313 done; \
314 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
315 unique=`for i in $$list; do \
316 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
317 done | \
318 $(AWK) ' { files[$$0] = 1; } \
319 END { for (i in files) print i; }'`; \
320 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
321 test -n "$$unique" || unique=$$empty_fix; \
322 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
323 $$tags $$unique; \
324 fi
325 ctags: CTAGS
326 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
327 $(TAGS_FILES) $(LISP)
328 tags=; \
329 here=`pwd`; \
330 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
331 unique=`for i in $$list; do \
332 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
333 done | \
334 $(AWK) ' { files[$$0] = 1; } \
335 END { for (i in files) print i; }'`; \
336 test -z "$(CTAGS_ARGS)$$tags$$unique" \
337 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
338 $$tags $$unique
339
340 GTAGS:
341 here=`$(am__cd) $(top_builddir) && pwd` \
342 && cd $(top_srcdir) \
343 && gtags -i $(GTAGS_ARGS) $$here
344
345 distclean-tags:
346 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
347
348 distdir: $(DISTFILES)
349 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
350 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
351 list='$(DISTFILES)'; for file in $$list; do \
352 case $$file in \
353 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
354 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
355 esac; \
356 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
357 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
358 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
359 dir="/$$dir"; \
360 $(mkdir_p) "$(distdir)$$dir"; \
361 else \
362 dir=''; \
363 fi; \
364 if test -d $$d/$$file; then \
365 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
366 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
367 fi; \
368 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
369 else \
370 test -f $(distdir)/$$file \
371 || cp -p $$d/$$file $(distdir)/$$file \
372 || exit 1; \
373 fi; \
374 done
375 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
376 if test "$$subdir" = .; then :; else \
377 test -d "$(distdir)/$$subdir" \
378 || $(mkdir_p) "$(distdir)/$$subdir" \
379 || exit 1; \
380 distdir=`$(am__cd) $(distdir) && pwd`; \
381 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
382 (cd $$subdir && \
383 $(MAKE) $(AM_MAKEFLAGS) \
384 top_distdir="$$top_distdir" \
385 distdir="$$distdir/$$subdir" \
386 distdir) \
387 || exit 1; \
388 fi; \
389 done
390 check-am: all-am
391 check: check-recursive
392 all-am: Makefile
393 installdirs: installdirs-recursive
394 installdirs-am:
395 install: install-recursive
396 install-exec: install-exec-recursive
397 install-data: install-data-recursive
398 uninstall: uninstall-recursive
399
400 install-am: all-am
401 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
402
403 installcheck: installcheck-recursive
404 install-strip:
405 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
406 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
407 `test -z '$(STRIP)' || \
408 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
409 mostlyclean-generic:
410
411 clean-generic:
412
413 distclean-generic:
414 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
415
416 maintainer-clean-generic:
417 @echo "This command is intended for maintainers to use"
418 @echo "it deletes files that may require special tools to rebuild."
419 clean: clean-recursive
420
421 clean-am: clean-generic clean-libtool mostlyclean-am
422
423 distclean: distclean-recursive
424 -rm -f Makefile
425 distclean-am: clean-am distclean-generic distclean-libtool \
426 distclean-tags
427
428 dvi: dvi-recursive
429
430 dvi-am:
431
432 html: html-recursive
433
434 info: info-recursive
435
436 info-am:
437
438 install-data-am:
439
440 install-exec-am:
441
442 install-info: install-info-recursive
443
444 install-man:
445
446 installcheck-am:
447
448 maintainer-clean: maintainer-clean-recursive
449 -rm -f Makefile
450 maintainer-clean-am: distclean-am maintainer-clean-generic
451
452 mostlyclean: mostlyclean-recursive
453
454 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
455
456 pdf: pdf-recursive
457
458 pdf-am:
459
460 ps: ps-recursive
461
462 ps-am:
463
464 uninstall-am: uninstall-info-am
465
466 uninstall-info: uninstall-info-recursive
467
468 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
469 clean clean-generic clean-libtool clean-recursive ctags \
470 ctags-recursive distclean distclean-generic distclean-libtool \
471 distclean-recursive distclean-tags distdir dvi dvi-am html \
472 html-am info info-am install install-am install-data \
473 install-data-am install-exec install-exec-am install-info \
474 install-info-am install-man install-strip installcheck \
475 installcheck-am installdirs installdirs-am maintainer-clean \
476 maintainer-clean-generic maintainer-clean-recursive \
477 mostlyclean mostlyclean-generic mostlyclean-libtool \
478 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
479 uninstall uninstall-am uninstall-info-am
480
481 # Tell versions [3.59,3.63) of GNU make to not export all variables.
482 # Otherwise a system limit (for SysV at least) may be exceeded.
483 .NOEXPORT:
(No changes)
+0
-152
plugins/QCD/QCDFAAD.dsp less more
0 # Microsoft Developer Studio Project File - Name="QCDFAAD" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
5
6 CFG=QCDFAAD - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "QCDFAAD.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "QCDFAAD.mak" CFG="QCDFAAD - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "QCDFAAD - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
20 !MESSAGE "QCDFAAD - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=cl.exe
28 MTL=midl.exe
29 RSC=rc.exe
30
31 !IF "$(CFG)" == "QCDFAAD - Win32 Release"
32
33 # PROP BASE Use_MFC 0
34 # PROP BASE Use_Debug_Libraries 0
35 # PROP BASE Output_Dir "Release"
36 # PROP BASE Intermediate_Dir "Release"
37 # PROP BASE Target_Dir ""
38 # PROP Use_MFC 0
39 # PROP Use_Debug_Libraries 0
40 # PROP Output_Dir "Release"
41 # PROP Intermediate_Dir "Release"
42 # PROP Ignore_Export_Lib 0
43 # PROP Target_Dir ""
44 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
45 # ADD CPP /nologo /MD /W3 /GX /O2 /I "..\..\include" /I "..\..\common\faad" /I "..\..\plugins\winamp" /I "..\..\common\id3lib\include" /D "NDEBUG" /D "WIN32" /D "_WINDOWS" /D "ID3LIB_COMPILATION" /YX /FD /c
46 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
47 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
48 # ADD BASE RSC /l 0x413 /d "NDEBUG"
49 # ADD RSC /l 0x413 /d "NDEBUG"
50 BSC32=bscmake.exe
51 # ADD BASE BSC32 /nologo
52 # ADD BSC32 /nologo
53 LINK32=link.exe
54 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
55 # ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
56
57 !ELSEIF "$(CFG)" == "QCDFAAD - Win32 Debug"
58
59 # PROP BASE Use_MFC 0
60 # PROP BASE Use_Debug_Libraries 1
61 # PROP BASE Output_Dir "Debug"
62 # PROP BASE Intermediate_Dir "Debug"
63 # PROP BASE Target_Dir ""
64 # PROP Use_MFC 0
65 # PROP Use_Debug_Libraries 1
66 # PROP Output_Dir "Debug"
67 # PROP Intermediate_Dir "Debug"
68 # PROP Ignore_Export_Lib 0
69 # PROP Target_Dir ""
70 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /GZ /c
71 # ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\..\include" /I "..\..\common\faad" /I "..\..\plugins\winamp" /I "..\..\common\id3lib\include" /D "_DEBUG" /D "WIN32" /D "_WINDOWS" /D "ID3LIB_COMPILATION" /FR /YX /FD /GZ /c
72 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
73 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
74 # ADD BASE RSC /l 0x413 /d "_DEBUG"
75 # ADD RSC /l 0x413 /d "_DEBUG"
76 BSC32=bscmake.exe
77 # ADD BASE BSC32 /nologo
78 # ADD BSC32 /nologo
79 LINK32=link.exe
80 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
81 # ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
82 # SUBTRACT LINK32 /force
83
84 !ENDIF
85
86 # Begin Target
87
88 # Name "QCDFAAD - Win32 Release"
89 # Name "QCDFAAD - Win32 Debug"
90 # Begin Group "Source Files"
91
92 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
93 # Begin Source File
94
95 SOURCE=..\..\common\faad\aacinfo.c
96 # End Source File
97 # Begin Source File
98
99 SOURCE=..\..\common\faad\filestream.c
100 # End Source File
101 # Begin Source File
102
103 SOURCE=.\QCDFAAD.c
104 # End Source File
105 # End Group
106 # Begin Group "Header Files"
107
108 # PROP Default_Filter "h;hpp;hxx;hm;inl"
109 # Begin Source File
110
111 SOURCE=..\..\common\faad\aacinfo.h
112 # End Source File
113 # Begin Source File
114
115 SOURCE=..\..\include\faad.h
116 # End Source File
117 # Begin Source File
118
119 SOURCE=..\..\common\faad\filestream.h
120 # End Source File
121 # Begin Source File
122
123 SOURCE=.\QCDInputDLL.h
124 # End Source File
125 # Begin Source File
126
127 SOURCE=.\QCDModDefs.h
128 # End Source File
129 # Begin Source File
130
131 SOURCE=.\QCDModInput.h
132 # End Source File
133 # End Group
134 # Begin Group "Resource Files"
135
136 # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
137 # Begin Source File
138
139 SOURCE=.\hand.cur
140 # End Source File
141 # Begin Source File
142
143 SOURCE=.\logo.bmp
144 # End Source File
145 # Begin Source File
146
147 SOURCE=.\plugin_dlg.rc
148 # End Source File
149 # End Group
150 # End Target
151 # End Project
+0
-44
plugins/QCD/QCDFAAD.dsw less more
0 Microsoft Developer Studio Workspace File, Format Version 6.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "QCDFAAD"=".\QCDFAAD.dsp" - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 Begin Project Dependency
14 Project_Dep_Name libfaad
15 End Project Dependency
16 }}}
17
18 ###############################################################################
19
20 Project: "libfaad"="..\..\libfaad\libfaad.dsp" - Package Owner=<4>
21
22 Package=<5>
23 {{{
24 }}}
25
26 Package=<4>
27 {{{
28 }}}
29
30 ###############################################################################
31
32 Global:
33
34 Package=<5>
35 {{{
36 }}}
37
38 Package=<3>
39 {{{
40 }}}
41
42 ###############################################################################
43
0 
1 Microsoft Visual Studio Solution File, Format Version 9.00
2 # Visual Studio 2005
3 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QCDFAAD", "QCDFAAD.vcproj", "{71955EB0-4F77-462B-A844-2BA56E74B87E}"
4 ProjectSection(ProjectDependencies) = postProject
5 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114} = {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}
6 EndProjectSection
7 EndProject
8 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfaad", "..\..\libfaad\libfaad.vcproj", "{BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}"
9 EndProject
10 Global
11 GlobalSection(SolutionConfigurationPlatforms) = preSolution
12 Debug|Win32 = Debug|Win32
13 Release|Win32 = Release|Win32
14 EndGlobalSection
15 GlobalSection(ProjectConfigurationPlatforms) = postSolution
16 {71955EB0-4F77-462B-A844-2BA56E74B87E}.Debug|Win32.ActiveCfg = Debug|Win32
17 {71955EB0-4F77-462B-A844-2BA56E74B87E}.Debug|Win32.Build.0 = Debug|Win32
18 {71955EB0-4F77-462B-A844-2BA56E74B87E}.Release|Win32.ActiveCfg = Release|Win32
19 {71955EB0-4F77-462B-A844-2BA56E74B87E}.Release|Win32.Build.0 = Release|Win32
20 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}.Debug|Win32.ActiveCfg = Debug|Win32
21 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}.Debug|Win32.Build.0 = Debug|Win32
22 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}.Release|Win32.ActiveCfg = Release|Win32
23 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}.Release|Win32.Build.0 = Release|Win32
24 EndGlobalSection
25 GlobalSection(SolutionProperties) = preSolution
26 HideSolutionNode = FALSE
27 EndGlobalSection
28 EndGlobal
0 <?xml version="1.0" encoding="Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="8.00"
4 Name="QCDFAAD"
5 ProjectGUID="{71955EB0-4F77-462B-A844-2BA56E74B87E}"
6 >
7 <Platforms>
8 <Platform
9 Name="Win32"
10 />
11 </Platforms>
12 <ToolFiles>
13 </ToolFiles>
14 <Configurations>
15 <Configuration
16 Name="Debug|Win32"
17 OutputDirectory=".\Debug"
18 IntermediateDirectory=".\Debug"
19 ConfigurationType="2"
20 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
21 UseOfMFC="0"
22 ATLMinimizesCRunTimeLibraryUsage="false"
23 >
24 <Tool
25 Name="VCPreBuildEventTool"
26 />
27 <Tool
28 Name="VCCustomBuildTool"
29 />
30 <Tool
31 Name="VCXMLDataGeneratorTool"
32 />
33 <Tool
34 Name="VCWebServiceProxyGeneratorTool"
35 />
36 <Tool
37 Name="VCMIDLTool"
38 PreprocessorDefinitions="_DEBUG"
39 MkTypLibCompatible="true"
40 SuppressStartupBanner="true"
41 TargetEnvironment="1"
42 TypeLibraryName=".\Debug/QCDFAAD.tlb"
43 HeaderFileName=""
44 />
45 <Tool
46 Name="VCCLCompilerTool"
47 Optimization="0"
48 AdditionalIncludeDirectories="..\..\include,..\..\common\faad,..\..\plugins\winamp,..\..\common\id3lib\include"
49 PreprocessorDefinitions="_DEBUG;WIN32;_WINDOWS;ID3LIB_COMPILATION"
50 MinimalRebuild="true"
51 BasicRuntimeChecks="3"
52 RuntimeLibrary="3"
53 PrecompiledHeaderFile=".\Debug/QCDFAAD.pch"
54 AssemblerListingLocation=".\Debug/"
55 ObjectFile=".\Debug/"
56 ProgramDataBaseFileName=".\Debug/"
57 BrowseInformation="1"
58 WarningLevel="3"
59 SuppressStartupBanner="true"
60 DebugInformationFormat="4"
61 />
62 <Tool
63 Name="VCManagedResourceCompilerTool"
64 />
65 <Tool
66 Name="VCResourceCompilerTool"
67 PreprocessorDefinitions="_DEBUG"
68 Culture="1043"
69 />
70 <Tool
71 Name="VCPreLinkEventTool"
72 />
73 <Tool
74 Name="VCLinkerTool"
75 AdditionalDependencies="ws2_32.lib odbc32.lib odbccp32.lib"
76 OutputFile=".\Debug/QCDFAAD.dll"
77 LinkIncremental="2"
78 SuppressStartupBanner="true"
79 GenerateDebugInformation="true"
80 ProgramDatabaseFile=".\Debug/QCDFAAD.pdb"
81 SubSystem="2"
82 ImportLibrary=".\Debug/QCDFAAD.lib"
83 TargetMachine="1"
84 />
85 <Tool
86 Name="VCALinkTool"
87 />
88 <Tool
89 Name="VCManifestTool"
90 />
91 <Tool
92 Name="VCXDCMakeTool"
93 />
94 <Tool
95 Name="VCBscMakeTool"
96 SuppressStartupBanner="true"
97 OutputFile=".\Debug/QCDFAAD.bsc"
98 />
99 <Tool
100 Name="VCFxCopTool"
101 />
102 <Tool
103 Name="VCAppVerifierTool"
104 />
105 <Tool
106 Name="VCWebDeploymentTool"
107 />
108 <Tool
109 Name="VCPostBuildEventTool"
110 />
111 </Configuration>
112 <Configuration
113 Name="Release|Win32"
114 OutputDirectory=".\Release"
115 IntermediateDirectory=".\Release"
116 ConfigurationType="2"
117 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
118 UseOfMFC="0"
119 ATLMinimizesCRunTimeLibraryUsage="false"
120 >
121 <Tool
122 Name="VCPreBuildEventTool"
123 />
124 <Tool
125 Name="VCCustomBuildTool"
126 />
127 <Tool
128 Name="VCXMLDataGeneratorTool"
129 />
130 <Tool
131 Name="VCWebServiceProxyGeneratorTool"
132 />
133 <Tool
134 Name="VCMIDLTool"
135 PreprocessorDefinitions="NDEBUG"
136 MkTypLibCompatible="true"
137 SuppressStartupBanner="true"
138 TargetEnvironment="1"
139 TypeLibraryName=".\Release/QCDFAAD.tlb"
140 HeaderFileName=""
141 />
142 <Tool
143 Name="VCCLCompilerTool"
144 Optimization="2"
145 InlineFunctionExpansion="1"
146 AdditionalIncludeDirectories="..\..\include,..\..\common\faad,..\..\plugins\winamp,..\..\common\id3lib\include"
147 PreprocessorDefinitions="NDEBUG;WIN32;_WINDOWS;ID3LIB_COMPILATION"
148 StringPooling="true"
149 RuntimeLibrary="2"
150 EnableFunctionLevelLinking="true"
151 PrecompiledHeaderFile=".\Release/QCDFAAD.pch"
152 AssemblerListingLocation=".\Release/"
153 ObjectFile=".\Release/"
154 ProgramDataBaseFileName=".\Release/"
155 WarningLevel="3"
156 SuppressStartupBanner="true"
157 />
158 <Tool
159 Name="VCManagedResourceCompilerTool"
160 />
161 <Tool
162 Name="VCResourceCompilerTool"
163 PreprocessorDefinitions="NDEBUG"
164 Culture="1043"
165 />
166 <Tool
167 Name="VCPreLinkEventTool"
168 />
169 <Tool
170 Name="VCLinkerTool"
171 AdditionalDependencies="ws2_32.lib odbc32.lib odbccp32.lib"
172 OutputFile=".\Release/QCDFAAD.dll"
173 LinkIncremental="1"
174 SuppressStartupBanner="true"
175 ProgramDatabaseFile=".\Release/QCDFAAD.pdb"
176 SubSystem="2"
177 ImportLibrary=".\Release/QCDFAAD.lib"
178 TargetMachine="1"
179 />
180 <Tool
181 Name="VCALinkTool"
182 />
183 <Tool
184 Name="VCManifestTool"
185 />
186 <Tool
187 Name="VCXDCMakeTool"
188 />
189 <Tool
190 Name="VCBscMakeTool"
191 SuppressStartupBanner="true"
192 OutputFile=".\Release/QCDFAAD.bsc"
193 />
194 <Tool
195 Name="VCFxCopTool"
196 />
197 <Tool
198 Name="VCAppVerifierTool"
199 />
200 <Tool
201 Name="VCWebDeploymentTool"
202 />
203 <Tool
204 Name="VCPostBuildEventTool"
205 />
206 </Configuration>
207 </Configurations>
208 <References>
209 </References>
210 <Files>
211 <Filter
212 Name="Source Files"
213 Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
214 >
215 <File
216 RelativePath="..\..\common\faad\aacinfo.c"
217 >
218 <FileConfiguration
219 Name="Debug|Win32"
220 >
221 <Tool
222 Name="VCCLCompilerTool"
223 AdditionalIncludeDirectories=""
224 PreprocessorDefinitions=""
225 />
226 </FileConfiguration>
227 <FileConfiguration
228 Name="Release|Win32"
229 >
230 <Tool
231 Name="VCCLCompilerTool"
232 AdditionalIncludeDirectories=""
233 PreprocessorDefinitions=""
234 />
235 </FileConfiguration>
236 </File>
237 <File
238 RelativePath="..\..\common\faad\filestream.c"
239 >
240 <FileConfiguration
241 Name="Debug|Win32"
242 >
243 <Tool
244 Name="VCCLCompilerTool"
245 AdditionalIncludeDirectories=""
246 PreprocessorDefinitions=""
247 />
248 </FileConfiguration>
249 <FileConfiguration
250 Name="Release|Win32"
251 >
252 <Tool
253 Name="VCCLCompilerTool"
254 AdditionalIncludeDirectories=""
255 PreprocessorDefinitions=""
256 />
257 </FileConfiguration>
258 </File>
259 <File
260 RelativePath="QCDFAAD.c"
261 >
262 <FileConfiguration
263 Name="Debug|Win32"
264 >
265 <Tool
266 Name="VCCLCompilerTool"
267 AdditionalIncludeDirectories=""
268 PreprocessorDefinitions=""
269 />
270 </FileConfiguration>
271 <FileConfiguration
272 Name="Release|Win32"
273 >
274 <Tool
275 Name="VCCLCompilerTool"
276 AdditionalIncludeDirectories=""
277 PreprocessorDefinitions=""
278 />
279 </FileConfiguration>
280 </File>
281 </Filter>
282 <Filter
283 Name="Header Files"
284 Filter="h;hpp;hxx;hm;inl"
285 >
286 <File
287 RelativePath="..\..\common\faad\aacinfo.h"
288 >
289 </File>
290 <File
291 RelativePath="..\..\include\faad.h"
292 >
293 </File>
294 <File
295 RelativePath="..\..\common\faad\filestream.h"
296 >
297 </File>
298 <File
299 RelativePath="QCDInputDLL.h"
300 >
301 </File>
302 <File
303 RelativePath="QCDModDefs.h"
304 >
305 </File>
306 <File
307 RelativePath="QCDModInput.h"
308 >
309 </File>
310 </Filter>
311 <Filter
312 Name="Resource Files"
313 Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
314 >
315 <File
316 RelativePath="hand.cur"
317 >
318 </File>
319 <File
320 RelativePath="logo.bmp"
321 >
322 </File>
323 <File
324 RelativePath="plugin_dlg.rc"
325 >
326 <FileConfiguration
327 Name="Debug|Win32"
328 >
329 <Tool
330 Name="VCResourceCompilerTool"
331 PreprocessorDefinitions=""
332 />
333 </FileConfiguration>
334 <FileConfiguration
335 Name="Release|Win32"
336 >
337 <Tool
338 Name="VCResourceCompilerTool"
339 PreprocessorDefinitions=""
340 />
341 </FileConfiguration>
342 </File>
343 </Filter>
344 </Files>
345 <Globals>
346 </Globals>
347 </VisualStudioProject>
Binary diff not shown
+0
-167
plugins/QCDMp4/QCDMp4.dsp less more
0 # Microsoft Developer Studio Project File - Name="QCDMp4" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
5
6 CFG=QCDMp4 - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "QCDMp4.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "QCDMp4.mak" CFG="QCDMp4 - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "QCDMp4 - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
20 !MESSAGE "QCDMp4 - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=xicl6.exe
28 MTL=midl.exe
29 RSC=rc.exe
30
31 !IF "$(CFG)" == "QCDMp4 - Win32 Release"
32
33 # PROP BASE Use_MFC 0
34 # PROP BASE Use_Debug_Libraries 0
35 # PROP BASE Output_Dir "Release"
36 # PROP BASE Intermediate_Dir "Release"
37 # PROP BASE Target_Dir ""
38 # PROP Use_MFC 0
39 # PROP Use_Debug_Libraries 0
40 # PROP Output_Dir "Release"
41 # PROP Intermediate_Dir "Release"
42 # PROP Ignore_Export_Lib 0
43 # PROP Target_Dir ""
44 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
45 # ADD CPP /nologo /MD /W3 /GX /O1 /I "..\..\include" /I "..\..\common\mp4v2" /I "..\..\common\mp4av" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
46 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
47 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
48 # ADD BASE RSC /l 0x413 /d "NDEBUG"
49 # ADD RSC /l 0x413 /d "NDEBUG"
50 BSC32=bscmake.exe
51 # ADD BASE BSC32 /nologo
52 # ADD BSC32 /nologo
53 LINK32=xilink6.exe
54 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
55 # ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
56
57 !ELSEIF "$(CFG)" == "QCDMp4 - Win32 Debug"
58
59 # PROP BASE Use_MFC 0
60 # PROP BASE Use_Debug_Libraries 1
61 # PROP BASE Output_Dir "Debug"
62 # PROP BASE Intermediate_Dir "Debug"
63 # PROP BASE Target_Dir ""
64 # PROP Use_MFC 0
65 # PROP Use_Debug_Libraries 1
66 # PROP Output_Dir "Debug"
67 # PROP Intermediate_Dir "Debug"
68 # PROP Ignore_Export_Lib 0
69 # PROP Target_Dir ""
70 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /GZ /c
71 # ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\..\include" /I "..\..\common\mp4v2" /I "..\..\common\mp4av" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /GZ /c
72 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
73 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
74 # ADD BASE RSC /l 0x413 /d "_DEBUG"
75 # ADD RSC /l 0x413 /d "_DEBUG"
76 BSC32=bscmake.exe
77 # ADD BASE BSC32 /nologo
78 # ADD BSC32 /nologo
79 LINK32=xilink6.exe
80 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
81 # ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
82
83 !ENDIF
84
85 # Begin Target
86
87 # Name "QCDMp4 - Win32 Release"
88 # Name "QCDMp4 - Win32 Debug"
89 # Begin Group "Source Files"
90
91 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
92 # Begin Source File
93
94 SOURCE=.\aac2mp4.cpp
95 # End Source File
96 # Begin Source File
97
98 SOURCE=.\aacinfo.c
99 # End Source File
100 # Begin Source File
101
102 SOURCE=.\config.c
103 # End Source File
104 # Begin Source File
105
106 SOURCE=.\QCDMp4.c
107 # End Source File
108 # Begin Source File
109
110 SOURCE=.\QCDMp4Tag.cpp
111 # End Source File
112 # Begin Source File
113
114 SOURCE=.\utils.c
115 # End Source File
116 # End Group
117 # Begin Group "Header Files"
118
119 # PROP Default_Filter "h;hpp;hxx;hm;inl"
120 # Begin Source File
121
122 SOURCE=.\aacinfo.h
123 # End Source File
124 # Begin Source File
125
126 SOURCE=.\config.h
127 # End Source File
128 # Begin Source File
129
130 SOURCE=..\..\include\faad.h
131 # End Source File
132 # Begin Source File
133
134 SOURCE=.\QCDInputDLL.h
135 # End Source File
136 # Begin Source File
137
138 SOURCE=.\QCDModInput.h
139 # End Source File
140 # Begin Source File
141
142 SOURCE=.\QCDTagsDLL.h
143 # End Source File
144 # Begin Source File
145
146 SOURCE=.\QCDModTagEditor.h
147 # End Source File
148 # Begin Source File
149
150 SOURCE=.\QCDModDefs.h
151 # End Source File
152 # Begin Source File
153
154 SOURCE=.\utils.h
155 # End Source File
156 # End Group
157 # Begin Group "Resource Files"
158
159 # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
160 # Begin Source File
161
162 SOURCE=.\QCDMp4.rc
163 # End Source File
164 # End Group
165 # End Target
166 # End Project
+0
-74
plugins/QCDMp4/QCDMp4.dsw less more
0 Microsoft Developer Studio Workspace File, Format Version 6.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "QCDMp4"=.\QCDMp4.dsp - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 Begin Project Dependency
14 Project_Dep_Name libfaad
15 End Project Dependency
16 Begin Project Dependency
17 Project_Dep_Name libmp4v2_st
18 End Project Dependency
19 Begin Project Dependency
20 Project_Dep_Name libmp4av_st
21 End Project Dependency
22 }}}
23
24 ###############################################################################
25
26 Project: "libfaad"=..\..\libfaad\libfaad.dsp - Package Owner=<4>
27
28 Package=<5>
29 {{{
30 }}}
31
32 Package=<4>
33 {{{
34 }}}
35
36 ###############################################################################
37
38 Project: "libmp4av_st"=..\..\common\mp4av\libmp4av_st.dsp - Package Owner=<4>
39
40 Package=<5>
41 {{{
42 }}}
43
44 Package=<4>
45 {{{
46 }}}
47
48 ###############################################################################
49
50 Project: "libmp4v2_st"=..\..\common\mp4v2\libmp4v2_st60.dsp - Package Owner=<4>
51
52 Package=<5>
53 {{{
54 }}}
55
56 Package=<4>
57 {{{
58 }}}
59
60 ###############################################################################
61
62 Global:
63
64 Package=<5>
65 {{{
66 }}}
67
68 Package=<3>
69 {{{
70 }}}
71
72 ###############################################################################
73
0 Microsoft Visual Studio Solution File, Format Version 8.00
0 Microsoft Visual Studio Solution File, Format Version 9.00
1 # Visual Studio 2005
12 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "QCDMp4", "QCDMp4.vcproj", "{2D8F479D-A591-4502-9456-398425D5F834}"
23 ProjectSection(ProjectDependencies) = postProject
34 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46} = {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}
45 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49} = {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}
5 {82CAD808-21AF-40A6-92EC-AE01AA67B413} = {82CAD808-21AF-40A6-92EC-AE01AA67B413}
66 EndProjectSection
77 EndProject
8 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfaad", "..\..\libfaad\libfaad.vcproj", "{82CAD808-21AF-40A6-92EC-AE01AA67B413}"
9 ProjectSection(ProjectDependencies) = postProject
10 EndProjectSection
8 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfaad", "..\..\libfaad\libfaad.vcproj", "{BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}"
119 EndProject
1210 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmp4v2_st", "..\..\common\mp4v2\libmp4v2_st60.vcproj", "{2398BB2F-FFF9-490B-B4CC-863F2D21AE46}"
13 ProjectSection(ProjectDependencies) = postProject
14 EndProjectSection
1511 EndProject
1612 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmp4av_st", "..\..\common\mp4av\libmp4av_st.vcproj", "{8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}"
17 ProjectSection(ProjectDependencies) = postProject
18 EndProjectSection
1913 EndProject
2014 Global
21 GlobalSection(SolutionConfiguration) = preSolution
22 Debug = Debug
23 Release = Release
15 GlobalSection(SolutionConfigurationPlatforms) = preSolution
16 Debug|Win32 = Debug|Win32
17 Release|Win32 = Release|Win32
2418 EndGlobalSection
25 GlobalSection(ProjectConfiguration) = postSolution
26 {2D8F479D-A591-4502-9456-398425D5F834}.Debug.ActiveCfg = Debug|Win32
27 {2D8F479D-A591-4502-9456-398425D5F834}.Debug.Build.0 = Debug|Win32
28 {2D8F479D-A591-4502-9456-398425D5F834}.Release.ActiveCfg = Release|Win32
29 {2D8F479D-A591-4502-9456-398425D5F834}.Release.Build.0 = Release|Win32
30 {82CAD808-21AF-40A6-92EC-AE01AA67B413}.Debug.ActiveCfg = Debug|Win32
31 {82CAD808-21AF-40A6-92EC-AE01AA67B413}.Debug.Build.0 = Debug|Win32
32 {82CAD808-21AF-40A6-92EC-AE01AA67B413}.Release.ActiveCfg = Release|Win32
33 {82CAD808-21AF-40A6-92EC-AE01AA67B413}.Release.Build.0 = Release|Win32
34 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Debug.ActiveCfg = Debug|Win32
35 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Debug.Build.0 = Debug|Win32
36 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Release.ActiveCfg = Release|Win32
37 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Release.Build.0 = Release|Win32
38 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Debug.ActiveCfg = Debug|Win32
39 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Debug.Build.0 = Debug|Win32
40 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Release.ActiveCfg = Release|Win32
41 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Release.Build.0 = Release|Win32
19 GlobalSection(ProjectConfigurationPlatforms) = postSolution
20 {2D8F479D-A591-4502-9456-398425D5F834}.Debug|Win32.ActiveCfg = Debug|Win32
21 {2D8F479D-A591-4502-9456-398425D5F834}.Debug|Win32.Build.0 = Debug|Win32
22 {2D8F479D-A591-4502-9456-398425D5F834}.Release|Win32.ActiveCfg = Release|Win32
23 {2D8F479D-A591-4502-9456-398425D5F834}.Release|Win32.Build.0 = Release|Win32
24 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}.Debug|Win32.ActiveCfg = Debug|Win32
25 {BC3EFE27-9015-4C9C-AD3C-72B3B7ED2114}.Release|Win32.ActiveCfg = Release|Win32
26 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Debug|Win32.ActiveCfg = Debug|Win32
27 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Release|Win32.ActiveCfg = Release|Win32
28 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Debug|Win32.ActiveCfg = Debug|Win32
29 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Release|Win32.ActiveCfg = Release|Win32
4230 EndGlobalSection
43 GlobalSection(ExtensibilityGlobals) = postSolution
44 EndGlobalSection
45 GlobalSection(ExtensibilityAddIns) = postSolution
31 GlobalSection(SolutionProperties) = preSolution
32 HideSolutionNode = FALSE
4633 EndGlobalSection
4734 EndGlobal
00 <?xml version="1.0" encoding="Windows-1252"?>
11 <VisualStudioProject
22 ProjectType="Visual C++"
3 Version="7.10"
3 Version="8.00"
44 Name="QCDMp4"
5 SccProjectName=""
6 SccLocalPath="">
5 ProjectGUID="{2D8F479D-A591-4502-9456-398425D5F834}"
6 >
77 <Platforms>
88 <Platform
9 Name="Win32"/>
9 Name="Win32"
10 />
1011 </Platforms>
12 <ToolFiles>
13 </ToolFiles>
1114 <Configurations>
1215 <Configuration
1316 Name="Debug|Win32"
1417 OutputDirectory=".\Debug"
1518 IntermediateDirectory=".\Debug"
1619 ConfigurationType="2"
20 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
1721 UseOfMFC="0"
18 ATLMinimizesCRunTimeLibraryUsage="FALSE">
22 ATLMinimizesCRunTimeLibraryUsage="false"
23 >
24 <Tool
25 Name="VCPreBuildEventTool"
26 />
27 <Tool
28 Name="VCCustomBuildTool"
29 />
30 <Tool
31 Name="VCXMLDataGeneratorTool"
32 />
33 <Tool
34 Name="VCWebServiceProxyGeneratorTool"
35 />
36 <Tool
37 Name="VCMIDLTool"
38 PreprocessorDefinitions="_DEBUG"
39 MkTypLibCompatible="true"
40 SuppressStartupBanner="true"
41 TargetEnvironment="1"
42 TypeLibraryName=".\Debug/QCDMp4.tlb"
43 />
1944 <Tool
2045 Name="VCCLCompilerTool"
2146 Optimization="0"
2348 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
2449 BasicRuntimeChecks="0"
2550 RuntimeLibrary="1"
26 UsePrecompiledHeader="2"
51 UsePrecompiledHeader="0"
2752 PrecompiledHeaderFile=".\Debug/QCDMp4.pch"
2853 AssemblerListingLocation=".\Debug/"
2954 ObjectFile=".\Debug/"
3055 ProgramDataBaseFileName=".\Debug/"
3156 WarningLevel="3"
32 SuppressStartupBanner="TRUE"
57 SuppressStartupBanner="true"
3358 DebugInformationFormat="4"
34 CompileAs="0"/>
35 <Tool
36 Name="VCCustomBuildTool"/>
59 CompileAs="0"
60 />
61 <Tool
62 Name="VCManagedResourceCompilerTool"
63 />
64 <Tool
65 Name="VCResourceCompilerTool"
66 PreprocessorDefinitions="_DEBUG"
67 Culture="1043"
68 />
69 <Tool
70 Name="VCPreLinkEventTool"
71 />
3772 <Tool
3873 Name="VCLinkerTool"
3974 AdditionalOptions="/MACHINE:I386"
4075 AdditionalDependencies="ws2_32.lib odbc32.lib odbccp32.lib"
4176 OutputFile=".\Debug/QCDMp4.dll"
4277 LinkIncremental="2"
43 SuppressStartupBanner="TRUE"
44 GenerateDebugInformation="TRUE"
78 SuppressStartupBanner="true"
79 GenerateDebugInformation="true"
4580 ProgramDatabaseFile=".\Debug/QCDMp4.pdb"
4681 SubSystem="2"
47 ImportLibrary=".\Debug/QCDMp4.lib"/>
48 <Tool
49 Name="VCMIDLTool"
50 PreprocessorDefinitions="_DEBUG"
51 MkTypLibCompatible="TRUE"
52 SuppressStartupBanner="TRUE"
53 TargetEnvironment="1"
54 TypeLibraryName=".\Debug/QCDMp4.tlb"/>
55 <Tool
56 Name="VCPostBuildEventTool"/>
57 <Tool
58 Name="VCPreBuildEventTool"/>
59 <Tool
60 Name="VCPreLinkEventTool"/>
61 <Tool
62 Name="VCResourceCompilerTool"
63 PreprocessorDefinitions="_DEBUG"
64 Culture="1043"/>
65 <Tool
66 Name="VCWebServiceProxyGeneratorTool"/>
67 <Tool
68 Name="VCXMLDataGeneratorTool"/>
69 <Tool
70 Name="VCWebDeploymentTool"/>
71 <Tool
72 Name="VCManagedWrapperGeneratorTool"/>
73 <Tool
74 Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
82 ImportLibrary=".\Debug/QCDMp4.lib"
83 />
84 <Tool
85 Name="VCALinkTool"
86 />
87 <Tool
88 Name="VCManifestTool"
89 />
90 <Tool
91 Name="VCXDCMakeTool"
92 />
93 <Tool
94 Name="VCBscMakeTool"
95 />
96 <Tool
97 Name="VCFxCopTool"
98 />
99 <Tool
100 Name="VCAppVerifierTool"
101 />
102 <Tool
103 Name="VCWebDeploymentTool"
104 />
105 <Tool
106 Name="VCPostBuildEventTool"
107 />
75108 </Configuration>
76109 <Configuration
77110 Name="Release|Win32"
78111 OutputDirectory=".\Release"
79112 IntermediateDirectory=".\Release"
80113 ConfigurationType="2"
114 InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC71.vsprops"
81115 UseOfMFC="0"
82 ATLMinimizesCRunTimeLibraryUsage="FALSE">
116 ATLMinimizesCRunTimeLibraryUsage="false"
117 >
118 <Tool
119 Name="VCPreBuildEventTool"
120 />
121 <Tool
122 Name="VCCustomBuildTool"
123 />
124 <Tool
125 Name="VCXMLDataGeneratorTool"
126 />
127 <Tool
128 Name="VCWebServiceProxyGeneratorTool"
129 />
130 <Tool
131 Name="VCMIDLTool"
132 PreprocessorDefinitions="NDEBUG"
133 MkTypLibCompatible="true"
134 SuppressStartupBanner="true"
135 TargetEnvironment="1"
136 TypeLibraryName=".\Release/QCDMp4.tlb"
137 />
83138 <Tool
84139 Name="VCCLCompilerTool"
85140 Optimization="1"
86 GlobalOptimizations="TRUE"
87141 InlineFunctionExpansion="1"
88 EnableIntrinsicFunctions="TRUE"
142 EnableIntrinsicFunctions="true"
89143 FavorSizeOrSpeed="1"
90 OptimizeForProcessor="2"
91144 AdditionalIncludeDirectories="..\..\include,..\..\common\mp4v2,..\..\common\mp4av"
92145 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
93 StringPooling="TRUE"
146 StringPooling="true"
94147 RuntimeLibrary="2"
95 EnableFunctionLevelLinking="TRUE"
96 UsePrecompiledHeader="2"
148 EnableFunctionLevelLinking="true"
149 UsePrecompiledHeader="0"
97150 PrecompiledHeaderFile=".\Release/QCDMp4.pch"
98151 AssemblerListingLocation=".\Release/"
99152 ObjectFile=".\Release/"
100153 ProgramDataBaseFileName=".\Release/"
101154 WarningLevel="3"
102 SuppressStartupBanner="TRUE"
103 CompileAs="0"/>
104 <Tool
105 Name="VCCustomBuildTool"/>
155 SuppressStartupBanner="true"
156 CompileAs="0"
157 />
158 <Tool
159 Name="VCManagedResourceCompilerTool"
160 />
161 <Tool
162 Name="VCResourceCompilerTool"
163 PreprocessorDefinitions="NDEBUG"
164 Culture="1043"
165 />
166 <Tool
167 Name="VCPreLinkEventTool"
168 />
106169 <Tool
107170 Name="VCLinkerTool"
108171 AdditionalOptions="/MACHINE:I386"
109172 AdditionalDependencies="ws2_32.lib"
110173 OutputFile=".\Release/QCDMp4.dll"
111174 LinkIncremental="1"
112 SuppressStartupBanner="TRUE"
175 SuppressStartupBanner="true"
113176 IgnoreDefaultLibraryNames=""
114177 ProgramDatabaseFile=".\Release/QCDMp4.pdb"
115178 SubSystem="2"
116 ImportLibrary=".\Release/QCDMp4.lib"/>
117 <Tool
118 Name="VCMIDLTool"
119 PreprocessorDefinitions="NDEBUG"
120 MkTypLibCompatible="TRUE"
121 SuppressStartupBanner="TRUE"
122 TargetEnvironment="1"
123 TypeLibraryName=".\Release/QCDMp4.tlb"/>
124 <Tool
125 Name="VCPostBuildEventTool"/>
126 <Tool
127 Name="VCPreBuildEventTool"/>
128 <Tool
129 Name="VCPreLinkEventTool"/>
130 <Tool
131 Name="VCResourceCompilerTool"
132 PreprocessorDefinitions="NDEBUG"
133 Culture="1043"/>
134 <Tool
135 Name="VCWebServiceProxyGeneratorTool"/>
136 <Tool
137 Name="VCXMLDataGeneratorTool"/>
138 <Tool
139 Name="VCWebDeploymentTool"/>
140 <Tool
141 Name="VCManagedWrapperGeneratorTool"/>
142 <Tool
143 Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
179 ImportLibrary=".\Release/QCDMp4.lib"
180 />
181 <Tool
182 Name="VCALinkTool"
183 />
184 <Tool
185 Name="VCManifestTool"
186 />
187 <Tool
188 Name="VCXDCMakeTool"
189 />
190 <Tool
191 Name="VCBscMakeTool"
192 />
193 <Tool
194 Name="VCFxCopTool"
195 />
196 <Tool
197 Name="VCAppVerifierTool"
198 />
199 <Tool
200 Name="VCWebDeploymentTool"
201 />
202 <Tool
203 Name="VCPostBuildEventTool"
204 />
144205 </Configuration>
145206 </Configurations>
146207 <References>
148209 <Files>
149210 <Filter
150211 Name="Source Files"
151 Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
152 <File
153 RelativePath=".\config.c">
154 </File>
155 <File
156 RelativePath=".\QCDMp4.c">
157 </File>
158 <File
159 RelativePath=".\QCDMp4Tag.cpp">
160 </File>
161 <File
162 RelativePath=".\utils.c">
212 Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
213 >
214 <File
215 RelativePath=".\config.c"
216 >
217 </File>
218 <File
219 RelativePath=".\QCDMp4.c"
220 >
221 </File>
222 <File
223 RelativePath=".\QCDMp4Tag.cpp"
224 >
225 </File>
226 <File
227 RelativePath=".\utils.c"
228 >
163229 </File>
164230 </Filter>
165231 <Filter
166232 Name="Header Files"
167 Filter="h;hpp;hxx;hm;inl">
168 <File
169 RelativePath=".\config.h">
170 </File>
171 <File
172 RelativePath="..\..\include\faad.h">
173 </File>
174 <File
175 RelativePath=".\QCDInputDLL.h">
176 </File>
177 <File
178 RelativePath=".\QCDModDefs.h">
179 </File>
180 <File
181 RelativePath=".\QCDModInput.h">
182 </File>
183 <File
184 RelativePath=".\QCDModTagEditor.h">
185 </File>
186 <File
187 RelativePath=".\QCDTagsDLL.h">
188 </File>
189 <File
190 RelativePath="resource.h">
191 </File>
192 <File
193 RelativePath=".\utils.h">
233 Filter="h;hpp;hxx;hm;inl"
234 >
235 <File
236 RelativePath=".\config.h"
237 >
238 </File>
239 <File
240 RelativePath="..\..\include\faad.h"
241 >
242 </File>
243 <File
244 RelativePath=".\QCDInputDLL.h"
245 >
246 </File>
247 <File
248 RelativePath=".\QCDModDefs.h"
249 >
250 </File>
251 <File
252 RelativePath=".\QCDModInput.h"
253 >
254 </File>
255 <File
256 RelativePath=".\QCDModTagEditor.h"
257 >
258 </File>
259 <File
260 RelativePath=".\QCDTagsDLL.h"
261 >
262 </File>
263 <File
264 RelativePath="resource.h"
265 >
266 </File>
267 <File
268 RelativePath=".\utils.h"
269 >
194270 </File>
195271 </Filter>
196272 <Filter
197273 Name="Resource Files"
198 Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
199 <File
200 RelativePath=".\QCDMp4.rc">
274 Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
275 >
276 <File
277 RelativePath=".\QCDMp4.rc"
278 >
201279 </File>
202280 </Filter>
203281 </Files>
(No changes)
+0
-319
plugins/in_mp4/aac2mp4.cpp less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** Commercial non-GPL licensing of this software is possible.
22 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
23 **
24 ** $Id: aac2mp4.cpp,v 1.4 2004/08/19 18:35:11 menno Exp $
25 **/
26
27 #include <mpeg4ip.h>
28 #include <mp4.h>
29 #include <mp4av.h>
30
31 #include "aac2mp4.h"
32
33 int covert_aac_to_mp4(char *inputFileName, char *mp4FileName)
34 {
35 int Mp4TimeScale = 90000;
36 int allMpeg4Streams = 0;
37 MP4FileHandle mp4File;
38 FILE* inFile;
39 const char *type;
40 MP4TrackId createdTrackId = MP4_INVALID_TRACK_ID;
41
42 mp4File = MP4Create(mp4FileName, 0, 0);
43 if (mp4File)
44 {
45 MP4SetTimeScale(mp4File, Mp4TimeScale);
46 } else {
47 return 1;
48 }
49
50 inFile = fopen(inputFileName, "rb");
51
52 if (inFile == NULL)
53 {
54 MP4Close(mp4File);
55 return 2;
56 }
57
58 createdTrackId = AacCreator(mp4File, inFile);
59
60 if (createdTrackId == MP4_INVALID_TRACK_ID)
61 {
62 fclose(inFile);
63 MP4Close(mp4File);
64 return 3;
65 }
66
67 type = MP4GetTrackType(mp4File, createdTrackId);
68
69 if (!strcmp(type, MP4_AUDIO_TRACK_TYPE))
70 {
71 allMpeg4Streams &=
72 (MP4GetTrackEsdsObjectTypeId(mp4File, createdTrackId)
73 == MP4_MPEG4_AUDIO_TYPE);
74 }
75
76 if (inFile)
77 {
78 fclose(inFile);
79 }
80
81 MP4Close(mp4File);
82 MP4MakeIsmaCompliant(mp4FileName, 0, allMpeg4Streams);
83
84 return 0;
85 }
86
87 #define ADTS_HEADER_MAX_SIZE 10 /* bytes */
88
89 static u_int8_t firstHeader[ADTS_HEADER_MAX_SIZE];
90
91 /*
92 * hdr must point to at least ADTS_HEADER_MAX_SIZE bytes of memory
93 */
94 static bool LoadNextAdtsHeader(FILE* inFile, u_int8_t* hdr)
95 {
96 u_int state = 0;
97 u_int dropped = 0;
98 u_int hdrByteSize = ADTS_HEADER_MAX_SIZE;
99
100 while (1) {
101 /* read a byte */
102 u_int8_t b;
103
104 if (fread(&b, 1, 1, inFile) == 0) {
105 return false;
106 }
107
108 /* header is complete, return it */
109 if (state == hdrByteSize - 1) {
110 hdr[state] = b;
111 if (dropped > 0) {
112 fprintf(stderr, "Warning: dropped %u input bytes\n", dropped);
113 }
114 return true;
115 }
116
117 /* collect requisite number of bytes, no constraints on data */
118 if (state >= 2) {
119 hdr[state++] = b;
120 } else {
121 /* have first byte, check if we have 1111X00X */
122 if (state == 1) {
123 if ((b & 0xF6) == 0xF0) {
124 hdr[state] = b;
125 state = 2;
126 /* compute desired header size */
127 hdrByteSize = MP4AV_AdtsGetHeaderByteSize(hdr);
128 } else {
129 state = 0;
130 }
131 }
132 /* initial state, looking for 11111111 */
133 if (state == 0) {
134 if (b == 0xFF) {
135 hdr[state] = b;
136 state = 1;
137 } else {
138 /* else drop it */
139 dropped++;
140 }
141 }
142 }
143 }
144 }
145
146 /*
147 * Load the next frame from the file
148 * into the supplied buffer, which better be large enough!
149 *
150 * Note: Frames are padded to byte boundaries
151 */
152 static bool LoadNextAacFrame(FILE* inFile, u_int8_t* pBuf, u_int32_t* pBufSize, bool stripAdts)
153 {
154 u_int16_t frameSize;
155 u_int16_t hdrBitSize, hdrByteSize;
156 u_int8_t hdrBuf[ADTS_HEADER_MAX_SIZE];
157
158 /* get the next AAC frame header, more or less */
159 if (!LoadNextAdtsHeader(inFile, hdrBuf)) {
160 return false;
161 }
162
163 /* get frame size from header */
164 frameSize = MP4AV_AdtsGetFrameSize(hdrBuf);
165
166 /* get header size in bits and bytes from header */
167 hdrBitSize = MP4AV_AdtsGetHeaderBitSize(hdrBuf);
168 hdrByteSize = MP4AV_AdtsGetHeaderByteSize(hdrBuf);
169
170 /* adjust the frame size to what remains to be read */
171 frameSize -= hdrByteSize;
172
173 if (stripAdts) {
174 if ((hdrBitSize % 8) == 0) {
175 /* header is byte aligned, i.e. MPEG-2 ADTS */
176 /* read the frame data into the buffer */
177 if (fread(pBuf, 1, frameSize, inFile) != frameSize) {
178 return false;
179 }
180 (*pBufSize) = frameSize;
181 } else {
182 /* header is not byte aligned, i.e. MPEG-4 ADTS */
183 int i;
184 u_int8_t newByte;
185 int upShift = hdrBitSize % 8;
186 int downShift = 8 - upShift;
187
188 pBuf[0] = hdrBuf[hdrBitSize / 8] << upShift;
189
190 for (i = 0; i < frameSize; i++) {
191 if (fread(&newByte, 1, 1, inFile) != 1) {
192 return false;
193 }
194 pBuf[i] |= (newByte >> downShift);
195 pBuf[i+1] = (newByte << upShift);
196 }
197 (*pBufSize) = frameSize + 1;
198 }
199 } else { /* don't strip ADTS headers */
200 memcpy(pBuf, hdrBuf, hdrByteSize);
201 if (fread(&pBuf[hdrByteSize], 1, frameSize, inFile) != frameSize) {
202 return false;
203 }
204 }
205
206 return true;
207 }
208
209 static bool GetFirstHeader(FILE* inFile)
210 {
211 /* read file until we find an audio frame */
212 fpos_t curPos;
213
214 /* already read first header */
215 if (firstHeader[0] == 0xff) {
216 return true;
217 }
218
219 /* remember where we are */
220 fgetpos(inFile, &curPos);
221
222 /* go back to start of file */
223 rewind(inFile);
224
225 if (!LoadNextAdtsHeader(inFile, firstHeader)) {
226 return false;
227 }
228
229 /* reposition the file to where we were */
230 fsetpos(inFile, &curPos);
231
232 return true;
233 }
234
235 MP4TrackId AacCreator(MP4FileHandle mp4File, FILE* inFile)
236 {
237 // collect all the necessary meta information
238 u_int32_t samplesPerSecond;
239 u_int8_t mpegVersion;
240 u_int8_t profile;
241 u_int8_t channelConfig;
242
243 if (!GetFirstHeader(inFile)) {
244 return MP4_INVALID_TRACK_ID;
245 }
246
247 samplesPerSecond = MP4AV_AdtsGetSamplingRate(firstHeader);
248 mpegVersion = MP4AV_AdtsGetVersion(firstHeader);
249 profile = MP4AV_AdtsGetProfile(firstHeader);
250 channelConfig = MP4AV_AdtsGetChannels(firstHeader);
251
252 u_int8_t audioType = MP4_INVALID_AUDIO_TYPE;
253 switch (mpegVersion) {
254 case 0:
255 audioType = MP4_MPEG4_AUDIO_TYPE;
256 break;
257 case 1:
258 switch (profile) {
259 case 0:
260 audioType = MP4_MPEG2_AAC_MAIN_AUDIO_TYPE;
261 break;
262 case 1:
263 audioType = MP4_MPEG2_AAC_LC_AUDIO_TYPE;
264 break;
265 case 2:
266 audioType = MP4_MPEG2_AAC_SSR_AUDIO_TYPE;
267 break;
268 case 3:
269 return MP4_INVALID_TRACK_ID;
270 }
271 break;
272 }
273
274 // add the new audio track
275 MP4TrackId trackId =
276 MP4AddAudioTrack(mp4File,
277 samplesPerSecond, 1024, audioType);
278
279 if (trackId == MP4_INVALID_TRACK_ID) {
280 return MP4_INVALID_TRACK_ID;
281 }
282
283 if (MP4GetNumberOfTracks(mp4File, MP4_AUDIO_TRACK_TYPE) == 1) {
284 MP4SetAudioProfileLevel(mp4File, 0x0F);
285 }
286
287 u_int8_t* pConfig = NULL;
288 u_int32_t configLength = 0;
289
290 MP4AV_AacGetConfiguration(
291 &pConfig,
292 &configLength,
293 profile,
294 samplesPerSecond,
295 channelConfig);
296
297 if (!MP4SetTrackESConfiguration(mp4File, trackId,
298 pConfig, configLength)) {
299 MP4DeleteTrack(mp4File, trackId);
300 return MP4_INVALID_TRACK_ID;
301 }
302
303 // parse the ADTS frames, and write the MP4 samples
304 u_int8_t sampleBuffer[8 * 1024];
305 u_int32_t sampleSize = sizeof(sampleBuffer);
306 MP4SampleId sampleId = 1;
307
308 while (LoadNextAacFrame(inFile, sampleBuffer, &sampleSize, true)) {
309 if (!MP4WriteSample(mp4File, trackId, sampleBuffer, sampleSize)) {
310 MP4DeleteTrack(mp4File, trackId);
311 return MP4_INVALID_TRACK_ID;
312 }
313 sampleId++;
314 sampleSize = sizeof(sampleBuffer);
315 }
316
317 return trackId;
318 }
+0
-42
plugins/in_mp4/aac2mp4.h less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** Commercial non-GPL licensing of this software is possible.
22 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
23 **
24 ** $Id: aac2mp4.h,v 1.3 2003/07/29 08:20:14 menno Exp $
25 **/
26
27 #ifndef AAC2MP4_H__
28 #define AAC2MP4_H__
29
30 #ifdef __cplusplus
31 extern "C" {
32 #endif /* __cplusplus */
33
34 int covert_aac_to_mp4(char *inputFileName, char *mp4FileName);
35 MP4TrackId AacCreator(MP4FileHandle mp4File, FILE* inFile);
36
37 #ifdef __cplusplus
38 }
39 #endif /* __cplusplus */
40
41 #endif
+0
-225
plugins/in_mp4/aacinfo.c less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** Commercial non-GPL licensing of this software is possible.
22 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
23 **
24 ** $Id: aacinfo.c,v 1.6 2004/10/18 19:25:00 menno Exp $
25 **/
26
27 #define WIN32_LEAN_AND_MEAN
28 #include <windows.h>
29 #include <malloc.h>
30 #include <stdlib.h>
31 #include <stdio.h>
32 #include <math.h>
33 #include "aacinfo.h"
34 #include "utils.h"
35
36 #define ADIF_MAX_SIZE 30 /* Should be enough */
37 #define ADTS_MAX_SIZE 10 /* Should be enough */
38
39 static int sample_rates[] = {96000,88200,64000,48000,44100,32000,24000,22050,16000,12000,11025,8000};
40
41 static int read_ADIF_header(FILE *file, faadAACInfo *info)
42 {
43 int bitstream;
44 unsigned char buffer[ADIF_MAX_SIZE];
45 int skip_size = 0;
46 int sf_idx;
47
48 /* Get ADIF header data */
49 info->headertype = 1;
50
51 if (fread(buffer, 1, ADIF_MAX_SIZE, file) != ADIF_MAX_SIZE)
52 return -1;
53
54 /* copyright string */
55 if(buffer[0] & 0x80)
56 skip_size += 9; /* skip 9 bytes */
57
58 bitstream = buffer[0 + skip_size] & 0x10;
59 info->bitrate = ((unsigned int)(buffer[0 + skip_size] & 0x0F)<<19)|
60 ((unsigned int)buffer[1 + skip_size]<<11)|
61 ((unsigned int)buffer[2 + skip_size]<<3)|
62 ((unsigned int)buffer[3 + skip_size] & 0xE0);
63
64 if (bitstream == 0)
65 {
66 info->object_type = ((buffer[6 + skip_size]&0x01)<<1)|((buffer[7 + skip_size]&0x80)>>7);
67 sf_idx = (buffer[7 + skip_size]&0x78)>>3;
68 } else {
69 info->object_type = (buffer[4 + skip_size] & 0x18)>>3;
70 sf_idx = ((buffer[4 + skip_size] & 0x07)<<1)|((buffer[5 + skip_size] & 0x80)>>7);
71 }
72 info->sampling_rate = sample_rates[sf_idx];
73
74 return 0;
75 }
76
77 static int read_ADTS_header(FILE *file, faadAACInfo *info)
78 {
79 /* Get ADTS header data */
80 unsigned char buffer[ADTS_MAX_SIZE];
81 int frames, t_framelength = 0, frame_length, sr_idx = 0, ID;
82 int second = 0, pos;
83 float frames_per_sec = 0;
84 unsigned long bytes;
85 unsigned long *tmp_seek_table = NULL;
86
87 info->headertype = 2;
88
89 /* Read all frames to ensure correct time and bitrate */
90 for (frames = 0; /* */; frames++)
91 {
92 bytes = fread(buffer, 1, ADTS_MAX_SIZE, file);
93
94 if (bytes != ADTS_MAX_SIZE)
95 break;
96
97 /* check syncword */
98 if (!((buffer[0] == 0xFF)&&((buffer[1] & 0xF6) == 0xF0)))
99 break;
100
101 if (!frames)
102 {
103 /* fixed ADTS header is the same for every frame, so we read it only once */
104 /* Syncword found, proceed to read in the fixed ADTS header */
105 ID = buffer[1] & 0x08;
106 info->object_type = (buffer[2]&0xC0)>>6;
107 sr_idx = (buffer[2]&0x3C)>>2;
108 info->channels = ((buffer[2]&0x01)<<2)|((buffer[3]&0xC0)>>6);
109
110 frames_per_sec = sample_rates[sr_idx] / 1024.f;
111 }
112
113 /* ...and the variable ADTS header */
114 if (ID == 0)
115 {
116 info->version = 4;
117 } else { /* MPEG-2 */
118 info->version = 2;
119 }
120 frame_length = ((((unsigned int)buffer[3] & 0x3)) << 11)
121 | (((unsigned int)buffer[4]) << 3) | (buffer[5] >> 5);
122
123 t_framelength += frame_length;
124
125 pos = ftell(file) - ADTS_MAX_SIZE;
126
127 fseek(file, frame_length - ADTS_MAX_SIZE, SEEK_CUR);
128 }
129
130 if (frames > 0)
131 {
132 float sec_per_frame, bytes_per_frame;
133 info->sampling_rate = sample_rates[sr_idx];
134 sec_per_frame = (float)info->sampling_rate/1024.0;
135 bytes_per_frame = (float)t_framelength / (float)frames;
136 info->bitrate = 8 * (int)floor(bytes_per_frame * sec_per_frame);
137 info->length = (int)floor((float)frames/frames_per_sec)*1000;
138 } else {
139 info->sampling_rate = 4;
140 info->bitrate = 128000;
141 info->length = 0;
142 info->channels = 0;
143 }
144
145 return 0;
146 }
147
148 int get_AAC_format(char *filename, faadAACInfo *info)
149 {
150 unsigned long tagsize;
151 FILE *file;
152 char buffer[10];
153 unsigned long file_len;
154 unsigned char adxx_id[5];
155 unsigned long tmp;
156
157 memset(info, 0, sizeof(faadAACInfo));
158
159 file = fopen(filename, "rb");
160
161 if(file == NULL)
162 return -1;
163
164 fseek(file, 0, SEEK_END);
165 file_len = ftell(file);
166 fseek(file, 0, SEEK_SET);
167
168 /* Skip the tag, if it's there */
169 tmp = fread(buffer, 10, 1, file);
170
171 if (StringComp(buffer, "ID3", 3) == 0)
172 {
173 /* high bit is not used */
174 tagsize = (buffer[6] << 21) | (buffer[7] << 14) |
175 (buffer[8] << 7) | (buffer[9] << 0);
176
177 fseek(file, tagsize, SEEK_CUR);
178 tagsize += 10;
179 } else {
180 tagsize = 0;
181 fseek(file, 0, SEEK_SET);
182 }
183
184 if (file_len)
185 file_len -= tagsize;
186
187 tmp = fread(adxx_id, 2, 1, file);
188 adxx_id[5-1] = 0;
189 info->length = 0;
190
191 /* Determine the header type of the file, check the first two bytes */
192 if (StringComp(adxx_id, "AD", 2) == 0)
193 {
194 /* We think its an ADIF header, but check the rest just to make sure */
195 tmp = fread(adxx_id + 2, 2, 1, file);
196
197 if (StringComp(adxx_id, "ADIF", 4) == 0)
198 {
199 read_ADIF_header(file, info);
200
201 info->length = (int)((float)file_len*8000.0/((float)info->bitrate));
202 }
203 } else {
204 /* No ADIF, check for ADTS header */
205 if ((adxx_id[0] == 0xFF)&&((adxx_id[1] & 0xF6) == 0xF0))
206 {
207 /* ADTS header located */
208 fseek(file, tagsize, SEEK_SET);
209 read_ADTS_header(file, info);
210 } else {
211 /* Unknown/headerless AAC file, assume format: */
212 info->version = 2;
213 info->bitrate = 128000;
214 info->sampling_rate = 44100;
215 info->channels = 2;
216 info->headertype = 0;
217 info->object_type = 1;
218 }
219 }
220
221 fclose(file);
222
223 return 0;
224 }
+0
-46
plugins/in_mp4/aacinfo.h less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** Commercial non-GPL licensing of this software is possible.
22 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
23 **
24 ** $Id: aacinfo.h,v 1.3 2003/07/29 08:20:14 menno Exp $
25 **/
26
27 #ifndef AACINFO_INCLUDED
28 #define AACINFO_INCLUDED
29
30 typedef struct {
31 int version;
32 int channels;
33 int sampling_rate;
34 int bitrate;
35 int length;
36 int object_type;
37 int headertype;
38 } faadAACInfo;
39
40 int get_AAC_format(char *filename, faadAACInfo *info);
41
42 static int read_ADIF_header(FILE *file, faadAACInfo *info);
43 static int read_ADTS_header(FILE *file, faadAACInfo *info);
44
45 #endif
+0
-48
plugins/in_mp4/config.c less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** Commercial non-GPL licensing of this software is possible.
22 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
23 **
24 ** $Id: config.c,v 1.6 2003/09/03 20:19:07 menno Exp $
25 **/
26
27 #define WIN32_LEAN_AND_MEAN
28 #include <windows.h>
29 #include "config.h"
30
31 char app_name[] = "AudioCoding.com MPEG-4 General Audio player";
32 char INI_FILE[MAX_PATH];
33 int m_priority = 3;
34 int m_resolution = 0;
35 int m_show_errors = 1;
36 int m_use_for_aac = 1;
37 int m_downmix = 0;
38 int m_vbr_display = 0;
39 char titleformat[MAX_PATH];
40
41 void _r_s(char *name,char *data, int mlen)
42 {
43 char buf[10];
44 strcpy(buf,data);
45 GetPrivateProfileString(app_name,name,buf,data,mlen,INI_FILE);
46 }
47
+0
-42
plugins/in_mp4/config.h less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** Commercial non-GPL licensing of this software is possible.
22 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
23 **
24 ** $Id: config.h,v 1.6 2003/09/03 20:19:07 menno Exp $
25 **/
26
27 char app_name[];
28 char INI_FILE[];
29 int m_priority;
30 int m_resolution;
31 int m_show_errors;
32 int m_use_for_aac;
33 int m_downmix;
34 int m_vbr_display;
35 char titleformat[MAX_PATH];
36
37 #define RS(x) (_r_s(#x,x,sizeof(x)))
38 #define WS(x) (WritePrivateProfileString(app_name,#x,x,INI_FILE))
39
40 void _r_s(char *name,char *data, int mlen);
41
+0
-104
plugins/in_mp4/in2.h less more
0 #include "out.h"
1
2 // note: exported symbol is now winampGetInModule2.
3
4 #define IN_VER 0x100
5
6 typedef struct
7 {
8 int version; // module type (IN_VER)
9 char *description; // description of module, with version string
10
11 HWND hMainWindow; // winamp's main window (filled in by winamp)
12 HINSTANCE hDllInstance; // DLL instance handle (Also filled in by winamp)
13
14 char *FileExtensions; // "mp3\0Layer 3 MPEG\0mp2\0Layer 2 MPEG\0mpg\0Layer 1 MPEG\0"
15 // May be altered from Config, so the user can select what they want
16
17 int is_seekable; // is this stream seekable?
18 int UsesOutputPlug; // does this plug-in use the output plug-ins? (musn't ever change, ever :)
19
20 void (*Config)(HWND hwndParent); // configuration dialog
21 void (*About)(HWND hwndParent); // about dialog
22
23 void (*Init)(); // called at program init
24 void (*Quit)(); // called at program quit
25
26 void (*GetFileInfo)(char *file, char *title, int *length_in_ms); // if file == NULL, current playing is used
27 int (*InfoBox)(char *file, HWND hwndParent);
28
29 int (*IsOurFile)(char *fn); // called before extension checks, to allow detection of mms://, etc
30 // playback stuff
31 int (*Play)(char *fn); // return zero on success, -1 on file-not-found, some other value on other (stopping winamp) error
32 void (*Pause)(); // pause stream
33 void (*UnPause)(); // unpause stream
34 int (*IsPaused)(); // ispaused? return 1 if paused, 0 if not
35 void (*Stop)(); // stop (unload) stream
36
37 // time stuff
38 int (*GetLength)(); // get length in ms
39 int (*GetOutputTime)(); // returns current output time in ms. (usually returns outMod->GetOutputTime()
40 void (*SetOutputTime)(int time_in_ms); // seeks to point in stream (in ms). Usually you signal yoru thread to seek, which seeks and calls outMod->Flush()..
41
42 // volume stuff
43 void (*SetVolume)(int volume); // from 0 to 255.. usually just call outMod->SetVolume
44 void (*SetPan)(int pan); // from -127 to 127.. usually just call outMod->SetPan
45
46 // in-window builtin vis stuff
47
48 void (*SAVSAInit)(int maxlatency_in_ms, int srate); // call once in Play(). maxlatency_in_ms should be the value returned from outMod->Open()
49 // call after opening audio device with max latency in ms and samplerate
50 void (*SAVSADeInit)(); // call in Stop()
51
52
53 // simple vis supplying mode
54 void (*SAAddPCMData)(void *PCMData, int nch, int bps, int timestamp);
55 // sets the spec data directly from PCM data
56 // quick and easy way to get vis working :)
57 // needs at least 576 samples :)
58
59 // advanced vis supplying mode, only use if you're cool. Use SAAddPCMData for most stuff.
60 int (*SAGetMode)(); // gets csa (the current type (4=ws,2=osc,1=spec))
61 // use when calling SAAdd()
62 void (*SAAdd)(void *data, int timestamp, int csa); // sets the spec data, filled in by winamp
63
64
65 // vis stuff (plug-in)
66 // simple vis supplying mode
67 void (*VSAAddPCMData)(void *PCMData, int nch, int bps, int timestamp); // sets the vis data directly from PCM data
68 // quick and easy way to get vis working :)
69 // needs at least 576 samples :)
70
71 // advanced vis supplying mode, only use if you're cool. Use VSAAddPCMData for most stuff.
72 int (*VSAGetMode)(int *specNch, int *waveNch); // use to figure out what to give to VSAAdd
73 void (*VSAAdd)(void *data, int timestamp); // filled in by winamp, called by plug-in
74
75
76 // call this in Play() to tell the vis plug-ins the current output params.
77 void (*VSASetInfo)(int nch, int srate);
78
79
80 // dsp plug-in processing:
81 // (filled in by winamp, called by input plug)
82
83 // returns 1 if active (which means that the number of samples returned by dsp_dosamples
84 // could be greater than went in.. Use it to estimate if you'll have enough room in the
85 // output buffer
86 int (*dsp_isactive)();
87
88 // returns number of samples to output. This can be as much as twice numsamples.
89 // be sure to allocate enough buffer for samples, then.
90 int (*dsp_dosamples)(short int *samples, int numsamples, int bps, int nch, int srate);
91
92
93 // eq stuff
94 void (*EQSet)(int on, char data[10], int preamp); // 0-64 each, 31 is +0, 0 is +12, 63 is -12. Do nothing to ignore.
95
96 // info setting (filled in by winamp)
97 void (*SetInfo)(int bitrate, int srate, int stereo, int synched); // if -1, changes ignored? :)
98
99 Out_Module *outMod; // filled in by winamp, optionally used :)
100 } In_Module;
101
102
103
+0
-2878
plugins/in_mp4/in_mp4.c less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** Commercial non-GPL licensing of this software is possible.
22 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
23 **
24 ** $Id: in_mp4.c,v 1.56 2004/10/19 18:02:10 menno Exp $
25 **/
26
27 //#define DEBUG_OUTPUT
28
29 #define WIN32_LEAN_AND_MEAN
30 #include <windows.h>
31 #include <commctrl.h>
32 #include <commdlg.h>
33 #include <stdlib.h>
34 #include <stdio.h>
35 #include <io.h>
36 #include <math.h>
37 #include <neaacdec.h>
38 #define USE_TAGGING
39 #include <mp4ff.h>
40
41 #include "resource.h"
42 #include "in2.h"
43 #include "utils.h"
44 #include "config.h"
45 #include "aacinfo.h"
46
47 const char *long_ext_list = "MP4\0MPEG-4 Files (*.MP4)\0M4A\0MPEG-4 Files (*.M4A)\0AAC\0AAC Files (*.AAC)\0";
48 const char *short_ext_list = "MP4\0MPEG-4 Files (*.MP4)\0M4A\0MPEG-4 Files (*.M4A)\0";
49
50 static long priority_table[] = {
51 0,
52 THREAD_PRIORITY_HIGHEST,
53 THREAD_PRIORITY_ABOVE_NORMAL,
54 THREAD_PRIORITY_NORMAL,
55 THREAD_PRIORITY_BELOW_NORMAL,
56 THREAD_PRIORITY_LOWEST
57 };
58 static int res_id_table[] = {
59 IDC_16BITS,
60 IDC_24BITS,
61 IDC_32BITS,
62 0,
63 0,
64 /*IDC_16BITS_DITHERED*/ IDC_16BITS /* temp hack */
65 };
66 static int res_table[] = {
67 16,
68 24,
69 32,
70 0,
71 0,
72 16
73 };
74 static char info_fn[_MAX_PATH];
75
76 // post this to the main window at end of file (after playback has stopped)
77 #define WM_WA_AAC_EOF WM_USER+2
78
79 struct seek_list
80 {
81 struct seek_list *next;
82 __int64 offset;
83 };
84
85 typedef struct state
86 {
87 /* general stuff */
88 NeAACDecHandle hDecoder;
89 int samplerate;
90 unsigned char channels;
91 double decode_pos_ms; // current decoding position, in milliseconds
92 int paused; // are we paused?
93 int seek_needed; // if != -1, it is the point that the decode thread should seek to, in ms.
94 char filename[_MAX_PATH];
95 int filetype; /* 0: MP4; 1: AAC */
96 int last_frame;
97 __int64 last_offset;
98
99 /* MP4 stuff */
100 mp4ff_t *mp4file;
101 int mp4track;
102 long numSamples;
103 long sampleId;
104 mp4ff_callback_t mp4cb;
105 FILE *mp4File;
106
107 /* AAC stuff */
108 FILE *aacfile;
109 long m_aac_bytes_into_buffer;
110 long m_aac_bytes_consumed;
111 __int64 m_file_offset;
112 unsigned char *m_aac_buffer;
113 int m_at_eof;
114 double cur_pos_sec;
115 int m_header_type;
116 struct seek_list *m_head;
117 struct seek_list *m_tail;
118 unsigned long m_length;
119
120 /* for gapless decoding */
121 unsigned int useAacLength;
122 unsigned int framesize;
123 unsigned int initial;
124 unsigned long timescale;
125 } state;
126
127 static state mp4state;
128
129 static In_Module module; // the output module (declared near the bottom of this file)
130
131 static int killPlayThread;
132 static int PlayThreadAlive = 0; // 1=play thread still running
133 HANDLE play_thread_handle = INVALID_HANDLE_VALUE; // the handle to the decode thread
134
135 /* Function definitions */
136 void *decode_aac_frame(state *st, NeAACDecFrameInfo *frameInfo);
137 DWORD WINAPI MP4PlayThread(void *b); // the decode thread procedure
138 DWORD WINAPI AACPlayThread(void *b); // the decode thread procedure
139
140
141 uint32_t read_callback(void *user_data, void *buffer, uint32_t length)
142 {
143 return fread(buffer, 1, length, (FILE*)user_data);
144 }
145
146 uint32_t seek_callback(void *user_data, uint64_t position)
147 {
148 return fseek((FILE*)user_data, position, SEEK_SET);
149 }
150
151 uint32_t write_callback(void *user_data, void *buffer, uint32_t length)
152 {
153 return fwrite(buffer, 1, length, (FILE*)user_data);
154 }
155
156 uint32_t truncate_callback(void *user_data)
157 {
158 _chsize(fileno((FILE*)user_data), ftell((FILE*)user_data));
159 return 1;
160 }
161
162
163 int tag_add_field(mp4ff_metadata_t *tags, const char *item, const char *value, size_t v_len)
164 {
165 void *backup = (void *)tags->tags;
166
167 if (!item || (item && !*item) || !value) return 0;
168
169 tags->tags = (mp4ff_tag_t *)realloc(tags->tags, (tags->count+1) * sizeof(mp4ff_tag_t));
170 if (!tags->tags) {
171 if (backup) free(backup);
172 return 0;
173 }
174 else
175 {
176 size_t i_len = strlen(item);
177 if (v_len == 0) v_len = strlen(value);
178
179 tags->tags[tags->count].item = (char *)malloc(i_len+1);
180 tags->tags[tags->count].value = (char *)malloc(v_len+1);
181
182 if (!tags->tags[tags->count].item || !tags->tags[tags->count].value)
183 {
184 if (!tags->tags[tags->count].item) free (tags->tags[tags->count].item);
185 if (!tags->tags[tags->count].value) free (tags->tags[tags->count].value);
186 tags->tags[tags->count].item = NULL;
187 tags->tags[tags->count].value = NULL;
188 return 0;
189 }
190
191 memcpy(tags->tags[tags->count].item, item, i_len);
192 memcpy(tags->tags[tags->count].value, value, v_len);
193 tags->tags[tags->count].item[i_len] = '\0';
194 tags->tags[tags->count].value[v_len] = '\0';
195 // tags->tags[tags->count].len = v_len;
196
197 tags->count++;
198 return 1;
199 }
200 }
201
202 int tag_set_field(mp4ff_metadata_t *tags, const char *item, const char *value, size_t v_len)
203 {
204 unsigned int i;
205
206 if (!item || (item && !*item) || !value) return 0;
207
208 for (i = 0; i < tags->count; i++)
209 {
210 if (!stricmp(tags->tags[i].item, item))
211 {
212 void *backup = (void *)tags->tags[i].value;
213 if (v_len == 0) v_len = strlen(value);
214
215 tags->tags[i].value = (char *)realloc(tags->tags[i].value, v_len+1);
216 if (!tags->tags[i].value)
217 {
218 if (backup) free(backup);
219 return 0;
220 }
221
222 memcpy(tags->tags[i].value, value, v_len);
223 tags->tags[i].value[v_len] = '\0';
224 // tags->tags[i].len = v_len;
225
226 return 1;
227 }
228 }
229
230 return tag_add_field(tags, item, value, v_len);
231 }
232
233 int tag_delete(mp4ff_metadata_t *tags)
234 {
235 unsigned int i;
236
237 for (i = 0; i < tags->count; i++)
238 {
239 if (tags->tags[i].item) free(tags->tags[i].item);
240 if (tags->tags[i].value) free(tags->tags[i].value);
241 }
242
243 if (tags->tags) free(tags->tags);
244
245 tags->tags = NULL;
246 tags->count = 0;
247 }
248
249 int ReadMP4Tag(mp4ff_t *file, mp4ff_metadata_t *tags)
250 {
251 unsigned __int8 *pValue;
252 char *pName;
253 unsigned int i = 0;
254
255 do {
256 pName = 0;
257 pValue = 0;
258
259
260 if (mp4ff_meta_get_by_index(file, i, (char **)&pName, &pValue))
261 {
262 char *val = (char *)strdup(pValue);
263 if (!val) return 0;
264
265 if (pName[0] == '©')
266 {
267 if (memcmp(pName, "©nam", 4) == 0)
268 {
269 tag_add_field(tags, "title", val, strlen(val));
270 } else if (memcmp(pName, "©ART", 4) == 0) {
271 tag_add_field(tags, "artist", val, strlen(val));
272 } else if (memcmp(pName, "©wrt", 4) == 0) {
273 tag_add_field(tags, "writer", val, strlen(val));
274 } else if (memcmp(pName, "©alb", 4) == 0) {
275 tag_add_field(tags, "album", val, strlen(val));
276 } else if (memcmp(pName, "©day", 4) == 0) {
277 tag_add_field(tags, "date", val, strlen(val));
278 } else if (memcmp(pName, "©too", 4) == 0) {
279 tag_add_field(tags, "tool", val, strlen(val));
280 } else if (memcmp(pName, "©cmt", 4) == 0) {
281 tag_add_field(tags, "comment", val, strlen(val));
282 } else if (memcmp(pName, "©gen", 4) == 0) {
283 tag_add_field(tags, "genre", val, strlen(val));
284 } else {
285 tag_add_field(tags, pName, val, strlen(val));
286 }
287 } else if (memcmp(pName, "covr", 4) == 0) {
288 tag_add_field(tags, "cover", val, strlen(val));
289 } else if (memcmp(pName, "gnre", 4) == 0) {
290 tag_add_field(tags, "genre", val, strlen(val));
291 } else if (memcmp(pName, "trkn", 4) == 0) {
292 tag_add_field(tags, "tracknumber", val, strlen(val));
293 } else if (memcmp(pName, "disk", 4) == 0) {
294 tag_add_field(tags, "disc", val, strlen(val));
295 } else if (memcmp(pName, "cpil", 4) == 0) {
296 tag_add_field(tags, "compilation", val, strlen(val));
297 } else if (memcmp(pName, "tmpo", 4) == 0) {
298 tag_add_field(tags, "tempo", val, strlen(val));
299 } else if (memcmp(pName, "NDFL", 4) == 0) {
300 /* Removed */
301 } else {
302 tag_add_field(tags, pName, val, strlen(val));
303 }
304
305 free(val);
306 }
307
308 i++;
309 } while (pValue != NULL);
310
311 return 1;
312 }
313
314
315 #ifdef DEBUG_OUTPUT
316 void in_mp4_DebugOutput(char *message)
317 {
318 char s[1024];
319
320 sprintf(s, "in_mp4: %s", message);
321 OutputDebugString(s);
322 }
323 #endif
324
325 int file_length(FILE *f)
326 {
327 long end = 0;
328 long cur = ftell(f);
329 fseek(f, 0, SEEK_END);
330 end = ftell(f);
331 fseek(f, cur, SEEK_SET);
332
333 return end;
334 }
335
336 static void show_error(HWND hwnd, char *message, ...)
337 {
338 if (m_show_errors)
339 MessageBox(hwnd, message, "Error", MB_OK);
340 }
341
342 static void config_init()
343 {
344 char *p=INI_FILE;
345 GetModuleFileName(NULL,INI_FILE,_MAX_PATH);
346 while (*p) p++;
347 while (p >= INI_FILE && *p != '.') p--;
348 strcpy(p+1,"ini");
349 }
350
351 void config_read()
352 {
353 char priority[10];
354 char resolution[10];
355 char show_errors[10];
356 char use_for_aac[10];
357 char downmix[10];
358 char vbr_display[10];
359
360 config_init();
361
362 strcpy(show_errors, "1");
363 strcpy(priority, "3");
364 strcpy(resolution, "0");
365 strcpy(use_for_aac, "1");
366 strcpy(downmix, "0");
367 strcpy(vbr_display, "1");
368 strcpy(titleformat, "%7");
369
370 RS(priority);
371 RS(resolution);
372 RS(show_errors);
373 RS(use_for_aac);
374 RS(downmix);
375 RS(vbr_display);
376 RS(titleformat);
377
378 m_priority = atoi(priority);
379 m_resolution = atoi(resolution);
380 m_show_errors = atoi(show_errors);
381 m_use_for_aac = atoi(use_for_aac);
382 m_downmix = atoi(downmix);
383 m_vbr_display = atoi(vbr_display);
384 }
385
386 void config_write()
387 {
388 char priority[10];
389 char resolution[10];
390 char show_errors[10];
391 char use_for_aac[10];
392 char downmix[10];
393 char vbr_display[10];
394
395 itoa(m_priority, priority, 10);
396 itoa(m_resolution, resolution, 10);
397 itoa(m_show_errors, show_errors, 10);
398 itoa(m_use_for_aac, use_for_aac, 10);
399 itoa(m_downmix, downmix, 10);
400 itoa(m_vbr_display, vbr_display, 10);
401
402 WS(priority);
403 WS(resolution);
404 WS(show_errors);
405 WS(use_for_aac);
406 WS(downmix);
407 WS(vbr_display);
408 WS(titleformat);
409 }
410
411 void init()
412 {
413 config_read();
414 }
415
416 void quit()
417 {
418 }
419
420 /* Convert UNICODE to UTF-8
421 Return number of bytes written */
422 int unicodeToUtf8 ( const WCHAR* lpWideCharStr, char* lpMultiByteStr, int cwcChars )
423 {
424 const unsigned short* pwc = (unsigned short *)lpWideCharStr;
425 unsigned char* pmb = (unsigned char *)lpMultiByteStr;
426 const unsigned short* pwce;
427 size_t cBytes = 0;
428
429 if ( cwcChars >= 0 ) {
430 pwce = pwc + cwcChars;
431 } else {
432 pwce = (unsigned short *)((size_t)-1);
433 }
434
435 while ( pwc < pwce ) {
436 unsigned short wc = *pwc++;
437
438 if ( wc < 0x00000080 ) {
439 *pmb++ = (char)wc;
440 cBytes++;
441 } else
442 if ( wc < 0x00000800 ) {
443 *pmb++ = (char)(0xC0 | ((wc >> 6) & 0x1F));
444 cBytes++;
445 *pmb++ = (char)(0x80 | (wc & 0x3F));
446 cBytes++;
447 } else
448 if ( wc < 0x00010000 ) {
449 *pmb++ = (char)(0xE0 | ((wc >> 12) & 0x0F));
450 cBytes++;
451 *pmb++ = (char)(0x80 | ((wc >> 6) & 0x3F));
452 cBytes++;
453 *pmb++ = (char)(0x80 | (wc & 0x3F));
454 cBytes++;
455 }
456 if ( wc == L'\0' )
457 return cBytes;
458 }
459
460 return cBytes;
461 }
462
463 /* Convert UTF-8 coded string to UNICODE
464 Return number of characters converted */
465 int utf8ToUnicode ( const char* lpMultiByteStr, WCHAR* lpWideCharStr, int cmbChars )
466 {
467 const unsigned char* pmb = (unsigned char *)lpMultiByteStr;
468 unsigned short* pwc = (unsigned short *)lpWideCharStr;
469 const unsigned char* pmbe;
470 size_t cwChars = 0;
471
472 if ( cmbChars >= 0 ) {
473 pmbe = pmb + cmbChars;
474 } else {
475 pmbe = (unsigned char *)((size_t)-1);
476 }
477
478 while ( pmb < pmbe ) {
479 char mb = *pmb++;
480 unsigned int cc = 0;
481 unsigned int wc;
482
483 while ( (cc < 7) && (mb & (1 << (7 - cc)))) {
484 cc++;
485 }
486
487 if ( cc == 1 || cc > 6 ) // illegal character combination for UTF-8
488 continue;
489
490 if ( cc == 0 ) {
491 wc = mb;
492 } else {
493 wc = (mb & ((1 << (7 - cc)) - 1)) << ((cc - 1) * 6);
494 while ( --cc > 0 ) {
495 if ( pmb == pmbe ) // reached end of the buffer
496 return cwChars;
497 mb = *pmb++;
498 if ( ((mb >> 6) & 0x03) != 2 ) // not part of multibyte character
499 return cwChars;
500 wc |= (mb & 0x3F) << ((cc - 1) * 6);
501 }
502 }
503
504 if ( wc & 0xFFFF0000 )
505 wc = L'?';
506 *pwc++ = wc;
507 cwChars++;
508 if ( wc == L'\0' )
509 return cwChars;
510 }
511
512 return cwChars;
513 }
514
515 /* convert Windows ANSI to UTF-8 */
516 int ConvertANSIToUTF8 ( const char* ansi, char* utf8 )
517 {
518 WCHAR* wszValue; // Unicode value
519 size_t ansi_len;
520 size_t len;
521
522 *utf8 = '\0';
523 if ( ansi == NULL )
524 return 0;
525
526 ansi_len = strlen ( ansi );
527
528 if ( (wszValue = (WCHAR *)malloc ( (ansi_len + 1) * 2 )) == NULL )
529 return 0;
530
531 /* Convert ANSI value to Unicode */
532 if ( (len = MultiByteToWideChar ( CP_ACP, 0, ansi, ansi_len + 1, wszValue, (ansi_len + 1) * 2 )) == 0 ) {
533 free ( wszValue );
534 return 0;
535 }
536
537 /* Convert Unicode value to UTF-8 */
538 if ( (len = unicodeToUtf8 ( wszValue, utf8, -1 )) == 0 ) {
539 free ( wszValue );
540 return 0;
541 }
542
543 free ( wszValue );
544
545 return len-1;
546 }
547
548 /* convert UTF-8 to Windows ANSI */
549 int ConvertUTF8ToANSI ( const char* utf8, char* ansi )
550 {
551 WCHAR* wszValue; // Unicode value
552 size_t utf8_len;
553 size_t len;
554
555 *ansi = '\0';
556 if ( utf8 == NULL )
557 return 0;
558
559 utf8_len = strlen ( utf8 );
560
561 if ( (wszValue = (WCHAR *)malloc ( (utf8_len + 1) * 2 )) == NULL )
562 return 0;
563
564 /* Convert UTF-8 value to Unicode */
565 if ( (len = utf8ToUnicode ( utf8, wszValue, utf8_len + 1 )) == 0 ) {
566 free ( wszValue );
567 return 0;
568 }
569
570 /* Convert Unicode value to ANSI */
571 if ( (len = WideCharToMultiByte ( CP_ACP, 0, wszValue, -1, ansi, (utf8_len + 1) * 2, NULL, NULL )) == 0 ) {
572 free ( wszValue );
573 return 0;
574 }
575
576 free ( wszValue );
577
578 return len-1;
579 }
580
581 BOOL uSetDlgItemText(HWND hwnd, int id, const char *str)
582 {
583 char *temp;
584 size_t len;
585 int r;
586
587 if (!str) return FALSE;
588 if (!*str) return TRUE;
589 len = strlen(str);
590 temp = malloc(len+1);
591 if (!temp) return FALSE;
592 r = ConvertUTF8ToANSI(str, temp);
593 if (r > 0)
594 SetDlgItemText(hwnd, id, temp);
595 free(temp);
596
597 return r>0 ? TRUE : FALSE;
598 }
599
600 UINT uGetDlgItemText(HWND hwnd, int id, char *str, int max)
601 {
602 char *temp, *utf8;
603 int len;
604 HWND w;
605
606 if (!str || !max) return 0;
607 *str = '\0';
608 w = GetDlgItem(hwnd, id);
609 len = GetWindowTextLength(w);
610 temp = malloc(len+1);
611 if (!temp) return 0;
612 utf8 = malloc((len+1)*4);
613 if (!utf8)
614 {
615 free(temp);
616 return 0;
617 }
618
619 len = GetWindowText(w, temp, len+1);
620 if (len > 0)
621 {
622 len = ConvertANSIToUTF8(temp, utf8);
623 if (len > max-1)
624 {
625 len = max-1;
626 utf8[max] = '\0';
627 }
628 memcpy(str, utf8, len+1);
629 }
630
631 free(temp);
632 free(utf8);
633
634 return len;
635 }
636
637 static void mp4fileinfo(mp4ff_t *mp4, char *info, size_t len)
638 {
639 char *ot[6] = { "NULL", "MAIN AAC", "LC AAC", "SSR AAC", "LTP AAC", "HE AAC" };
640 long samples;
641 float f = 1024.0;
642 float seconds;
643 int track;
644
645 NeAACDecHandle hDecoder;
646 NeAACDecFrameInfo frameInfo;
647 mp4AudioSpecificConfig mp4ASC = {0};
648 unsigned char *buffer = NULL;
649 int buffer_size = 0;
650 unsigned long sr = 0;
651 unsigned char ch = 0;
652
653 if ((track = GetAACTrack(mp4)) < 0)
654 {
655 info[0] = '\0';
656 return;
657 }
658
659 hDecoder = NeAACDecOpen();
660
661 samples = mp4ff_num_samples(mp4, track);
662
663 mp4ff_get_decoder_config(mp4, track, &buffer, &buffer_size);
664 if (buffer)
665 {
666 if (NeAACDecAudioSpecificConfig(buffer, buffer_size, &mp4ASC) >= 0)
667 {
668 if (mp4ASC.frameLengthFlag == 1) f = 960.0;
669 if (mp4ASC.sbr_present_flag == 1) f *= 2;
670 }
671
672 if(NeAACDecInit2(hDecoder, buffer, buffer_size, &sr, &ch) < 0)
673 {
674 /* If some error initializing occured, skip the file */
675 free(buffer);
676 return;
677 }
678
679 free(buffer);
680 buffer = NULL;
681 }
682
683 if (mp4ff_read_sample(mp4, track, 0, &buffer, &buffer_size) == 0)
684 {
685 return;
686 }
687 NeAACDecDecode(hDecoder, &frameInfo, buffer, buffer_size);
688
689 if (buffer) free(buffer);
690
691 seconds = (float)samples*(float)(f-1.0)/(float)mp4ASC.samplingFrequency;
692
693 wsprintf(info, "MPEG-4 %s, %d.%d secs, %d ch, %d Hz\nSBR: %s\nParametric stereo: %s",
694 ot[(mp4ASC.objectTypeIndex > 5)?0:mp4ASC.objectTypeIndex],
695 (int)(seconds),
696 (int)(seconds*1000.0 + 0.5) % 1000,
697 mp4ASC.channelsConfiguration,
698 mp4ASC.samplingFrequency,
699 /* SBR: 0: off, 1: on; upsample, 2: on; downsampled, 3: off; upsampled */
700 (frameInfo.sbr == 0) ? "off" : ((frameInfo.sbr == 1) ? "on, normal" : ((frameInfo.sbr == 2) ? "on, downsampled" : "off, upsampled")),
701 (frameInfo.ps == 0) ? "no" : "yes");
702
703 NeAACDecClose(hDecoder);
704 }
705
706 BOOL CALLBACK mp4_info_dialog_proc(HWND hwndDlg, UINT message,
707 WPARAM wParam, LPARAM lParam)
708 {
709 char file_info[1024];
710 mp4ff_t *file;
711 FILE *mp4File;
712 mp4ff_callback_t mp4cb = {0};
713 char *pVal;
714 mp4ff_metadata_t tags;
715 char dummy1[1024];
716 char temp[1024];
717 int dummy, dummy2, dummy3;
718 tags.count = 0;
719 tags.tags = NULL;
720
721 #ifdef DEBUG_OUTPUT
722 in_mp4_DebugOutput("mp4_info_dialog_proc");
723 #endif
724
725 switch (message) {
726 case WM_INITDIALOG:
727 EnableWindow(GetDlgItem(hwndDlg,IDC_CONVERT), FALSE);
728 ShowWindow(GetDlgItem(hwndDlg,IDC_CONVERT), SW_HIDE);
729 EnableWindow(GetDlgItem(hwndDlg,IDC_CONVERT1), FALSE);
730 ShowWindow(GetDlgItem(hwndDlg,IDC_CONVERT1), SW_HIDE);
731 EnableWindow(GetDlgItem(hwndDlg,IDC_CONVERT2), FALSE);
732 ShowWindow(GetDlgItem(hwndDlg,IDC_CONVERT2), SW_HIDE);
733
734 mp4File = fopen(info_fn, "rb");
735 mp4cb.read = read_callback;
736 mp4cb.seek = seek_callback;
737 mp4cb.user_data = mp4File;
738
739
740 file = mp4ff_open_read(&mp4cb);
741 if (file == NULL)
742 return FALSE;
743
744 mp4fileinfo(file, file_info, 1024);
745 SetDlgItemText(hwndDlg, IDC_INFOTEXT, file_info);
746
747 /* get Metadata */
748
749 pVal = NULL;
750 if (mp4ff_meta_get_title(file, &pVal))
751 uSetDlgItemText(hwndDlg,IDC_METANAME, pVal);
752
753 pVal = NULL;
754 if (mp4ff_meta_get_artist(file, &pVal))
755 uSetDlgItemText(hwndDlg,IDC_METAARTIST, pVal);
756
757 pVal = NULL;
758 if (mp4ff_meta_get_writer(file, &pVal))
759 uSetDlgItemText(hwndDlg,IDC_METAWRITER, pVal);
760
761 pVal = NULL;
762 if (mp4ff_meta_get_comment(file, &pVal))
763 uSetDlgItemText(hwndDlg,IDC_METACOMMENTS, pVal);
764
765 pVal = NULL;
766 if (mp4ff_meta_get_album(file, &pVal))
767 uSetDlgItemText(hwndDlg,IDC_METAALBUM, pVal);
768
769 pVal = NULL;
770 if (mp4ff_meta_get_genre(file, &pVal))
771 uSetDlgItemText(hwndDlg,IDC_METAGENRE, pVal);
772
773 pVal = NULL;
774 if (mp4ff_meta_get_track(file, &pVal))
775 {
776 SetDlgItemText(hwndDlg,IDC_METATRACK1, pVal);
777
778 //pVal = NULL;
779 //mp4ff_meta_get_totaltracks(file, &pVal);
780 //SetDlgItemText(hwndDlg, IDC_METATRACK2, pVal);
781 }
782
783 pVal = NULL;
784 if (mp4ff_meta_get_disc(file, &pVal))
785 {
786 SetDlgItemText(hwndDlg,IDC_METADISK1, pVal);
787
788 //pVal = NULL;
789 //mp4ff_meta_get_totaldiscs(file, &pVal);
790 //SetDlgItemText(hwndDlg,IDC_METADISK2, pVal);
791 }
792
793 pVal = NULL;
794 if (mp4ff_meta_get_date(file, &pVal))
795 uSetDlgItemText(hwndDlg,IDC_METAYEAR, pVal);
796
797 #if 0
798 /* WERKT NIET */
799 #endif
800 pVal = NULL;
801 if (mp4ff_meta_get_compilation(file, &pVal))
802 {
803 if (strcmp(pVal, "1") == 0)
804 {
805 SendMessage(GetDlgItem(hwndDlg, IDC_METACOMPILATION), BM_SETCHECK, BST_CHECKED, 0);
806 }
807 }
808
809 /* ! Metadata */
810
811 mp4ff_close(file);
812 fclose(mp4File);
813
814 return TRUE;
815
816 case WM_COMMAND:
817 switch (LOWORD(wParam)) {
818 case IDCANCEL:
819 EndDialog(hwndDlg, wParam);
820 return TRUE;
821 case IDOK:
822
823 /* trying to edit currently playing file */
824
825 if (!stricmp(info_fn, mp4state.filename))
826 {
827 MessageBox(module.hMainWindow, "Please stop playback before editing tags", "in_mp4", MB_ICONINFORMATION|MB_OK);
828 return TRUE;
829 }
830
831 /* save Metadata changes */
832
833 tag_delete(&tags);
834
835 mp4File = fopen(info_fn, "rb");
836 mp4cb.read = read_callback;
837 mp4cb.seek = seek_callback;
838 mp4cb.write = write_callback;
839 mp4cb.truncate = truncate_callback;
840 mp4cb.user_data = mp4File;
841
842
843 file = mp4ff_open_read(&mp4cb);
844 if (file != NULL)
845 {
846 ReadMP4Tag(file, &tags);
847 mp4ff_close(file);
848 fclose(mp4File);
849 }
850
851 mp4File = fopen(info_fn, "rb+");
852 mp4cb.read = read_callback;
853 mp4cb.seek = seek_callback;
854 mp4cb.write = write_callback;
855 mp4cb.truncate = truncate_callback;
856 mp4cb.user_data = mp4File;
857
858
859 uGetDlgItemText(hwndDlg, IDC_METANAME, dummy1, 1024);
860 tag_set_field(&tags, "title", dummy1, strlen(dummy1));
861
862 uGetDlgItemText(hwndDlg, IDC_METAWRITER, dummy1, 1024);
863 tag_set_field(&tags, "writer", dummy1, strlen(dummy1));
864
865 uGetDlgItemText(hwndDlg, IDC_METAARTIST, dummy1, 1024);
866 tag_set_field(&tags, "artist", dummy1, strlen(dummy1));
867
868 uGetDlgItemText(hwndDlg, IDC_METAALBUM, dummy1, 1024);
869 tag_set_field(&tags, "album", dummy1, strlen(dummy1));
870
871 uGetDlgItemText(hwndDlg, IDC_METACOMMENTS, dummy1, 1024);
872 tag_set_field(&tags, "comment", dummy1, strlen(dummy1));
873
874 uGetDlgItemText(hwndDlg, IDC_METAGENRE, dummy1, 1024);
875 tag_set_field(&tags, "genre", dummy1, strlen(dummy1));
876
877 uGetDlgItemText(hwndDlg, IDC_METAYEAR, dummy1, 1024);
878 tag_set_field(&tags, "year", dummy1, strlen(dummy1));
879
880 GetDlgItemText(hwndDlg, IDC_METATRACK1, dummy1, 1024);
881 dummy = atoi(dummy1);
882 //GetDlgItemText(hwndDlg, IDC_METATRACK2, dummy1, 1024);
883 //dummy2 = atoi(dummy1);
884 //wsprintf(temp, "%d/%d", dummy, dummy2);
885 wsprintf(temp, "%d", dummy);
886 tag_set_field(&tags, "track", temp, strlen(dummy1));
887
888 GetDlgItemText(hwndDlg, IDC_METADISK1, dummy1, 1024);
889 dummy = atoi(dummy1);
890 //GetDlgItemText(hwndDlg, IDC_METADISK2, dummy1, 1024);
891 //dummy2 = atoi(dummy1);
892 //wsprintf(temp, "%d/%d", dummy, dummy2);
893 wsprintf(temp, "%d", dummy);
894 tag_set_field(&tags, "disc", temp, strlen(dummy1));
895
896 dummy3 = SendMessage(GetDlgItem(hwndDlg, IDC_METACOMPILATION), BM_GETCHECK, 0, 0);
897 tag_set_field(&tags, "compilation", (dummy3 ? "1" : "0"), 1);
898
899 mp4ff_meta_update(&mp4cb, &tags);
900
901 fclose(mp4File);
902
903 /* ! */
904
905 EndDialog(hwndDlg, wParam);
906 return TRUE;
907 }
908 }
909 return FALSE;
910 }
911
912 /* returns the name of the object type */
913 char *get_ot_string(int ot)
914 {
915 switch (ot)
916 {
917 case 0:
918 return "Main";
919 case 1:
920 return "LC";
921 case 2:
922 return "SSR";
923 case 3:
924 return "LTP";
925 }
926 return NULL;
927 }
928
929 BOOL CALLBACK aac_info_dialog_proc(HWND hwndDlg, UINT message,
930 WPARAM wParam, LPARAM lParam)
931 {
932 faadAACInfo aacInfo;
933 char *info_text, *header_string;
934
935 #ifdef DEBUG_OUTPUT
936 in_mp4_DebugOutput("aac_info_dialog_proc");
937 #endif
938
939 switch (message) {
940 case WM_INITDIALOG:
941 EnableWindow(GetDlgItem(hwndDlg,IDC_USERDATA), FALSE) ;
942 ShowWindow(GetDlgItem(hwndDlg,IDC_USERDATA), SW_HIDE);
943
944 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC1), SW_HIDE);
945 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC2), SW_HIDE);
946 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC3), SW_HIDE);
947 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC4), SW_HIDE);
948 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC5), SW_HIDE);
949 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC6), SW_HIDE);
950 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC7), SW_HIDE);
951 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC8), SW_HIDE);
952 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC9), SW_HIDE);
953 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC10), SW_HIDE);
954 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC11), SW_HIDE);
955 ShowWindow(GetDlgItem(hwndDlg,IDC_STATIC12), SW_HIDE);
956
957 ShowWindow(GetDlgItem(hwndDlg,IDC_METANAME), SW_HIDE);
958 ShowWindow(GetDlgItem(hwndDlg,IDC_METAARTIST), SW_HIDE);
959 ShowWindow(GetDlgItem(hwndDlg,IDC_METAWRITER), SW_HIDE);
960 ShowWindow(GetDlgItem(hwndDlg,IDC_METACOMMENTS), SW_HIDE);
961 ShowWindow(GetDlgItem(hwndDlg,IDC_METAALBUM), SW_HIDE);
962 ShowWindow(GetDlgItem(hwndDlg,IDC_METAGENRE), SW_HIDE);
963 ShowWindow(GetDlgItem(hwndDlg,IDC_METATRACK1), SW_HIDE);
964 //ShowWindow(GetDlgItem(hwndDlg,IDC_METATRACK2), SW_HIDE);
965 ShowWindow(GetDlgItem(hwndDlg,IDC_METADISK1), SW_HIDE);
966 //ShowWindow(GetDlgItem(hwndDlg,IDC_METADISK2), SW_HIDE);
967 ShowWindow(GetDlgItem(hwndDlg,IDC_METAYEAR), SW_HIDE);
968 ShowWindow(GetDlgItem(hwndDlg,IDC_METACOMPILATION), SW_HIDE);
969
970 info_text = malloc(1024*sizeof(char));
971
972 get_AAC_format(info_fn, &aacInfo);
973
974 switch (aacInfo.headertype)
975 {
976 case 0: /* RAW */
977 header_string = " RAW";
978 break;
979 case 1: /* ADIF */
980 header_string = " ADIF";
981 break;
982 case 2: /* ADTS */
983 header_string = " ADTS";
984 break;
985 }
986
987 sprintf(info_text, "%s AAC %s%s, %d sec, %d kbps, %d Hz",
988 (aacInfo.version==2)?"MPEG-2":"MPEG-4", get_ot_string(aacInfo.object_type),
989 header_string,
990 (int)((float)aacInfo.length/1000.0), (int)((float)aacInfo.bitrate/1000.0+0.5),
991 aacInfo.sampling_rate);
992
993 SetDlgItemText(hwndDlg, IDC_INFOTEXT, info_text);
994
995 free(info_text);
996
997 return TRUE;
998
999 case WM_COMMAND:
1000 switch (LOWORD(wParam))
1001 {
1002 case IDCANCEL:
1003 case IDOK:
1004 EndDialog(hwndDlg, wParam);
1005 return TRUE;
1006 }
1007 }
1008 return FALSE;
1009 }
1010
1011 int infoDlg(char *fn, HWND hwndParent)
1012 {
1013 if(!stricmp(fn + strlen(fn) - 3,"AAC"))
1014 {
1015 lstrcpy(info_fn, fn);
1016
1017 DialogBox(module.hDllInstance, MAKEINTRESOURCE(IDD_INFO),
1018 hwndParent, aac_info_dialog_proc);
1019 } else {
1020 lstrcpy(info_fn, fn);
1021
1022 DialogBox(module.hDllInstance, MAKEINTRESOURCE(IDD_INFO),
1023 hwndParent, mp4_info_dialog_proc);
1024 }
1025
1026 return 0;
1027 }
1028
1029 /* Get the title from the file */
1030 void ConstructTitle(mp4ff_t *file, char *filename, char *title, char *format)
1031 {
1032 char temp[4096];
1033 int some_info = 0;
1034 char *in = format;
1035 char *out = temp;//title;
1036 char *bound = out + sizeof(temp) - 256; //out + (MAX_PATH - 10 - 1);
1037 char *pVal, dummy1[1024];
1038 short dummy, dummy2;
1039
1040 while (*in && out < bound)
1041 {
1042 switch (*in)
1043 {
1044 case '%':
1045 ++in;
1046 break;
1047
1048 default:
1049 *out++ = *in++;
1050 continue;
1051 }
1052
1053 /* handle % escape sequence */
1054 switch (*in++)
1055 {
1056 case '0':
1057 pVal = NULL;
1058 if (mp4ff_meta_get_track(file, &pVal))
1059 {
1060 out += wsprintf(out, "%s", pVal);
1061 some_info = 1;
1062 }
1063 break;
1064
1065 case '1':
1066 pVal = NULL;
1067 if (mp4ff_meta_get_artist(file, &pVal))
1068 {
1069 out += wsprintf(out, "%s", pVal);
1070 some_info = 1;
1071 }
1072 break;
1073
1074 case '2':
1075 pVal = NULL;
1076 if (mp4ff_meta_get_title(file, &pVal))
1077 {
1078 out += wsprintf(out, "%s", pVal);
1079 some_info = 1;
1080 }
1081 break;
1082
1083 case '3':
1084 pVal = NULL;
1085 if (mp4ff_meta_get_album(file, &pVal))
1086 {
1087 out += wsprintf(out, "%s", pVal);
1088 some_info = 1;
1089 }
1090 break;
1091
1092 case '4':
1093 pVal = NULL;
1094 if (mp4ff_meta_get_date(file, &pVal))
1095 {
1096 out += wsprintf(out, "%s", pVal);
1097 some_info = 1;
1098 }
1099 break;
1100
1101 case '5':
1102 pVal = NULL;
1103 if (mp4ff_meta_get_comment(file, &pVal))
1104 {
1105 out += wsprintf(out, "%s", pVal);
1106 some_info = 1;
1107 }
1108 break;
1109
1110 case '6':
1111 pVal = NULL;
1112 if (mp4ff_meta_get_genre(file, &pVal))
1113 {
1114 out += wsprintf(out, "%s", pVal);
1115 some_info = 1;
1116 }
1117 break;
1118
1119 case '7':
1120 {
1121 const char *p=strrchr(filename,'\\');
1122 if (!p) p=filename; else p++;
1123 out += ConvertANSIToUTF8(p, out);
1124 some_info = 1;
1125 break;
1126 }
1127
1128 default:
1129 break;
1130 }
1131 }
1132
1133 *out = '\0';
1134
1135 if (!some_info)
1136 {
1137 char *p=filename+lstrlen(filename);
1138 while (*p != '\\' && p >= filename) p--;
1139 lstrcpy(title,++p);
1140 }
1141 else
1142 {
1143 int len = ConvertUTF8ToANSI(temp, dummy1);
1144 if (len > (MAX_PATH - 10 - 1)) len = (MAX_PATH - 10 - 1);
1145 memcpy(title, dummy1, len);
1146 title[len] = '\0';
1147 }
1148 }
1149
1150 BOOL CALLBACK config_dialog_proc(HWND hwndDlg, UINT message,
1151 WPARAM wParam, LPARAM lParam)
1152 {
1153 int i;
1154
1155 switch (message) {
1156 case WM_INITDIALOG:
1157 SendMessage(GetDlgItem(hwndDlg, IDC_PRIORITY), TBM_SETRANGE, TRUE, MAKELONG(1,5));
1158 SendMessage(GetDlgItem(hwndDlg, IDC_PRIORITY), TBM_SETPOS, TRUE, m_priority);
1159 SendMessage(GetDlgItem(hwndDlg, res_id_table[m_resolution]), BM_SETCHECK, BST_CHECKED, 0);
1160 if (m_show_errors)
1161 SendMessage(GetDlgItem(hwndDlg, IDC_ERROR), BM_SETCHECK, BST_CHECKED, 0);
1162 if (m_use_for_aac)
1163 SendMessage(GetDlgItem(hwndDlg, IDC_USEFORAAC), BM_SETCHECK, BST_CHECKED, 0);
1164 if (m_downmix)
1165 SendMessage(GetDlgItem(hwndDlg, IDC_DOWNMIX), BM_SETCHECK, BST_CHECKED, 0);
1166 if (m_vbr_display)
1167 SendMessage(GetDlgItem(hwndDlg, IDC_VBR), BM_SETCHECK, BST_CHECKED, 0);
1168 SetDlgItemText(hwndDlg, IDC_TITLEFORMAT, titleformat);
1169 return TRUE;
1170
1171 case WM_COMMAND:
1172 switch (LOWORD(wParam)) {
1173 case IDCANCEL:
1174 EndDialog(hwndDlg, wParam);
1175 return TRUE;
1176 case IDOK:
1177 m_show_errors = SendMessage(GetDlgItem(hwndDlg, IDC_ERROR), BM_GETCHECK, 0, 0);
1178 m_use_for_aac = SendMessage(GetDlgItem(hwndDlg, IDC_USEFORAAC), BM_GETCHECK, 0, 0);
1179 m_downmix = SendMessage(GetDlgItem(hwndDlg, IDC_DOWNMIX), BM_GETCHECK, 0, 0);
1180 m_vbr_display = SendMessage(GetDlgItem(hwndDlg, IDC_VBR), BM_GETCHECK, 0, 0);
1181 GetDlgItemText(hwndDlg, IDC_TITLEFORMAT, titleformat, MAX_PATH);
1182
1183 m_priority = SendMessage(GetDlgItem(hwndDlg, IDC_PRIORITY), TBM_GETPOS, 0, 0);
1184 for (i = 0; i < 6; i++)
1185 {
1186 if (SendMessage(GetDlgItem(hwndDlg, res_id_table[i]), BM_GETCHECK, 0, 0))
1187 {
1188 m_resolution = i;
1189 break;
1190 }
1191 }
1192
1193 /* save config */
1194 config_write();
1195
1196 if (!m_use_for_aac)
1197 {
1198 module.FileExtensions = short_ext_list;
1199 } else {
1200 module.FileExtensions = long_ext_list;
1201 }
1202
1203 EndDialog(hwndDlg, wParam);
1204 return TRUE;
1205 }
1206 }
1207 return FALSE;
1208 }
1209
1210 void config(HWND hwndParent)
1211 {
1212 DialogBox(module.hDllInstance, MAKEINTRESOURCE(IDD_CONFIG),
1213 hwndParent, config_dialog_proc);
1214
1215 return;
1216 }
1217
1218 void about(HWND hwndParent)
1219 {
1220 MessageBox(hwndParent,
1221 "AudioCoding.com MPEG-4 AAC player " FAAD2_VERSION " compiled on " __DATE__ ".\n"
1222 "Visit the website for more info.\n"
1223 "Copyright 2002-2004 AudioCoding.com",
1224 "About",
1225 MB_OK);
1226 }
1227
1228 int isourfile(char *fn)
1229 {
1230 if (!stricmp(fn + strlen(fn) - 3,"MP4") || !stricmp(fn + strlen(fn) - 3,"M4A"))
1231 {
1232 return 1;
1233 } else if (m_use_for_aac) {
1234 if (!stricmp(fn + strlen(fn) - 3,"AAC"))
1235 {
1236 return 1;
1237 }
1238 }
1239
1240 return 0;
1241 }
1242
1243 int fill_buffer(state *st)
1244 {
1245 int bread;
1246
1247 if (st->m_aac_bytes_consumed > 0)
1248 {
1249 if (st->m_aac_bytes_into_buffer)
1250 {
1251 memmove((void*)st->m_aac_buffer, (void*)(st->m_aac_buffer + st->m_aac_bytes_consumed),
1252 st->m_aac_bytes_into_buffer*sizeof(unsigned char));
1253 }
1254
1255 if (!st->m_at_eof)
1256 {
1257 bread = fread((void*)(st->m_aac_buffer + st->m_aac_bytes_into_buffer),
1258 1, st->m_aac_bytes_consumed, st->aacfile);
1259
1260 if (bread != st->m_aac_bytes_consumed)
1261 st->m_at_eof = 1;
1262
1263 st->m_aac_bytes_into_buffer += bread;
1264 }
1265
1266 st->m_aac_bytes_consumed = 0;
1267
1268 if (st->m_aac_bytes_into_buffer > 3)
1269 {
1270 if (memcmp(st->m_aac_buffer, "TAG", 3) == 0)
1271 st->m_aac_bytes_into_buffer = 0;
1272 }
1273 if (st->m_aac_bytes_into_buffer > 11)
1274 {
1275 if (memcmp(st->m_aac_buffer, "LYRICSBEGIN", 11) == 0)
1276 st->m_aac_bytes_into_buffer = 0;
1277 }
1278 if (st->m_aac_bytes_into_buffer > 8)
1279 {
1280 if (memcmp(st->m_aac_buffer, "APETAGEX", 8) == 0)
1281 st->m_aac_bytes_into_buffer = 0;
1282 }
1283 }
1284
1285 return 1;
1286 }
1287
1288 void advance_buffer(state *st, int bytes)
1289 {
1290 st->m_file_offset += bytes;
1291 st->m_aac_bytes_consumed = bytes;
1292 st->m_aac_bytes_into_buffer -= bytes;
1293 }
1294
1295 int adts_parse(state *st, __int64 *bitrate, double *length)
1296 {
1297 static int sample_rates[] = {96000,88200,64000,48000,44100,32000,24000,22050,16000,12000,11025,8000};
1298 int frames, frame_length;
1299 int t_framelength = 0;
1300 int samplerate;
1301 double frames_per_sec, bytes_per_frame;
1302
1303 /* Read all frames to ensure correct time and bitrate */
1304 for (frames = 0; /* */; frames++)
1305 {
1306 fill_buffer(st);
1307
1308 if (st->m_aac_bytes_into_buffer > 7)
1309 {
1310 /* check syncword */
1311 if (!((st->m_aac_buffer[0] == 0xFF)&&((st->m_aac_buffer[1] & 0xF6) == 0xF0)))
1312 break;
1313
1314 st->m_tail->offset = st->m_file_offset;
1315 st->m_tail->next = (struct seek_list*)malloc(sizeof(struct seek_list));
1316 st->m_tail = st->m_tail->next;
1317 st->m_tail->next = NULL;
1318
1319 if (frames == 0)
1320 samplerate = sample_rates[(st->m_aac_buffer[2]&0x3c)>>2];
1321
1322 frame_length = ((((unsigned int)st->m_aac_buffer[3] & 0x3)) << 11)
1323 | (((unsigned int)st->m_aac_buffer[4]) << 3) | (st->m_aac_buffer[5] >> 5);
1324
1325 t_framelength += frame_length;
1326
1327 if (frame_length > st->m_aac_bytes_into_buffer)
1328 break;
1329
1330 advance_buffer(st, frame_length);
1331 } else {
1332 break;
1333 }
1334 }
1335
1336 frames_per_sec = (double)samplerate/1024.0;
1337 if (frames != 0)
1338 bytes_per_frame = (double)t_framelength/(double)(frames*1000);
1339 else
1340 bytes_per_frame = 0;
1341 *bitrate = (__int64)(8. * bytes_per_frame * frames_per_sec + 0.5);
1342 if (frames_per_sec != 0)
1343 *length = (double)frames/frames_per_sec;
1344 else
1345 *length = 1;
1346
1347 return 1;
1348 }
1349
1350 int skip_id3v2_tag()
1351 {
1352 unsigned char buf[10];
1353 int bread, tagsize = 0;
1354
1355 bread = fread(buf, 1, 10, mp4state.aacfile);
1356 if (bread != 10) return -1;
1357
1358 if (!memcmp(buf, "ID3", 3))
1359 {
1360 /* high bit is not used */
1361 tagsize = (buf[6] << 21) | (buf[7] << 14) | (buf[8] << 7) | (buf[9] << 0);
1362
1363 tagsize += 10;
1364 fseek(mp4state.aacfile, tagsize, SEEK_SET);
1365 } else {
1366 fseek(mp4state.aacfile, 0, SEEK_SET);
1367 }
1368
1369 return tagsize;
1370 }
1371
1372 int play(char *fn)
1373 {
1374 int maxlatency;
1375 int thread_id;
1376 int avg_bitrate, br, sr;
1377 unsigned char *buffer;
1378 int buffer_size;
1379 NeAACDecConfigurationPtr config;
1380 unsigned char header[8];
1381 FILE *hMP4File;
1382
1383 #ifdef DEBUG_OUTPUT
1384 in_mp4_DebugOutput("play");
1385 #endif
1386
1387 memset(&mp4state, 0, sizeof(state));
1388
1389 lstrcpy(mp4state.filename, fn);
1390
1391 hMP4File = fopen(mp4state.filename, "rb");
1392 if (!hMP4File)
1393 {
1394 return -1;
1395 }
1396 fread(header, 1, 8, hMP4File);
1397 fclose(hMP4File);
1398 mp4state.filetype = 1;
1399 if (header[4] == 'f' && header[5] == 't' && header[6] == 'y' && header[7] == 'p')
1400 mp4state.filetype = 0;
1401
1402 if (mp4state.filetype)
1403 {
1404 int tagsize = 0, tmp = 0, init;
1405 int bread = 0;
1406 double length = 0.;
1407 __int64 bitrate = 128;
1408 // NeAACDecFrameInfo frameInfo;
1409
1410 module.is_seekable = 1;
1411
1412 if (!(mp4state.aacfile = fopen(mp4state.filename, "rb")))
1413 {
1414 // error
1415 return -1;
1416 }
1417
1418 tagsize = skip_id3v2_tag();
1419 if (tagsize<0) return 0;
1420
1421 if (!(mp4state.m_aac_buffer = (unsigned char*)malloc(768*6)))
1422 {
1423 show_error(module.hMainWindow, "Memory allocation error.");
1424 return -1;
1425 }
1426
1427 for (init=0; init<2; init++)
1428 {
1429 mp4state.hDecoder = NeAACDecOpen();
1430 if (!mp4state.hDecoder)
1431 {
1432 show_error(module.hMainWindow, "Unable to open decoder library.");
1433 return -1;
1434 }
1435
1436 config = NeAACDecGetCurrentConfiguration(mp4state.hDecoder);
1437 config->outputFormat = m_resolution + 1;
1438 config->downMatrix = m_downmix;
1439 NeAACDecSetConfiguration(mp4state.hDecoder, config);
1440
1441 memset(mp4state.m_aac_buffer, 0, 768*6);
1442 bread = fread(mp4state.m_aac_buffer, 1, 768*6, mp4state.aacfile);
1443 mp4state.m_aac_bytes_into_buffer = bread;
1444 mp4state.m_aac_bytes_consumed = 0;
1445 mp4state.m_file_offset = 0;
1446 mp4state.m_at_eof = (bread != 768*6) ? 1 : 0;
1447
1448 if (init==0)
1449 {
1450 NeAACDecFrameInfo frameInfo;
1451
1452 fill_buffer(&mp4state);
1453
1454 if ((mp4state.m_aac_bytes_consumed = NeAACDecInit(mp4state.hDecoder,
1455 mp4state.m_aac_buffer, mp4state.m_aac_bytes_into_buffer,
1456 &mp4state.samplerate, &mp4state.channels)) < 0)
1457 {
1458 show_error(module.hMainWindow, "Can't initialize decoder library.");
1459 return -1;
1460 }
1461 advance_buffer(&mp4state, mp4state.m_aac_bytes_consumed);
1462
1463 do {
1464 memset(&frameInfo, 0, sizeof(NeAACDecFrameInfo));
1465 fill_buffer(&mp4state);
1466 NeAACDecDecode(mp4state.hDecoder, &frameInfo, mp4state.m_aac_buffer, mp4state.m_aac_bytes_into_buffer);
1467 } while (!frameInfo.samples && !frameInfo.error);
1468
1469 if (frameInfo.error)
1470 {
1471 show_error(module.hMainWindow, NeAACDecGetErrorMessage(frameInfo.error));
1472 return -1;
1473 }
1474
1475 mp4state.channels = frameInfo.channels;
1476 mp4state.samplerate = frameInfo.samplerate;
1477 mp4state.framesize = (frameInfo.channels != 0) ? frameInfo.samples/frameInfo.channels : 0;
1478 /*
1479 sbr = frameInfo.sbr;
1480 profile = frameInfo.object_type;
1481 header_type = frameInfo.header_type;
1482 */
1483
1484 NeAACDecClose(mp4state.hDecoder);
1485 fseek(mp4state.aacfile, tagsize, SEEK_SET);
1486 }
1487 }
1488
1489 mp4state.m_head = (struct seek_list*)malloc(sizeof(struct seek_list));
1490 mp4state.m_tail = mp4state.m_head;
1491 mp4state.m_tail->next = NULL;
1492
1493 mp4state.m_header_type = 0;
1494 if ((mp4state.m_aac_buffer[0] == 0xFF) && ((mp4state.m_aac_buffer[1] & 0xF6) == 0xF0))
1495 {
1496 if (1) //(can_seek)
1497 {
1498 adts_parse(&mp4state, &bitrate, &length);
1499 fseek(mp4state.aacfile, tagsize, SEEK_SET);
1500
1501 bread = fread(mp4state.m_aac_buffer, 1, 768*6, mp4state.aacfile);
1502 if (bread != 768*6)
1503 mp4state.m_at_eof = 1;
1504 else
1505 mp4state.m_at_eof = 0;
1506 mp4state.m_aac_bytes_into_buffer = bread;
1507 mp4state.m_aac_bytes_consumed = 0;
1508
1509 mp4state.m_header_type = 1;
1510 }
1511 } else if (memcmp(mp4state.m_aac_buffer, "ADIF", 4) == 0) {
1512 int skip_size = (mp4state.m_aac_buffer[4] & 0x80) ? 9 : 0;
1513 bitrate = ((unsigned int)(mp4state.m_aac_buffer[4 + skip_size] & 0x0F)<<19) |
1514 ((unsigned int)mp4state.m_aac_buffer[5 + skip_size]<<11) |
1515 ((unsigned int)mp4state.m_aac_buffer[6 + skip_size]<<3) |
1516 ((unsigned int)mp4state.m_aac_buffer[7 + skip_size] & 0xE0);
1517
1518 length = (double)file_length(mp4state.aacfile);
1519 if (length == -1)
1520 {
1521 module.is_seekable = 0;
1522 length = 0;
1523 } else {
1524 length = ((double)length*8.)/((double)bitrate) + 0.5;
1525 }
1526
1527 mp4state.m_header_type = 2;
1528 } else {
1529 length = (double)file_length(mp4state.aacfile);
1530 length = ((double)length*8.)/((double)bitrate*1000.) + 0.5;
1531
1532 module.is_seekable = 1;
1533 }
1534
1535 mp4state.m_length = (int)(length*1000.);
1536
1537 fill_buffer(&mp4state);
1538 if ((mp4state.m_aac_bytes_consumed = NeAACDecInit(mp4state.hDecoder,
1539 mp4state.m_aac_buffer, mp4state.m_aac_bytes_into_buffer,
1540 &mp4state.samplerate, &mp4state.channels)) < 0)
1541 {
1542 show_error(module.hMainWindow, "Can't initialize decoder library.");
1543 return -1;
1544 }
1545 advance_buffer(&mp4state, mp4state.m_aac_bytes_consumed);
1546
1547 if (mp4state.m_header_type == 2)
1548 avg_bitrate = bitrate;
1549 else
1550 avg_bitrate = bitrate*1000;
1551 } else {
1552 mp4state.hDecoder = NeAACDecOpen();
1553 if (!mp4state.hDecoder)
1554 {
1555 show_error(module.hMainWindow, "Unable to open decoder library.");
1556 return -1;
1557 }
1558
1559 config = NeAACDecGetCurrentConfiguration(mp4state.hDecoder);
1560 config->outputFormat = m_resolution + 1;
1561 config->downMatrix = m_downmix;
1562 NeAACDecSetConfiguration(mp4state.hDecoder, config);
1563
1564 mp4state.mp4File = fopen(mp4state.filename, "rb");
1565 mp4state.mp4cb.read = read_callback;
1566 mp4state.mp4cb.seek = seek_callback;
1567 mp4state.mp4cb.user_data = mp4state.mp4File;
1568
1569
1570 mp4state.mp4file = mp4ff_open_read(&mp4state.mp4cb);
1571 if (!mp4state.mp4file)
1572 {
1573 show_error(module.hMainWindow, "Unable to open file.");
1574 NeAACDecClose(mp4state.hDecoder);
1575 return -1;
1576 }
1577
1578 if ((mp4state.mp4track = GetAACTrack(mp4state.mp4file)) < 0)
1579 {
1580 show_error(module.hMainWindow, "Unsupported Audio track type.");
1581 NeAACDecClose(mp4state.hDecoder);
1582 mp4ff_close(mp4state.mp4file);
1583 fclose(mp4state.mp4File);
1584 return -1;
1585 }
1586
1587 buffer = NULL;
1588 buffer_size = 0;
1589 mp4ff_get_decoder_config(mp4state.mp4file, mp4state.mp4track,
1590 &buffer, &buffer_size);
1591 if (!buffer)
1592 {
1593 NeAACDecClose(mp4state.hDecoder);
1594 mp4ff_close(mp4state.mp4file);
1595 fclose(mp4state.mp4File);
1596 return -1;
1597 }
1598
1599 if(NeAACDecInit2(mp4state.hDecoder, buffer, buffer_size,
1600 &mp4state.samplerate, &mp4state.channels) < 0)
1601 {
1602 /* If some error initializing occured, skip the file */
1603 NeAACDecClose(mp4state.hDecoder);
1604 mp4ff_close(mp4state.mp4file);
1605 fclose(mp4state.mp4File);
1606 if (buffer) free (buffer);
1607 return -1;
1608 }
1609
1610 /* for gapless decoding */
1611 {
1612 mp4AudioSpecificConfig mp4ASC;
1613
1614 mp4state.timescale = mp4ff_time_scale(mp4state.mp4file, mp4state.mp4track);
1615 mp4state.framesize = 1024;
1616 mp4state.useAacLength = 0;
1617
1618 if (buffer)
1619 {
1620 if (NeAACDecAudioSpecificConfig(buffer, buffer_size, &mp4ASC) >= 0)
1621 {
1622 if (mp4ASC.frameLengthFlag == 1) mp4state.framesize = 960;
1623 if (mp4ASC.sbr_present_flag == 1) mp4state.framesize *= 2;
1624 }
1625 }
1626 }
1627
1628 free(buffer);
1629
1630 avg_bitrate = mp4ff_get_avg_bitrate(mp4state.mp4file, mp4state.mp4track);
1631
1632 mp4state.numSamples = mp4ff_num_samples(mp4state.mp4file, mp4state.mp4track);
1633 mp4state.sampleId = 0;
1634
1635 {
1636 double timescale_div = 1.0 / (double)mp4ff_time_scale(mp4state.mp4file, mp4state.mp4track);
1637 int64_t duration = mp4ff_get_track_duration_use_offsets(mp4state.mp4file, mp4state.mp4track);
1638 if (duration == -1)
1639 {
1640 mp4state.m_length = 0;
1641 } else {
1642 mp4state.m_length = (int)((double)duration * timescale_div * 1000.0);
1643 }
1644 }
1645
1646 module.is_seekable = 1;
1647 }
1648
1649 if (mp4state.channels == 0)
1650 {
1651 show_error(module.hMainWindow, "Number of channels not supported for playback.");
1652 NeAACDecClose(mp4state.hDecoder);
1653 if (mp4state.filetype)
1654 fclose(mp4state.aacfile);
1655 else {
1656 mp4ff_close(mp4state.mp4file);
1657 fclose(mp4state.mp4File);
1658 }
1659 return -1;
1660 }
1661
1662 if (m_downmix && (mp4state.channels == 5 || mp4state.channels == 6))
1663 mp4state.channels = 2;
1664
1665 maxlatency = module.outMod->Open(mp4state.samplerate, (int)mp4state.channels,
1666 res_table[m_resolution], -1, -1);
1667
1668 if (maxlatency < 0) // error opening device
1669 {
1670 NeAACDecClose(mp4state.hDecoder);
1671 if (mp4state.filetype)
1672 fclose(mp4state.aacfile);
1673 else {
1674 mp4ff_close(mp4state.mp4file);
1675 fclose(mp4state.mp4File);
1676 }
1677 return -1;
1678 }
1679
1680 mp4state.paused = 0;
1681 mp4state.decode_pos_ms = 0;
1682 mp4state.seek_needed = -1;
1683
1684 // initialize vis stuff
1685 module.SAVSAInit(maxlatency, mp4state.samplerate);
1686 module.VSASetInfo((int)mp4state.channels, mp4state.samplerate);
1687
1688 br = (int)floor(((float)avg_bitrate + 500.0)/1000.0 + 0.5);
1689 sr = (int)floor((float)mp4state.samplerate/1000.0 + 0.5);
1690 module.SetInfo(br, sr, (int)mp4state.channels, 1);
1691
1692 module.outMod->SetVolume(-666); // set the output plug-ins default volume
1693
1694 killPlayThread = 0;
1695
1696 if (mp4state.filetype)
1697 {
1698 if ((play_thread_handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)AACPlayThread,
1699 (void *)&killPlayThread, 0, &thread_id)) == NULL)
1700 {
1701 show_error(module.hMainWindow, "Cannot create playback thread");
1702 NeAACDecClose(mp4state.hDecoder);
1703 fclose(mp4state.aacfile);
1704 return -1;
1705 }
1706 } else {
1707 if ((play_thread_handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)MP4PlayThread,
1708 (void *)&killPlayThread, 0, &thread_id)) == NULL)
1709 {
1710 show_error(module.hMainWindow, "Cannot create playback thread");
1711 NeAACDecClose(mp4state.hDecoder);
1712 mp4ff_close(mp4state.mp4file);
1713 fclose(mp4state.mp4File);
1714 return -1;
1715 }
1716 }
1717
1718 SetThreadAffinityMask(play_thread_handle, 1);
1719
1720 SetThreadPriority(play_thread_handle, priority_table[m_priority]);
1721
1722 return 0;
1723 }
1724
1725 void pause()
1726 {
1727 #ifdef DEBUG_OUTPUT
1728 in_mp4_DebugOutput("pause");
1729 #endif
1730
1731 mp4state.paused = 1;
1732 module.outMod->Pause(1);
1733 }
1734
1735 void unpause()
1736 {
1737 #ifdef DEBUG_OUTPUT
1738 in_mp4_DebugOutput("unpause");
1739 #endif
1740
1741 mp4state.paused = 0;
1742 module.outMod->Pause(0);
1743 }
1744
1745 int ispaused()
1746 {
1747 #ifdef DEBUG_OUTPUT
1748 in_mp4_DebugOutput("ispaused");
1749 #endif
1750
1751 return mp4state.paused;
1752 }
1753
1754 void setvolume(int volume)
1755 {
1756 #ifdef DEBUG_OUTPUT
1757 in_mp4_DebugOutput("setvolume");
1758 #endif
1759
1760 module.outMod->SetVolume(volume);
1761 }
1762
1763 void setpan(int pan)
1764 {
1765 #ifdef DEBUG_OUTPUT
1766 in_mp4_DebugOutput("setpan");
1767 #endif
1768
1769 module.outMod->SetPan(pan);
1770 }
1771
1772 void stop()
1773 {
1774 struct seek_list *target = mp4state.m_head;
1775
1776 #ifdef DEBUG_OUTPUT
1777 in_mp4_DebugOutput("stop");
1778 #endif
1779
1780 killPlayThread = 1;
1781
1782 if (play_thread_handle != INVALID_HANDLE_VALUE)
1783 {
1784 if (WaitForSingleObject(play_thread_handle, INFINITE) == WAIT_TIMEOUT)
1785 TerminateThread(play_thread_handle,0);
1786 CloseHandle(play_thread_handle);
1787 play_thread_handle = INVALID_HANDLE_VALUE;
1788 }
1789
1790
1791 if (mp4state.m_aac_buffer)
1792 free(mp4state.m_aac_buffer);
1793
1794 while (target)
1795 {
1796 struct seek_list *tmp = target;
1797 target = target->next;
1798 if (tmp) free(tmp);
1799 }
1800 NeAACDecClose(mp4state.hDecoder);
1801 if (mp4state.filetype)
1802 fclose(mp4state.aacfile);
1803 else {
1804 mp4ff_close(mp4state.mp4file);
1805 fclose(mp4state.mp4File);
1806 }
1807
1808 module.outMod->Close();
1809 module.SAVSADeInit();
1810
1811 mp4state.filename[0] = '\0';
1812 }
1813
1814 int getsonglength(const char *fn)
1815 {
1816 long msDuration = 0;
1817
1818 if(!stricmp(fn + strlen(fn) - 3,"MP4") || !stricmp(fn + strlen(fn) - 3,"M4A"))
1819 {
1820 int track;
1821 int64_t length;
1822 FILE *mp4File;
1823 mp4ff_t *file;
1824 mp4ff_callback_t mp4cb = {0};
1825
1826 mp4File = fopen(fn, "rb");
1827 mp4cb.read = read_callback;
1828 mp4cb.seek = seek_callback;
1829 mp4cb.user_data = mp4File;
1830
1831
1832 file = mp4ff_open_read(&mp4cb);
1833 if (file == NULL)
1834 return 0;
1835
1836 if ((track = GetAACTrack(file)) < 0)
1837 {
1838 mp4ff_close(file);
1839 fclose(mp4File);
1840 return -1;
1841 }
1842
1843 length = mp4ff_get_track_duration(file, track);
1844
1845 msDuration = (long)((float)length*1000.0 / (float)mp4ff_time_scale(file, track) + 0.5);
1846
1847 mp4ff_close(file);
1848 fclose(mp4File);
1849
1850 return msDuration;
1851 } else {
1852 int tagsize = 0;
1853 int bread = 0;
1854 double length = 0.;
1855 __int64 bitrate = 128;
1856 struct seek_list *target;
1857 state len_state;
1858
1859 memset(&len_state, 0, sizeof(state));
1860
1861 if (!(len_state.aacfile = fopen(fn, "rb")))
1862 {
1863 // error
1864 return 0;
1865 }
1866
1867 len_state.m_at_eof = 0;
1868
1869 if (!(len_state.m_aac_buffer = (unsigned char*)malloc(768*6)))
1870 {
1871 //console::error("Memory allocation error.", "foo_mp4");
1872 return 0;
1873 }
1874 memset(len_state.m_aac_buffer, 0, 768*6);
1875
1876 bread = fread(len_state.m_aac_buffer, 1, 768*6, len_state.aacfile);
1877 len_state.m_aac_bytes_into_buffer = bread;
1878 len_state.m_aac_bytes_consumed = 0;
1879 len_state.m_file_offset = 0;
1880
1881 if (bread != 768*6)
1882 len_state.m_at_eof = 1;
1883
1884 if (!memcmp(len_state.m_aac_buffer, "ID3", 3))
1885 {
1886 /* high bit is not used */
1887 tagsize = (len_state.m_aac_buffer[6] << 21) | (len_state.m_aac_buffer[7] << 14) |
1888 (len_state.m_aac_buffer[8] << 7) | (len_state.m_aac_buffer[9] << 0);
1889
1890 tagsize += 10;
1891 advance_buffer(&len_state, tagsize);
1892 }
1893
1894 len_state.m_head = (struct seek_list*)malloc(sizeof(struct seek_list));
1895 len_state.m_tail = len_state.m_head;
1896 len_state.m_tail->next = NULL;
1897
1898 len_state.m_header_type = 0;
1899 if ((len_state.m_aac_buffer[0] == 0xFF) && ((len_state.m_aac_buffer[1] & 0xF6) == 0xF0))
1900 {
1901 if (1) //(m_reader->can_seek())
1902 {
1903 adts_parse(&len_state, &bitrate, &length);
1904 fseek(len_state.aacfile, tagsize, SEEK_SET);
1905
1906 bread = fread(len_state.m_aac_buffer, 1, 768*6, len_state.aacfile);
1907 if (bread != 768*6)
1908 len_state.m_at_eof = 1;
1909 else
1910 len_state.m_at_eof = 0;
1911 len_state.m_aac_bytes_into_buffer = bread;
1912 len_state.m_aac_bytes_consumed = 0;
1913
1914 len_state.m_header_type = 1;
1915 }
1916 } else if (memcmp(len_state.m_aac_buffer, "ADIF", 4) == 0) {
1917 int skip_size = (len_state.m_aac_buffer[4] & 0x80) ? 9 : 0;
1918 bitrate = ((unsigned int)(len_state.m_aac_buffer[4 + skip_size] & 0x0F)<<19) |
1919 ((unsigned int)len_state.m_aac_buffer[5 + skip_size]<<11) |
1920 ((unsigned int)len_state.m_aac_buffer[6 + skip_size]<<3) |
1921 ((unsigned int)len_state.m_aac_buffer[7 + skip_size] & 0xE0);
1922
1923 length = (double)file_length(len_state.aacfile);
1924 if (length == -1)
1925 length = 0;
1926 else
1927 length = ((double)length*8.)/((double)bitrate) + 0.5;
1928
1929 len_state.m_header_type = 2;
1930 } else {
1931 length = (double)file_length(len_state.aacfile);
1932 length = ((double)length*8.)/((double)bitrate*1000.) + 0.5;
1933
1934 len_state.m_header_type = 0;
1935 }
1936
1937 if (len_state.m_aac_buffer)
1938 free(len_state.m_aac_buffer);
1939
1940 target = len_state.m_head;
1941 while (target)
1942 {
1943 struct seek_list *tmp = target;
1944 target = target->next;
1945 if (tmp) free(tmp);
1946 }
1947
1948 fclose(len_state.aacfile);
1949
1950 return (int)(length*1000.);
1951 }
1952 }
1953
1954 int getlength()
1955 {
1956 if (!mp4state.filetype)
1957 {
1958 int track;
1959 long msDuration;
1960 long length;
1961
1962 if ((track = GetAACTrack(mp4state.mp4file)) < 0)
1963 {
1964 return -1;
1965 }
1966
1967 length = mp4ff_get_track_duration(mp4state.mp4file, track);
1968
1969 msDuration = (long)(length*1000.0 / (float)mp4ff_time_scale(mp4state.mp4file, track) + 0.5);
1970
1971 return msDuration;
1972 } else {
1973 return mp4state.m_length;
1974 }
1975 return 0;
1976 }
1977
1978 int getoutputtime()
1979 {
1980 return mp4state.decode_pos_ms+(module.outMod->GetOutputTime()-module.outMod->GetWrittenTime());
1981 }
1982
1983 void setoutputtime(int time_in_ms)
1984 {
1985 #ifdef DEBUG_OUTPUT
1986 in_mp4_DebugOutput("setoutputtime");
1987 #endif
1988
1989 mp4state.seek_needed = time_in_ms;
1990 }
1991
1992 void getfileinfo(char *filename, char *title, int *length_in_ms)
1993 {
1994 if (!filename || !*filename) /* currently playing file */
1995 {
1996 if (length_in_ms)
1997 *length_in_ms = getlength();
1998
1999 if (title)
2000 {
2001 if (mp4state.filetype == 0)
2002 {
2003 ConstructTitle(mp4state.mp4file, mp4state.filename, title, titleformat);
2004 } else {
2005 char *tmp2;
2006 char *tmp = PathFindFileName(mp4state.filename);
2007 strcpy(title, tmp);
2008 tmp2 = strrchr(title, '.');
2009 tmp2[0] = '\0';
2010 }
2011 }
2012 } else {
2013 if (length_in_ms)
2014 *length_in_ms = getsonglength(filename);
2015
2016 if (title)
2017 {
2018 unsigned char header[8];
2019 FILE *hMP4File = fopen(filename, "rb");
2020 if (!hMP4File)
2021 {
2022 return;
2023 }
2024 fread(header, 1, 8, hMP4File);
2025 fclose(hMP4File);
2026
2027 if (header[4] == 'f' && header[5] == 't' && header[6] == 'y' && header[7] == 'p')
2028 {
2029 FILE *mp4File;
2030 mp4ff_t *file;
2031 mp4ff_callback_t mp4cb = {0};
2032
2033 mp4File = fopen(filename, "rb");
2034 mp4cb.read = read_callback;
2035 mp4cb.seek = seek_callback;
2036 mp4cb.user_data = mp4File;
2037
2038 file = mp4ff_open_read(&mp4cb);
2039 if (file == NULL)
2040 return;
2041
2042 ConstructTitle(file, filename, title, titleformat);
2043
2044 mp4ff_close(file);
2045 fclose(mp4File);
2046 } else {
2047 char *tmp2;
2048 char *tmp = PathFindFileName(filename);
2049 strcpy(title, tmp);
2050 tmp2 = strrchr(title, '.');
2051 tmp2[0] = '\0';
2052 }
2053 }
2054 }
2055 }
2056
2057 void eq_set(int on, char data[10], int preamp)
2058 {
2059 }
2060
2061 static void remap_channels(unsigned char *data, unsigned int samples, unsigned int bps)
2062 {
2063 unsigned int i;
2064
2065 switch (bps)
2066 {
2067 case 8:
2068 {
2069 unsigned char r1, r2, r3, r4, r5, r6;
2070 for (i = 0; i < samples; i += 6)
2071 {
2072 r1 = data[i];
2073 r2 = data[i+1];
2074 r3 = data[i+2];
2075 r4 = data[i+3];
2076 r5 = data[i+4];
2077 r6 = data[i+5];
2078 data[i] = r2;
2079 data[i+1] = r3;
2080 data[i+2] = r1;
2081 data[i+3] = r6;
2082 data[i+4] = r4;
2083 data[i+5] = r5;
2084 }
2085 }
2086 break;
2087
2088 case 16:
2089 default:
2090 {
2091 unsigned short r1, r2, r3, r4, r5, r6;
2092 unsigned short *sample_buffer = (unsigned short *)data;
2093 for (i = 0; i < samples; i += 6)
2094 {
2095 r1 = sample_buffer[i];
2096 r2 = sample_buffer[i+1];
2097 r3 = sample_buffer[i+2];
2098 r4 = sample_buffer[i+3];
2099 r5 = sample_buffer[i+4];
2100 r6 = sample_buffer[i+5];
2101 sample_buffer[i] = r2;
2102 sample_buffer[i+1] = r3;
2103 sample_buffer[i+2] = r1;
2104 sample_buffer[i+3] = r6;
2105 sample_buffer[i+4] = r4;
2106 sample_buffer[i+5] = r5;
2107 }
2108 }
2109 break;
2110
2111 case 24:
2112 case 32:
2113 {
2114 unsigned int r1, r2, r3, r4, r5, r6;
2115 unsigned int *sample_buffer = (unsigned int *)data;
2116 for (i = 0; i < samples; i += 6)
2117 {
2118 r1 = sample_buffer[i];
2119 r2 = sample_buffer[i+1];
2120 r3 = sample_buffer[i+2];
2121 r4 = sample_buffer[i+3];
2122 r5 = sample_buffer[i+4];
2123 r6 = sample_buffer[i+5];
2124 sample_buffer[i] = r2;
2125 sample_buffer[i+1] = r3;
2126 sample_buffer[i+2] = r1;
2127 sample_buffer[i+3] = r6;
2128 sample_buffer[i+4] = r4;
2129 sample_buffer[i+5] = r5;
2130 }
2131 }
2132 break;
2133 }
2134 }
2135
2136 DWORD WINAPI MP4PlayThread(void *b)
2137 {
2138 int done = 0;
2139 int l;
2140 int seq_frames = 0;
2141 int seq_bytes = 0;
2142
2143 void *sample_buffer;
2144 unsigned char *buffer;
2145 int buffer_size;
2146 NeAACDecFrameInfo frameInfo;
2147
2148 #ifdef DEBUG_OUTPUT
2149 in_mp4_DebugOutput("MP4PlayThread");
2150 #endif
2151
2152 PlayThreadAlive = 1;
2153 mp4state.last_frame = 0;
2154 mp4state.initial = 1;
2155
2156 while (!*((int *)b))
2157 {
2158 /* seeking */
2159 if (mp4state.seek_needed != -1)
2160 {
2161 int64_t duration;
2162 int32_t skip_samples = 0;
2163
2164 module.outMod->Flush(mp4state.decode_pos_ms);
2165 duration = (int64_t)(mp4state.seek_needed/1000.0 * mp4state.samplerate + 0.5);
2166 mp4state.sampleId = mp4ff_find_sample_use_offsets(mp4state.mp4file,
2167 mp4state.mp4track, duration, &skip_samples);
2168
2169 mp4state.decode_pos_ms = mp4state.seek_needed;
2170 mp4state.seek_needed = -1;
2171 }
2172
2173 if (done)
2174 {
2175 module.outMod->CanWrite();
2176
2177 if (!module.outMod->IsPlaying())
2178 {
2179 PostMessage(module.hMainWindow, WM_WA_AAC_EOF, 0, 0);
2180 PlayThreadAlive = 0;
2181 return 0;
2182 }
2183
2184 Sleep(10);
2185 } else if (module.outMod->CanWrite() >= (2048*mp4state.channels*sizeof(short))) {
2186
2187 if (mp4state.last_frame)
2188 {
2189 done = 1;
2190 } else {
2191 int rc;
2192
2193 /* for gapless decoding */
2194 char *buf;
2195 long dur;
2196 unsigned int sample_count;
2197 unsigned int delay = 0;
2198
2199 /* get acces unit from MP4 file */
2200 buffer = NULL;
2201 buffer_size = 0;
2202
2203 dur = mp4ff_get_sample_duration(mp4state.mp4file, mp4state.mp4track, mp4state.sampleId);
2204 rc = mp4ff_read_sample(mp4state.mp4file, mp4state.mp4track, mp4state.sampleId++, &buffer, &buffer_size);
2205
2206 if (mp4state.sampleId == 1) dur = 0;
2207 if (rc == 0 || buffer == NULL)
2208 {
2209 mp4state.last_frame = 1;
2210 sample_buffer = NULL;
2211 frameInfo.samples = 0;
2212 } else {
2213 sample_buffer = NeAACDecDecode(mp4state.hDecoder, &frameInfo,
2214 buffer, buffer_size);
2215 }
2216 if (frameInfo.error > 0)
2217 {
2218 show_error(module.hMainWindow, NeAACDecGetErrorMessage(frameInfo.error));
2219 mp4state.last_frame = 1;
2220 }
2221 if (mp4state.sampleId >= mp4state.numSamples)
2222 mp4state.last_frame = 1;
2223
2224 if (buffer) free(buffer);
2225
2226 if (mp4state.useAacLength || (mp4state.timescale != mp4state.samplerate)) {
2227 sample_count = frameInfo.samples;
2228 } else {
2229 sample_count = (unsigned int)(dur * frameInfo.channels);
2230
2231 if (!mp4state.useAacLength && !mp4state.initial && (mp4state.sampleId < mp4state.numSamples/2) && (dur*frameInfo.channels != frameInfo.samples))
2232 {
2233 //fprintf(stderr, "MP4 seems to have incorrect frame duration, using values from AAC data.\n");
2234 mp4state.useAacLength = 1;
2235 sample_count = frameInfo.samples;
2236 }
2237 }
2238
2239 if (mp4state.initial && (sample_count < mp4state.framesize*mp4state.channels) && (frameInfo.samples > sample_count))
2240 {
2241 delay = frameInfo.samples - sample_count;
2242 }
2243
2244 if (!killPlayThread && (sample_count > 0))
2245 {
2246 buf = (char *)sample_buffer;
2247 mp4state.initial = 0;
2248
2249 switch (res_table[m_resolution])
2250 {
2251 case 8:
2252 buf += delay;
2253 break;
2254 case 16:
2255 default:
2256 buf += delay * 2;
2257 break;
2258 case 24:
2259 case 32:
2260 buf += delay * 4;
2261 break;
2262 case 64:
2263 buf += delay * 8;
2264 }
2265
2266 if (frameInfo.channels == 6 && frameInfo.num_lfe_channels)
2267 remap_channels(buf, sample_count, res_table[m_resolution]);
2268
2269 if (res_table[m_resolution] == 24)
2270 {
2271 /* convert libfaad output (3 bytes packed in 4) */
2272 char *temp_buffer = convert3in4to3in3(buf, sample_count);
2273 memcpy((void*)buf, (void*)temp_buffer, sample_count*3);
2274 free(temp_buffer);
2275 }
2276
2277 module.SAAddPCMData(buf, (int)mp4state.channels, res_table[m_resolution],
2278 mp4state.decode_pos_ms);
2279 module.VSAAddPCMData(buf, (int)mp4state.channels, res_table[m_resolution],
2280 mp4state.decode_pos_ms);
2281 mp4state.decode_pos_ms += (double)sample_count * 1000.0 /
2282 ((double)frameInfo.samplerate * (double)frameInfo.channels);
2283
2284 l = sample_count * res_table[m_resolution] / 8;
2285
2286 if (module.dsp_isactive())
2287 {
2288 void *dsp_buffer = malloc(l*2);
2289 memcpy(dsp_buffer, buf, l);
2290
2291 l = module.dsp_dosamples((short*)dsp_buffer,
2292 sample_count/frameInfo.channels,
2293 res_table[m_resolution],
2294 frameInfo.channels,
2295 frameInfo.samplerate) *
2296 (frameInfo.channels*(res_table[m_resolution]/8));
2297
2298 module.outMod->Write(dsp_buffer, l);
2299 if (dsp_buffer) free(dsp_buffer);
2300 } else {
2301 module.outMod->Write(buf, l);
2302 }
2303
2304 /* VBR bitrate display */
2305 if (m_vbr_display)
2306 {
2307 seq_frames++;
2308 seq_bytes += frameInfo.bytesconsumed;
2309 if (seq_frames == (int)(floor((float)frameInfo.samplerate/(float)(sample_count/frameInfo.channels) + 0.5)))
2310 {
2311 module.SetInfo((int)floor(((float)seq_bytes*8.)/1000. + 0.5),
2312 (int)floor(frameInfo.samplerate/1000. + 0.5),
2313 mp4state.channels, 1);
2314
2315 seq_frames = 0;
2316 seq_bytes = 0;
2317 }
2318 }
2319 }
2320 }
2321 } else {
2322 Sleep(10);
2323 }
2324 }
2325
2326 PlayThreadAlive = 0;
2327
2328 return 0;
2329 }
2330
2331 void *decode_aac_frame(state *st, NeAACDecFrameInfo *frameInfo)
2332 {
2333 void *sample_buffer = NULL;
2334
2335 do
2336 {
2337 fill_buffer(st);
2338
2339 if (st->m_aac_bytes_into_buffer != 0)
2340 {
2341 sample_buffer = NeAACDecDecode(st->hDecoder, frameInfo,
2342 st->m_aac_buffer, st->m_aac_bytes_into_buffer);
2343
2344 if (st->m_header_type != 1)
2345 {
2346 if (st->last_offset < st->m_file_offset)
2347 {
2348 st->m_tail->offset = st->m_file_offset;
2349 st->m_tail->next = (struct seek_list*)malloc(sizeof(struct seek_list));
2350 st->m_tail = st->m_tail->next;
2351 st->m_tail->next = NULL;
2352 st->last_offset = st->m_file_offset;
2353 }
2354 }
2355
2356 advance_buffer(st, frameInfo->bytesconsumed);
2357 } else {
2358 break;
2359 }
2360
2361 } while (!frameInfo->samples && !frameInfo->error);
2362
2363 return sample_buffer;
2364 }
2365
2366 int aac_seek(state *st, double seconds)
2367 {
2368 int i, frames;
2369 int bread;
2370 struct seek_list *target = st->m_head;
2371
2372 if (1 /*can_seek*/ && ((st->m_header_type == 1) || (seconds < st->cur_pos_sec)))
2373 {
2374 frames = (int)(seconds*((double)st->samplerate/(double)st->framesize) + 0.5);
2375
2376 for (i = 0; i < frames; i++)
2377 {
2378 if (target->next)
2379 target = target->next;
2380 else
2381 return 0;
2382 }
2383 if (target->offset == 0 && frames > 0)
2384 return 0;
2385 fseek(st->aacfile, target->offset, SEEK_SET);
2386 st->m_file_offset = target->offset;
2387
2388 bread = fread(st->m_aac_buffer, 1, 768*6, st->aacfile);
2389 if (bread != 768*6)
2390 st->m_at_eof = 1;
2391 else
2392 st->m_at_eof = 0;
2393 st->m_aac_bytes_into_buffer = bread;
2394 st->m_aac_bytes_consumed = 0;
2395 st->m_file_offset += bread;
2396
2397 NeAACDecPostSeekReset(st->hDecoder, -1);
2398
2399 return 1;
2400 } else {
2401 if (seconds > st->cur_pos_sec)
2402 {
2403 NeAACDecFrameInfo frameInfo;
2404
2405 frames = (int)((seconds - st->cur_pos_sec)*((double)st->samplerate/(double)st->framesize));
2406
2407 if (frames > 0)
2408 {
2409 for (i = 0; i < frames; i++)
2410 {
2411 memset(&frameInfo, 0, sizeof(NeAACDecFrameInfo));
2412 decode_aac_frame(st, &frameInfo);
2413
2414 if (frameInfo.error || (st->m_aac_bytes_into_buffer == 0))
2415 {
2416 if (frameInfo.error)
2417 {
2418 if (NeAACDecGetErrorMessage(frameInfo.error) != NULL)
2419 show_error(module.hMainWindow, NeAACDecGetErrorMessage(frameInfo.error));
2420 }
2421 return 0;
2422 }
2423 }
2424 }
2425
2426 NeAACDecPostSeekReset(st->hDecoder, -1);
2427 }
2428 return 1;
2429 }
2430 }
2431
2432 DWORD WINAPI AACPlayThread(void *b)
2433 {
2434 int done = 0;
2435 int l;
2436 int seq_frames = 0;
2437 int seq_bytes = 0;
2438
2439 #ifdef DEBUG_OUTPUT
2440 in_mp4_DebugOutput("AACPlayThread");
2441 #endif
2442
2443 PlayThreadAlive = 1;
2444 mp4state.last_frame = 0;
2445
2446 while (!*((int *)b))
2447 {
2448 /* seeking */
2449 if (mp4state.seek_needed != -1)
2450 {
2451 double ms;
2452
2453 ms = mp4state.seek_needed/1000;
2454 if (aac_seek(&mp4state, ms)!=0)
2455 {
2456 module.outMod->Flush(mp4state.decode_pos_ms);
2457 mp4state.cur_pos_sec = ms;
2458 mp4state.decode_pos_ms = mp4state.seek_needed;
2459 }
2460 mp4state.seek_needed = -1;
2461 }
2462
2463 if (done)
2464 {
2465 module.outMod->CanWrite();
2466
2467 if (!module.outMod->IsPlaying())
2468 {
2469 PostMessage(module.hMainWindow, WM_WA_AAC_EOF, 0, 0);
2470 PlayThreadAlive = 0;
2471 return 0;
2472 }
2473
2474 Sleep(10);
2475 } else if (module.outMod->CanWrite() >= (2048*mp4state.channels*sizeof(short))) {
2476 NeAACDecFrameInfo frameInfo;
2477 void *sample_buffer;
2478
2479 memset(&frameInfo, 0, sizeof(NeAACDecFrameInfo));
2480
2481 sample_buffer = decode_aac_frame(&mp4state, &frameInfo);
2482
2483 if (frameInfo.error || (mp4state.m_aac_bytes_into_buffer == 0))
2484 {
2485 if (frameInfo.error)
2486 {
2487 if (NeAACDecGetErrorMessage(frameInfo.error) != NULL)
2488 show_error(module.hMainWindow, NeAACDecGetErrorMessage(frameInfo.error));
2489 }
2490 done = 1;
2491 }
2492
2493 if (!killPlayThread && (frameInfo.samples > 0))
2494 {
2495 if (frameInfo.channels == 6 && frameInfo.num_lfe_channels)
2496 remap_channels(sample_buffer, frameInfo.samples, res_table[m_resolution]);
2497
2498 if (res_table[m_resolution] == 24)
2499 {
2500 /* convert libfaad output (3 bytes packed in 4 bytes) */
2501 char *temp_buffer = convert3in4to3in3(sample_buffer, frameInfo.samples);
2502 memcpy((void*)sample_buffer, (void*)temp_buffer, frameInfo.samples*3);
2503 free(temp_buffer);
2504 }
2505
2506 module.SAAddPCMData(sample_buffer, (int)mp4state.channels, res_table[m_resolution],
2507 mp4state.decode_pos_ms);
2508 module.VSAAddPCMData(sample_buffer, (int)mp4state.channels, res_table[m_resolution],
2509 mp4state.decode_pos_ms);
2510 mp4state.decode_pos_ms += (double)frameInfo.samples * 1000.0 /
2511 ((double)frameInfo.samplerate* (double)frameInfo.channels);
2512
2513 l = frameInfo.samples * res_table[m_resolution] / 8;
2514
2515 if (module.dsp_isactive())
2516 {
2517 void *dsp_buffer = malloc(l*2);
2518 memcpy(dsp_buffer, sample_buffer, l);
2519
2520 l = module.dsp_dosamples((short*)dsp_buffer,
2521 frameInfo.samples/frameInfo.channels,
2522 res_table[m_resolution],
2523 frameInfo.channels,
2524 frameInfo.samplerate) *
2525 (frameInfo.channels*(res_table[m_resolution]/8));
2526
2527 module.outMod->Write(dsp_buffer, l);
2528 if (dsp_buffer) free(dsp_buffer);
2529 } else {
2530 module.outMod->Write(sample_buffer, l);
2531 }
2532
2533 /* VBR bitrate display */
2534 if (m_vbr_display)
2535 {
2536 seq_frames++;
2537 seq_bytes += frameInfo.bytesconsumed;
2538 if (seq_frames == (int)(floor((float)frameInfo.samplerate/(float)(frameInfo.samples/frameInfo.channels) + 0.5)))
2539 {
2540 module.SetInfo((int)floor(((float)seq_bytes*8.)/1000. + 0.5),
2541 (int)floor(frameInfo.samplerate/1000. + 0.5),
2542 mp4state.channels, 1);
2543
2544 seq_frames = 0;
2545 seq_bytes = 0;
2546 }
2547 }
2548 }
2549
2550 if (frameInfo.channels > 0 && mp4state.samplerate > 0)
2551 mp4state.cur_pos_sec += ((double)(frameInfo.samples/frameInfo.channels))/(double)mp4state.samplerate;
2552 } else {
2553 Sleep(10);
2554 }
2555 }
2556
2557 PlayThreadAlive = 0;
2558
2559 return 0;
2560 }
2561
2562 static In_Module module =
2563 {
2564 IN_VER,
2565 "AudioCoding.com MPEG-4 AAC player: " FAAD2_VERSION " compiled on " __DATE__,
2566 0, // hMainWindow
2567 0, // hDllInstance
2568 NULL,
2569 1, // is_seekable
2570 1, // uses output
2571 config,
2572 about,
2573 init,
2574 quit,
2575 getfileinfo,
2576 infoDlg,
2577 isourfile,
2578 play,
2579 pause,
2580 unpause,
2581 ispaused,
2582 stop,
2583
2584 getlength,
2585 getoutputtime,
2586 setoutputtime,
2587
2588 setvolume,
2589 setpan,
2590
2591 0,0,0,0,0,0,0,0,0, // vis stuff
2592
2593
2594 0,0, // dsp
2595
2596 eq_set,
2597
2598 NULL, // setinfo
2599
2600 0 // out_mod
2601 };
2602
2603 __declspec(dllexport) In_Module* winampGetInModule2()
2604 {
2605 config_read();
2606
2607 if (!m_use_for_aac)
2608 {
2609 module.FileExtensions = short_ext_list;
2610 } else {
2611 module.FileExtensions = long_ext_list;
2612 }
2613
2614 return &module;
2615 }
2616
2617 /* new Media Library interface */
2618
2619 int mp4_get_metadata(mp4ff_t *file, const char *item, char *dest, int dlen)
2620 {
2621 char *pVal = NULL, dummy1[4096];
2622
2623 if (dlen < 1) return 0;
2624
2625 if (!stricmp(item, "track") || !stricmp(item, "tracknumber"))
2626 {
2627 if (mp4ff_meta_get_track(file, &pVal))
2628 {
2629 wsprintf(dummy1, "%s", pVal);
2630 strncpy(dest, dummy1, dlen-1);
2631 dest[dlen-1] = '\0';
2632 return 1;
2633 }
2634 }
2635 else if (!stricmp(item, "disc") || !stricmp(item, "disknumber"))
2636 {
2637 if (mp4ff_meta_get_disc(file, &pVal))
2638 {
2639 wsprintf(dummy1, "%s", pVal);
2640 strncpy(dest, dummy1, dlen-1);
2641 dest[dlen-1] = '\0';
2642 return 1;
2643 }
2644 }
2645 else if (!stricmp(item, "compilation"))
2646 {
2647 uint8_t cpil = 0;
2648 if (mp4ff_meta_get_compilation(file, &pVal))
2649 {
2650 wsprintf(dummy1, "%s", pVal);
2651 strncpy(dest, dummy1, dlen-1);
2652 dest[dlen-1] = '\0';
2653 return 1;
2654 }
2655 }
2656 else if (!stricmp(item, "tempo"))
2657 {
2658 if (mp4ff_meta_get_tempo(file, &pVal))
2659 {
2660 wsprintf(dummy1, "%s", pVal);
2661 strncpy(dest, dummy1, dlen-1);
2662 dest[dlen-1] = '\0';
2663 return 1;
2664 }
2665 }
2666 else if (!stricmp(item, "artist"))
2667 {
2668 if (mp4ff_meta_get_artist(file, &pVal))
2669 {
2670 strncpy(dest, pVal, dlen-1);
2671 dest[dlen-1] = '\0';
2672 return 1;
2673 }
2674 }
2675 else if (!stricmp(item, "writer"))
2676 {
2677 if (mp4ff_meta_get_writer(file, &pVal))
2678 {
2679 strncpy(dest, pVal, dlen-1);
2680 dest[dlen-1] = '\0';
2681 return 1;
2682 }
2683 }
2684 else if (!stricmp(item, "title"))
2685 {
2686 if (mp4ff_meta_get_title(file, &pVal))
2687 {
2688 strncpy(dest, pVal, dlen-1);
2689 dest[dlen-1] = '\0';
2690 return 1;
2691 }
2692 }
2693 else if (!stricmp(item, "album"))
2694 {
2695 if (mp4ff_meta_get_album(file, &pVal))
2696 {
2697 strncpy(dest, pVal, dlen-1);
2698 dest[dlen-1] = '\0';
2699 return 1;
2700 }
2701 }
2702 else if (!stricmp(item, "date") || !stricmp(item, "year"))
2703 {
2704 if (mp4ff_meta_get_date(file, &pVal))
2705 {
2706 strncpy(dest, pVal, dlen-1);
2707 dest[dlen-1] = '\0';
2708 return 1;
2709 }
2710 }
2711 else if (!stricmp(item, "comment"))
2712 {
2713 if (mp4ff_meta_get_comment(file, &pVal))
2714 {
2715 strncpy(dest, pVal, dlen-1);
2716 dest[dlen-1] = '\0';
2717 return 1;
2718 }
2719 }
2720 else if (!stricmp(item, "genre"))
2721 {
2722 if (mp4ff_meta_get_genre(file, &pVal))
2723 {
2724 strncpy(dest, pVal, dlen-1);
2725 dest[dlen-1] = '\0';
2726 return 1;
2727 }
2728 }
2729 else if (!stricmp(item, "tool"))
2730 {
2731 if (mp4ff_meta_get_tool(file, &pVal))
2732 {
2733 strncpy(dest, pVal, dlen-1);
2734 dest[dlen-1] = '\0';
2735 return 1;
2736 }
2737 }
2738 #if 0
2739 else
2740 {
2741 uint32_t valueSize = 0;
2742 uint8_t *pValue = NULL;
2743
2744 if (MP4GetMetadataFreeForm(file, (char *)item, &pValue, &valueSize))
2745 {
2746 unsigned int len = (valueSize < (unsigned int)(dlen-1)) ? valueSize : (unsigned int)(dlen-1);
2747 memcpy(dest, pValue, len);
2748 dest[len] = '\0';
2749 return 1;
2750 }
2751 }
2752 #endif
2753
2754 return 0;
2755 }
2756
2757 __declspec(dllexport) int winampGetExtendedFileInfo(const char *fn, const char *data, char *dest, int destlen)
2758 {
2759 if (!fn || (fn && !*fn) || !destlen) return 0;
2760
2761 dest[0] = '\0';
2762
2763 if (!stricmp(data, "length"))
2764 {
2765 char temp[32];
2766 int len = getsonglength(fn);
2767 itoa(len, temp, 10);
2768 strncpy(dest, temp, destlen-1);
2769 dest[destlen-1] = '\0';
2770 }
2771 else
2772 {
2773 char temp[2048], temp2[2048];
2774 FILE *mp4File;
2775 mp4ff_callback_t mp4cb = {0};
2776 mp4ff_t *file;
2777
2778 mp4File = fopen(fn, "rb");
2779 mp4cb.read = read_callback;
2780 mp4cb.seek = seek_callback;
2781 mp4cb.write = write_callback;
2782 mp4cb.truncate = truncate_callback;
2783 mp4cb.user_data = mp4File;
2784
2785
2786 file = mp4ff_open_read(&mp4cb);
2787 if (file == NULL) return 0;
2788
2789 if (mp4_get_metadata(file, data, temp, sizeof(temp)))
2790 {
2791 int len = ConvertUTF8ToANSI(temp, temp2);
2792 if (len > destlen-1) len = destlen-1;
2793 memcpy(dest, temp2, len);
2794 dest[len] = '\0';
2795 }
2796
2797 mp4ff_close(file);
2798 fclose(mp4File);
2799 }
2800
2801 return 1;
2802 }
2803
2804 static mp4ff_metadata_t mltags = {0, 0};
2805 static BOOL medialib_init = FALSE;
2806 static char medialib_lastfn[2048] = "";
2807
2808 __declspec(dllexport) int winampSetExtendedFileInfo(const char *fn, const char *data, char *val)
2809 {
2810 int len, ret = 0;
2811 char *temp;
2812
2813 if (!medialib_init || (medialib_init && stricmp(fn, medialib_lastfn))) {
2814 FILE *mp4File;
2815 mp4ff_callback_t mp4cb = {0};
2816 mp4ff_t *file;
2817 strcpy(medialib_lastfn, fn);
2818
2819 if (medialib_init) tag_delete(&mltags);
2820
2821 mp4File = fopen(medialib_lastfn, "rb");
2822 mp4cb.read = read_callback;
2823 mp4cb.seek = seek_callback;
2824 mp4cb.user_data = mp4File;
2825
2826
2827 file = mp4ff_open_read(&mp4cb);
2828 if (file == NULL) return 0;
2829
2830 ReadMP4Tag(file, &mltags);
2831
2832 mp4ff_close(file);
2833 fclose(mp4File);
2834
2835 medialib_init = TRUE;
2836 }
2837
2838 len = strlen(val);
2839 temp = (char *)malloc((len+1)*4);
2840 if (!temp) return 0;
2841
2842 if (ConvertANSIToUTF8(val, temp))
2843 {
2844 ret = 1;
2845 tag_set_field(&mltags, data, temp, len);
2846 }
2847
2848 free(temp);
2849
2850 return ret;
2851 }
2852
2853 __declspec(dllexport) int winampWriteExtendedFileInfo()
2854 {
2855 if (medialib_init)
2856 {
2857 FILE *mp4File;
2858 mp4ff_callback_t mp4cb = {0};
2859
2860 mp4File = fopen(medialib_lastfn, "rb+");
2861 mp4cb.read = read_callback;
2862 mp4cb.seek = seek_callback;
2863 mp4cb.write = write_callback;
2864 mp4cb.truncate = truncate_callback;
2865 mp4cb.user_data = mp4File;
2866
2867 mp4ff_meta_update(&mp4cb, &mltags);
2868
2869 fclose(mp4File);
2870
2871 return 1;
2872 }
2873 else
2874 {
2875 return 0;
2876 }
2877 }
+0
-155
plugins/in_mp4/in_mp4.dsp less more
0 # Microsoft Developer Studio Project File - Name="in_mp4" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
5
6 CFG=in_mp4 - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "in_mp4.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "in_mp4.mak" CFG="in_mp4 - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "in_mp4 - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
20 !MESSAGE "in_mp4 - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=xicl6.exe
28 MTL=midl.exe
29 RSC=rc.exe
30
31 !IF "$(CFG)" == "in_mp4 - Win32 Release"
32
33 # PROP BASE Use_MFC 0
34 # PROP BASE Use_Debug_Libraries 0
35 # PROP BASE Output_Dir "Release"
36 # PROP BASE Intermediate_Dir "Release"
37 # PROP BASE Target_Dir ""
38 # PROP Use_MFC 0
39 # PROP Use_Debug_Libraries 0
40 # PROP Output_Dir "Release"
41 # PROP Intermediate_Dir "Release"
42 # PROP Ignore_Export_Lib 0
43 # PROP Target_Dir ""
44 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
45 # ADD CPP /nologo /MD /W3 /GX /O1 /I "..\..\include" /I "..\..\common\mp4v2" /I "..\..\common\mp4av" /I "..\..\common\mp4ff" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
46 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
47 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
48 # ADD BASE RSC /l 0x413 /d "NDEBUG"
49 # ADD RSC /l 0x413 /d "NDEBUG"
50 BSC32=bscmake.exe
51 # ADD BASE BSC32 /nologo
52 # ADD BSC32 /nologo
53 LINK32=xilink6.exe
54 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
55 # ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
56
57 !ELSEIF "$(CFG)" == "in_mp4 - Win32 Debug"
58
59 # PROP BASE Use_MFC 0
60 # PROP BASE Use_Debug_Libraries 1
61 # PROP BASE Output_Dir "Debug"
62 # PROP BASE Intermediate_Dir "Debug"
63 # PROP BASE Target_Dir ""
64 # PROP Use_MFC 0
65 # PROP Use_Debug_Libraries 1
66 # PROP Output_Dir "Debug"
67 # PROP Intermediate_Dir "Debug"
68 # PROP Ignore_Export_Lib 0
69 # PROP Target_Dir ""
70 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /GZ /c
71 # ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "..\..\include" /I "..\..\common\mp4v2" /I "..\..\common\mp4av" /I "..\..\common\mp4ff" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /GZ /c
72 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
73 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
74 # ADD BASE RSC /l 0x413 /d "_DEBUG"
75 # ADD RSC /l 0x413 /d "_DEBUG"
76 BSC32=bscmake.exe
77 # ADD BASE BSC32 /nologo
78 # ADD BSC32 /nologo
79 LINK32=xilink6.exe
80 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
81 # ADD LINK32 ws2_32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
82
83 !ENDIF
84
85 # Begin Target
86
87 # Name "in_mp4 - Win32 Release"
88 # Name "in_mp4 - Win32 Debug"
89 # Begin Group "Source Files"
90
91 # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat"
92 # Begin Source File
93
94 SOURCE=.\aacinfo.c
95 # End Source File
96 # Begin Source File
97
98 SOURCE=.\config.c
99 # End Source File
100 # Begin Source File
101
102 SOURCE=.\in_mp4.c
103 # End Source File
104 # Begin Source File
105
106 SOURCE=.\utils.c
107 # End Source File
108 # End Group
109 # Begin Group "Header Files"
110
111 # PROP Default_Filter "h;hpp;hxx;hm;inl"
112 # Begin Source File
113
114 SOURCE=.\aacinfo.h
115 # End Source File
116 # Begin Source File
117
118 SOURCE=.\config.h
119 # End Source File
120 # Begin Source File
121
122 SOURCE=.\in2.h
123 # End Source File
124 # Begin Source File
125
126 SOURCE=..\..\common\mp4ff\mp4ff.h
127 # End Source File
128 # Begin Source File
129
130 SOURCE=..\..\common\mp4ff\mp4ff_int_types.h
131 # End Source File
132 # Begin Source File
133
134 SOURCE=..\..\include\neaacdec.h
135 # End Source File
136 # Begin Source File
137
138 SOURCE=.\out.h
139 # End Source File
140 # Begin Source File
141
142 SOURCE=.\utils.h
143 # End Source File
144 # End Group
145 # Begin Group "Resource Files"
146
147 # PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
148 # Begin Source File
149
150 SOURCE=.\in_mp4.rc
151 # End Source File
152 # End Group
153 # End Target
154 # End Project
+0
-59
plugins/in_mp4/in_mp4.dsw less more
0 Microsoft Developer Studio Workspace File, Format Version 6.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "in_mp4"=.\in_mp4.dsp - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 Begin Project Dependency
14 Project_Dep_Name libfaad
15 End Project Dependency
16 Begin Project Dependency
17 Project_Dep_Name mp4ff
18 End Project Dependency
19 }}}
20
21 ###############################################################################
22
23 Project: "libfaad"=..\..\libfaad\libfaad.dsp - Package Owner=<4>
24
25 Package=<5>
26 {{{
27 }}}
28
29 Package=<4>
30 {{{
31 }}}
32
33 ###############################################################################
34
35 Project: "mp4ff"=..\..\common\mp4ff\mp4ff.dsp - Package Owner=<4>
36
37 Package=<5>
38 {{{
39 }}}
40
41 Package=<4>
42 {{{
43 }}}
44
45 ###############################################################################
46
47 Global:
48
49 Package=<5>
50 {{{
51 }}}
52
53 Package=<3>
54 {{{
55 }}}
56
57 ###############################################################################
58
+0
-170
plugins/in_mp4/in_mp4.rc less more
0 //Microsoft Developer Studio generated resource script.
1 //
2 #include "resource.h"
3
4 #define APSTUDIO_READONLY_SYMBOLS
5 /////////////////////////////////////////////////////////////////////////////
6 //
7 // Generated from the TEXTINCLUDE 2 resource.
8 //
9 #include "afxres.h"
10
11 /////////////////////////////////////////////////////////////////////////////
12 #undef APSTUDIO_READONLY_SYMBOLS
13
14 /////////////////////////////////////////////////////////////////////////////
15 // Dutch (Netherlands) resources
16
17 #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_NLD)
18 #ifdef _WIN32
19 LANGUAGE LANG_DUTCH, SUBLANG_DUTCH
20 #pragma code_page(1252)
21 #endif //_WIN32
22
23 #ifdef APSTUDIO_INVOKED
24 /////////////////////////////////////////////////////////////////////////////
25 //
26 // TEXTINCLUDE
27 //
28
29 1 TEXTINCLUDE MOVEABLE PURE
30 BEGIN
31 "resource.h\0"
32 END
33
34 2 TEXTINCLUDE MOVEABLE PURE
35 BEGIN
36 "#include ""afxres.h""\r\n"
37 "\0"
38 END
39
40 3 TEXTINCLUDE MOVEABLE PURE
41 BEGIN
42 "\r\n"
43 "\0"
44 END
45
46 #endif // APSTUDIO_INVOKED
47
48
49 /////////////////////////////////////////////////////////////////////////////
50 //
51 // Dialog
52 //
53
54 IDD_INFO DIALOGEX 0, 0, 303, 255
55 STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
56 CAPTION "MPEG-4 File Info"
57 FONT 8, "MS Sans Serif"
58 BEGIN
59 GROUPBOX "Track info",IDC_STATIC,7,7,289,64
60 EDITTEXT IDC_METANAME,53,91,151,14,ES_AUTOHSCROLL
61 EDITTEXT IDC_METAARTIST,53,109,151,14,ES_AUTOHSCROLL
62 EDITTEXT IDC_METAWRITER,53,127,151,14,ES_AUTOHSCROLL
63 EDITTEXT IDC_METAALBUM,53,145,233,14,ES_AUTOHSCROLL
64 EDITTEXT IDC_METACOMMENTS,53,163,234,35,ES_AUTOHSCROLL
65 EDITTEXT IDC_METAGENRE,53,202,151,14,ES_AUTOHSCROLL
66 EDITTEXT IDC_METAYEAR,234,91,52,14,ES_AUTOHSCROLL
67 EDITTEXT IDC_METATRACK1,234,109,52,14,ES_AUTOHSCROLL
68 EDITTEXT IDC_METADISK1,234,127,52,14,ES_AUTOHSCROLL
69 CONTROL "Part of a compilation",IDC_METACOMPILATION,"Button",
70 BS_AUTOCHECKBOX | WS_TABSTOP,207,202,80,14
71 DEFPUSHBUTTON "OK",IDOK,246,234,50,14
72 PUSHBUTTON "Cancel",IDCANCEL,186,234,50,14
73 LTEXT "",IDC_INFOTEXT,14,17,275,47,0,WS_EX_CLIENTEDGE
74 GROUPBOX "User data",IDC_USERDATA,7,76,289,151
75 LTEXT "Name",IDC_STATIC1,13,91,20,14,SS_CENTERIMAGE
76 LTEXT "Artist",IDC_STATIC2,13,109,16,14,SS_CENTERIMAGE
77 LTEXT "Composer",IDC_STATIC3,13,127,32,14,SS_CENTERIMAGE
78 LTEXT "Album",IDC_STATIC4,13,145,20,14,SS_CENTERIMAGE
79 LTEXT "Comments",IDC_STATIC5,13,163,34,14,SS_CENTERIMAGE
80 LTEXT "Year",IDC_STATIC7,211,91,16,14,SS_CENTERIMAGE
81 LTEXT "Disc",IDC_STATIC9,211,127,15,14,SS_CENTERIMAGE
82 LTEXT "Track",IDC_STATIC8,211,109,20,14,SS_CENTERIMAGE
83 LTEXT "Genre",IDC_STATIC6,13,202,20,14,SS_CENTERIMAGE
84 END
85
86 IDD_CONFIG DIALOG DISCARDABLE 0, 0, 233, 166
87 STYLE DS_MODALFRAME | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU
88 CAPTION "Configuration"
89 FONT 8, "MS Sans Serif"
90 BEGIN
91 CONTROL "Slider1",IDC_PRIORITY,"msctls_trackbar32",TBS_VERT |
92 TBS_NOTICKS | WS_TABSTOP,13,15,18,46
93 CONTROL "16 bits",IDC_16BITS,"Button",BS_AUTORADIOBUTTON,77,18,
94 37,10
95 CONTROL "16 bits dithered",IDC_16BITS_DITHERED,"Button",
96 BS_AUTORADIOBUTTON | WS_DISABLED,77,29,64,10
97 CONTROL "24 bits",IDC_24BITS,"Button",BS_AUTORADIOBUTTON,77,40,
98 37,10
99 CONTROL "32 bits",IDC_32BITS,"Button",BS_AUTORADIOBUTTON,77,51,
100 37,10
101 CONTROL "Downmix to stereo",IDC_DOWNMIX,"Button",BS_AUTOCHECKBOX |
102 WS_TABSTOP,152,13,74,10
103 CONTROL "Use for AAC",IDC_USEFORAAC,"Button",BS_AUTOCHECKBOX |
104 WS_TABSTOP,152,26,55,10
105 CONTROL "VBR Display",IDC_VBR,"Button",BS_AUTOCHECKBOX |
106 WS_TABSTOP,152,39,55,10
107 CONTROL "Show errors",IDC_ERROR,"Button",BS_AUTOCHECKBOX |
108 WS_TABSTOP,152,52,53,10
109 EDITTEXT IDC_TITLEFORMAT,14,86,121,14,ES_AUTOHSCROLL
110 DEFPUSHBUTTON "OK",IDOK,176,145,50,14
111 PUSHBUTTON "Cancel",IDCANCEL,176,125,50,14
112 GROUPBOX "Priority",IDC_STATIC,7,7,57,58
113 LTEXT "Highest",IDC_STATIC,34,18,25,8
114 LTEXT "Normal",IDC_STATIC,34,35,23,8
115 LTEXT "Lowest",IDC_STATIC,34,52,24,8
116 GROUPBOX "Resolution",IDC_STATIC,71,7,73,58
117 GROUPBOX "Title format",IDC_STATIC,7,72,137,87
118 LTEXT "%0 - Track",IDC_STATIC,17,109,35,8
119 LTEXT "%1 - Artist",IDC_STATIC,17,120,32,8
120 LTEXT "%2 - Title",IDC_STATIC,17,131,30,8
121 LTEXT "%3 - Album",IDC_STATIC,17,142,36,8
122 LTEXT "%4 - Year",IDC_STATIC,68,109,31,8
123 LTEXT "%5 - Comment",IDC_STATIC,68,120,46,8
124 LTEXT "%6 - Genre",IDC_STATIC,68,131,36,8
125 LTEXT "%7 - Filename",IDC_STATIC,68,142,44,8
126 END
127
128
129 /////////////////////////////////////////////////////////////////////////////
130 //
131 // DESIGNINFO
132 //
133
134 #ifdef APSTUDIO_INVOKED
135 GUIDELINES DESIGNINFO MOVEABLE PURE
136 BEGIN
137 IDD_INFO, DIALOG
138 BEGIN
139 LEFTMARGIN, 7
140 RIGHTMARGIN, 296
141 TOPMARGIN, 7
142 BOTTOMMARGIN, 248
143 END
144
145 IDD_CONFIG, DIALOG
146 BEGIN
147 LEFTMARGIN, 7
148 RIGHTMARGIN, 226
149 TOPMARGIN, 7
150 BOTTOMMARGIN, 159
151 END
152 END
153 #endif // APSTUDIO_INVOKED
154
155 #endif // Dutch (Netherlands) resources
156 /////////////////////////////////////////////////////////////////////////////
157
158
159
160 #ifndef APSTUDIO_INVOKED
161 /////////////////////////////////////////////////////////////////////////////
162 //
163 // Generated from the TEXTINCLUDE 3 resource.
164 //
165
166
167 /////////////////////////////////////////////////////////////////////////////
168 #endif // not APSTUDIO_INVOKED
169
+0
-48
plugins/in_mp4/in_mp4.sln less more
0 Microsoft Visual Studio Solution File, Format Version 8.00
1 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "in_mp4", "in_mp4.vcproj", "{2D8F479D-A591-4502-9456-398425D5F834}"
2 ProjectSection(ProjectDependencies) = postProject
3 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46} = {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}
4 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49} = {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}
5 {82CAD808-21AF-40A6-92EC-AE01AA67B413} = {82CAD808-21AF-40A6-92EC-AE01AA67B413}
6 EndProjectSection
7 EndProject
8 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfaad", "..\..\libfaad\libfaad.vcproj", "{82CAD808-21AF-40A6-92EC-AE01AA67B413}"
9 ProjectSection(ProjectDependencies) = postProject
10 EndProjectSection
11 EndProject
12 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmp4v2_st", "..\..\common\mp4v2\libmp4v2_st60.vcproj", "{2398BB2F-FFF9-490B-B4CC-863F2D21AE46}"
13 ProjectSection(ProjectDependencies) = postProject
14 EndProjectSection
15 EndProject
16 Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libmp4av_st", "..\..\common\mp4av\libmp4av_st.vcproj", "{8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}"
17 ProjectSection(ProjectDependencies) = postProject
18 EndProjectSection
19 EndProject
20 Global
21 GlobalSection(SolutionConfiguration) = preSolution
22 Debug = Debug
23 Release = Release
24 EndGlobalSection
25 GlobalSection(ProjectConfiguration) = postSolution
26 {2D8F479D-A591-4502-9456-398425D5F834}.Debug.ActiveCfg = Debug|Win32
27 {2D8F479D-A591-4502-9456-398425D5F834}.Debug.Build.0 = Debug|Win32
28 {2D8F479D-A591-4502-9456-398425D5F834}.Release.ActiveCfg = Release|Win32
29 {2D8F479D-A591-4502-9456-398425D5F834}.Release.Build.0 = Release|Win32
30 {82CAD808-21AF-40A6-92EC-AE01AA67B413}.Debug.ActiveCfg = Debug|Win32
31 {82CAD808-21AF-40A6-92EC-AE01AA67B413}.Debug.Build.0 = Debug|Win32
32 {82CAD808-21AF-40A6-92EC-AE01AA67B413}.Release.ActiveCfg = Release|Win32
33 {82CAD808-21AF-40A6-92EC-AE01AA67B413}.Release.Build.0 = Release|Win32
34 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Debug.ActiveCfg = Debug|Win32
35 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Debug.Build.0 = Debug|Win32
36 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Release.ActiveCfg = Release|Win32
37 {2398BB2F-FFF9-490B-B4CC-863F2D21AE46}.Release.Build.0 = Release|Win32
38 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Debug.ActiveCfg = Debug|Win32
39 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Debug.Build.0 = Debug|Win32
40 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Release.ActiveCfg = Release|Win32
41 {8CAC9E26-BAA5-45A4-8721-E3170B3F8F49}.Release.Build.0 = Release|Win32
42 EndGlobalSection
43 GlobalSection(ExtensibilityGlobals) = postSolution
44 EndGlobalSection
45 GlobalSection(ExtensibilityAddIns) = postSolution
46 EndGlobalSection
47 EndGlobal
+0
-221
plugins/in_mp4/in_mp4.vcproj less more
0 <?xml version="1.0" encoding = "Windows-1252"?>
1 <VisualStudioProject
2 ProjectType="Visual C++"
3 Version="7.10"
4 Name="in_mp4"
5 SccProjectName=""
6 SccLocalPath="">
7 <Platforms>
8 <Platform
9 Name="Win32"/>
10 </Platforms>
11 <Configurations>
12 <Configuration
13 Name="Debug|Win32"
14 OutputDirectory=".\Debug"
15 IntermediateDirectory=".\Debug"
16 ConfigurationType="2"
17 UseOfMFC="0"
18 ATLMinimizesCRunTimeLibraryUsage="FALSE">
19 <Tool
20 Name="VCCLCompilerTool"
21 Optimization="0"
22 AdditionalIncludeDirectories="..\..\include,..\..\common\mp4v2,..\..\common\mp4av"
23 PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"
24 BasicRuntimeChecks="0"
25 RuntimeLibrary="1"
26 UsePrecompiledHeader="2"
27 PrecompiledHeaderFile=".\Debug/in_mp4.pch"
28 AssemblerListingLocation=".\Debug/"
29 ObjectFile=".\Debug/"
30 ProgramDataBaseFileName=".\Debug/"
31 WarningLevel="3"
32 SuppressStartupBanner="TRUE"
33 DebugInformationFormat="4"
34 CompileAs="0">
35 <IntelOptions
36 Optimization="0"
37 MinimalRebuild="1"
38 BasicRuntimeChecks="0"
39 RuntimeLibrary="1"
40 AllOptions="/c /I &quot;..\..\include&quot; /I &quot;..\..\common\mp4v2&quot; /I &quot;..\..\common\mp4av&quot; /ZI /nologo /W3 /Od /D &quot;WIN32&quot; /D &quot;_DEBUG&quot; /D &quot;_WINDOWS&quot; /D &quot;_WINDLL&quot; /Gm /EHsc /MTd /YX&quot;StdAfx.h&quot; /Fp&quot;.\Debug/in_mp4.pch&quot; /Fo&quot;.\Debug/&quot; /Fd&quot;.\Debug/&quot; /Gd"/>
41 </Tool>
42 <Tool
43 Name="VCCustomBuildTool"/>
44 <Tool
45 Name="VCLinkerTool"
46 AdditionalOptions="/MACHINE:I386"
47 AdditionalDependencies="ws2_32.lib odbc32.lib odbccp32.lib"
48 OutputFile=".\Debug/in_mp4.dll"
49 LinkIncremental="2"
50 SuppressStartupBanner="TRUE"
51 GenerateDebugInformation="TRUE"
52 ProgramDatabaseFile=".\Debug/in_mp4.pdb"
53 SubSystem="2"
54 ImportLibrary=".\Debug/in_mp4.lib">
55 <IntelOptions
56 AllOptions="/NOLOGO /DLL /OUT:&quot;.\Debug/in_mp4.dll&quot; /INCREMENTAL ws2_32.lib odbc32.lib odbccp32.lib /DEBUG /PDB:&quot;.\Debug/in_mp4.pdb&quot; /SUBSYSTEM:WINDOWS /TLBID:1 /IMPLIB:&quot;.\Debug/in_mp4.lib&quot; /MACHINE:I386 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"/>
57 </Tool>
58 <Tool
59 Name="VCMIDLTool"
60 PreprocessorDefinitions="_DEBUG"
61 MkTypLibCompatible="TRUE"
62 SuppressStartupBanner="TRUE"
63 TargetEnvironment="1"
64 TypeLibraryName=".\Debug/in_mp4.tlb"/>
65 <Tool
66 Name="VCPostBuildEventTool"/>
67 <Tool
68 Name="VCPreBuildEventTool"/>
69 <Tool
70 Name="VCPreLinkEventTool"/>
71 <Tool
72 Name="VCResourceCompilerTool"
73 PreprocessorDefinitions="_DEBUG"
74 Culture="1043"/>
75 <Tool
76 Name="VCWebServiceProxyGeneratorTool"/>
77 <Tool
78 Name="VCXMLDataGeneratorTool"/>
79 <Tool
80 Name="VCWebDeploymentTool"/>
81 <Tool
82 Name="VCManagedWrapperGeneratorTool"/>
83 <Tool
84 Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
85 <IntelOptions
86 CompilerName="1"/>
87 </Configuration>
88 <Configuration
89 Name="Release|Win32"
90 OutputDirectory=".\Release"
91 IntermediateDirectory=".\Release"
92 ConfigurationType="2"
93 UseOfMFC="0"
94 ATLMinimizesCRunTimeLibraryUsage="FALSE">
95 <Tool
96 Name="VCCLCompilerTool"
97 Optimization="1"
98 GlobalOptimizations="TRUE"
99 InlineFunctionExpansion="1"
100 EnableIntrinsicFunctions="TRUE"
101 FavorSizeOrSpeed="1"
102 OptimizeForProcessor="2"
103 AdditionalIncludeDirectories="..\..\include,..\..\common\mp4v2,..\..\common\mp4av"
104 PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"
105 StringPooling="TRUE"
106 RuntimeLibrary="2"
107 EnableFunctionLevelLinking="TRUE"
108 UsePrecompiledHeader="2"
109 PrecompiledHeaderFile=".\Release/in_mp4.pch"
110 AssemblerListingLocation=".\Release/"
111 ObjectFile=".\Release/"
112 ProgramDataBaseFileName=".\Release/"
113 WarningLevel="3"
114 SuppressStartupBanner="TRUE"
115 CompileAs="0">
116 <IntelOptions
117 Optimization="1"
118 GlobalOptimizations="1"
119 InlineFunctionExpansion="1"
120 EnableIntrinsicFunctions="1"
121 FavorSizeOrSpeed="1"
122 OmitFramePointers="1"
123 OptimizeForProcessor="2"
124 StringPooling="1"
125 RuntimeLibrary="2"
126 BufferSecurityCheck="1"
127 EnableFunctionLevelLinking="1"
128 AllOptions="/c /I &quot;..\..\include&quot; /I &quot;..\..\common\mp4v2&quot; /I &quot;..\..\common\mp4av&quot; /nologo /W3 /O1 /Og /Ob1 /Oi /Ot /Oy /G6 /D &quot;WIN32&quot; /D &quot;NDEBUG&quot; /D &quot;_WINDOWS&quot; /D &quot;_WINDLL&quot; /GF /FD /EHsc /MD /GS /Gy /YX&quot;StdAfx.h&quot; /Fp&quot;.\Release/in_mp4.pch&quot; /Fo&quot;.\Release/&quot; /Fd&quot;.\Release/&quot; /Gd"/>
129 </Tool>
130 <Tool
131 Name="VCCustomBuildTool"/>
132 <Tool
133 Name="VCLinkerTool"
134 AdditionalOptions="/MACHINE:I386"
135 AdditionalDependencies="ws2_32.lib"
136 OutputFile=".\Release/in_mp4.dll"
137 LinkIncremental="1"
138 SuppressStartupBanner="TRUE"
139 ProgramDatabaseFile=".\Release/in_mp4.pdb"
140 SubSystem="2"
141 ImportLibrary=".\Release/in_mp4.lib">
142 <IntelOptions
143 AllOptions="/NOLOGO /DLL /OUT:&quot;.\Release/in_mp4.dll&quot; /INCREMENTAL:NO ws2_32.lib /PDB:&quot;.\Release/in_mp4.pdb&quot; /SUBSYSTEM:WINDOWS /TLBID:1 /IMPLIB:&quot;.\Release/in_mp4.lib&quot; /MACHINE:I386 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib"/>
144 </Tool>
145 <Tool
146 Name="VCMIDLTool"
147 PreprocessorDefinitions="NDEBUG"
148 MkTypLibCompatible="TRUE"
149 SuppressStartupBanner="TRUE"
150 TargetEnvironment="1"
151 TypeLibraryName=".\Release/in_mp4.tlb"/>
152 <Tool
153 Name="VCPostBuildEventTool"/>
154 <Tool
155 Name="VCPreBuildEventTool"/>
156 <Tool
157 Name="VCPreLinkEventTool"/>
158 <Tool
159 Name="VCResourceCompilerTool"
160 PreprocessorDefinitions="NDEBUG"
161 Culture="1043"/>
162 <Tool
163 Name="VCWebServiceProxyGeneratorTool"/>
164 <Tool
165 Name="VCXMLDataGeneratorTool"/>
166 <Tool
167 Name="VCWebDeploymentTool"/>
168 <Tool
169 Name="VCManagedWrapperGeneratorTool"/>
170 <Tool
171 Name="VCAuxiliaryManagedWrapperGeneratorTool"/>
172 <IntelOptions
173 CompilerName="1"/>
174 </Configuration>
175 </Configurations>
176 <References/>
177 <Files>
178 <Filter
179 Name="Source Files"
180 Filter="cpp;c;cxx;rc;def;r;odl;idl;hpj;bat">
181 <File
182 RelativePath="aac2mp4.cpp"/>
183 <File
184 RelativePath="aacinfo.c"/>
185 <File
186 RelativePath=".\config.c"/>
187 <File
188 RelativePath=".\in_mp4.c"/>
189 <File
190 RelativePath=".\utils.c"/>
191 </Filter>
192 <Filter
193 Name="Header Files"
194 Filter="h;hpp;hxx;hm;inl">
195 <File
196 RelativePath="aac2mp4.h"/>
197 <File
198 RelativePath="aacinfo.h"/>
199 <File
200 RelativePath=".\config.h"/>
201 <File
202 RelativePath="..\..\include\faad.h"/>
203 <File
204 RelativePath=".\in2.h"/>
205 <File
206 RelativePath=".\out.h"/>
207 <File
208 RelativePath="resource.h"/>
209 <File
210 RelativePath=".\utils.h"/>
211 </Filter>
212 <Filter
213 Name="Resource Files"
214 Filter="ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe">
215 <File
216 RelativePath=".\in_mp4.rc"/>
217 </Filter>
218 </Files>
219 <Globals/>
220 </VisualStudioProject>
+0
-81
plugins/in_mp4/mbs.h less more
0 /*
1 * The contents of this file are subject to the Mozilla Public
2 * License Version 1.1 (the "License"); you may not use this file
3 * except in compliance with the License. You may obtain a copy of
4 * the License at http://www.mozilla.org/MPL/
5 *
6 * Software distributed under the License is distributed on an "AS
7 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
8 * implied. See the License for the specific language governing
9 * rights and limitations under the License.
10 *
11 * The Original Code is MPEG4IP.
12 *
13 * The Initial Developer of the Original Code is Cisco Systems Inc.
14 * Portions created by Cisco Systems Inc. are
15 * Copyright (C) Cisco Systems Inc. 2001-2002. All Rights Reserved.
16 *
17 * Contributor(s):
18 * Dave Mackie dmackie@cisco.com
19 */
20
21 #ifndef __MBS_INCLUDED__
22 #define __MBS_INCLUDED__
23
24 class CMemoryBitstream {
25 public:
26 CMemoryBitstream() {
27 m_pBuf = NULL;
28 m_bitPos = 0;
29 m_numBits = 0;
30 }
31
32 void AllocBytes(u_int32_t numBytes);
33
34 void SetBytes(u_int8_t* pBytes, u_int32_t numBytes);
35
36 void PutBytes(u_int8_t* pBytes, u_int32_t numBytes);
37
38 void PutBits(u_int32_t bits, u_int32_t numBits);
39
40 u_int32_t GetBits(u_int32_t numBits);
41
42 void SkipBytes(u_int32_t numBytes) {
43 SkipBits(numBytes << 3);
44 }
45
46 void SkipBits(u_int32_t numBits) {
47 SetBitPosition(GetBitPosition() + numBits);
48 }
49
50 u_int32_t GetBitPosition() {
51 return m_bitPos;
52 }
53
54 void SetBitPosition(u_int32_t bitPos) {
55 if (bitPos > m_numBits) {
56 throw;
57 }
58 m_bitPos = bitPos;
59 }
60
61 u_int8_t* GetBuffer() {
62 return m_pBuf;
63 }
64
65 u_int32_t GetNumberOfBytes() {
66 return (GetNumberOfBits() + 7) / 8;
67 }
68
69 u_int32_t GetNumberOfBits() {
70 return m_numBits;
71 }
72
73 protected:
74 u_int8_t* m_pBuf;
75 u_int32_t m_bitPos;
76 u_int32_t m_numBits;
77 };
78
79 #endif /* __MBS_INCLUDED__ */
80
+0
-52
plugins/in_mp4/out.h less more
0 #define OUT_VER 0x10
1
2 typedef struct
3 {
4 int version; // module version (OUT_VER)
5 char *description; // description of module, with version string
6 int id; // module id. each input module gets its own. non-nullsoft modules should
7 // be >= 65536.
8
9 HWND hMainWindow; // winamp's main window (filled in by winamp)
10 HINSTANCE hDllInstance; // DLL instance handle (filled in by winamp)
11
12 void (*Config)(HWND hwndParent); // configuration dialog
13 void (*About)(HWND hwndParent); // about dialog
14
15 void (*Init)(); // called when loaded
16 void (*Quit)(); // called when unloaded
17
18 int (*Open)(int samplerate, int numchannels, int bitspersamp, int bufferlenms, int prebufferms);
19 // returns >=0 on success, <0 on failure
20 // NOTENOTENOTE: bufferlenms and prebufferms are ignored in most if not all output plug-ins.
21 // ... so don't expect the max latency returned to be what you asked for.
22 // returns max latency in ms (0 for diskwriters, etc)
23 // bufferlenms and prebufferms must be in ms. 0 to use defaults.
24 // prebufferms must be <= bufferlenms
25
26 void (*Close)(); // close the ol' output device.
27
28 int (*Write)(char *buf, int len);
29 // 0 on success. Len == bytes to write (<= 8192 always). buf is straight audio data.
30 // 1 returns not able to write (yet). Non-blocking, always.
31
32 int (*CanWrite)(); // returns number of bytes possible to write at a given time.
33 // Never will decrease unless you call Write (or Close, heh)
34
35 int (*IsPlaying)(); // non0 if output is still going or if data in buffers waiting to be
36 // written (i.e. closing while IsPlaying() returns 1 would truncate the song
37
38 int (*Pause)(int pause); // returns previous pause state
39
40 void (*SetVolume)(int volume); // volume is 0-255
41 void (*SetPan)(int pan); // pan is -128 to 128
42
43 void (*Flush)(int t); // flushes buffers and restarts output at time t (in ms)
44 // (used for seeking)
45
46 int (*GetOutputTime)(); // returns played time in MS
47 int (*GetWrittenTime)(); // returns time written in MS (used for synching up vis stuff)
48
49 } Out_Module;
50
51
+0
-68
plugins/in_mp4/resource.h less more
0 //{{NO_DEPENDENCIES}}
1 // Microsoft Developer Studio generated include file.
2 // Used by in_mp4.rc
3 //
4 #define IDD_INFO 101
5 #define IDD_CONFIG 102
6 #define IDC_TYPE 1000
7 #define IDC_INFOTEXT 1000
8 #define IDC_DURATION 1001
9 #define IDC_BITRATE 1002
10 #define IDC_SAMPLERATE 1003
11 #define IDC_VTYPE 1004
12 #define IDC_PRIORITY 1004
13 #define IDC_VBITRATE 1005
14 #define IDC_ERROR 1005
15 #define IDC_VDURATION 1006
16 #define IDC_16BITS 1006
17 #define IDC_VSIZE 1007
18 #define IDC_24BITS 1007
19 #define IDC_CONVERT 1007
20 #define IDC_VFPS 1008
21 #define IDC_32BITS 1008
22 #define IDC_CONVERT2 1008
23 #define IDC_CHANNELS 1009
24 #define IDC_24BITS2 1009
25 #define IDC_16BITS_DITHERED 1009
26 #define IDC_CONVERT1 1009
27 #define IDC_USERDATA 1010
28 #define IDC_USEFORAAC 1011
29 #define IDC_METACOMPILATION 1012
30 #define IDC_METANAME 1013
31 #define IDC_METAARTIST 1014
32 #define IDC_METAWRITER 1015
33 #define IDC_METAALBUM 1016
34 #define IDC_METACOMMENTS 1017
35 #define IDC_METAGENRE 1018
36 #define IDC_METAYEAR 1019
37 #define IDC_METATRACK1 1020
38 #define IDC_METADISK1 1021
39 #define IDC_METATEMPO 1022
40 #define IDC_METATRACK2 1023
41 #define IDC_METADISK2 1024
42 #define IDC_STATIC1 1025
43 #define IDC_STATIC2 1026
44 #define IDC_STATIC3 1027
45 #define IDC_STATIC4 1028
46 #define IDC_STATIC5 1029
47 #define IDC_STATIC6 1030
48 #define IDC_STATIC7 1031
49 #define IDC_STATIC8 1032
50 #define IDC_STATIC9 1033
51 #define IDC_STATIC10 1034
52 #define IDC_STATIC11 1035
53 #define IDC_STATIC12 1036
54 #define IDC_DOWNMIX 1038
55 #define IDC_VBR 1039
56 #define IDC_TITLEFORMAT 1040
57
58 // Next default values for new objects
59 //
60 #ifdef APSTUDIO_INVOKED
61 #ifndef APSTUDIO_READONLY_SYMBOLS
62 #define _APS_NEXT_RESOURCE_VALUE 103
63 #define _APS_NEXT_COMMAND_VALUE 40001
64 #define _APS_NEXT_CONTROL_VALUE 1041
65 #define _APS_NEXT_SYMED_VALUE 101
66 #endif
67 #endif
+0
-151
plugins/in_mp4/utils.c less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** Commercial non-GPL licensing of this software is possible.
22 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
23 **
24 ** $Id: utils.c,v 1.9 2004/10/18 19:25:00 menno Exp $
25 **/
26
27 #define WIN32_LEAN_AND_MEAN
28 #include <windows.h>
29 #include <malloc.h>
30 //#include <mp4.h>
31 #include <mp4ff.h>
32 #include <neaacdec.h>
33 #include "utils.h"
34
35 int StringComp(char const *str1, char const *str2, unsigned long len)
36 {
37 signed int c1 = 0, c2 = 0;
38
39 while (len--)
40 {
41 c1 = tolower(*str1++);
42 c2 = tolower(*str2++);
43
44 if (c1 == 0 || c1 != c2)
45 break;
46 }
47
48 return c1 - c2;
49 }
50
51 int GetAACTrack(mp4ff_t *infile)
52 {
53 /* find AAC track */
54 int i, rc;
55 int numTracks = mp4ff_total_tracks(infile);
56
57 for (i = 0; i < numTracks; i++)
58 {
59 unsigned char *buff = NULL;
60 int buff_size = 0;
61 mp4AudioSpecificConfig mp4ASC;
62
63 mp4ff_get_decoder_config(infile, i, &buff, &buff_size);
64
65 if (buff)
66 {
67 rc = NeAACDecAudioSpecificConfig(buff, buff_size, &mp4ASC);
68 free(buff);
69
70 if (rc < 0)
71 continue;
72 return i;
73 }
74 }
75
76 /* can't decode this */
77 return -1;
78 }
79
80 #if 0
81 int GetAudioTrack(MP4FileHandle infile)
82 {
83 /* find AAC track */
84 int i;
85 int numTracks = MP4GetNumberOfTracks(infile, NULL, 0);
86
87 for (i = 0; i < numTracks; i++)
88 {
89 MP4TrackId trackId = MP4FindTrackId(infile, i, NULL, 0);
90 const char* trackType = MP4GetTrackType(infile, trackId);
91
92 if (!strcmp(trackType, MP4_AUDIO_TRACK_TYPE))
93 {
94 return trackId;
95 }
96 }
97
98 /* can't decode this */
99 return -1;
100 }
101
102 int GetVideoTrack(MP4FileHandle infile)
103 {
104 /* find AAC track */
105 int i;
106 int numTracks = MP4GetNumberOfTracks(infile, NULL, 0);
107
108 for (i = 0; i < numTracks; i++)
109 {
110 MP4TrackId trackId = MP4FindTrackId(infile, i, NULL, 0);
111 const char* trackType = MP4GetTrackType(infile, trackId);
112
113 if (!strcmp(trackType, MP4_VIDEO_TRACK_TYPE))
114 {
115 return trackId;
116 }
117 }
118
119 /* can't decode this */
120 return -1;
121 }
122 #endif
123
124 LPTSTR PathFindFileName(LPCTSTR pPath)
125 {
126 LPCTSTR pT;
127
128 for (pT = pPath; *pPath; pPath = CharNext(pPath)) {
129 if ((pPath[0] == TEXT('\\') || pPath[0] == TEXT(':')) && pPath[1] && (pPath[1] != TEXT('\\')))
130 pT = pPath + 1;
131 }
132
133 return (LPTSTR)pT; // const -> non const
134 }
135
136 char *convert3in4to3in3(void *sample_buffer, int samples)
137 {
138 int i;
139 long *sample_buffer24 = (long*)sample_buffer;
140 char *data = malloc(samples*3*sizeof(char));
141
142 for (i = 0; i < samples; i++)
143 {
144 data[i*3] = sample_buffer24[i] & 0xFF;
145 data[i*3+1] = (sample_buffer24[i] >> 8) & 0xFF;
146 data[i*3+2] = (sample_buffer24[i] >> 16) & 0xFF;
147 }
148
149 return data;
150 }
+0
-41
plugins/in_mp4/utils.h less more
0 /*
1 ** FAAD2 - Freeware Advanced Audio (AAC) Decoder including SBR decoding
2 ** Copyright (C) 2003 M. Bakker, Ahead Software AG, http://www.nero.com
3 **
4 ** This program is free software; you can redistribute it and/or modify
5 ** it under the terms of the GNU General Public License as published by
6 ** the Free Software Foundation; either version 2 of the License, or
7 ** (at your option) any later version.
8 **
9 ** This program is distributed in the hope that it will be useful,
10 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ** GNU General Public License for more details.
13 **
14 ** You should have received a copy of the GNU General Public License
15 ** along with this program; if not, write to the Free Software
16 ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 **
18 ** Any non-GPL usage of this software or parts of this software is strictly
19 ** forbidden.
20 **
21 ** Commercial non-GPL licensing of this software is possible.
22 ** For more info contact Ahead Software through Mpeg4AAClicense@nero.com.
23 **
24 ** $Id: utils.h,v 1.4 2004/09/03 19:38:32 menno Exp $
25 **/
26
27 #ifndef UTILS_INCLUDED
28 #define UTILS_INCLUDED
29
30 //#include <mp4.h>
31 #include <mp4ff.h>
32
33 LPTSTR PathFindFileName(LPCTSTR pPath);
34 //int GetVideoTrack(MP4FileHandle infile);
35 //int GetAudioTrack(MP4FileHandle infile);
36 int GetAACTrack(mp4ff_t *infile);
37 int StringComp(char const *str1, char const *str2, unsigned long len);
38 char *convert3in4to3in3(void *sample_buffer, int samples);
39
40 #endif
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = plugins/mpeg4ip
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.in
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
48 am__vpath_adj = case $$p in \
49 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
50 *) f=$$p;; \
51 esac;
52 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
53 am__installdirs = "$(DESTDIR)$(libdir)"
54 libLTLIBRARIES_INSTALL = $(INSTALL)
55 LTLIBRARIES = $(lib_LTLIBRARIES)
56 faad2_plugin_la_DEPENDENCIES = $(top_builddir)/libfaad/libfaad.la
57 am_faad2_plugin_la_OBJECTS = faad2.lo aa_file.lo
58 faad2_plugin_la_OBJECTS = $(am_faad2_plugin_la_OBJECTS)
59 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
60 depcomp = $(SHELL) $(top_srcdir)/depcomp
61 am__depfiles_maybe = depfiles
62 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
63 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
64 LTCXXCOMPILE = $(LIBTOOL) --tag=CXX --mode=compile $(CXX) $(DEFS) \
65 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
66 $(AM_CXXFLAGS) $(CXXFLAGS)
67 CXXLD = $(CXX)
68 CXXLINK = $(LIBTOOL) --tag=CXX --mode=link $(CXXLD) $(AM_CXXFLAGS) \
69 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
70 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
71 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
72 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
73 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
74 $(AM_CFLAGS) $(CFLAGS)
75 CCLD = $(CC)
76 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
77 $(AM_LDFLAGS) $(LDFLAGS) -o $@
78 SOURCES = $(faad2_plugin_la_SOURCES)
79 DIST_SOURCES = $(faad2_plugin_la_SOURCES)
80 ETAGS = etags
81 CTAGS = ctags
82 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
83 ACLOCAL = @ACLOCAL@
84 AMDEP_FALSE = @AMDEP_FALSE@
85 AMDEP_TRUE = @AMDEP_TRUE@
86 AMTAR = @AMTAR@
87 AR = @AR@
88 AUTOCONF = @AUTOCONF@
89 AUTOHEADER = @AUTOHEADER@
90 AUTOMAKE = @AUTOMAKE@
91 AWK = @AWK@
92 CC = @CC@
93 CCDEPMODE = @CCDEPMODE@
94 CFLAGS = @CFLAGS@
95 CPP = @CPP@
96 CPPFLAGS = @CPPFLAGS@
97 CXX = @CXX@
98 CXXCPP = @CXXCPP@
99 CXXDEPMODE = @CXXDEPMODE@
100 CXXFLAGS = @CXXFLAGS@
101 CYGPATH_W = @CYGPATH_W@
102 DEFS = @DEFS@
103 DEPDIR = @DEPDIR@
104 ECHO = @ECHO@
105 ECHO_C = @ECHO_C@
106 ECHO_N = @ECHO_N@
107 ECHO_T = @ECHO_T@
108 EGREP = @EGREP@
109 EXEEXT = @EXEEXT@
110 F77 = @F77@
111 FFLAGS = @FFLAGS@
112 GREP = @GREP@
113 GTK_CONFIG = @GTK_CONFIG@
114 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
115 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
116 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
117 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
118 INSTALL_DATA = @INSTALL_DATA@
119 INSTALL_PROGRAM = @INSTALL_PROGRAM@
120 INSTALL_SCRIPT = @INSTALL_SCRIPT@
121 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
122 LDFLAGS = @LDFLAGS@
123 LIBOBJS = @LIBOBJS@
124 LIBS = @LIBS@
125 LIBTOOL = @LIBTOOL@
126 LIBTOOL_DEPS = @LIBTOOL_DEPS@
127 LN_S = @LN_S@
128 LTLIBOBJS = @LTLIBOBJS@
129 MAKEINFO = @MAKEINFO@
130 MP4FF_LIBS = @MP4FF_LIBS@
131 OBJEXT = @OBJEXT@
132 PACKAGE = @PACKAGE@
133 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
134 PACKAGE_NAME = @PACKAGE_NAME@
135 PACKAGE_STRING = @PACKAGE_STRING@
136 PACKAGE_TARNAME = @PACKAGE_TARNAME@
137 PACKAGE_VERSION = @PACKAGE_VERSION@
138 PATH_SEPARATOR = @PATH_SEPARATOR@
139 RANLIB = @RANLIB@
140 RPMBUILD = @RPMBUILD@
141 SET_MAKE = @SET_MAKE@
142 SHELL = @SHELL@
143 STRIP = @STRIP@
144 VERSION = @VERSION@
145 XMMS_CONFIG = @XMMS_CONFIG@
146 ac_ct_CC = @ac_ct_CC@
147 ac_ct_CXX = @ac_ct_CXX@
148 ac_ct_F77 = @ac_ct_F77@
149 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
150 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
151 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
152 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
153 am__include = @am__include@
154 am__leading_dot = @am__leading_dot@
155 am__quote = @am__quote@
156 am__tar = @am__tar@
157 am__untar = @am__untar@
158 bindir = @bindir@
159 build = @build@
160 build_alias = @build_alias@
161 build_cpu = @build_cpu@
162 build_os = @build_os@
163 build_vendor = @build_vendor@
164 datadir = @datadir@
165 datarootdir = @datarootdir@
166 docdir = @docdir@
167 dvidir = @dvidir@
168 exec_prefix = @exec_prefix@
169 external_mp4v2 = @external_mp4v2@
170 host = @host@
171 host_alias = @host_alias@
172 host_cpu = @host_cpu@
173 host_os = @host_os@
174 host_vendor = @host_vendor@
175 htmldir = @htmldir@
176 includedir = @includedir@
177 infodir = @infodir@
178 install_sh = @install_sh@
179 libdir = @MPEG4IP_PLAYER_PLUGIN_DIR@
180 libexecdir = @libexecdir@
181 localedir = @localedir@
182 localstatedir = @localstatedir@
183 mandir = @mandir@
184 mkdir_p = @mkdir_p@
185 oldincludedir = @oldincludedir@
186 pdfdir = @pdfdir@
187 prefix = @prefix@
188 program_transform_name = @program_transform_name@
189 psdir = @psdir@
190 sbindir = @sbindir@
191 sharedstatedir = @sharedstatedir@
192 sysconfdir = @sysconfdir@
193 target_alias = @target_alias@
194 lib_LTLIBRARIES = faad2_plugin.la
195 faad2_plugin_la_LDFLAGS = -module
196 faad2_plugin_la_SOURCES = \
197 faad2.cpp \
198 faad2.h \
199 aa_file.cpp \
200 aa_file.h
201
202 faad2_plugin_la_LIBADD = \
203 $(top_builddir)/libfaad/libfaad.la \
204 -lm
205
206 INCLUDES = -I$(top_srcdir)/include
207 AM_CFLAGS = -D_REENTRANT -fexceptions
208 AM_CXXFLAGS = -D_REENTRANT -DNOCONTROLS -fexceptions
209 all: all-am
210
211 .SUFFIXES:
212 .SUFFIXES: .cpp .lo .o .obj
213 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
214 @for dep in $?; do \
215 case '$(am__configure_deps)' in \
216 *$$dep*) \
217 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
218 && exit 0; \
219 exit 1;; \
220 esac; \
221 done; \
222 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/mpeg4ip/Makefile'; \
223 cd $(top_srcdir) && \
224 $(AUTOMAKE) --gnu plugins/mpeg4ip/Makefile
225 .PRECIOUS: Makefile
226 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
227 @case '$?' in \
228 *config.status*) \
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
230 *) \
231 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
232 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
233 esac;
234
235 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
237
238 $(top_srcdir)/configure: $(am__configure_deps)
239 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
240 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
241 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
242 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
243 @$(NORMAL_INSTALL)
244 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
245 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
246 if test -f $$p; then \
247 f=$(am__strip_dir) \
248 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
249 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
250 else :; fi; \
251 done
252
253 uninstall-libLTLIBRARIES:
254 @$(NORMAL_UNINSTALL)
255 @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
256 p=$(am__strip_dir) \
257 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
258 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
259 done
260
261 clean-libLTLIBRARIES:
262 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
263 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
264 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
265 test "$$dir" != "$$p" || dir=.; \
266 echo "rm -f \"$${dir}/so_locations\""; \
267 rm -f "$${dir}/so_locations"; \
268 done
269 faad2_plugin.la: $(faad2_plugin_la_OBJECTS) $(faad2_plugin_la_DEPENDENCIES)
270 $(CXXLINK) -rpath $(libdir) $(faad2_plugin_la_LDFLAGS) $(faad2_plugin_la_OBJECTS) $(faad2_plugin_la_LIBADD) $(LIBS)
271
272 mostlyclean-compile:
273 -rm -f *.$(OBJEXT)
274
275 distclean-compile:
276 -rm -f *.tab.c
277
278 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/aa_file.Plo@am__quote@
279 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/faad2.Plo@am__quote@
280
281 .cpp.o:
282 @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
283 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
284 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
285 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
286 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ $<
287
288 .cpp.obj:
289 @am__fastdepCXX_TRUE@ if $(CXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
290 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
291 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
292 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
293 @am__fastdepCXX_FALSE@ $(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
294
295 .cpp.lo:
296 @am__fastdepCXX_TRUE@ if $(LTCXXCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
297 @am__fastdepCXX_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
298 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
299 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
300 @am__fastdepCXX_FALSE@ $(LTCXXCOMPILE) -c -o $@ $<
301
302 mostlyclean-libtool:
303 -rm -f *.lo
304
305 clean-libtool:
306 -rm -rf .libs _libs
307
308 distclean-libtool:
309 -rm -f libtool
310 uninstall-info-am:
311
312 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
313 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
314 unique=`for i in $$list; do \
315 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
316 done | \
317 $(AWK) ' { files[$$0] = 1; } \
318 END { for (i in files) print i; }'`; \
319 mkid -fID $$unique
320 tags: TAGS
321
322 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
323 $(TAGS_FILES) $(LISP)
324 tags=; \
325 here=`pwd`; \
326 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
327 unique=`for i in $$list; do \
328 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
329 done | \
330 $(AWK) ' { files[$$0] = 1; } \
331 END { for (i in files) print i; }'`; \
332 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
333 test -n "$$unique" || unique=$$empty_fix; \
334 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
335 $$tags $$unique; \
336 fi
337 ctags: CTAGS
338 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
339 $(TAGS_FILES) $(LISP)
340 tags=; \
341 here=`pwd`; \
342 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
343 unique=`for i in $$list; do \
344 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
345 done | \
346 $(AWK) ' { files[$$0] = 1; } \
347 END { for (i in files) print i; }'`; \
348 test -z "$(CTAGS_ARGS)$$tags$$unique" \
349 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
350 $$tags $$unique
351
352 GTAGS:
353 here=`$(am__cd) $(top_builddir) && pwd` \
354 && cd $(top_srcdir) \
355 && gtags -i $(GTAGS_ARGS) $$here
356
357 distclean-tags:
358 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
359
360 distdir: $(DISTFILES)
361 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
362 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
363 list='$(DISTFILES)'; for file in $$list; do \
364 case $$file in \
365 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
366 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
367 esac; \
368 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
369 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
370 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
371 dir="/$$dir"; \
372 $(mkdir_p) "$(distdir)$$dir"; \
373 else \
374 dir=''; \
375 fi; \
376 if test -d $$d/$$file; then \
377 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
378 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
379 fi; \
380 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
381 else \
382 test -f $(distdir)/$$file \
383 || cp -p $$d/$$file $(distdir)/$$file \
384 || exit 1; \
385 fi; \
386 done
387 check-am: all-am
388 check: check-am
389 all-am: Makefile $(LTLIBRARIES)
390 installdirs:
391 for dir in "$(DESTDIR)$(libdir)"; do \
392 test -z "$$dir" || $(mkdir_p) "$$dir"; \
393 done
394 install: install-am
395 install-exec: install-exec-am
396 install-data: install-data-am
397 uninstall: uninstall-am
398
399 install-am: all-am
400 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
401
402 installcheck: installcheck-am
403 install-strip:
404 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
405 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
406 `test -z '$(STRIP)' || \
407 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
408 mostlyclean-generic:
409
410 clean-generic:
411
412 distclean-generic:
413 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
414
415 maintainer-clean-generic:
416 @echo "This command is intended for maintainers to use"
417 @echo "it deletes files that may require special tools to rebuild."
418 clean: clean-am
419
420 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
421 mostlyclean-am
422
423 distclean: distclean-am
424 -rm -rf ./$(DEPDIR)
425 -rm -f Makefile
426 distclean-am: clean-am distclean-compile distclean-generic \
427 distclean-libtool distclean-tags
428
429 dvi: dvi-am
430
431 dvi-am:
432
433 html: html-am
434
435 info: info-am
436
437 info-am:
438
439 install-data-am:
440
441 install-exec-am: install-libLTLIBRARIES
442
443 install-info: install-info-am
444
445 install-man:
446
447 installcheck-am:
448
449 maintainer-clean: maintainer-clean-am
450 -rm -rf ./$(DEPDIR)
451 -rm -f Makefile
452 maintainer-clean-am: distclean-am maintainer-clean-generic
453
454 mostlyclean: mostlyclean-am
455
456 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
457 mostlyclean-libtool
458
459 pdf: pdf-am
460
461 pdf-am:
462
463 ps: ps-am
464
465 ps-am:
466
467 uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
468
469 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
470 clean-libLTLIBRARIES clean-libtool ctags distclean \
471 distclean-compile distclean-generic distclean-libtool \
472 distclean-tags distdir dvi dvi-am html html-am info info-am \
473 install install-am install-data install-data-am install-exec \
474 install-exec-am install-info install-info-am \
475 install-libLTLIBRARIES install-man install-strip installcheck \
476 installcheck-am installdirs maintainer-clean \
477 maintainer-clean-generic mostlyclean mostlyclean-compile \
478 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
479 tags uninstall uninstall-am uninstall-info-am \
480 uninstall-libLTLIBRARIES
481
482 # Tell versions [3.59,3.63) of GNU make to not export all variables.
483 # Otherwise a system limit (for SysV at least) may be exceeded.
484 .NOEXPORT:
+0
-107
plugins/mpeg4ip/faad2_plugin.dsp less more
0 # Microsoft Developer Studio Project File - Name="faad2_plugin" - Package Owner=<4>
1 # Microsoft Developer Studio Generated Build File, Format Version 6.00
2 # ** DO NOT EDIT **
3
4 # TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102
5
6 CFG=faad2_plugin - Win32 Debug
7 !MESSAGE This is not a valid makefile. To build this project using NMAKE,
8 !MESSAGE use the Export Makefile command and run
9 !MESSAGE
10 !MESSAGE NMAKE /f "faad2_plugin.mak".
11 !MESSAGE
12 !MESSAGE You can specify a configuration when running NMAKE
13 !MESSAGE by defining the macro CFG on the command line. For example:
14 !MESSAGE
15 !MESSAGE NMAKE /f "faad2_plugin.mak" CFG="faad2_plugin - Win32 Debug"
16 !MESSAGE
17 !MESSAGE Possible choices for configuration are:
18 !MESSAGE
19 !MESSAGE "faad2_plugin - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library")
20 !MESSAGE "faad2_plugin - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library")
21 !MESSAGE
22
23 # Begin Project
24 # PROP AllowPerConfigDependencies 0
25 # PROP Scc_ProjName ""
26 # PROP Scc_LocalPath ""
27 CPP=cl.exe
28 MTL=midl.exe
29 RSC=rc.exe
30
31 !IF "$(CFG)" == "faad2_plugin - Win32 Release"
32
33 # PROP BASE Use_MFC 0
34 # PROP BASE Use_Debug_Libraries 0
35 # PROP BASE Output_Dir "Release"
36 # PROP BASE Intermediate_Dir "Release"
37 # PROP BASE Target_Dir ""
38 # PROP Use_MFC 0
39 # PROP Use_Debug_Libraries 0
40 # PROP Output_Dir "Release"
41 # PROP Intermediate_Dir "Release"
42 # PROP Ignore_Export_Lib 0
43 # PROP Target_Dir ""
44 # ADD BASE CPP /nologo /MT /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /YX /FD /c
45 # ADD CPP /nologo /MD /W3 /GX /O2 /I "../../include" /I "/mpeg4ip/include" /I "/mpeg4ip/player/src" /I "/mpeg4ip/player/lib/mp4util" /I "/mpeg4ip/lib/sdp" /I "/mpeg4ip/lib/SDL/include" /I "/mpeg4ip/lib/mp4v2" /D "_WINDOWS" /D "_WIN32" /D "WIN32" /D "NDEBUG" /YX /FD /I /mpeg4ip/include" /I /mpeg4ip/player/src" /I /mpeg4ip/lib/sdp" /I /mpeg4ip/player/lib/mp4util" /I /mpeg4ip/lib/SDL/include" " " " " " /c
46 # ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
47 # ADD MTL /nologo /D "NDEBUG" /mktyplib203 /o "NUL" /win32
48 # ADD BASE RSC /l 0x409 /d "NDEBUG"
49 # ADD RSC /l 0x409 /d "NDEBUG"
50 BSC32=bscmake.exe
51 # ADD BASE BSC32 /nologo
52 # ADD BSC32 /nologo
53 LINK32=link.exe
54 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /machine:I386
55 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \mpeg4ip\player\lib\mp4util\Release\libmp4util60.lib \mpeg4ip\lib\bitstream\Release\bitstream60.lib /nologo /subsystem:windows /dll /machine:I386 /nodefaultlib:"libcmt.lib" /nodefaultlib:"libc.lib"
56
57 !ELSEIF "$(CFG)" == "faad2_plugin - Win32 Debug"
58
59 # PROP BASE Use_MFC 0
60 # PROP BASE Use_Debug_Libraries 1
61 # PROP BASE Output_Dir "Debug"
62 # PROP BASE Intermediate_Dir "Debug"
63 # PROP BASE Target_Dir ""
64 # PROP Use_MFC 0
65 # PROP Use_Debug_Libraries 1
66 # PROP Output_Dir "Debug"
67 # PROP Intermediate_Dir "Debug"
68 # PROP Ignore_Export_Lib 0
69 # PROP Target_Dir ""
70 # ADD BASE CPP /nologo /MTd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /YX /FD /c
71 # ADD CPP /nologo /MDd /W3 /Gm /GX /Zi /Od /I "../../include" /I "/mpeg4ip/include" /I "/mpeg4ip/player/src" /I "/mpeg4ip/player/lib/mp4util" /I "/mpeg4ip/lib/sdp" /I "/mpeg4ip/lib/SDL/include" /I "/mpeg4ip/lib/mp4v2" /D "_WINDOWS" /D "_WIN32" /D "WIN32" /D "_DEBUG" /YX /FD /I /mpeg4ip/lib/mp4v2" /I /mpeg4ip/lib/SDL" /I /mpeg4ip/include" /I /mpeg4ip/player/src" /I /mpeg4ip/lib/sdp" /I /mpeg4ip/player/lib/mp4util" /I /mpeg4ip/lib/SDL/include" " " " " " " " /c
72 # ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
73 # ADD MTL /nologo /D "_DEBUG" /mktyplib203 /o "NUL" /win32
74 # ADD BASE RSC /l 0x409 /d "_DEBUG"
75 # ADD RSC /l 0x409 /d "_DEBUG"
76 BSC32=bscmake.exe
77 # ADD BASE BSC32 /nologo
78 # ADD BSC32 /nologo
79 LINK32=link.exe
80 # ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /dll /debug /machine:I386 /pdbtype:sept
81 # ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib \mpeg4ip\player\lib\mp4util\Debug\libmp4util60.lib \mpeg4ip\lib\bitstream\Debug\bitstream60.lib /nologo /subsystem:windows /dll /debug /machine:I386 /nodefaultlib:"libcd.lib" /pdbtype:sept
82
83 !ENDIF
84
85 # Begin Target
86
87 # Name "faad2_plugin - Win32 Release"
88 # Name "faad2_plugin - Win32 Debug"
89 # Begin Source File
90
91 SOURCE=.\aa_file.cpp
92 # End Source File
93 # Begin Source File
94
95 SOURCE=.\aa_file.h
96 # End Source File
97 # Begin Source File
98
99 SOURCE=.\faad2.cpp
100 # End Source File
101 # Begin Source File
102
103 SOURCE=.\faad2.h
104 # End Source File
105 # End Target
106 # End Project
+0
-44
plugins/mpeg4ip/faad2_plugin.dsw less more
0 Microsoft Developer Studio Workspace File, Format Version 6.00
1 # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
2
3 ###############################################################################
4
5 Project: "faad2_plugin"=.\faad2_plugin.dsp - Package Owner=<4>
6
7 Package=<5>
8 {{{
9 }}}
10
11 Package=<4>
12 {{{
13 Begin Project Dependency
14 Project_Dep_Name libfaad
15 End Project Dependency
16 }}}
17
18 ###############################################################################
19
20 Project: "libfaad"=..\..\libfaad\libfaad.dsp - Package Owner=<4>
21
22 Package=<5>
23 {{{
24 }}}
25
26 Package=<4>
27 {{{
28 }}}
29
30 ###############################################################################
31
32 Global:
33
34 Package=<5>
35 {{{
36 }}}
37
38 Package=<3>
39 {{{
40 }}}
41
42 ###############################################################################
43
(No changes)
(No changes)
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15 srcdir = @srcdir@
16 top_srcdir = @top_srcdir@
17 VPATH = @srcdir@
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkglibdir = $(libdir)/@PACKAGE@
20 pkgincludedir = $(includedir)/@PACKAGE@
21 top_builddir = ../..
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 INSTALL = @INSTALL@
24 install_sh_DATA = $(install_sh) -c -m 644
25 install_sh_PROGRAM = $(install_sh) -c
26 install_sh_SCRIPT = $(install_sh) -c
27 INSTALL_HEADER = $(INSTALL_DATA)
28 transform = $(program_transform_name)
29 NORMAL_INSTALL = :
30 PRE_INSTALL = :
31 POST_INSTALL = :
32 NORMAL_UNINSTALL = :
33 PRE_UNINSTALL = :
34 POST_UNINSTALL = :
35 build_triplet = @build@
36 host_triplet = @host@
37 subdir = plugins/xmms
38 DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \
39 AUTHORS ChangeLog INSTALL NEWS TODO
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.in
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 SOURCES =
48 DIST_SOURCES =
49 RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
50 html-recursive info-recursive install-data-recursive \
51 install-exec-recursive install-info-recursive \
52 install-recursive installcheck-recursive installdirs-recursive \
53 pdf-recursive ps-recursive uninstall-info-recursive \
54 uninstall-recursive
55 ETAGS = etags
56 CTAGS = ctags
57 DIST_SUBDIRS = $(SUBDIRS)
58 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
59 ACLOCAL = @ACLOCAL@
60 AMDEP_FALSE = @AMDEP_FALSE@
61 AMDEP_TRUE = @AMDEP_TRUE@
62 AMTAR = @AMTAR@
63 AR = @AR@
64 AUTOCONF = @AUTOCONF@
65 AUTOHEADER = @AUTOHEADER@
66 AUTOMAKE = @AUTOMAKE@
67 AWK = @AWK@
68 CC = @CC@
69 CCDEPMODE = @CCDEPMODE@
70 CFLAGS = @CFLAGS@
71 CPP = @CPP@
72 CPPFLAGS = @CPPFLAGS@
73 CXX = @CXX@
74 CXXCPP = @CXXCPP@
75 CXXDEPMODE = @CXXDEPMODE@
76 CXXFLAGS = @CXXFLAGS@
77 CYGPATH_W = @CYGPATH_W@
78 DEFS = @DEFS@
79 DEPDIR = @DEPDIR@
80 ECHO = @ECHO@
81 ECHO_C = @ECHO_C@
82 ECHO_N = @ECHO_N@
83 ECHO_T = @ECHO_T@
84 EGREP = @EGREP@
85 EXEEXT = @EXEEXT@
86 F77 = @F77@
87 FFLAGS = @FFLAGS@
88 GREP = @GREP@
89 GTK_CONFIG = @GTK_CONFIG@
90 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
91 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
92 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
93 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
94 INSTALL_DATA = @INSTALL_DATA@
95 INSTALL_PROGRAM = @INSTALL_PROGRAM@
96 INSTALL_SCRIPT = @INSTALL_SCRIPT@
97 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
98 LDFLAGS = @LDFLAGS@
99 LIBOBJS = @LIBOBJS@
100 LIBS = @LIBS@
101 LIBTOOL = @LIBTOOL@
102 LIBTOOL_DEPS = @LIBTOOL_DEPS@
103 LN_S = @LN_S@
104 LTLIBOBJS = @LTLIBOBJS@
105 MAKEINFO = @MAKEINFO@
106 MP4FF_LIBS = @MP4FF_LIBS@
107 OBJEXT = @OBJEXT@
108 PACKAGE = @PACKAGE@
109 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
110 PACKAGE_NAME = @PACKAGE_NAME@
111 PACKAGE_STRING = @PACKAGE_STRING@
112 PACKAGE_TARNAME = @PACKAGE_TARNAME@
113 PACKAGE_VERSION = @PACKAGE_VERSION@
114 PATH_SEPARATOR = @PATH_SEPARATOR@
115 RANLIB = @RANLIB@
116 RPMBUILD = @RPMBUILD@
117 SET_MAKE = @SET_MAKE@
118 SHELL = @SHELL@
119 STRIP = @STRIP@
120 VERSION = @VERSION@
121 XMMS_CONFIG = @XMMS_CONFIG@
122 ac_ct_CC = @ac_ct_CC@
123 ac_ct_CXX = @ac_ct_CXX@
124 ac_ct_F77 = @ac_ct_F77@
125 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
126 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
127 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
128 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
129 am__include = @am__include@
130 am__leading_dot = @am__leading_dot@
131 am__quote = @am__quote@
132 am__tar = @am__tar@
133 am__untar = @am__untar@
134 bindir = @bindir@
135 build = @build@
136 build_alias = @build_alias@
137 build_cpu = @build_cpu@
138 build_os = @build_os@
139 build_vendor = @build_vendor@
140 datadir = @datadir@
141 datarootdir = @datarootdir@
142 docdir = @docdir@
143 dvidir = @dvidir@
144 exec_prefix = @exec_prefix@
145 external_mp4v2 = @external_mp4v2@
146 host = @host@
147 host_alias = @host_alias@
148 host_cpu = @host_cpu@
149 host_os = @host_os@
150 host_vendor = @host_vendor@
151 htmldir = @htmldir@
152 includedir = @includedir@
153 infodir = @infodir@
154 install_sh = @install_sh@
155 libdir = @libdir@
156 libexecdir = @libexecdir@
157 localedir = @localedir@
158 localstatedir = @localstatedir@
159 mandir = @mandir@
160 mkdir_p = @mkdir_p@
161 oldincludedir = @oldincludedir@
162 pdfdir = @pdfdir@
163 prefix = @prefix@
164 program_transform_name = @program_transform_name@
165 psdir = @psdir@
166 sbindir = @sbindir@
167 sharedstatedir = @sharedstatedir@
168 sysconfdir = @sysconfdir@
169 target_alias = @target_alias@
170 SUBDIRS = src
171 all: all-recursive
172
173 .SUFFIXES:
174 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
175 @for dep in $?; do \
176 case '$(am__configure_deps)' in \
177 *$$dep*) \
178 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
179 && exit 0; \
180 exit 1;; \
181 esac; \
182 done; \
183 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/xmms/Makefile'; \
184 cd $(top_srcdir) && \
185 $(AUTOMAKE) --gnu plugins/xmms/Makefile
186 .PRECIOUS: Makefile
187 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
188 @case '$?' in \
189 *config.status*) \
190 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
191 *) \
192 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
193 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
194 esac;
195
196 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
197 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
198
199 $(top_srcdir)/configure: $(am__configure_deps)
200 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
201 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
202 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
203
204 mostlyclean-libtool:
205 -rm -f *.lo
206
207 clean-libtool:
208 -rm -rf .libs _libs
209
210 distclean-libtool:
211 -rm -f libtool
212 uninstall-info-am:
213
214 # This directory's subdirectories are mostly independent; you can cd
215 # into them and run `make' without going through this Makefile.
216 # To change the values of `make' variables: instead of editing Makefiles,
217 # (1) if the variable is set in `config.status', edit `config.status'
218 # (which will cause the Makefiles to be regenerated when you run `make');
219 # (2) otherwise, pass the desired values on the `make' command line.
220 $(RECURSIVE_TARGETS):
221 @failcom='exit 1'; \
222 for f in x $$MAKEFLAGS; do \
223 case $$f in \
224 *=* | --[!k]*);; \
225 *k*) failcom='fail=yes';; \
226 esac; \
227 done; \
228 dot_seen=no; \
229 target=`echo $@ | sed s/-recursive//`; \
230 list='$(SUBDIRS)'; for subdir in $$list; do \
231 echo "Making $$target in $$subdir"; \
232 if test "$$subdir" = "."; then \
233 dot_seen=yes; \
234 local_target="$$target-am"; \
235 else \
236 local_target="$$target"; \
237 fi; \
238 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
239 || eval $$failcom; \
240 done; \
241 if test "$$dot_seen" = "no"; then \
242 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
243 fi; test -z "$$fail"
244
245 mostlyclean-recursive clean-recursive distclean-recursive \
246 maintainer-clean-recursive:
247 @failcom='exit 1'; \
248 for f in x $$MAKEFLAGS; do \
249 case $$f in \
250 *=* | --[!k]*);; \
251 *k*) failcom='fail=yes';; \
252 esac; \
253 done; \
254 dot_seen=no; \
255 case "$@" in \
256 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
257 *) list='$(SUBDIRS)' ;; \
258 esac; \
259 rev=''; for subdir in $$list; do \
260 if test "$$subdir" = "."; then :; else \
261 rev="$$subdir $$rev"; \
262 fi; \
263 done; \
264 rev="$$rev ."; \
265 target=`echo $@ | sed s/-recursive//`; \
266 for subdir in $$rev; do \
267 echo "Making $$target in $$subdir"; \
268 if test "$$subdir" = "."; then \
269 local_target="$$target-am"; \
270 else \
271 local_target="$$target"; \
272 fi; \
273 (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
274 || eval $$failcom; \
275 done && test -z "$$fail"
276 tags-recursive:
277 list='$(SUBDIRS)'; for subdir in $$list; do \
278 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
279 done
280 ctags-recursive:
281 list='$(SUBDIRS)'; for subdir in $$list; do \
282 test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
283 done
284
285 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
286 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
287 unique=`for i in $$list; do \
288 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
289 done | \
290 $(AWK) ' { files[$$0] = 1; } \
291 END { for (i in files) print i; }'`; \
292 mkid -fID $$unique
293 tags: TAGS
294
295 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
296 $(TAGS_FILES) $(LISP)
297 tags=; \
298 here=`pwd`; \
299 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
300 include_option=--etags-include; \
301 empty_fix=.; \
302 else \
303 include_option=--include; \
304 empty_fix=; \
305 fi; \
306 list='$(SUBDIRS)'; for subdir in $$list; do \
307 if test "$$subdir" = .; then :; else \
308 test ! -f $$subdir/TAGS || \
309 tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
310 fi; \
311 done; \
312 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
313 unique=`for i in $$list; do \
314 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
315 done | \
316 $(AWK) ' { files[$$0] = 1; } \
317 END { for (i in files) print i; }'`; \
318 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
319 test -n "$$unique" || unique=$$empty_fix; \
320 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
321 $$tags $$unique; \
322 fi
323 ctags: CTAGS
324 CTAGS: ctags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
325 $(TAGS_FILES) $(LISP)
326 tags=; \
327 here=`pwd`; \
328 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
329 unique=`for i in $$list; do \
330 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
331 done | \
332 $(AWK) ' { files[$$0] = 1; } \
333 END { for (i in files) print i; }'`; \
334 test -z "$(CTAGS_ARGS)$$tags$$unique" \
335 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
336 $$tags $$unique
337
338 GTAGS:
339 here=`$(am__cd) $(top_builddir) && pwd` \
340 && cd $(top_srcdir) \
341 && gtags -i $(GTAGS_ARGS) $$here
342
343 distclean-tags:
344 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
345
346 distdir: $(DISTFILES)
347 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
348 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
349 list='$(DISTFILES)'; for file in $$list; do \
350 case $$file in \
351 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
352 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
353 esac; \
354 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
355 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
356 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
357 dir="/$$dir"; \
358 $(mkdir_p) "$(distdir)$$dir"; \
359 else \
360 dir=''; \
361 fi; \
362 if test -d $$d/$$file; then \
363 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
364 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
365 fi; \
366 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
367 else \
368 test -f $(distdir)/$$file \
369 || cp -p $$d/$$file $(distdir)/$$file \
370 || exit 1; \
371 fi; \
372 done
373 list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
374 if test "$$subdir" = .; then :; else \
375 test -d "$(distdir)/$$subdir" \
376 || $(mkdir_p) "$(distdir)/$$subdir" \
377 || exit 1; \
378 distdir=`$(am__cd) $(distdir) && pwd`; \
379 top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
380 (cd $$subdir && \
381 $(MAKE) $(AM_MAKEFLAGS) \
382 top_distdir="$$top_distdir" \
383 distdir="$$distdir/$$subdir" \
384 distdir) \
385 || exit 1; \
386 fi; \
387 done
388 check-am: all-am
389 check: check-recursive
390 all-am: Makefile
391 installdirs: installdirs-recursive
392 installdirs-am:
393 install: install-recursive
394 install-exec: install-exec-recursive
395 install-data: install-data-recursive
396 uninstall: uninstall-recursive
397
398 install-am: all-am
399 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
400
401 installcheck: installcheck-recursive
402 install-strip:
403 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
404 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
405 `test -z '$(STRIP)' || \
406 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
407 mostlyclean-generic:
408
409 clean-generic:
410
411 distclean-generic:
412 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
413
414 maintainer-clean-generic:
415 @echo "This command is intended for maintainers to use"
416 @echo "it deletes files that may require special tools to rebuild."
417 clean: clean-recursive
418
419 clean-am: clean-generic clean-libtool mostlyclean-am
420
421 distclean: distclean-recursive
422 -rm -f Makefile
423 distclean-am: clean-am distclean-generic distclean-libtool \
424 distclean-tags
425
426 dvi: dvi-recursive
427
428 dvi-am:
429
430 html: html-recursive
431
432 info: info-recursive
433
434 info-am:
435
436 install-data-am:
437
438 install-exec-am:
439
440 install-info: install-info-recursive
441
442 install-man:
443
444 installcheck-am:
445
446 maintainer-clean: maintainer-clean-recursive
447 -rm -f Makefile
448 maintainer-clean-am: distclean-am maintainer-clean-generic
449
450 mostlyclean: mostlyclean-recursive
451
452 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
453
454 pdf: pdf-recursive
455
456 pdf-am:
457
458 ps: ps-recursive
459
460 ps-am:
461
462 uninstall-am: uninstall-info-am
463
464 uninstall-info: uninstall-info-recursive
465
466 .PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am check check-am \
467 clean clean-generic clean-libtool clean-recursive ctags \
468 ctags-recursive distclean distclean-generic distclean-libtool \
469 distclean-recursive distclean-tags distdir dvi dvi-am html \
470 html-am info info-am install install-am install-data \
471 install-data-am install-exec install-exec-am install-info \
472 install-info-am install-man install-strip installcheck \
473 installcheck-am installdirs installdirs-am maintainer-clean \
474 maintainer-clean-generic maintainer-clean-recursive \
475 mostlyclean mostlyclean-generic mostlyclean-libtool \
476 mostlyclean-recursive pdf pdf-am ps ps-am tags tags-recursive \
477 uninstall uninstall-am uninstall-info-am
478
479 # Tell versions [3.59,3.63) of GNU make to not export all variables.
480 # Otherwise a system limit (for SysV at least) may be exceeded.
481 .NOEXPORT:
(No changes)
(No changes)
(No changes)
66 -I$(top_srcdir)/include -I$(top_srcdir)/common/mp4ff
77
88 libmp4_la_LIBADD = $(top_builddir)/libfaad/libfaad.la \
9 $(top_builddir)/common/mp4ff/libmp4ff.la
9 $(top_builddir)/common/mp4ff/libmp4ff.a
1010
1111 libmp4_la_LDFLAGS = -module -avoid-version $(local_LDFLAGS) -lpthread
1212
0 # Makefile.in generated by automake 1.9.6 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ../../..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 subdir = plugins/xmms/src
39 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
40 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
41 am__aclocal_m4_deps = $(top_srcdir)/configure.in
42 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
43 $(ACLOCAL_M4)
44 mkinstalldirs = $(install_sh) -d
45 CONFIG_HEADER = $(top_builddir)/config.h
46 CONFIG_CLEAN_FILES =
47 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
48 am__vpath_adj = case $$p in \
49 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
50 *) f=$$p;; \
51 esac;
52 am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
53 am__installdirs = "$(DESTDIR)$(libdir)"
54 libLTLIBRARIES_INSTALL = $(INSTALL)
55 LTLIBRARIES = $(lib_LTLIBRARIES)
56 libmp4_la_DEPENDENCIES = $(top_builddir)/libfaad/libfaad.la \
57 $(top_builddir)/common/mp4ff/libmp4ff.a
58 am_libmp4_la_OBJECTS = libmp4_la-libmp4.lo libmp4_la-mp4_utils.lo \
59 libmp4_la-aac_utils.lo
60 libmp4_la_OBJECTS = $(am_libmp4_la_OBJECTS)
61 DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
62 depcomp = $(SHELL) $(top_srcdir)/depcomp
63 am__depfiles_maybe = depfiles
64 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
65 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
66 LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
67 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
68 $(AM_CFLAGS) $(CFLAGS)
69 CCLD = $(CC)
70 LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
71 $(AM_LDFLAGS) $(LDFLAGS) -o $@
72 SOURCES = $(libmp4_la_SOURCES)
73 DIST_SOURCES = $(libmp4_la_SOURCES)
74 ETAGS = etags
75 CTAGS = ctags
76 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
77 ACLOCAL = @ACLOCAL@
78 AMDEP_FALSE = @AMDEP_FALSE@
79 AMDEP_TRUE = @AMDEP_TRUE@
80 AMTAR = @AMTAR@
81 AR = @AR@
82 AUTOCONF = @AUTOCONF@
83 AUTOHEADER = @AUTOHEADER@
84 AUTOMAKE = @AUTOMAKE@
85 AWK = @AWK@
86 CC = @CC@
87 CCDEPMODE = @CCDEPMODE@
88 CFLAGS = @CFLAGS@
89 CPP = @CPP@
90 CPPFLAGS = @CPPFLAGS@
91 CXX = @CXX@
92 CXXCPP = @CXXCPP@
93 CXXDEPMODE = @CXXDEPMODE@
94 CXXFLAGS = @CXXFLAGS@
95 CYGPATH_W = @CYGPATH_W@
96 DEFS = @DEFS@
97 DEPDIR = @DEPDIR@
98 ECHO = @ECHO@
99 ECHO_C = @ECHO_C@
100 ECHO_N = @ECHO_N@
101 ECHO_T = @ECHO_T@
102 EGREP = @EGREP@
103 EXEEXT = @EXEEXT@
104 F77 = @F77@
105 FFLAGS = @FFLAGS@
106 GREP = @GREP@
107 GTK_CONFIG = @GTK_CONFIG@
108 HAVE_MPEG4IP_PLUG_FALSE = @HAVE_MPEG4IP_PLUG_FALSE@
109 HAVE_MPEG4IP_PLUG_TRUE = @HAVE_MPEG4IP_PLUG_TRUE@
110 HAVE_XMMS_FALSE = @HAVE_XMMS_FALSE@
111 HAVE_XMMS_TRUE = @HAVE_XMMS_TRUE@
112 INSTALL_DATA = @INSTALL_DATA@
113 INSTALL_PROGRAM = @INSTALL_PROGRAM@
114 INSTALL_SCRIPT = @INSTALL_SCRIPT@
115 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
116 LDFLAGS = @LDFLAGS@
117 LIBOBJS = @LIBOBJS@
118 LIBS = @LIBS@
119 LIBTOOL = @LIBTOOL@
120 LIBTOOL_DEPS = @LIBTOOL_DEPS@
121 LN_S = @LN_S@
122 LTLIBOBJS = @LTLIBOBJS@
123 MAKEINFO = @MAKEINFO@
124 MP4FF_LIBS = @MP4FF_LIBS@
125 OBJEXT = @OBJEXT@
126 PACKAGE = @PACKAGE@
127 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
128 PACKAGE_NAME = @PACKAGE_NAME@
129 PACKAGE_STRING = @PACKAGE_STRING@
130 PACKAGE_TARNAME = @PACKAGE_TARNAME@
131 PACKAGE_VERSION = @PACKAGE_VERSION@
132 PATH_SEPARATOR = @PATH_SEPARATOR@
133 RANLIB = @RANLIB@
134 RPMBUILD = @RPMBUILD@
135 SET_MAKE = @SET_MAKE@
136 SHELL = @SHELL@
137 STRIP = @STRIP@
138 VERSION = @VERSION@
139 XMMS_CONFIG = @XMMS_CONFIG@
140 ac_ct_CC = @ac_ct_CC@
141 ac_ct_CXX = @ac_ct_CXX@
142 ac_ct_F77 = @ac_ct_F77@
143 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
144 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
145 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
146 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
147 am__include = @am__include@
148 am__leading_dot = @am__leading_dot@
149 am__quote = @am__quote@
150 am__tar = @am__tar@
151 am__untar = @am__untar@
152 bindir = @bindir@
153 build = @build@
154 build_alias = @build_alias@
155 build_cpu = @build_cpu@
156 build_os = @build_os@
157 build_vendor = @build_vendor@
158 datadir = @datadir@
159 datarootdir = @datarootdir@
160 docdir = @docdir@
161 dvidir = @dvidir@
162 exec_prefix = @exec_prefix@
163 external_mp4v2 = @external_mp4v2@
164 host = @host@
165 host_alias = @host_alias@
166 host_cpu = @host_cpu@
167 host_os = @host_os@
168 host_vendor = @host_vendor@
169 htmldir = @htmldir@
170 includedir = @includedir@
171 infodir = @infodir@
172 install_sh = @install_sh@
173 libdir = `$(XMMS_CONFIG) --input-plugin-dir`
174 libexecdir = @libexecdir@
175 localedir = @localedir@
176 localstatedir = @localstatedir@
177 mandir = @mandir@
178 mkdir_p = @mkdir_p@
179 oldincludedir = @oldincludedir@
180 pdfdir = @pdfdir@
181 prefix = @prefix@
182 program_transform_name = @program_transform_name@
183 psdir = @psdir@
184 sbindir = @sbindir@
185 sharedstatedir = @sharedstatedir@
186 sysconfdir = @sysconfdir@
187 target_alias = @target_alias@
188 local_CFLAGS = `$(XMMS_CONFIG) --cflags` -Wall
189 local_LDFLAGS = `$(XMMS_CONFIG) --libs`
190 lib_LTLIBRARIES = libmp4.la
191 libmp4_la_CFLAGS = $(local_CFLAGS) -Wall \
192 -I$(top_srcdir)/include -I$(top_srcdir)/common/mp4ff
193
194 libmp4_la_LIBADD = $(top_builddir)/libfaad/libfaad.la \
195 $(top_builddir)/common/mp4ff/libmp4ff.a
196
197 libmp4_la_LDFLAGS = -module -avoid-version $(local_LDFLAGS) -lpthread
198 libmp4_la_SOURCES = libmp4.c mp4_utils.c aac_utils.c
199 all: all-am
200
201 .SUFFIXES:
202 .SUFFIXES: .c .lo .o .obj
203 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
204 @for dep in $?; do \
205 case '$(am__configure_deps)' in \
206 *$$dep*) \
207 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
208 && exit 0; \
209 exit 1;; \
210 esac; \
211 done; \
212 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu plugins/xmms/src/Makefile'; \
213 cd $(top_srcdir) && \
214 $(AUTOMAKE) --gnu plugins/xmms/src/Makefile
215 .PRECIOUS: Makefile
216 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
217 @case '$?' in \
218 *config.status*) \
219 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
220 *) \
221 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
222 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
223 esac;
224
225 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
226 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
227
228 $(top_srcdir)/configure: $(am__configure_deps)
229 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
230 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
231 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
232 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
233 @$(NORMAL_INSTALL)
234 test -z "$(libdir)" || $(mkdir_p) "$(DESTDIR)$(libdir)"
235 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
236 if test -f $$p; then \
237 f=$(am__strip_dir) \
238 echo " $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) '$$p' '$(DESTDIR)$(libdir)/$$f'"; \
239 $(LIBTOOL) --mode=install $(libLTLIBRARIES_INSTALL) $(INSTALL_STRIP_FLAG) "$$p" "$(DESTDIR)$(libdir)/$$f"; \
240 else :; fi; \
241 done
242
243 uninstall-libLTLIBRARIES:
244 @$(NORMAL_UNINSTALL)
245 @set -x; list='$(lib_LTLIBRARIES)'; for p in $$list; do \
246 p=$(am__strip_dir) \
247 echo " $(LIBTOOL) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$p'"; \
248 $(LIBTOOL) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$p"; \
249 done
250
251 clean-libLTLIBRARIES:
252 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
253 @list='$(lib_LTLIBRARIES)'; for p in $$list; do \
254 dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \
255 test "$$dir" != "$$p" || dir=.; \
256 echo "rm -f \"$${dir}/so_locations\""; \
257 rm -f "$${dir}/so_locations"; \
258 done
259 libmp4.la: $(libmp4_la_OBJECTS) $(libmp4_la_DEPENDENCIES)
260 $(LINK) -rpath $(libdir) $(libmp4_la_LDFLAGS) $(libmp4_la_OBJECTS) $(libmp4_la_LIBADD) $(LIBS)
261
262 mostlyclean-compile:
263 -rm -f *.$(OBJEXT)
264
265 distclean-compile:
266 -rm -f *.tab.c
267
268 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4_la-aac_utils.Plo@am__quote@
269 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4_la-libmp4.Plo@am__quote@
270 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libmp4_la-mp4_utils.Plo@am__quote@
271
272 .c.o:
273 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
274 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
275 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
276 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
277 @am__fastdepCC_FALSE@ $(COMPILE) -c $<
278
279 .c.obj:
280 @am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
281 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
282 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
283 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
284 @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
285
286 .c.lo:
287 @am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
288 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
289 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
290 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
291 @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
292
293 libmp4_la-libmp4.lo: libmp4.c
294 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -MT libmp4_la-libmp4.lo -MD -MP -MF "$(DEPDIR)/libmp4_la-libmp4.Tpo" -c -o libmp4_la-libmp4.lo `test -f 'libmp4.c' || echo '$(srcdir)/'`libmp4.c; \
295 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4_la-libmp4.Tpo" "$(DEPDIR)/libmp4_la-libmp4.Plo"; else rm -f "$(DEPDIR)/libmp4_la-libmp4.Tpo"; exit 1; fi
296 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='libmp4.c' object='libmp4_la-libmp4.lo' libtool=yes @AMDEPBACKSLASH@
297 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
298 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -c -o libmp4_la-libmp4.lo `test -f 'libmp4.c' || echo '$(srcdir)/'`libmp4.c
299
300 libmp4_la-mp4_utils.lo: mp4_utils.c
301 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -MT libmp4_la-mp4_utils.lo -MD -MP -MF "$(DEPDIR)/libmp4_la-mp4_utils.Tpo" -c -o libmp4_la-mp4_utils.lo `test -f 'mp4_utils.c' || echo '$(srcdir)/'`mp4_utils.c; \
302 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4_la-mp4_utils.Tpo" "$(DEPDIR)/libmp4_la-mp4_utils.Plo"; else rm -f "$(DEPDIR)/libmp4_la-mp4_utils.Tpo"; exit 1; fi
303 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='mp4_utils.c' object='libmp4_la-mp4_utils.lo' libtool=yes @AMDEPBACKSLASH@
304 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
305 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -c -o libmp4_la-mp4_utils.lo `test -f 'mp4_utils.c' || echo '$(srcdir)/'`mp4_utils.c
306
307 libmp4_la-aac_utils.lo: aac_utils.c
308 @am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -MT libmp4_la-aac_utils.lo -MD -MP -MF "$(DEPDIR)/libmp4_la-aac_utils.Tpo" -c -o libmp4_la-aac_utils.lo `test -f 'aac_utils.c' || echo '$(srcdir)/'`aac_utils.c; \
309 @am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libmp4_la-aac_utils.Tpo" "$(DEPDIR)/libmp4_la-aac_utils.Plo"; else rm -f "$(DEPDIR)/libmp4_la-aac_utils.Tpo"; exit 1; fi
310 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='aac_utils.c' object='libmp4_la-aac_utils.lo' libtool=yes @AMDEPBACKSLASH@
311 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
312 @am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libmp4_la_CFLAGS) $(CFLAGS) -c -o libmp4_la-aac_utils.lo `test -f 'aac_utils.c' || echo '$(srcdir)/'`aac_utils.c
313
314 mostlyclean-libtool:
315 -rm -f *.lo
316
317 clean-libtool:
318 -rm -rf .libs _libs
319
320 distclean-libtool:
321 -rm -f libtool
322 uninstall-info-am:
323
324 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
325 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
326 unique=`for i in $$list; do \
327 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
328 done | \
329 $(AWK) ' { files[$$0] = 1; } \
330 END { for (i in files) print i; }'`; \
331 mkid -fID $$unique
332 tags: TAGS
333
334 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
335 $(TAGS_FILES) $(LISP)
336 tags=; \
337 here=`pwd`; \
338 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
339 unique=`for i in $$list; do \
340 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
341 done | \
342 $(AWK) ' { files[$$0] = 1; } \
343 END { for (i in files) print i; }'`; \
344 if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
345 test -n "$$unique" || unique=$$empty_fix; \
346 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
347 $$tags $$unique; \
348 fi
349 ctags: CTAGS
350 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
351 $(TAGS_FILES) $(LISP)
352 tags=; \
353 here=`pwd`; \
354 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
355 unique=`for i in $$list; do \
356 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
357 done | \
358 $(AWK) ' { files[$$0] = 1; } \
359 END { for (i in files) print i; }'`; \
360 test -z "$(CTAGS_ARGS)$$tags$$unique" \
361 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
362 $$tags $$unique
363
364 GTAGS:
365 here=`$(am__cd) $(top_builddir) && pwd` \
366 && cd $(top_srcdir) \
367 && gtags -i $(GTAGS_ARGS) $$here
368
369 distclean-tags:
370 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
371
372 distdir: $(DISTFILES)
373 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
374 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
375 list='$(DISTFILES)'; for file in $$list; do \
376 case $$file in \
377 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
378 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
379 esac; \
380 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
381 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
382 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
383 dir="/$$dir"; \
384 $(mkdir_p) "$(distdir)$$dir"; \
385 else \
386 dir=''; \
387 fi; \
388 if test -d $$d/$$file; then \
389 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
390 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
391 fi; \
392 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
393 else \
394 test -f $(distdir)/$$file \
395 || cp -p $$d/$$file $(distdir)/$$file \
396 || exit 1; \
397 fi; \
398 done
399 check-am: all-am
400 check: check-am
401 all-am: Makefile $(LTLIBRARIES)
402 installdirs:
403 for dir in "$(DESTDIR)$(libdir)"; do \
404 test -z "$$dir" || $(mkdir_p) "$$dir"; \
405 done
406 install: install-am
407 install-exec: install-exec-am
408 install-data: install-data-am
409 uninstall: uninstall-am
410
411 install-am: all-am
412 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
413
414 installcheck: installcheck-am
415 install-strip:
416 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
417 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
418 `test -z '$(STRIP)' || \
419 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
420 mostlyclean-generic:
421
422 clean-generic:
423
424 distclean-generic:
425 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
426
427 maintainer-clean-generic:
428 @echo "This command is intended for maintainers to use"
429 @echo "it deletes files that may require special tools to rebuild."
430 clean: clean-am
431
432 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
433 mostlyclean-am
434
435 distclean: distclean-am
436 -rm -rf ./$(DEPDIR)
437 -rm -f Makefile
438 distclean-am: clean-am distclean-compile distclean-generic \
439 distclean-libtool distclean-tags
440
441 dvi: dvi-am
442
443 dvi-am:
444
445 html: html-am
446
447 info: info-am
448
449 info-am:
450
451 install-data-am:
452
453 install-exec-am: install-libLTLIBRARIES
454
455 install-info: install-info-am
456
457 install-man:
458
459 installcheck-am:
460
461 maintainer-clean: maintainer-clean-am
462 -rm -rf ./$(DEPDIR)
463 -rm -f Makefile
464 maintainer-clean-am: distclean-am maintainer-clean-generic
465
466 mostlyclean: mostlyclean-am
467
468 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
469 mostlyclean-libtool
470
471 pdf: pdf-am
472
473 pdf-am:
474
475 ps: ps-am
476
477 ps-am:
478
479 uninstall-am: uninstall-info-am uninstall-libLTLIBRARIES
480
481 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
482 clean-libLTLIBRARIES clean-libtool ctags distclean \
483 distclean-compile distclean-generic distclean-libtool \
484 distclean-tags distdir dvi dvi-am html html-am info info-am \
485 install install-am install-data install-data-am install-exec \
486 install-exec-am install-info install-info-am \
487 install-libLTLIBRARIES install-man install-strip installcheck \
488 installcheck-am installdirs maintainer-clean \
489 maintainer-clean-generic mostlyclean mostlyclean-compile \
490 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
491 tags uninstall uninstall-am uninstall-info-am \
492 uninstall-libLTLIBRARIES
493
494 # Tell versions [3.59,3.63) of GNU make to not export all variables.
495 # Otherwise a system limit (for SysV at least) may be exceeded.
496 .NOEXPORT: