Codebase list libde265 / 6a01d30
Import upstream version 1.0.8+git20210503.1.900772c Debian Janitor 2 years ago
49 changed file(s) with 782 addition(s) and 58807 deletion(s). Raw diff Collapse all Expand all
0 .deps
1 .libs
2 .dirstamp
3 .gitignore
4 *.o
5 *.lo
6 *~
7 Makefile
8 Makefile.in
9 config.log
10 config.h
11 config.h.in
12 config.status
13 config.guess
14 config.sub
15 stamp-h1
16 configure
17 *.obj
18 *.la
19 de265-config.h
20 libde265.pc
21
22 # MSVC
23 *.sln
24 *.ncb
25 *.suo
26 *.vcproj*
27
28 # Automake generated files
29 /m4/libtool.m4
30 /m4/ltoptions.m4
31 /m4/ltsugar.m4
32 /m4/ltversion.m4
33 /m4/lt~obsolete.m4
34 /aclocal.m4
35 /ar-lib
36 /autom4te.cache/
37 /missing
38 /install-sh
39 /INSTALL
40 /test-driver
41 /compile
42 /depcomp
43 /libtool
44 /ltmain.sh
45 /stamp-h1
46 /test-suite.log
47
48 # ctags
49 tags
50
51 # other
52 acceleration-speed/acceleration_speed
53 dec265/dec265
54 dec265/hdrcopy
55 enc265/enc265
56 libde265/de265-version.h
57 sherlock265/sherlock265
58 tools/bjoentegaard
59 tools/block-rate-estim
60 tools/gen-enc-table
61 tools/rd-curves
62 tools/tests
63 tools/yuv-distortion
1919 include(GNUInstallDirs)
2020 include(CheckFunctionExists)
2121
22 find_package(SDL)
22 option(ENABLE_SDL "Enable SDL" ON)
23
24 if (ENABLE_SDL)
25 find_package(SDL)
26 endif()
27
2328 find_package(Threads REQUIRED)
2429
2530 CHECK_INCLUDE_FILE(malloc.h HAVE_MALLOC_H)
+0
-368
INSTALL less more
0 Installation Instructions
1 *************************
2
3 Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software
4 Foundation, Inc.
5
6 Copying and distribution of this file, with or without modification,
7 are permitted in any medium without royalty provided the copyright
8 notice and this notice are preserved. This file is offered as-is,
9 without warranty of any kind.
10
11 Basic Installation
12 ==================
13
14 Briefly, the shell command './configure && make && make install'
15 should configure, build, and install this package. The following
16 more-detailed instructions are generic; see the 'README' file for
17 instructions specific to this package. Some packages provide this
18 'INSTALL' file but do not implement all of the features documented
19 below. The lack of an optional feature in a given package is not
20 necessarily a bug. More recommendations for GNU packages can be found
21 in *note Makefile Conventions: (standards)Makefile Conventions.
22
23 The 'configure' shell script attempts to guess correct values for
24 various system-dependent variables used during compilation. It uses
25 those values to create a 'Makefile' in each directory of the package.
26 It may also create one or more '.h' files containing system-dependent
27 definitions. Finally, it creates a shell script 'config.status' that
28 you can run in the future to recreate the current configuration, and a
29 file 'config.log' containing compiler output (useful mainly for
30 debugging 'configure').
31
32 It can also use an optional file (typically called 'config.cache' and
33 enabled with '--cache-file=config.cache' or simply '-C') that saves the
34 results of its tests to speed up reconfiguring. Caching is disabled by
35 default to prevent problems with accidental use of stale cache files.
36
37 If you need to do unusual things to compile the package, please try
38 to figure out how 'configure' could check whether to do them, and mail
39 diffs or instructions to the address given in the 'README' so they can
40 be considered for the next release. If you are using the cache, and at
41 some point 'config.cache' contains results you don't want to keep, you
42 may remove or edit it.
43
44 The file 'configure.ac' (or 'configure.in') is used to create
45 'configure' by a program called 'autoconf'. You need 'configure.ac' if
46 you want to change it or regenerate 'configure' using a newer version of
47 'autoconf'.
48
49 The simplest way to compile this package is:
50
51 1. 'cd' to the directory containing the package's source code and type
52 './configure' to configure the package for your system.
53
54 Running 'configure' might take a while. While running, it prints
55 some messages telling which features it is checking for.
56
57 2. Type 'make' to compile the package.
58
59 3. Optionally, type 'make check' to run any self-tests that come with
60 the package, generally using the just-built uninstalled binaries.
61
62 4. Type 'make install' to install the programs and any data files and
63 documentation. When installing into a prefix owned by root, it is
64 recommended that the package be configured and built as a regular
65 user, and only the 'make install' phase executed with root
66 privileges.
67
68 5. Optionally, type 'make installcheck' to repeat any self-tests, but
69 this time using the binaries in their final installed location.
70 This target does not install anything. Running this target as a
71 regular user, particularly if the prior 'make install' required
72 root privileges, verifies that the installation completed
73 correctly.
74
75 6. You can remove the program binaries and object files from the
76 source code directory by typing 'make clean'. To also remove the
77 files that 'configure' created (so you can compile the package for
78 a different kind of computer), type 'make distclean'. There is
79 also a 'make maintainer-clean' target, but that is intended mainly
80 for the package's developers. If you use it, you may have to get
81 all sorts of other programs in order to regenerate files that came
82 with the distribution.
83
84 7. Often, you can also type 'make uninstall' to remove the installed
85 files again. In practice, not all packages have tested that
86 uninstallation works correctly, even though it is required by the
87 GNU Coding Standards.
88
89 8. Some packages, particularly those that use Automake, provide 'make
90 distcheck', which can by used by developers to test that all other
91 targets like 'make install' and 'make uninstall' work correctly.
92 This target is generally not run by end users.
93
94 Compilers and Options
95 =====================
96
97 Some systems require unusual options for compilation or linking that
98 the 'configure' script does not know about. Run './configure --help'
99 for details on some of the pertinent environment variables.
100
101 You can give 'configure' initial values for configuration parameters
102 by setting variables in the command line or in the environment. Here is
103 an example:
104
105 ./configure CC=c99 CFLAGS=-g LIBS=-lposix
106
107 *Note Defining Variables::, for more details.
108
109 Compiling For Multiple Architectures
110 ====================================
111
112 You can compile the package for more than one kind of computer at the
113 same time, by placing the object files for each architecture in their
114 own directory. To do this, you can use GNU 'make'. 'cd' to the
115 directory where you want the object files and executables to go and run
116 the 'configure' script. 'configure' automatically checks for the source
117 code in the directory that 'configure' is in and in '..'. This is known
118 as a "VPATH" build.
119
120 With a non-GNU 'make', it is safer to compile the package for one
121 architecture at a time in the source code directory. After you have
122 installed the package for one architecture, use 'make distclean' before
123 reconfiguring for another architecture.
124
125 On MacOS X 10.5 and later systems, you can create libraries and
126 executables that work on multiple system types--known as "fat" or
127 "universal" binaries--by specifying multiple '-arch' options to the
128 compiler but only a single '-arch' option to the preprocessor. Like
129 this:
130
131 ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
132 CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
133 CPP="gcc -E" CXXCPP="g++ -E"
134
135 This is not guaranteed to produce working output in all cases, you
136 may have to build one architecture at a time and combine the results
137 using the 'lipo' tool if you have problems.
138
139 Installation Names
140 ==================
141
142 By default, 'make install' installs the package's commands under
143 '/usr/local/bin', include files under '/usr/local/include', etc. You
144 can specify an installation prefix other than '/usr/local' by giving
145 'configure' the option '--prefix=PREFIX', where PREFIX must be an
146 absolute file name.
147
148 You can specify separate installation prefixes for
149 architecture-specific files and architecture-independent files. If you
150 pass the option '--exec-prefix=PREFIX' to 'configure', the package uses
151 PREFIX as the prefix for installing programs and libraries.
152 Documentation and other data files still use the regular prefix.
153
154 In addition, if you use an unusual directory layout you can give
155 options like '--bindir=DIR' to specify different values for particular
156 kinds of files. Run 'configure --help' for a list of the directories
157 you can set and what kinds of files go in them. In general, the default
158 for these options is expressed in terms of '${prefix}', so that
159 specifying just '--prefix' will affect all of the other directory
160 specifications that were not explicitly provided.
161
162 The most portable way to affect installation locations is to pass the
163 correct locations to 'configure'; however, many packages provide one or
164 both of the following shortcuts of passing variable assignments to the
165 'make install' command line to change installation locations without
166 having to reconfigure or recompile.
167
168 The first method involves providing an override variable for each
169 affected directory. For example, 'make install
170 prefix=/alternate/directory' will choose an alternate location for all
171 directory configuration variables that were expressed in terms of
172 '${prefix}'. Any directories that were specified during 'configure',
173 but not in terms of '${prefix}', must each be overridden at install time
174 for the entire installation to be relocated. The approach of makefile
175 variable overrides for each directory variable is required by the GNU
176 Coding Standards, and ideally causes no recompilation. However, some
177 platforms have known limitations with the semantics of shared libraries
178 that end up requiring recompilation when using this method, particularly
179 noticeable in packages that use GNU Libtool.
180
181 The second method involves providing the 'DESTDIR' variable. For
182 example, 'make install DESTDIR=/alternate/directory' will prepend
183 '/alternate/directory' before all installation names. The approach of
184 'DESTDIR' overrides is not required by the GNU Coding Standards, and
185 does not work on platforms that have drive letters. On the other hand,
186 it does better at avoiding recompilation issues, and works well even
187 when some directory options were not specified in terms of '${prefix}'
188 at 'configure' time.
189
190 Optional Features
191 =================
192
193 If the package supports it, you can cause programs to be installed
194 with an extra prefix or suffix on their names by giving 'configure' the
195 option '--program-prefix=PREFIX' or '--program-suffix=SUFFIX'.
196
197 Some packages pay attention to '--enable-FEATURE' options to
198 'configure', where FEATURE indicates an optional part of the package.
199 They may also pay attention to '--with-PACKAGE' options, where PACKAGE
200 is something like 'gnu-as' or 'x' (for the X Window System). The
201 'README' should mention any '--enable-' and '--with-' options that the
202 package recognizes.
203
204 For packages that use the X Window System, 'configure' can usually
205 find the X include and library files automatically, but if it doesn't,
206 you can use the 'configure' options '--x-includes=DIR' and
207 '--x-libraries=DIR' to specify their locations.
208
209 Some packages offer the ability to configure how verbose the
210 execution of 'make' will be. For these packages, running './configure
211 --enable-silent-rules' sets the default to minimal output, which can be
212 overridden with 'make V=1'; while running './configure
213 --disable-silent-rules' sets the default to verbose, which can be
214 overridden with 'make V=0'.
215
216 Particular systems
217 ==================
218
219 On HP-UX, the default C compiler is not ANSI C compatible. If GNU CC
220 is not installed, it is recommended to use the following options in
221 order to use an ANSI C compiler:
222
223 ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
224
225 and if that doesn't work, install pre-built binaries of GCC for HP-UX.
226
227 HP-UX 'make' updates targets which have the same time stamps as their
228 prerequisites, which makes it generally unusable when shipped generated
229 files such as 'configure' are involved. Use GNU 'make' instead.
230
231 On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
232 parse its '<wchar.h>' header file. The option '-nodtk' can be used as a
233 workaround. If GNU CC is not installed, it is therefore recommended to
234 try
235
236 ./configure CC="cc"
237
238 and if that doesn't work, try
239
240 ./configure CC="cc -nodtk"
241
242 On Solaris, don't put '/usr/ucb' early in your 'PATH'. This
243 directory contains several dysfunctional programs; working variants of
244 these programs are available in '/usr/bin'. So, if you need '/usr/ucb'
245 in your 'PATH', put it _after_ '/usr/bin'.
246
247 On Haiku, software installed for all users goes in '/boot/common',
248 not '/usr/local'. It is recommended to use the following options:
249
250 ./configure --prefix=/boot/common
251
252 Specifying the System Type
253 ==========================
254
255 There may be some features 'configure' cannot figure out
256 automatically, but needs to determine by the type of machine the package
257 will run on. Usually, assuming the package is built to be run on the
258 _same_ architectures, 'configure' can figure that out, but if it prints
259 a message saying it cannot guess the machine type, give it the
260 '--build=TYPE' option. TYPE can either be a short name for the system
261 type, such as 'sun4', or a canonical name which has the form:
262
263 CPU-COMPANY-SYSTEM
264
265 where SYSTEM can have one of these forms:
266
267 OS
268 KERNEL-OS
269
270 See the file 'config.sub' for the possible values of each field. If
271 'config.sub' isn't included in this package, then this package doesn't
272 need to know the machine type.
273
274 If you are _building_ compiler tools for cross-compiling, you should
275 use the option '--target=TYPE' to select the type of system they will
276 produce code for.
277
278 If you want to _use_ a cross compiler, that generates code for a
279 platform different from the build platform, you should specify the
280 "host" platform (i.e., that on which the generated programs will
281 eventually be run) with '--host=TYPE'.
282
283 Sharing Defaults
284 ================
285
286 If you want to set default values for 'configure' scripts to share,
287 you can create a site shell script called 'config.site' that gives
288 default values for variables like 'CC', 'cache_file', and 'prefix'.
289 'configure' looks for 'PREFIX/share/config.site' if it exists, then
290 'PREFIX/etc/config.site' if it exists. Or, you can set the
291 'CONFIG_SITE' environment variable to the location of the site script.
292 A warning: not all 'configure' scripts look for a site script.
293
294 Defining Variables
295 ==================
296
297 Variables not defined in a site shell script can be set in the
298 environment passed to 'configure'. However, some packages may run
299 configure again during the build, and the customized values of these
300 variables may be lost. In order to avoid this problem, you should set
301 them in the 'configure' command line, using 'VAR=value'. For example:
302
303 ./configure CC=/usr/local2/bin/gcc
304
305 causes the specified 'gcc' to be used as the C compiler (unless it is
306 overridden in the site shell script).
307
308 Unfortunately, this technique does not work for 'CONFIG_SHELL' due to an
309 Autoconf limitation. Until the limitation is lifted, you can use this
310 workaround:
311
312 CONFIG_SHELL=/bin/bash ./configure CONFIG_SHELL=/bin/bash
313
314 'configure' Invocation
315 ======================
316
317 'configure' recognizes the following options to control how it
318 operates.
319
320 '--help'
321 '-h'
322 Print a summary of all of the options to 'configure', and exit.
323
324 '--help=short'
325 '--help=recursive'
326 Print a summary of the options unique to this package's
327 'configure', and exit. The 'short' variant lists options used only
328 in the top level, while the 'recursive' variant lists options also
329 present in any nested packages.
330
331 '--version'
332 '-V'
333 Print the version of Autoconf used to generate the 'configure'
334 script, and exit.
335
336 '--cache-file=FILE'
337 Enable the cache: use and save the results of the tests in FILE,
338 traditionally 'config.cache'. FILE defaults to '/dev/null' to
339 disable caching.
340
341 '--config-cache'
342 '-C'
343 Alias for '--cache-file=config.cache'.
344
345 '--quiet'
346 '--silent'
347 '-q'
348 Do not print messages saying which checks are being made. To
349 suppress all normal output, redirect it to '/dev/null' (any error
350 messages will still be shown).
351
352 '--srcdir=DIR'
353 Look for the package's source code in directory DIR. Usually
354 'configure' can determine that directory automatically.
355
356 '--prefix=DIR'
357 Use DIR as the installation prefix. *note Installation Names:: for
358 more details, including other options available for fine-tuning the
359 installation locations.
360
361 '--no-create'
362 '-n'
363 Run the configure checks, but stop before creating any output
364 files.
365
366 'configure' also accepts some other, not widely useful, options. Run
367 'configure --help' for more details.
+0
-920
Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91 @ENABLE_DEC265_TRUE@am__append_1 = dec265
92 @ENABLE_ENCODER_TRUE@am__append_2 = enc265
93 @ENABLE_SHERLOCK265_TRUE@am__append_3 = sherlock265
94 subdir = .
95 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
96 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
97 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
98 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
99 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
100 $(top_srcdir)/m4/lt~obsolete.m4 \
101 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
102 $(top_srcdir)/configure.ac
103 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
104 $(ACLOCAL_M4)
105 DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
106 $(am__configure_deps) $(am__DIST_COMMON)
107 am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
108 configure.lineno config.status.lineno
109 mkinstalldirs = $(install_sh) -d
110 CONFIG_HEADER = config.h
111 CONFIG_CLEAN_FILES = libde265.pc
112 CONFIG_CLEAN_VPATH_FILES =
113 AM_V_P = $(am__v_P_@AM_V@)
114 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
115 am__v_P_0 = false
116 am__v_P_1 = :
117 AM_V_GEN = $(am__v_GEN_@AM_V@)
118 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
119 am__v_GEN_0 = @echo " GEN " $@;
120 am__v_GEN_1 =
121 AM_V_at = $(am__v_at_@AM_V@)
122 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
123 am__v_at_0 = @
124 am__v_at_1 =
125 SOURCES =
126 DIST_SOURCES =
127 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
128 ctags-recursive dvi-recursive html-recursive info-recursive \
129 install-data-recursive install-dvi-recursive \
130 install-exec-recursive install-html-recursive \
131 install-info-recursive install-pdf-recursive \
132 install-ps-recursive install-recursive installcheck-recursive \
133 installdirs-recursive pdf-recursive ps-recursive \
134 tags-recursive uninstall-recursive
135 am__can_run_installinfo = \
136 case $$AM_UPDATE_INFO_DIR in \
137 n|no|NO) false;; \
138 *) (install-info --version) >/dev/null 2>&1;; \
139 esac
140 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
141 am__vpath_adj = case $$p in \
142 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
143 *) f=$$p;; \
144 esac;
145 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
146 am__install_max = 40
147 am__nobase_strip_setup = \
148 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
149 am__nobase_strip = \
150 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
151 am__nobase_list = $(am__nobase_strip_setup); \
152 for p in $$list; do echo "$$p $$p"; done | \
153 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
154 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
155 if (++n[$$2] == $(am__install_max)) \
156 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
157 END { for (dir in files) print dir, files[dir] }'
158 am__base_list = \
159 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
160 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
161 am__uninstall_files_from_dir = { \
162 test -z "$$files" \
163 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
164 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
165 $(am__cd) "$$dir" && rm -f $$files; }; \
166 }
167 am__installdirs = "$(DESTDIR)$(pkgconfigdir)"
168 DATA = $(pkgconfig_DATA)
169 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
170 distclean-recursive maintainer-clean-recursive
171 am__recursive_targets = \
172 $(RECURSIVE_TARGETS) \
173 $(RECURSIVE_CLEAN_TARGETS) \
174 $(am__extra_recursive_targets)
175 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
176 cscope distdir dist dist-all distcheck
177 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \
178 $(LISP)config.h.in
179 # Read a list of newline-separated strings from the standard input,
180 # and print each of them once, without duplicates. Input order is
181 # *not* preserved.
182 am__uniquify_input = $(AWK) '\
183 BEGIN { nonempty = 0; } \
184 { items[$$0] = 1; nonempty = 1; } \
185 END { if (nonempty) { for (i in items) print i; }; } \
186 '
187 # Make sure the list of sources is unique. This is necessary because,
188 # e.g., the same source file might be shared among _SOURCES variables
189 # for different programs/libraries.
190 am__define_uniq_tagged_files = \
191 list='$(am__tagged_files)'; \
192 unique=`for i in $$list; do \
193 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
194 done | $(am__uniquify_input)`
195 ETAGS = etags
196 CTAGS = ctags
197 CSCOPE = cscope
198 DIST_SUBDIRS = libde265 dec265 enc265 tools acceleration-speed \
199 sherlock265
200 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
201 $(srcdir)/libde265.pc.in AUTHORS COPYING ChangeLog INSTALL \
202 NEWS README compile config.guess config.sub depcomp install-sh \
203 ltmain.sh missing
204 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
205 distdir = $(PACKAGE)-$(VERSION)
206 top_distdir = $(distdir)
207 am__remove_distdir = \
208 if test -d "$(distdir)"; then \
209 find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
210 && rm -rf "$(distdir)" \
211 || { sleep 5 && rm -rf "$(distdir)"; }; \
212 else :; fi
213 am__post_remove_distdir = $(am__remove_distdir)
214 am__relativize = \
215 dir0=`pwd`; \
216 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
217 sed_rest='s,^[^/]*/*,,'; \
218 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
219 sed_butlast='s,/*[^/]*$$,,'; \
220 while test -n "$$dir1"; do \
221 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
222 if test "$$first" != "."; then \
223 if test "$$first" = ".."; then \
224 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
225 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
226 else \
227 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
228 if test "$$first2" = "$$first"; then \
229 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
230 else \
231 dir2="../$$dir2"; \
232 fi; \
233 dir0="$$dir0"/"$$first"; \
234 fi; \
235 fi; \
236 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
237 done; \
238 reldir="$$dir2"
239 DIST_ARCHIVES = $(distdir).tar.gz
240 GZIP_ENV = --best
241 DIST_TARGETS = dist-gzip
242 distuninstallcheck_listfiles = find . -type f -print
243 am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
244 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
245 distcleancheck_listfiles = find . -type f -print
246 ACLOCAL = @ACLOCAL@
247 ALLOCA = @ALLOCA@
248 AMTAR = @AMTAR@
249 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
250 AR = @AR@
251 AUTOCONF = @AUTOCONF@
252 AUTOHEADER = @AUTOHEADER@
253 AUTOMAKE = @AUTOMAKE@
254 AWK = @AWK@
255 CC = @CC@
256 CCAS = @CCAS@
257 CCASDEPMODE = @CCASDEPMODE@
258 CCASFLAGS = @CCASFLAGS@
259 CCDEPMODE = @CCDEPMODE@
260 CFLAGS = @CFLAGS@
261 CPP = @CPP@
262 CPPFLAGS = @CPPFLAGS@
263 CXX = @CXX@
264 CXXCPP = @CXXCPP@
265 CXXDEPMODE = @CXXDEPMODE@
266 CXXFLAGS = @CXXFLAGS@
267 CYGPATH_W = @CYGPATH_W@
268 DEFS = @DEFS@
269 DEPDIR = @DEPDIR@
270 DLLTOOL = @DLLTOOL@
271 DSYMUTIL = @DSYMUTIL@
272 DUMPBIN = @DUMPBIN@
273 ECHO_C = @ECHO_C@
274 ECHO_N = @ECHO_N@
275 ECHO_T = @ECHO_T@
276 EGREP = @EGREP@
277 EXEEXT = @EXEEXT@
278 FGREP = @FGREP@
279 GREP = @GREP@
280 HAVE_CXX11 = @HAVE_CXX11@
281 INSTALL = @INSTALL@
282 INSTALL_DATA = @INSTALL_DATA@
283 INSTALL_PROGRAM = @INSTALL_PROGRAM@
284 INSTALL_SCRIPT = @INSTALL_SCRIPT@
285 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
286 LD = @LD@
287 LDFLAGS = @LDFLAGS@
288 LIBDE265_AGE = @LIBDE265_AGE@
289 LIBDE265_CURRENT = @LIBDE265_CURRENT@
290 LIBDE265_REVISION = @LIBDE265_REVISION@
291 LIBOBJS = @LIBOBJS@
292 LIBS = @LIBS@
293 LIBTOOL = @LIBTOOL@
294 LIPO = @LIPO@
295 LN_S = @LN_S@
296 LTLIBOBJS = @LTLIBOBJS@
297 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
298 MAKEINFO = @MAKEINFO@
299 MANIFEST_TOOL = @MANIFEST_TOOL@
300 MKDIR_P = @MKDIR_P@
301 NM = @NM@
302 NMEDIT = @NMEDIT@
303 NUMERIC_VERSION = @NUMERIC_VERSION@
304 OBJDUMP = @OBJDUMP@
305 OBJEXT = @OBJEXT@
306 OTOOL = @OTOOL@
307 OTOOL64 = @OTOOL64@
308 PACKAGE = @PACKAGE@
309 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
310 PACKAGE_NAME = @PACKAGE_NAME@
311 PACKAGE_STRING = @PACKAGE_STRING@
312 PACKAGE_TARNAME = @PACKAGE_TARNAME@
313 PACKAGE_URL = @PACKAGE_URL@
314 PACKAGE_VERSION = @PACKAGE_VERSION@
315 PATH_SEPARATOR = @PATH_SEPARATOR@
316 PKG_CONFIG = @PKG_CONFIG@
317 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
318 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
319 QTCHOOSER = @QTCHOOSER@
320 QTMOC = @QTMOC@
321 QT_CFLAGS = @QT_CFLAGS@
322 QT_LIBS = @QT_LIBS@
323 RANLIB = @RANLIB@
324 SDL_CFLAGS = @SDL_CFLAGS@
325 SDL_LIBS = @SDL_LIBS@
326 SED = @SED@
327 SET_MAKE = @SET_MAKE@
328 SHELL = @SHELL@
329 STRIP = @STRIP@
330 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
331 SWSCALE_LIBS = @SWSCALE_LIBS@
332 VERSION = @VERSION@
333 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
334 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
335 abs_builddir = @abs_builddir@
336 abs_srcdir = @abs_srcdir@
337 abs_top_builddir = @abs_top_builddir@
338 abs_top_srcdir = @abs_top_srcdir@
339 ac_ct_AR = @ac_ct_AR@
340 ac_ct_CC = @ac_ct_CC@
341 ac_ct_CXX = @ac_ct_CXX@
342 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
343 am__include = @am__include@
344 am__leading_dot = @am__leading_dot@
345 am__quote = @am__quote@
346 am__tar = @am__tar@
347 am__untar = @am__untar@
348 bindir = @bindir@
349 build = @build@
350 build_alias = @build_alias@
351 build_cpu = @build_cpu@
352 build_os = @build_os@
353 build_vendor = @build_vendor@
354 builddir = @builddir@
355 datadir = @datadir@
356 datarootdir = @datarootdir@
357 docdir = @docdir@
358 dvidir = @dvidir@
359 exec_prefix = @exec_prefix@
360 host = @host@
361 host_alias = @host_alias@
362 host_cpu = @host_cpu@
363 host_os = @host_os@
364 host_vendor = @host_vendor@
365 htmldir = @htmldir@
366 includedir = @includedir@
367 infodir = @infodir@
368 install_sh = @install_sh@
369 libdir = @libdir@
370 libexecdir = @libexecdir@
371 localedir = @localedir@
372 localstatedir = @localstatedir@
373 mandir = @mandir@
374 mkdir_p = @mkdir_p@
375 oldincludedir = @oldincludedir@
376 pdfdir = @pdfdir@
377 prefix = @prefix@
378 program_transform_name = @program_transform_name@
379 psdir = @psdir@
380 runstatedir = @runstatedir@
381 sbindir = @sbindir@
382 sharedstatedir = @sharedstatedir@
383 srcdir = @srcdir@
384 sysconfdir = @sysconfdir@
385 target = @target@
386 target_alias = @target_alias@
387 target_cpu = @target_cpu@
388 target_os = @target_os@
389 target_vendor = @target_vendor@
390 top_build_prefix = @top_build_prefix@
391 top_builddir = @top_builddir@
392 top_srcdir = @top_srcdir@
393 SUBDIRS = libde265 $(am__append_1) $(am__append_2) tools \
394 acceleration-speed $(am__append_3)
395 ACLOCAL_AMFLAGS = -I m4
396 EXTRA_DIST = .travis.yml \
397 autogen.sh \
398 build.bat \
399 m4/m4_ax_check_compile_flag.m4 \
400 Makefile.vc7 \
401 CMakeLists.txt \
402 README.md \
403 libde265.png \
404 */COPYING
405
406 pkgconfigdir = $(libdir)/pkgconfig
407 pkgconfig_DATA = libde265.pc
408 all: config.h
409 $(MAKE) $(AM_MAKEFLAGS) all-recursive
410
411 .SUFFIXES:
412 am--refresh: Makefile
413 @:
414 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
415 @for dep in $?; do \
416 case '$(am__configure_deps)' in \
417 *$$dep*) \
418 echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
419 $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
420 && exit 0; \
421 exit 1;; \
422 esac; \
423 done; \
424 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
425 $(am__cd) $(top_srcdir) && \
426 $(AUTOMAKE) --gnu Makefile
427 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
428 @case '$?' in \
429 *config.status*) \
430 echo ' $(SHELL) ./config.status'; \
431 $(SHELL) ./config.status;; \
432 *) \
433 echo ' cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe)'; \
434 cd $(top_builddir) && $(SHELL) ./config.status $@ $(am__depfiles_maybe);; \
435 esac;
436
437 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
438 $(SHELL) ./config.status --recheck
439
440 $(top_srcdir)/configure: $(am__configure_deps)
441 $(am__cd) $(srcdir) && $(AUTOCONF)
442 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
443 $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
444 $(am__aclocal_m4_deps):
445
446 config.h: stamp-h1
447 @test -f $@ || rm -f stamp-h1
448 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1
449
450 stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
451 @rm -f stamp-h1
452 cd $(top_builddir) && $(SHELL) ./config.status config.h
453 $(srcdir)/config.h.in: $(am__configure_deps)
454 ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
455 rm -f stamp-h1
456 touch $@
457
458 distclean-hdr:
459 -rm -f config.h stamp-h1
460 libde265.pc: $(top_builddir)/config.status $(srcdir)/libde265.pc.in
461 cd $(top_builddir) && $(SHELL) ./config.status $@
462
463 mostlyclean-libtool:
464 -rm -f *.lo
465
466 clean-libtool:
467 -rm -rf .libs _libs
468
469 distclean-libtool:
470 -rm -f libtool config.lt
471 install-pkgconfigDATA: $(pkgconfig_DATA)
472 @$(NORMAL_INSTALL)
473 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
474 if test -n "$$list"; then \
475 echo " $(MKDIR_P) '$(DESTDIR)$(pkgconfigdir)'"; \
476 $(MKDIR_P) "$(DESTDIR)$(pkgconfigdir)" || exit 1; \
477 fi; \
478 for p in $$list; do \
479 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
480 echo "$$d$$p"; \
481 done | $(am__base_list) | \
482 while read files; do \
483 echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(pkgconfigdir)'"; \
484 $(INSTALL_DATA) $$files "$(DESTDIR)$(pkgconfigdir)" || exit $$?; \
485 done
486
487 uninstall-pkgconfigDATA:
488 @$(NORMAL_UNINSTALL)
489 @list='$(pkgconfig_DATA)'; test -n "$(pkgconfigdir)" || list=; \
490 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
491 dir='$(DESTDIR)$(pkgconfigdir)'; $(am__uninstall_files_from_dir)
492
493 # This directory's subdirectories are mostly independent; you can cd
494 # into them and run 'make' without going through this Makefile.
495 # To change the values of 'make' variables: instead of editing Makefiles,
496 # (1) if the variable is set in 'config.status', edit 'config.status'
497 # (which will cause the Makefiles to be regenerated when you run 'make');
498 # (2) otherwise, pass the desired values on the 'make' command line.
499 $(am__recursive_targets):
500 @fail=; \
501 if $(am__make_keepgoing); then \
502 failcom='fail=yes'; \
503 else \
504 failcom='exit 1'; \
505 fi; \
506 dot_seen=no; \
507 target=`echo $@ | sed s/-recursive//`; \
508 case "$@" in \
509 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
510 *) list='$(SUBDIRS)' ;; \
511 esac; \
512 for subdir in $$list; do \
513 echo "Making $$target in $$subdir"; \
514 if test "$$subdir" = "."; then \
515 dot_seen=yes; \
516 local_target="$$target-am"; \
517 else \
518 local_target="$$target"; \
519 fi; \
520 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
521 || eval $$failcom; \
522 done; \
523 if test "$$dot_seen" = "no"; then \
524 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
525 fi; test -z "$$fail"
526
527 ID: $(am__tagged_files)
528 $(am__define_uniq_tagged_files); mkid -fID $$unique
529 tags: tags-recursive
530 TAGS: tags
531
532 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
533 set x; \
534 here=`pwd`; \
535 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
536 include_option=--etags-include; \
537 empty_fix=.; \
538 else \
539 include_option=--include; \
540 empty_fix=; \
541 fi; \
542 list='$(SUBDIRS)'; for subdir in $$list; do \
543 if test "$$subdir" = .; then :; else \
544 test ! -f $$subdir/TAGS || \
545 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
546 fi; \
547 done; \
548 $(am__define_uniq_tagged_files); \
549 shift; \
550 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
551 test -n "$$unique" || unique=$$empty_fix; \
552 if test $$# -gt 0; then \
553 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
554 "$$@" $$unique; \
555 else \
556 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
557 $$unique; \
558 fi; \
559 fi
560 ctags: ctags-recursive
561
562 CTAGS: ctags
563 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
564 $(am__define_uniq_tagged_files); \
565 test -z "$(CTAGS_ARGS)$$unique" \
566 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
567 $$unique
568
569 GTAGS:
570 here=`$(am__cd) $(top_builddir) && pwd` \
571 && $(am__cd) $(top_srcdir) \
572 && gtags -i $(GTAGS_ARGS) "$$here"
573 cscope: cscope.files
574 test ! -s cscope.files \
575 || $(CSCOPE) -b -q $(AM_CSCOPEFLAGS) $(CSCOPEFLAGS) -i cscope.files $(CSCOPE_ARGS)
576 clean-cscope:
577 -rm -f cscope.files
578 cscope.files: clean-cscope cscopelist
579 cscopelist: cscopelist-recursive
580
581 cscopelist-am: $(am__tagged_files)
582 list='$(am__tagged_files)'; \
583 case "$(srcdir)" in \
584 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
585 *) sdir=$(subdir)/$(srcdir) ;; \
586 esac; \
587 for i in $$list; do \
588 if test -f "$$i"; then \
589 echo "$(subdir)/$$i"; \
590 else \
591 echo "$$sdir/$$i"; \
592 fi; \
593 done >> $(top_builddir)/cscope.files
594
595 distclean-tags:
596 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
597 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
598
599 distdir: $(DISTFILES)
600 $(am__remove_distdir)
601 test -d "$(distdir)" || mkdir "$(distdir)"
602 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
603 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
604 list='$(DISTFILES)'; \
605 dist_files=`for file in $$list; do echo $$file; done | \
606 sed -e "s|^$$srcdirstrip/||;t" \
607 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
608 case $$dist_files in \
609 */*) $(MKDIR_P) `echo "$$dist_files" | \
610 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
611 sort -u` ;; \
612 esac; \
613 for file in $$dist_files; do \
614 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
615 if test -d $$d/$$file; then \
616 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
617 if test -d "$(distdir)/$$file"; then \
618 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
619 fi; \
620 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
621 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
622 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
623 fi; \
624 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
625 else \
626 test -f "$(distdir)/$$file" \
627 || cp -p $$d/$$file "$(distdir)/$$file" \
628 || exit 1; \
629 fi; \
630 done
631 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
632 if test "$$subdir" = .; then :; else \
633 $(am__make_dryrun) \
634 || test -d "$(distdir)/$$subdir" \
635 || $(MKDIR_P) "$(distdir)/$$subdir" \
636 || exit 1; \
637 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
638 $(am__relativize); \
639 new_distdir=$$reldir; \
640 dir1=$$subdir; dir2="$(top_distdir)"; \
641 $(am__relativize); \
642 new_top_distdir=$$reldir; \
643 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
644 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
645 ($(am__cd) $$subdir && \
646 $(MAKE) $(AM_MAKEFLAGS) \
647 top_distdir="$$new_top_distdir" \
648 distdir="$$new_distdir" \
649 am__remove_distdir=: \
650 am__skip_length_check=: \
651 am__skip_mode_fix=: \
652 distdir) \
653 || exit 1; \
654 fi; \
655 done
656 -test -n "$(am__skip_mode_fix)" \
657 || find "$(distdir)" -type d ! -perm -755 \
658 -exec chmod u+rwx,go+rx {} \; -o \
659 ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
660 ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
661 ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
662 || chmod -R a+r "$(distdir)"
663 dist-gzip: distdir
664 tardir=$(distdir) && $(am__tar) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).tar.gz
665 $(am__post_remove_distdir)
666
667 dist-bzip2: distdir
668 tardir=$(distdir) && $(am__tar) | BZIP2=$${BZIP2--9} bzip2 -c >$(distdir).tar.bz2
669 $(am__post_remove_distdir)
670
671 dist-lzip: distdir
672 tardir=$(distdir) && $(am__tar) | lzip -c $${LZIP_OPT--9} >$(distdir).tar.lz
673 $(am__post_remove_distdir)
674
675 dist-xz: distdir
676 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
677 $(am__post_remove_distdir)
678
679 dist-tarZ: distdir
680 @echo WARNING: "Support for distribution archives compressed with" \
681 "legacy program 'compress' is deprecated." >&2
682 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
683 tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
684 $(am__post_remove_distdir)
685
686 dist-shar: distdir
687 @echo WARNING: "Support for shar distribution archives is" \
688 "deprecated." >&2
689 @echo WARNING: "It will be removed altogether in Automake 2.0" >&2
690 shar $(distdir) | eval GZIP= gzip $(GZIP_ENV) -c >$(distdir).shar.gz
691 $(am__post_remove_distdir)
692
693 dist-zip: distdir
694 -rm -f $(distdir).zip
695 zip -rq $(distdir).zip $(distdir)
696 $(am__post_remove_distdir)
697
698 dist dist-all:
699 $(MAKE) $(AM_MAKEFLAGS) $(DIST_TARGETS) am__post_remove_distdir='@:'
700 $(am__post_remove_distdir)
701
702 # This target untars the dist file and tries a VPATH configuration. Then
703 # it guarantees that the distribution is self-contained by making another
704 # tarfile.
705 distcheck: dist
706 case '$(DIST_ARCHIVES)' in \
707 *.tar.gz*) \
708 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).tar.gz | $(am__untar) ;;\
709 *.tar.bz2*) \
710 bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
711 *.tar.lz*) \
712 lzip -dc $(distdir).tar.lz | $(am__untar) ;;\
713 *.tar.xz*) \
714 xz -dc $(distdir).tar.xz | $(am__untar) ;;\
715 *.tar.Z*) \
716 uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
717 *.shar.gz*) \
718 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
719 *.zip*) \
720 unzip $(distdir).zip ;;\
721 esac
722 chmod -R a-w $(distdir)
723 chmod u+w $(distdir)
724 mkdir $(distdir)/_build $(distdir)/_build/sub $(distdir)/_inst
725 chmod a-w $(distdir)
726 test -d $(distdir)/_build || exit 0; \
727 dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
728 && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
729 && am__cwd=`pwd` \
730 && $(am__cd) $(distdir)/_build/sub \
731 && ../../configure \
732 $(AM_DISTCHECK_CONFIGURE_FLAGS) \
733 $(DISTCHECK_CONFIGURE_FLAGS) \
734 --srcdir=../.. --prefix="$$dc_install_base" \
735 && $(MAKE) $(AM_MAKEFLAGS) \
736 && $(MAKE) $(AM_MAKEFLAGS) dvi \
737 && $(MAKE) $(AM_MAKEFLAGS) check \
738 && $(MAKE) $(AM_MAKEFLAGS) install \
739 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
740 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
741 && $(MAKE) $(AM_MAKEFLAGS) distuninstallcheck_dir="$$dc_install_base" \
742 distuninstallcheck \
743 && chmod -R a-w "$$dc_install_base" \
744 && ({ \
745 (cd ../.. && umask 077 && mkdir "$$dc_destdir") \
746 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" install \
747 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" uninstall \
748 && $(MAKE) $(AM_MAKEFLAGS) DESTDIR="$$dc_destdir" \
749 distuninstallcheck_dir="$$dc_destdir" distuninstallcheck; \
750 } || { rm -rf "$$dc_destdir"; exit 1; }) \
751 && rm -rf "$$dc_destdir" \
752 && $(MAKE) $(AM_MAKEFLAGS) dist \
753 && rm -rf $(DIST_ARCHIVES) \
754 && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
755 && cd "$$am__cwd" \
756 || exit 1
757 $(am__post_remove_distdir)
758 @(echo "$(distdir) archives ready for distribution: "; \
759 list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
760 sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
761 distuninstallcheck:
762 @test -n '$(distuninstallcheck_dir)' || { \
763 echo 'ERROR: trying to run $@ with an empty' \
764 '$$(distuninstallcheck_dir)' >&2; \
765 exit 1; \
766 }; \
767 $(am__cd) '$(distuninstallcheck_dir)' || { \
768 echo 'ERROR: cannot chdir into $(distuninstallcheck_dir)' >&2; \
769 exit 1; \
770 }; \
771 test `$(am__distuninstallcheck_listfiles) | wc -l` -eq 0 \
772 || { echo "ERROR: files left after uninstall:" ; \
773 if test -n "$(DESTDIR)"; then \
774 echo " (check DESTDIR support)"; \
775 fi ; \
776 $(distuninstallcheck_listfiles) ; \
777 exit 1; } >&2
778 distcleancheck: distclean
779 @if test '$(srcdir)' = . ; then \
780 echo "ERROR: distcleancheck can only run from a VPATH build" ; \
781 exit 1 ; \
782 fi
783 @test `$(distcleancheck_listfiles) | wc -l` -eq 0 \
784 || { echo "ERROR: files left in build directory after distclean:" ; \
785 $(distcleancheck_listfiles) ; \
786 exit 1; } >&2
787 check-am: all-am
788 check: check-recursive
789 all-am: Makefile $(DATA) config.h
790 installdirs: installdirs-recursive
791 installdirs-am:
792 for dir in "$(DESTDIR)$(pkgconfigdir)"; do \
793 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
794 done
795 install: install-recursive
796 install-exec: install-exec-recursive
797 install-data: install-data-recursive
798 uninstall: uninstall-recursive
799
800 install-am: all-am
801 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
802
803 installcheck: installcheck-recursive
804 install-strip:
805 if test -z '$(STRIP)'; then \
806 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
807 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
808 install; \
809 else \
810 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
811 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
812 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
813 fi
814 mostlyclean-generic:
815
816 clean-generic:
817
818 distclean-generic:
819 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
820 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
821
822 maintainer-clean-generic:
823 @echo "This command is intended for maintainers to use"
824 @echo "it deletes files that may require special tools to rebuild."
825 clean: clean-recursive
826
827 clean-am: clean-generic clean-libtool mostlyclean-am
828
829 distclean: distclean-recursive
830 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
831 -rm -f Makefile
832 distclean-am: clean-am distclean-generic distclean-hdr \
833 distclean-libtool distclean-tags
834
835 dvi: dvi-recursive
836
837 dvi-am:
838
839 html: html-recursive
840
841 html-am:
842
843 info: info-recursive
844
845 info-am:
846
847 install-data-am: install-pkgconfigDATA
848
849 install-dvi: install-dvi-recursive
850
851 install-dvi-am:
852
853 install-exec-am:
854
855 install-html: install-html-recursive
856
857 install-html-am:
858
859 install-info: install-info-recursive
860
861 install-info-am:
862
863 install-man:
864
865 install-pdf: install-pdf-recursive
866
867 install-pdf-am:
868
869 install-ps: install-ps-recursive
870
871 install-ps-am:
872
873 installcheck-am:
874
875 maintainer-clean: maintainer-clean-recursive
876 -rm -f $(am__CONFIG_DISTCLEAN_FILES)
877 -rm -rf $(top_srcdir)/autom4te.cache
878 -rm -f Makefile
879 maintainer-clean-am: distclean-am maintainer-clean-generic
880
881 mostlyclean: mostlyclean-recursive
882
883 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
884
885 pdf: pdf-recursive
886
887 pdf-am:
888
889 ps: ps-recursive
890
891 ps-am:
892
893 uninstall-am: uninstall-pkgconfigDATA
894
895 .MAKE: $(am__recursive_targets) all install-am install-strip
896
897 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am \
898 am--refresh check check-am clean clean-cscope clean-generic \
899 clean-libtool cscope cscopelist-am ctags ctags-am dist \
900 dist-all dist-bzip2 dist-gzip dist-lzip dist-shar dist-tarZ \
901 dist-xz dist-zip distcheck distclean distclean-generic \
902 distclean-hdr distclean-libtool distclean-tags distcleancheck \
903 distdir distuninstallcheck dvi dvi-am html html-am info \
904 info-am install install-am install-data install-data-am \
905 install-dvi install-dvi-am install-exec install-exec-am \
906 install-html install-html-am install-info install-info-am \
907 install-man install-pdf install-pdf-am install-pkgconfigDATA \
908 install-ps install-ps-am install-strip installcheck \
909 installcheck-am installdirs installdirs-am maintainer-clean \
910 maintainer-clean-generic mostlyclean mostlyclean-generic \
911 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
912 uninstall-am uninstall-pkgconfigDATA
913
914 .PRECIOUS: Makefile
915
916
917 # Tell versions [3.59,3.63) of GNU make to not export all variables.
918 # Otherwise a system limit (for SysV at least) may be exceeded.
919 .NOEXPORT:
+0
-756
acceleration-speed/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91 bin_PROGRAMS = acceleration_speed$(EXEEXT)
92 @ENABLE_SSE_OPT_TRUE@am__append_1 = dct-sse.cc
93 subdir = acceleration-speed
94 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
95 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
96 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
97 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
98 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
99 $(top_srcdir)/m4/lt~obsolete.m4 \
100 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
101 $(top_srcdir)/configure.ac
102 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
103 $(ACLOCAL_M4)
104 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
105 mkinstalldirs = $(install_sh) -d
106 CONFIG_HEADER = $(top_builddir)/config.h
107 CONFIG_CLEAN_FILES =
108 CONFIG_CLEAN_VPATH_FILES =
109 am__installdirs = "$(DESTDIR)$(bindir)"
110 PROGRAMS = $(bin_PROGRAMS)
111 am__acceleration_speed_SOURCES_DIST = acceleration-speed.cc \
112 acceleration-speed.h dct.cc dct.h dct-scalar.cc dct-scalar.h \
113 dct-sse.cc
114 @ENABLE_SSE_OPT_TRUE@am__objects_1 = \
115 @ENABLE_SSE_OPT_TRUE@ acceleration_speed-dct-sse.$(OBJEXT)
116 am_acceleration_speed_OBJECTS = \
117 acceleration_speed-acceleration-speed.$(OBJEXT) \
118 acceleration_speed-dct.$(OBJEXT) \
119 acceleration_speed-dct-scalar.$(OBJEXT) $(am__objects_1)
120 acceleration_speed_OBJECTS = $(am_acceleration_speed_OBJECTS)
121 AM_V_lt = $(am__v_lt_@AM_V@)
122 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
123 am__v_lt_0 = --silent
124 am__v_lt_1 =
125 acceleration_speed_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
126 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
127 $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) \
128 $(acceleration_speed_LDFLAGS) $(LDFLAGS) -o $@
129 AM_V_P = $(am__v_P_@AM_V@)
130 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
131 am__v_P_0 = false
132 am__v_P_1 = :
133 AM_V_GEN = $(am__v_GEN_@AM_V@)
134 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
135 am__v_GEN_0 = @echo " GEN " $@;
136 am__v_GEN_1 =
137 AM_V_at = $(am__v_at_@AM_V@)
138 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
139 am__v_at_0 = @
140 am__v_at_1 =
141 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
142 depcomp = $(SHELL) $(top_srcdir)/depcomp
143 am__depfiles_maybe = depfiles
144 am__mv = mv -f
145 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
146 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
147 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
148 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
149 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
150 $(AM_CXXFLAGS) $(CXXFLAGS)
151 AM_V_CXX = $(am__v_CXX_@AM_V@)
152 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
153 am__v_CXX_0 = @echo " CXX " $@;
154 am__v_CXX_1 =
155 CXXLD = $(CXX)
156 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
157 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
158 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
159 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
160 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
161 am__v_CXXLD_0 = @echo " CXXLD " $@;
162 am__v_CXXLD_1 =
163 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
164 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
165 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
166 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
167 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
168 $(AM_CFLAGS) $(CFLAGS)
169 AM_V_CC = $(am__v_CC_@AM_V@)
170 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
171 am__v_CC_0 = @echo " CC " $@;
172 am__v_CC_1 =
173 CCLD = $(CC)
174 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
175 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
176 $(AM_LDFLAGS) $(LDFLAGS) -o $@
177 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
178 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
179 am__v_CCLD_0 = @echo " CCLD " $@;
180 am__v_CCLD_1 =
181 SOURCES = $(acceleration_speed_SOURCES)
182 DIST_SOURCES = $(am__acceleration_speed_SOURCES_DIST)
183 am__can_run_installinfo = \
184 case $$AM_UPDATE_INFO_DIR in \
185 n|no|NO) false;; \
186 *) (install-info --version) >/dev/null 2>&1;; \
187 esac
188 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
189 # Read a list of newline-separated strings from the standard input,
190 # and print each of them once, without duplicates. Input order is
191 # *not* preserved.
192 am__uniquify_input = $(AWK) '\
193 BEGIN { nonempty = 0; } \
194 { items[$$0] = 1; nonempty = 1; } \
195 END { if (nonempty) { for (i in items) print i; }; } \
196 '
197 # Make sure the list of sources is unique. This is necessary because,
198 # e.g., the same source file might be shared among _SOURCES variables
199 # for different programs/libraries.
200 am__define_uniq_tagged_files = \
201 list='$(am__tagged_files)'; \
202 unique=`for i in $$list; do \
203 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
204 done | $(am__uniquify_input)`
205 ETAGS = etags
206 CTAGS = ctags
207 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
208 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
209 ACLOCAL = @ACLOCAL@
210 ALLOCA = @ALLOCA@
211 AMTAR = @AMTAR@
212 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
213 AR = @AR@
214 AUTOCONF = @AUTOCONF@
215 AUTOHEADER = @AUTOHEADER@
216 AUTOMAKE = @AUTOMAKE@
217 AWK = @AWK@
218 CC = @CC@
219 CCAS = @CCAS@
220 CCASDEPMODE = @CCASDEPMODE@
221 CCASFLAGS = @CCASFLAGS@
222 CCDEPMODE = @CCDEPMODE@
223 CFLAGS = @CFLAGS@
224 CPP = @CPP@
225 CPPFLAGS = @CPPFLAGS@
226 CXX = @CXX@
227 CXXCPP = @CXXCPP@
228 CXXDEPMODE = @CXXDEPMODE@
229 CXXFLAGS = @CXXFLAGS@
230 CYGPATH_W = @CYGPATH_W@
231 DEFS = @DEFS@
232 DEPDIR = @DEPDIR@
233 DLLTOOL = @DLLTOOL@
234 DSYMUTIL = @DSYMUTIL@
235 DUMPBIN = @DUMPBIN@
236 ECHO_C = @ECHO_C@
237 ECHO_N = @ECHO_N@
238 ECHO_T = @ECHO_T@
239 EGREP = @EGREP@
240 EXEEXT = @EXEEXT@
241 FGREP = @FGREP@
242 GREP = @GREP@
243 HAVE_CXX11 = @HAVE_CXX11@
244 INSTALL = @INSTALL@
245 INSTALL_DATA = @INSTALL_DATA@
246 INSTALL_PROGRAM = @INSTALL_PROGRAM@
247 INSTALL_SCRIPT = @INSTALL_SCRIPT@
248 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
249 LD = @LD@
250 LDFLAGS = @LDFLAGS@
251 LIBDE265_AGE = @LIBDE265_AGE@
252 LIBDE265_CURRENT = @LIBDE265_CURRENT@
253 LIBDE265_REVISION = @LIBDE265_REVISION@
254 LIBOBJS = @LIBOBJS@
255 LIBS = @LIBS@
256 LIBTOOL = @LIBTOOL@
257 LIPO = @LIPO@
258 LN_S = @LN_S@
259 LTLIBOBJS = @LTLIBOBJS@
260 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
261 MAKEINFO = @MAKEINFO@
262 MANIFEST_TOOL = @MANIFEST_TOOL@
263 MKDIR_P = @MKDIR_P@
264 NM = @NM@
265 NMEDIT = @NMEDIT@
266 NUMERIC_VERSION = @NUMERIC_VERSION@
267 OBJDUMP = @OBJDUMP@
268 OBJEXT = @OBJEXT@
269 OTOOL = @OTOOL@
270 OTOOL64 = @OTOOL64@
271 PACKAGE = @PACKAGE@
272 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
273 PACKAGE_NAME = @PACKAGE_NAME@
274 PACKAGE_STRING = @PACKAGE_STRING@
275 PACKAGE_TARNAME = @PACKAGE_TARNAME@
276 PACKAGE_URL = @PACKAGE_URL@
277 PACKAGE_VERSION = @PACKAGE_VERSION@
278 PATH_SEPARATOR = @PATH_SEPARATOR@
279 PKG_CONFIG = @PKG_CONFIG@
280 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
281 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
282 QTCHOOSER = @QTCHOOSER@
283 QTMOC = @QTMOC@
284 QT_CFLAGS = @QT_CFLAGS@
285 QT_LIBS = @QT_LIBS@
286 RANLIB = @RANLIB@
287 SDL_CFLAGS = @SDL_CFLAGS@
288 SDL_LIBS = @SDL_LIBS@
289 SED = @SED@
290 SET_MAKE = @SET_MAKE@
291 SHELL = @SHELL@
292 STRIP = @STRIP@
293 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
294 SWSCALE_LIBS = @SWSCALE_LIBS@
295 VERSION = @VERSION@
296 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
297 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
298 abs_builddir = @abs_builddir@
299 abs_srcdir = @abs_srcdir@
300 abs_top_builddir = @abs_top_builddir@
301 abs_top_srcdir = @abs_top_srcdir@
302 ac_ct_AR = @ac_ct_AR@
303 ac_ct_CC = @ac_ct_CC@
304 ac_ct_CXX = @ac_ct_CXX@
305 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
306 am__include = @am__include@
307 am__leading_dot = @am__leading_dot@
308 am__quote = @am__quote@
309 am__tar = @am__tar@
310 am__untar = @am__untar@
311 bindir = @bindir@
312 build = @build@
313 build_alias = @build_alias@
314 build_cpu = @build_cpu@
315 build_os = @build_os@
316 build_vendor = @build_vendor@
317 builddir = @builddir@
318 datadir = @datadir@
319 datarootdir = @datarootdir@
320 docdir = @docdir@
321 dvidir = @dvidir@
322 exec_prefix = @exec_prefix@
323 host = @host@
324 host_alias = @host_alias@
325 host_cpu = @host_cpu@
326 host_os = @host_os@
327 host_vendor = @host_vendor@
328 htmldir = @htmldir@
329 includedir = @includedir@
330 infodir = @infodir@
331 install_sh = @install_sh@
332 libdir = @libdir@
333 libexecdir = @libexecdir@
334 localedir = @localedir@
335 localstatedir = @localstatedir@
336 mandir = @mandir@
337 mkdir_p = @mkdir_p@
338 oldincludedir = @oldincludedir@
339 pdfdir = @pdfdir@
340 prefix = @prefix@
341 program_transform_name = @program_transform_name@
342 psdir = @psdir@
343 runstatedir = @runstatedir@
344 sbindir = @sbindir@
345 sharedstatedir = @sharedstatedir@
346 srcdir = @srcdir@
347 sysconfdir = @sysconfdir@
348 target = @target@
349 target_alias = @target_alias@
350 target_cpu = @target_cpu@
351 target_os = @target_os@
352 target_vendor = @target_vendor@
353 top_build_prefix = @top_build_prefix@
354 top_builddir = @top_builddir@
355 top_srcdir = @top_srcdir@
356 AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir)
357 acceleration_speed_DEPENDENCIES = ../libde265/libde265.la
358 acceleration_speed_CXXFLAGS =
359 acceleration_speed_LDFLAGS =
360 acceleration_speed_LDADD = ../libde265/libde265.la -lstdc++
361 acceleration_speed_SOURCES = acceleration-speed.cc \
362 acceleration-speed.h dct.cc dct.h dct-scalar.cc dct-scalar.h \
363 $(am__append_1)
364 all: all-am
365
366 .SUFFIXES:
367 .SUFFIXES: .cc .lo .o .obj
368 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
369 @for dep in $?; do \
370 case '$(am__configure_deps)' in \
371 *$$dep*) \
372 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
373 && { if test -f $@; then exit 0; else break; fi; }; \
374 exit 1;; \
375 esac; \
376 done; \
377 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu acceleration-speed/Makefile'; \
378 $(am__cd) $(top_srcdir) && \
379 $(AUTOMAKE) --gnu acceleration-speed/Makefile
380 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
381 @case '$?' in \
382 *config.status*) \
383 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
384 *) \
385 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
386 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
387 esac;
388
389 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
390 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
391
392 $(top_srcdir)/configure: $(am__configure_deps)
393 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
394 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
395 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
396 $(am__aclocal_m4_deps):
397 install-binPROGRAMS: $(bin_PROGRAMS)
398 @$(NORMAL_INSTALL)
399 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
400 if test -n "$$list"; then \
401 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
402 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
403 fi; \
404 for p in $$list; do echo "$$p $$p"; done | \
405 sed 's/$(EXEEXT)$$//' | \
406 while read p p1; do if test -f $$p \
407 || test -f $$p1 \
408 ; then echo "$$p"; echo "$$p"; else :; fi; \
409 done | \
410 sed -e 'p;s,.*/,,;n;h' \
411 -e 's|.*|.|' \
412 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
413 sed 'N;N;N;s,\n, ,g' | \
414 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
415 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
416 if ($$2 == $$4) files[d] = files[d] " " $$1; \
417 else { print "f", $$3 "/" $$4, $$1; } } \
418 END { for (d in files) print "f", d, files[d] }' | \
419 while read type dir files; do \
420 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
421 test -z "$$files" || { \
422 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
423 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
424 } \
425 ; done
426
427 uninstall-binPROGRAMS:
428 @$(NORMAL_UNINSTALL)
429 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
430 files=`for p in $$list; do echo "$$p"; done | \
431 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
432 -e 's/$$/$(EXEEXT)/' \
433 `; \
434 test -n "$$list" || exit 0; \
435 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
436 cd "$(DESTDIR)$(bindir)" && rm -f $$files
437
438 clean-binPROGRAMS:
439 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
440 echo " rm -f" $$list; \
441 rm -f $$list || exit $$?; \
442 test -n "$(EXEEXT)" || exit 0; \
443 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
444 echo " rm -f" $$list; \
445 rm -f $$list
446
447 acceleration_speed$(EXEEXT): $(acceleration_speed_OBJECTS) $(acceleration_speed_DEPENDENCIES) $(EXTRA_acceleration_speed_DEPENDENCIES)
448 @rm -f acceleration_speed$(EXEEXT)
449 $(AM_V_CXXLD)$(acceleration_speed_LINK) $(acceleration_speed_OBJECTS) $(acceleration_speed_LDADD) $(LIBS)
450
451 mostlyclean-compile:
452 -rm -f *.$(OBJEXT)
453
454 distclean-compile:
455 -rm -f *.tab.c
456
457 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acceleration_speed-acceleration-speed.Po@am__quote@
458 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acceleration_speed-dct-scalar.Po@am__quote@
459 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acceleration_speed-dct-sse.Po@am__quote@
460 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/acceleration_speed-dct.Po@am__quote@
461
462 .cc.o:
463 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
464 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
465 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
466 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
467 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
468
469 .cc.obj:
470 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
471 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
472 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
473 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
474 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
475
476 .cc.lo:
477 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
478 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
479 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
480 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
481 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
482
483 acceleration_speed-acceleration-speed.o: acceleration-speed.cc
484 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -MT acceleration_speed-acceleration-speed.o -MD -MP -MF $(DEPDIR)/acceleration_speed-acceleration-speed.Tpo -c -o acceleration_speed-acceleration-speed.o `test -f 'acceleration-speed.cc' || echo '$(srcdir)/'`acceleration-speed.cc
485 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/acceleration_speed-acceleration-speed.Tpo $(DEPDIR)/acceleration_speed-acceleration-speed.Po
486 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='acceleration-speed.cc' object='acceleration_speed-acceleration-speed.o' libtool=no @AMDEPBACKSLASH@
487 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
488 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -c -o acceleration_speed-acceleration-speed.o `test -f 'acceleration-speed.cc' || echo '$(srcdir)/'`acceleration-speed.cc
489
490 acceleration_speed-acceleration-speed.obj: acceleration-speed.cc
491 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -MT acceleration_speed-acceleration-speed.obj -MD -MP -MF $(DEPDIR)/acceleration_speed-acceleration-speed.Tpo -c -o acceleration_speed-acceleration-speed.obj `if test -f 'acceleration-speed.cc'; then $(CYGPATH_W) 'acceleration-speed.cc'; else $(CYGPATH_W) '$(srcdir)/acceleration-speed.cc'; fi`
492 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/acceleration_speed-acceleration-speed.Tpo $(DEPDIR)/acceleration_speed-acceleration-speed.Po
493 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='acceleration-speed.cc' object='acceleration_speed-acceleration-speed.obj' libtool=no @AMDEPBACKSLASH@
494 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
495 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -c -o acceleration_speed-acceleration-speed.obj `if test -f 'acceleration-speed.cc'; then $(CYGPATH_W) 'acceleration-speed.cc'; else $(CYGPATH_W) '$(srcdir)/acceleration-speed.cc'; fi`
496
497 acceleration_speed-dct.o: dct.cc
498 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -MT acceleration_speed-dct.o -MD -MP -MF $(DEPDIR)/acceleration_speed-dct.Tpo -c -o acceleration_speed-dct.o `test -f 'dct.cc' || echo '$(srcdir)/'`dct.cc
499 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/acceleration_speed-dct.Tpo $(DEPDIR)/acceleration_speed-dct.Po
500 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dct.cc' object='acceleration_speed-dct.o' libtool=no @AMDEPBACKSLASH@
501 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
502 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -c -o acceleration_speed-dct.o `test -f 'dct.cc' || echo '$(srcdir)/'`dct.cc
503
504 acceleration_speed-dct.obj: dct.cc
505 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -MT acceleration_speed-dct.obj -MD -MP -MF $(DEPDIR)/acceleration_speed-dct.Tpo -c -o acceleration_speed-dct.obj `if test -f 'dct.cc'; then $(CYGPATH_W) 'dct.cc'; else $(CYGPATH_W) '$(srcdir)/dct.cc'; fi`
506 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/acceleration_speed-dct.Tpo $(DEPDIR)/acceleration_speed-dct.Po
507 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dct.cc' object='acceleration_speed-dct.obj' libtool=no @AMDEPBACKSLASH@
508 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
509 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -c -o acceleration_speed-dct.obj `if test -f 'dct.cc'; then $(CYGPATH_W) 'dct.cc'; else $(CYGPATH_W) '$(srcdir)/dct.cc'; fi`
510
511 acceleration_speed-dct-scalar.o: dct-scalar.cc
512 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -MT acceleration_speed-dct-scalar.o -MD -MP -MF $(DEPDIR)/acceleration_speed-dct-scalar.Tpo -c -o acceleration_speed-dct-scalar.o `test -f 'dct-scalar.cc' || echo '$(srcdir)/'`dct-scalar.cc
513 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/acceleration_speed-dct-scalar.Tpo $(DEPDIR)/acceleration_speed-dct-scalar.Po
514 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dct-scalar.cc' object='acceleration_speed-dct-scalar.o' libtool=no @AMDEPBACKSLASH@
515 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
516 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -c -o acceleration_speed-dct-scalar.o `test -f 'dct-scalar.cc' || echo '$(srcdir)/'`dct-scalar.cc
517
518 acceleration_speed-dct-scalar.obj: dct-scalar.cc
519 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -MT acceleration_speed-dct-scalar.obj -MD -MP -MF $(DEPDIR)/acceleration_speed-dct-scalar.Tpo -c -o acceleration_speed-dct-scalar.obj `if test -f 'dct-scalar.cc'; then $(CYGPATH_W) 'dct-scalar.cc'; else $(CYGPATH_W) '$(srcdir)/dct-scalar.cc'; fi`
520 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/acceleration_speed-dct-scalar.Tpo $(DEPDIR)/acceleration_speed-dct-scalar.Po
521 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dct-scalar.cc' object='acceleration_speed-dct-scalar.obj' libtool=no @AMDEPBACKSLASH@
522 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
523 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -c -o acceleration_speed-dct-scalar.obj `if test -f 'dct-scalar.cc'; then $(CYGPATH_W) 'dct-scalar.cc'; else $(CYGPATH_W) '$(srcdir)/dct-scalar.cc'; fi`
524
525 acceleration_speed-dct-sse.o: dct-sse.cc
526 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -MT acceleration_speed-dct-sse.o -MD -MP -MF $(DEPDIR)/acceleration_speed-dct-sse.Tpo -c -o acceleration_speed-dct-sse.o `test -f 'dct-sse.cc' || echo '$(srcdir)/'`dct-sse.cc
527 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/acceleration_speed-dct-sse.Tpo $(DEPDIR)/acceleration_speed-dct-sse.Po
528 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dct-sse.cc' object='acceleration_speed-dct-sse.o' libtool=no @AMDEPBACKSLASH@
529 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
530 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -c -o acceleration_speed-dct-sse.o `test -f 'dct-sse.cc' || echo '$(srcdir)/'`dct-sse.cc
531
532 acceleration_speed-dct-sse.obj: dct-sse.cc
533 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -MT acceleration_speed-dct-sse.obj -MD -MP -MF $(DEPDIR)/acceleration_speed-dct-sse.Tpo -c -o acceleration_speed-dct-sse.obj `if test -f 'dct-sse.cc'; then $(CYGPATH_W) 'dct-sse.cc'; else $(CYGPATH_W) '$(srcdir)/dct-sse.cc'; fi`
534 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/acceleration_speed-dct-sse.Tpo $(DEPDIR)/acceleration_speed-dct-sse.Po
535 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dct-sse.cc' object='acceleration_speed-dct-sse.obj' libtool=no @AMDEPBACKSLASH@
536 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
537 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(acceleration_speed_CXXFLAGS) $(CXXFLAGS) -c -o acceleration_speed-dct-sse.obj `if test -f 'dct-sse.cc'; then $(CYGPATH_W) 'dct-sse.cc'; else $(CYGPATH_W) '$(srcdir)/dct-sse.cc'; fi`
538
539 mostlyclean-libtool:
540 -rm -f *.lo
541
542 clean-libtool:
543 -rm -rf .libs _libs
544
545 ID: $(am__tagged_files)
546 $(am__define_uniq_tagged_files); mkid -fID $$unique
547 tags: tags-am
548 TAGS: tags
549
550 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
551 set x; \
552 here=`pwd`; \
553 $(am__define_uniq_tagged_files); \
554 shift; \
555 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
556 test -n "$$unique" || unique=$$empty_fix; \
557 if test $$# -gt 0; then \
558 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
559 "$$@" $$unique; \
560 else \
561 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
562 $$unique; \
563 fi; \
564 fi
565 ctags: ctags-am
566
567 CTAGS: ctags
568 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
569 $(am__define_uniq_tagged_files); \
570 test -z "$(CTAGS_ARGS)$$unique" \
571 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
572 $$unique
573
574 GTAGS:
575 here=`$(am__cd) $(top_builddir) && pwd` \
576 && $(am__cd) $(top_srcdir) \
577 && gtags -i $(GTAGS_ARGS) "$$here"
578 cscopelist: cscopelist-am
579
580 cscopelist-am: $(am__tagged_files)
581 list='$(am__tagged_files)'; \
582 case "$(srcdir)" in \
583 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
584 *) sdir=$(subdir)/$(srcdir) ;; \
585 esac; \
586 for i in $$list; do \
587 if test -f "$$i"; then \
588 echo "$(subdir)/$$i"; \
589 else \
590 echo "$$sdir/$$i"; \
591 fi; \
592 done >> $(top_builddir)/cscope.files
593
594 distclean-tags:
595 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
596
597 distdir: $(DISTFILES)
598 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
599 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
600 list='$(DISTFILES)'; \
601 dist_files=`for file in $$list; do echo $$file; done | \
602 sed -e "s|^$$srcdirstrip/||;t" \
603 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
604 case $$dist_files in \
605 */*) $(MKDIR_P) `echo "$$dist_files" | \
606 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
607 sort -u` ;; \
608 esac; \
609 for file in $$dist_files; do \
610 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
611 if test -d $$d/$$file; then \
612 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
613 if test -d "$(distdir)/$$file"; then \
614 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
615 fi; \
616 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
617 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
618 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
619 fi; \
620 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
621 else \
622 test -f "$(distdir)/$$file" \
623 || cp -p $$d/$$file "$(distdir)/$$file" \
624 || exit 1; \
625 fi; \
626 done
627 check-am: all-am
628 check: check-am
629 all-am: Makefile $(PROGRAMS)
630 installdirs:
631 for dir in "$(DESTDIR)$(bindir)"; do \
632 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
633 done
634 install: install-am
635 install-exec: install-exec-am
636 install-data: install-data-am
637 uninstall: uninstall-am
638
639 install-am: all-am
640 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
641
642 installcheck: installcheck-am
643 install-strip:
644 if test -z '$(STRIP)'; then \
645 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
646 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
647 install; \
648 else \
649 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
650 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
651 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
652 fi
653 mostlyclean-generic:
654
655 clean-generic:
656
657 distclean-generic:
658 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
659 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
660
661 maintainer-clean-generic:
662 @echo "This command is intended for maintainers to use"
663 @echo "it deletes files that may require special tools to rebuild."
664 clean: clean-am
665
666 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
667
668 distclean: distclean-am
669 -rm -rf ./$(DEPDIR)
670 -rm -f Makefile
671 distclean-am: clean-am distclean-compile distclean-generic \
672 distclean-tags
673
674 dvi: dvi-am
675
676 dvi-am:
677
678 html: html-am
679
680 html-am:
681
682 info: info-am
683
684 info-am:
685
686 install-data-am:
687
688 install-dvi: install-dvi-am
689
690 install-dvi-am:
691
692 install-exec-am: install-binPROGRAMS
693
694 install-html: install-html-am
695
696 install-html-am:
697
698 install-info: install-info-am
699
700 install-info-am:
701
702 install-man:
703
704 install-pdf: install-pdf-am
705
706 install-pdf-am:
707
708 install-ps: install-ps-am
709
710 install-ps-am:
711
712 installcheck-am:
713
714 maintainer-clean: maintainer-clean-am
715 -rm -rf ./$(DEPDIR)
716 -rm -f Makefile
717 maintainer-clean-am: distclean-am maintainer-clean-generic
718
719 mostlyclean: mostlyclean-am
720
721 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
722 mostlyclean-libtool
723
724 pdf: pdf-am
725
726 pdf-am:
727
728 ps: ps-am
729
730 ps-am:
731
732 uninstall-am: uninstall-binPROGRAMS
733
734 .MAKE: install-am install-strip
735
736 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
737 clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
738 ctags ctags-am distclean distclean-compile distclean-generic \
739 distclean-libtool distclean-tags distdir dvi dvi-am html \
740 html-am info info-am install install-am install-binPROGRAMS \
741 install-data install-data-am install-dvi install-dvi-am \
742 install-exec install-exec-am install-html install-html-am \
743 install-info install-info-am install-man install-pdf \
744 install-pdf-am install-ps install-ps-am install-strip \
745 installcheck installcheck-am installdirs maintainer-clean \
746 maintainer-clean-generic mostlyclean mostlyclean-compile \
747 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
748 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
749
750 .PRECIOUS: Makefile
751
752
753 # Tell versions [3.59,3.63) of GNU make to not export all variables.
754 # Otherwise a system limit (for SysV at least) may be exceeded.
755 .NOEXPORT:
+0
-1456
aclocal.m4 less more
0 # generated automatically by aclocal 1.15.1 -*- Autoconf -*-
1
2 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
3
4 # This file is free software; the Free Software Foundation
5 # gives unlimited permission to copy and/or distribute it,
6 # with or without modifications, as long as this notice is preserved.
7
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
10 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
11 # PARTICULAR PURPOSE.
12
13 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
14 m4_ifndef([AC_AUTOCONF_VERSION],
15 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
16 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,
17 [m4_warning([this file was generated for autoconf 2.69.
18 You have another version of autoconf. It may work, but is not guaranteed to.
19 If you have problems, you may need to regenerate the build system entirely.
20 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
21
22 dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
23 dnl serial 11 (pkg-config-0.29.1)
24 dnl
25 dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
26 dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
27 dnl
28 dnl This program is free software; you can redistribute it and/or modify
29 dnl it under the terms of the GNU General Public License as published by
30 dnl the Free Software Foundation; either version 2 of the License, or
31 dnl (at your option) any later version.
32 dnl
33 dnl This program is distributed in the hope that it will be useful, but
34 dnl WITHOUT ANY WARRANTY; without even the implied warranty of
35 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
36 dnl General Public License for more details.
37 dnl
38 dnl You should have received a copy of the GNU General Public License
39 dnl along with this program; if not, write to the Free Software
40 dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
41 dnl 02111-1307, USA.
42 dnl
43 dnl As a special exception to the GNU General Public License, if you
44 dnl distribute this file as part of a program that contains a
45 dnl configuration script generated by Autoconf, you may include it under
46 dnl the same distribution terms that you use for the rest of that
47 dnl program.
48
49 dnl PKG_PREREQ(MIN-VERSION)
50 dnl -----------------------
51 dnl Since: 0.29
52 dnl
53 dnl Verify that the version of the pkg-config macros are at least
54 dnl MIN-VERSION. Unlike PKG_PROG_PKG_CONFIG, which checks the user's
55 dnl installed version of pkg-config, this checks the developer's version
56 dnl of pkg.m4 when generating configure.
57 dnl
58 dnl To ensure that this macro is defined, also add:
59 dnl m4_ifndef([PKG_PREREQ],
60 dnl [m4_fatal([must install pkg-config 0.29 or later before running autoconf/autogen])])
61 dnl
62 dnl See the "Since" comment for each macro you use to see what version
63 dnl of the macros you require.
64 m4_defun([PKG_PREREQ],
65 [m4_define([PKG_MACROS_VERSION], [0.29.1])
66 m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1,
67 [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])])
68 ])dnl PKG_PREREQ
69
70 dnl PKG_PROG_PKG_CONFIG([MIN-VERSION])
71 dnl ----------------------------------
72 dnl Since: 0.16
73 dnl
74 dnl Search for the pkg-config tool and set the PKG_CONFIG variable to
75 dnl first found in the path. Checks that the version of pkg-config found
76 dnl is at least MIN-VERSION. If MIN-VERSION is not specified, 0.9.0 is
77 dnl used since that's the first version where most current features of
78 dnl pkg-config existed.
79 AC_DEFUN([PKG_PROG_PKG_CONFIG],
80 [m4_pattern_forbid([^_?PKG_[A-Z_]+$])
81 m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
82 m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
83 AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
84 AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
85 AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
86
87 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
88 AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
89 fi
90 if test -n "$PKG_CONFIG"; then
91 _pkg_min_version=m4_default([$1], [0.9.0])
92 AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
93 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
94 AC_MSG_RESULT([yes])
95 else
96 AC_MSG_RESULT([no])
97 PKG_CONFIG=""
98 fi
99 fi[]dnl
100 ])dnl PKG_PROG_PKG_CONFIG
101
102 dnl PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
103 dnl -------------------------------------------------------------------
104 dnl Since: 0.18
105 dnl
106 dnl Check to see whether a particular set of modules exists. Similar to
107 dnl PKG_CHECK_MODULES(), but does not set variables or print errors.
108 dnl
109 dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
110 dnl only at the first occurence in configure.ac, so if the first place
111 dnl it's called might be skipped (such as if it is within an "if", you
112 dnl have to call PKG_CHECK_EXISTS manually
113 AC_DEFUN([PKG_CHECK_EXISTS],
114 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
115 if test -n "$PKG_CONFIG" && \
116 AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
117 m4_default([$2], [:])
118 m4_ifvaln([$3], [else
119 $3])dnl
120 fi])
121
122 dnl _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
123 dnl ---------------------------------------------
124 dnl Internal wrapper calling pkg-config via PKG_CONFIG and setting
125 dnl pkg_failed based on the result.
126 m4_define([_PKG_CONFIG],
127 [if test -n "$$1"; then
128 pkg_cv_[]$1="$$1"
129 elif test -n "$PKG_CONFIG"; then
130 PKG_CHECK_EXISTS([$3],
131 [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
132 test "x$?" != "x0" && pkg_failed=yes ],
133 [pkg_failed=yes])
134 else
135 pkg_failed=untried
136 fi[]dnl
137 ])dnl _PKG_CONFIG
138
139 dnl _PKG_SHORT_ERRORS_SUPPORTED
140 dnl ---------------------------
141 dnl Internal check to see if pkg-config supports short errors.
142 AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
143 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])
144 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
145 _pkg_short_errors_supported=yes
146 else
147 _pkg_short_errors_supported=no
148 fi[]dnl
149 ])dnl _PKG_SHORT_ERRORS_SUPPORTED
150
151
152 dnl PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
153 dnl [ACTION-IF-NOT-FOUND])
154 dnl --------------------------------------------------------------
155 dnl Since: 0.4.0
156 dnl
157 dnl Note that if there is a possibility the first call to
158 dnl PKG_CHECK_MODULES might not happen, you should be sure to include an
159 dnl explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
160 AC_DEFUN([PKG_CHECK_MODULES],
161 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
162 AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
163 AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
164
165 pkg_failed=no
166 AC_MSG_CHECKING([for $1])
167
168 _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
169 _PKG_CONFIG([$1][_LIBS], [libs], [$2])
170
171 m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
172 and $1[]_LIBS to avoid the need to call pkg-config.
173 See the pkg-config man page for more details.])
174
175 if test $pkg_failed = yes; then
176 AC_MSG_RESULT([no])
177 _PKG_SHORT_ERRORS_SUPPORTED
178 if test $_pkg_short_errors_supported = yes; then
179 $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
180 else
181 $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
182 fi
183 # Put the nasty error message in config.log where it belongs
184 echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
185
186 m4_default([$4], [AC_MSG_ERROR(
187 [Package requirements ($2) were not met:
188
189 $$1_PKG_ERRORS
190
191 Consider adjusting the PKG_CONFIG_PATH environment variable if you
192 installed software in a non-standard prefix.
193
194 _PKG_TEXT])[]dnl
195 ])
196 elif test $pkg_failed = untried; then
197 AC_MSG_RESULT([no])
198 m4_default([$4], [AC_MSG_FAILURE(
199 [The pkg-config script could not be found or is too old. Make sure it
200 is in your PATH or set the PKG_CONFIG environment variable to the full
201 path to pkg-config.
202
203 _PKG_TEXT
204
205 To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
206 ])
207 else
208 $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
209 $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
210 AC_MSG_RESULT([yes])
211 $3
212 fi[]dnl
213 ])dnl PKG_CHECK_MODULES
214
215
216 dnl PKG_CHECK_MODULES_STATIC(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
217 dnl [ACTION-IF-NOT-FOUND])
218 dnl ---------------------------------------------------------------------
219 dnl Since: 0.29
220 dnl
221 dnl Checks for existence of MODULES and gathers its build flags with
222 dnl static libraries enabled. Sets VARIABLE-PREFIX_CFLAGS from --cflags
223 dnl and VARIABLE-PREFIX_LIBS from --libs.
224 dnl
225 dnl Note that if there is a possibility the first call to
226 dnl PKG_CHECK_MODULES_STATIC might not happen, you should be sure to
227 dnl include an explicit call to PKG_PROG_PKG_CONFIG in your
228 dnl configure.ac.
229 AC_DEFUN([PKG_CHECK_MODULES_STATIC],
230 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
231 _save_PKG_CONFIG=$PKG_CONFIG
232 PKG_CONFIG="$PKG_CONFIG --static"
233 PKG_CHECK_MODULES($@)
234 PKG_CONFIG=$_save_PKG_CONFIG[]dnl
235 ])dnl PKG_CHECK_MODULES_STATIC
236
237
238 dnl PKG_INSTALLDIR([DIRECTORY])
239 dnl -------------------------
240 dnl Since: 0.27
241 dnl
242 dnl Substitutes the variable pkgconfigdir as the location where a module
243 dnl should install pkg-config .pc files. By default the directory is
244 dnl $libdir/pkgconfig, but the default can be changed by passing
245 dnl DIRECTORY. The user can override through the --with-pkgconfigdir
246 dnl parameter.
247 AC_DEFUN([PKG_INSTALLDIR],
248 [m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
249 m4_pushdef([pkg_description],
250 [pkg-config installation directory @<:@]pkg_default[@:>@])
251 AC_ARG_WITH([pkgconfigdir],
252 [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
253 [with_pkgconfigdir=]pkg_default)
254 AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
255 m4_popdef([pkg_default])
256 m4_popdef([pkg_description])
257 ])dnl PKG_INSTALLDIR
258
259
260 dnl PKG_NOARCH_INSTALLDIR([DIRECTORY])
261 dnl --------------------------------
262 dnl Since: 0.27
263 dnl
264 dnl Substitutes the variable noarch_pkgconfigdir as the location where a
265 dnl module should install arch-independent pkg-config .pc files. By
266 dnl default the directory is $datadir/pkgconfig, but the default can be
267 dnl changed by passing DIRECTORY. The user can override through the
268 dnl --with-noarch-pkgconfigdir parameter.
269 AC_DEFUN([PKG_NOARCH_INSTALLDIR],
270 [m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
271 m4_pushdef([pkg_description],
272 [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
273 AC_ARG_WITH([noarch-pkgconfigdir],
274 [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
275 [with_noarch_pkgconfigdir=]pkg_default)
276 AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
277 m4_popdef([pkg_default])
278 m4_popdef([pkg_description])
279 ])dnl PKG_NOARCH_INSTALLDIR
280
281
282 dnl PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
283 dnl [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
284 dnl -------------------------------------------
285 dnl Since: 0.28
286 dnl
287 dnl Retrieves the value of the pkg-config variable for the given module.
288 AC_DEFUN([PKG_CHECK_VAR],
289 [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
290 AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
291
292 _PKG_CONFIG([$1], [variable="][$3]["], [$2])
293 AS_VAR_COPY([$1], [pkg_cv_][$1])
294
295 AS_VAR_IF([$1], [""], [$5], [$4])dnl
296 ])dnl PKG_CHECK_VAR
297
298 # Copyright (C) 2002-2017 Free Software Foundation, Inc.
299 #
300 # This file is free software; the Free Software Foundation
301 # gives unlimited permission to copy and/or distribute it,
302 # with or without modifications, as long as this notice is preserved.
303
304 # AM_AUTOMAKE_VERSION(VERSION)
305 # ----------------------------
306 # Automake X.Y traces this macro to ensure aclocal.m4 has been
307 # generated from the m4 files accompanying Automake X.Y.
308 # (This private macro should not be called outside this file.)
309 AC_DEFUN([AM_AUTOMAKE_VERSION],
310 [am__api_version='1.15'
311 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
312 dnl require some minimum version. Point them to the right macro.
313 m4_if([$1], [1.15.1], [],
314 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
315 ])
316
317 # _AM_AUTOCONF_VERSION(VERSION)
318 # -----------------------------
319 # aclocal traces this macro to find the Autoconf version.
320 # This is a private macro too. Using m4_define simplifies
321 # the logic in aclocal, which can simply ignore this definition.
322 m4_define([_AM_AUTOCONF_VERSION], [])
323
324 # AM_SET_CURRENT_AUTOMAKE_VERSION
325 # -------------------------------
326 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
327 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
328 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
329 [AM_AUTOMAKE_VERSION([1.15.1])dnl
330 m4_ifndef([AC_AUTOCONF_VERSION],
331 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
332 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
333
334 # Figure out how to run the assembler. -*- Autoconf -*-
335
336 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
337 #
338 # This file is free software; the Free Software Foundation
339 # gives unlimited permission to copy and/or distribute it,
340 # with or without modifications, as long as this notice is preserved.
341
342 # AM_PROG_AS
343 # ----------
344 AC_DEFUN([AM_PROG_AS],
345 [# By default we simply use the C compiler to build assembly code.
346 AC_REQUIRE([AC_PROG_CC])
347 test "${CCAS+set}" = set || CCAS=$CC
348 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
349 AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
350 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
351 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
352 ])
353
354 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
355
356 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
357 #
358 # This file is free software; the Free Software Foundation
359 # gives unlimited permission to copy and/or distribute it,
360 # with or without modifications, as long as this notice is preserved.
361
362 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
363 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
364 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
365 #
366 # Of course, Automake must honor this variable whenever it calls a
367 # tool from the auxiliary directory. The problem is that $srcdir (and
368 # therefore $ac_aux_dir as well) can be either absolute or relative,
369 # depending on how configure is run. This is pretty annoying, since
370 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
371 # source directory, any form will work fine, but in subdirectories a
372 # relative path needs to be adjusted first.
373 #
374 # $ac_aux_dir/missing
375 # fails when called from a subdirectory if $ac_aux_dir is relative
376 # $top_srcdir/$ac_aux_dir/missing
377 # fails if $ac_aux_dir is absolute,
378 # fails when called from a subdirectory in a VPATH build with
379 # a relative $ac_aux_dir
380 #
381 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
382 # are both prefixed by $srcdir. In an in-source build this is usually
383 # harmless because $srcdir is '.', but things will broke when you
384 # start a VPATH build or use an absolute $srcdir.
385 #
386 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
387 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
388 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
389 # and then we would define $MISSING as
390 # MISSING="\${SHELL} $am_aux_dir/missing"
391 # This will work as long as MISSING is not called from configure, because
392 # unfortunately $(top_srcdir) has no meaning in configure.
393 # However there are other variables, like CC, which are often used in
394 # configure, and could therefore not use this "fixed" $ac_aux_dir.
395 #
396 # Another solution, used here, is to always expand $ac_aux_dir to an
397 # absolute PATH. The drawback is that using absolute paths prevent a
398 # configured tree to be moved without reconfiguration.
399
400 AC_DEFUN([AM_AUX_DIR_EXPAND],
401 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
402 # Expand $ac_aux_dir to an absolute path.
403 am_aux_dir=`cd "$ac_aux_dir" && pwd`
404 ])
405
406 # AM_CONDITIONAL -*- Autoconf -*-
407
408 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
409 #
410 # This file is free software; the Free Software Foundation
411 # gives unlimited permission to copy and/or distribute it,
412 # with or without modifications, as long as this notice is preserved.
413
414 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
415 # -------------------------------------
416 # Define a conditional.
417 AC_DEFUN([AM_CONDITIONAL],
418 [AC_PREREQ([2.52])dnl
419 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
420 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
421 AC_SUBST([$1_TRUE])dnl
422 AC_SUBST([$1_FALSE])dnl
423 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
424 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
425 m4_define([_AM_COND_VALUE_$1], [$2])dnl
426 if $2; then
427 $1_TRUE=
428 $1_FALSE='#'
429 else
430 $1_TRUE='#'
431 $1_FALSE=
432 fi
433 AC_CONFIG_COMMANDS_PRE(
434 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
435 AC_MSG_ERROR([[conditional "$1" was never defined.
436 Usually this means the macro was only invoked conditionally.]])
437 fi])])
438
439 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
440 #
441 # This file is free software; the Free Software Foundation
442 # gives unlimited permission to copy and/or distribute it,
443 # with or without modifications, as long as this notice is preserved.
444
445
446 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
447 # written in clear, in which case automake, when reading aclocal.m4,
448 # will think it sees a *use*, and therefore will trigger all it's
449 # C support machinery. Also note that it means that autoscan, seeing
450 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
451
452
453 # _AM_DEPENDENCIES(NAME)
454 # ----------------------
455 # See how the compiler implements dependency checking.
456 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
457 # We try a few techniques and use that to set a single cache variable.
458 #
459 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
460 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
461 # dependency, and given that the user is not expected to run this macro,
462 # just rely on AC_PROG_CC.
463 AC_DEFUN([_AM_DEPENDENCIES],
464 [AC_REQUIRE([AM_SET_DEPDIR])dnl
465 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
466 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
467 AC_REQUIRE([AM_DEP_TRACK])dnl
468
469 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
470 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
471 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
472 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
473 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
474 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
475 [depcc="$$1" am_compiler_list=])
476
477 AC_CACHE_CHECK([dependency style of $depcc],
478 [am_cv_$1_dependencies_compiler_type],
479 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
480 # We make a subdir and do the tests there. Otherwise we can end up
481 # making bogus files that we don't know about and never remove. For
482 # instance it was reported that on HP-UX the gcc test will end up
483 # making a dummy file named 'D' -- because '-MD' means "put the output
484 # in D".
485 rm -rf conftest.dir
486 mkdir conftest.dir
487 # Copy depcomp to subdir because otherwise we won't find it if we're
488 # using a relative directory.
489 cp "$am_depcomp" conftest.dir
490 cd conftest.dir
491 # We will build objects and dependencies in a subdirectory because
492 # it helps to detect inapplicable dependency modes. For instance
493 # both Tru64's cc and ICC support -MD to output dependencies as a
494 # side effect of compilation, but ICC will put the dependencies in
495 # the current directory while Tru64 will put them in the object
496 # directory.
497 mkdir sub
498
499 am_cv_$1_dependencies_compiler_type=none
500 if test "$am_compiler_list" = ""; then
501 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
502 fi
503 am__universal=false
504 m4_case([$1], [CC],
505 [case " $depcc " in #(
506 *\ -arch\ *\ -arch\ *) am__universal=true ;;
507 esac],
508 [CXX],
509 [case " $depcc " in #(
510 *\ -arch\ *\ -arch\ *) am__universal=true ;;
511 esac])
512
513 for depmode in $am_compiler_list; do
514 # Setup a source with many dependencies, because some compilers
515 # like to wrap large dependency lists on column 80 (with \), and
516 # we should not choose a depcomp mode which is confused by this.
517 #
518 # We need to recreate these files for each test, as the compiler may
519 # overwrite some of them when testing with obscure command lines.
520 # This happens at least with the AIX C compiler.
521 : > sub/conftest.c
522 for i in 1 2 3 4 5 6; do
523 echo '#include "conftst'$i'.h"' >> sub/conftest.c
524 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
525 # Solaris 10 /bin/sh.
526 echo '/* dummy */' > sub/conftst$i.h
527 done
528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
529
530 # We check with '-c' and '-o' for the sake of the "dashmstdout"
531 # mode. It turns out that the SunPro C++ compiler does not properly
532 # handle '-M -o', and we need to detect this. Also, some Intel
533 # versions had trouble with output in subdirs.
534 am__obj=sub/conftest.${OBJEXT-o}
535 am__minus_obj="-o $am__obj"
536 case $depmode in
537 gcc)
538 # This depmode causes a compiler race in universal mode.
539 test "$am__universal" = false || continue
540 ;;
541 nosideeffect)
542 # After this tag, mechanisms are not by side-effect, so they'll
543 # only be used when explicitly requested.
544 if test "x$enable_dependency_tracking" = xyes; then
545 continue
546 else
547 break
548 fi
549 ;;
550 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
551 # This compiler won't grok '-c -o', but also, the minuso test has
552 # not run yet. These depmodes are late enough in the game, and
553 # so weak that their functioning should not be impacted.
554 am__obj=conftest.${OBJEXT-o}
555 am__minus_obj=
556 ;;
557 none) break ;;
558 esac
559 if depmode=$depmode \
560 source=sub/conftest.c object=$am__obj \
561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
562 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
563 >/dev/null 2>conftest.err &&
564 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
565 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
566 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
567 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
568 # icc doesn't choke on unknown options, it will just issue warnings
569 # or remarks (even with -Werror). So we grep stderr for any message
570 # that says an option was ignored or not supported.
571 # When given -MP, icc 7.0 and 7.1 complain thusly:
572 # icc: Command line warning: ignoring option '-M'; no argument required
573 # The diagnosis changed in icc 8.0:
574 # icc: Command line remark: option '-MP' not supported
575 if (grep 'ignoring option' conftest.err ||
576 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
577 am_cv_$1_dependencies_compiler_type=$depmode
578 break
579 fi
580 fi
581 done
582
583 cd ..
584 rm -rf conftest.dir
585 else
586 am_cv_$1_dependencies_compiler_type=none
587 fi
588 ])
589 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
590 AM_CONDITIONAL([am__fastdep$1], [
591 test "x$enable_dependency_tracking" != xno \
592 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
593 ])
594
595
596 # AM_SET_DEPDIR
597 # -------------
598 # Choose a directory name for dependency files.
599 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
600 AC_DEFUN([AM_SET_DEPDIR],
601 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
602 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
603 ])
604
605
606 # AM_DEP_TRACK
607 # ------------
608 AC_DEFUN([AM_DEP_TRACK],
609 [AC_ARG_ENABLE([dependency-tracking], [dnl
610 AS_HELP_STRING(
611 [--enable-dependency-tracking],
612 [do not reject slow dependency extractors])
613 AS_HELP_STRING(
614 [--disable-dependency-tracking],
615 [speeds up one-time build])])
616 if test "x$enable_dependency_tracking" != xno; then
617 am_depcomp="$ac_aux_dir/depcomp"
618 AMDEPBACKSLASH='\'
619 am__nodep='_no'
620 fi
621 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
622 AC_SUBST([AMDEPBACKSLASH])dnl
623 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
624 AC_SUBST([am__nodep])dnl
625 _AM_SUBST_NOTMAKE([am__nodep])dnl
626 ])
627
628 # Generate code to set up dependency tracking. -*- Autoconf -*-
629
630 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
631 #
632 # This file is free software; the Free Software Foundation
633 # gives unlimited permission to copy and/or distribute it,
634 # with or without modifications, as long as this notice is preserved.
635
636
637 # _AM_OUTPUT_DEPENDENCY_COMMANDS
638 # ------------------------------
639 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
640 [{
641 # Older Autoconf quotes --file arguments for eval, but not when files
642 # are listed without --file. Let's play safe and only enable the eval
643 # if we detect the quoting.
644 case $CONFIG_FILES in
645 *\'*) eval set x "$CONFIG_FILES" ;;
646 *) set x $CONFIG_FILES ;;
647 esac
648 shift
649 for mf
650 do
651 # Strip MF so we end up with the name of the file.
652 mf=`echo "$mf" | sed -e 's/:.*$//'`
653 # Check whether this is an Automake generated Makefile or not.
654 # We used to match only the files named 'Makefile.in', but
655 # some people rename them; so instead we look at the file content.
656 # Grep'ing the first line is not enough: some people post-process
657 # each Makefile.in and add a new line on top of each file to say so.
658 # Grep'ing the whole file is not good either: AIX grep has a line
659 # limit of 2048, but all sed's we know have understand at least 4000.
660 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
661 dirpart=`AS_DIRNAME("$mf")`
662 else
663 continue
664 fi
665 # Extract the definition of DEPDIR, am__include, and am__quote
666 # from the Makefile without running 'make'.
667 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
668 test -z "$DEPDIR" && continue
669 am__include=`sed -n 's/^am__include = //p' < "$mf"`
670 test -z "$am__include" && continue
671 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
672 # Find all dependency output files, they are included files with
673 # $(DEPDIR) in their names. We invoke sed twice because it is the
674 # simplest approach to changing $(DEPDIR) to its actual value in the
675 # expansion.
676 for file in `sed -n "
677 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
678 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
679 # Make sure the directory exists.
680 test -f "$dirpart/$file" && continue
681 fdir=`AS_DIRNAME(["$file"])`
682 AS_MKDIR_P([$dirpart/$fdir])
683 # echo "creating $dirpart/$file"
684 echo '# dummy' > "$dirpart/$file"
685 done
686 done
687 }
688 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
689
690
691 # AM_OUTPUT_DEPENDENCY_COMMANDS
692 # -----------------------------
693 # This macro should only be invoked once -- use via AC_REQUIRE.
694 #
695 # This code is only required when automatic dependency tracking
696 # is enabled. FIXME. This creates each '.P' file that we will
697 # need in order to bootstrap the dependency handling code.
698 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
699 [AC_CONFIG_COMMANDS([depfiles],
700 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
701 [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"])
702 ])
703
704 # Do all the work for Automake. -*- Autoconf -*-
705
706 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
707 #
708 # This file is free software; the Free Software Foundation
709 # gives unlimited permission to copy and/or distribute it,
710 # with or without modifications, as long as this notice is preserved.
711
712 # This macro actually does too much. Some checks are only needed if
713 # your package does certain things. But this isn't really a big deal.
714
715 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
716 m4_define([AC_PROG_CC],
717 m4_defn([AC_PROG_CC])
718 [_AM_PROG_CC_C_O
719 ])
720
721 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
722 # AM_INIT_AUTOMAKE([OPTIONS])
723 # -----------------------------------------------
724 # The call with PACKAGE and VERSION arguments is the old style
725 # call (pre autoconf-2.50), which is being phased out. PACKAGE
726 # and VERSION should now be passed to AC_INIT and removed from
727 # the call to AM_INIT_AUTOMAKE.
728 # We support both call styles for the transition. After
729 # the next Automake release, Autoconf can make the AC_INIT
730 # arguments mandatory, and then we can depend on a new Autoconf
731 # release and drop the old call support.
732 AC_DEFUN([AM_INIT_AUTOMAKE],
733 [AC_PREREQ([2.65])dnl
734 dnl Autoconf wants to disallow AM_ names. We explicitly allow
735 dnl the ones we care about.
736 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
737 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
738 AC_REQUIRE([AC_PROG_INSTALL])dnl
739 if test "`cd $srcdir && pwd`" != "`pwd`"; then
740 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
741 # is not polluted with repeated "-I."
742 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
743 # test to see if srcdir already configured
744 if test -f $srcdir/config.status; then
745 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
746 fi
747 fi
748
749 # test whether we have cygpath
750 if test -z "$CYGPATH_W"; then
751 if (cygpath --version) >/dev/null 2>/dev/null; then
752 CYGPATH_W='cygpath -w'
753 else
754 CYGPATH_W=echo
755 fi
756 fi
757 AC_SUBST([CYGPATH_W])
758
759 # Define the identity of the package.
760 dnl Distinguish between old-style and new-style calls.
761 m4_ifval([$2],
762 [AC_DIAGNOSE([obsolete],
763 [$0: two- and three-arguments forms are deprecated.])
764 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
765 AC_SUBST([PACKAGE], [$1])dnl
766 AC_SUBST([VERSION], [$2])],
767 [_AM_SET_OPTIONS([$1])dnl
768 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
769 m4_if(
770 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),
771 [ok:ok],,
772 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
773 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
774 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
775
776 _AM_IF_OPTION([no-define],,
777 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
778 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
779
780 # Some tools Automake needs.
781 AC_REQUIRE([AM_SANITY_CHECK])dnl
782 AC_REQUIRE([AC_ARG_PROGRAM])dnl
783 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
784 AM_MISSING_PROG([AUTOCONF], [autoconf])
785 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
786 AM_MISSING_PROG([AUTOHEADER], [autoheader])
787 AM_MISSING_PROG([MAKEINFO], [makeinfo])
788 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
789 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
790 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
791 # For better backward compatibility. To be removed once Automake 1.9.x
792 # dies out for good. For more background, see:
793 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
794 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
795 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
796 # We need awk for the "check" target (and possibly the TAP driver). The
797 # system "awk" is bad on some platforms.
798 AC_REQUIRE([AC_PROG_AWK])dnl
799 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
800 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
801 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
802 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
803 [_AM_PROG_TAR([v7])])])
804 _AM_IF_OPTION([no-dependencies],,
805 [AC_PROVIDE_IFELSE([AC_PROG_CC],
806 [_AM_DEPENDENCIES([CC])],
807 [m4_define([AC_PROG_CC],
808 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
809 AC_PROVIDE_IFELSE([AC_PROG_CXX],
810 [_AM_DEPENDENCIES([CXX])],
811 [m4_define([AC_PROG_CXX],
812 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
813 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
814 [_AM_DEPENDENCIES([OBJC])],
815 [m4_define([AC_PROG_OBJC],
816 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
817 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
818 [_AM_DEPENDENCIES([OBJCXX])],
819 [m4_define([AC_PROG_OBJCXX],
820 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
821 ])
822 AC_REQUIRE([AM_SILENT_RULES])dnl
823 dnl The testsuite driver may need to know about EXEEXT, so add the
824 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
825 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
826 AC_CONFIG_COMMANDS_PRE(dnl
827 [m4_provide_if([_AM_COMPILER_EXEEXT],
828 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
829
830 # POSIX will say in a future version that running "rm -f" with no argument
831 # is OK; and we want to be able to make that assumption in our Makefile
832 # recipes. So use an aggressive probe to check that the usage we want is
833 # actually supported "in the wild" to an acceptable degree.
834 # See automake bug#10828.
835 # To make any issue more visible, cause the running configure to be aborted
836 # by default if the 'rm' program in use doesn't match our expectations; the
837 # user can still override this though.
838 if rm -f && rm -fr && rm -rf; then : OK; else
839 cat >&2 <<'END'
840 Oops!
841
842 Your 'rm' program seems unable to run without file operands specified
843 on the command line, even when the '-f' option is present. This is contrary
844 to the behaviour of most rm programs out there, and not conforming with
845 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
846
847 Please tell bug-automake@gnu.org about your system, including the value
848 of your $PATH and any error possibly output before this message. This
849 can help us improve future automake versions.
850
851 END
852 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
853 echo 'Configuration will proceed anyway, since you have set the' >&2
854 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
855 echo >&2
856 else
857 cat >&2 <<'END'
858 Aborting the configuration process, to ensure you take notice of the issue.
859
860 You can download and install GNU coreutils to get an 'rm' implementation
861 that behaves properly: <http://www.gnu.org/software/coreutils/>.
862
863 If you want to complete the configuration process using your problematic
864 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
865 to "yes", and re-run configure.
866
867 END
868 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
869 fi
870 fi
871 dnl The trailing newline in this macro's definition is deliberate, for
872 dnl backward compatibility and to allow trailing 'dnl'-style comments
873 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
874 ])
875
876 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
877 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
878 dnl mangled by Autoconf and run in a shell conditional statement.
879 m4_define([_AC_COMPILER_EXEEXT],
880 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
881
882 # When config.status generates a header, we must update the stamp-h file.
883 # This file resides in the same directory as the config header
884 # that is generated. The stamp files are numbered to have different names.
885
886 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
887 # loop where config.status creates the headers, so we can generate
888 # our stamp files there.
889 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
890 [# Compute $1's index in $config_headers.
891 _am_arg=$1
892 _am_stamp_count=1
893 for _am_header in $config_headers :; do
894 case $_am_header in
895 $_am_arg | $_am_arg:* )
896 break ;;
897 * )
898 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
899 esac
900 done
901 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
902
903 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
904 #
905 # This file is free software; the Free Software Foundation
906 # gives unlimited permission to copy and/or distribute it,
907 # with or without modifications, as long as this notice is preserved.
908
909 # AM_PROG_INSTALL_SH
910 # ------------------
911 # Define $install_sh.
912 AC_DEFUN([AM_PROG_INSTALL_SH],
913 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
914 if test x"${install_sh+set}" != xset; then
915 case $am_aux_dir in
916 *\ * | *\ *)
917 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
918 *)
919 install_sh="\${SHELL} $am_aux_dir/install-sh"
920 esac
921 fi
922 AC_SUBST([install_sh])])
923
924 # Copyright (C) 2003-2017 Free Software Foundation, Inc.
925 #
926 # This file is free software; the Free Software Foundation
927 # gives unlimited permission to copy and/or distribute it,
928 # with or without modifications, as long as this notice is preserved.
929
930 # Check whether the underlying file-system supports filenames
931 # with a leading dot. For instance MS-DOS doesn't.
932 AC_DEFUN([AM_SET_LEADING_DOT],
933 [rm -rf .tst 2>/dev/null
934 mkdir .tst 2>/dev/null
935 if test -d .tst; then
936 am__leading_dot=.
937 else
938 am__leading_dot=_
939 fi
940 rmdir .tst 2>/dev/null
941 AC_SUBST([am__leading_dot])])
942
943 # Check to see how 'make' treats includes. -*- Autoconf -*-
944
945 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
946 #
947 # This file is free software; the Free Software Foundation
948 # gives unlimited permission to copy and/or distribute it,
949 # with or without modifications, as long as this notice is preserved.
950
951 # AM_MAKE_INCLUDE()
952 # -----------------
953 # Check to see how make treats includes.
954 AC_DEFUN([AM_MAKE_INCLUDE],
955 [am_make=${MAKE-make}
956 cat > confinc << 'END'
957 am__doit:
958 @echo this is the am__doit target
959 .PHONY: am__doit
960 END
961 # If we don't find an include directive, just comment out the code.
962 AC_MSG_CHECKING([for style of include used by $am_make])
963 am__include="#"
964 am__quote=
965 _am_result=none
966 # First try GNU make style include.
967 echo "include confinc" > confmf
968 # Ignore all kinds of additional output from 'make'.
969 case `$am_make -s -f confmf 2> /dev/null` in #(
970 *the\ am__doit\ target*)
971 am__include=include
972 am__quote=
973 _am_result=GNU
974 ;;
975 esac
976 # Now try BSD make style include.
977 if test "$am__include" = "#"; then
978 echo '.include "confinc"' > confmf
979 case `$am_make -s -f confmf 2> /dev/null` in #(
980 *the\ am__doit\ target*)
981 am__include=.include
982 am__quote="\""
983 _am_result=BSD
984 ;;
985 esac
986 fi
987 AC_SUBST([am__include])
988 AC_SUBST([am__quote])
989 AC_MSG_RESULT([$_am_result])
990 rm -f confinc confmf
991 ])
992
993 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
994
995 # Copyright (C) 1997-2017 Free Software Foundation, Inc.
996 #
997 # This file is free software; the Free Software Foundation
998 # gives unlimited permission to copy and/or distribute it,
999 # with or without modifications, as long as this notice is preserved.
1000
1001 # AM_MISSING_PROG(NAME, PROGRAM)
1002 # ------------------------------
1003 AC_DEFUN([AM_MISSING_PROG],
1004 [AC_REQUIRE([AM_MISSING_HAS_RUN])
1005 $1=${$1-"${am_missing_run}$2"}
1006 AC_SUBST($1)])
1007
1008 # AM_MISSING_HAS_RUN
1009 # ------------------
1010 # Define MISSING if not defined so far and test if it is modern enough.
1011 # If it is, set am_missing_run to use it, otherwise, to nothing.
1012 AC_DEFUN([AM_MISSING_HAS_RUN],
1013 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1014 AC_REQUIRE_AUX_FILE([missing])dnl
1015 if test x"${MISSING+set}" != xset; then
1016 case $am_aux_dir in
1017 *\ * | *\ *)
1018 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
1019 *)
1020 MISSING="\${SHELL} $am_aux_dir/missing" ;;
1021 esac
1022 fi
1023 # Use eval to expand $SHELL
1024 if eval "$MISSING --is-lightweight"; then
1025 am_missing_run="$MISSING "
1026 else
1027 am_missing_run=
1028 AC_MSG_WARN(['missing' script is too old or missing])
1029 fi
1030 ])
1031
1032 # Helper functions for option handling. -*- Autoconf -*-
1033
1034 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1035 #
1036 # This file is free software; the Free Software Foundation
1037 # gives unlimited permission to copy and/or distribute it,
1038 # with or without modifications, as long as this notice is preserved.
1039
1040 # _AM_MANGLE_OPTION(NAME)
1041 # -----------------------
1042 AC_DEFUN([_AM_MANGLE_OPTION],
1043 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
1044
1045 # _AM_SET_OPTION(NAME)
1046 # --------------------
1047 # Set option NAME. Presently that only means defining a flag for this option.
1048 AC_DEFUN([_AM_SET_OPTION],
1049 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
1050
1051 # _AM_SET_OPTIONS(OPTIONS)
1052 # ------------------------
1053 # OPTIONS is a space-separated list of Automake options.
1054 AC_DEFUN([_AM_SET_OPTIONS],
1055 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
1056
1057 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
1058 # -------------------------------------------
1059 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
1060 AC_DEFUN([_AM_IF_OPTION],
1061 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
1062
1063 # Copyright (C) 1999-2017 Free Software Foundation, Inc.
1064 #
1065 # This file is free software; the Free Software Foundation
1066 # gives unlimited permission to copy and/or distribute it,
1067 # with or without modifications, as long as this notice is preserved.
1068
1069 # _AM_PROG_CC_C_O
1070 # ---------------
1071 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
1072 # to automatically call this.
1073 AC_DEFUN([_AM_PROG_CC_C_O],
1074 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
1075 AC_REQUIRE_AUX_FILE([compile])dnl
1076 AC_LANG_PUSH([C])dnl
1077 AC_CACHE_CHECK(
1078 [whether $CC understands -c and -o together],
1079 [am_cv_prog_cc_c_o],
1080 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
1081 # Make sure it works both with $CC and with simple cc.
1082 # Following AC_PROG_CC_C_O, we do the test twice because some
1083 # compilers refuse to overwrite an existing .o file with -o,
1084 # though they will create one.
1085 am_cv_prog_cc_c_o=yes
1086 for am_i in 1 2; do
1087 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
1088 && test -f conftest2.$ac_objext; then
1089 : OK
1090 else
1091 am_cv_prog_cc_c_o=no
1092 break
1093 fi
1094 done
1095 rm -f core conftest*
1096 unset am_i])
1097 if test "$am_cv_prog_cc_c_o" != yes; then
1098 # Losing compiler, so override with the script.
1099 # FIXME: It is wrong to rewrite CC.
1100 # But if we don't then we get into trouble of one sort or another.
1101 # A longer-term fix would be to have automake use am__CC in this case,
1102 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
1103 CC="$am_aux_dir/compile $CC"
1104 fi
1105 AC_LANG_POP([C])])
1106
1107 # For backward compatibility.
1108 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
1109
1110 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1111 #
1112 # This file is free software; the Free Software Foundation
1113 # gives unlimited permission to copy and/or distribute it,
1114 # with or without modifications, as long as this notice is preserved.
1115
1116 # AM_RUN_LOG(COMMAND)
1117 # -------------------
1118 # Run COMMAND, save the exit status in ac_status, and log it.
1119 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
1120 AC_DEFUN([AM_RUN_LOG],
1121 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
1122 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
1123 ac_status=$?
1124 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1125 (exit $ac_status); }])
1126
1127 # Check to make sure that the build environment is sane. -*- Autoconf -*-
1128
1129 # Copyright (C) 1996-2017 Free Software Foundation, Inc.
1130 #
1131 # This file is free software; the Free Software Foundation
1132 # gives unlimited permission to copy and/or distribute it,
1133 # with or without modifications, as long as this notice is preserved.
1134
1135 # AM_SANITY_CHECK
1136 # ---------------
1137 AC_DEFUN([AM_SANITY_CHECK],
1138 [AC_MSG_CHECKING([whether build environment is sane])
1139 # Reject unsafe characters in $srcdir or the absolute working directory
1140 # name. Accept space and tab only in the latter.
1141 am_lf='
1142 '
1143 case `pwd` in
1144 *[[\\\"\#\$\&\'\`$am_lf]]*)
1145 AC_MSG_ERROR([unsafe absolute working directory name]);;
1146 esac
1147 case $srcdir in
1148 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1149 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1150 esac
1151
1152 # Do 'set' in a subshell so we don't clobber the current shell's
1153 # arguments. Must try -L first in case configure is actually a
1154 # symlink; some systems play weird games with the mod time of symlinks
1155 # (eg FreeBSD returns the mod time of the symlink's containing
1156 # directory).
1157 if (
1158 am_has_slept=no
1159 for am_try in 1 2; do
1160 echo "timestamp, slept: $am_has_slept" > conftest.file
1161 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1162 if test "$[*]" = "X"; then
1163 # -L didn't work.
1164 set X `ls -t "$srcdir/configure" conftest.file`
1165 fi
1166 if test "$[*]" != "X $srcdir/configure conftest.file" \
1167 && test "$[*]" != "X conftest.file $srcdir/configure"; then
1168
1169 # If neither matched, then we have a broken ls. This can happen
1170 # if, for instance, CONFIG_SHELL is bash and it inherits a
1171 # broken ls alias from the environment. This has actually
1172 # happened. Such a system could not be considered "sane".
1173 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
1174 alias in your environment])
1175 fi
1176 if test "$[2]" = conftest.file || test $am_try -eq 2; then
1177 break
1178 fi
1179 # Just in case.
1180 sleep 1
1181 am_has_slept=yes
1182 done
1183 test "$[2]" = conftest.file
1184 )
1185 then
1186 # Ok.
1187 :
1188 else
1189 AC_MSG_ERROR([newly created file is older than distributed files!
1190 Check your system clock])
1191 fi
1192 AC_MSG_RESULT([yes])
1193 # If we didn't sleep, we still need to ensure time stamps of config.status and
1194 # generated files are strictly newer.
1195 am_sleep_pid=
1196 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
1197 ( sleep 1 ) &
1198 am_sleep_pid=$!
1199 fi
1200 AC_CONFIG_COMMANDS_PRE(
1201 [AC_MSG_CHECKING([that generated files are newer than configure])
1202 if test -n "$am_sleep_pid"; then
1203 # Hide warnings about reused PIDs.
1204 wait $am_sleep_pid 2>/dev/null
1205 fi
1206 AC_MSG_RESULT([done])])
1207 rm -f conftest.file
1208 ])
1209
1210 # Copyright (C) 2009-2017 Free Software Foundation, Inc.
1211 #
1212 # This file is free software; the Free Software Foundation
1213 # gives unlimited permission to copy and/or distribute it,
1214 # with or without modifications, as long as this notice is preserved.
1215
1216 # AM_SILENT_RULES([DEFAULT])
1217 # --------------------------
1218 # Enable less verbose build rules; with the default set to DEFAULT
1219 # ("yes" being less verbose, "no" or empty being verbose).
1220 AC_DEFUN([AM_SILENT_RULES],
1221 [AC_ARG_ENABLE([silent-rules], [dnl
1222 AS_HELP_STRING(
1223 [--enable-silent-rules],
1224 [less verbose build output (undo: "make V=1")])
1225 AS_HELP_STRING(
1226 [--disable-silent-rules],
1227 [verbose build output (undo: "make V=0")])dnl
1228 ])
1229 case $enable_silent_rules in @%:@ (((
1230 yes) AM_DEFAULT_VERBOSITY=0;;
1231 no) AM_DEFAULT_VERBOSITY=1;;
1232 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
1233 esac
1234 dnl
1235 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1236 dnl do not support nested variable expansions.
1237 dnl See automake bug#9928 and bug#10237.
1238 am_make=${MAKE-make}
1239 AC_CACHE_CHECK([whether $am_make supports nested variables],
1240 [am_cv_make_support_nested_variables],
1241 [if AS_ECHO([['TRUE=$(BAR$(V))
1242 BAR0=false
1243 BAR1=true
1244 V=1
1245 am__doit:
1246 @$(TRUE)
1247 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1248 am_cv_make_support_nested_variables=yes
1249 else
1250 am_cv_make_support_nested_variables=no
1251 fi])
1252 if test $am_cv_make_support_nested_variables = yes; then
1253 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1254 AM_V='$(V)'
1255 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1256 else
1257 AM_V=$AM_DEFAULT_VERBOSITY
1258 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1259 fi
1260 AC_SUBST([AM_V])dnl
1261 AM_SUBST_NOTMAKE([AM_V])dnl
1262 AC_SUBST([AM_DEFAULT_V])dnl
1263 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1264 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1265 AM_BACKSLASH='\'
1266 AC_SUBST([AM_BACKSLASH])dnl
1267 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1268 ])
1269
1270 # Copyright (C) 2001-2017 Free Software Foundation, Inc.
1271 #
1272 # This file is free software; the Free Software Foundation
1273 # gives unlimited permission to copy and/or distribute it,
1274 # with or without modifications, as long as this notice is preserved.
1275
1276 # AM_PROG_INSTALL_STRIP
1277 # ---------------------
1278 # One issue with vendor 'install' (even GNU) is that you can't
1279 # specify the program used to strip binaries. This is especially
1280 # annoying in cross-compiling environments, where the build's strip
1281 # is unlikely to handle the host's binaries.
1282 # Fortunately install-sh will honor a STRIPPROG variable, so we
1283 # always use install-sh in "make install-strip", and initialize
1284 # STRIPPROG with the value of the STRIP variable (set by the user).
1285 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1286 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1287 # Installed binaries are usually stripped using 'strip' when the user
1288 # run "make install-strip". However 'strip' might not be the right
1289 # tool to use in cross-compilation environments, therefore Automake
1290 # will honor the 'STRIP' environment variable to overrule this program.
1291 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1292 if test "$cross_compiling" != no; then
1293 AC_CHECK_TOOL([STRIP], [strip], :)
1294 fi
1295 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1296 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1297
1298 # Copyright (C) 2006-2017 Free Software Foundation, Inc.
1299 #
1300 # This file is free software; the Free Software Foundation
1301 # gives unlimited permission to copy and/or distribute it,
1302 # with or without modifications, as long as this notice is preserved.
1303
1304 # _AM_SUBST_NOTMAKE(VARIABLE)
1305 # ---------------------------
1306 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1307 # This macro is traced by Automake.
1308 AC_DEFUN([_AM_SUBST_NOTMAKE])
1309
1310 # AM_SUBST_NOTMAKE(VARIABLE)
1311 # --------------------------
1312 # Public sister of _AM_SUBST_NOTMAKE.
1313 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1314
1315 # Check how to create a tarball. -*- Autoconf -*-
1316
1317 # Copyright (C) 2004-2017 Free Software Foundation, Inc.
1318 #
1319 # This file is free software; the Free Software Foundation
1320 # gives unlimited permission to copy and/or distribute it,
1321 # with or without modifications, as long as this notice is preserved.
1322
1323 # _AM_PROG_TAR(FORMAT)
1324 # --------------------
1325 # Check how to create a tarball in format FORMAT.
1326 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1327 #
1328 # Substitute a variable $(am__tar) that is a command
1329 # writing to stdout a FORMAT-tarball containing the directory
1330 # $tardir.
1331 # tardir=directory && $(am__tar) > result.tar
1332 #
1333 # Substitute a variable $(am__untar) that extract such
1334 # a tarball read from stdin.
1335 # $(am__untar) < result.tar
1336 #
1337 AC_DEFUN([_AM_PROG_TAR],
1338 [# Always define AMTAR for backward compatibility. Yes, it's still used
1339 # in the wild :-( We should find a proper way to deprecate it ...
1340 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1341
1342 # We'll loop over all known methods to create a tar archive until one works.
1343 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1344
1345 m4_if([$1], [v7],
1346 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1347
1348 [m4_case([$1],
1349 [ustar],
1350 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1351 # There is notably a 21 bits limit for the UID and the GID. In fact,
1352 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1353 # and bug#13588).
1354 am_max_uid=2097151 # 2^21 - 1
1355 am_max_gid=$am_max_uid
1356 # The $UID and $GID variables are not portable, so we need to resort
1357 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1358 # below are definitely unexpected, so allow the users to see them
1359 # (that is, avoid stderr redirection).
1360 am_uid=`id -u || echo unknown`
1361 am_gid=`id -g || echo unknown`
1362 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1363 if test $am_uid -le $am_max_uid; then
1364 AC_MSG_RESULT([yes])
1365 else
1366 AC_MSG_RESULT([no])
1367 _am_tools=none
1368 fi
1369 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1370 if test $am_gid -le $am_max_gid; then
1371 AC_MSG_RESULT([yes])
1372 else
1373 AC_MSG_RESULT([no])
1374 _am_tools=none
1375 fi],
1376
1377 [pax],
1378 [],
1379
1380 [m4_fatal([Unknown tar format])])
1381
1382 AC_MSG_CHECKING([how to create a $1 tar archive])
1383
1384 # Go ahead even if we have the value already cached. We do so because we
1385 # need to set the values for the 'am__tar' and 'am__untar' variables.
1386 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1387
1388 for _am_tool in $_am_tools; do
1389 case $_am_tool in
1390 gnutar)
1391 for _am_tar in tar gnutar gtar; do
1392 AM_RUN_LOG([$_am_tar --version]) && break
1393 done
1394 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1395 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1396 am__untar="$_am_tar -xf -"
1397 ;;
1398 plaintar)
1399 # Must skip GNU tar: if it does not support --format= it doesn't create
1400 # ustar tarball either.
1401 (tar --version) >/dev/null 2>&1 && continue
1402 am__tar='tar chf - "$$tardir"'
1403 am__tar_='tar chf - "$tardir"'
1404 am__untar='tar xf -'
1405 ;;
1406 pax)
1407 am__tar='pax -L -x $1 -w "$$tardir"'
1408 am__tar_='pax -L -x $1 -w "$tardir"'
1409 am__untar='pax -r'
1410 ;;
1411 cpio)
1412 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1413 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1414 am__untar='cpio -i -H $1 -d'
1415 ;;
1416 none)
1417 am__tar=false
1418 am__tar_=false
1419 am__untar=false
1420 ;;
1421 esac
1422
1423 # If the value was cached, stop now. We just wanted to have am__tar
1424 # and am__untar set.
1425 test -n "${am_cv_prog_tar_$1}" && break
1426
1427 # tar/untar a dummy directory, and stop if the command works.
1428 rm -rf conftest.dir
1429 mkdir conftest.dir
1430 echo GrepMe > conftest.dir/file
1431 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1432 rm -rf conftest.dir
1433 if test -s conftest.tar; then
1434 AM_RUN_LOG([$am__untar <conftest.tar])
1435 AM_RUN_LOG([cat conftest.dir/file])
1436 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1437 fi
1438 done
1439 rm -rf conftest.dir
1440
1441 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1442 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1443
1444 AC_SUBST([am__tar])
1445 AC_SUBST([am__untar])
1446 ]) # _AM_PROG_TAR
1447
1448 m4_include([m4/ax_compare_version.m4])
1449 m4_include([m4/ax_cxx_compile_stdcxx_11.m4])
1450 m4_include([m4/libtool.m4])
1451 m4_include([m4/ltoptions.m4])
1452 m4_include([m4/ltsugar.m4])
1453 m4_include([m4/ltversion.m4])
1454 m4_include([m4/lt~obsolete.m4])
1455 m4_include([m4/m4_ax_check_compile_flag.m4])
0 # stats available at
1 # https://ci.appveyor.com/project/strukturag/libde265
2 version: 1.0.{build}
3
4 os:
5 - Windows Server 2012 R2
6
7 environment:
8 matrix:
9 - GENERATOR: "Visual Studio 11 2012"
10 - GENERATOR: "Visual Studio 12 2013"
11
12 platform:
13 - x86
14 - x64
15
16 configuration:
17 - Debug
18
19 build:
20 verbosity: normal
21
22 install:
23 - git clone https://github.com/strukturag/libde265-data.git
24
25 build_script:
26 - ps: if($env:PLATFORM -eq "x64") { $env:CMAKE_GEN_SUFFIX=" Win64" }
27 - cmake "-G%GENERATOR%%CMAKE_GEN_SUFFIX%" -H. -Bbuild
28 - cmake --build build --config %CONFIGURATION%
29
30 before_test:
31 - copy /y build\dec265\%CONFIGURATION%\dec265.exe build
32 - copy /y build\enc265\%CONFIGURATION%\enc265.exe build
33 - copy /y build\libde265\%CONFIGURATION%\libde265.dll build
34
35 test_script:
36 - build\dec265.exe -q -c -f 100 libde265-data\IDR-only\paris-352x288-intra.bin
37 - build\dec265.exe -t 4 -q -c -f 100 libde265-data\IDR-only\paris-352x288-intra.bin
38 - build\dec265.exe -q -c -f 100 libde265-data\RandomAccess\paris-ra-wpp.bin
39 - build\dec265.exe -t 4 -q -c -f 100 libde265-data\RandomAccess\paris-ra-wpp.bin
40
41 artifacts:
42 - path: build
+0
-347
compile less more
0 #! /bin/sh
1 # Wrapper for compilers which do not understand '-c -o'.
2
3 scriptversion=2012-10-14.11; # UTC
4
5 # Copyright (C) 1999-2014 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, see <http://www.gnu.org/licenses/>.
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 # This file is maintained in Automake, please report
27 # bugs to <bug-automake@gnu.org> or send patches to
28 # <automake-patches@gnu.org>.
29
30 nl='
31 '
32
33 # We need space, tab and new line, in precisely that order. Quoting is
34 # there to prevent tools from complaining about whitespace usage.
35 IFS=" "" $nl"
36
37 file_conv=
38
39 # func_file_conv build_file lazy
40 # Convert a $build file to $host form and store it in $file
41 # Currently only supports Windows hosts. If the determined conversion
42 # type is listed in (the comma separated) LAZY, no conversion will
43 # take place.
44 func_file_conv ()
45 {
46 file=$1
47 case $file in
48 / | /[!/]*) # absolute file, and not a UNC file
49 if test -z "$file_conv"; then
50 # lazily determine how to convert abs files
51 case `uname -s` in
52 MINGW*)
53 file_conv=mingw
54 ;;
55 CYGWIN*)
56 file_conv=cygwin
57 ;;
58 *)
59 file_conv=wine
60 ;;
61 esac
62 fi
63 case $file_conv/,$2, in
64 *,$file_conv,*)
65 ;;
66 mingw/*)
67 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
68 ;;
69 cygwin/*)
70 file=`cygpath -m "$file" || echo "$file"`
71 ;;
72 wine/*)
73 file=`winepath -w "$file" || echo "$file"`
74 ;;
75 esac
76 ;;
77 esac
78 }
79
80 # func_cl_dashL linkdir
81 # Make cl look for libraries in LINKDIR
82 func_cl_dashL ()
83 {
84 func_file_conv "$1"
85 if test -z "$lib_path"; then
86 lib_path=$file
87 else
88 lib_path="$lib_path;$file"
89 fi
90 linker_opts="$linker_opts -LIBPATH:$file"
91 }
92
93 # func_cl_dashl library
94 # Do a library search-path lookup for cl
95 func_cl_dashl ()
96 {
97 lib=$1
98 found=no
99 save_IFS=$IFS
100 IFS=';'
101 for dir in $lib_path $LIB
102 do
103 IFS=$save_IFS
104 if $shared && test -f "$dir/$lib.dll.lib"; then
105 found=yes
106 lib=$dir/$lib.dll.lib
107 break
108 fi
109 if test -f "$dir/$lib.lib"; then
110 found=yes
111 lib=$dir/$lib.lib
112 break
113 fi
114 if test -f "$dir/lib$lib.a"; then
115 found=yes
116 lib=$dir/lib$lib.a
117 break
118 fi
119 done
120 IFS=$save_IFS
121
122 if test "$found" != yes; then
123 lib=$lib.lib
124 fi
125 }
126
127 # func_cl_wrapper cl arg...
128 # Adjust compile command to suit cl
129 func_cl_wrapper ()
130 {
131 # Assume a capable shell
132 lib_path=
133 shared=:
134 linker_opts=
135 for arg
136 do
137 if test -n "$eat"; then
138 eat=
139 else
140 case $1 in
141 -o)
142 # configure might choose to run compile as 'compile cc -o foo foo.c'.
143 eat=1
144 case $2 in
145 *.o | *.[oO][bB][jJ])
146 func_file_conv "$2"
147 set x "$@" -Fo"$file"
148 shift
149 ;;
150 *)
151 func_file_conv "$2"
152 set x "$@" -Fe"$file"
153 shift
154 ;;
155 esac
156 ;;
157 -I)
158 eat=1
159 func_file_conv "$2" mingw
160 set x "$@" -I"$file"
161 shift
162 ;;
163 -I*)
164 func_file_conv "${1#-I}" mingw
165 set x "$@" -I"$file"
166 shift
167 ;;
168 -l)
169 eat=1
170 func_cl_dashl "$2"
171 set x "$@" "$lib"
172 shift
173 ;;
174 -l*)
175 func_cl_dashl "${1#-l}"
176 set x "$@" "$lib"
177 shift
178 ;;
179 -L)
180 eat=1
181 func_cl_dashL "$2"
182 ;;
183 -L*)
184 func_cl_dashL "${1#-L}"
185 ;;
186 -static)
187 shared=false
188 ;;
189 -Wl,*)
190 arg=${1#-Wl,}
191 save_ifs="$IFS"; IFS=','
192 for flag in $arg; do
193 IFS="$save_ifs"
194 linker_opts="$linker_opts $flag"
195 done
196 IFS="$save_ifs"
197 ;;
198 -Xlinker)
199 eat=1
200 linker_opts="$linker_opts $2"
201 ;;
202 -*)
203 set x "$@" "$1"
204 shift
205 ;;
206 *.cc | *.CC | *.cxx | *.CXX | *.[cC]++)
207 func_file_conv "$1"
208 set x "$@" -Tp"$file"
209 shift
210 ;;
211 *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
212 func_file_conv "$1" mingw
213 set x "$@" "$file"
214 shift
215 ;;
216 *)
217 set x "$@" "$1"
218 shift
219 ;;
220 esac
221 fi
222 shift
223 done
224 if test -n "$linker_opts"; then
225 linker_opts="-link$linker_opts"
226 fi
227 exec "$@" $linker_opts
228 exit 1
229 }
230
231 eat=
232
233 case $1 in
234 '')
235 echo "$0: No command. Try '$0 --help' for more information." 1>&2
236 exit 1;
237 ;;
238 -h | --h*)
239 cat <<\EOF
240 Usage: compile [--help] [--version] PROGRAM [ARGS]
241
242 Wrapper for compilers which do not understand '-c -o'.
243 Remove '-o dest.o' from ARGS, run PROGRAM with the remaining
244 arguments, and rename the output as expected.
245
246 If you are trying to build a whole package this is not the
247 right script to run: please start by reading the file 'INSTALL'.
248
249 Report bugs to <bug-automake@gnu.org>.
250 EOF
251 exit $?
252 ;;
253 -v | --v*)
254 echo "compile $scriptversion"
255 exit $?
256 ;;
257 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
258 func_cl_wrapper "$@" # Doesn't return...
259 ;;
260 esac
261
262 ofile=
263 cfile=
264
265 for arg
266 do
267 if test -n "$eat"; then
268 eat=
269 else
270 case $1 in
271 -o)
272 # configure might choose to run compile as 'compile cc -o foo foo.c'.
273 # So we strip '-o arg' only if arg is an object.
274 eat=1
275 case $2 in
276 *.o | *.obj)
277 ofile=$2
278 ;;
279 *)
280 set x "$@" -o "$2"
281 shift
282 ;;
283 esac
284 ;;
285 *.c)
286 cfile=$1
287 set x "$@" "$1"
288 shift
289 ;;
290 *)
291 set x "$@" "$1"
292 shift
293 ;;
294 esac
295 fi
296 shift
297 done
298
299 if test -z "$ofile" || test -z "$cfile"; then
300 # If no '-o' option was seen then we might have been invoked from a
301 # pattern rule where we don't need one. That is ok -- this is a
302 # normal compilation that the losing compiler can handle. If no
303 # '.c' file was seen then we are probably linking. That is also
304 # ok.
305 exec "$@"
306 fi
307
308 # Name of file we expect compiler to create.
309 cofile=`echo "$cfile" | sed 's|^.*[\\/]||; s|^[a-zA-Z]:||; s/\.c$/.o/'`
310
311 # Create the lock directory.
312 # Note: use '[/\\:.-]' here to ensure that we don't use the same name
313 # that we are using for the .o file. Also, base the name on the expected
314 # object file name, since that is what matters with a parallel build.
315 lockdir=`echo "$cofile" | sed -e 's|[/\\:.-]|_|g'`.d
316 while true; do
317 if mkdir "$lockdir" >/dev/null 2>&1; then
318 break
319 fi
320 sleep 1
321 done
322 # FIXME: race condition here if user kills between mkdir and trap.
323 trap "rmdir '$lockdir'; exit 1" 1 2 15
324
325 # Run the compile.
326 "$@"
327 ret=$?
328
329 if test -f "$cofile"; then
330 test "$cofile" = "$ofile" || mv "$cofile" "$ofile"
331 elif test -f "${cofile}bj"; then
332 test "${cofile}bj" = "$ofile" || mv "${cofile}bj" "$ofile"
333 fi
334
335 rmdir "$lockdir"
336 exit $ret
337
338 # Local Variables:
339 # mode: shell-script
340 # sh-indentation: 2
341 # eval: (add-hook 'write-file-hooks 'time-stamp)
342 # time-stamp-start: "scriptversion="
343 # time-stamp-format: "%:y-%02m-%02d.%02H"
344 # time-stamp-time-zone: "UTC"
345 # time-stamp-end: "; # UTC"
346 # End:
+0
-1480
config.guess less more
0 #! /bin/sh
1 # Attempt to guess a canonical system name.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-24'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
18 #
19 # As a special exception to the GNU General Public License, if you
20 # distribute this file as part of a program that contains a
21 # configuration script generated by Autoconf, you may include it under
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25 #
26 # Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
27 #
28 # You can get the latest version of this script from:
29 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
30 #
31 # Please send patches to <config-patches@gnu.org>.
32
33
34 me=`echo "$0" | sed -e 's,.*/,,'`
35
36 usage="\
37 Usage: $0 [OPTION]
38
39 Output the configuration name of the system \`$me' is run on.
40
41 Options:
42 -h, --help print this help, then exit
43 -t, --time-stamp print date of last modification, then exit
44 -v, --version print version number, then exit
45
46 Report bugs and patches to <config-patches@gnu.org>."
47
48 version="\
49 GNU config.guess ($timestamp)
50
51 Originally written by Per Bothner.
52 Copyright 1992-2018 Free Software Foundation, Inc.
53
54 This is free software; see the source for copying conditions. There is NO
55 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
56
57 help="
58 Try \`$me --help' for more information."
59
60 # Parse command line
61 while test $# -gt 0 ; do
62 case $1 in
63 --time-stamp | --time* | -t )
64 echo "$timestamp" ; exit ;;
65 --version | -v )
66 echo "$version" ; exit ;;
67 --help | --h* | -h )
68 echo "$usage"; exit ;;
69 -- ) # Stop option processing
70 shift; break ;;
71 - ) # Use stdin as input.
72 break ;;
73 -* )
74 echo "$me: invalid option $1$help" >&2
75 exit 1 ;;
76 * )
77 break ;;
78 esac
79 done
80
81 if test $# != 0; then
82 echo "$me: too many arguments$help" >&2
83 exit 1
84 fi
85
86 trap 'exit 1' 1 2 15
87
88 # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
89 # compiler to aid in system detection is discouraged as it requires
90 # temporary files to be created and, as you can see below, it is a
91 # headache to deal with in a portable fashion.
92
93 # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
94 # use `HOST_CC' if defined, but it is deprecated.
95
96 # Portable tmp directory creation inspired by the Autoconf team.
97
98 set_cc_for_build='
99 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
100 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
101 : ${TMPDIR=/tmp} ;
102 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
103 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
104 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
105 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
106 dummy=$tmp/dummy ;
107 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
108 case $CC_FOR_BUILD,$HOST_CC,$CC in
109 ,,) echo "int x;" > "$dummy.c" ;
110 for c in cc gcc c89 c99 ; do
111 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
112 CC_FOR_BUILD="$c"; break ;
113 fi ;
114 done ;
115 if test x"$CC_FOR_BUILD" = x ; then
116 CC_FOR_BUILD=no_compiler_found ;
117 fi
118 ;;
119 ,,*) CC_FOR_BUILD=$CC ;;
120 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
121 esac ; set_cc_for_build= ;'
122
123 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
124 # (ghazi@noc.rutgers.edu 1994-08-24)
125 if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
126 PATH=$PATH:/.attbin ; export PATH
127 fi
128
129 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
130 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
131 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
132 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
133
134 case "$UNAME_SYSTEM" in
135 Linux|GNU|GNU/*)
136 # If the system lacks a compiler, then just pick glibc.
137 # We could probably try harder.
138 LIBC=gnu
139
140 eval "$set_cc_for_build"
141 cat <<-EOF > "$dummy.c"
142 #include <features.h>
143 #if defined(__UCLIBC__)
144 LIBC=uclibc
145 #elif defined(__dietlibc__)
146 LIBC=dietlibc
147 #else
148 LIBC=gnu
149 #endif
150 EOF
151 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
152
153 # If ldd exists, use it to detect musl libc.
154 if command -v ldd >/dev/null && \
155 ldd --version 2>&1 | grep -q ^musl
156 then
157 LIBC=musl
158 fi
159 ;;
160 esac
161
162 # Note: order is significant - the case branches are not exclusive.
163
164 case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
165 *:NetBSD:*:*)
166 # NetBSD (nbsd) targets should (where applicable) match one or
167 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
168 # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
169 # switched to ELF, *-*-netbsd* would select the old
170 # object file format. This provides both forward
171 # compatibility and a consistent mechanism for selecting the
172 # object file format.
173 #
174 # Note: NetBSD doesn't particularly care about the vendor
175 # portion of the name. We always set it to "unknown".
176 sysctl="sysctl -n hw.machine_arch"
177 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
178 "/sbin/$sysctl" 2>/dev/null || \
179 "/usr/sbin/$sysctl" 2>/dev/null || \
180 echo unknown)`
181 case "$UNAME_MACHINE_ARCH" in
182 armeb) machine=armeb-unknown ;;
183 arm*) machine=arm-unknown ;;
184 sh3el) machine=shl-unknown ;;
185 sh3eb) machine=sh-unknown ;;
186 sh5el) machine=sh5le-unknown ;;
187 earmv*)
188 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
189 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
190 machine="${arch}${endian}"-unknown
191 ;;
192 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
193 esac
194 # The Operating System including object format, if it has switched
195 # to ELF recently (or will in the future) and ABI.
196 case "$UNAME_MACHINE_ARCH" in
197 earm*)
198 os=netbsdelf
199 ;;
200 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
201 eval "$set_cc_for_build"
202 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
203 | grep -q __ELF__
204 then
205 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
206 # Return netbsd for either. FIX?
207 os=netbsd
208 else
209 os=netbsdelf
210 fi
211 ;;
212 *)
213 os=netbsd
214 ;;
215 esac
216 # Determine ABI tags.
217 case "$UNAME_MACHINE_ARCH" in
218 earm*)
219 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
220 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
221 ;;
222 esac
223 # The OS release
224 # Debian GNU/NetBSD machines have a different userland, and
225 # thus, need a distinct triplet. However, they do not need
226 # kernel version information, so it can be replaced with a
227 # suitable tag, in the style of linux-gnu.
228 case "$UNAME_VERSION" in
229 Debian*)
230 release='-gnu'
231 ;;
232 *)
233 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
234 ;;
235 esac
236 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
237 # contains redundant information, the shorter form:
238 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
239 echo "$machine-${os}${release}${abi}"
240 exit ;;
241 *:Bitrig:*:*)
242 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
243 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
244 exit ;;
245 *:OpenBSD:*:*)
246 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
247 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
248 exit ;;
249 *:LibertyBSD:*:*)
250 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
251 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
252 exit ;;
253 *:MidnightBSD:*:*)
254 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
255 exit ;;
256 *:ekkoBSD:*:*)
257 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
258 exit ;;
259 *:SolidBSD:*:*)
260 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
261 exit ;;
262 macppc:MirBSD:*:*)
263 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
264 exit ;;
265 *:MirBSD:*:*)
266 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
267 exit ;;
268 *:Sortix:*:*)
269 echo "$UNAME_MACHINE"-unknown-sortix
270 exit ;;
271 *:Redox:*:*)
272 echo "$UNAME_MACHINE"-unknown-redox
273 exit ;;
274 mips:OSF1:*.*)
275 echo mips-dec-osf1
276 exit ;;
277 alpha:OSF1:*:*)
278 case $UNAME_RELEASE in
279 *4.0)
280 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
281 ;;
282 *5.*)
283 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
284 ;;
285 esac
286 # According to Compaq, /usr/sbin/psrinfo has been available on
287 # OSF/1 and Tru64 systems produced since 1995. I hope that
288 # covers most systems running today. This code pipes the CPU
289 # types through head -n 1, so we only detect the type of CPU 0.
290 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
291 case "$ALPHA_CPU_TYPE" in
292 "EV4 (21064)")
293 UNAME_MACHINE=alpha ;;
294 "EV4.5 (21064)")
295 UNAME_MACHINE=alpha ;;
296 "LCA4 (21066/21068)")
297 UNAME_MACHINE=alpha ;;
298 "EV5 (21164)")
299 UNAME_MACHINE=alphaev5 ;;
300 "EV5.6 (21164A)")
301 UNAME_MACHINE=alphaev56 ;;
302 "EV5.6 (21164PC)")
303 UNAME_MACHINE=alphapca56 ;;
304 "EV5.7 (21164PC)")
305 UNAME_MACHINE=alphapca57 ;;
306 "EV6 (21264)")
307 UNAME_MACHINE=alphaev6 ;;
308 "EV6.7 (21264A)")
309 UNAME_MACHINE=alphaev67 ;;
310 "EV6.8CB (21264C)")
311 UNAME_MACHINE=alphaev68 ;;
312 "EV6.8AL (21264B)")
313 UNAME_MACHINE=alphaev68 ;;
314 "EV6.8CX (21264D)")
315 UNAME_MACHINE=alphaev68 ;;
316 "EV6.9A (21264/EV69A)")
317 UNAME_MACHINE=alphaev69 ;;
318 "EV7 (21364)")
319 UNAME_MACHINE=alphaev7 ;;
320 "EV7.9 (21364A)")
321 UNAME_MACHINE=alphaev79 ;;
322 esac
323 # A Pn.n version is a patched version.
324 # A Vn.n version is a released version.
325 # A Tn.n version is a released field test version.
326 # A Xn.n version is an unreleased experimental baselevel.
327 # 1.2 uses "1.2" for uname -r.
328 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
329 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
330 exitcode=$?
331 trap '' 0
332 exit $exitcode ;;
333 Amiga*:UNIX_System_V:4.0:*)
334 echo m68k-unknown-sysv4
335 exit ;;
336 *:[Aa]miga[Oo][Ss]:*:*)
337 echo "$UNAME_MACHINE"-unknown-amigaos
338 exit ;;
339 *:[Mm]orph[Oo][Ss]:*:*)
340 echo "$UNAME_MACHINE"-unknown-morphos
341 exit ;;
342 *:OS/390:*:*)
343 echo i370-ibm-openedition
344 exit ;;
345 *:z/VM:*:*)
346 echo s390-ibm-zvmoe
347 exit ;;
348 *:OS400:*:*)
349 echo powerpc-ibm-os400
350 exit ;;
351 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
352 echo arm-acorn-riscix"$UNAME_RELEASE"
353 exit ;;
354 arm*:riscos:*:*|arm*:RISCOS:*:*)
355 echo arm-unknown-riscos
356 exit ;;
357 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
358 echo hppa1.1-hitachi-hiuxmpp
359 exit ;;
360 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
361 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
362 if test "`(/bin/universe) 2>/dev/null`" = att ; then
363 echo pyramid-pyramid-sysv3
364 else
365 echo pyramid-pyramid-bsd
366 fi
367 exit ;;
368 NILE*:*:*:dcosx)
369 echo pyramid-pyramid-svr4
370 exit ;;
371 DRS?6000:unix:4.0:6*)
372 echo sparc-icl-nx6
373 exit ;;
374 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
375 case `/usr/bin/uname -p` in
376 sparc) echo sparc-icl-nx7; exit ;;
377 esac ;;
378 s390x:SunOS:*:*)
379 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
380 exit ;;
381 sun4H:SunOS:5.*:*)
382 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
383 exit ;;
384 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
385 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
386 exit ;;
387 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
388 echo i386-pc-auroraux"$UNAME_RELEASE"
389 exit ;;
390 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
391 eval "$set_cc_for_build"
392 SUN_ARCH=i386
393 # If there is a compiler, see if it is configured for 64-bit objects.
394 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
395 # This test works for both compilers.
396 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
397 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
398 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
399 grep IS_64BIT_ARCH >/dev/null
400 then
401 SUN_ARCH=x86_64
402 fi
403 fi
404 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
405 exit ;;
406 sun4*:SunOS:6*:*)
407 # According to config.sub, this is the proper way to canonicalize
408 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
409 # it's likely to be more like Solaris than SunOS4.
410 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
411 exit ;;
412 sun4*:SunOS:*:*)
413 case "`/usr/bin/arch -k`" in
414 Series*|S4*)
415 UNAME_RELEASE=`uname -v`
416 ;;
417 esac
418 # Japanese Language versions have a version number like `4.1.3-JL'.
419 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
420 exit ;;
421 sun3*:SunOS:*:*)
422 echo m68k-sun-sunos"$UNAME_RELEASE"
423 exit ;;
424 sun*:*:4.2BSD:*)
425 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
426 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
427 case "`/bin/arch`" in
428 sun3)
429 echo m68k-sun-sunos"$UNAME_RELEASE"
430 ;;
431 sun4)
432 echo sparc-sun-sunos"$UNAME_RELEASE"
433 ;;
434 esac
435 exit ;;
436 aushp:SunOS:*:*)
437 echo sparc-auspex-sunos"$UNAME_RELEASE"
438 exit ;;
439 # The situation for MiNT is a little confusing. The machine name
440 # can be virtually everything (everything which is not
441 # "atarist" or "atariste" at least should have a processor
442 # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
443 # to the lowercase version "mint" (or "freemint"). Finally
444 # the system name "TOS" denotes a system which is actually not
445 # MiNT. But MiNT is downward compatible to TOS, so this should
446 # be no problem.
447 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
448 echo m68k-atari-mint"$UNAME_RELEASE"
449 exit ;;
450 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
451 echo m68k-atari-mint"$UNAME_RELEASE"
452 exit ;;
453 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
454 echo m68k-atari-mint"$UNAME_RELEASE"
455 exit ;;
456 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
457 echo m68k-milan-mint"$UNAME_RELEASE"
458 exit ;;
459 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
460 echo m68k-hades-mint"$UNAME_RELEASE"
461 exit ;;
462 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
463 echo m68k-unknown-mint"$UNAME_RELEASE"
464 exit ;;
465 m68k:machten:*:*)
466 echo m68k-apple-machten"$UNAME_RELEASE"
467 exit ;;
468 powerpc:machten:*:*)
469 echo powerpc-apple-machten"$UNAME_RELEASE"
470 exit ;;
471 RISC*:Mach:*:*)
472 echo mips-dec-mach_bsd4.3
473 exit ;;
474 RISC*:ULTRIX:*:*)
475 echo mips-dec-ultrix"$UNAME_RELEASE"
476 exit ;;
477 VAX*:ULTRIX*:*:*)
478 echo vax-dec-ultrix"$UNAME_RELEASE"
479 exit ;;
480 2020:CLIX:*:* | 2430:CLIX:*:*)
481 echo clipper-intergraph-clix"$UNAME_RELEASE"
482 exit ;;
483 mips:*:*:UMIPS | mips:*:*:RISCos)
484 eval "$set_cc_for_build"
485 sed 's/^ //' << EOF > "$dummy.c"
486 #ifdef __cplusplus
487 #include <stdio.h> /* for printf() prototype */
488 int main (int argc, char *argv[]) {
489 #else
490 int main (argc, argv) int argc; char *argv[]; {
491 #endif
492 #if defined (host_mips) && defined (MIPSEB)
493 #if defined (SYSTYPE_SYSV)
494 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
495 #endif
496 #if defined (SYSTYPE_SVR4)
497 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
498 #endif
499 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
500 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
501 #endif
502 #endif
503 exit (-1);
504 }
505 EOF
506 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
507 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
508 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
509 { echo "$SYSTEM_NAME"; exit; }
510 echo mips-mips-riscos"$UNAME_RELEASE"
511 exit ;;
512 Motorola:PowerMAX_OS:*:*)
513 echo powerpc-motorola-powermax
514 exit ;;
515 Motorola:*:4.3:PL8-*)
516 echo powerpc-harris-powermax
517 exit ;;
518 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
519 echo powerpc-harris-powermax
520 exit ;;
521 Night_Hawk:Power_UNIX:*:*)
522 echo powerpc-harris-powerunix
523 exit ;;
524 m88k:CX/UX:7*:*)
525 echo m88k-harris-cxux7
526 exit ;;
527 m88k:*:4*:R4*)
528 echo m88k-motorola-sysv4
529 exit ;;
530 m88k:*:3*:R3*)
531 echo m88k-motorola-sysv3
532 exit ;;
533 AViiON:dgux:*:*)
534 # DG/UX returns AViiON for all architectures
535 UNAME_PROCESSOR=`/usr/bin/uname -p`
536 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
537 then
538 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
539 [ "$TARGET_BINARY_INTERFACE"x = x ]
540 then
541 echo m88k-dg-dgux"$UNAME_RELEASE"
542 else
543 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
544 fi
545 else
546 echo i586-dg-dgux"$UNAME_RELEASE"
547 fi
548 exit ;;
549 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
550 echo m88k-dolphin-sysv3
551 exit ;;
552 M88*:*:R3*:*)
553 # Delta 88k system running SVR3
554 echo m88k-motorola-sysv3
555 exit ;;
556 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
557 echo m88k-tektronix-sysv3
558 exit ;;
559 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
560 echo m68k-tektronix-bsd
561 exit ;;
562 *:IRIX*:*:*)
563 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
564 exit ;;
565 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
566 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
567 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
568 i*86:AIX:*:*)
569 echo i386-ibm-aix
570 exit ;;
571 ia64:AIX:*:*)
572 if [ -x /usr/bin/oslevel ] ; then
573 IBM_REV=`/usr/bin/oslevel`
574 else
575 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
576 fi
577 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
578 exit ;;
579 *:AIX:2:3)
580 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
581 eval "$set_cc_for_build"
582 sed 's/^ //' << EOF > "$dummy.c"
583 #include <sys/systemcfg.h>
584
585 main()
586 {
587 if (!__power_pc())
588 exit(1);
589 puts("powerpc-ibm-aix3.2.5");
590 exit(0);
591 }
592 EOF
593 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
594 then
595 echo "$SYSTEM_NAME"
596 else
597 echo rs6000-ibm-aix3.2.5
598 fi
599 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
600 echo rs6000-ibm-aix3.2.4
601 else
602 echo rs6000-ibm-aix3.2
603 fi
604 exit ;;
605 *:AIX:*:[4567])
606 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
607 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
608 IBM_ARCH=rs6000
609 else
610 IBM_ARCH=powerpc
611 fi
612 if [ -x /usr/bin/lslpp ] ; then
613 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
614 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
615 else
616 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
617 fi
618 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
619 exit ;;
620 *:AIX:*:*)
621 echo rs6000-ibm-aix
622 exit ;;
623 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
624 echo romp-ibm-bsd4.4
625 exit ;;
626 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
627 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
628 exit ;; # report: romp-ibm BSD 4.3
629 *:BOSX:*:*)
630 echo rs6000-bull-bosx
631 exit ;;
632 DPX/2?00:B.O.S.:*:*)
633 echo m68k-bull-sysv3
634 exit ;;
635 9000/[34]??:4.3bsd:1.*:*)
636 echo m68k-hp-bsd
637 exit ;;
638 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
639 echo m68k-hp-bsd4.4
640 exit ;;
641 9000/[34678]??:HP-UX:*:*)
642 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
643 case "$UNAME_MACHINE" in
644 9000/31?) HP_ARCH=m68000 ;;
645 9000/[34]??) HP_ARCH=m68k ;;
646 9000/[678][0-9][0-9])
647 if [ -x /usr/bin/getconf ]; then
648 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
649 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
650 case "$sc_cpu_version" in
651 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
652 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
653 532) # CPU_PA_RISC2_0
654 case "$sc_kernel_bits" in
655 32) HP_ARCH=hppa2.0n ;;
656 64) HP_ARCH=hppa2.0w ;;
657 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
658 esac ;;
659 esac
660 fi
661 if [ "$HP_ARCH" = "" ]; then
662 eval "$set_cc_for_build"
663 sed 's/^ //' << EOF > "$dummy.c"
664
665 #define _HPUX_SOURCE
666 #include <stdlib.h>
667 #include <unistd.h>
668
669 int main ()
670 {
671 #if defined(_SC_KERNEL_BITS)
672 long bits = sysconf(_SC_KERNEL_BITS);
673 #endif
674 long cpu = sysconf (_SC_CPU_VERSION);
675
676 switch (cpu)
677 {
678 case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
679 case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
680 case CPU_PA_RISC2_0:
681 #if defined(_SC_KERNEL_BITS)
682 switch (bits)
683 {
684 case 64: puts ("hppa2.0w"); break;
685 case 32: puts ("hppa2.0n"); break;
686 default: puts ("hppa2.0"); break;
687 } break;
688 #else /* !defined(_SC_KERNEL_BITS) */
689 puts ("hppa2.0"); break;
690 #endif
691 default: puts ("hppa1.0"); break;
692 }
693 exit (0);
694 }
695 EOF
696 (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
697 test -z "$HP_ARCH" && HP_ARCH=hppa
698 fi ;;
699 esac
700 if [ "$HP_ARCH" = hppa2.0w ]
701 then
702 eval "$set_cc_for_build"
703
704 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
705 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
706 # generating 64-bit code. GNU and HP use different nomenclature:
707 #
708 # $ CC_FOR_BUILD=cc ./config.guess
709 # => hppa2.0w-hp-hpux11.23
710 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
711 # => hppa64-hp-hpux11.23
712
713 if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
714 grep -q __LP64__
715 then
716 HP_ARCH=hppa2.0w
717 else
718 HP_ARCH=hppa64
719 fi
720 fi
721 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
722 exit ;;
723 ia64:HP-UX:*:*)
724 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
725 echo ia64-hp-hpux"$HPUX_REV"
726 exit ;;
727 3050*:HI-UX:*:*)
728 eval "$set_cc_for_build"
729 sed 's/^ //' << EOF > "$dummy.c"
730 #include <unistd.h>
731 int
732 main ()
733 {
734 long cpu = sysconf (_SC_CPU_VERSION);
735 /* The order matters, because CPU_IS_HP_MC68K erroneously returns
736 true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
737 results, however. */
738 if (CPU_IS_PA_RISC (cpu))
739 {
740 switch (cpu)
741 {
742 case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
743 case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
744 case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
745 default: puts ("hppa-hitachi-hiuxwe2"); break;
746 }
747 }
748 else if (CPU_IS_HP_MC68K (cpu))
749 puts ("m68k-hitachi-hiuxwe2");
750 else puts ("unknown-hitachi-hiuxwe2");
751 exit (0);
752 }
753 EOF
754 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
755 { echo "$SYSTEM_NAME"; exit; }
756 echo unknown-hitachi-hiuxwe2
757 exit ;;
758 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
759 echo hppa1.1-hp-bsd
760 exit ;;
761 9000/8??:4.3bsd:*:*)
762 echo hppa1.0-hp-bsd
763 exit ;;
764 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
765 echo hppa1.0-hp-mpeix
766 exit ;;
767 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
768 echo hppa1.1-hp-osf
769 exit ;;
770 hp8??:OSF1:*:*)
771 echo hppa1.0-hp-osf
772 exit ;;
773 i*86:OSF1:*:*)
774 if [ -x /usr/sbin/sysversion ] ; then
775 echo "$UNAME_MACHINE"-unknown-osf1mk
776 else
777 echo "$UNAME_MACHINE"-unknown-osf1
778 fi
779 exit ;;
780 parisc*:Lites*:*:*)
781 echo hppa1.1-hp-lites
782 exit ;;
783 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
784 echo c1-convex-bsd
785 exit ;;
786 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
787 if getsysinfo -f scalar_acc
788 then echo c32-convex-bsd
789 else echo c2-convex-bsd
790 fi
791 exit ;;
792 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
793 echo c34-convex-bsd
794 exit ;;
795 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
796 echo c38-convex-bsd
797 exit ;;
798 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
799 echo c4-convex-bsd
800 exit ;;
801 CRAY*Y-MP:*:*:*)
802 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
803 exit ;;
804 CRAY*[A-Z]90:*:*:*)
805 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
806 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
807 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
808 -e 's/\.[^.]*$/.X/'
809 exit ;;
810 CRAY*TS:*:*:*)
811 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
812 exit ;;
813 CRAY*T3E:*:*:*)
814 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
815 exit ;;
816 CRAY*SV1:*:*:*)
817 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
818 exit ;;
819 *:UNICOS/mp:*:*)
820 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
821 exit ;;
822 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
823 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
824 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
825 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
826 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
827 exit ;;
828 5000:UNIX_System_V:4.*:*)
829 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
830 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
831 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
832 exit ;;
833 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
834 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
835 exit ;;
836 sparc*:BSD/OS:*:*)
837 echo sparc-unknown-bsdi"$UNAME_RELEASE"
838 exit ;;
839 *:BSD/OS:*:*)
840 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
841 exit ;;
842 *:FreeBSD:*:*)
843 UNAME_PROCESSOR=`/usr/bin/uname -p`
844 case "$UNAME_PROCESSOR" in
845 amd64)
846 UNAME_PROCESSOR=x86_64 ;;
847 i386)
848 UNAME_PROCESSOR=i586 ;;
849 esac
850 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
851 exit ;;
852 i*:CYGWIN*:*)
853 echo "$UNAME_MACHINE"-pc-cygwin
854 exit ;;
855 *:MINGW64*:*)
856 echo "$UNAME_MACHINE"-pc-mingw64
857 exit ;;
858 *:MINGW*:*)
859 echo "$UNAME_MACHINE"-pc-mingw32
860 exit ;;
861 *:MSYS*:*)
862 echo "$UNAME_MACHINE"-pc-msys
863 exit ;;
864 i*:PW*:*)
865 echo "$UNAME_MACHINE"-pc-pw32
866 exit ;;
867 *:Interix*:*)
868 case "$UNAME_MACHINE" in
869 x86)
870 echo i586-pc-interix"$UNAME_RELEASE"
871 exit ;;
872 authenticamd | genuineintel | EM64T)
873 echo x86_64-unknown-interix"$UNAME_RELEASE"
874 exit ;;
875 IA64)
876 echo ia64-unknown-interix"$UNAME_RELEASE"
877 exit ;;
878 esac ;;
879 i*:UWIN*:*)
880 echo "$UNAME_MACHINE"-pc-uwin
881 exit ;;
882 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
883 echo x86_64-unknown-cygwin
884 exit ;;
885 prep*:SunOS:5.*:*)
886 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
887 exit ;;
888 *:GNU:*:*)
889 # the GNU system
890 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
891 exit ;;
892 *:GNU/*:*:*)
893 # other systems with GNU libc and userland
894 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
895 exit ;;
896 i*86:Minix:*:*)
897 echo "$UNAME_MACHINE"-pc-minix
898 exit ;;
899 aarch64:Linux:*:*)
900 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
901 exit ;;
902 aarch64_be:Linux:*:*)
903 UNAME_MACHINE=aarch64_be
904 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
905 exit ;;
906 alpha:Linux:*:*)
907 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
908 EV5) UNAME_MACHINE=alphaev5 ;;
909 EV56) UNAME_MACHINE=alphaev56 ;;
910 PCA56) UNAME_MACHINE=alphapca56 ;;
911 PCA57) UNAME_MACHINE=alphapca56 ;;
912 EV6) UNAME_MACHINE=alphaev6 ;;
913 EV67) UNAME_MACHINE=alphaev67 ;;
914 EV68*) UNAME_MACHINE=alphaev68 ;;
915 esac
916 objdump --private-headers /bin/sh | grep -q ld.so.1
917 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
918 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
919 exit ;;
920 arc:Linux:*:* | arceb:Linux:*:*)
921 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
922 exit ;;
923 arm*:Linux:*:*)
924 eval "$set_cc_for_build"
925 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
926 | grep -q __ARM_EABI__
927 then
928 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
929 else
930 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
931 | grep -q __ARM_PCS_VFP
932 then
933 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
934 else
935 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
936 fi
937 fi
938 exit ;;
939 avr32*:Linux:*:*)
940 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
941 exit ;;
942 cris:Linux:*:*)
943 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
944 exit ;;
945 crisv32:Linux:*:*)
946 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
947 exit ;;
948 e2k:Linux:*:*)
949 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
950 exit ;;
951 frv:Linux:*:*)
952 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
953 exit ;;
954 hexagon:Linux:*:*)
955 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
956 exit ;;
957 i*86:Linux:*:*)
958 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
959 exit ;;
960 ia64:Linux:*:*)
961 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
962 exit ;;
963 k1om:Linux:*:*)
964 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
965 exit ;;
966 m32r*:Linux:*:*)
967 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
968 exit ;;
969 m68*:Linux:*:*)
970 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
971 exit ;;
972 mips:Linux:*:* | mips64:Linux:*:*)
973 eval "$set_cc_for_build"
974 sed 's/^ //' << EOF > "$dummy.c"
975 #undef CPU
976 #undef ${UNAME_MACHINE}
977 #undef ${UNAME_MACHINE}el
978 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
979 CPU=${UNAME_MACHINE}el
980 #else
981 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
982 CPU=${UNAME_MACHINE}
983 #else
984 CPU=
985 #endif
986 #endif
987 EOF
988 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
989 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
990 ;;
991 mips64el:Linux:*:*)
992 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
993 exit ;;
994 openrisc*:Linux:*:*)
995 echo or1k-unknown-linux-"$LIBC"
996 exit ;;
997 or32:Linux:*:* | or1k*:Linux:*:*)
998 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
999 exit ;;
1000 padre:Linux:*:*)
1001 echo sparc-unknown-linux-"$LIBC"
1002 exit ;;
1003 parisc64:Linux:*:* | hppa64:Linux:*:*)
1004 echo hppa64-unknown-linux-"$LIBC"
1005 exit ;;
1006 parisc:Linux:*:* | hppa:Linux:*:*)
1007 # Look for CPU level
1008 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1009 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1010 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1011 *) echo hppa-unknown-linux-"$LIBC" ;;
1012 esac
1013 exit ;;
1014 ppc64:Linux:*:*)
1015 echo powerpc64-unknown-linux-"$LIBC"
1016 exit ;;
1017 ppc:Linux:*:*)
1018 echo powerpc-unknown-linux-"$LIBC"
1019 exit ;;
1020 ppc64le:Linux:*:*)
1021 echo powerpc64le-unknown-linux-"$LIBC"
1022 exit ;;
1023 ppcle:Linux:*:*)
1024 echo powerpcle-unknown-linux-"$LIBC"
1025 exit ;;
1026 riscv32:Linux:*:* | riscv64:Linux:*:*)
1027 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1028 exit ;;
1029 s390:Linux:*:* | s390x:Linux:*:*)
1030 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1031 exit ;;
1032 sh64*:Linux:*:*)
1033 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1034 exit ;;
1035 sh*:Linux:*:*)
1036 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1037 exit ;;
1038 sparc:Linux:*:* | sparc64:Linux:*:*)
1039 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1040 exit ;;
1041 tile*:Linux:*:*)
1042 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1043 exit ;;
1044 vax:Linux:*:*)
1045 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1046 exit ;;
1047 x86_64:Linux:*:*)
1048 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1050 else
1051 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1052 fi
1053 exit ;;
1054 xtensa*:Linux:*:*)
1055 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1056 exit ;;
1057 i*86:DYNIX/ptx:4*:*)
1058 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1059 # earlier versions are messed up and put the nodename in both
1060 # sysname and nodename.
1061 echo i386-sequent-sysv4
1062 exit ;;
1063 i*86:UNIX_SV:4.2MP:2.*)
1064 # Unixware is an offshoot of SVR4, but it has its own version
1065 # number series starting with 2...
1066 # I am not positive that other SVR4 systems won't match this,
1067 # I just have to hope. -- rms.
1068 # Use sysv4.2uw... so that sysv4* matches it.
1069 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1070 exit ;;
1071 i*86:OS/2:*:*)
1072 # If we were able to find `uname', then EMX Unix compatibility
1073 # is probably installed.
1074 echo "$UNAME_MACHINE"-pc-os2-emx
1075 exit ;;
1076 i*86:XTS-300:*:STOP)
1077 echo "$UNAME_MACHINE"-unknown-stop
1078 exit ;;
1079 i*86:atheos:*:*)
1080 echo "$UNAME_MACHINE"-unknown-atheos
1081 exit ;;
1082 i*86:syllable:*:*)
1083 echo "$UNAME_MACHINE"-pc-syllable
1084 exit ;;
1085 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1086 echo i386-unknown-lynxos"$UNAME_RELEASE"
1087 exit ;;
1088 i*86:*DOS:*:*)
1089 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1090 exit ;;
1091 i*86:*:4.*:*)
1092 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
1093 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1094 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1095 else
1096 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1097 fi
1098 exit ;;
1099 i*86:*:5:[678]*)
1100 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1101 case `/bin/uname -X | grep "^Machine"` in
1102 *486*) UNAME_MACHINE=i486 ;;
1103 *Pentium) UNAME_MACHINE=i586 ;;
1104 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1105 esac
1106 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
1107 exit ;;
1108 i*86:*:3.2:*)
1109 if test -f /usr/options/cb.name; then
1110 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1111 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1112 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1113 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1114 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1115 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1116 && UNAME_MACHINE=i586
1117 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1118 && UNAME_MACHINE=i686
1119 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1120 && UNAME_MACHINE=i686
1121 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1122 else
1123 echo "$UNAME_MACHINE"-pc-sysv32
1124 fi
1125 exit ;;
1126 pc:*:*:*)
1127 # Left here for compatibility:
1128 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1129 # the processor, so we play safe by assuming i586.
1130 # Note: whatever this is, it MUST be the same as what config.sub
1131 # prints for the "djgpp" host, or else GDB configure will decide that
1132 # this is a cross-build.
1133 echo i586-pc-msdosdjgpp
1134 exit ;;
1135 Intel:Mach:3*:*)
1136 echo i386-pc-mach3
1137 exit ;;
1138 paragon:*:*:*)
1139 echo i860-intel-osf1
1140 exit ;;
1141 i860:*:4.*:*) # i860-SVR4
1142 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1143 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1144 else # Add other i860-SVR4 vendors below as they are discovered.
1145 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1146 fi
1147 exit ;;
1148 mini*:CTIX:SYS*5:*)
1149 # "miniframe"
1150 echo m68010-convergent-sysv
1151 exit ;;
1152 mc68k:UNIX:SYSTEM5:3.51m)
1153 echo m68k-convergent-sysv
1154 exit ;;
1155 M680?0:D-NIX:5.3:*)
1156 echo m68k-diab-dnix
1157 exit ;;
1158 M68*:*:R3V[5678]*:*)
1159 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1160 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)
1161 OS_REL=''
1162 test -r /etc/.relid \
1163 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1164 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1165 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1166 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1167 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1168 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1169 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1170 && { echo i486-ncr-sysv4; exit; } ;;
1171 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1172 OS_REL='.3'
1173 test -r /etc/.relid \
1174 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1175 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1176 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1177 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1178 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
1179 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1180 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1181 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1182 echo m68k-unknown-lynxos"$UNAME_RELEASE"
1183 exit ;;
1184 mc68030:UNIX_System_V:4.*:*)
1185 echo m68k-atari-sysv4
1186 exit ;;
1187 TSUNAMI:LynxOS:2.*:*)
1188 echo sparc-unknown-lynxos"$UNAME_RELEASE"
1189 exit ;;
1190 rs6000:LynxOS:2.*:*)
1191 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1192 exit ;;
1193 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1194 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1195 exit ;;
1196 SM[BE]S:UNIX_SV:*:*)
1197 echo mips-dde-sysv"$UNAME_RELEASE"
1198 exit ;;
1199 RM*:ReliantUNIX-*:*:*)
1200 echo mips-sni-sysv4
1201 exit ;;
1202 RM*:SINIX-*:*:*)
1203 echo mips-sni-sysv4
1204 exit ;;
1205 *:SINIX-*:*:*)
1206 if uname -p 2>/dev/null >/dev/null ; then
1207 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1208 echo "$UNAME_MACHINE"-sni-sysv4
1209 else
1210 echo ns32k-sni-sysv
1211 fi
1212 exit ;;
1213 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1214 # says <Richard.M.Bartel@ccMail.Census.GOV>
1215 echo i586-unisys-sysv4
1216 exit ;;
1217 *:UNIX_System_V:4*:FTX*)
1218 # From Gerald Hewes <hewes@openmarket.com>.
1219 # How about differentiating between stratus architectures? -djm
1220 echo hppa1.1-stratus-sysv4
1221 exit ;;
1222 *:*:*:FTX*)
1223 # From seanf@swdc.stratus.com.
1224 echo i860-stratus-sysv4
1225 exit ;;
1226 i*86:VOS:*:*)
1227 # From Paul.Green@stratus.com.
1228 echo "$UNAME_MACHINE"-stratus-vos
1229 exit ;;
1230 *:VOS:*:*)
1231 # From Paul.Green@stratus.com.
1232 echo hppa1.1-stratus-vos
1233 exit ;;
1234 mc68*:A/UX:*:*)
1235 echo m68k-apple-aux"$UNAME_RELEASE"
1236 exit ;;
1237 news*:NEWS-OS:6*:*)
1238 echo mips-sony-newsos6
1239 exit ;;
1240 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1241 if [ -d /usr/nec ]; then
1242 echo mips-nec-sysv"$UNAME_RELEASE"
1243 else
1244 echo mips-unknown-sysv"$UNAME_RELEASE"
1245 fi
1246 exit ;;
1247 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1248 echo powerpc-be-beos
1249 exit ;;
1250 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1251 echo powerpc-apple-beos
1252 exit ;;
1253 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1254 echo i586-pc-beos
1255 exit ;;
1256 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1257 echo i586-pc-haiku
1258 exit ;;
1259 x86_64:Haiku:*:*)
1260 echo x86_64-unknown-haiku
1261 exit ;;
1262 SX-4:SUPER-UX:*:*)
1263 echo sx4-nec-superux"$UNAME_RELEASE"
1264 exit ;;
1265 SX-5:SUPER-UX:*:*)
1266 echo sx5-nec-superux"$UNAME_RELEASE"
1267 exit ;;
1268 SX-6:SUPER-UX:*:*)
1269 echo sx6-nec-superux"$UNAME_RELEASE"
1270 exit ;;
1271 SX-7:SUPER-UX:*:*)
1272 echo sx7-nec-superux"$UNAME_RELEASE"
1273 exit ;;
1274 SX-8:SUPER-UX:*:*)
1275 echo sx8-nec-superux"$UNAME_RELEASE"
1276 exit ;;
1277 SX-8R:SUPER-UX:*:*)
1278 echo sx8r-nec-superux"$UNAME_RELEASE"
1279 exit ;;
1280 SX-ACE:SUPER-UX:*:*)
1281 echo sxace-nec-superux"$UNAME_RELEASE"
1282 exit ;;
1283 Power*:Rhapsody:*:*)
1284 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1285 exit ;;
1286 *:Rhapsody:*:*)
1287 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1288 exit ;;
1289 *:Darwin:*:*)
1290 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1291 eval "$set_cc_for_build"
1292 if test "$UNAME_PROCESSOR" = unknown ; then
1293 UNAME_PROCESSOR=powerpc
1294 fi
1295 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1296 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1297 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1298 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1299 grep IS_64BIT_ARCH >/dev/null
1300 then
1301 case $UNAME_PROCESSOR in
1302 i386) UNAME_PROCESSOR=x86_64 ;;
1303 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1304 esac
1305 fi
1306 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1307 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1308 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1309 grep IS_PPC >/dev/null
1310 then
1311 UNAME_PROCESSOR=powerpc
1312 fi
1313 fi
1314 elif test "$UNAME_PROCESSOR" = i386 ; then
1315 # Avoid executing cc on OS X 10.9, as it ships with a stub
1316 # that puts up a graphical alert prompting to install
1317 # developer tools. Any system running Mac OS X 10.7 or
1318 # later (Darwin 11 and later) is required to have a 64-bit
1319 # processor. This is not true of the ARM version of Darwin
1320 # that Apple uses in portable devices.
1321 UNAME_PROCESSOR=x86_64
1322 fi
1323 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1324 exit ;;
1325 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1326 UNAME_PROCESSOR=`uname -p`
1327 if test "$UNAME_PROCESSOR" = x86; then
1328 UNAME_PROCESSOR=i386
1329 UNAME_MACHINE=pc
1330 fi
1331 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1332 exit ;;
1333 *:QNX:*:4*)
1334 echo i386-pc-qnx
1335 exit ;;
1336 NEO-*:NONSTOP_KERNEL:*:*)
1337 echo neo-tandem-nsk"$UNAME_RELEASE"
1338 exit ;;
1339 NSE-*:NONSTOP_KERNEL:*:*)
1340 echo nse-tandem-nsk"$UNAME_RELEASE"
1341 exit ;;
1342 NSR-*:NONSTOP_KERNEL:*:*)
1343 echo nsr-tandem-nsk"$UNAME_RELEASE"
1344 exit ;;
1345 NSV-*:NONSTOP_KERNEL:*:*)
1346 echo nsv-tandem-nsk"$UNAME_RELEASE"
1347 exit ;;
1348 NSX-*:NONSTOP_KERNEL:*:*)
1349 echo nsx-tandem-nsk"$UNAME_RELEASE"
1350 exit ;;
1351 *:NonStop-UX:*:*)
1352 echo mips-compaq-nonstopux
1353 exit ;;
1354 BS2000:POSIX*:*:*)
1355 echo bs2000-siemens-sysv
1356 exit ;;
1357 DS/*:UNIX_System_V:*:*)
1358 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1359 exit ;;
1360 *:Plan9:*:*)
1361 # "uname -m" is not consistent, so use $cputype instead. 386
1362 # is converted to i386 for consistency with other x86
1363 # operating systems.
1364 if test "$cputype" = 386; then
1365 UNAME_MACHINE=i386
1366 else
1367 UNAME_MACHINE="$cputype"
1368 fi
1369 echo "$UNAME_MACHINE"-unknown-plan9
1370 exit ;;
1371 *:TOPS-10:*:*)
1372 echo pdp10-unknown-tops10
1373 exit ;;
1374 *:TENEX:*:*)
1375 echo pdp10-unknown-tenex
1376 exit ;;
1377 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1378 echo pdp10-dec-tops20
1379 exit ;;
1380 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1381 echo pdp10-xkl-tops20
1382 exit ;;
1383 *:TOPS-20:*:*)
1384 echo pdp10-unknown-tops20
1385 exit ;;
1386 *:ITS:*:*)
1387 echo pdp10-unknown-its
1388 exit ;;
1389 SEI:*:*:SEIUX)
1390 echo mips-sei-seiux"$UNAME_RELEASE"
1391 exit ;;
1392 *:DragonFly:*:*)
1393 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
1394 exit ;;
1395 *:*VMS:*:*)
1396 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1397 case "$UNAME_MACHINE" in
1398 A*) echo alpha-dec-vms ; exit ;;
1399 I*) echo ia64-dec-vms ; exit ;;
1400 V*) echo vax-dec-vms ; exit ;;
1401 esac ;;
1402 *:XENIX:*:SysV)
1403 echo i386-pc-xenix
1404 exit ;;
1405 i*86:skyos:*:*)
1406 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
1407 exit ;;
1408 i*86:rdos:*:*)
1409 echo "$UNAME_MACHINE"-pc-rdos
1410 exit ;;
1411 i*86:AROS:*:*)
1412 echo "$UNAME_MACHINE"-pc-aros
1413 exit ;;
1414 x86_64:VMkernel:*:*)
1415 echo "$UNAME_MACHINE"-unknown-esx
1416 exit ;;
1417 amd64:Isilon\ OneFS:*:*)
1418 echo x86_64-unknown-onefs
1419 exit ;;
1420 esac
1421
1422 echo "$0: unable to guess system type" >&2
1423
1424 case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1425 mips:Linux | mips64:Linux)
1426 # If we got here on MIPS GNU/Linux, output extra information.
1427 cat >&2 <<EOF
1428
1429 NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1430 the system type. Please install a C compiler and try again.
1431 EOF
1432 ;;
1433 esac
1434
1435 cat >&2 <<EOF
1436
1437 This script (version $timestamp), has failed to recognize the
1438 operating system you are using. If your script is old, overwrite *all*
1439 copies of config.guess and config.sub with the latest versions from:
1440
1441 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1442 and
1443 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
1444
1445 If $0 has already been updated, send the following data and any
1446 information you think might be pertinent to config-patches@gnu.org to
1447 provide the necessary information to handle your system.
1448
1449 config.guess timestamp = $timestamp
1450
1451 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1452 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1453 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1454 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1455
1456 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
1457 /bin/uname -X = `(/bin/uname -X) 2>/dev/null`
1458
1459 hostinfo = `(hostinfo) 2>/dev/null`
1460 /bin/universe = `(/bin/universe) 2>/dev/null`
1461 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
1462 /bin/arch = `(/bin/arch) 2>/dev/null`
1463 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1464 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
1465
1466 UNAME_MACHINE = "$UNAME_MACHINE"
1467 UNAME_RELEASE = "$UNAME_RELEASE"
1468 UNAME_SYSTEM = "$UNAME_SYSTEM"
1469 UNAME_VERSION = "$UNAME_VERSION"
1470 EOF
1471
1472 exit 1
1473
1474 # Local variables:
1475 # eval: (add-hook 'write-file-functions 'time-stamp)
1476 # time-stamp-start: "timestamp='"
1477 # time-stamp-format: "%:y-%02m-%02d"
1478 # time-stamp-end: "'"
1479 # End:
+0
-243
config.h.in less more
0 /* config.h.in. Generated from configure.ac by autoheader. */
1
2 /* Define to one of `_getb67', `GETB67', `getb67' for Cray-2 and Cray-YMP
3 systems. This function is required for `alloca.c' support on those systems.
4 */
5 #undef CRAY_STACKSEG_END
6
7 /* Define to 1 if using `alloca.c'. */
8 #undef C_ALLOCA
9
10 /* Define to 1 if you have the `alarm' function. */
11 #undef HAVE_ALARM
12
13 /* Define to 1 if you have `alloca', as a function or macro. */
14 #undef HAVE_ALLOCA
15
16 /* Define to 1 if you have <alloca.h> and it should be used (not on Ultrix).
17 */
18 #undef HAVE_ALLOCA_H
19
20 /* Support ARM instructions */
21 #undef HAVE_ARM
22
23 /* Define to 1 if you have the <cstdint> header file. */
24 #undef HAVE_CSTDINT
25
26 /* define if the compiler supports basic C++11 syntax */
27 #undef HAVE_CXX11
28
29 /* Define to 1 if you have the <dlfcn.h> header file. */
30 #undef HAVE_DLFCN_H
31
32 /* Define to 1 if you have the `gettimeofday' function. */
33 #undef HAVE_GETTIMEOFDAY
34
35 /* Define to 1 if you have the <inttypes.h> header file. */
36 #undef HAVE_INTTYPES_H
37
38 /* Define to 1 if you have the `malloc' function. */
39 #undef HAVE_MALLOC
40
41 /* Define to 1 if you have the <malloc.h> header file. */
42 #undef HAVE_MALLOC_H
43
44 /* Define to 1 if you have the `memalign' function. */
45 #undef HAVE_MEMALIGN
46
47 /* Define to 1 if you have the `memmove' function. */
48 #undef HAVE_MEMMOVE
49
50 /* Define to 1 if you have the <memory.h> header file. */
51 #undef HAVE_MEMORY_H
52
53 /* Define to 1 if you have the `memset' function. */
54 #undef HAVE_MEMSET
55
56 /* Support ARM NEON instructions */
57 #undef HAVE_NEON
58
59 /* Define to 1 if you have the `posix_memalign' function. */
60 #undef HAVE_POSIX_MEMALIGN
61
62 /* Define to 1 if you have the `pow' function. */
63 #undef HAVE_POW
64
65 /* Define to 1 if the system has the type `ptrdiff_t'. */
66 #undef HAVE_PTRDIFF_T
67
68 /* Whether libsdl was found. */
69 #undef HAVE_SDL
70
71 /* Define to 1 if you have the <setjmp.h> header file. */
72 #undef HAVE_SETJMP_H
73
74 /* Define to 1 if you have the <signal.h> header file. */
75 #undef HAVE_SIGNAL_H
76
77 /* Define to 1 if you have the `sqrt' function. */
78 #undef HAVE_SQRT
79
80 /* Support SSSE4.1 (Streaming SIMD Extensions 4.1) instructions */
81 #undef HAVE_SSE4_1
82
83 /* Define to 1 if stdbool.h conforms to C99. */
84 #undef HAVE_STDBOOL_H
85
86 /* Define to 1 if you have the <stddef.h> header file. */
87 #undef HAVE_STDDEF_H
88
89 /* Define to 1 if you have the <stdint.h> header file. */
90 #undef HAVE_STDINT_H
91
92 /* Define to 1 if you have the <stdlib.h> header file. */
93 #undef HAVE_STDLIB_H
94
95 /* Define to 1 if you have the `strchr' function. */
96 #undef HAVE_STRCHR
97
98 /* Define to 1 if you have the <strings.h> header file. */
99 #undef HAVE_STRINGS_H
100
101 /* Define to 1 if you have the <string.h> header file. */
102 #undef HAVE_STRING_H
103
104 /* Define to 1 if you have the `strrchr' function. */
105 #undef HAVE_STRRCHR
106
107 /* Whether libswscale was found. */
108 #undef HAVE_SWSCALE
109
110 /* Define to 1 if you have the <sys/stat.h> header file. */
111 #undef HAVE_SYS_STAT_H
112
113 /* Define to 1 if you have the <sys/time.h> header file. */
114 #undef HAVE_SYS_TIME_H
115
116 /* Define to 1 if you have the <sys/types.h> header file. */
117 #undef HAVE_SYS_TYPES_H
118
119 /* Define to 1 if you have the <unistd.h> header file. */
120 #undef HAVE_UNISTD_H
121
122 /* Whether libvideogfx was found. */
123 #undef HAVE_VIDEOGFX
124
125 /* Define to 1 if the system has the type `_Bool'. */
126 #undef HAVE__BOOL
127
128 /* Define to 1 if you have the `__malloc_hook' function. */
129 #undef HAVE___MALLOC_HOOK
130
131 /* Define to 1 if you have the `__mingw_aligned_free' function. */
132 #undef HAVE___MINGW_ALIGNED_FREE
133
134 /* Define to 1 if you have the `__mingw_aligned_malloc' function. */
135 #undef HAVE___MINGW_ALIGNED_MALLOC
136
137 /* Define to the sub-directory where libtool stores uninstalled libraries. */
138 #undef LT_OBJDIR
139
140 /* Define to 1 if a fallback for "nullptr" is required. */
141 #undef NEED_NULLPTR_FALLBACK
142
143 /* Define to 1 if a fallback for "std::move" is required. */
144 #undef NEED_STD_MOVE_FALLBACK
145
146 /* Name of package */
147 #undef PACKAGE
148
149 /* Define to the address where bug reports for this package should be sent. */
150 #undef PACKAGE_BUGREPORT
151
152 /* Define to the full name of this package. */
153 #undef PACKAGE_NAME
154
155 /* Define to the full name and version of this package. */
156 #undef PACKAGE_STRING
157
158 /* Define to the one symbol short name of this package. */
159 #undef PACKAGE_TARNAME
160
161 /* Define to the home page for this package. */
162 #undef PACKAGE_URL
163
164 /* Define to the version of this package. */
165 #undef PACKAGE_VERSION
166
167 /* If using the C implementation of alloca, define if you know the
168 direction of stack growth for your system; otherwise it will be
169 automatically deduced at runtime.
170 STACK_DIRECTION > 0 => grows toward higher addresses
171 STACK_DIRECTION < 0 => grows toward lower addresses
172 STACK_DIRECTION = 0 => direction of growth unknown */
173 #undef STACK_DIRECTION
174
175 /* Define to 1 if you have the ANSI C header files. */
176 #undef STDC_HEADERS
177
178 /* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
179 #undef TIME_WITH_SYS_TIME
180
181 /* Define to 1 if the std::tr1 namespace should be included in the std
182 namespace. */
183 #undef USE_STD_TR1_NAMESPACE
184
185 /* Version number of package */
186 #undef VERSION
187
188 /* Define for Solaris 2.5.1 so the uint32_t typedef from <sys/synch.h>,
189 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
190 #define below would cause a syntax error. */
191 #undef _UINT32_T
192
193 /* Define for Solaris 2.5.1 so the uint64_t typedef from <sys/synch.h>,
194 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
195 #define below would cause a syntax error. */
196 #undef _UINT64_T
197
198 /* Define for Solaris 2.5.1 so the uint8_t typedef from <sys/synch.h>,
199 <pthread.h>, or <semaphore.h> is not used. If the typedef were allowed, the
200 #define below would cause a syntax error. */
201 #undef _UINT8_T
202
203 /* Define to `__inline__' or `__inline' if that's what the C compiler
204 calls it, or to nothing if 'inline' is not supported under any name. */
205 #ifndef __cplusplus
206 #undef inline
207 #endif
208
209 /* Define to the type of a signed integer type of width exactly 16 bits if
210 such a type exists and the standard includes do not define it. */
211 #undef int16_t
212
213 /* Define to the type of a signed integer type of width exactly 32 bits if
214 such a type exists and the standard includes do not define it. */
215 #undef int32_t
216
217 /* Define to the type of a signed integer type of width exactly 64 bits if
218 such a type exists and the standard includes do not define it. */
219 #undef int64_t
220
221 /* Define to the type of a signed integer type of width exactly 8 bits if such
222 a type exists and the standard includes do not define it. */
223 #undef int8_t
224
225 /* Define to `unsigned int' if <sys/types.h> does not define. */
226 #undef size_t
227
228 /* Define to the type of an unsigned integer type of width exactly 16 bits if
229 such a type exists and the standard includes do not define it. */
230 #undef uint16_t
231
232 /* Define to the type of an unsigned integer type of width exactly 32 bits if
233 such a type exists and the standard includes do not define it. */
234 #undef uint32_t
235
236 /* Define to the type of an unsigned integer type of width exactly 64 bits if
237 such a type exists and the standard includes do not define it. */
238 #undef uint64_t
239
240 /* Define to the type of an unsigned integer type of width exactly 8 bits if
241 such a type exists and the standard includes do not define it. */
242 #undef uint8_t
+0
-1801
config.sub less more
0 #! /bin/sh
1 # Configuration validation subroutine script.
2 # Copyright 1992-2018 Free Software Foundation, Inc.
3
4 timestamp='2018-02-22'
5
6 # This file is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3 of the License, or
9 # (at your option) any later version.
10 #
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, see <https://www.gnu.org/licenses/>.
18 #
19 # As a special exception to the GNU General Public License, if you
20 # distribute this file as part of a program that contains a
21 # configuration script generated by Autoconf, you may include it under
22 # the same distribution terms that you use for the rest of that
23 # program. This Exception is an additional permission under section 7
24 # of the GNU General Public License, version 3 ("GPLv3").
25
26
27 # Please send patches to <config-patches@gnu.org>.
28 #
29 # Configuration subroutine to validate and canonicalize a configuration type.
30 # Supply the specified configuration type as an argument.
31 # If it is invalid, we print an error message on stderr and exit with code 1.
32 # Otherwise, we print the canonical config type on stdout and succeed.
33
34 # You can get the latest version of this script from:
35 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
36
37 # This file is supposed to be the same for all GNU packages
38 # and recognize all the CPU types, system types and aliases
39 # that are meaningful with *any* GNU software.
40 # Each package is responsible for reporting which valid configurations
41 # it does not support. The user should be able to distinguish
42 # a failure to support a valid configuration from a meaningless
43 # configuration.
44
45 # The goal of this file is to map all the various variations of a given
46 # machine specification into a single specification in the form:
47 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
48 # or in some cases, the newer four-part form:
49 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
50 # It is wrong to echo any other type of specification.
51
52 me=`echo "$0" | sed -e 's,.*/,,'`
53
54 usage="\
55 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
56
57 Canonicalize a configuration name.
58
59 Options:
60 -h, --help print this help, then exit
61 -t, --time-stamp print date of last modification, then exit
62 -v, --version print version number, then exit
63
64 Report bugs and patches to <config-patches@gnu.org>."
65
66 version="\
67 GNU config.sub ($timestamp)
68
69 Copyright 1992-2018 Free Software Foundation, Inc.
70
71 This is free software; see the source for copying conditions. There is NO
72 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
73
74 help="
75 Try \`$me --help' for more information."
76
77 # Parse command line
78 while test $# -gt 0 ; do
79 case $1 in
80 --time-stamp | --time* | -t )
81 echo "$timestamp" ; exit ;;
82 --version | -v )
83 echo "$version" ; exit ;;
84 --help | --h* | -h )
85 echo "$usage"; exit ;;
86 -- ) # Stop option processing
87 shift; break ;;
88 - ) # Use stdin as input.
89 break ;;
90 -* )
91 echo "$me: invalid option $1$help"
92 exit 1 ;;
93
94 *local*)
95 # First pass through any local machine types.
96 echo "$1"
97 exit ;;
98
99 * )
100 break ;;
101 esac
102 done
103
104 case $# in
105 0) echo "$me: missing argument$help" >&2
106 exit 1;;
107 1) ;;
108 *) echo "$me: too many arguments$help" >&2
109 exit 1;;
110 esac
111
112 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
113 # Here we must recognize all the valid KERNEL-OS combinations.
114 maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
115 case $maybe_os in
116 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
117 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
118 knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
119 kopensolaris*-gnu* | cloudabi*-eabi* | \
120 storm-chaos* | os2-emx* | rtmk-nova*)
121 os=-$maybe_os
122 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;;
124 android-linux)
125 os=-linux-android
126 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
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 | -microblaze*)
151 os=
152 basic_machine=$1
153 ;;
154 -bluegene*)
155 os=-cnk
156 ;;
157 -sim | -cisco | -oki | -wec | -winbond)
158 os=
159 basic_machine=$1
160 ;;
161 -scout)
162 ;;
163 -wrs)
164 os=-vxworks
165 basic_machine=$1
166 ;;
167 -chorusos*)
168 os=-chorusos
169 basic_machine=$1
170 ;;
171 -chorusrdb)
172 os=-chorusrdb
173 basic_machine=$1
174 ;;
175 -hiux*)
176 os=-hiuxwe2
177 ;;
178 -sco6)
179 os=-sco5v6
180 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
181 ;;
182 -sco5)
183 os=-sco3.2v5
184 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
185 ;;
186 -sco4)
187 os=-sco3.2v4
188 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
189 ;;
190 -sco3.2.[4-9]*)
191 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
192 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
193 ;;
194 -sco3.2v[4-9]*)
195 # Don't forget version if it is 3.2v4 or newer.
196 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
197 ;;
198 -sco5v6*)
199 # Don't forget version if it is 3.2v4 or newer.
200 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -sco*)
203 os=-sco3.2v2
204 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -udk*)
207 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
208 ;;
209 -isc)
210 os=-isc2.2
211 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
212 ;;
213 -clix*)
214 basic_machine=clipper-intergraph
215 ;;
216 -isc*)
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
218 ;;
219 -lynx*178)
220 os=-lynxos178
221 ;;
222 -lynx*5)
223 os=-lynxos5
224 ;;
225 -lynx*)
226 os=-lynxos
227 ;;
228 -ptx*)
229 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
230 ;;
231 -psos*)
232 os=-psos
233 ;;
234 -mint | -mint[0-9]*)
235 basic_machine=m68k-atari
236 os=-mint
237 ;;
238 esac
239
240 # Decode aliases for certain CPU-COMPANY combinations.
241 case $basic_machine in
242 # Recognize the basic CPU types without company name.
243 # Some are omitted here because they have special meanings below.
244 1750a | 580 \
245 | a29k \
246 | aarch64 | aarch64_be \
247 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
248 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
249 | am33_2.0 \
250 | arc | arceb \
251 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
252 | avr | avr32 \
253 | ba \
254 | be32 | be64 \
255 | bfin \
256 | c4x | c8051 | clipper \
257 | d10v | d30v | dlx | dsp16xx \
258 | e2k | epiphany \
259 | fido | fr30 | frv | ft32 \
260 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
261 | hexagon \
262 | i370 | i860 | i960 | ia16 | ia64 \
263 | ip2k | iq2000 \
264 | k1om \
265 | le32 | le64 \
266 | lm32 \
267 | m32c | m32r | m32rle | m68000 | m68k | m88k \
268 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
269 | mips | mipsbe | mipseb | mipsel | mipsle \
270 | mips16 \
271 | mips64 | mips64el \
272 | mips64octeon | mips64octeonel \
273 | mips64orion | mips64orionel \
274 | mips64r5900 | mips64r5900el \
275 | mips64vr | mips64vrel \
276 | mips64vr4100 | mips64vr4100el \
277 | mips64vr4300 | mips64vr4300el \
278 | mips64vr5000 | mips64vr5000el \
279 | mips64vr5900 | mips64vr5900el \
280 | mipsisa32 | mipsisa32el \
281 | mipsisa32r2 | mipsisa32r2el \
282 | mipsisa32r6 | mipsisa32r6el \
283 | mipsisa64 | mipsisa64el \
284 | mipsisa64r2 | mipsisa64r2el \
285 | mipsisa64r6 | mipsisa64r6el \
286 | mipsisa64sb1 | mipsisa64sb1el \
287 | mipsisa64sr71k | mipsisa64sr71kel \
288 | mipsr5900 | mipsr5900el \
289 | mipstx39 | mipstx39el \
290 | mn10200 | mn10300 \
291 | moxie \
292 | mt \
293 | msp430 \
294 | nds32 | nds32le | nds32be \
295 | nios | nios2 | nios2eb | nios2el \
296 | ns16k | ns32k \
297 | open8 | or1k | or1knd | or32 \
298 | pdp10 | pj | pjl \
299 | powerpc | powerpc64 | powerpc64le | powerpcle \
300 | pru \
301 | pyramid \
302 | riscv32 | riscv64 \
303 | rl78 | rx \
304 | score \
305 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
306 | sh64 | sh64le \
307 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
308 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
309 | spu \
310 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
311 | ubicom32 \
312 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
313 | visium \
314 | wasm32 \
315 | x86 | xc16x | xstormy16 | xtensa \
316 | z8k | z80)
317 basic_machine=$basic_machine-unknown
318 ;;
319 c54x)
320 basic_machine=tic54x-unknown
321 ;;
322 c55x)
323 basic_machine=tic55x-unknown
324 ;;
325 c6x)
326 basic_machine=tic6x-unknown
327 ;;
328 leon|leon[3-9])
329 basic_machine=sparc-$basic_machine
330 ;;
331 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
332 basic_machine=$basic_machine-unknown
333 os=-none
334 ;;
335 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
336 ;;
337 ms1)
338 basic_machine=mt-unknown
339 ;;
340
341 strongarm | thumb | xscale)
342 basic_machine=arm-unknown
343 ;;
344 xgate)
345 basic_machine=$basic_machine-unknown
346 os=-none
347 ;;
348 xscaleeb)
349 basic_machine=armeb-unknown
350 ;;
351
352 xscaleel)
353 basic_machine=armel-unknown
354 ;;
355
356 # We use `pc' rather than `unknown'
357 # because (1) that's what they normally are, and
358 # (2) the word "unknown" tends to confuse beginning users.
359 i*86 | x86_64)
360 basic_machine=$basic_machine-pc
361 ;;
362 # Object if more than one company name word.
363 *-*-*)
364 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
365 exit 1
366 ;;
367 # Recognize the basic CPU types with company name.
368 580-* \
369 | a29k-* \
370 | aarch64-* | aarch64_be-* \
371 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
372 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
373 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
374 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
375 | avr-* | avr32-* \
376 | ba-* \
377 | be32-* | be64-* \
378 | bfin-* | bs2000-* \
379 | c[123]* | c30-* | [cjt]90-* | c4x-* \
380 | c8051-* | clipper-* | craynv-* | cydra-* \
381 | d10v-* | d30v-* | dlx-* \
382 | e2k-* | elxsi-* \
383 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
384 | h8300-* | h8500-* \
385 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
386 | hexagon-* \
387 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
388 | ip2k-* | iq2000-* \
389 | k1om-* \
390 | le32-* | le64-* \
391 | lm32-* \
392 | m32c-* | m32r-* | m32rle-* \
393 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
394 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
395 | microblaze-* | microblazeel-* \
396 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
397 | mips16-* \
398 | mips64-* | mips64el-* \
399 | mips64octeon-* | mips64octeonel-* \
400 | mips64orion-* | mips64orionel-* \
401 | mips64r5900-* | mips64r5900el-* \
402 | mips64vr-* | mips64vrel-* \
403 | mips64vr4100-* | mips64vr4100el-* \
404 | mips64vr4300-* | mips64vr4300el-* \
405 | mips64vr5000-* | mips64vr5000el-* \
406 | mips64vr5900-* | mips64vr5900el-* \
407 | mipsisa32-* | mipsisa32el-* \
408 | mipsisa32r2-* | mipsisa32r2el-* \
409 | mipsisa32r6-* | mipsisa32r6el-* \
410 | mipsisa64-* | mipsisa64el-* \
411 | mipsisa64r2-* | mipsisa64r2el-* \
412 | mipsisa64r6-* | mipsisa64r6el-* \
413 | mipsisa64sb1-* | mipsisa64sb1el-* \
414 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
415 | mipsr5900-* | mipsr5900el-* \
416 | mipstx39-* | mipstx39el-* \
417 | mmix-* \
418 | mt-* \
419 | msp430-* \
420 | nds32-* | nds32le-* | nds32be-* \
421 | nios-* | nios2-* | nios2eb-* | nios2el-* \
422 | none-* | np1-* | ns16k-* | ns32k-* \
423 | open8-* \
424 | or1k*-* \
425 | orion-* \
426 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
427 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
428 | pru-* \
429 | pyramid-* \
430 | riscv32-* | riscv64-* \
431 | rl78-* | romp-* | rs6000-* | rx-* \
432 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
433 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
434 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
435 | sparclite-* \
436 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
437 | tahoe-* \
438 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
439 | tile*-* \
440 | tron-* \
441 | ubicom32-* \
442 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
443 | vax-* \
444 | visium-* \
445 | wasm32-* \
446 | we32k-* \
447 | x86-* | x86_64-* | xc16x-* | xps100-* \
448 | xstormy16-* | xtensa*-* \
449 | ymp-* \
450 | z8k-* | z80-*)
451 ;;
452 # Recognize the basic CPU types without company name, with glob match.
453 xtensa*)
454 basic_machine=$basic_machine-unknown
455 ;;
456 # Recognize the various machine names and aliases which stand
457 # for a CPU type and a company and sometimes even an OS.
458 386bsd)
459 basic_machine=i386-pc
460 os=-bsd
461 ;;
462 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
463 basic_machine=m68000-att
464 ;;
465 3b*)
466 basic_machine=we32k-att
467 ;;
468 a29khif)
469 basic_machine=a29k-amd
470 os=-udi
471 ;;
472 abacus)
473 basic_machine=abacus-unknown
474 ;;
475 adobe68k)
476 basic_machine=m68010-adobe
477 os=-scout
478 ;;
479 alliant | fx80)
480 basic_machine=fx80-alliant
481 ;;
482 altos | altos3068)
483 basic_machine=m68k-altos
484 ;;
485 am29k)
486 basic_machine=a29k-none
487 os=-bsd
488 ;;
489 amd64)
490 basic_machine=x86_64-pc
491 ;;
492 amd64-*)
493 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
494 ;;
495 amdahl)
496 basic_machine=580-amdahl
497 os=-sysv
498 ;;
499 amiga | amiga-*)
500 basic_machine=m68k-unknown
501 ;;
502 amigaos | amigados)
503 basic_machine=m68k-unknown
504 os=-amigaos
505 ;;
506 amigaunix | amix)
507 basic_machine=m68k-unknown
508 os=-sysv4
509 ;;
510 apollo68)
511 basic_machine=m68k-apollo
512 os=-sysv
513 ;;
514 apollo68bsd)
515 basic_machine=m68k-apollo
516 os=-bsd
517 ;;
518 aros)
519 basic_machine=i386-pc
520 os=-aros
521 ;;
522 asmjs)
523 basic_machine=asmjs-unknown
524 ;;
525 aux)
526 basic_machine=m68k-apple
527 os=-aux
528 ;;
529 balance)
530 basic_machine=ns32k-sequent
531 os=-dynix
532 ;;
533 blackfin)
534 basic_machine=bfin-unknown
535 os=-linux
536 ;;
537 blackfin-*)
538 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
539 os=-linux
540 ;;
541 bluegene*)
542 basic_machine=powerpc-ibm
543 os=-cnk
544 ;;
545 c54x-*)
546 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
547 ;;
548 c55x-*)
549 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
550 ;;
551 c6x-*)
552 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
553 ;;
554 c90)
555 basic_machine=c90-cray
556 os=-unicos
557 ;;
558 cegcc)
559 basic_machine=arm-unknown
560 os=-cegcc
561 ;;
562 convex-c1)
563 basic_machine=c1-convex
564 os=-bsd
565 ;;
566 convex-c2)
567 basic_machine=c2-convex
568 os=-bsd
569 ;;
570 convex-c32)
571 basic_machine=c32-convex
572 os=-bsd
573 ;;
574 convex-c34)
575 basic_machine=c34-convex
576 os=-bsd
577 ;;
578 convex-c38)
579 basic_machine=c38-convex
580 os=-bsd
581 ;;
582 cray | j90)
583 basic_machine=j90-cray
584 os=-unicos
585 ;;
586 craynv)
587 basic_machine=craynv-cray
588 os=-unicosmp
589 ;;
590 cr16 | cr16-*)
591 basic_machine=cr16-unknown
592 os=-elf
593 ;;
594 crds | unos)
595 basic_machine=m68k-crds
596 ;;
597 crisv32 | crisv32-* | etraxfs*)
598 basic_machine=crisv32-axis
599 ;;
600 cris | cris-* | etrax*)
601 basic_machine=cris-axis
602 ;;
603 crx)
604 basic_machine=crx-unknown
605 os=-elf
606 ;;
607 da30 | da30-*)
608 basic_machine=m68k-da30
609 ;;
610 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
611 basic_machine=mips-dec
612 ;;
613 decsystem10* | dec10*)
614 basic_machine=pdp10-dec
615 os=-tops10
616 ;;
617 decsystem20* | dec20*)
618 basic_machine=pdp10-dec
619 os=-tops20
620 ;;
621 delta | 3300 | motorola-3300 | motorola-delta \
622 | 3300-motorola | delta-motorola)
623 basic_machine=m68k-motorola
624 ;;
625 delta88)
626 basic_machine=m88k-motorola
627 os=-sysv3
628 ;;
629 dicos)
630 basic_machine=i686-pc
631 os=-dicos
632 ;;
633 djgpp)
634 basic_machine=i586-pc
635 os=-msdosdjgpp
636 ;;
637 dpx20 | dpx20-*)
638 basic_machine=rs6000-bull
639 os=-bosx
640 ;;
641 dpx2*)
642 basic_machine=m68k-bull
643 os=-sysv3
644 ;;
645 e500v[12])
646 basic_machine=powerpc-unknown
647 os=$os"spe"
648 ;;
649 e500v[12]-*)
650 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
651 os=$os"spe"
652 ;;
653 ebmon29k)
654 basic_machine=a29k-amd
655 os=-ebmon
656 ;;
657 elxsi)
658 basic_machine=elxsi-elxsi
659 os=-bsd
660 ;;
661 encore | umax | mmax)
662 basic_machine=ns32k-encore
663 ;;
664 es1800 | OSE68k | ose68k | ose | OSE)
665 basic_machine=m68k-ericsson
666 os=-ose
667 ;;
668 fx2800)
669 basic_machine=i860-alliant
670 ;;
671 genix)
672 basic_machine=ns32k-ns
673 ;;
674 gmicro)
675 basic_machine=tron-gmicro
676 os=-sysv
677 ;;
678 go32)
679 basic_machine=i386-pc
680 os=-go32
681 ;;
682 h3050r* | hiux*)
683 basic_machine=hppa1.1-hitachi
684 os=-hiuxwe2
685 ;;
686 h8300hms)
687 basic_machine=h8300-hitachi
688 os=-hms
689 ;;
690 h8300xray)
691 basic_machine=h8300-hitachi
692 os=-xray
693 ;;
694 h8500hms)
695 basic_machine=h8500-hitachi
696 os=-hms
697 ;;
698 harris)
699 basic_machine=m88k-harris
700 os=-sysv3
701 ;;
702 hp300-*)
703 basic_machine=m68k-hp
704 ;;
705 hp300bsd)
706 basic_machine=m68k-hp
707 os=-bsd
708 ;;
709 hp300hpux)
710 basic_machine=m68k-hp
711 os=-hpux
712 ;;
713 hp3k9[0-9][0-9] | hp9[0-9][0-9])
714 basic_machine=hppa1.0-hp
715 ;;
716 hp9k2[0-9][0-9] | hp9k31[0-9])
717 basic_machine=m68000-hp
718 ;;
719 hp9k3[2-9][0-9])
720 basic_machine=m68k-hp
721 ;;
722 hp9k6[0-9][0-9] | hp6[0-9][0-9])
723 basic_machine=hppa1.0-hp
724 ;;
725 hp9k7[0-79][0-9] | hp7[0-79][0-9])
726 basic_machine=hppa1.1-hp
727 ;;
728 hp9k78[0-9] | hp78[0-9])
729 # FIXME: really hppa2.0-hp
730 basic_machine=hppa1.1-hp
731 ;;
732 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
733 # FIXME: really hppa2.0-hp
734 basic_machine=hppa1.1-hp
735 ;;
736 hp9k8[0-9][13679] | hp8[0-9][13679])
737 basic_machine=hppa1.1-hp
738 ;;
739 hp9k8[0-9][0-9] | hp8[0-9][0-9])
740 basic_machine=hppa1.0-hp
741 ;;
742 hppaosf)
743 basic_machine=hppa1.1-hp
744 os=-osf
745 ;;
746 hppro)
747 basic_machine=hppa1.1-hp
748 os=-proelf
749 ;;
750 i370-ibm* | ibm*)
751 basic_machine=i370-ibm
752 ;;
753 i*86v32)
754 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
755 os=-sysv32
756 ;;
757 i*86v4*)
758 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
759 os=-sysv4
760 ;;
761 i*86v)
762 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
763 os=-sysv
764 ;;
765 i*86sol2)
766 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
767 os=-solaris2
768 ;;
769 i386mach)
770 basic_machine=i386-mach
771 os=-mach
772 ;;
773 vsta)
774 basic_machine=i386-unknown
775 os=-vsta
776 ;;
777 iris | iris4d)
778 basic_machine=mips-sgi
779 case $os in
780 -irix*)
781 ;;
782 *)
783 os=-irix4
784 ;;
785 esac
786 ;;
787 isi68 | isi)
788 basic_machine=m68k-isi
789 os=-sysv
790 ;;
791 leon-*|leon[3-9]-*)
792 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
793 ;;
794 m68knommu)
795 basic_machine=m68k-unknown
796 os=-linux
797 ;;
798 m68knommu-*)
799 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
800 os=-linux
801 ;;
802 magnum | m3230)
803 basic_machine=mips-mips
804 os=-sysv
805 ;;
806 merlin)
807 basic_machine=ns32k-utek
808 os=-sysv
809 ;;
810 microblaze*)
811 basic_machine=microblaze-xilinx
812 ;;
813 mingw64)
814 basic_machine=x86_64-pc
815 os=-mingw64
816 ;;
817 mingw32)
818 basic_machine=i686-pc
819 os=-mingw32
820 ;;
821 mingw32ce)
822 basic_machine=arm-unknown
823 os=-mingw32ce
824 ;;
825 miniframe)
826 basic_machine=m68000-convergent
827 ;;
828 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
829 basic_machine=m68k-atari
830 os=-mint
831 ;;
832 mips3*-*)
833 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
834 ;;
835 mips3*)
836 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
837 ;;
838 monitor)
839 basic_machine=m68k-rom68k
840 os=-coff
841 ;;
842 morphos)
843 basic_machine=powerpc-unknown
844 os=-morphos
845 ;;
846 moxiebox)
847 basic_machine=moxie-unknown
848 os=-moxiebox
849 ;;
850 msdos)
851 basic_machine=i386-pc
852 os=-msdos
853 ;;
854 ms1-*)
855 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
856 ;;
857 msys)
858 basic_machine=i686-pc
859 os=-msys
860 ;;
861 mvs)
862 basic_machine=i370-ibm
863 os=-mvs
864 ;;
865 nacl)
866 basic_machine=le32-unknown
867 os=-nacl
868 ;;
869 ncr3000)
870 basic_machine=i486-ncr
871 os=-sysv4
872 ;;
873 netbsd386)
874 basic_machine=i386-unknown
875 os=-netbsd
876 ;;
877 netwinder)
878 basic_machine=armv4l-rebel
879 os=-linux
880 ;;
881 news | news700 | news800 | news900)
882 basic_machine=m68k-sony
883 os=-newsos
884 ;;
885 news1000)
886 basic_machine=m68030-sony
887 os=-newsos
888 ;;
889 news-3600 | risc-news)
890 basic_machine=mips-sony
891 os=-newsos
892 ;;
893 necv70)
894 basic_machine=v70-nec
895 os=-sysv
896 ;;
897 next | m*-next)
898 basic_machine=m68k-next
899 case $os in
900 -nextstep* )
901 ;;
902 -ns2*)
903 os=-nextstep2
904 ;;
905 *)
906 os=-nextstep3
907 ;;
908 esac
909 ;;
910 nh3000)
911 basic_machine=m68k-harris
912 os=-cxux
913 ;;
914 nh[45]000)
915 basic_machine=m88k-harris
916 os=-cxux
917 ;;
918 nindy960)
919 basic_machine=i960-intel
920 os=-nindy
921 ;;
922 mon960)
923 basic_machine=i960-intel
924 os=-mon960
925 ;;
926 nonstopux)
927 basic_machine=mips-compaq
928 os=-nonstopux
929 ;;
930 np1)
931 basic_machine=np1-gould
932 ;;
933 neo-tandem)
934 basic_machine=neo-tandem
935 ;;
936 nse-tandem)
937 basic_machine=nse-tandem
938 ;;
939 nsr-tandem)
940 basic_machine=nsr-tandem
941 ;;
942 nsv-tandem)
943 basic_machine=nsv-tandem
944 ;;
945 nsx-tandem)
946 basic_machine=nsx-tandem
947 ;;
948 op50n-* | op60c-*)
949 basic_machine=hppa1.1-oki
950 os=-proelf
951 ;;
952 openrisc | openrisc-*)
953 basic_machine=or32-unknown
954 ;;
955 os400)
956 basic_machine=powerpc-ibm
957 os=-os400
958 ;;
959 OSE68000 | ose68000)
960 basic_machine=m68000-ericsson
961 os=-ose
962 ;;
963 os68k)
964 basic_machine=m68k-none
965 os=-os68k
966 ;;
967 pa-hitachi)
968 basic_machine=hppa1.1-hitachi
969 os=-hiuxwe2
970 ;;
971 paragon)
972 basic_machine=i860-intel
973 os=-osf
974 ;;
975 parisc)
976 basic_machine=hppa-unknown
977 os=-linux
978 ;;
979 parisc-*)
980 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
981 os=-linux
982 ;;
983 pbd)
984 basic_machine=sparc-tti
985 ;;
986 pbb)
987 basic_machine=m68k-tti
988 ;;
989 pc532 | pc532-*)
990 basic_machine=ns32k-pc532
991 ;;
992 pc98)
993 basic_machine=i386-pc
994 ;;
995 pc98-*)
996 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
997 ;;
998 pentium | p5 | k5 | k6 | nexgen | viac3)
999 basic_machine=i586-pc
1000 ;;
1001 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1002 basic_machine=i686-pc
1003 ;;
1004 pentiumii | pentium2 | pentiumiii | pentium3)
1005 basic_machine=i686-pc
1006 ;;
1007 pentium4)
1008 basic_machine=i786-pc
1009 ;;
1010 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1011 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1012 ;;
1013 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1014 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1015 ;;
1016 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1017 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1018 ;;
1019 pentium4-*)
1020 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1021 ;;
1022 pn)
1023 basic_machine=pn-gould
1024 ;;
1025 power) basic_machine=power-ibm
1026 ;;
1027 ppc | ppcbe) basic_machine=powerpc-unknown
1028 ;;
1029 ppc-* | ppcbe-*)
1030 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1031 ;;
1032 ppcle | powerpclittle)
1033 basic_machine=powerpcle-unknown
1034 ;;
1035 ppcle-* | powerpclittle-*)
1036 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1037 ;;
1038 ppc64) basic_machine=powerpc64-unknown
1039 ;;
1040 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1041 ;;
1042 ppc64le | powerpc64little)
1043 basic_machine=powerpc64le-unknown
1044 ;;
1045 ppc64le-* | powerpc64little-*)
1046 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1047 ;;
1048 ps2)
1049 basic_machine=i386-ibm
1050 ;;
1051 pw32)
1052 basic_machine=i586-unknown
1053 os=-pw32
1054 ;;
1055 rdos | rdos64)
1056 basic_machine=x86_64-pc
1057 os=-rdos
1058 ;;
1059 rdos32)
1060 basic_machine=i386-pc
1061 os=-rdos
1062 ;;
1063 rom68k)
1064 basic_machine=m68k-rom68k
1065 os=-coff
1066 ;;
1067 rm[46]00)
1068 basic_machine=mips-siemens
1069 ;;
1070 rtpc | rtpc-*)
1071 basic_machine=romp-ibm
1072 ;;
1073 s390 | s390-*)
1074 basic_machine=s390-ibm
1075 ;;
1076 s390x | s390x-*)
1077 basic_machine=s390x-ibm
1078 ;;
1079 sa29200)
1080 basic_machine=a29k-amd
1081 os=-udi
1082 ;;
1083 sb1)
1084 basic_machine=mipsisa64sb1-unknown
1085 ;;
1086 sb1el)
1087 basic_machine=mipsisa64sb1el-unknown
1088 ;;
1089 sde)
1090 basic_machine=mipsisa32-sde
1091 os=-elf
1092 ;;
1093 sei)
1094 basic_machine=mips-sei
1095 os=-seiux
1096 ;;
1097 sequent)
1098 basic_machine=i386-sequent
1099 ;;
1100 sh5el)
1101 basic_machine=sh5le-unknown
1102 ;;
1103 simso-wrs)
1104 basic_machine=sparclite-wrs
1105 os=-vxworks
1106 ;;
1107 sps7)
1108 basic_machine=m68k-bull
1109 os=-sysv2
1110 ;;
1111 spur)
1112 basic_machine=spur-unknown
1113 ;;
1114 st2000)
1115 basic_machine=m68k-tandem
1116 ;;
1117 stratus)
1118 basic_machine=i860-stratus
1119 os=-sysv4
1120 ;;
1121 strongarm-* | thumb-*)
1122 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1123 ;;
1124 sun2)
1125 basic_machine=m68000-sun
1126 ;;
1127 sun2os3)
1128 basic_machine=m68000-sun
1129 os=-sunos3
1130 ;;
1131 sun2os4)
1132 basic_machine=m68000-sun
1133 os=-sunos4
1134 ;;
1135 sun3os3)
1136 basic_machine=m68k-sun
1137 os=-sunos3
1138 ;;
1139 sun3os4)
1140 basic_machine=m68k-sun
1141 os=-sunos4
1142 ;;
1143 sun4os3)
1144 basic_machine=sparc-sun
1145 os=-sunos3
1146 ;;
1147 sun4os4)
1148 basic_machine=sparc-sun
1149 os=-sunos4
1150 ;;
1151 sun4sol2)
1152 basic_machine=sparc-sun
1153 os=-solaris2
1154 ;;
1155 sun3 | sun3-*)
1156 basic_machine=m68k-sun
1157 ;;
1158 sun4)
1159 basic_machine=sparc-sun
1160 ;;
1161 sun386 | sun386i | roadrunner)
1162 basic_machine=i386-sun
1163 ;;
1164 sv1)
1165 basic_machine=sv1-cray
1166 os=-unicos
1167 ;;
1168 symmetry)
1169 basic_machine=i386-sequent
1170 os=-dynix
1171 ;;
1172 t3e)
1173 basic_machine=alphaev5-cray
1174 os=-unicos
1175 ;;
1176 t90)
1177 basic_machine=t90-cray
1178 os=-unicos
1179 ;;
1180 tile*)
1181 basic_machine=$basic_machine-unknown
1182 os=-linux-gnu
1183 ;;
1184 tx39)
1185 basic_machine=mipstx39-unknown
1186 ;;
1187 tx39el)
1188 basic_machine=mipstx39el-unknown
1189 ;;
1190 toad1)
1191 basic_machine=pdp10-xkl
1192 os=-tops20
1193 ;;
1194 tower | tower-32)
1195 basic_machine=m68k-ncr
1196 ;;
1197 tpf)
1198 basic_machine=s390x-ibm
1199 os=-tpf
1200 ;;
1201 udi29k)
1202 basic_machine=a29k-amd
1203 os=-udi
1204 ;;
1205 ultra3)
1206 basic_machine=a29k-nyu
1207 os=-sym1
1208 ;;
1209 v810 | necv810)
1210 basic_machine=v810-nec
1211 os=-none
1212 ;;
1213 vaxv)
1214 basic_machine=vax-dec
1215 os=-sysv
1216 ;;
1217 vms)
1218 basic_machine=vax-dec
1219 os=-vms
1220 ;;
1221 vpp*|vx|vx-*)
1222 basic_machine=f301-fujitsu
1223 ;;
1224 vxworks960)
1225 basic_machine=i960-wrs
1226 os=-vxworks
1227 ;;
1228 vxworks68)
1229 basic_machine=m68k-wrs
1230 os=-vxworks
1231 ;;
1232 vxworks29k)
1233 basic_machine=a29k-wrs
1234 os=-vxworks
1235 ;;
1236 w65*)
1237 basic_machine=w65-wdc
1238 os=-none
1239 ;;
1240 w89k-*)
1241 basic_machine=hppa1.1-winbond
1242 os=-proelf
1243 ;;
1244 x64)
1245 basic_machine=x86_64-pc
1246 ;;
1247 xbox)
1248 basic_machine=i686-pc
1249 os=-mingw32
1250 ;;
1251 xps | xps100)
1252 basic_machine=xps100-honeywell
1253 ;;
1254 xscale-* | xscalee[bl]-*)
1255 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1256 ;;
1257 ymp)
1258 basic_machine=ymp-cray
1259 os=-unicos
1260 ;;
1261 none)
1262 basic_machine=none-none
1263 os=-none
1264 ;;
1265
1266 # Here we handle the default manufacturer of certain CPU types. It is in
1267 # some cases the only manufacturer, in others, it is the most popular.
1268 w89k)
1269 basic_machine=hppa1.1-winbond
1270 ;;
1271 op50n)
1272 basic_machine=hppa1.1-oki
1273 ;;
1274 op60c)
1275 basic_machine=hppa1.1-oki
1276 ;;
1277 romp)
1278 basic_machine=romp-ibm
1279 ;;
1280 mmix)
1281 basic_machine=mmix-knuth
1282 ;;
1283 rs6000)
1284 basic_machine=rs6000-ibm
1285 ;;
1286 vax)
1287 basic_machine=vax-dec
1288 ;;
1289 pdp11)
1290 basic_machine=pdp11-dec
1291 ;;
1292 we32k)
1293 basic_machine=we32k-att
1294 ;;
1295 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1296 basic_machine=sh-unknown
1297 ;;
1298 cydra)
1299 basic_machine=cydra-cydrome
1300 ;;
1301 orion)
1302 basic_machine=orion-highlevel
1303 ;;
1304 orion105)
1305 basic_machine=clipper-highlevel
1306 ;;
1307 mac | mpw | mac-mpw)
1308 basic_machine=m68k-apple
1309 ;;
1310 pmac | pmac-mpw)
1311 basic_machine=powerpc-apple
1312 ;;
1313 *-unknown)
1314 # Make sure to match an already-canonicalized machine name.
1315 ;;
1316 *)
1317 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1318 exit 1
1319 ;;
1320 esac
1321
1322 # Here we canonicalize certain aliases for manufacturers.
1323 case $basic_machine in
1324 *-digital*)
1325 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1326 ;;
1327 *-commodore*)
1328 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1329 ;;
1330 *)
1331 ;;
1332 esac
1333
1334 # Decode manufacturer-specific aliases for certain operating systems.
1335
1336 if [ x"$os" != x"" ]
1337 then
1338 case $os in
1339 # First match some system type aliases that might get confused
1340 # with valid system types.
1341 # -solaris* is a basic system type, with this one exception.
1342 -auroraux)
1343 os=-auroraux
1344 ;;
1345 -solaris1 | -solaris1.*)
1346 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1347 ;;
1348 -solaris)
1349 os=-solaris2
1350 ;;
1351 -unixware*)
1352 os=-sysv4.2uw
1353 ;;
1354 -gnu/linux*)
1355 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1356 ;;
1357 # es1800 is here to avoid being matched by es* (a different OS)
1358 -es1800*)
1359 os=-ose
1360 ;;
1361 # Now accept the basic system types.
1362 # The portable systems comes first.
1363 # Each alternative MUST end in a * to match a version number.
1364 # -sysv* is not here because it comes later, after sysvr4.
1365 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1366 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1367 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1368 | -sym* | -kopensolaris* | -plan9* \
1369 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1370 | -aos* | -aros* | -cloudabi* | -sortix* \
1371 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1372 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1373 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1374 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1375 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1376 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1377 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1378 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1379 | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
1380 | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1381 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1382 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1383 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1384 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1385 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1386 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1387 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1388 | -morphos* | -superux* | -rtmk* | -windiss* \
1389 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1390 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1391 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1392 | -midnightbsd*)
1393 # Remember, each alternative MUST END IN *, to match a version number.
1394 ;;
1395 -qnx*)
1396 case $basic_machine in
1397 x86-* | i*86-*)
1398 ;;
1399 *)
1400 os=-nto$os
1401 ;;
1402 esac
1403 ;;
1404 -nto-qnx*)
1405 ;;
1406 -nto*)
1407 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1408 ;;
1409 -sim | -xray | -os68k* | -v88r* \
1410 | -windows* | -osx | -abug | -netware* | -os9* \
1411 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1412 ;;
1413 -mac*)
1414 os=`echo "$os" | sed -e 's|mac|macos|'`
1415 ;;
1416 -linux-dietlibc)
1417 os=-linux-dietlibc
1418 ;;
1419 -linux*)
1420 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1421 ;;
1422 -sunos5*)
1423 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1424 ;;
1425 -sunos6*)
1426 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1427 ;;
1428 -opened*)
1429 os=-openedition
1430 ;;
1431 -os400*)
1432 os=-os400
1433 ;;
1434 -wince*)
1435 os=-wince
1436 ;;
1437 -utek*)
1438 os=-bsd
1439 ;;
1440 -dynix*)
1441 os=-bsd
1442 ;;
1443 -acis*)
1444 os=-aos
1445 ;;
1446 -atheos*)
1447 os=-atheos
1448 ;;
1449 -syllable*)
1450 os=-syllable
1451 ;;
1452 -386bsd)
1453 os=-bsd
1454 ;;
1455 -ctix* | -uts*)
1456 os=-sysv
1457 ;;
1458 -nova*)
1459 os=-rtmk-nova
1460 ;;
1461 -ns2)
1462 os=-nextstep2
1463 ;;
1464 -nsk*)
1465 os=-nsk
1466 ;;
1467 # Preserve the version number of sinix5.
1468 -sinix5.*)
1469 os=`echo $os | sed -e 's|sinix|sysv|'`
1470 ;;
1471 -sinix*)
1472 os=-sysv4
1473 ;;
1474 -tpf*)
1475 os=-tpf
1476 ;;
1477 -triton*)
1478 os=-sysv3
1479 ;;
1480 -oss*)
1481 os=-sysv3
1482 ;;
1483 -svr4*)
1484 os=-sysv4
1485 ;;
1486 -svr3)
1487 os=-sysv3
1488 ;;
1489 -sysvr4)
1490 os=-sysv4
1491 ;;
1492 # This must come after -sysvr4.
1493 -sysv*)
1494 ;;
1495 -ose*)
1496 os=-ose
1497 ;;
1498 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1499 os=-mint
1500 ;;
1501 -zvmoe)
1502 os=-zvmoe
1503 ;;
1504 -dicos*)
1505 os=-dicos
1506 ;;
1507 -pikeos*)
1508 # Until real need of OS specific support for
1509 # particular features comes up, bare metal
1510 # configurations are quite functional.
1511 case $basic_machine in
1512 arm*)
1513 os=-eabi
1514 ;;
1515 *)
1516 os=-elf
1517 ;;
1518 esac
1519 ;;
1520 -nacl*)
1521 ;;
1522 -ios)
1523 ;;
1524 -none)
1525 ;;
1526 *)
1527 # Get rid of the `-' at the beginning of $os.
1528 os=`echo $os | sed 's/[^-]*-//'`
1529 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1530 exit 1
1531 ;;
1532 esac
1533 else
1534
1535 # Here we handle the default operating systems that come with various machines.
1536 # The value should be what the vendor currently ships out the door with their
1537 # machine or put another way, the most popular os provided with the machine.
1538
1539 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1540 # "-sun"), then you have to tell the case statement up towards the top
1541 # that MANUFACTURER isn't an operating system. Otherwise, code above
1542 # will signal an error saying that MANUFACTURER isn't an operating
1543 # system, and we'll never get to this point.
1544
1545 case $basic_machine in
1546 score-*)
1547 os=-elf
1548 ;;
1549 spu-*)
1550 os=-elf
1551 ;;
1552 *-acorn)
1553 os=-riscix1.2
1554 ;;
1555 arm*-rebel)
1556 os=-linux
1557 ;;
1558 arm*-semi)
1559 os=-aout
1560 ;;
1561 c4x-* | tic4x-*)
1562 os=-coff
1563 ;;
1564 c8051-*)
1565 os=-elf
1566 ;;
1567 hexagon-*)
1568 os=-elf
1569 ;;
1570 tic54x-*)
1571 os=-coff
1572 ;;
1573 tic55x-*)
1574 os=-coff
1575 ;;
1576 tic6x-*)
1577 os=-coff
1578 ;;
1579 # This must come before the *-dec entry.
1580 pdp10-*)
1581 os=-tops20
1582 ;;
1583 pdp11-*)
1584 os=-none
1585 ;;
1586 *-dec | vax-*)
1587 os=-ultrix4.2
1588 ;;
1589 m68*-apollo)
1590 os=-domain
1591 ;;
1592 i386-sun)
1593 os=-sunos4.0.2
1594 ;;
1595 m68000-sun)
1596 os=-sunos3
1597 ;;
1598 m68*-cisco)
1599 os=-aout
1600 ;;
1601 mep-*)
1602 os=-elf
1603 ;;
1604 mips*-cisco)
1605 os=-elf
1606 ;;
1607 mips*-*)
1608 os=-elf
1609 ;;
1610 or32-*)
1611 os=-coff
1612 ;;
1613 *-tti) # must be before sparc entry or we get the wrong os.
1614 os=-sysv3
1615 ;;
1616 sparc-* | *-sun)
1617 os=-sunos4.1.1
1618 ;;
1619 pru-*)
1620 os=-elf
1621 ;;
1622 *-be)
1623 os=-beos
1624 ;;
1625 *-ibm)
1626 os=-aix
1627 ;;
1628 *-knuth)
1629 os=-mmixware
1630 ;;
1631 *-wec)
1632 os=-proelf
1633 ;;
1634 *-winbond)
1635 os=-proelf
1636 ;;
1637 *-oki)
1638 os=-proelf
1639 ;;
1640 *-hp)
1641 os=-hpux
1642 ;;
1643 *-hitachi)
1644 os=-hiux
1645 ;;
1646 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1647 os=-sysv
1648 ;;
1649 *-cbm)
1650 os=-amigaos
1651 ;;
1652 *-dg)
1653 os=-dgux
1654 ;;
1655 *-dolphin)
1656 os=-sysv3
1657 ;;
1658 m68k-ccur)
1659 os=-rtu
1660 ;;
1661 m88k-omron*)
1662 os=-luna
1663 ;;
1664 *-next)
1665 os=-nextstep
1666 ;;
1667 *-sequent)
1668 os=-ptx
1669 ;;
1670 *-crds)
1671 os=-unos
1672 ;;
1673 *-ns)
1674 os=-genix
1675 ;;
1676 i370-*)
1677 os=-mvs
1678 ;;
1679 *-gould)
1680 os=-sysv
1681 ;;
1682 *-highlevel)
1683 os=-bsd
1684 ;;
1685 *-encore)
1686 os=-bsd
1687 ;;
1688 *-sgi)
1689 os=-irix
1690 ;;
1691 *-siemens)
1692 os=-sysv4
1693 ;;
1694 *-masscomp)
1695 os=-rtu
1696 ;;
1697 f30[01]-fujitsu | f700-fujitsu)
1698 os=-uxpv
1699 ;;
1700 *-rom68k)
1701 os=-coff
1702 ;;
1703 *-*bug)
1704 os=-coff
1705 ;;
1706 *-apple)
1707 os=-macos
1708 ;;
1709 *-atari*)
1710 os=-mint
1711 ;;
1712 *)
1713 os=-none
1714 ;;
1715 esac
1716 fi
1717
1718 # Here we handle the case where we know the os, and the CPU type, but not the
1719 # manufacturer. We pick the logical manufacturer.
1720 vendor=unknown
1721 case $basic_machine in
1722 *-unknown)
1723 case $os in
1724 -riscix*)
1725 vendor=acorn
1726 ;;
1727 -sunos*)
1728 vendor=sun
1729 ;;
1730 -cnk*|-aix*)
1731 vendor=ibm
1732 ;;
1733 -beos*)
1734 vendor=be
1735 ;;
1736 -hpux*)
1737 vendor=hp
1738 ;;
1739 -mpeix*)
1740 vendor=hp
1741 ;;
1742 -hiux*)
1743 vendor=hitachi
1744 ;;
1745 -unos*)
1746 vendor=crds
1747 ;;
1748 -dgux*)
1749 vendor=dg
1750 ;;
1751 -luna*)
1752 vendor=omron
1753 ;;
1754 -genix*)
1755 vendor=ns
1756 ;;
1757 -mvs* | -opened*)
1758 vendor=ibm
1759 ;;
1760 -os400*)
1761 vendor=ibm
1762 ;;
1763 -ptx*)
1764 vendor=sequent
1765 ;;
1766 -tpf*)
1767 vendor=ibm
1768 ;;
1769 -vxsim* | -vxworks* | -windiss*)
1770 vendor=wrs
1771 ;;
1772 -aux*)
1773 vendor=apple
1774 ;;
1775 -hms*)
1776 vendor=hitachi
1777 ;;
1778 -mpw* | -macos*)
1779 vendor=apple
1780 ;;
1781 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1782 vendor=atari
1783 ;;
1784 -vos*)
1785 vendor=stratus
1786 ;;
1787 esac
1788 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
1789 ;;
1790 esac
1791
1792 echo "$basic_machine$os"
1793 exit
1794
1795 # Local variables:
1796 # eval: (add-hook 'write-file-functions 'time-stamp)
1797 # time-stamp-start: "timestamp='"
1798 # time-stamp-format: "%:y-%02m-%02d"
1799 # time-stamp-end: "'"
1800 # End:
+0
-22169
configure less more
0 #! /bin/sh
1 # Guess values for system-dependent variables and create Makefiles.
2 # Generated by GNU Autoconf 2.69 for libde265 1.0.8.
3 #
4 # Report bugs to <farin@struktur.de>.
5 #
6 #
7 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 emulate sh
20 NULLCMD=:
21 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
24 setopt NO_GLOB_SUBST
25 else
26 case `(set -o) 2>/dev/null` in #(
27 *posix*) :
28 set -o posix ;; #(
29 *) :
30 ;;
31 esac
32 fi
33
34
35 as_nl='
36 '
37 export as_nl
38 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 # Prefer a ksh shell builtin over an external printf program on Solaris,
43 # but without wasting forks for bash or zsh.
44 if test -z "$BASH_VERSION$ZSH_VERSION" \
45 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo='print -r --'
47 as_echo_n='print -rn --'
48 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='printf %s\n'
50 as_echo_n='printf %s'
51 else
52 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54 as_echo_n='/usr/ucb/echo -n'
55 else
56 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57 as_echo_n_body='eval
58 arg=$1;
59 case $arg in #(
60 *"$as_nl"*)
61 expr "X$arg" : "X\\(.*\\)$as_nl";
62 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 esac;
64 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 '
66 export as_echo_n_body
67 as_echo_n='sh -c $as_echo_n_body as_echo'
68 fi
69 export as_echo_body
70 as_echo='sh -c $as_echo_body as_echo'
71 fi
72
73 # The user is always right.
74 if test "${PATH_SEPARATOR+set}" != set; then
75 PATH_SEPARATOR=:
76 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78 PATH_SEPARATOR=';'
79 }
80 fi
81
82
83 # IFS
84 # We need space, tab and new line, in precisely that order. Quoting is
85 # there to prevent editors from complaining about space-tab.
86 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87 # splitting by setting IFS to empty value.)
88 IFS=" "" $as_nl"
89
90 # Find who we are. Look in the path if we contain no directory separator.
91 as_myself=
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
102
103 ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 # Use a proper internal environment variable to ensure we don't fall
137 # into an infinite loop, continuously re-executing ourselves.
138 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
139 _as_can_reexec=no; export _as_can_reexec;
140 # We cannot yet assume a decent shell, so we have to provide a
141 # neutralization value for shells without unset; and this also
142 # works around shells that cannot unset nonexistent variables.
143 # Preserve -v and -x to the replacement shell.
144 BASH_ENV=/dev/null
145 ENV=/dev/null
146 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 case $- in # ((((
148 *v*x* | *x*v* ) as_opts=-vx ;;
149 *v* ) as_opts=-v ;;
150 *x* ) as_opts=-x ;;
151 * ) as_opts= ;;
152 esac
153 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
154 # Admittedly, this is quite paranoid, since all the known shells bail
155 # out after a failed `exec'.
156 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
157 as_fn_exit 255
158 fi
159 # We don't want this to propagate to other subprocesses.
160 { _as_can_reexec=; unset _as_can_reexec;}
161 if test "x$CONFIG_SHELL" = x; then
162 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
163 emulate sh
164 NULLCMD=:
165 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
166 # is contrary to our usage. Disable this feature.
167 alias -g '\${1+\"\$@\"}'='\"\$@\"'
168 setopt NO_GLOB_SUBST
169 else
170 case \`(set -o) 2>/dev/null\` in #(
171 *posix*) :
172 set -o posix ;; #(
173 *) :
174 ;;
175 esac
176 fi
177 "
178 as_required="as_fn_return () { (exit \$1); }
179 as_fn_success () { as_fn_return 0; }
180 as_fn_failure () { as_fn_return 1; }
181 as_fn_ret_success () { return 0; }
182 as_fn_ret_failure () { return 1; }
183
184 exitcode=0
185 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
186 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
187 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
188 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
189 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190
191 else
192 exitcode=1; echo positional parameters were not saved.
193 fi
194 test x\$exitcode = x0 || exit 1
195 test -x / || exit 1"
196 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
197 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
198 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
199 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
208 test \$(( 1 + 1 )) = 2 || exit 1"
209 if (eval "$as_required") 2>/dev/null; then :
210 as_have_required=yes
211 else
212 as_have_required=no
213 fi
214 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215
216 else
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 as_found=false
219 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 do
221 IFS=$as_save_IFS
222 test -z "$as_dir" && as_dir=.
223 as_found=:
224 case $as_dir in #(
225 /*)
226 for as_base in sh bash ksh sh5; do
227 # Try only shells that exist, to save several forks.
228 as_shell=$as_dir/$as_base
229 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
230 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 CONFIG_SHELL=$as_shell as_have_required=yes
232 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 break 2
234 fi
235 fi
236 done;;
237 esac
238 as_found=false
239 done
240 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
241 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi; }
244 IFS=$as_save_IFS
245
246
247 if test "x$CONFIG_SHELL" != x; then :
248 export CONFIG_SHELL
249 # We cannot yet assume a decent shell, so we have to provide a
250 # neutralization value for shells without unset; and this also
251 # works around shells that cannot unset nonexistent variables.
252 # Preserve -v and -x to the replacement shell.
253 BASH_ENV=/dev/null
254 ENV=/dev/null
255 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256 case $- in # ((((
257 *v*x* | *x*v* ) as_opts=-vx ;;
258 *v* ) as_opts=-v ;;
259 *x* ) as_opts=-x ;;
260 * ) as_opts= ;;
261 esac
262 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
263 # Admittedly, this is quite paranoid, since all the known shells bail
264 # out after a failed `exec'.
265 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
266 exit 255
267 fi
268
269 if test x$as_have_required = xno; then :
270 $as_echo "$0: This script requires a shell more modern than all"
271 $as_echo "$0: the shells that I found on your system."
272 if test x${ZSH_VERSION+set} = xset ; then
273 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
274 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 else
276 $as_echo "$0: Please tell bug-autoconf@gnu.org and farin@struktur.de
277 $0: about your system, including any error possibly output
278 $0: before this message. Then install a modern shell, or
279 $0: manually run the script under such a shell if you do
280 $0: have one."
281 fi
282 exit 1
283 fi
284 fi
285 fi
286 SHELL=${CONFIG_SHELL-/bin/sh}
287 export SHELL
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE= GREP_OPTIONS=
290 unset CLICOLOR_FORCE GREP_OPTIONS
291
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
295 # as_fn_unset VAR
296 # ---------------
297 # Portably unset VAR.
298 as_fn_unset ()
299 {
300 { eval $1=; unset $1;}
301 }
302 as_unset=as_fn_unset
303
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
307 as_fn_set_status ()
308 {
309 return $1
310 } # as_fn_set_status
311
312 # as_fn_exit STATUS
313 # -----------------
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
315 as_fn_exit ()
316 {
317 set +e
318 as_fn_set_status $1
319 exit $1
320 } # as_fn_exit
321
322 # as_fn_mkdir_p
323 # -------------
324 # Create "$as_dir" as a directory, including parents if necessary.
325 as_fn_mkdir_p ()
326 {
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366
367
368 } # as_fn_mkdir_p
369
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p ()
374 {
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
382 # implementations.
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
384 eval 'as_fn_append ()
385 {
386 eval $1+=\$2
387 }'
388 else
389 as_fn_append ()
390 {
391 eval $1=\$$1\$2
392 }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
401 eval 'as_fn_arith ()
402 {
403 as_val=$(( $* ))
404 }'
405 else
406 as_fn_arith ()
407 {
408 as_val=`expr "$@" || test $? -eq 1`
409 }
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 $as_echo X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 s/[$]LINENO.*/&-/
486 t lineno
487 b
488 :lineno
489 N
490 :loop
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
492 t loop
493 s/-\n.*//
494 ' >$as_me.lineno &&
495 chmod +x "$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
497
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec=no; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
505 . "./$as_me.lineno"
506 # Exit status is that of the last command.
507 exit
508 }
509
510 ECHO_C= ECHO_N= ECHO_T=
511 case `echo -n x` in #(((((
512 -n*)
513 case `echo 'xy\c'` in
514 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
515 xy) ECHO_C='\c';;
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
517 ECHO_T=' ';;
518 esac;;
519 *)
520 ECHO_N='-n';;
521 esac
522
523 rm -f conf$$ conf$$.exe conf$$.file
524 if test -d conf$$.dir; then
525 rm -f conf$$.dir/conf$$.file
526 else
527 rm -f conf$$.dir
528 mkdir conf$$.dir 2>/dev/null
529 fi
530 if (echo >conf$$.file) 2>/dev/null; then
531 if ln -s conf$$.file conf$$ 2>/dev/null; then
532 as_ln_s='ln -s'
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
538 as_ln_s='cp -pR'
539 elif ln conf$$.file conf$$ 2>/dev/null; then
540 as_ln_s=ln
541 else
542 as_ln_s='cp -pR'
543 fi
544 else
545 as_ln_s='cp -pR'
546 fi
547 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
548 rmdir conf$$.dir 2>/dev/null
549
550 if mkdir -p . 2>/dev/null; then
551 as_mkdir_p='mkdir -p "$as_dir"'
552 else
553 test -d ./-p && rmdir ./-p
554 as_mkdir_p=false
555 fi
556
557 as_test_x='test -x'
558 as_executable_p=as_fn_executable_p
559
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
562
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
565
566 SHELL=${CONFIG_SHELL-/bin/sh}
567
568
569 test -n "$DJDIR" || exec 7<&0 </dev/null
570 exec 6>&1
571
572 # Name of the host.
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576
577 #
578 # Initializations.
579 #
580 ac_default_prefix=/usr/local
581 ac_clean_files=
582 ac_config_libobj_dir=.
583 LIBOBJS=
584 cross_compiling=no
585 subdirs=
586 MFLAGS=
587 MAKEFLAGS=
588
589 # Identity of this package.
590 PACKAGE_NAME='libde265'
591 PACKAGE_TARNAME='libde265'
592 PACKAGE_VERSION='1.0.8'
593 PACKAGE_STRING='libde265 1.0.8'
594 PACKAGE_BUGREPORT='farin@struktur.de'
595 PACKAGE_URL=''
596
597 ac_unique_file="libde265/de265.cc"
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_header_list=
635 ac_func_list=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 ENABLE_SHERLOCK265_FALSE
640 ENABLE_SHERLOCK265_TRUE
641 ENABLE_DEC265_FALSE
642 ENABLE_DEC265_TRUE
643 QTMOC
644 QTCHOOSER
645 QT_LIBS
646 QT_CFLAGS
647 HAVE_SDL_FALSE
648 HAVE_SDL_TRUE
649 HAVE_SWSCALE_FALSE
650 HAVE_SWSCALE_TRUE
651 HAVE_VIDEOGFX_FALSE
652 HAVE_VIDEOGFX_TRUE
653 SWSCALE_LIBS
654 SWSCALE_CFLAGS
655 SDL_LIBS
656 SDL_CFLAGS
657 VIDEOGFX_LIBS
658 VIDEOGFX_CFLAGS
659 PKG_CONFIG_LIBDIR
660 PKG_CONFIG_PATH
661 PKG_CONFIG
662 ENABLE_ARM_THUMB_FALSE
663 ENABLE_ARM_THUMB_TRUE
664 ENABLE_NEON_OPT_FALSE
665 ENABLE_NEON_OPT_TRUE
666 ENABLE_ARM_OPT_FALSE
667 ENABLE_ARM_OPT_TRUE
668 ENABLE_SSE_OPT_FALSE
669 ENABLE_SSE_OPT_TRUE
670 ENABLE_ENCODER_FALSE
671 ENABLE_ENCODER_TRUE
672 MINGW_FALSE
673 MINGW_TRUE
674 LIBOBJS
675 ALLOCA
676 HAVE_VISIBILITY_FALSE
677 HAVE_VISIBILITY_TRUE
678 HAVE_CXX11
679 AM_BACKSLASH
680 AM_DEFAULT_VERBOSITY
681 AM_DEFAULT_V
682 AM_V
683 am__fastdepCXX_FALSE
684 am__fastdepCXX_TRUE
685 CXXDEPMODE
686 am__fastdepCC_FALSE
687 am__fastdepCC_TRUE
688 CCDEPMODE
689 am__untar
690 am__tar
691 AMTAR
692 SET_MAKE
693 mkdir_p
694 MKDIR_P
695 INSTALL_STRIP_PROGRAM
696 install_sh
697 MAKEINFO
698 AUTOHEADER
699 AUTOMAKE
700 AUTOCONF
701 ACLOCAL
702 VERSION
703 PACKAGE
704 CYGPATH_W
705 am__isrc
706 INSTALL_DATA
707 INSTALL_SCRIPT
708 INSTALL_PROGRAM
709 CXXCPP
710 ac_ct_CXX
711 CXXFLAGS
712 CXX
713 am__fastdepCCAS_FALSE
714 am__fastdepCCAS_TRUE
715 CCASDEPMODE
716 am__nodep
717 AMDEPBACKSLASH
718 AMDEP_FALSE
719 AMDEP_TRUE
720 am__quote
721 am__include
722 DEPDIR
723 am__leading_dot
724 CCASFLAGS
725 CCAS
726 CPP
727 LT_SYS_LIBRARY_PATH
728 OTOOL64
729 OTOOL
730 LIPO
731 NMEDIT
732 DSYMUTIL
733 MANIFEST_TOOL
734 AWK
735 RANLIB
736 STRIP
737 ac_ct_AR
738 AR
739 DLLTOOL
740 OBJDUMP
741 LN_S
742 NM
743 ac_ct_DUMPBIN
744 DUMPBIN
745 LD
746 FGREP
747 EGREP
748 GREP
749 SED
750 OBJEXT
751 EXEEXT
752 ac_ct_CC
753 CPPFLAGS
754 LDFLAGS
755 CFLAGS
756 CC
757 LIBTOOL
758 LIBDE265_AGE
759 LIBDE265_REVISION
760 LIBDE265_CURRENT
761 target_os
762 target_vendor
763 target_cpu
764 target
765 host_os
766 host_vendor
767 host_cpu
768 host
769 build_os
770 build_vendor
771 build_cpu
772 build
773 NUMERIC_VERSION
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 runstatedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_shared
817 enable_static
818 with_pic
819 enable_fast_install
820 with_aix_soname
821 with_gnu_ld
822 with_sysroot
823 enable_libtool_lock
824 enable_dependency_tracking
825 enable_silent_rules
826 enable_encoder
827 enable_sse
828 enable_arm
829 enable_thumb
830 enable_log_error
831 enable_log_info
832 enable_log_debug
833 enable_log_trace
834 enable_dec265
835 enable_sherlock265
836 '
837 ac_precious_vars='build_alias
838 host_alias
839 target_alias
840 CC
841 CFLAGS
842 LDFLAGS
843 LIBS
844 CPPFLAGS
845 LT_SYS_LIBRARY_PATH
846 CPP
847 CCAS
848 CCASFLAGS
849 CXX
850 CXXFLAGS
851 CCC
852 CXXCPP
853 PKG_CONFIG
854 PKG_CONFIG_PATH
855 PKG_CONFIG_LIBDIR
856 VIDEOGFX_CFLAGS
857 VIDEOGFX_LIBS
858 SDL_CFLAGS
859 SDL_LIBS
860 SWSCALE_CFLAGS
861 SWSCALE_LIBS
862 QT_CFLAGS
863 QT_LIBS'
864
865
866 # Initialize some variables set by options.
867 ac_init_help=
868 ac_init_version=false
869 ac_unrecognized_opts=
870 ac_unrecognized_sep=
871 # The variables have the same names as the options, with
872 # dashes changed to underlines.
873 cache_file=/dev/null
874 exec_prefix=NONE
875 no_create=
876 no_recursion=
877 prefix=NONE
878 program_prefix=NONE
879 program_suffix=NONE
880 program_transform_name=s,x,x,
881 silent=
882 site=
883 srcdir=
884 verbose=
885 x_includes=NONE
886 x_libraries=NONE
887
888 # Installation directory options.
889 # These are left unexpanded so users can "make install exec_prefix=/foo"
890 # and all the variables that are supposed to be based on exec_prefix
891 # by default will actually change.
892 # Use braces instead of parens because sh, perl, etc. also accept them.
893 # (The list follows the same order as the GNU Coding Standards.)
894 bindir='${exec_prefix}/bin'
895 sbindir='${exec_prefix}/sbin'
896 libexecdir='${exec_prefix}/libexec'
897 datarootdir='${prefix}/share'
898 datadir='${datarootdir}'
899 sysconfdir='${prefix}/etc'
900 sharedstatedir='${prefix}/com'
901 localstatedir='${prefix}/var'
902 runstatedir='${localstatedir}/run'
903 includedir='${prefix}/include'
904 oldincludedir='/usr/include'
905 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
906 infodir='${datarootdir}/info'
907 htmldir='${docdir}'
908 dvidir='${docdir}'
909 pdfdir='${docdir}'
910 psdir='${docdir}'
911 libdir='${exec_prefix}/lib'
912 localedir='${datarootdir}/locale'
913 mandir='${datarootdir}/man'
914
915 ac_prev=
916 ac_dashdash=
917 for ac_option
918 do
919 # If the previous option needs an argument, assign it.
920 if test -n "$ac_prev"; then
921 eval $ac_prev=\$ac_option
922 ac_prev=
923 continue
924 fi
925
926 case $ac_option in
927 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
928 *=) ac_optarg= ;;
929 *) ac_optarg=yes ;;
930 esac
931
932 # Accept the important Cygnus configure options, so we can diagnose typos.
933
934 case $ac_dashdash$ac_option in
935 --)
936 ac_dashdash=yes ;;
937
938 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 ac_prev=bindir ;;
940 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
941 bindir=$ac_optarg ;;
942
943 -build | --build | --buil | --bui | --bu)
944 ac_prev=build_alias ;;
945 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
946 build_alias=$ac_optarg ;;
947
948 -cache-file | --cache-file | --cache-fil | --cache-fi \
949 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
950 ac_prev=cache_file ;;
951 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
952 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
953 cache_file=$ac_optarg ;;
954
955 --config-cache | -C)
956 cache_file=config.cache ;;
957
958 -datadir | --datadir | --datadi | --datad)
959 ac_prev=datadir ;;
960 -datadir=* | --datadir=* | --datadi=* | --datad=*)
961 datadir=$ac_optarg ;;
962
963 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
964 | --dataroo | --dataro | --datar)
965 ac_prev=datarootdir ;;
966 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
967 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
968 datarootdir=$ac_optarg ;;
969
970 -disable-* | --disable-*)
971 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
972 # Reject names that are not valid shell variable names.
973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
974 as_fn_error $? "invalid feature name: $ac_useropt"
975 ac_useropt_orig=$ac_useropt
976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
977 case $ac_user_opts in
978 *"
979 "enable_$ac_useropt"
980 "*) ;;
981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
982 ac_unrecognized_sep=', ';;
983 esac
984 eval enable_$ac_useropt=no ;;
985
986 -docdir | --docdir | --docdi | --doc | --do)
987 ac_prev=docdir ;;
988 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
989 docdir=$ac_optarg ;;
990
991 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 ac_prev=dvidir ;;
993 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
994 dvidir=$ac_optarg ;;
995
996 -enable-* | --enable-*)
997 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1000 as_fn_error $? "invalid feature name: $ac_useropt"
1001 ac_useropt_orig=$ac_useropt
1002 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1004 *"
1005 "enable_$ac_useropt"
1006 "*) ;;
1007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1008 ac_unrecognized_sep=', ';;
1009 esac
1010 eval enable_$ac_useropt=\$ac_optarg ;;
1011
1012 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1013 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1014 | --exec | --exe | --ex)
1015 ac_prev=exec_prefix ;;
1016 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1017 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1018 | --exec=* | --exe=* | --ex=*)
1019 exec_prefix=$ac_optarg ;;
1020
1021 -gas | --gas | --ga | --g)
1022 # Obsolete; use --with-gas.
1023 with_gas=yes ;;
1024
1025 -help | --help | --hel | --he | -h)
1026 ac_init_help=long ;;
1027 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1028 ac_init_help=recursive ;;
1029 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1030 ac_init_help=short ;;
1031
1032 -host | --host | --hos | --ho)
1033 ac_prev=host_alias ;;
1034 -host=* | --host=* | --hos=* | --ho=*)
1035 host_alias=$ac_optarg ;;
1036
1037 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 ac_prev=htmldir ;;
1039 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 | --ht=*)
1041 htmldir=$ac_optarg ;;
1042
1043 -includedir | --includedir | --includedi | --included | --include \
1044 | --includ | --inclu | --incl | --inc)
1045 ac_prev=includedir ;;
1046 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1047 | --includ=* | --inclu=* | --incl=* | --inc=*)
1048 includedir=$ac_optarg ;;
1049
1050 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 ac_prev=infodir ;;
1052 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1053 infodir=$ac_optarg ;;
1054
1055 -libdir | --libdir | --libdi | --libd)
1056 ac_prev=libdir ;;
1057 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1058 libdir=$ac_optarg ;;
1059
1060 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1061 | --libexe | --libex | --libe)
1062 ac_prev=libexecdir ;;
1063 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1064 | --libexe=* | --libex=* | --libe=*)
1065 libexecdir=$ac_optarg ;;
1066
1067 -localedir | --localedir | --localedi | --localed | --locale)
1068 ac_prev=localedir ;;
1069 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1070 localedir=$ac_optarg ;;
1071
1072 -localstatedir | --localstatedir | --localstatedi | --localstated \
1073 | --localstate | --localstat | --localsta | --localst | --locals)
1074 ac_prev=localstatedir ;;
1075 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1076 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1077 localstatedir=$ac_optarg ;;
1078
1079 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 ac_prev=mandir ;;
1081 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1082 mandir=$ac_optarg ;;
1083
1084 -nfp | --nfp | --nf)
1085 # Obsolete; use --without-fp.
1086 with_fp=no ;;
1087
1088 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1089 | --no-cr | --no-c | -n)
1090 no_create=yes ;;
1091
1092 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1093 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1094 no_recursion=yes ;;
1095
1096 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1097 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1098 | --oldin | --oldi | --old | --ol | --o)
1099 ac_prev=oldincludedir ;;
1100 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1101 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1102 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1103 oldincludedir=$ac_optarg ;;
1104
1105 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 ac_prev=prefix ;;
1107 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1108 prefix=$ac_optarg ;;
1109
1110 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1111 | --program-pre | --program-pr | --program-p)
1112 ac_prev=program_prefix ;;
1113 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1114 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1115 program_prefix=$ac_optarg ;;
1116
1117 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1118 | --program-suf | --program-su | --program-s)
1119 ac_prev=program_suffix ;;
1120 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1121 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1122 program_suffix=$ac_optarg ;;
1123
1124 -program-transform-name | --program-transform-name \
1125 | --program-transform-nam | --program-transform-na \
1126 | --program-transform-n | --program-transform- \
1127 | --program-transform | --program-transfor \
1128 | --program-transfo | --program-transf \
1129 | --program-trans | --program-tran \
1130 | --progr-tra | --program-tr | --program-t)
1131 ac_prev=program_transform_name ;;
1132 -program-transform-name=* | --program-transform-name=* \
1133 | --program-transform-nam=* | --program-transform-na=* \
1134 | --program-transform-n=* | --program-transform-=* \
1135 | --program-transform=* | --program-transfor=* \
1136 | --program-transfo=* | --program-transf=* \
1137 | --program-trans=* | --program-tran=* \
1138 | --progr-tra=* | --program-tr=* | --program-t=*)
1139 program_transform_name=$ac_optarg ;;
1140
1141 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 ac_prev=pdfdir ;;
1143 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1144 pdfdir=$ac_optarg ;;
1145
1146 -psdir | --psdir | --psdi | --psd | --ps)
1147 ac_prev=psdir ;;
1148 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1149 psdir=$ac_optarg ;;
1150
1151 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1152 | -silent | --silent | --silen | --sile | --sil)
1153 silent=yes ;;
1154
1155 -runstatedir | --runstatedir | --runstatedi | --runstated \
1156 | --runstate | --runstat | --runsta | --runst | --runs \
1157 | --run | --ru | --r)
1158 ac_prev=runstatedir ;;
1159 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1160 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1161 | --run=* | --ru=* | --r=*)
1162 runstatedir=$ac_optarg ;;
1163
1164 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 ac_prev=sbindir ;;
1166 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 | --sbi=* | --sb=*)
1168 sbindir=$ac_optarg ;;
1169
1170 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1171 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1172 | --sharedst | --shareds | --shared | --share | --shar \
1173 | --sha | --sh)
1174 ac_prev=sharedstatedir ;;
1175 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1176 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1177 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 | --sha=* | --sh=*)
1179 sharedstatedir=$ac_optarg ;;
1180
1181 -site | --site | --sit)
1182 ac_prev=site ;;
1183 -site=* | --site=* | --sit=*)
1184 site=$ac_optarg ;;
1185
1186 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 ac_prev=srcdir ;;
1188 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1189 srcdir=$ac_optarg ;;
1190
1191 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1192 | --syscon | --sysco | --sysc | --sys | --sy)
1193 ac_prev=sysconfdir ;;
1194 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1195 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1196 sysconfdir=$ac_optarg ;;
1197
1198 -target | --target | --targe | --targ | --tar | --ta | --t)
1199 ac_prev=target_alias ;;
1200 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1201 target_alias=$ac_optarg ;;
1202
1203 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1204 verbose=yes ;;
1205
1206 -version | --version | --versio | --versi | --vers | -V)
1207 ac_init_version=: ;;
1208
1209 -with-* | --with-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: $ac_useropt"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=\$ac_optarg ;;
1224
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 as_fn_error $? "invalid package name: $ac_useropt"
1230 ac_useropt_orig=$ac_useropt
1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1232 case $ac_user_opts in
1233 *"
1234 "with_$ac_useropt"
1235 "*) ;;
1236 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1237 ac_unrecognized_sep=', ';;
1238 esac
1239 eval with_$ac_useropt=no ;;
1240
1241 --x)
1242 # Obsolete; use --with-x.
1243 with_x=yes ;;
1244
1245 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246 | --x-incl | --x-inc | --x-in | --x-i)
1247 ac_prev=x_includes ;;
1248 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250 x_includes=$ac_optarg ;;
1251
1252 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254 ac_prev=x_libraries ;;
1255 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257 x_libraries=$ac_optarg ;;
1258
1259 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1260 Try \`$0 --help' for more information"
1261 ;;
1262
1263 *=*)
1264 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1265 # Reject names that are not valid shell variable names.
1266 case $ac_envvar in #(
1267 '' | [0-9]* | *[!_$as_cr_alnum]* )
1268 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269 esac
1270 eval $ac_envvar=\$ac_optarg
1271 export $ac_envvar ;;
1272
1273 *)
1274 # FIXME: should be removed in autoconf 3.0.
1275 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1279 ;;
1280
1281 esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286 as_fn_error $? "missing argument to $ac_option"
1287 fi
1288
1289 if test -n "$ac_unrecognized_opts"; then
1290 case $enable_option_checking in
1291 no) ;;
1292 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1293 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294 esac
1295 fi
1296
1297 # Check all directory arguments for consistency.
1298 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1299 datadir sysconfdir sharedstatedir localstatedir includedir \
1300 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1301 libdir localedir mandir runstatedir
1302 do
1303 eval ac_val=\$$ac_var
1304 # Remove trailing slashes.
1305 case $ac_val in
1306 */ )
1307 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1308 eval $ac_var=\$ac_val;;
1309 esac
1310 # Be sure to have absolute directory names.
1311 case $ac_val in
1312 [\\/$]* | ?:[\\/]* ) continue;;
1313 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 esac
1315 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1316 done
1317
1318 # There might be people who depend on the old broken behavior: `$host'
1319 # used to hold the argument of --host etc.
1320 # FIXME: To remove some day.
1321 build=$build_alias
1322 host=$host_alias
1323 target=$target_alias
1324
1325 # FIXME: To remove some day.
1326 if test "x$host_alias" != x; then
1327 if test "x$build_alias" = x; then
1328 cross_compiling=maybe
1329 elif test "x$build_alias" != "x$host_alias"; then
1330 cross_compiling=yes
1331 fi
1332 fi
1333
1334 ac_tool_prefix=
1335 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
1337 test "$silent" = yes && exec 6>/dev/null
1338
1339
1340 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1341 ac_ls_di=`ls -di .` &&
1342 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1343 as_fn_error $? "working directory cannot be determined"
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345 as_fn_error $? "pwd does not report name of working directory"
1346
1347
1348 # Find the source files, if location was not specified.
1349 if test -z "$srcdir"; then
1350 ac_srcdir_defaulted=yes
1351 # Try the directory containing this script, then the parent directory.
1352 ac_confdir=`$as_dirname -- "$as_myself" ||
1353 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1354 X"$as_myself" : 'X\(//\)[^/]' \| \
1355 X"$as_myself" : 'X\(//\)$' \| \
1356 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1357 $as_echo X"$as_myself" |
1358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1359 s//\1/
1360 q
1361 }
1362 /^X\(\/\/\)[^/].*/{
1363 s//\1/
1364 q
1365 }
1366 /^X\(\/\/\)$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\).*/{
1371 s//\1/
1372 q
1373 }
1374 s/.*/./; q'`
1375 srcdir=$ac_confdir
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 srcdir=..
1378 fi
1379 else
1380 ac_srcdir_defaulted=no
1381 fi
1382 if test ! -r "$srcdir/$ac_unique_file"; then
1383 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1384 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 fi
1386 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 ac_abs_confdir=`(
1388 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 pwd)`
1390 # When building in place, set srcdir=.
1391 if test "$ac_abs_confdir" = "$ac_pwd"; then
1392 srcdir=.
1393 fi
1394 # Remove unnecessary trailing slashes from srcdir.
1395 # Double slashes in file names in object file debugging info
1396 # mess up M-x gdb in Emacs.
1397 case $srcdir in
1398 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 esac
1400 for ac_var in $ac_precious_vars; do
1401 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1402 eval ac_env_${ac_var}_value=\$${ac_var}
1403 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1404 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1405 done
1406
1407 #
1408 # Report the --help message.
1409 #
1410 if test "$ac_init_help" = "long"; then
1411 # Omit some internal or obsolete options to make the list less imposing.
1412 # This message is too long to be a string in the A/UX 3.1 sh.
1413 cat <<_ACEOF
1414 \`configure' configures libde265 1.0.8 to adapt to many kinds of systems.
1415
1416 Usage: $0 [OPTION]... [VAR=VALUE]...
1417
1418 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1419 VAR=VALUE. See below for descriptions of some of the useful variables.
1420
1421 Defaults for the options are specified in brackets.
1422
1423 Configuration:
1424 -h, --help display this help and exit
1425 --help=short display options specific to this package
1426 --help=recursive display the short help of all the included packages
1427 -V, --version display version information and exit
1428 -q, --quiet, --silent do not print \`checking ...' messages
1429 --cache-file=FILE cache test results in FILE [disabled]
1430 -C, --config-cache alias for \`--cache-file=config.cache'
1431 -n, --no-create do not create output files
1432 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433
1434 Installation directories:
1435 --prefix=PREFIX install architecture-independent files in PREFIX
1436 [$ac_default_prefix]
1437 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1438 [PREFIX]
1439
1440 By default, \`make install' will install all the files in
1441 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1442 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1443 for instance \`--prefix=\$HOME'.
1444
1445 For better control, use the options below.
1446
1447 Fine tuning of the installation directories:
1448 --bindir=DIR user executables [EPREFIX/bin]
1449 --sbindir=DIR system admin executables [EPREFIX/sbin]
1450 --libexecdir=DIR program executables [EPREFIX/libexec]
1451 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1452 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1453 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1454 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1455 --libdir=DIR object code libraries [EPREFIX/lib]
1456 --includedir=DIR C header files [PREFIX/include]
1457 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1458 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1459 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1460 --infodir=DIR info documentation [DATAROOTDIR/info]
1461 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1462 --mandir=DIR man documentation [DATAROOTDIR/man]
1463 --docdir=DIR documentation root [DATAROOTDIR/doc/libde265]
1464 --htmldir=DIR html documentation [DOCDIR]
1465 --dvidir=DIR dvi documentation [DOCDIR]
1466 --pdfdir=DIR pdf documentation [DOCDIR]
1467 --psdir=DIR ps documentation [DOCDIR]
1468 _ACEOF
1469
1470 cat <<\_ACEOF
1471
1472 Program names:
1473 --program-prefix=PREFIX prepend PREFIX to installed program names
1474 --program-suffix=SUFFIX append SUFFIX to installed program names
1475 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1476
1477 System types:
1478 --build=BUILD configure for building on BUILD [guessed]
1479 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1480 --target=TARGET configure for building compilers for TARGET [HOST]
1481 _ACEOF
1482 fi
1483
1484 if test -n "$ac_init_help"; then
1485 case $ac_init_help in
1486 short | recursive ) echo "Configuration of libde265 1.0.8:";;
1487 esac
1488 cat <<\_ACEOF
1489
1490 Optional Features:
1491 --disable-option-checking ignore unrecognized --enable/--with options
1492 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1493 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1494 --enable-shared[=PKGS] build shared libraries [default=yes]
1495 --enable-static[=PKGS] build static libraries [default=yes]
1496 --enable-fast-install[=PKGS]
1497 optimize for fast installation [default=yes]
1498 --disable-libtool-lock avoid locking (might break parallel builds)
1499 --enable-dependency-tracking
1500 do not reject slow dependency extractors
1501 --disable-dependency-tracking
1502 speeds up one-time build
1503 --enable-silent-rules less verbose build output (undo: "make V=1")
1504 --disable-silent-rules verbose build output (undo: "make V=0")
1505 --disable-encoder Do not build encoder.
1506 --disable-sse disable SSE optimizations (default=no)
1507 --disable-arm disable ARM optimizations (default=no)
1508 --enable-thumb disable ARM THUMB instructions (default=no)
1509 --enable-log-error turn on logging at error level (default=yes)
1510 --enable-log-info turn on logging at info level (default=no)
1511 --enable-log-debug turn on logging at debug level (default=no)
1512 --enable-log-trace turn on logging at trace level (default=no)
1513 --disable-dec265 Do not build dec265 decoder program.
1514 --disable-sherlock265 Do not build sherlock265 visual inspection program.
1515
1516 Optional Packages:
1517 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1518 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1519 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1520 both]
1521 --with-aix-soname=aix|svr4|both
1522 shared library versioning (aka "SONAME") variant to
1523 provide on AIX, [default=aix].
1524 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1525 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1526 compiler's sysroot if not specified).
1527
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1536 LT_SYS_LIBRARY_PATH
1537 User-defined run-time library search path.
1538 CPP C preprocessor
1539 CCAS assembler compiler command (defaults to CC)
1540 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1541 CXX C++ compiler command
1542 CXXFLAGS C++ compiler flags
1543 CXXCPP C++ preprocessor
1544 PKG_CONFIG path to pkg-config utility
1545 PKG_CONFIG_PATH
1546 directories to add to pkg-config's search path
1547 PKG_CONFIG_LIBDIR
1548 path overriding pkg-config's built-in search path
1549 VIDEOGFX_CFLAGS
1550 C compiler flags for VIDEOGFX, overriding pkg-config
1551 VIDEOGFX_LIBS
1552 linker flags for VIDEOGFX, overriding pkg-config
1553 SDL_CFLAGS C compiler flags for SDL, overriding pkg-config
1554 SDL_LIBS linker flags for SDL, overriding pkg-config
1555 SWSCALE_CFLAGS
1556 C compiler flags for SWSCALE, overriding pkg-config
1557 SWSCALE_LIBS
1558 linker flags for SWSCALE, overriding pkg-config
1559 QT_CFLAGS C compiler flags for QT, overriding pkg-config
1560 QT_LIBS linker flags for QT, overriding pkg-config
1561
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1564
1565 Report bugs to <farin@struktur.de>.
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" ||
1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575 continue
1576 ac_builddir=.
1577
1578 case "$ac_dir" in
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *)
1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582 # A ".." for each directory in $ac_dir_suffix.
1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584 case $ac_top_builddir_sub in
1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 esac ;;
1588 esac
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1593
1594 case $srcdir in
1595 .) # We are building in place.
1596 ac_srcdir=.
1597 ac_top_srcdir=$ac_top_builddir_sub
1598 ac_abs_top_srcdir=$ac_pwd ;;
1599 [\\/]* | ?:[\\/]* ) # Absolute name.
1600 ac_srcdir=$srcdir$ac_dir_suffix;
1601 ac_top_srcdir=$srcdir
1602 ac_abs_top_srcdir=$srcdir ;;
1603 *) # Relative name.
1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605 ac_top_srcdir=$ac_top_build_prefix$srcdir
1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 esac
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610 cd "$ac_dir" || { ac_status=$?; continue; }
1611 # Check for guested configure.
1612 if test -f "$ac_srcdir/configure.gnu"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615 elif test -f "$ac_srcdir/configure"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure" --help=recursive
1618 else
1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 fi || ac_status=$?
1621 cd "$ac_pwd" || { ac_status=$?; break; }
1622 done
1623 fi
1624
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1627 cat <<\_ACEOF
1628 libde265 configure 1.0.8
1629 generated by GNU Autoconf 2.69
1630
1631 Copyright (C) 2012 Free Software Foundation, Inc.
1632 This configure script is free software; the Free Software Foundation
1633 gives unlimited permission to copy, distribute and modify it.
1634 _ACEOF
1635 exit
1636 fi
1637
1638 ## ------------------------ ##
1639 ## Autoconf initialization. ##
1640 ## ------------------------ ##
1641
1642 # ac_fn_c_try_compile LINENO
1643 # --------------------------
1644 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1645 ac_fn_c_try_compile ()
1646 {
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650 case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653 esac
1654 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655 $as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_c_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669 else
1670 $as_echo "$as_me: failed program was:" >&5
1671 sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674 fi
1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1676 as_fn_set_status $ac_retval
1677
1678 } # ac_fn_c_try_compile
1679
1680 # ac_fn_c_try_link LINENO
1681 # -----------------------
1682 # Try to link conftest.$ac_ext, and return whether this succeeded.
1683 ac_fn_c_try_link ()
1684 {
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688 case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691 esac
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 test -x conftest$ac_exeext
1708 }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: failed program was:" >&5
1712 sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715 fi
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1723
1724 } # ac_fn_c_try_link
1725
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1731 {
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if eval \${$3+:} false; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1740 $4
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744 eval "$3=yes"
1745 else
1746 eval "$3=no"
1747 fi
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1749 fi
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1754
1755 } # ac_fn_c_check_header_compile
1756
1757 # ac_fn_c_try_cpp LINENO
1758 # ----------------------
1759 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_cpp ()
1761 {
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 if { { ac_try="$ac_cpp conftest.$ac_ext"
1764 case "(($ac_try" in
1765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1766 *) ac_try_echo=$ac_try;;
1767 esac
1768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771 ac_status=$?
1772 if test -s conftest.err; then
1773 grep -v '^ *+' conftest.err >conftest.er1
1774 cat conftest.er1 >&5
1775 mv -f conftest.er1 conftest.err
1776 fi
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } > conftest.i && {
1779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 }; then :
1782 ac_retval=0
1783 else
1784 $as_echo "$as_me: failed program was:" >&5
1785 sed 's/^/| /' conftest.$ac_ext >&5
1786
1787 ac_retval=1
1788 fi
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1791
1792 } # ac_fn_c_try_cpp
1793
1794 # ac_fn_c_try_run LINENO
1795 # ----------------------
1796 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1797 # that executables *can* be run.
1798 ac_fn_c_try_run ()
1799 {
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { { ac_try="$ac_link"
1802 case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_link") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1812 { { case "(($ac_try" in
1813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1815 esac
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_try") 2>&5
1819 ac_status=$?
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; }; }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: program exited with status $ac_status" >&5
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=$ac_status
1829 fi
1830 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1831 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1832 as_fn_set_status $ac_retval
1833
1834 } # ac_fn_c_try_run
1835
1836 # ac_fn_c_check_func LINENO FUNC VAR
1837 # ----------------------------------
1838 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1839 ac_fn_c_check_func ()
1840 {
1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1843 $as_echo_n "checking for $2... " >&6; }
1844 if eval \${$3+:} false; then :
1845 $as_echo_n "(cached) " >&6
1846 else
1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1848 /* end confdefs.h. */
1849 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1851 #define $2 innocuous_$2
1852
1853 /* System header to define __stub macros and hopefully few prototypes,
1854 which can conflict with char $2 (); below.
1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1856 <limits.h> exists even on freestanding compilers. */
1857
1858 #ifdef __STDC__
1859 # include <limits.h>
1860 #else
1861 # include <assert.h>
1862 #endif
1863
1864 #undef $2
1865
1866 /* Override any GCC internal prototype to avoid an error.
1867 Use char because int might match the return type of a GCC
1868 builtin and then its argument prototype would still apply. */
1869 #ifdef __cplusplus
1870 extern "C"
1871 #endif
1872 char $2 ();
1873 /* The GNU C library defines this for functions which it implements
1874 to always fail with ENOSYS. Some functions are actually named
1875 something starting with __ and the normal name is an alias. */
1876 #if defined __stub_$2 || defined __stub___$2
1877 choke me
1878 #endif
1879
1880 int
1881 main ()
1882 {
1883 return $2 ();
1884 ;
1885 return 0;
1886 }
1887 _ACEOF
1888 if ac_fn_c_try_link "$LINENO"; then :
1889 eval "$3=yes"
1890 else
1891 eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext \
1894 conftest$ac_exeext conftest.$ac_ext
1895 fi
1896 eval ac_res=\$$3
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1899 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1900
1901 } # ac_fn_c_check_func
1902
1903 # ac_fn_cxx_try_compile LINENO
1904 # ----------------------------
1905 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1906 ac_fn_cxx_try_compile ()
1907 {
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 rm -f conftest.$ac_objext
1910 if { { ac_try="$ac_compile"
1911 case "(($ac_try" in
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1914 esac
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_compile") 2>conftest.err
1918 ac_status=$?
1919 if test -s conftest.err; then
1920 grep -v '^ *+' conftest.err >conftest.er1
1921 cat conftest.er1 >&5
1922 mv -f conftest.er1 conftest.err
1923 fi
1924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1925 test $ac_status = 0; } && {
1926 test -z "$ac_cxx_werror_flag" ||
1927 test ! -s conftest.err
1928 } && test -s conftest.$ac_objext; then :
1929 ac_retval=0
1930 else
1931 $as_echo "$as_me: failed program was:" >&5
1932 sed 's/^/| /' conftest.$ac_ext >&5
1933
1934 ac_retval=1
1935 fi
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1938
1939 } # ac_fn_cxx_try_compile
1940
1941 # ac_fn_cxx_try_cpp LINENO
1942 # ------------------------
1943 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1944 ac_fn_cxx_try_cpp ()
1945 {
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 if { { ac_try="$ac_cpp conftest.$ac_ext"
1948 case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1955 ac_status=$?
1956 if test -s conftest.err; then
1957 grep -v '^ *+' conftest.err >conftest.er1
1958 cat conftest.er1 >&5
1959 mv -f conftest.er1 conftest.err
1960 fi
1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1962 test $ac_status = 0; } > conftest.i && {
1963 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1964 test ! -s conftest.err
1965 }; then :
1966 ac_retval=0
1967 else
1968 $as_echo "$as_me: failed program was:" >&5
1969 sed 's/^/| /' conftest.$ac_ext >&5
1970
1971 ac_retval=1
1972 fi
1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1974 as_fn_set_status $ac_retval
1975
1976 } # ac_fn_cxx_try_cpp
1977
1978 # ac_fn_cxx_try_link LINENO
1979 # -------------------------
1980 # Try to link conftest.$ac_ext, and return whether this succeeded.
1981 ac_fn_cxx_try_link ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 rm -f conftest.$ac_objext conftest$ac_exeext
1985 if { { ac_try="$ac_link"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_link") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1998 fi
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && {
2001 test -z "$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 } && test -s conftest$ac_exeext && {
2004 test "$cross_compiling" = yes ||
2005 test -x conftest$ac_exeext
2006 }; then :
2007 ac_retval=0
2008 else
2009 $as_echo "$as_me: failed program was:" >&5
2010 sed 's/^/| /' conftest.$ac_ext >&5
2011
2012 ac_retval=1
2013 fi
2014 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2015 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2016 # interfere with the next link command; also delete a directory that is
2017 # left behind by Apple's compiler. We do this before executing the actions.
2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020 as_fn_set_status $ac_retval
2021
2022 } # ac_fn_cxx_try_link
2023
2024 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2025 # -------------------------------------------------------
2026 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2027 # the include files in INCLUDES and setting the cache variable VAR
2028 # accordingly.
2029 ac_fn_c_check_header_mongrel ()
2030 {
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 if eval \${$3+:} false; then :
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 else
2042 # Is the header compilable?
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2044 $as_echo_n "checking $2 usability... " >&6; }
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2047 $4
2048 #include <$2>
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 ac_header_compiler=yes
2052 else
2053 ac_header_compiler=no
2054 fi
2055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2057 $as_echo "$ac_header_compiler" >&6; }
2058
2059 # Is the header present?
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2061 $as_echo_n "checking $2 presence... " >&6; }
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063 /* end confdefs.h. */
2064 #include <$2>
2065 _ACEOF
2066 if ac_fn_c_try_cpp "$LINENO"; then :
2067 ac_header_preproc=yes
2068 else
2069 ac_header_preproc=no
2070 fi
2071 rm -f conftest.err conftest.i conftest.$ac_ext
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2073 $as_echo "$ac_header_preproc" >&6; }
2074
2075 # So? What about this header?
2076 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2077 yes:no: )
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2079 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2081 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2082 ;;
2083 no:yes:* )
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2085 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2087 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2089 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2091 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2093 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2094 ( $as_echo "## -------------------------------- ##
2095 ## Report this to farin@struktur.de ##
2096 ## -------------------------------- ##"
2097 ) | sed "s/^/$as_me: WARNING: /" >&2
2098 ;;
2099 esac
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2101 $as_echo_n "checking for $2... " >&6; }
2102 if eval \${$3+:} false; then :
2103 $as_echo_n "(cached) " >&6
2104 else
2105 eval "$3=\$ac_header_compiler"
2106 fi
2107 eval ac_res=\$$3
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2110 fi
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113 } # ac_fn_c_check_header_mongrel
2114
2115 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2116 # ---------------------------------------------------------
2117 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2118 # the include files in INCLUDES and setting the cache variable VAR
2119 # accordingly.
2120 ac_fn_cxx_check_header_mongrel ()
2121 {
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if eval \${$3+:} false; then :
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2125 $as_echo_n "checking for $2... " >&6; }
2126 if eval \${$3+:} false; then :
2127 $as_echo_n "(cached) " >&6
2128 fi
2129 eval ac_res=\$$3
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2131 $as_echo "$ac_res" >&6; }
2132 else
2133 # Is the header compilable?
2134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2135 $as_echo_n "checking $2 usability... " >&6; }
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 $4
2139 #include <$2>
2140 _ACEOF
2141 if ac_fn_cxx_try_compile "$LINENO"; then :
2142 ac_header_compiler=yes
2143 else
2144 ac_header_compiler=no
2145 fi
2146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2148 $as_echo "$ac_header_compiler" >&6; }
2149
2150 # Is the header present?
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2152 $as_echo_n "checking $2 presence... " >&6; }
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2155 #include <$2>
2156 _ACEOF
2157 if ac_fn_cxx_try_cpp "$LINENO"; then :
2158 ac_header_preproc=yes
2159 else
2160 ac_header_preproc=no
2161 fi
2162 rm -f conftest.err conftest.i conftest.$ac_ext
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2164 $as_echo "$ac_header_preproc" >&6; }
2165
2166 # So? What about this header?
2167 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2168 yes:no: )
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2170 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2172 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2173 ;;
2174 no:yes:* )
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2176 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2178 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2180 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2182 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2184 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2185 ( $as_echo "## -------------------------------- ##
2186 ## Report this to farin@struktur.de ##
2187 ## -------------------------------- ##"
2188 ) | sed "s/^/$as_me: WARNING: /" >&2
2189 ;;
2190 esac
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if eval \${$3+:} false; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 eval "$3=\$ac_header_compiler"
2197 fi
2198 eval ac_res=\$$3
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 fi
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203
2204 } # ac_fn_cxx_check_header_mongrel
2205
2206 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2207 # -------------------------------------------
2208 # Tests whether TYPE exists after having included INCLUDES, setting cache
2209 # variable VAR accordingly.
2210 ac_fn_c_check_type ()
2211 {
2212 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2214 $as_echo_n "checking for $2... " >&6; }
2215 if eval \${$3+:} false; then :
2216 $as_echo_n "(cached) " >&6
2217 else
2218 eval "$3=no"
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220 /* end confdefs.h. */
2221 $4
2222 int
2223 main ()
2224 {
2225 if (sizeof ($2))
2226 return 0;
2227 ;
2228 return 0;
2229 }
2230 _ACEOF
2231 if ac_fn_c_try_compile "$LINENO"; then :
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2234 $4
2235 int
2236 main ()
2237 {
2238 if (sizeof (($2)))
2239 return 0;
2240 ;
2241 return 0;
2242 }
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245
2246 else
2247 eval "$3=yes"
2248 fi
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2250 fi
2251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 fi
2253 eval ac_res=\$$3
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2255 $as_echo "$ac_res" >&6; }
2256 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2257
2258 } # ac_fn_c_check_type
2259
2260 # ac_fn_c_find_intX_t LINENO BITS VAR
2261 # -----------------------------------
2262 # Finds a signed integer type with width BITS, setting cache variable VAR
2263 # accordingly.
2264 ac_fn_c_find_intX_t ()
2265 {
2266 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2268 $as_echo_n "checking for int$2_t... " >&6; }
2269 if eval \${$3+:} false; then :
2270 $as_echo_n "(cached) " >&6
2271 else
2272 eval "$3=no"
2273 # Order is important - never check a type that is potentially smaller
2274 # than half of the expected target width.
2275 for ac_type in int$2_t 'int' 'long int' \
2276 'long long int' 'short int' 'signed char'; do
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2279 $ac_includes_default
2280 enum { N = $2 / 2 - 1 };
2281 int
2282 main ()
2283 {
2284 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2285 test_array [0] = 0;
2286 return test_array [0];
2287
2288 ;
2289 return 0;
2290 }
2291 _ACEOF
2292 if ac_fn_c_try_compile "$LINENO"; then :
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2295 $ac_includes_default
2296 enum { N = $2 / 2 - 1 };
2297 int
2298 main ()
2299 {
2300 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2301 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2302 test_array [0] = 0;
2303 return test_array [0];
2304
2305 ;
2306 return 0;
2307 }
2308 _ACEOF
2309 if ac_fn_c_try_compile "$LINENO"; then :
2310
2311 else
2312 case $ac_type in #(
2313 int$2_t) :
2314 eval "$3=yes" ;; #(
2315 *) :
2316 eval "$3=\$ac_type" ;;
2317 esac
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 if eval test \"x\$"$3"\" = x"no"; then :
2323
2324 else
2325 break
2326 fi
2327 done
2328 fi
2329 eval ac_res=\$$3
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2331 $as_echo "$ac_res" >&6; }
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333
2334 } # ac_fn_c_find_intX_t
2335
2336 # ac_fn_c_find_uintX_t LINENO BITS VAR
2337 # ------------------------------------
2338 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2339 # accordingly.
2340 ac_fn_c_find_uintX_t ()
2341 {
2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2344 $as_echo_n "checking for uint$2_t... " >&6; }
2345 if eval \${$3+:} false; then :
2346 $as_echo_n "(cached) " >&6
2347 else
2348 eval "$3=no"
2349 # Order is important - never check a type that is potentially smaller
2350 # than half of the expected target width.
2351 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2352 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355 $ac_includes_default
2356 int
2357 main ()
2358 {
2359 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2360 test_array [0] = 0;
2361 return test_array [0];
2362
2363 ;
2364 return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368 case $ac_type in #(
2369 uint$2_t) :
2370 eval "$3=yes" ;; #(
2371 *) :
2372 eval "$3=\$ac_type" ;;
2373 esac
2374 fi
2375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2376 if eval test \"x\$"$3"\" = x"no"; then :
2377
2378 else
2379 break
2380 fi
2381 done
2382 fi
2383 eval ac_res=\$$3
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2387
2388 } # ac_fn_c_find_uintX_t
2389 cat >config.log <<_ACEOF
2390 This file contains any messages produced by compilers while
2391 running configure, to aid debugging if configure makes a mistake.
2392
2393 It was created by libde265 $as_me 1.0.8, which was
2394 generated by GNU Autoconf 2.69. Invocation command line was
2395
2396 $ $0 $@
2397
2398 _ACEOF
2399 exec 5>>config.log
2400 {
2401 cat <<_ASUNAME
2402 ## --------- ##
2403 ## Platform. ##
2404 ## --------- ##
2405
2406 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2407 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2408 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2409 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2410 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2411
2412 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2413 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2414
2415 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2416 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2417 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2418 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2419 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2420 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2421 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2422
2423 _ASUNAME
2424
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2426 for as_dir in $PATH
2427 do
2428 IFS=$as_save_IFS
2429 test -z "$as_dir" && as_dir=.
2430 $as_echo "PATH: $as_dir"
2431 done
2432 IFS=$as_save_IFS
2433
2434 } >&5
2435
2436 cat >&5 <<_ACEOF
2437
2438
2439 ## ----------- ##
2440 ## Core tests. ##
2441 ## ----------- ##
2442
2443 _ACEOF
2444
2445
2446 # Keep a trace of the command line.
2447 # Strip out --no-create and --no-recursion so they do not pile up.
2448 # Strip out --silent because we don't want to record it for future runs.
2449 # Also quote any args containing shell meta-characters.
2450 # Make two passes to allow for proper duplicate-argument suppression.
2451 ac_configure_args=
2452 ac_configure_args0=
2453 ac_configure_args1=
2454 ac_must_keep_next=false
2455 for ac_pass in 1 2
2456 do
2457 for ac_arg
2458 do
2459 case $ac_arg in
2460 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2461 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2462 | -silent | --silent | --silen | --sile | --sil)
2463 continue ;;
2464 *\'*)
2465 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2466 esac
2467 case $ac_pass in
2468 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2469 2)
2470 as_fn_append ac_configure_args1 " '$ac_arg'"
2471 if test $ac_must_keep_next = true; then
2472 ac_must_keep_next=false # Got value, back to normal.
2473 else
2474 case $ac_arg in
2475 *=* | --config-cache | -C | -disable-* | --disable-* \
2476 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2477 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2478 | -with-* | --with-* | -without-* | --without-* | --x)
2479 case "$ac_configure_args0 " in
2480 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2481 esac
2482 ;;
2483 -* ) ac_must_keep_next=true ;;
2484 esac
2485 fi
2486 as_fn_append ac_configure_args " '$ac_arg'"
2487 ;;
2488 esac
2489 done
2490 done
2491 { ac_configure_args0=; unset ac_configure_args0;}
2492 { ac_configure_args1=; unset ac_configure_args1;}
2493
2494 # When interrupted or exit'd, cleanup temporary files, and complete
2495 # config.log. We remove comments because anyway the quotes in there
2496 # would cause problems or look ugly.
2497 # WARNING: Use '\'' to represent an apostrophe within the trap.
2498 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2499 trap 'exit_status=$?
2500 # Save into config.log some information that might help in debugging.
2501 {
2502 echo
2503
2504 $as_echo "## ---------------- ##
2505 ## Cache variables. ##
2506 ## ---------------- ##"
2507 echo
2508 # The following way of writing the cache mishandles newlines in values,
2509 (
2510 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2511 eval ac_val=\$$ac_var
2512 case $ac_val in #(
2513 *${as_nl}*)
2514 case $ac_var in #(
2515 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2516 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2517 esac
2518 case $ac_var in #(
2519 _ | IFS | as_nl) ;; #(
2520 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2521 *) { eval $ac_var=; unset $ac_var;} ;;
2522 esac ;;
2523 esac
2524 done
2525 (set) 2>&1 |
2526 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2527 *${as_nl}ac_space=\ *)
2528 sed -n \
2529 "s/'\''/'\''\\\\'\'''\''/g;
2530 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2531 ;; #(
2532 *)
2533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2534 ;;
2535 esac |
2536 sort
2537 )
2538 echo
2539
2540 $as_echo "## ----------------- ##
2541 ## Output variables. ##
2542 ## ----------------- ##"
2543 echo
2544 for ac_var in $ac_subst_vars
2545 do
2546 eval ac_val=\$$ac_var
2547 case $ac_val in
2548 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2549 esac
2550 $as_echo "$ac_var='\''$ac_val'\''"
2551 done | sort
2552 echo
2553
2554 if test -n "$ac_subst_files"; then
2555 $as_echo "## ------------------- ##
2556 ## File substitutions. ##
2557 ## ------------------- ##"
2558 echo
2559 for ac_var in $ac_subst_files
2560 do
2561 eval ac_val=\$$ac_var
2562 case $ac_val in
2563 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2564 esac
2565 $as_echo "$ac_var='\''$ac_val'\''"
2566 done | sort
2567 echo
2568 fi
2569
2570 if test -s confdefs.h; then
2571 $as_echo "## ----------- ##
2572 ## confdefs.h. ##
2573 ## ----------- ##"
2574 echo
2575 cat confdefs.h
2576 echo
2577 fi
2578 test "$ac_signal" != 0 &&
2579 $as_echo "$as_me: caught signal $ac_signal"
2580 $as_echo "$as_me: exit $exit_status"
2581 } >&5
2582 rm -f core *.core core.conftest.* &&
2583 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2584 exit $exit_status
2585 ' 0
2586 for ac_signal in 1 2 13 15; do
2587 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2588 done
2589 ac_signal=0
2590
2591 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2592 rm -f -r conftest* confdefs.h
2593
2594 $as_echo "/* confdefs.h */" > confdefs.h
2595
2596 # Predefined preprocessor variables.
2597
2598 cat >>confdefs.h <<_ACEOF
2599 #define PACKAGE_NAME "$PACKAGE_NAME"
2600 _ACEOF
2601
2602 cat >>confdefs.h <<_ACEOF
2603 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2604 _ACEOF
2605
2606 cat >>confdefs.h <<_ACEOF
2607 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2608 _ACEOF
2609
2610 cat >>confdefs.h <<_ACEOF
2611 #define PACKAGE_STRING "$PACKAGE_STRING"
2612 _ACEOF
2613
2614 cat >>confdefs.h <<_ACEOF
2615 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2616 _ACEOF
2617
2618 cat >>confdefs.h <<_ACEOF
2619 #define PACKAGE_URL "$PACKAGE_URL"
2620 _ACEOF
2621
2622
2623 # Let the site file select an alternate cache file if it wants to.
2624 # Prefer an explicitly selected file to automatically selected ones.
2625 ac_site_file1=NONE
2626 ac_site_file2=NONE
2627 if test -n "$CONFIG_SITE"; then
2628 # We do not want a PATH search for config.site.
2629 case $CONFIG_SITE in #((
2630 -*) ac_site_file1=./$CONFIG_SITE;;
2631 */*) ac_site_file1=$CONFIG_SITE;;
2632 *) ac_site_file1=./$CONFIG_SITE;;
2633 esac
2634 elif test "x$prefix" != xNONE; then
2635 ac_site_file1=$prefix/share/config.site
2636 ac_site_file2=$prefix/etc/config.site
2637 else
2638 ac_site_file1=$ac_default_prefix/share/config.site
2639 ac_site_file2=$ac_default_prefix/etc/config.site
2640 fi
2641 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2642 do
2643 test "x$ac_site_file" = xNONE && continue
2644 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2646 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2647 sed 's/^/| /' "$ac_site_file" >&5
2648 . "$ac_site_file" \
2649 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2651 as_fn_error $? "failed to load site script $ac_site_file
2652 See \`config.log' for more details" "$LINENO" 5; }
2653 fi
2654 done
2655
2656 if test -r "$cache_file"; then
2657 # Some versions of bash will fail to source /dev/null (special files
2658 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2659 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2661 $as_echo "$as_me: loading cache $cache_file" >&6;}
2662 case $cache_file in
2663 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2664 *) . "./$cache_file";;
2665 esac
2666 fi
2667 else
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2669 $as_echo "$as_me: creating cache $cache_file" >&6;}
2670 >$cache_file
2671 fi
2672
2673 as_fn_append ac_header_list " sys/time.h"
2674 as_fn_append ac_header_list " unistd.h"
2675 as_fn_append ac_func_list " alarm"
2676 # Check that the precious variables saved in the cache have kept the same
2677 # value.
2678 ac_cache_corrupted=false
2679 for ac_var in $ac_precious_vars; do
2680 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2681 eval ac_new_set=\$ac_env_${ac_var}_set
2682 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2683 eval ac_new_val=\$ac_env_${ac_var}_value
2684 case $ac_old_set,$ac_new_set in
2685 set,)
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2687 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2688 ac_cache_corrupted=: ;;
2689 ,set)
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2691 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2692 ac_cache_corrupted=: ;;
2693 ,);;
2694 *)
2695 if test "x$ac_old_val" != "x$ac_new_val"; then
2696 # differences in whitespace do not lead to failure.
2697 ac_old_val_w=`echo x $ac_old_val`
2698 ac_new_val_w=`echo x $ac_new_val`
2699 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2701 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2702 ac_cache_corrupted=:
2703 else
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2705 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2706 eval $ac_var=\$ac_old_val
2707 fi
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2709 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2711 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2712 fi;;
2713 esac
2714 # Pass precious variables to config.status.
2715 if test "$ac_new_set" = set; then
2716 case $ac_new_val in
2717 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2718 *) ac_arg=$ac_var=$ac_new_val ;;
2719 esac
2720 case " $ac_configure_args " in
2721 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2722 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2723 esac
2724 fi
2725 done
2726 if $ac_cache_corrupted; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2730 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2731 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2732 fi
2733 ## -------------------- ##
2734 ## Main body of script. ##
2735 ## -------------------- ##
2736
2737 ac_ext=c
2738 ac_cpp='$CPP $CPPFLAGS'
2739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2742
2743
2744
2745 ac_config_headers="$ac_config_headers config.h"
2746
2747
2748 NUMERIC_VERSION=0x01000800 # Numeric representation of the version (A.B.C[.D] = 0xAABBCCDD)
2749
2750
2751 # From https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html:
2752 # If the library source code has changed at all since the last update, then increment revision (‘c:r:a’ becomes ‘c:r+1:a’).
2753 # If any interfaces have been added, removed, or changed since the last update, increment current, and set revision to 0.
2754 # If any interfaces have been added since the last public release, then increment age.
2755 # If any interfaces have been removed or changed since the last public release, then set age to 0.
2756
2757 LIBDE265_CURRENT=1
2758 LIBDE265_REVISION=1
2759 LIBDE265_AGE=1
2760
2761 # ---------------------------------------------------------------------------
2762
2763 ac_aux_dir=
2764 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2765 if test -f "$ac_dir/install-sh"; then
2766 ac_aux_dir=$ac_dir
2767 ac_install_sh="$ac_aux_dir/install-sh -c"
2768 break
2769 elif test -f "$ac_dir/install.sh"; then
2770 ac_aux_dir=$ac_dir
2771 ac_install_sh="$ac_aux_dir/install.sh -c"
2772 break
2773 elif test -f "$ac_dir/shtool"; then
2774 ac_aux_dir=$ac_dir
2775 ac_install_sh="$ac_aux_dir/shtool install -c"
2776 break
2777 fi
2778 done
2779 if test -z "$ac_aux_dir"; then
2780 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2781 fi
2782
2783 # These three variables are undocumented and unsupported,
2784 # and are intended to be withdrawn in a future Autoconf release.
2785 # They can cause serious problems if a builder's source tree is in a directory
2786 # whose full name contains unusual characters.
2787 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2788 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2789 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2790
2791
2792 # Make sure we can run config.sub.
2793 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2794 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2795
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2797 $as_echo_n "checking build system type... " >&6; }
2798 if ${ac_cv_build+:} false; then :
2799 $as_echo_n "(cached) " >&6
2800 else
2801 ac_build_alias=$build_alias
2802 test "x$ac_build_alias" = x &&
2803 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2804 test "x$ac_build_alias" = x &&
2805 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2806 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2807 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2808
2809 fi
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2811 $as_echo "$ac_cv_build" >&6; }
2812 case $ac_cv_build in
2813 *-*-*) ;;
2814 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2815 esac
2816 build=$ac_cv_build
2817 ac_save_IFS=$IFS; IFS='-'
2818 set x $ac_cv_build
2819 shift
2820 build_cpu=$1
2821 build_vendor=$2
2822 shift; shift
2823 # Remember, the first character of IFS is used to create $*,
2824 # except with old shells:
2825 build_os=$*
2826 IFS=$ac_save_IFS
2827 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2828
2829
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2831 $as_echo_n "checking host system type... " >&6; }
2832 if ${ac_cv_host+:} false; then :
2833 $as_echo_n "(cached) " >&6
2834 else
2835 if test "x$host_alias" = x; then
2836 ac_cv_host=$ac_cv_build
2837 else
2838 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2840 fi
2841
2842 fi
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2844 $as_echo "$ac_cv_host" >&6; }
2845 case $ac_cv_host in
2846 *-*-*) ;;
2847 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2848 esac
2849 host=$ac_cv_host
2850 ac_save_IFS=$IFS; IFS='-'
2851 set x $ac_cv_host
2852 shift
2853 host_cpu=$1
2854 host_vendor=$2
2855 shift; shift
2856 # Remember, the first character of IFS is used to create $*,
2857 # except with old shells:
2858 host_os=$*
2859 IFS=$ac_save_IFS
2860 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2861
2862
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2864 $as_echo_n "checking target system type... " >&6; }
2865 if ${ac_cv_target+:} false; then :
2866 $as_echo_n "(cached) " >&6
2867 else
2868 if test "x$target_alias" = x; then
2869 ac_cv_target=$ac_cv_host
2870 else
2871 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2872 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2873 fi
2874
2875 fi
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2877 $as_echo "$ac_cv_target" >&6; }
2878 case $ac_cv_target in
2879 *-*-*) ;;
2880 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2881 esac
2882 target=$ac_cv_target
2883 ac_save_IFS=$IFS; IFS='-'
2884 set x $ac_cv_target
2885 shift
2886 target_cpu=$1
2887 target_vendor=$2
2888 shift; shift
2889 # Remember, the first character of IFS is used to create $*,
2890 # except with old shells:
2891 target_os=$*
2892 IFS=$ac_save_IFS
2893 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2894
2895
2896 # The aliases save the names the user supplied, while $host etc.
2897 # will get canonicalized.
2898 test -n "$target_alias" &&
2899 test "$program_prefix$program_suffix$program_transform_name" = \
2900 NONENONEs,x,x, &&
2901 program_prefix=${target_alias}-
2902
2903
2904
2905
2906
2907
2908 case `pwd` in
2909 *\ * | *\ *)
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2911 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2912 esac
2913
2914
2915
2916 macro_version='2.4.6'
2917 macro_revision='2.4.6'
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931 ltmain=$ac_aux_dir/ltmain.sh
2932
2933 # Backslashify metacharacters that are still active within
2934 # double-quoted strings.
2935 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2936
2937 # Same as above, but do not quote variable references.
2938 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2939
2940 # Sed substitution to delay expansion of an escaped shell variable in a
2941 # double_quote_subst'ed string.
2942 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2943
2944 # Sed substitution to delay expansion of an escaped single quote.
2945 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2946
2947 # Sed substitution to avoid accidental globbing in evaled expressions
2948 no_glob_subst='s/\*/\\\*/g'
2949
2950 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2951 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2952 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2953
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2955 $as_echo_n "checking how to print strings... " >&6; }
2956 # Test print first, because it will be a builtin if present.
2957 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2958 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2959 ECHO='print -r --'
2960 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2961 ECHO='printf %s\n'
2962 else
2963 # Use this function as a fallback that always works.
2964 func_fallback_echo ()
2965 {
2966 eval 'cat <<_LTECHO_EOF
2967 $1
2968 _LTECHO_EOF'
2969 }
2970 ECHO='func_fallback_echo'
2971 fi
2972
2973 # func_echo_all arg...
2974 # Invoke $ECHO with all args, space-separated.
2975 func_echo_all ()
2976 {
2977 $ECHO ""
2978 }
2979
2980 case $ECHO in
2981 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2982 $as_echo "printf" >&6; } ;;
2983 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2984 $as_echo "print -r" >&6; } ;;
2985 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2986 $as_echo "cat" >&6; } ;;
2987 esac
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002 # Expand $ac_aux_dir to an absolute path.
3003 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3004
3005 ac_ext=c
3006 ac_cpp='$CPP $CPPFLAGS'
3007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3010 if test -n "$ac_tool_prefix"; then
3011 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3012 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_CC+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$CC"; then
3019 ac_cv_prog_CC="$CC" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 fi
3037 fi
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3041 $as_echo "$CC" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047
3048 fi
3049 if test -z "$ac_cv_prog_CC"; then
3050 ac_ct_CC=$CC
3051 # Extract the first word of "gcc", so it can be a program name with args.
3052 set dummy gcc; ac_word=$2
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3054 $as_echo_n "checking for $ac_word... " >&6; }
3055 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 if test -n "$ac_ct_CC"; then
3059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3060 else
3061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062 for as_dir in $PATH
3063 do
3064 IFS=$as_save_IFS
3065 test -z "$as_dir" && as_dir=.
3066 for ac_exec_ext in '' $ac_executable_extensions; do
3067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068 ac_cv_prog_ac_ct_CC="gcc"
3069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 break 2
3071 fi
3072 done
3073 done
3074 IFS=$as_save_IFS
3075
3076 fi
3077 fi
3078 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3079 if test -n "$ac_ct_CC"; then
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3081 $as_echo "$ac_ct_CC" >&6; }
3082 else
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084 $as_echo "no" >&6; }
3085 fi
3086
3087 if test "x$ac_ct_CC" = x; then
3088 CC=""
3089 else
3090 case $cross_compiling:$ac_tool_warned in
3091 yes:)
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3093 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3094 ac_tool_warned=yes ;;
3095 esac
3096 CC=$ac_ct_CC
3097 fi
3098 else
3099 CC="$ac_cv_prog_CC"
3100 fi
3101
3102 if test -z "$CC"; then
3103 if test -n "$ac_tool_prefix"; then
3104 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3105 set dummy ${ac_tool_prefix}cc; ac_word=$2
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3107 $as_echo_n "checking for $ac_word... " >&6; }
3108 if ${ac_cv_prog_CC+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110 else
3111 if test -n "$CC"; then
3112 ac_cv_prog_CC="$CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121 ac_cv_prog_CC="${ac_tool_prefix}cc"
3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 CC=$ac_cv_prog_CC
3132 if test -n "$CC"; then
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3134 $as_echo "$CC" >&6; }
3135 else
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3137 $as_echo "no" >&6; }
3138 fi
3139
3140
3141 fi
3142 fi
3143 if test -z "$CC"; then
3144 # Extract the first word of "cc", so it can be a program name with args.
3145 set dummy cc; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_CC+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$CC"; then
3152 ac_cv_prog_CC="$CC" # Let the user override the test.
3153 else
3154 ac_prog_rejected=no
3155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156 for as_dir in $PATH
3157 do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
3160 for ac_exec_ext in '' $ac_executable_extensions; do
3161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3162 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3163 ac_prog_rejected=yes
3164 continue
3165 fi
3166 ac_cv_prog_CC="cc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3168 break 2
3169 fi
3170 done
3171 done
3172 IFS=$as_save_IFS
3173
3174 if test $ac_prog_rejected = yes; then
3175 # We found a bogon in the path, so make sure we never use it.
3176 set dummy $ac_cv_prog_CC
3177 shift
3178 if test $# != 0; then
3179 # We chose a different compiler from the bogus one.
3180 # However, it has the same basename, so the bogon will be chosen
3181 # first if we set CC to just the basename; use the full file name.
3182 shift
3183 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3184 fi
3185 fi
3186 fi
3187 fi
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 fi
3199 if test -z "$CC"; then
3200 if test -n "$ac_tool_prefix"; then
3201 for ac_prog in cl.exe
3202 do
3203 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3204 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3206 $as_echo_n "checking for $ac_word... " >&6; }
3207 if ${ac_cv_prog_CC+:} false; then :
3208 $as_echo_n "(cached) " >&6
3209 else
3210 if test -n "$CC"; then
3211 ac_cv_prog_CC="$CC" # Let the user override the test.
3212 else
3213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214 for as_dir in $PATH
3215 do
3216 IFS=$as_save_IFS
3217 test -z "$as_dir" && as_dir=.
3218 for ac_exec_ext in '' $ac_executable_extensions; do
3219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3222 break 2
3223 fi
3224 done
3225 done
3226 IFS=$as_save_IFS
3227
3228 fi
3229 fi
3230 CC=$ac_cv_prog_CC
3231 if test -n "$CC"; then
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3233 $as_echo "$CC" >&6; }
3234 else
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3236 $as_echo "no" >&6; }
3237 fi
3238
3239
3240 test -n "$CC" && break
3241 done
3242 fi
3243 if test -z "$CC"; then
3244 ac_ct_CC=$CC
3245 for ac_prog in cl.exe
3246 do
3247 # Extract the first word of "$ac_prog", so it can be a program name with args.
3248 set dummy $ac_prog; ac_word=$2
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3250 $as_echo_n "checking for $ac_word... " >&6; }
3251 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3252 $as_echo_n "(cached) " >&6
3253 else
3254 if test -n "$ac_ct_CC"; then
3255 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3256 else
3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3258 for as_dir in $PATH
3259 do
3260 IFS=$as_save_IFS
3261 test -z "$as_dir" && as_dir=.
3262 for ac_exec_ext in '' $ac_executable_extensions; do
3263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3264 ac_cv_prog_ac_ct_CC="$ac_prog"
3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 break 2
3267 fi
3268 done
3269 done
3270 IFS=$as_save_IFS
3271
3272 fi
3273 fi
3274 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3275 if test -n "$ac_ct_CC"; then
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3277 $as_echo "$ac_ct_CC" >&6; }
3278 else
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3280 $as_echo "no" >&6; }
3281 fi
3282
3283
3284 test -n "$ac_ct_CC" && break
3285 done
3286
3287 if test "x$ac_ct_CC" = x; then
3288 CC=""
3289 else
3290 case $cross_compiling:$ac_tool_warned in
3291 yes:)
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3294 ac_tool_warned=yes ;;
3295 esac
3296 CC=$ac_ct_CC
3297 fi
3298 fi
3299
3300 fi
3301
3302
3303 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error $? "no acceptable C compiler found in \$PATH
3306 See \`config.log' for more details" "$LINENO" 5; }
3307
3308 # Provide some information about the compiler.
3309 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3310 set X $ac_compile
3311 ac_compiler=$2
3312 for ac_option in --version -v -V -qversion; do
3313 { { ac_try="$ac_compiler $ac_option >&5"
3314 case "(($ac_try" in
3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3316 *) ac_try_echo=$ac_try;;
3317 esac
3318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3319 $as_echo "$ac_try_echo"; } >&5
3320 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3321 ac_status=$?
3322 if test -s conftest.err; then
3323 sed '10a\
3324 ... rest of stderr output deleted ...
3325 10q' conftest.err >conftest.er1
3326 cat conftest.er1 >&5
3327 fi
3328 rm -f conftest.er1 conftest.err
3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3331 done
3332
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3335
3336 int
3337 main ()
3338 {
3339
3340 ;
3341 return 0;
3342 }
3343 _ACEOF
3344 ac_clean_files_save=$ac_clean_files
3345 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3346 # Try to create an executable without -o first, disregard a.out.
3347 # It will help us diagnose broken compilers, and finding out an intuition
3348 # of exeext.
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3350 $as_echo_n "checking whether the C compiler works... " >&6; }
3351 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3352
3353 # The possible output files:
3354 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3355
3356 ac_rmfiles=
3357 for ac_file in $ac_files
3358 do
3359 case $ac_file in
3360 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3361 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3362 esac
3363 done
3364 rm -f $ac_rmfiles
3365
3366 if { { ac_try="$ac_link_default"
3367 case "(($ac_try" in
3368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3369 *) ac_try_echo=$ac_try;;
3370 esac
3371 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3372 $as_echo "$ac_try_echo"; } >&5
3373 (eval "$ac_link_default") 2>&5
3374 ac_status=$?
3375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3376 test $ac_status = 0; }; then :
3377 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3378 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3379 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3380 # so that the user can short-circuit this test for compilers unknown to
3381 # Autoconf.
3382 for ac_file in $ac_files ''
3383 do
3384 test -f "$ac_file" || continue
3385 case $ac_file in
3386 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3387 ;;
3388 [ab].out )
3389 # We found the default executable, but exeext='' is most
3390 # certainly right.
3391 break;;
3392 *.* )
3393 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3394 then :; else
3395 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3396 fi
3397 # We set ac_cv_exeext here because the later test for it is not
3398 # safe: cross compilers may not add the suffix if given an `-o'
3399 # argument, so we may need to know it at that point already.
3400 # Even if this section looks crufty: it has the advantage of
3401 # actually working.
3402 break;;
3403 * )
3404 break;;
3405 esac
3406 done
3407 test "$ac_cv_exeext" = no && ac_cv_exeext=
3408
3409 else
3410 ac_file=''
3411 fi
3412 if test -z "$ac_file"; then :
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3414 $as_echo "no" >&6; }
3415 $as_echo "$as_me: failed program was:" >&5
3416 sed 's/^/| /' conftest.$ac_ext >&5
3417
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3420 as_fn_error 77 "C compiler cannot create executables
3421 See \`config.log' for more details" "$LINENO" 5; }
3422 else
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3424 $as_echo "yes" >&6; }
3425 fi
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3427 $as_echo_n "checking for C compiler default output file name... " >&6; }
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3429 $as_echo "$ac_file" >&6; }
3430 ac_exeext=$ac_cv_exeext
3431
3432 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3433 ac_clean_files=$ac_clean_files_save
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3435 $as_echo_n "checking for suffix of executables... " >&6; }
3436 if { { ac_try="$ac_link"
3437 case "(($ac_try" in
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3440 esac
3441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3442 $as_echo "$ac_try_echo"; } >&5
3443 (eval "$ac_link") 2>&5
3444 ac_status=$?
3445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3446 test $ac_status = 0; }; then :
3447 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3448 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3449 # work properly (i.e., refer to `conftest.exe'), while it won't with
3450 # `rm'.
3451 for ac_file in conftest.exe conftest conftest.*; do
3452 test -f "$ac_file" || continue
3453 case $ac_file in
3454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3455 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3456 break;;
3457 * ) break;;
3458 esac
3459 done
3460 else
3461 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3464 See \`config.log' for more details" "$LINENO" 5; }
3465 fi
3466 rm -f conftest conftest$ac_cv_exeext
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3468 $as_echo "$ac_cv_exeext" >&6; }
3469
3470 rm -f conftest.$ac_ext
3471 EXEEXT=$ac_cv_exeext
3472 ac_exeext=$EXEEXT
3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475 #include <stdio.h>
3476 int
3477 main ()
3478 {
3479 FILE *f = fopen ("conftest.out", "w");
3480 return ferror (f) || fclose (f) != 0;
3481
3482 ;
3483 return 0;
3484 }
3485 _ACEOF
3486 ac_clean_files="$ac_clean_files conftest.out"
3487 # Check that the compiler produces executables we can run. If not, either
3488 # the compiler is broken, or we cross compile.
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3490 $as_echo_n "checking whether we are cross compiling... " >&6; }
3491 if test "$cross_compiling" != yes; then
3492 { { ac_try="$ac_link"
3493 case "(($ac_try" in
3494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3495 *) ac_try_echo=$ac_try;;
3496 esac
3497 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3498 $as_echo "$ac_try_echo"; } >&5
3499 (eval "$ac_link") 2>&5
3500 ac_status=$?
3501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3502 test $ac_status = 0; }
3503 if { ac_try='./conftest$ac_cv_exeext'
3504 { { case "(($ac_try" in
3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3507 esac
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_try") 2>&5
3511 ac_status=$?
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; }; then
3514 cross_compiling=no
3515 else
3516 if test "$cross_compiling" = maybe; then
3517 cross_compiling=yes
3518 else
3519 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3520 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3521 as_fn_error $? "cannot run C compiled programs.
3522 If you meant to cross compile, use \`--host'.
3523 See \`config.log' for more details" "$LINENO" 5; }
3524 fi
3525 fi
3526 fi
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3528 $as_echo "$cross_compiling" >&6; }
3529
3530 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3531 ac_clean_files=$ac_clean_files_save
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3533 $as_echo_n "checking for suffix of object files... " >&6; }
3534 if ${ac_cv_objext+:} false; then :
3535 $as_echo_n "(cached) " >&6
3536 else
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538 /* end confdefs.h. */
3539
3540 int
3541 main ()
3542 {
3543
3544 ;
3545 return 0;
3546 }
3547 _ACEOF
3548 rm -f conftest.o conftest.obj
3549 if { { ac_try="$ac_compile"
3550 case "(($ac_try" in
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3553 esac
3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3555 $as_echo "$ac_try_echo"; } >&5
3556 (eval "$ac_compile") 2>&5
3557 ac_status=$?
3558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3559 test $ac_status = 0; }; then :
3560 for ac_file in conftest.o conftest.obj conftest.*; do
3561 test -f "$ac_file" || continue;
3562 case $ac_file in
3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3564 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3565 break;;
3566 esac
3567 done
3568 else
3569 $as_echo "$as_me: failed program was:" >&5
3570 sed 's/^/| /' conftest.$ac_ext >&5
3571
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error $? "cannot compute suffix of object files: cannot compile
3575 See \`config.log' for more details" "$LINENO" 5; }
3576 fi
3577 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3578 fi
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3580 $as_echo "$ac_cv_objext" >&6; }
3581 OBJEXT=$ac_cv_objext
3582 ac_objext=$OBJEXT
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3584 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3585 if ${ac_cv_c_compiler_gnu+:} false; then :
3586 $as_echo_n "(cached) " >&6
3587 else
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590
3591 int
3592 main ()
3593 {
3594 #ifndef __GNUC__
3595 choke me
3596 #endif
3597
3598 ;
3599 return 0;
3600 }
3601 _ACEOF
3602 if ac_fn_c_try_compile "$LINENO"; then :
3603 ac_compiler_gnu=yes
3604 else
3605 ac_compiler_gnu=no
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3609
3610 fi
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3612 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3613 if test $ac_compiler_gnu = yes; then
3614 GCC=yes
3615 else
3616 GCC=
3617 fi
3618 ac_test_CFLAGS=${CFLAGS+set}
3619 ac_save_CFLAGS=$CFLAGS
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3621 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3622 if ${ac_cv_prog_cc_g+:} false; then :
3623 $as_echo_n "(cached) " >&6
3624 else
3625 ac_save_c_werror_flag=$ac_c_werror_flag
3626 ac_c_werror_flag=yes
3627 ac_cv_prog_cc_g=no
3628 CFLAGS="-g"
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3631
3632 int
3633 main ()
3634 {
3635
3636 ;
3637 return 0;
3638 }
3639 _ACEOF
3640 if ac_fn_c_try_compile "$LINENO"; then :
3641 ac_cv_prog_cc_g=yes
3642 else
3643 CFLAGS=""
3644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3645 /* end confdefs.h. */
3646
3647 int
3648 main ()
3649 {
3650
3651 ;
3652 return 0;
3653 }
3654 _ACEOF
3655 if ac_fn_c_try_compile "$LINENO"; then :
3656
3657 else
3658 ac_c_werror_flag=$ac_save_c_werror_flag
3659 CFLAGS="-g"
3660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3661 /* end confdefs.h. */
3662
3663 int
3664 main ()
3665 {
3666
3667 ;
3668 return 0;
3669 }
3670 _ACEOF
3671 if ac_fn_c_try_compile "$LINENO"; then :
3672 ac_cv_prog_cc_g=yes
3673 fi
3674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 fi
3676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 fi
3678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3679 ac_c_werror_flag=$ac_save_c_werror_flag
3680 fi
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3682 $as_echo "$ac_cv_prog_cc_g" >&6; }
3683 if test "$ac_test_CFLAGS" = set; then
3684 CFLAGS=$ac_save_CFLAGS
3685 elif test $ac_cv_prog_cc_g = yes; then
3686 if test "$GCC" = yes; then
3687 CFLAGS="-g -O2"
3688 else
3689 CFLAGS="-g"
3690 fi
3691 else
3692 if test "$GCC" = yes; then
3693 CFLAGS="-O2"
3694 else
3695 CFLAGS=
3696 fi
3697 fi
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3699 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3700 if ${ac_cv_prog_cc_c89+:} false; then :
3701 $as_echo_n "(cached) " >&6
3702 else
3703 ac_cv_prog_cc_c89=no
3704 ac_save_CC=$CC
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3707 #include <stdarg.h>
3708 #include <stdio.h>
3709 struct stat;
3710 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3711 struct buf { int x; };
3712 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3713 static char *e (p, i)
3714 char **p;
3715 int i;
3716 {
3717 return p[i];
3718 }
3719 static char *f (char * (*g) (char **, int), char **p, ...)
3720 {
3721 char *s;
3722 va_list v;
3723 va_start (v,p);
3724 s = g (p, va_arg (v,int));
3725 va_end (v);
3726 return s;
3727 }
3728
3729 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3730 function prototypes and stuff, but not '\xHH' hex character constants.
3731 These don't provoke an error unfortunately, instead are silently treated
3732 as 'x'. The following induces an error, until -std is added to get
3733 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3734 array size at least. It's necessary to write '\x00'==0 to get something
3735 that's true only with -std. */
3736 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3737
3738 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3739 inside strings and character constants. */
3740 #define FOO(x) 'x'
3741 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3742
3743 int test (int i, double x);
3744 struct s1 {int (*f) (int a);};
3745 struct s2 {int (*f) (double a);};
3746 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3747 int argc;
3748 char **argv;
3749 int
3750 main ()
3751 {
3752 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3753 ;
3754 return 0;
3755 }
3756 _ACEOF
3757 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3758 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3759 do
3760 CC="$ac_save_CC $ac_arg"
3761 if ac_fn_c_try_compile "$LINENO"; then :
3762 ac_cv_prog_cc_c89=$ac_arg
3763 fi
3764 rm -f core conftest.err conftest.$ac_objext
3765 test "x$ac_cv_prog_cc_c89" != "xno" && break
3766 done
3767 rm -f conftest.$ac_ext
3768 CC=$ac_save_CC
3769
3770 fi
3771 # AC_CACHE_VAL
3772 case "x$ac_cv_prog_cc_c89" in
3773 x)
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3775 $as_echo "none needed" >&6; } ;;
3776 xno)
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3778 $as_echo "unsupported" >&6; } ;;
3779 *)
3780 CC="$CC $ac_cv_prog_cc_c89"
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3782 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3783 esac
3784 if test "x$ac_cv_prog_cc_c89" != xno; then :
3785
3786 fi
3787
3788 ac_ext=c
3789 ac_cpp='$CPP $CPPFLAGS'
3790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793
3794 ac_ext=c
3795 ac_cpp='$CPP $CPPFLAGS'
3796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3800 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3801 if ${am_cv_prog_cc_c_o+:} false; then :
3802 $as_echo_n "(cached) " >&6
3803 else
3804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3805 /* end confdefs.h. */
3806
3807 int
3808 main ()
3809 {
3810
3811 ;
3812 return 0;
3813 }
3814 _ACEOF
3815 # Make sure it works both with $CC and with simple cc.
3816 # Following AC_PROG_CC_C_O, we do the test twice because some
3817 # compilers refuse to overwrite an existing .o file with -o,
3818 # though they will create one.
3819 am_cv_prog_cc_c_o=yes
3820 for am_i in 1 2; do
3821 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3822 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3823 ac_status=$?
3824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3825 (exit $ac_status); } \
3826 && test -f conftest2.$ac_objext; then
3827 : OK
3828 else
3829 am_cv_prog_cc_c_o=no
3830 break
3831 fi
3832 done
3833 rm -f core conftest*
3834 unset am_i
3835 fi
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3837 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3838 if test "$am_cv_prog_cc_c_o" != yes; then
3839 # Losing compiler, so override with the script.
3840 # FIXME: It is wrong to rewrite CC.
3841 # But if we don't then we get into trouble of one sort or another.
3842 # A longer-term fix would be to have automake use am__CC in this case,
3843 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3844 CC="$am_aux_dir/compile $CC"
3845 fi
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851
3852
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3854 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3855 if ${ac_cv_path_SED+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3859 for ac_i in 1 2 3 4 5 6 7; do
3860 ac_script="$ac_script$as_nl$ac_script"
3861 done
3862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3863 { ac_script=; unset ac_script;}
3864 if test -z "$SED"; then
3865 ac_path_SED_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH
3869 do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in sed gsed; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3875 as_fn_executable_p "$ac_path_SED" || continue
3876 # Check for GNU ac_path_SED and select it if it is found.
3877 # Check for GNU $ac_path_SED
3878 case `"$ac_path_SED" --version 2>&1` in
3879 *GNU*)
3880 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3881 *)
3882 ac_count=0
3883 $as_echo_n 0123456789 >"conftest.in"
3884 while :
3885 do
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 $as_echo '' >> "conftest.nl"
3890 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 as_fn_arith $ac_count + 1 && ac_count=$as_val
3893 if test $ac_count -gt ${ac_path_SED_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_SED="$ac_path_SED"
3896 ac_path_SED_max=$ac_count
3897 fi
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3900 done
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902 esac
3903
3904 $ac_path_SED_found && break 3
3905 done
3906 done
3907 done
3908 IFS=$as_save_IFS
3909 if test -z "$ac_cv_path_SED"; then
3910 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3911 fi
3912 else
3913 ac_cv_path_SED=$SED
3914 fi
3915
3916 fi
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3918 $as_echo "$ac_cv_path_SED" >&6; }
3919 SED="$ac_cv_path_SED"
3920 rm -f conftest.sed
3921
3922 test -z "$SED" && SED=sed
3923 Xsed="$SED -e 1s/^X//"
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3936 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3937 if ${ac_cv_path_GREP+:} false; then :
3938 $as_echo_n "(cached) " >&6
3939 else
3940 if test -z "$GREP"; then
3941 ac_path_GREP_found=false
3942 # Loop through the user's path and test for each of PROGNAME-LIST
3943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3945 do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
3948 for ac_prog in grep ggrep; do
3949 for ac_exec_ext in '' $ac_executable_extensions; do
3950 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3951 as_fn_executable_p "$ac_path_GREP" || continue
3952 # Check for GNU ac_path_GREP and select it if it is found.
3953 # Check for GNU $ac_path_GREP
3954 case `"$ac_path_GREP" --version 2>&1` in
3955 *GNU*)
3956 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3957 *)
3958 ac_count=0
3959 $as_echo_n 0123456789 >"conftest.in"
3960 while :
3961 do
3962 cat "conftest.in" "conftest.in" >"conftest.tmp"
3963 mv "conftest.tmp" "conftest.in"
3964 cp "conftest.in" "conftest.nl"
3965 $as_echo 'GREP' >> "conftest.nl"
3966 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3968 as_fn_arith $ac_count + 1 && ac_count=$as_val
3969 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3970 # Best one so far, save it but keep looking for a better one
3971 ac_cv_path_GREP="$ac_path_GREP"
3972 ac_path_GREP_max=$ac_count
3973 fi
3974 # 10*(2^10) chars as input seems more than enough
3975 test $ac_count -gt 10 && break
3976 done
3977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3978 esac
3979
3980 $ac_path_GREP_found && break 3
3981 done
3982 done
3983 done
3984 IFS=$as_save_IFS
3985 if test -z "$ac_cv_path_GREP"; then
3986 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3987 fi
3988 else
3989 ac_cv_path_GREP=$GREP
3990 fi
3991
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3994 $as_echo "$ac_cv_path_GREP" >&6; }
3995 GREP="$ac_cv_path_GREP"
3996
3997
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3999 $as_echo_n "checking for egrep... " >&6; }
4000 if ${ac_cv_path_EGREP+:} false; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4004 then ac_cv_path_EGREP="$GREP -E"
4005 else
4006 if test -z "$EGREP"; then
4007 ac_path_EGREP_found=false
4008 # Loop through the user's path and test for each of PROGNAME-LIST
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4011 do
4012 IFS=$as_save_IFS
4013 test -z "$as_dir" && as_dir=.
4014 for ac_prog in egrep; do
4015 for ac_exec_ext in '' $ac_executable_extensions; do
4016 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4017 as_fn_executable_p "$ac_path_EGREP" || continue
4018 # Check for GNU ac_path_EGREP and select it if it is found.
4019 # Check for GNU $ac_path_EGREP
4020 case `"$ac_path_EGREP" --version 2>&1` in
4021 *GNU*)
4022 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4023 *)
4024 ac_count=0
4025 $as_echo_n 0123456789 >"conftest.in"
4026 while :
4027 do
4028 cat "conftest.in" "conftest.in" >"conftest.tmp"
4029 mv "conftest.tmp" "conftest.in"
4030 cp "conftest.in" "conftest.nl"
4031 $as_echo 'EGREP' >> "conftest.nl"
4032 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4033 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4034 as_fn_arith $ac_count + 1 && ac_count=$as_val
4035 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4036 # Best one so far, save it but keep looking for a better one
4037 ac_cv_path_EGREP="$ac_path_EGREP"
4038 ac_path_EGREP_max=$ac_count
4039 fi
4040 # 10*(2^10) chars as input seems more than enough
4041 test $ac_count -gt 10 && break
4042 done
4043 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4044 esac
4045
4046 $ac_path_EGREP_found && break 3
4047 done
4048 done
4049 done
4050 IFS=$as_save_IFS
4051 if test -z "$ac_cv_path_EGREP"; then
4052 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4053 fi
4054 else
4055 ac_cv_path_EGREP=$EGREP
4056 fi
4057
4058 fi
4059 fi
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4061 $as_echo "$ac_cv_path_EGREP" >&6; }
4062 EGREP="$ac_cv_path_EGREP"
4063
4064
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4066 $as_echo_n "checking for fgrep... " >&6; }
4067 if ${ac_cv_path_FGREP+:} false; then :
4068 $as_echo_n "(cached) " >&6
4069 else
4070 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4071 then ac_cv_path_FGREP="$GREP -F"
4072 else
4073 if test -z "$FGREP"; then
4074 ac_path_FGREP_found=false
4075 # Loop through the user's path and test for each of PROGNAME-LIST
4076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4078 do
4079 IFS=$as_save_IFS
4080 test -z "$as_dir" && as_dir=.
4081 for ac_prog in fgrep; do
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4084 as_fn_executable_p "$ac_path_FGREP" || continue
4085 # Check for GNU ac_path_FGREP and select it if it is found.
4086 # Check for GNU $ac_path_FGREP
4087 case `"$ac_path_FGREP" --version 2>&1` in
4088 *GNU*)
4089 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4090 *)
4091 ac_count=0
4092 $as_echo_n 0123456789 >"conftest.in"
4093 while :
4094 do
4095 cat "conftest.in" "conftest.in" >"conftest.tmp"
4096 mv "conftest.tmp" "conftest.in"
4097 cp "conftest.in" "conftest.nl"
4098 $as_echo 'FGREP' >> "conftest.nl"
4099 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101 as_fn_arith $ac_count + 1 && ac_count=$as_val
4102 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4103 # Best one so far, save it but keep looking for a better one
4104 ac_cv_path_FGREP="$ac_path_FGREP"
4105 ac_path_FGREP_max=$ac_count
4106 fi
4107 # 10*(2^10) chars as input seems more than enough
4108 test $ac_count -gt 10 && break
4109 done
4110 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4111 esac
4112
4113 $ac_path_FGREP_found && break 3
4114 done
4115 done
4116 done
4117 IFS=$as_save_IFS
4118 if test -z "$ac_cv_path_FGREP"; then
4119 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4120 fi
4121 else
4122 ac_cv_path_FGREP=$FGREP
4123 fi
4124
4125 fi
4126 fi
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4128 $as_echo "$ac_cv_path_FGREP" >&6; }
4129 FGREP="$ac_cv_path_FGREP"
4130
4131
4132 test -z "$GREP" && GREP=grep
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152 # Check whether --with-gnu-ld was given.
4153 if test "${with_gnu_ld+set}" = set; then :
4154 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4155 else
4156 with_gnu_ld=no
4157 fi
4158
4159 ac_prog=ld
4160 if test yes = "$GCC"; then
4161 # Check if gcc -print-prog-name=ld gives a path.
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4163 $as_echo_n "checking for ld used by $CC... " >&6; }
4164 case $host in
4165 *-*-mingw*)
4166 # gcc leaves a trailing carriage return, which upsets mingw
4167 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4168 *)
4169 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4170 esac
4171 case $ac_prog in
4172 # Accept absolute paths.
4173 [\\/]* | ?:[\\/]*)
4174 re_direlt='/[^/][^/]*/\.\./'
4175 # Canonicalize the pathname of ld
4176 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4177 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4178 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4179 done
4180 test -z "$LD" && LD=$ac_prog
4181 ;;
4182 "")
4183 # If it fails, then pretend we aren't using GCC.
4184 ac_prog=ld
4185 ;;
4186 *)
4187 # If it is relative, then search for the first ld in PATH.
4188 with_gnu_ld=unknown
4189 ;;
4190 esac
4191 elif test yes = "$with_gnu_ld"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4193 $as_echo_n "checking for GNU ld... " >&6; }
4194 else
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4196 $as_echo_n "checking for non-GNU ld... " >&6; }
4197 fi
4198 if ${lt_cv_path_LD+:} false; then :
4199 $as_echo_n "(cached) " >&6
4200 else
4201 if test -z "$LD"; then
4202 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4203 for ac_dir in $PATH; do
4204 IFS=$lt_save_ifs
4205 test -z "$ac_dir" && ac_dir=.
4206 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4207 lt_cv_path_LD=$ac_dir/$ac_prog
4208 # Check to see if the program is GNU ld. I'd rather use --version,
4209 # but apparently some variants of GNU ld only accept -v.
4210 # Break only if it was the GNU/non-GNU ld that we prefer.
4211 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4212 *GNU* | *'with BFD'*)
4213 test no != "$with_gnu_ld" && break
4214 ;;
4215 *)
4216 test yes != "$with_gnu_ld" && break
4217 ;;
4218 esac
4219 fi
4220 done
4221 IFS=$lt_save_ifs
4222 else
4223 lt_cv_path_LD=$LD # Let the user override the test with a path.
4224 fi
4225 fi
4226
4227 LD=$lt_cv_path_LD
4228 if test -n "$LD"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4230 $as_echo "$LD" >&6; }
4231 else
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4234 fi
4235 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4237 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4238 if ${lt_cv_prog_gnu_ld+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4242 case `$LD -v 2>&1 </dev/null` in
4243 *GNU* | *'with BFD'*)
4244 lt_cv_prog_gnu_ld=yes
4245 ;;
4246 *)
4247 lt_cv_prog_gnu_ld=no
4248 ;;
4249 esac
4250 fi
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4252 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4253 with_gnu_ld=$lt_cv_prog_gnu_ld
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4264 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4265 if ${lt_cv_path_NM+:} false; then :
4266 $as_echo_n "(cached) " >&6
4267 else
4268 if test -n "$NM"; then
4269 # Let the user override the test.
4270 lt_cv_path_NM=$NM
4271 else
4272 lt_nm_to_check=${ac_tool_prefix}nm
4273 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4274 lt_nm_to_check="$lt_nm_to_check nm"
4275 fi
4276 for lt_tmp_nm in $lt_nm_to_check; do
4277 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4278 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4279 IFS=$lt_save_ifs
4280 test -z "$ac_dir" && ac_dir=.
4281 tmp_nm=$ac_dir/$lt_tmp_nm
4282 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4283 # Check to see if the nm accepts a BSD-compat flag.
4284 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4285 # nm: unknown option "B" ignored
4286 # Tru64's nm complains that /dev/null is an invalid object file
4287 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4288 case $build_os in
4289 mingw*) lt_bad_file=conftest.nm/nofile ;;
4290 *) lt_bad_file=/dev/null ;;
4291 esac
4292 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4293 *$lt_bad_file* | *'Invalid file or object type'*)
4294 lt_cv_path_NM="$tmp_nm -B"
4295 break 2
4296 ;;
4297 *)
4298 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4299 */dev/null*)
4300 lt_cv_path_NM="$tmp_nm -p"
4301 break 2
4302 ;;
4303 *)
4304 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4305 continue # so that we can try to find one that supports BSD flags
4306 ;;
4307 esac
4308 ;;
4309 esac
4310 fi
4311 done
4312 IFS=$lt_save_ifs
4313 done
4314 : ${lt_cv_path_NM=no}
4315 fi
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4318 $as_echo "$lt_cv_path_NM" >&6; }
4319 if test no != "$lt_cv_path_NM"; then
4320 NM=$lt_cv_path_NM
4321 else
4322 # Didn't find any BSD compatible name lister, look for dumpbin.
4323 if test -n "$DUMPBIN"; then :
4324 # Let the user override the test.
4325 else
4326 if test -n "$ac_tool_prefix"; then
4327 for ac_prog in dumpbin "link -dump"
4328 do
4329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4330 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4332 $as_echo_n "checking for $ac_word... " >&6; }
4333 if ${ac_cv_prog_DUMPBIN+:} false; then :
4334 $as_echo_n "(cached) " >&6
4335 else
4336 if test -n "$DUMPBIN"; then
4337 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4338 else
4339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 for as_dir in $PATH
4341 do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
4344 for ac_exec_ext in '' $ac_executable_extensions; do
4345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4346 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 break 2
4349 fi
4350 done
4351 done
4352 IFS=$as_save_IFS
4353
4354 fi
4355 fi
4356 DUMPBIN=$ac_cv_prog_DUMPBIN
4357 if test -n "$DUMPBIN"; then
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4359 $as_echo "$DUMPBIN" >&6; }
4360 else
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4362 $as_echo "no" >&6; }
4363 fi
4364
4365
4366 test -n "$DUMPBIN" && break
4367 done
4368 fi
4369 if test -z "$DUMPBIN"; then
4370 ac_ct_DUMPBIN=$DUMPBIN
4371 for ac_prog in dumpbin "link -dump"
4372 do
4373 # Extract the first word of "$ac_prog", so it can be a program name with args.
4374 set dummy $ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$ac_ct_DUMPBIN"; then
4381 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4385 do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4393 fi
4394 done
4395 done
4396 IFS=$as_save_IFS
4397
4398 fi
4399 fi
4400 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4401 if test -n "$ac_ct_DUMPBIN"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4403 $as_echo "$ac_ct_DUMPBIN" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 fi
4408
4409
4410 test -n "$ac_ct_DUMPBIN" && break
4411 done
4412
4413 if test "x$ac_ct_DUMPBIN" = x; then
4414 DUMPBIN=":"
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417 yes:)
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4420 ac_tool_warned=yes ;;
4421 esac
4422 DUMPBIN=$ac_ct_DUMPBIN
4423 fi
4424 fi
4425
4426 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4427 *COFF*)
4428 DUMPBIN="$DUMPBIN -symbols -headers"
4429 ;;
4430 *)
4431 DUMPBIN=:
4432 ;;
4433 esac
4434 fi
4435
4436 if test : != "$DUMPBIN"; then
4437 NM=$DUMPBIN
4438 fi
4439 fi
4440 test -z "$NM" && NM=nm
4441
4442
4443
4444
4445
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4448 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4449 if ${lt_cv_nm_interface+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 lt_cv_nm_interface="BSD nm"
4453 echo "int some_variable = 0;" > conftest.$ac_ext
4454 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4455 (eval "$ac_compile" 2>conftest.err)
4456 cat conftest.err >&5
4457 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4458 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4459 cat conftest.err >&5
4460 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4461 cat conftest.out >&5
4462 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4463 lt_cv_nm_interface="MS dumpbin"
4464 fi
4465 rm -f conftest*
4466 fi
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4468 $as_echo "$lt_cv_nm_interface" >&6; }
4469
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4471 $as_echo_n "checking whether ln -s works... " >&6; }
4472 LN_S=$as_ln_s
4473 if test "$LN_S" = "ln -s"; then
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4475 $as_echo "yes" >&6; }
4476 else
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4478 $as_echo "no, using $LN_S" >&6; }
4479 fi
4480
4481 # find the maximum length of command line arguments
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4483 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4484 if ${lt_cv_sys_max_cmd_len+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 i=0
4488 teststring=ABCD
4489
4490 case $build_os in
4491 msdosdjgpp*)
4492 # On DJGPP, this test can blow up pretty badly due to problems in libc
4493 # (any single argument exceeding 2000 bytes causes a buffer overrun
4494 # during glob expansion). Even if it were fixed, the result of this
4495 # check would be larger than it should be.
4496 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4497 ;;
4498
4499 gnu*)
4500 # Under GNU Hurd, this test is not required because there is
4501 # no limit to the length of command line arguments.
4502 # Libtool will interpret -1 as no limit whatsoever
4503 lt_cv_sys_max_cmd_len=-1;
4504 ;;
4505
4506 cygwin* | mingw* | cegcc*)
4507 # On Win9x/ME, this test blows up -- it succeeds, but takes
4508 # about 5 minutes as the teststring grows exponentially.
4509 # Worse, since 9x/ME are not pre-emptively multitasking,
4510 # you end up with a "frozen" computer, even though with patience
4511 # the test eventually succeeds (with a max line length of 256k).
4512 # Instead, let's just punt: use the minimum linelength reported by
4513 # all of the supported platforms: 8192 (on NT/2K/XP).
4514 lt_cv_sys_max_cmd_len=8192;
4515 ;;
4516
4517 mint*)
4518 # On MiNT this can take a long time and run out of memory.
4519 lt_cv_sys_max_cmd_len=8192;
4520 ;;
4521
4522 amigaos*)
4523 # On AmigaOS with pdksh, this test takes hours, literally.
4524 # So we just punt and use a minimum line length of 8192.
4525 lt_cv_sys_max_cmd_len=8192;
4526 ;;
4527
4528 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4529 # This has been around since 386BSD, at least. Likely further.
4530 if test -x /sbin/sysctl; then
4531 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4532 elif test -x /usr/sbin/sysctl; then
4533 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4534 else
4535 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4536 fi
4537 # And add a safety zone
4538 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4539 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4540 ;;
4541
4542 interix*)
4543 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4544 lt_cv_sys_max_cmd_len=196608
4545 ;;
4546
4547 os2*)
4548 # The test takes a long time on OS/2.
4549 lt_cv_sys_max_cmd_len=8192
4550 ;;
4551
4552 osf*)
4553 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4554 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4555 # nice to cause kernel panics so lets avoid the loop below.
4556 # First set a reasonable default.
4557 lt_cv_sys_max_cmd_len=16384
4558 #
4559 if test -x /sbin/sysconfig; then
4560 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4561 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4562 esac
4563 fi
4564 ;;
4565 sco3.2v5*)
4566 lt_cv_sys_max_cmd_len=102400
4567 ;;
4568 sysv5* | sco5v6* | sysv4.2uw2*)
4569 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4570 if test -n "$kargmax"; then
4571 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4572 else
4573 lt_cv_sys_max_cmd_len=32768
4574 fi
4575 ;;
4576 *)
4577 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4578 if test -n "$lt_cv_sys_max_cmd_len" && \
4579 test undefined != "$lt_cv_sys_max_cmd_len"; then
4580 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4581 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4582 else
4583 # Make teststring a little bigger before we do anything with it.
4584 # a 1K string should be a reasonable start.
4585 for i in 1 2 3 4 5 6 7 8; do
4586 teststring=$teststring$teststring
4587 done
4588 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4589 # If test is not a shell built-in, we'll probably end up computing a
4590 # maximum length that is only half of the actual maximum length, but
4591 # we can't tell.
4592 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4593 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4594 test 17 != "$i" # 1/2 MB should be enough
4595 do
4596 i=`expr $i + 1`
4597 teststring=$teststring$teststring
4598 done
4599 # Only check the string length outside the loop.
4600 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4601 teststring=
4602 # Add a significant safety factor because C++ compilers can tack on
4603 # massive amounts of additional arguments before passing them to the
4604 # linker. It appears as though 1/2 is a usable value.
4605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4606 fi
4607 ;;
4608 esac
4609
4610 fi
4611
4612 if test -n "$lt_cv_sys_max_cmd_len"; then
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4614 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4615 else
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4617 $as_echo "none" >&6; }
4618 fi
4619 max_cmd_len=$lt_cv_sys_max_cmd_len
4620
4621
4622
4623
4624
4625
4626 : ${CP="cp -f"}
4627 : ${MV="mv -f"}
4628 : ${RM="rm -f"}
4629
4630 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4631 lt_unset=unset
4632 else
4633 lt_unset=false
4634 fi
4635
4636
4637
4638
4639
4640 # test EBCDIC or ASCII
4641 case `echo X|tr X '\101'` in
4642 A) # ASCII based system
4643 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4644 lt_SP2NL='tr \040 \012'
4645 lt_NL2SP='tr \015\012 \040\040'
4646 ;;
4647 *) # EBCDIC based system
4648 lt_SP2NL='tr \100 \n'
4649 lt_NL2SP='tr \r\n \100\100'
4650 ;;
4651 esac
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4662 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4663 if ${lt_cv_to_host_file_cmd+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 case $host in
4667 *-*-mingw* )
4668 case $build in
4669 *-*-mingw* ) # actually msys
4670 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4671 ;;
4672 *-*-cygwin* )
4673 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4674 ;;
4675 * ) # otherwise, assume *nix
4676 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4677 ;;
4678 esac
4679 ;;
4680 *-*-cygwin* )
4681 case $build in
4682 *-*-mingw* ) # actually msys
4683 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4684 ;;
4685 *-*-cygwin* )
4686 lt_cv_to_host_file_cmd=func_convert_file_noop
4687 ;;
4688 * ) # otherwise, assume *nix
4689 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4690 ;;
4691 esac
4692 ;;
4693 * ) # unhandled hosts (and "normal" native builds)
4694 lt_cv_to_host_file_cmd=func_convert_file_noop
4695 ;;
4696 esac
4697
4698 fi
4699
4700 to_host_file_cmd=$lt_cv_to_host_file_cmd
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4702 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4703
4704
4705
4706
4707
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4709 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4710 if ${lt_cv_to_tool_file_cmd+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 #assume ordinary cross tools, or native build.
4714 lt_cv_to_tool_file_cmd=func_convert_file_noop
4715 case $host in
4716 *-*-mingw* )
4717 case $build in
4718 *-*-mingw* ) # actually msys
4719 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4720 ;;
4721 esac
4722 ;;
4723 esac
4724
4725 fi
4726
4727 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4729 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4730
4731
4732
4733
4734
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4736 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4737 if ${lt_cv_ld_reload_flag+:} false; then :
4738 $as_echo_n "(cached) " >&6
4739 else
4740 lt_cv_ld_reload_flag='-r'
4741 fi
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4743 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4744 reload_flag=$lt_cv_ld_reload_flag
4745 case $reload_flag in
4746 "" | " "*) ;;
4747 *) reload_flag=" $reload_flag" ;;
4748 esac
4749 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4750 case $host_os in
4751 cygwin* | mingw* | pw32* | cegcc*)
4752 if test yes != "$GCC"; then
4753 reload_cmds=false
4754 fi
4755 ;;
4756 darwin*)
4757 if test yes = "$GCC"; then
4758 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
4759 else
4760 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4761 fi
4762 ;;
4763 esac
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773 if test -n "$ac_tool_prefix"; then
4774 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4775 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 $as_echo_n "checking for $ac_word... " >&6; }
4778 if ${ac_cv_prog_OBJDUMP+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 if test -n "$OBJDUMP"; then
4782 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4783 else
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 fi
4800 fi
4801 OBJDUMP=$ac_cv_prog_OBJDUMP
4802 if test -n "$OBJDUMP"; then
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4804 $as_echo "$OBJDUMP" >&6; }
4805 else
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4807 $as_echo "no" >&6; }
4808 fi
4809
4810
4811 fi
4812 if test -z "$ac_cv_prog_OBJDUMP"; then
4813 ac_ct_OBJDUMP=$OBJDUMP
4814 # Extract the first word of "objdump", so it can be a program name with args.
4815 set dummy objdump; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$ac_ct_OBJDUMP"; then
4822 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4834 fi
4835 done
4836 done
4837 IFS=$as_save_IFS
4838
4839 fi
4840 fi
4841 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4842 if test -n "$ac_ct_OBJDUMP"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4844 $as_echo "$ac_ct_OBJDUMP" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4848 fi
4849
4850 if test "x$ac_ct_OBJDUMP" = x; then
4851 OBJDUMP="false"
4852 else
4853 case $cross_compiling:$ac_tool_warned in
4854 yes:)
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4857 ac_tool_warned=yes ;;
4858 esac
4859 OBJDUMP=$ac_ct_OBJDUMP
4860 fi
4861 else
4862 OBJDUMP="$ac_cv_prog_OBJDUMP"
4863 fi
4864
4865 test -z "$OBJDUMP" && OBJDUMP=objdump
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4876 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4877 if ${lt_cv_deplibs_check_method+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 lt_cv_file_magic_cmd='$MAGIC_CMD'
4881 lt_cv_file_magic_test_file=
4882 lt_cv_deplibs_check_method='unknown'
4883 # Need to set the preceding variable on all platforms that support
4884 # interlibrary dependencies.
4885 # 'none' -- dependencies not supported.
4886 # 'unknown' -- same as none, but documents that we really don't know.
4887 # 'pass_all' -- all dependencies passed with no checks.
4888 # 'test_compile' -- check by making test program.
4889 # 'file_magic [[regex]]' -- check by looking for files in library path
4890 # that responds to the $file_magic_cmd with a given extended regex.
4891 # If you have 'file' or equivalent on your system and you're not sure
4892 # whether 'pass_all' will *always* work, you probably want this one.
4893
4894 case $host_os in
4895 aix[4-9]*)
4896 lt_cv_deplibs_check_method=pass_all
4897 ;;
4898
4899 beos*)
4900 lt_cv_deplibs_check_method=pass_all
4901 ;;
4902
4903 bsdi[45]*)
4904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4905 lt_cv_file_magic_cmd='/usr/bin/file -L'
4906 lt_cv_file_magic_test_file=/shlib/libc.so
4907 ;;
4908
4909 cygwin*)
4910 # func_win32_libid is a shell function defined in ltmain.sh
4911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4912 lt_cv_file_magic_cmd='func_win32_libid'
4913 ;;
4914
4915 mingw* | pw32*)
4916 # Base MSYS/MinGW do not provide the 'file' command needed by
4917 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4918 # unless we find 'file', for example because we are cross-compiling.
4919 if ( file / ) >/dev/null 2>&1; then
4920 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4921 lt_cv_file_magic_cmd='func_win32_libid'
4922 else
4923 # Keep this pattern in sync with the one in func_win32_libid.
4924 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
4925 lt_cv_file_magic_cmd='$OBJDUMP -f'
4926 fi
4927 ;;
4928
4929 cegcc*)
4930 # use the weaker test based on 'objdump'. See mingw*.
4931 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
4932 lt_cv_file_magic_cmd='$OBJDUMP -f'
4933 ;;
4934
4935 darwin* | rhapsody*)
4936 lt_cv_deplibs_check_method=pass_all
4937 ;;
4938
4939 freebsd* | dragonfly*)
4940 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4941 case $host_cpu in
4942 i*86 )
4943 # Not sure whether the presence of OpenBSD here was a mistake.
4944 # Let's accept both of them until this is cleared up.
4945 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4946 lt_cv_file_magic_cmd=/usr/bin/file
4947 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4948 ;;
4949 esac
4950 else
4951 lt_cv_deplibs_check_method=pass_all
4952 fi
4953 ;;
4954
4955 haiku*)
4956 lt_cv_deplibs_check_method=pass_all
4957 ;;
4958
4959 hpux10.20* | hpux11*)
4960 lt_cv_file_magic_cmd=/usr/bin/file
4961 case $host_cpu in
4962 ia64*)
4963 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4964 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4965 ;;
4966 hppa*64*)
4967 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
4968 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4969 ;;
4970 *)
4971 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
4972 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4973 ;;
4974 esac
4975 ;;
4976
4977 interix[3-9]*)
4978 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4980 ;;
4981
4982 irix5* | irix6* | nonstopux*)
4983 case $LD in
4984 *-32|*"-32 ") libmagic=32-bit;;
4985 *-n32|*"-n32 ") libmagic=N32;;
4986 *-64|*"-64 ") libmagic=64-bit;;
4987 *) libmagic=never-match;;
4988 esac
4989 lt_cv_deplibs_check_method=pass_all
4990 ;;
4991
4992 # This must be glibc/ELF.
4993 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4994 lt_cv_deplibs_check_method=pass_all
4995 ;;
4996
4997 netbsd* | netbsdelf*-gnu)
4998 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
4999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5000 else
5001 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5002 fi
5003 ;;
5004
5005 newos6*)
5006 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5007 lt_cv_file_magic_cmd=/usr/bin/file
5008 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5009 ;;
5010
5011 *nto* | *qnx*)
5012 lt_cv_deplibs_check_method=pass_all
5013 ;;
5014
5015 openbsd* | bitrig*)
5016 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5017 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5018 else
5019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5020 fi
5021 ;;
5022
5023 osf3* | osf4* | osf5*)
5024 lt_cv_deplibs_check_method=pass_all
5025 ;;
5026
5027 rdos*)
5028 lt_cv_deplibs_check_method=pass_all
5029 ;;
5030
5031 solaris*)
5032 lt_cv_deplibs_check_method=pass_all
5033 ;;
5034
5035 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5036 lt_cv_deplibs_check_method=pass_all
5037 ;;
5038
5039 sysv4 | sysv4.3*)
5040 case $host_vendor in
5041 motorola)
5042 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]'
5043 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5044 ;;
5045 ncr)
5046 lt_cv_deplibs_check_method=pass_all
5047 ;;
5048 sequent)
5049 lt_cv_file_magic_cmd='/bin/file'
5050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5051 ;;
5052 sni)
5053 lt_cv_file_magic_cmd='/bin/file'
5054 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5055 lt_cv_file_magic_test_file=/lib/libc.so
5056 ;;
5057 siemens)
5058 lt_cv_deplibs_check_method=pass_all
5059 ;;
5060 pc)
5061 lt_cv_deplibs_check_method=pass_all
5062 ;;
5063 esac
5064 ;;
5065
5066 tpf*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069 os2*)
5070 lt_cv_deplibs_check_method=pass_all
5071 ;;
5072 esac
5073
5074 fi
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5076 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5077
5078 file_magic_glob=
5079 want_nocaseglob=no
5080 if test "$build" = "$host"; then
5081 case $host_os in
5082 mingw* | pw32*)
5083 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5084 want_nocaseglob=yes
5085 else
5086 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5087 fi
5088 ;;
5089 esac
5090 fi
5091
5092 file_magic_cmd=$lt_cv_file_magic_cmd
5093 deplibs_check_method=$lt_cv_deplibs_check_method
5094 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117 if test -n "$ac_tool_prefix"; then
5118 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5119 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5121 $as_echo_n "checking for $ac_word... " >&6; }
5122 if ${ac_cv_prog_DLLTOOL+:} false; then :
5123 $as_echo_n "(cached) " >&6
5124 else
5125 if test -n "$DLLTOOL"; then
5126 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5127 else
5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5129 for as_dir in $PATH
5130 do
5131 IFS=$as_save_IFS
5132 test -z "$as_dir" && as_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5135 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 break 2
5138 fi
5139 done
5140 done
5141 IFS=$as_save_IFS
5142
5143 fi
5144 fi
5145 DLLTOOL=$ac_cv_prog_DLLTOOL
5146 if test -n "$DLLTOOL"; then
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5148 $as_echo "$DLLTOOL" >&6; }
5149 else
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5151 $as_echo "no" >&6; }
5152 fi
5153
5154
5155 fi
5156 if test -z "$ac_cv_prog_DLLTOOL"; then
5157 ac_ct_DLLTOOL=$DLLTOOL
5158 # Extract the first word of "dlltool", so it can be a program name with args.
5159 set dummy dlltool; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 if test -n "$ac_ct_DLLTOOL"; then
5166 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5167 else
5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5169 for as_dir in $PATH
5170 do
5171 IFS=$as_save_IFS
5172 test -z "$as_dir" && as_dir=.
5173 for ac_exec_ext in '' $ac_executable_extensions; do
5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5175 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 break 2
5178 fi
5179 done
5180 done
5181 IFS=$as_save_IFS
5182
5183 fi
5184 fi
5185 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5186 if test -n "$ac_ct_DLLTOOL"; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5188 $as_echo "$ac_ct_DLLTOOL" >&6; }
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194 if test "x$ac_ct_DLLTOOL" = x; then
5195 DLLTOOL="false"
5196 else
5197 case $cross_compiling:$ac_tool_warned in
5198 yes:)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203 DLLTOOL=$ac_ct_DLLTOOL
5204 fi
5205 else
5206 DLLTOOL="$ac_cv_prog_DLLTOOL"
5207 fi
5208
5209 test -z "$DLLTOOL" && DLLTOOL=dlltool
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5221 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5222 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5223 $as_echo_n "(cached) " >&6
5224 else
5225 lt_cv_sharedlib_from_linklib_cmd='unknown'
5226
5227 case $host_os in
5228 cygwin* | mingw* | pw32* | cegcc*)
5229 # two different shell functions defined in ltmain.sh;
5230 # decide which one to use based on capabilities of $DLLTOOL
5231 case `$DLLTOOL --help 2>&1` in
5232 *--identify-strict*)
5233 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5234 ;;
5235 *)
5236 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5237 ;;
5238 esac
5239 ;;
5240 *)
5241 # fallback: assume linklib IS sharedlib
5242 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5243 ;;
5244 esac
5245
5246 fi
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5248 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5249 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5250 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5251
5252
5253
5254
5255
5256
5257
5258
5259 if test -n "$ac_tool_prefix"; then
5260 for ac_prog in ar
5261 do
5262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5265 $as_echo_n "checking for $ac_word... " >&6; }
5266 if ${ac_cv_prog_AR+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if test -n "$AR"; then
5270 ac_cv_prog_AR="$AR" # Let the user override the test.
5271 else
5272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5273 for as_dir in $PATH
5274 do
5275 IFS=$as_save_IFS
5276 test -z "$as_dir" && as_dir=.
5277 for ac_exec_ext in '' $ac_executable_extensions; do
5278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5279 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5281 break 2
5282 fi
5283 done
5284 done
5285 IFS=$as_save_IFS
5286
5287 fi
5288 fi
5289 AR=$ac_cv_prog_AR
5290 if test -n "$AR"; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5292 $as_echo "$AR" >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5295 $as_echo "no" >&6; }
5296 fi
5297
5298
5299 test -n "$AR" && break
5300 done
5301 fi
5302 if test -z "$AR"; then
5303 ac_ct_AR=$AR
5304 for ac_prog in ar
5305 do
5306 # Extract the first word of "$ac_prog", so it can be a program name with args.
5307 set dummy $ac_prog; ac_word=$2
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5309 $as_echo_n "checking for $ac_word... " >&6; }
5310 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312 else
5313 if test -n "$ac_ct_AR"; then
5314 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5315 else
5316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5317 for as_dir in $PATH
5318 do
5319 IFS=$as_save_IFS
5320 test -z "$as_dir" && as_dir=.
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_ac_ct_AR="$ac_prog"
5324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327 done
5328 done
5329 IFS=$as_save_IFS
5330
5331 fi
5332 fi
5333 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5334 if test -n "$ac_ct_AR"; then
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5336 $as_echo "$ac_ct_AR" >&6; }
5337 else
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5340 fi
5341
5342
5343 test -n "$ac_ct_AR" && break
5344 done
5345
5346 if test "x$ac_ct_AR" = x; then
5347 AR="false"
5348 else
5349 case $cross_compiling:$ac_tool_warned in
5350 yes:)
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5353 ac_tool_warned=yes ;;
5354 esac
5355 AR=$ac_ct_AR
5356 fi
5357 fi
5358
5359 : ${AR=ar}
5360 : ${AR_FLAGS=cru}
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5373 $as_echo_n "checking for archiver @FILE support... " >&6; }
5374 if ${lt_cv_ar_at_file+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376 else
5377 lt_cv_ar_at_file=no
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379 /* end confdefs.h. */
5380
5381 int
5382 main ()
5383 {
5384
5385 ;
5386 return 0;
5387 }
5388 _ACEOF
5389 if ac_fn_c_try_compile "$LINENO"; then :
5390 echo conftest.$ac_objext > conftest.lst
5391 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5393 (eval $lt_ar_try) 2>&5
5394 ac_status=$?
5395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5396 test $ac_status = 0; }
5397 if test 0 -eq "$ac_status"; then
5398 # Ensure the archiver fails upon bogus file names.
5399 rm -f conftest.$ac_objext libconftest.a
5400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5401 (eval $lt_ar_try) 2>&5
5402 ac_status=$?
5403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5404 test $ac_status = 0; }
5405 if test 0 -ne "$ac_status"; then
5406 lt_cv_ar_at_file=@
5407 fi
5408 fi
5409 rm -f conftest.* libconftest.a
5410
5411 fi
5412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5413
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5416 $as_echo "$lt_cv_ar_at_file" >&6; }
5417
5418 if test no = "$lt_cv_ar_at_file"; then
5419 archiver_list_spec=
5420 else
5421 archiver_list_spec=$lt_cv_ar_at_file
5422 fi
5423
5424
5425
5426
5427
5428
5429
5430 if test -n "$ac_tool_prefix"; then
5431 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5432 set dummy ${ac_tool_prefix}strip; ac_word=$2
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5434 $as_echo_n "checking for $ac_word... " >&6; }
5435 if ${ac_cv_prog_STRIP+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 if test -n "$STRIP"; then
5439 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5440 else
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 for as_dir in $PATH
5443 do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
5446 for ac_exec_ext in '' $ac_executable_extensions; do
5447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5448 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5450 break 2
5451 fi
5452 done
5453 done
5454 IFS=$as_save_IFS
5455
5456 fi
5457 fi
5458 STRIP=$ac_cv_prog_STRIP
5459 if test -n "$STRIP"; then
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5461 $as_echo "$STRIP" >&6; }
5462 else
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5464 $as_echo "no" >&6; }
5465 fi
5466
5467
5468 fi
5469 if test -z "$ac_cv_prog_STRIP"; then
5470 ac_ct_STRIP=$STRIP
5471 # Extract the first word of "strip", so it can be a program name with args.
5472 set dummy strip; ac_word=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5476 $as_echo_n "(cached) " >&6
5477 else
5478 if test -n "$ac_ct_STRIP"; then
5479 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5480 else
5481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 for as_dir in $PATH
5483 do
5484 IFS=$as_save_IFS
5485 test -z "$as_dir" && as_dir=.
5486 for ac_exec_ext in '' $ac_executable_extensions; do
5487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_ac_ct_STRIP="strip"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5490 break 2
5491 fi
5492 done
5493 done
5494 IFS=$as_save_IFS
5495
5496 fi
5497 fi
5498 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5499 if test -n "$ac_ct_STRIP"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5501 $as_echo "$ac_ct_STRIP" >&6; }
5502 else
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 fi
5506
5507 if test "x$ac_ct_STRIP" = x; then
5508 STRIP=":"
5509 else
5510 case $cross_compiling:$ac_tool_warned in
5511 yes:)
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5514 ac_tool_warned=yes ;;
5515 esac
5516 STRIP=$ac_ct_STRIP
5517 fi
5518 else
5519 STRIP="$ac_cv_prog_STRIP"
5520 fi
5521
5522 test -z "$STRIP" && STRIP=:
5523
5524
5525
5526
5527
5528
5529 if test -n "$ac_tool_prefix"; then
5530 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5531 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_RANLIB+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$RANLIB"; then
5538 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5542 do
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5550 fi
5551 done
5552 done
5553 IFS=$as_save_IFS
5554
5555 fi
5556 fi
5557 RANLIB=$ac_cv_prog_RANLIB
5558 if test -n "$RANLIB"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5560 $as_echo "$RANLIB" >&6; }
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5564 fi
5565
5566
5567 fi
5568 if test -z "$ac_cv_prog_RANLIB"; then
5569 ac_ct_RANLIB=$RANLIB
5570 # Extract the first word of "ranlib", so it can be a program name with args.
5571 set dummy ranlib; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5575 $as_echo_n "(cached) " >&6
5576 else
5577 if test -n "$ac_ct_RANLIB"; then
5578 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5579 else
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5581 for as_dir in $PATH
5582 do
5583 IFS=$as_save_IFS
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_prog_ac_ct_RANLIB="ranlib"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5589 break 2
5590 fi
5591 done
5592 done
5593 IFS=$as_save_IFS
5594
5595 fi
5596 fi
5597 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5598 if test -n "$ac_ct_RANLIB"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5600 $as_echo "$ac_ct_RANLIB" >&6; }
5601 else
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5604 fi
5605
5606 if test "x$ac_ct_RANLIB" = x; then
5607 RANLIB=":"
5608 else
5609 case $cross_compiling:$ac_tool_warned in
5610 yes:)
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5612 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5613 ac_tool_warned=yes ;;
5614 esac
5615 RANLIB=$ac_ct_RANLIB
5616 fi
5617 else
5618 RANLIB="$ac_cv_prog_RANLIB"
5619 fi
5620
5621 test -z "$RANLIB" && RANLIB=:
5622
5623
5624
5625
5626
5627
5628 # Determine commands to create old-style static archives.
5629 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5630 old_postinstall_cmds='chmod 644 $oldlib'
5631 old_postuninstall_cmds=
5632
5633 if test -n "$RANLIB"; then
5634 case $host_os in
5635 bitrig* | openbsd*)
5636 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5637 ;;
5638 *)
5639 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5640 ;;
5641 esac
5642 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5643 fi
5644
5645 case $host_os in
5646 darwin*)
5647 lock_old_archive_extraction=yes ;;
5648 *)
5649 lock_old_archive_extraction=no ;;
5650 esac
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672 for ac_prog in gawk mawk nawk awk
5673 do
5674 # Extract the first word of "$ac_prog", so it can be a program name with args.
5675 set dummy $ac_prog; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5677 $as_echo_n "checking for $ac_word... " >&6; }
5678 if ${ac_cv_prog_AWK+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 if test -n "$AWK"; then
5682 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5683 else
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 for as_dir in $PATH
5686 do
5687 IFS=$as_save_IFS
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_AWK="$ac_prog"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5693 break 2
5694 fi
5695 done
5696 done
5697 IFS=$as_save_IFS
5698
5699 fi
5700 fi
5701 AWK=$ac_cv_prog_AWK
5702 if test -n "$AWK"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5704 $as_echo "$AWK" >&6; }
5705 else
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5707 $as_echo "no" >&6; }
5708 fi
5709
5710
5711 test -n "$AWK" && break
5712 done
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 # If no C compiler was specified, use CC.
5733 LTCC=${LTCC-"$CC"}
5734
5735 # If no C compiler flags were specified, use CFLAGS.
5736 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5737
5738 # Allow CC to be a program name with arguments.
5739 compiler=$CC
5740
5741
5742 # Check for command to grab the raw symbol name followed by C symbol from nm.
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5744 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5745 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5746 $as_echo_n "(cached) " >&6
5747 else
5748
5749 # These are sane defaults that work on at least a few old systems.
5750 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5751
5752 # Character class describing NM global symbol codes.
5753 symcode='[BCDEGRST]'
5754
5755 # Regexp to match symbols that can be accessed directly from C.
5756 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5757
5758 # Define system-specific variables.
5759 case $host_os in
5760 aix*)
5761 symcode='[BCDT]'
5762 ;;
5763 cygwin* | mingw* | pw32* | cegcc*)
5764 symcode='[ABCDGISTW]'
5765 ;;
5766 hpux*)
5767 if test ia64 = "$host_cpu"; then
5768 symcode='[ABCDEGRST]'
5769 fi
5770 ;;
5771 irix* | nonstopux*)
5772 symcode='[BCDEGRST]'
5773 ;;
5774 osf*)
5775 symcode='[BCDEGQRST]'
5776 ;;
5777 solaris*)
5778 symcode='[BDRT]'
5779 ;;
5780 sco3.2v5*)
5781 symcode='[DT]'
5782 ;;
5783 sysv4.2uw2*)
5784 symcode='[DT]'
5785 ;;
5786 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5787 symcode='[ABDT]'
5788 ;;
5789 sysv4)
5790 symcode='[DFNSTU]'
5791 ;;
5792 esac
5793
5794 # If we're using GNU nm, then use its standard symbol codes.
5795 case `$NM -V 2>&1` in
5796 *GNU* | *'with BFD'*)
5797 symcode='[ABCDGIRSTW]' ;;
5798 esac
5799
5800 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5801 # Gets list of data symbols to import.
5802 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
5803 # Adjust the below global symbol transforms to fixup imported variables.
5804 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
5805 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
5806 lt_c_name_lib_hook="\
5807 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
5808 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
5809 else
5810 # Disable hooks by default.
5811 lt_cv_sys_global_symbol_to_import=
5812 lt_cdecl_hook=
5813 lt_c_name_hook=
5814 lt_c_name_lib_hook=
5815 fi
5816
5817 # Transform an extracted symbol line into a proper C declaration.
5818 # Some systems (esp. on ia64) link data and code symbols differently,
5819 # so use this general approach.
5820 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
5821 $lt_cdecl_hook\
5822 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
5823 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
5824
5825 # Transform an extracted symbol line into symbol name and symbol address
5826 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
5827 $lt_c_name_hook\
5828 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5829 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
5830
5831 # Transform an extracted symbol line into symbol name with lib prefix and
5832 # symbol address.
5833 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
5834 $lt_c_name_lib_hook\
5835 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
5836 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
5837 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
5838
5839 # Handle CRLF in mingw tool chain
5840 opt_cr=
5841 case $build_os in
5842 mingw*)
5843 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5844 ;;
5845 esac
5846
5847 # Try without a prefix underscore, then with it.
5848 for ac_symprfx in "" "_"; do
5849
5850 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5851 symxfrm="\\1 $ac_symprfx\\2 \\2"
5852
5853 # Write the raw and C identifiers.
5854 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5855 # Fake it for dumpbin and say T for any non-static function,
5856 # D for any global variable and I for any imported variable.
5857 # Also find C++ and __fastcall symbols from MSVC++,
5858 # which start with @ or ?.
5859 lt_cv_sys_global_symbol_pipe="$AWK '"\
5860 " {last_section=section; section=\$ 3};"\
5861 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5862 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5863 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
5864 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
5865 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
5866 " \$ 0!~/External *\|/{next};"\
5867 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5868 " {if(hide[section]) next};"\
5869 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
5870 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
5871 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
5872 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
5873 " ' prfx=^$ac_symprfx"
5874 else
5875 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5876 fi
5877 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5878
5879 # Check to see that the pipe works correctly.
5880 pipe_works=no
5881
5882 rm -f conftest*
5883 cat > conftest.$ac_ext <<_LT_EOF
5884 #ifdef __cplusplus
5885 extern "C" {
5886 #endif
5887 char nm_test_var;
5888 void nm_test_func(void);
5889 void nm_test_func(void){}
5890 #ifdef __cplusplus
5891 }
5892 #endif
5893 int main(){nm_test_var='a';nm_test_func();return(0);}
5894 _LT_EOF
5895
5896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5897 (eval $ac_compile) 2>&5
5898 ac_status=$?
5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5900 test $ac_status = 0; }; then
5901 # Now try to grab the symbols.
5902 nlist=conftest.nm
5903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5904 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5905 ac_status=$?
5906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5907 test $ac_status = 0; } && test -s "$nlist"; then
5908 # Try sorting and uniquifying the output.
5909 if sort "$nlist" | uniq > "$nlist"T; then
5910 mv -f "$nlist"T "$nlist"
5911 else
5912 rm -f "$nlist"T
5913 fi
5914
5915 # Make sure that we snagged all the symbols we need.
5916 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5917 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5918 cat <<_LT_EOF > conftest.$ac_ext
5919 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5920 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
5921 /* DATA imports from DLLs on WIN32 can't be const, because runtime
5922 relocations are performed -- see ld's documentation on pseudo-relocs. */
5923 # define LT_DLSYM_CONST
5924 #elif defined __osf__
5925 /* This system does not cope well with relocations in const data. */
5926 # define LT_DLSYM_CONST
5927 #else
5928 # define LT_DLSYM_CONST const
5929 #endif
5930
5931 #ifdef __cplusplus
5932 extern "C" {
5933 #endif
5934
5935 _LT_EOF
5936 # Now generate the symbol file.
5937 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5938
5939 cat <<_LT_EOF >> conftest.$ac_ext
5940
5941 /* The mapping between symbol names and symbols. */
5942 LT_DLSYM_CONST struct {
5943 const char *name;
5944 void *address;
5945 }
5946 lt__PROGRAM__LTX_preloaded_symbols[] =
5947 {
5948 { "@PROGRAM@", (void *) 0 },
5949 _LT_EOF
5950 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5951 cat <<\_LT_EOF >> conftest.$ac_ext
5952 {0, (void *) 0}
5953 };
5954
5955 /* This works around a problem in FreeBSD linker */
5956 #ifdef FREEBSD_WORKAROUND
5957 static const void *lt_preloaded_setup() {
5958 return lt__PROGRAM__LTX_preloaded_symbols;
5959 }
5960 #endif
5961
5962 #ifdef __cplusplus
5963 }
5964 #endif
5965 _LT_EOF
5966 # Now try linking the two files.
5967 mv conftest.$ac_objext conftstm.$ac_objext
5968 lt_globsym_save_LIBS=$LIBS
5969 lt_globsym_save_CFLAGS=$CFLAGS
5970 LIBS=conftstm.$ac_objext
5971 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5972 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5973 (eval $ac_link) 2>&5
5974 ac_status=$?
5975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5976 test $ac_status = 0; } && test -s conftest$ac_exeext; then
5977 pipe_works=yes
5978 fi
5979 LIBS=$lt_globsym_save_LIBS
5980 CFLAGS=$lt_globsym_save_CFLAGS
5981 else
5982 echo "cannot find nm_test_func in $nlist" >&5
5983 fi
5984 else
5985 echo "cannot find nm_test_var in $nlist" >&5
5986 fi
5987 else
5988 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5989 fi
5990 else
5991 echo "$progname: failed program was:" >&5
5992 cat conftest.$ac_ext >&5
5993 fi
5994 rm -rf conftest* conftst*
5995
5996 # Do not use the global_symbol_pipe unless it works.
5997 if test yes = "$pipe_works"; then
5998 break
5999 else
6000 lt_cv_sys_global_symbol_pipe=
6001 fi
6002 done
6003
6004 fi
6005
6006 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6007 lt_cv_sys_global_symbol_to_cdecl=
6008 fi
6009 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6011 $as_echo "failed" >&6; }
6012 else
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6014 $as_echo "ok" >&6; }
6015 fi
6016
6017 # Response file support.
6018 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6019 nm_file_list_spec='@'
6020 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6021 nm_file_list_spec='@'
6022 fi
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6061 $as_echo_n "checking for sysroot... " >&6; }
6062
6063 # Check whether --with-sysroot was given.
6064 if test "${with_sysroot+set}" = set; then :
6065 withval=$with_sysroot;
6066 else
6067 with_sysroot=no
6068 fi
6069
6070
6071 lt_sysroot=
6072 case $with_sysroot in #(
6073 yes)
6074 if test yes = "$GCC"; then
6075 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6076 fi
6077 ;; #(
6078 /*)
6079 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6080 ;; #(
6081 no|'')
6082 ;; #(
6083 *)
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6085 $as_echo "$with_sysroot" >&6; }
6086 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6087 ;;
6088 esac
6089
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6091 $as_echo "${lt_sysroot:-no}" >&6; }
6092
6093
6094
6095
6096
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6098 $as_echo_n "checking for a working dd... " >&6; }
6099 if ${ac_cv_path_lt_DD+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101 else
6102 printf 0123456789abcdef0123456789abcdef >conftest.i
6103 cat conftest.i conftest.i >conftest2.i
6104 : ${lt_DD:=$DD}
6105 if test -z "$lt_DD"; then
6106 ac_path_lt_DD_found=false
6107 # Loop through the user's path and test for each of PROGNAME-LIST
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6109 for as_dir in $PATH
6110 do
6111 IFS=$as_save_IFS
6112 test -z "$as_dir" && as_dir=.
6113 for ac_prog in dd; do
6114 for ac_exec_ext in '' $ac_executable_extensions; do
6115 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6116 as_fn_executable_p "$ac_path_lt_DD" || continue
6117 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6118 cmp -s conftest.i conftest.out \
6119 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6120 fi
6121 $ac_path_lt_DD_found && break 3
6122 done
6123 done
6124 done
6125 IFS=$as_save_IFS
6126 if test -z "$ac_cv_path_lt_DD"; then
6127 :
6128 fi
6129 else
6130 ac_cv_path_lt_DD=$lt_DD
6131 fi
6132
6133 rm -f conftest.i conftest2.i conftest.out
6134 fi
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6136 $as_echo "$ac_cv_path_lt_DD" >&6; }
6137
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6140 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6141 if ${lt_cv_truncate_bin+:} false; then :
6142 $as_echo_n "(cached) " >&6
6143 else
6144 printf 0123456789abcdef0123456789abcdef >conftest.i
6145 cat conftest.i conftest.i >conftest2.i
6146 lt_cv_truncate_bin=
6147 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6148 cmp -s conftest.i conftest.out \
6149 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6150 fi
6151 rm -f conftest.i conftest2.i conftest.out
6152 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6155 $as_echo "$lt_cv_truncate_bin" >&6; }
6156
6157
6158
6159
6160
6161
6162
6163 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6164 func_cc_basename ()
6165 {
6166 for cc_temp in $*""; do
6167 case $cc_temp in
6168 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6169 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6170 \-*) ;;
6171 *) break;;
6172 esac
6173 done
6174 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6175 }
6176
6177 # Check whether --enable-libtool-lock was given.
6178 if test "${enable_libtool_lock+set}" = set; then :
6179 enableval=$enable_libtool_lock;
6180 fi
6181
6182 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6183
6184 # Some flags need to be propagated to the compiler or linker for good
6185 # libtool support.
6186 case $host in
6187 ia64-*-hpux*)
6188 # Find out what ABI is being produced by ac_compile, and set mode
6189 # options accordingly.
6190 echo 'int i;' > conftest.$ac_ext
6191 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6192 (eval $ac_compile) 2>&5
6193 ac_status=$?
6194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6195 test $ac_status = 0; }; then
6196 case `/usr/bin/file conftest.$ac_objext` in
6197 *ELF-32*)
6198 HPUX_IA64_MODE=32
6199 ;;
6200 *ELF-64*)
6201 HPUX_IA64_MODE=64
6202 ;;
6203 esac
6204 fi
6205 rm -rf conftest*
6206 ;;
6207 *-*-irix6*)
6208 # Find out what ABI is being produced by ac_compile, and set linker
6209 # options accordingly.
6210 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6212 (eval $ac_compile) 2>&5
6213 ac_status=$?
6214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6215 test $ac_status = 0; }; then
6216 if test yes = "$lt_cv_prog_gnu_ld"; then
6217 case `/usr/bin/file conftest.$ac_objext` in
6218 *32-bit*)
6219 LD="${LD-ld} -melf32bsmip"
6220 ;;
6221 *N32*)
6222 LD="${LD-ld} -melf32bmipn32"
6223 ;;
6224 *64-bit*)
6225 LD="${LD-ld} -melf64bmip"
6226 ;;
6227 esac
6228 else
6229 case `/usr/bin/file conftest.$ac_objext` in
6230 *32-bit*)
6231 LD="${LD-ld} -32"
6232 ;;
6233 *N32*)
6234 LD="${LD-ld} -n32"
6235 ;;
6236 *64-bit*)
6237 LD="${LD-ld} -64"
6238 ;;
6239 esac
6240 fi
6241 fi
6242 rm -rf conftest*
6243 ;;
6244
6245 mips64*-*linux*)
6246 # Find out what ABI is being produced by ac_compile, and set linker
6247 # options accordingly.
6248 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6249 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6250 (eval $ac_compile) 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }; then
6254 emul=elf
6255 case `/usr/bin/file conftest.$ac_objext` in
6256 *32-bit*)
6257 emul="${emul}32"
6258 ;;
6259 *64-bit*)
6260 emul="${emul}64"
6261 ;;
6262 esac
6263 case `/usr/bin/file conftest.$ac_objext` in
6264 *MSB*)
6265 emul="${emul}btsmip"
6266 ;;
6267 *LSB*)
6268 emul="${emul}ltsmip"
6269 ;;
6270 esac
6271 case `/usr/bin/file conftest.$ac_objext` in
6272 *N32*)
6273 emul="${emul}n32"
6274 ;;
6275 esac
6276 LD="${LD-ld} -m $emul"
6277 fi
6278 rm -rf conftest*
6279 ;;
6280
6281 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6282 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6283 # Find out what ABI is being produced by ac_compile, and set linker
6284 # options accordingly. Note that the listed cases only cover the
6285 # situations where additional linker options are needed (such as when
6286 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6287 # vice versa); the common cases where no linker options are needed do
6288 # not appear in the list.
6289 echo 'int i;' > conftest.$ac_ext
6290 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6291 (eval $ac_compile) 2>&5
6292 ac_status=$?
6293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6294 test $ac_status = 0; }; then
6295 case `/usr/bin/file conftest.o` in
6296 *32-bit*)
6297 case $host in
6298 x86_64-*kfreebsd*-gnu)
6299 LD="${LD-ld} -m elf_i386_fbsd"
6300 ;;
6301 x86_64-*linux*)
6302 case `/usr/bin/file conftest.o` in
6303 *x86-64*)
6304 LD="${LD-ld} -m elf32_x86_64"
6305 ;;
6306 *)
6307 LD="${LD-ld} -m elf_i386"
6308 ;;
6309 esac
6310 ;;
6311 powerpc64le-*linux*)
6312 LD="${LD-ld} -m elf32lppclinux"
6313 ;;
6314 powerpc64-*linux*)
6315 LD="${LD-ld} -m elf32ppclinux"
6316 ;;
6317 s390x-*linux*)
6318 LD="${LD-ld} -m elf_s390"
6319 ;;
6320 sparc64-*linux*)
6321 LD="${LD-ld} -m elf32_sparc"
6322 ;;
6323 esac
6324 ;;
6325 *64-bit*)
6326 case $host in
6327 x86_64-*kfreebsd*-gnu)
6328 LD="${LD-ld} -m elf_x86_64_fbsd"
6329 ;;
6330 x86_64-*linux*)
6331 LD="${LD-ld} -m elf_x86_64"
6332 ;;
6333 powerpcle-*linux*)
6334 LD="${LD-ld} -m elf64lppc"
6335 ;;
6336 powerpc-*linux*)
6337 LD="${LD-ld} -m elf64ppc"
6338 ;;
6339 s390*-*linux*|s390*-*tpf*)
6340 LD="${LD-ld} -m elf64_s390"
6341 ;;
6342 sparc*-*linux*)
6343 LD="${LD-ld} -m elf64_sparc"
6344 ;;
6345 esac
6346 ;;
6347 esac
6348 fi
6349 rm -rf conftest*
6350 ;;
6351
6352 *-*-sco3.2v5*)
6353 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6354 SAVE_CFLAGS=$CFLAGS
6355 CFLAGS="$CFLAGS -belf"
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6357 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6358 if ${lt_cv_cc_needs_belf+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360 else
6361 ac_ext=c
6362 ac_cpp='$CPP $CPPFLAGS'
6363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6366
6367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6368 /* end confdefs.h. */
6369
6370 int
6371 main ()
6372 {
6373
6374 ;
6375 return 0;
6376 }
6377 _ACEOF
6378 if ac_fn_c_try_link "$LINENO"; then :
6379 lt_cv_cc_needs_belf=yes
6380 else
6381 lt_cv_cc_needs_belf=no
6382 fi
6383 rm -f core conftest.err conftest.$ac_objext \
6384 conftest$ac_exeext conftest.$ac_ext
6385 ac_ext=c
6386 ac_cpp='$CPP $CPPFLAGS'
6387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6390
6391 fi
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6393 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6394 if test yes != "$lt_cv_cc_needs_belf"; then
6395 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6396 CFLAGS=$SAVE_CFLAGS
6397 fi
6398 ;;
6399 *-*solaris*)
6400 # Find out what ABI is being produced by ac_compile, and set linker
6401 # options accordingly.
6402 echo 'int i;' > conftest.$ac_ext
6403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404 (eval $ac_compile) 2>&5
6405 ac_status=$?
6406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407 test $ac_status = 0; }; then
6408 case `/usr/bin/file conftest.o` in
6409 *64-bit*)
6410 case $lt_cv_prog_gnu_ld in
6411 yes*)
6412 case $host in
6413 i?86-*-solaris*|x86_64-*-solaris*)
6414 LD="${LD-ld} -m elf_x86_64"
6415 ;;
6416 sparc*-*-solaris*)
6417 LD="${LD-ld} -m elf64_sparc"
6418 ;;
6419 esac
6420 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6421 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6422 LD=${LD-ld}_sol2
6423 fi
6424 ;;
6425 *)
6426 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6427 LD="${LD-ld} -64"
6428 fi
6429 ;;
6430 esac
6431 ;;
6432 esac
6433 fi
6434 rm -rf conftest*
6435 ;;
6436 esac
6437
6438 need_locks=$enable_libtool_lock
6439
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}mt; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$MANIFEST_TOOL"; then
6449 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6453 do
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6461 fi
6462 done
6463 done
6464 IFS=$as_save_IFS
6465
6466 fi
6467 fi
6468 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6469 if test -n "$MANIFEST_TOOL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6471 $as_echo "$MANIFEST_TOOL" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6475 fi
6476
6477
6478 fi
6479 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6480 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6481 # Extract the first word of "mt", so it can be a program name with args.
6482 set dummy mt; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$ac_ct_MANIFEST_TOOL"; then
6489 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6501 fi
6502 done
6503 done
6504 IFS=$as_save_IFS
6505
6506 fi
6507 fi
6508 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6509 if test -n "$ac_ct_MANIFEST_TOOL"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6511 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6515 fi
6516
6517 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6518 MANIFEST_TOOL=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6527 fi
6528 else
6529 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6530 fi
6531
6532 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6534 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6535 if ${lt_cv_path_mainfest_tool+:} false; then :
6536 $as_echo_n "(cached) " >&6
6537 else
6538 lt_cv_path_mainfest_tool=no
6539 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6540 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6541 cat conftest.err >&5
6542 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6543 lt_cv_path_mainfest_tool=yes
6544 fi
6545 rm -f conftest*
6546 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6548 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6549 if test yes != "$lt_cv_path_mainfest_tool"; then
6550 MANIFEST_TOOL=:
6551 fi
6552
6553
6554
6555
6556
6557
6558 case $host_os in
6559 rhapsody* | darwin*)
6560 if test -n "$ac_tool_prefix"; then
6561 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6562 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564 $as_echo_n "checking for $ac_word... " >&6; }
6565 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6566 $as_echo_n "(cached) " >&6
6567 else
6568 if test -n "$DSYMUTIL"; then
6569 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6570 else
6571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6572 for as_dir in $PATH
6573 do
6574 IFS=$as_save_IFS
6575 test -z "$as_dir" && as_dir=.
6576 for ac_exec_ext in '' $ac_executable_extensions; do
6577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6580 break 2
6581 fi
6582 done
6583 done
6584 IFS=$as_save_IFS
6585
6586 fi
6587 fi
6588 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6589 if test -n "$DSYMUTIL"; then
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6591 $as_echo "$DSYMUTIL" >&6; }
6592 else
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6595 fi
6596
6597
6598 fi
6599 if test -z "$ac_cv_prog_DSYMUTIL"; then
6600 ac_ct_DSYMUTIL=$DSYMUTIL
6601 # Extract the first word of "dsymutil", so it can be a program name with args.
6602 set dummy dsymutil; ac_word=$2
6603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604 $as_echo_n "checking for $ac_word... " >&6; }
6605 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6606 $as_echo_n "(cached) " >&6
6607 else
6608 if test -n "$ac_ct_DSYMUTIL"; then
6609 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 test -z "$as_dir" && as_dir=.
6616 for ac_exec_ext in '' $ac_executable_extensions; do
6617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6620 break 2
6621 fi
6622 done
6623 done
6624 IFS=$as_save_IFS
6625
6626 fi
6627 fi
6628 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6629 if test -n "$ac_ct_DSYMUTIL"; then
6630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6631 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6632 else
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634 $as_echo "no" >&6; }
6635 fi
6636
6637 if test "x$ac_ct_DSYMUTIL" = x; then
6638 DSYMUTIL=":"
6639 else
6640 case $cross_compiling:$ac_tool_warned in
6641 yes:)
6642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644 ac_tool_warned=yes ;;
6645 esac
6646 DSYMUTIL=$ac_ct_DSYMUTIL
6647 fi
6648 else
6649 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6650 fi
6651
6652 if test -n "$ac_tool_prefix"; then
6653 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6654 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656 $as_echo_n "checking for $ac_word... " >&6; }
6657 if ${ac_cv_prog_NMEDIT+:} false; then :
6658 $as_echo_n "(cached) " >&6
6659 else
6660 if test -n "$NMEDIT"; then
6661 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6662 else
6663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6664 for as_dir in $PATH
6665 do
6666 IFS=$as_save_IFS
6667 test -z "$as_dir" && as_dir=.
6668 for ac_exec_ext in '' $ac_executable_extensions; do
6669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6672 break 2
6673 fi
6674 done
6675 done
6676 IFS=$as_save_IFS
6677
6678 fi
6679 fi
6680 NMEDIT=$ac_cv_prog_NMEDIT
6681 if test -n "$NMEDIT"; then
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6683 $as_echo "$NMEDIT" >&6; }
6684 else
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686 $as_echo "no" >&6; }
6687 fi
6688
6689
6690 fi
6691 if test -z "$ac_cv_prog_NMEDIT"; then
6692 ac_ct_NMEDIT=$NMEDIT
6693 # Extract the first word of "nmedit", so it can be a program name with args.
6694 set dummy nmedit; ac_word=$2
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696 $as_echo_n "checking for $ac_word... " >&6; }
6697 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6698 $as_echo_n "(cached) " >&6
6699 else
6700 if test -n "$ac_ct_NMEDIT"; then
6701 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6702 else
6703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6704 for as_dir in $PATH
6705 do
6706 IFS=$as_save_IFS
6707 test -z "$as_dir" && as_dir=.
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi
6719 fi
6720 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6721 if test -n "$ac_ct_NMEDIT"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6723 $as_echo "$ac_ct_NMEDIT" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726 $as_echo "no" >&6; }
6727 fi
6728
6729 if test "x$ac_ct_NMEDIT" = x; then
6730 NMEDIT=":"
6731 else
6732 case $cross_compiling:$ac_tool_warned in
6733 yes:)
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736 ac_tool_warned=yes ;;
6737 esac
6738 NMEDIT=$ac_ct_NMEDIT
6739 fi
6740 else
6741 NMEDIT="$ac_cv_prog_NMEDIT"
6742 fi
6743
6744 if test -n "$ac_tool_prefix"; then
6745 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6746 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748 $as_echo_n "checking for $ac_word... " >&6; }
6749 if ${ac_cv_prog_LIPO+:} false; then :
6750 $as_echo_n "(cached) " >&6
6751 else
6752 if test -n "$LIPO"; then
6753 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6754 else
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6756 for as_dir in $PATH
6757 do
6758 IFS=$as_save_IFS
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6764 break 2
6765 fi
6766 done
6767 done
6768 IFS=$as_save_IFS
6769
6770 fi
6771 fi
6772 LIPO=$ac_cv_prog_LIPO
6773 if test -n "$LIPO"; then
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6775 $as_echo "$LIPO" >&6; }
6776 else
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778 $as_echo "no" >&6; }
6779 fi
6780
6781
6782 fi
6783 if test -z "$ac_cv_prog_LIPO"; then
6784 ac_ct_LIPO=$LIPO
6785 # Extract the first word of "lipo", so it can be a program name with args.
6786 set dummy lipo; ac_word=$2
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788 $as_echo_n "checking for $ac_word... " >&6; }
6789 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6790 $as_echo_n "(cached) " >&6
6791 else
6792 if test -n "$ac_ct_LIPO"; then
6793 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6794 else
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6796 for as_dir in $PATH
6797 do
6798 IFS=$as_save_IFS
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802 ac_cv_prog_ac_ct_LIPO="lipo"
6803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6804 break 2
6805 fi
6806 done
6807 done
6808 IFS=$as_save_IFS
6809
6810 fi
6811 fi
6812 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6813 if test -n "$ac_ct_LIPO"; then
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6815 $as_echo "$ac_ct_LIPO" >&6; }
6816 else
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818 $as_echo "no" >&6; }
6819 fi
6820
6821 if test "x$ac_ct_LIPO" = x; then
6822 LIPO=":"
6823 else
6824 case $cross_compiling:$ac_tool_warned in
6825 yes:)
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828 ac_tool_warned=yes ;;
6829 esac
6830 LIPO=$ac_ct_LIPO
6831 fi
6832 else
6833 LIPO="$ac_cv_prog_LIPO"
6834 fi
6835
6836 if test -n "$ac_tool_prefix"; then
6837 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6838 set dummy ${ac_tool_prefix}otool; ac_word=$2
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840 $as_echo_n "checking for $ac_word... " >&6; }
6841 if ${ac_cv_prog_OTOOL+:} false; then :
6842 $as_echo_n "(cached) " >&6
6843 else
6844 if test -n "$OTOOL"; then
6845 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6846 else
6847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6848 for as_dir in $PATH
6849 do
6850 IFS=$as_save_IFS
6851 test -z "$as_dir" && as_dir=.
6852 for ac_exec_ext in '' $ac_executable_extensions; do
6853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6856 break 2
6857 fi
6858 done
6859 done
6860 IFS=$as_save_IFS
6861
6862 fi
6863 fi
6864 OTOOL=$ac_cv_prog_OTOOL
6865 if test -n "$OTOOL"; then
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6867 $as_echo "$OTOOL" >&6; }
6868 else
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870 $as_echo "no" >&6; }
6871 fi
6872
6873
6874 fi
6875 if test -z "$ac_cv_prog_OTOOL"; then
6876 ac_ct_OTOOL=$OTOOL
6877 # Extract the first word of "otool", so it can be a program name with args.
6878 set dummy otool; ac_word=$2
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880 $as_echo_n "checking for $ac_word... " >&6; }
6881 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6882 $as_echo_n "(cached) " >&6
6883 else
6884 if test -n "$ac_ct_OTOOL"; then
6885 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6886 else
6887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6888 for as_dir in $PATH
6889 do
6890 IFS=$as_save_IFS
6891 test -z "$as_dir" && as_dir=.
6892 for ac_exec_ext in '' $ac_executable_extensions; do
6893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894 ac_cv_prog_ac_ct_OTOOL="otool"
6895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 break 2
6897 fi
6898 done
6899 done
6900 IFS=$as_save_IFS
6901
6902 fi
6903 fi
6904 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6905 if test -n "$ac_ct_OTOOL"; then
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6907 $as_echo "$ac_ct_OTOOL" >&6; }
6908 else
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910 $as_echo "no" >&6; }
6911 fi
6912
6913 if test "x$ac_ct_OTOOL" = x; then
6914 OTOOL=":"
6915 else
6916 case $cross_compiling:$ac_tool_warned in
6917 yes:)
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920 ac_tool_warned=yes ;;
6921 esac
6922 OTOOL=$ac_ct_OTOOL
6923 fi
6924 else
6925 OTOOL="$ac_cv_prog_OTOOL"
6926 fi
6927
6928 if test -n "$ac_tool_prefix"; then
6929 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6930 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932 $as_echo_n "checking for $ac_word... " >&6; }
6933 if ${ac_cv_prog_OTOOL64+:} false; then :
6934 $as_echo_n "(cached) " >&6
6935 else
6936 if test -n "$OTOOL64"; then
6937 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6938 else
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 for as_dir in $PATH
6941 do
6942 IFS=$as_save_IFS
6943 test -z "$as_dir" && as_dir=.
6944 for ac_exec_ext in '' $ac_executable_extensions; do
6945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 break 2
6949 fi
6950 done
6951 done
6952 IFS=$as_save_IFS
6953
6954 fi
6955 fi
6956 OTOOL64=$ac_cv_prog_OTOOL64
6957 if test -n "$OTOOL64"; then
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6959 $as_echo "$OTOOL64" >&6; }
6960 else
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962 $as_echo "no" >&6; }
6963 fi
6964
6965
6966 fi
6967 if test -z "$ac_cv_prog_OTOOL64"; then
6968 ac_ct_OTOOL64=$OTOOL64
6969 # Extract the first word of "otool64", so it can be a program name with args.
6970 set dummy otool64; ac_word=$2
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972 $as_echo_n "checking for $ac_word... " >&6; }
6973 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6974 $as_echo_n "(cached) " >&6
6975 else
6976 if test -n "$ac_ct_OTOOL64"; then
6977 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6978 else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980 for as_dir in $PATH
6981 do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_exec_ext in '' $ac_executable_extensions; do
6985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986 ac_cv_prog_ac_ct_OTOOL64="otool64"
6987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 break 2
6989 fi
6990 done
6991 done
6992 IFS=$as_save_IFS
6993
6994 fi
6995 fi
6996 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6997 if test -n "$ac_ct_OTOOL64"; then
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6999 $as_echo "$ac_ct_OTOOL64" >&6; }
7000 else
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002 $as_echo "no" >&6; }
7003 fi
7004
7005 if test "x$ac_ct_OTOOL64" = x; then
7006 OTOOL64=":"
7007 else
7008 case $cross_compiling:$ac_tool_warned in
7009 yes:)
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012 ac_tool_warned=yes ;;
7013 esac
7014 OTOOL64=$ac_ct_OTOOL64
7015 fi
7016 else
7017 OTOOL64="$ac_cv_prog_OTOOL64"
7018 fi
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7047 $as_echo_n "checking for -single_module linker flag... " >&6; }
7048 if ${lt_cv_apple_cc_single_mod+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 lt_cv_apple_cc_single_mod=no
7052 if test -z "$LT_MULTI_MODULE"; then
7053 # By default we will add the -single_module flag. You can override
7054 # by either setting the environment variable LT_MULTI_MODULE
7055 # non-empty at configure time, or by adding -multi_module to the
7056 # link flags.
7057 rm -rf libconftest.dylib*
7058 echo "int foo(void){return 1;}" > conftest.c
7059 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7060 -dynamiclib -Wl,-single_module conftest.c" >&5
7061 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7062 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7063 _lt_result=$?
7064 # If there is a non-empty error log, and "single_module"
7065 # appears in it, assume the flag caused a linker warning
7066 if test -s conftest.err && $GREP single_module conftest.err; then
7067 cat conftest.err >&5
7068 # Otherwise, if the output was created with a 0 exit code from
7069 # the compiler, it worked.
7070 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7071 lt_cv_apple_cc_single_mod=yes
7072 else
7073 cat conftest.err >&5
7074 fi
7075 rm -rf libconftest.dylib*
7076 rm -f conftest.*
7077 fi
7078 fi
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7080 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7081
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7083 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7084 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086 else
7087 lt_cv_ld_exported_symbols_list=no
7088 save_LDFLAGS=$LDFLAGS
7089 echo "_main" > conftest.sym
7090 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092 /* end confdefs.h. */
7093
7094 int
7095 main ()
7096 {
7097
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 if ac_fn_c_try_link "$LINENO"; then :
7103 lt_cv_ld_exported_symbols_list=yes
7104 else
7105 lt_cv_ld_exported_symbols_list=no
7106 fi
7107 rm -f core conftest.err conftest.$ac_objext \
7108 conftest$ac_exeext conftest.$ac_ext
7109 LDFLAGS=$save_LDFLAGS
7110
7111 fi
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7113 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7114
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7116 $as_echo_n "checking for -force_load linker flag... " >&6; }
7117 if ${lt_cv_ld_force_load+:} false; then :
7118 $as_echo_n "(cached) " >&6
7119 else
7120 lt_cv_ld_force_load=no
7121 cat > conftest.c << _LT_EOF
7122 int forced_loaded() { return 2;}
7123 _LT_EOF
7124 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7125 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7126 echo "$AR cru libconftest.a conftest.o" >&5
7127 $AR cru libconftest.a conftest.o 2>&5
7128 echo "$RANLIB libconftest.a" >&5
7129 $RANLIB libconftest.a 2>&5
7130 cat > conftest.c << _LT_EOF
7131 int main() { return 0;}
7132 _LT_EOF
7133 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7134 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7135 _lt_result=$?
7136 if test -s conftest.err && $GREP force_load conftest.err; then
7137 cat conftest.err >&5
7138 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7139 lt_cv_ld_force_load=yes
7140 else
7141 cat conftest.err >&5
7142 fi
7143 rm -f conftest.err libconftest.a conftest conftest.c
7144 rm -rf conftest.dSYM
7145
7146 fi
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7148 $as_echo "$lt_cv_ld_force_load" >&6; }
7149 case $host_os in
7150 rhapsody* | darwin1.[012])
7151 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7152 darwin1.*)
7153 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7154 darwin*) # darwin 5.x on
7155 # if running on 10.5 or later, the deployment target defaults
7156 # to the OS version, if on x86, and 10.4, the deployment
7157 # target defaults to 10.4. Don't you love it?
7158 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7159 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7160 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7161 10.[012][,.]*)
7162 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7163 10.*)
7164 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7165 esac
7166 ;;
7167 esac
7168 if test yes = "$lt_cv_apple_cc_single_mod"; then
7169 _lt_dar_single_mod='$single_module'
7170 fi
7171 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7172 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7173 else
7174 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7175 fi
7176 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7177 _lt_dsymutil='~$DSYMUTIL $lib || :'
7178 else
7179 _lt_dsymutil=
7180 fi
7181 ;;
7182 esac
7183
7184 # func_munge_path_list VARIABLE PATH
7185 # -----------------------------------
7186 # VARIABLE is name of variable containing _space_ separated list of
7187 # directories to be munged by the contents of PATH, which is string
7188 # having a format:
7189 # "DIR[:DIR]:"
7190 # string "DIR[ DIR]" will be prepended to VARIABLE
7191 # ":DIR[:DIR]"
7192 # string "DIR[ DIR]" will be appended to VARIABLE
7193 # "DIRP[:DIRP]::[DIRA:]DIRA"
7194 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7195 # "DIRA[ DIRA]" will be appended to VARIABLE
7196 # "DIR[:DIR]"
7197 # VARIABLE will be replaced by "DIR[ DIR]"
7198 func_munge_path_list ()
7199 {
7200 case x$2 in
7201 x)
7202 ;;
7203 *:)
7204 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7205 ;;
7206 x:*)
7207 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7208 ;;
7209 *::*)
7210 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7211 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7212 ;;
7213 *)
7214 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7215 ;;
7216 esac
7217 }
7218
7219 ac_ext=c
7220 ac_cpp='$CPP $CPPFLAGS'
7221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7225 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7226 # On Suns, sometimes $CPP names a directory.
7227 if test -n "$CPP" && test -d "$CPP"; then
7228 CPP=
7229 fi
7230 if test -z "$CPP"; then
7231 if ${ac_cv_prog_CPP+:} false; then :
7232 $as_echo_n "(cached) " >&6
7233 else
7234 # Double quotes because CPP needs to be expanded
7235 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7236 do
7237 ac_preproc_ok=false
7238 for ac_c_preproc_warn_flag in '' yes
7239 do
7240 # Use a header file that comes with gcc, so configuring glibc
7241 # with a fresh cross-compiler works.
7242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7243 # <limits.h> exists even on freestanding compilers.
7244 # On the NeXT, cc -E runs the code through the compiler's parser,
7245 # not just through cpp. "Syntax error" is here to catch this case.
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7248 #ifdef __STDC__
7249 # include <limits.h>
7250 #else
7251 # include <assert.h>
7252 #endif
7253 Syntax error
7254 _ACEOF
7255 if ac_fn_c_try_cpp "$LINENO"; then :
7256
7257 else
7258 # Broken: fails on valid input.
7259 continue
7260 fi
7261 rm -f conftest.err conftest.i conftest.$ac_ext
7262
7263 # OK, works on sane cases. Now check whether nonexistent headers
7264 # can be detected and how.
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7267 #include <ac_nonexistent.h>
7268 _ACEOF
7269 if ac_fn_c_try_cpp "$LINENO"; then :
7270 # Broken: success on invalid input.
7271 continue
7272 else
7273 # Passes both tests.
7274 ac_preproc_ok=:
7275 break
7276 fi
7277 rm -f conftest.err conftest.i conftest.$ac_ext
7278
7279 done
7280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7281 rm -f conftest.i conftest.err conftest.$ac_ext
7282 if $ac_preproc_ok; then :
7283 break
7284 fi
7285
7286 done
7287 ac_cv_prog_CPP=$CPP
7288
7289 fi
7290 CPP=$ac_cv_prog_CPP
7291 else
7292 ac_cv_prog_CPP=$CPP
7293 fi
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7295 $as_echo "$CPP" >&6; }
7296 ac_preproc_ok=false
7297 for ac_c_preproc_warn_flag in '' yes
7298 do
7299 # Use a header file that comes with gcc, so configuring glibc
7300 # with a fresh cross-compiler works.
7301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7302 # <limits.h> exists even on freestanding compilers.
7303 # On the NeXT, cc -E runs the code through the compiler's parser,
7304 # not just through cpp. "Syntax error" is here to catch this case.
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7307 #ifdef __STDC__
7308 # include <limits.h>
7309 #else
7310 # include <assert.h>
7311 #endif
7312 Syntax error
7313 _ACEOF
7314 if ac_fn_c_try_cpp "$LINENO"; then :
7315
7316 else
7317 # Broken: fails on valid input.
7318 continue
7319 fi
7320 rm -f conftest.err conftest.i conftest.$ac_ext
7321
7322 # OK, works on sane cases. Now check whether nonexistent headers
7323 # can be detected and how.
7324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7325 /* end confdefs.h. */
7326 #include <ac_nonexistent.h>
7327 _ACEOF
7328 if ac_fn_c_try_cpp "$LINENO"; then :
7329 # Broken: success on invalid input.
7330 continue
7331 else
7332 # Passes both tests.
7333 ac_preproc_ok=:
7334 break
7335 fi
7336 rm -f conftest.err conftest.i conftest.$ac_ext
7337
7338 done
7339 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7340 rm -f conftest.i conftest.err conftest.$ac_ext
7341 if $ac_preproc_ok; then :
7342
7343 else
7344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7346 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7347 See \`config.log' for more details" "$LINENO" 5; }
7348 fi
7349
7350 ac_ext=c
7351 ac_cpp='$CPP $CPPFLAGS'
7352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7355
7356
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7358 $as_echo_n "checking for ANSI C header files... " >&6; }
7359 if ${ac_cv_header_stdc+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7364 #include <stdlib.h>
7365 #include <stdarg.h>
7366 #include <string.h>
7367 #include <float.h>
7368
7369 int
7370 main ()
7371 {
7372
7373 ;
7374 return 0;
7375 }
7376 _ACEOF
7377 if ac_fn_c_try_compile "$LINENO"; then :
7378 ac_cv_header_stdc=yes
7379 else
7380 ac_cv_header_stdc=no
7381 fi
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383
7384 if test $ac_cv_header_stdc = yes; then
7385 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7388 #include <string.h>
7389
7390 _ACEOF
7391 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7392 $EGREP "memchr" >/dev/null 2>&1; then :
7393
7394 else
7395 ac_cv_header_stdc=no
7396 fi
7397 rm -f conftest*
7398
7399 fi
7400
7401 if test $ac_cv_header_stdc = yes; then
7402 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7404 /* end confdefs.h. */
7405 #include <stdlib.h>
7406
7407 _ACEOF
7408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7409 $EGREP "free" >/dev/null 2>&1; then :
7410
7411 else
7412 ac_cv_header_stdc=no
7413 fi
7414 rm -f conftest*
7415
7416 fi
7417
7418 if test $ac_cv_header_stdc = yes; then
7419 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7420 if test "$cross_compiling" = yes; then :
7421 :
7422 else
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425 #include <ctype.h>
7426 #include <stdlib.h>
7427 #if ((' ' & 0x0FF) == 0x020)
7428 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7429 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7430 #else
7431 # define ISLOWER(c) \
7432 (('a' <= (c) && (c) <= 'i') \
7433 || ('j' <= (c) && (c) <= 'r') \
7434 || ('s' <= (c) && (c) <= 'z'))
7435 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7436 #endif
7437
7438 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7439 int
7440 main ()
7441 {
7442 int i;
7443 for (i = 0; i < 256; i++)
7444 if (XOR (islower (i), ISLOWER (i))
7445 || toupper (i) != TOUPPER (i))
7446 return 2;
7447 return 0;
7448 }
7449 _ACEOF
7450 if ac_fn_c_try_run "$LINENO"; then :
7451
7452 else
7453 ac_cv_header_stdc=no
7454 fi
7455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7456 conftest.$ac_objext conftest.beam conftest.$ac_ext
7457 fi
7458
7459 fi
7460 fi
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7462 $as_echo "$ac_cv_header_stdc" >&6; }
7463 if test $ac_cv_header_stdc = yes; then
7464
7465 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7466
7467 fi
7468
7469 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7470 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7471 inttypes.h stdint.h unistd.h
7472 do :
7473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7474 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7475 "
7476 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7477 cat >>confdefs.h <<_ACEOF
7478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7479 _ACEOF
7480
7481 fi
7482
7483 done
7484
7485
7486 for ac_header in dlfcn.h
7487 do :
7488 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7489 "
7490 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7491 cat >>confdefs.h <<_ACEOF
7492 #define HAVE_DLFCN_H 1
7493 _ACEOF
7494
7495 fi
7496
7497 done
7498
7499
7500
7501
7502
7503 # Set options
7504
7505
7506
7507 enable_dlopen=no
7508
7509
7510 enable_win32_dll=no
7511
7512
7513 # Check whether --enable-shared was given.
7514 if test "${enable_shared+set}" = set; then :
7515 enableval=$enable_shared; p=${PACKAGE-default}
7516 case $enableval in
7517 yes) enable_shared=yes ;;
7518 no) enable_shared=no ;;
7519 *)
7520 enable_shared=no
7521 # Look at the argument we got. We use all the common list separators.
7522 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7523 for pkg in $enableval; do
7524 IFS=$lt_save_ifs
7525 if test "X$pkg" = "X$p"; then
7526 enable_shared=yes
7527 fi
7528 done
7529 IFS=$lt_save_ifs
7530 ;;
7531 esac
7532 else
7533 enable_shared=yes
7534 fi
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544 # Check whether --enable-static was given.
7545 if test "${enable_static+set}" = set; then :
7546 enableval=$enable_static; p=${PACKAGE-default}
7547 case $enableval in
7548 yes) enable_static=yes ;;
7549 no) enable_static=no ;;
7550 *)
7551 enable_static=no
7552 # Look at the argument we got. We use all the common list separators.
7553 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7554 for pkg in $enableval; do
7555 IFS=$lt_save_ifs
7556 if test "X$pkg" = "X$p"; then
7557 enable_static=yes
7558 fi
7559 done
7560 IFS=$lt_save_ifs
7561 ;;
7562 esac
7563 else
7564 enable_static=yes
7565 fi
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576 # Check whether --with-pic was given.
7577 if test "${with_pic+set}" = set; then :
7578 withval=$with_pic; lt_p=${PACKAGE-default}
7579 case $withval in
7580 yes|no) pic_mode=$withval ;;
7581 *)
7582 pic_mode=default
7583 # Look at the argument we got. We use all the common list separators.
7584 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7585 for lt_pkg in $withval; do
7586 IFS=$lt_save_ifs
7587 if test "X$lt_pkg" = "X$lt_p"; then
7588 pic_mode=yes
7589 fi
7590 done
7591 IFS=$lt_save_ifs
7592 ;;
7593 esac
7594 else
7595 pic_mode=default
7596 fi
7597
7598
7599
7600
7601
7602
7603
7604
7605 # Check whether --enable-fast-install was given.
7606 if test "${enable_fast_install+set}" = set; then :
7607 enableval=$enable_fast_install; p=${PACKAGE-default}
7608 case $enableval in
7609 yes) enable_fast_install=yes ;;
7610 no) enable_fast_install=no ;;
7611 *)
7612 enable_fast_install=no
7613 # Look at the argument we got. We use all the common list separators.
7614 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
7615 for pkg in $enableval; do
7616 IFS=$lt_save_ifs
7617 if test "X$pkg" = "X$p"; then
7618 enable_fast_install=yes
7619 fi
7620 done
7621 IFS=$lt_save_ifs
7622 ;;
7623 esac
7624 else
7625 enable_fast_install=yes
7626 fi
7627
7628
7629
7630
7631
7632
7633
7634
7635 shared_archive_member_spec=
7636 case $host,$enable_shared in
7637 power*-*-aix[5-9]*,yes)
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
7639 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
7640
7641 # Check whether --with-aix-soname was given.
7642 if test "${with_aix_soname+set}" = set; then :
7643 withval=$with_aix_soname; case $withval in
7644 aix|svr4|both)
7645 ;;
7646 *)
7647 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
7648 ;;
7649 esac
7650 lt_cv_with_aix_soname=$with_aix_soname
7651 else
7652 if ${lt_cv_with_aix_soname+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 lt_cv_with_aix_soname=aix
7656 fi
7657
7658 with_aix_soname=$lt_cv_with_aix_soname
7659 fi
7660
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
7662 $as_echo "$with_aix_soname" >&6; }
7663 if test aix != "$with_aix_soname"; then
7664 # For the AIX way of multilib, we name the shared archive member
7665 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
7666 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
7667 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
7668 # the AIX toolchain works better with OBJECT_MODE set (default 32).
7669 if test 64 = "${OBJECT_MODE-32}"; then
7670 shared_archive_member_spec=shr_64
7671 else
7672 shared_archive_member_spec=shr
7673 fi
7674 fi
7675 ;;
7676 *)
7677 with_aix_soname=aix
7678 ;;
7679 esac
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690 # This can be used to rebuild libtool when needed
7691 LIBTOOL_DEPS=$ltmain
7692
7693 # Always use our own libtool.
7694 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725 test -z "$LN_S" && LN_S="ln -s"
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740 if test -n "${ZSH_VERSION+set}"; then
7741 setopt NO_GLOB_SUBST
7742 fi
7743
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7745 $as_echo_n "checking for objdir... " >&6; }
7746 if ${lt_cv_objdir+:} false; then :
7747 $as_echo_n "(cached) " >&6
7748 else
7749 rm -f .libs 2>/dev/null
7750 mkdir .libs 2>/dev/null
7751 if test -d .libs; then
7752 lt_cv_objdir=.libs
7753 else
7754 # MS-DOS does not allow filenames that begin with a dot.
7755 lt_cv_objdir=_libs
7756 fi
7757 rmdir .libs 2>/dev/null
7758 fi
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7760 $as_echo "$lt_cv_objdir" >&6; }
7761 objdir=$lt_cv_objdir
7762
7763
7764
7765
7766
7767 cat >>confdefs.h <<_ACEOF
7768 #define LT_OBJDIR "$lt_cv_objdir/"
7769 _ACEOF
7770
7771
7772
7773
7774 case $host_os in
7775 aix3*)
7776 # AIX sometimes has problems with the GCC collect2 program. For some
7777 # reason, if we set the COLLECT_NAMES environment variable, the problems
7778 # vanish in a puff of smoke.
7779 if test set != "${COLLECT_NAMES+set}"; then
7780 COLLECT_NAMES=
7781 export COLLECT_NAMES
7782 fi
7783 ;;
7784 esac
7785
7786 # Global variables:
7787 ofile=libtool
7788 can_build_shared=yes
7789
7790 # All known linkers require a '.a' archive for static linking (except MSVC,
7791 # which needs '.lib').
7792 libext=a
7793
7794 with_gnu_ld=$lt_cv_prog_gnu_ld
7795
7796 old_CC=$CC
7797 old_CFLAGS=$CFLAGS
7798
7799 # Set sane defaults for various variables
7800 test -z "$CC" && CC=cc
7801 test -z "$LTCC" && LTCC=$CC
7802 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7803 test -z "$LD" && LD=ld
7804 test -z "$ac_objext" && ac_objext=o
7805
7806 func_cc_basename $compiler
7807 cc_basename=$func_cc_basename_result
7808
7809
7810 # Only perform the check for file, if the check method requires it
7811 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7812 case $deplibs_check_method in
7813 file_magic*)
7814 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7816 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7817 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 case $MAGIC_CMD in
7821 [\\/*] | ?:[\\/]*)
7822 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7823 ;;
7824 *)
7825 lt_save_MAGIC_CMD=$MAGIC_CMD
7826 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7827 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7828 for ac_dir in $ac_dummy; do
7829 IFS=$lt_save_ifs
7830 test -z "$ac_dir" && ac_dir=.
7831 if test -f "$ac_dir/${ac_tool_prefix}file"; then
7832 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
7833 if test -n "$file_magic_test_file"; then
7834 case $deplibs_check_method in
7835 "file_magic "*)
7836 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7837 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7838 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7839 $EGREP "$file_magic_regex" > /dev/null; then
7840 :
7841 else
7842 cat <<_LT_EOF 1>&2
7843
7844 *** Warning: the command libtool uses to detect shared libraries,
7845 *** $file_magic_cmd, produces output that libtool cannot recognize.
7846 *** The result is that libtool may fail to recognize shared libraries
7847 *** as such. This will affect the creation of libtool libraries that
7848 *** depend on shared libraries, but programs linked with such libtool
7849 *** libraries will work regardless of this problem. Nevertheless, you
7850 *** may want to report the problem to your system manager and/or to
7851 *** bug-libtool@gnu.org
7852
7853 _LT_EOF
7854 fi ;;
7855 esac
7856 fi
7857 break
7858 fi
7859 done
7860 IFS=$lt_save_ifs
7861 MAGIC_CMD=$lt_save_MAGIC_CMD
7862 ;;
7863 esac
7864 fi
7865
7866 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7867 if test -n "$MAGIC_CMD"; then
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7869 $as_echo "$MAGIC_CMD" >&6; }
7870 else
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7872 $as_echo "no" >&6; }
7873 fi
7874
7875
7876
7877
7878
7879 if test -z "$lt_cv_path_MAGIC_CMD"; then
7880 if test -n "$ac_tool_prefix"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7882 $as_echo_n "checking for file... " >&6; }
7883 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7884 $as_echo_n "(cached) " >&6
7885 else
7886 case $MAGIC_CMD in
7887 [\\/*] | ?:[\\/]*)
7888 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
7889 ;;
7890 *)
7891 lt_save_MAGIC_CMD=$MAGIC_CMD
7892 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7893 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7894 for ac_dir in $ac_dummy; do
7895 IFS=$lt_save_ifs
7896 test -z "$ac_dir" && ac_dir=.
7897 if test -f "$ac_dir/file"; then
7898 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
7899 if test -n "$file_magic_test_file"; then
7900 case $deplibs_check_method in
7901 "file_magic "*)
7902 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7903 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7904 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7905 $EGREP "$file_magic_regex" > /dev/null; then
7906 :
7907 else
7908 cat <<_LT_EOF 1>&2
7909
7910 *** Warning: the command libtool uses to detect shared libraries,
7911 *** $file_magic_cmd, produces output that libtool cannot recognize.
7912 *** The result is that libtool may fail to recognize shared libraries
7913 *** as such. This will affect the creation of libtool libraries that
7914 *** depend on shared libraries, but programs linked with such libtool
7915 *** libraries will work regardless of this problem. Nevertheless, you
7916 *** may want to report the problem to your system manager and/or to
7917 *** bug-libtool@gnu.org
7918
7919 _LT_EOF
7920 fi ;;
7921 esac
7922 fi
7923 break
7924 fi
7925 done
7926 IFS=$lt_save_ifs
7927 MAGIC_CMD=$lt_save_MAGIC_CMD
7928 ;;
7929 esac
7930 fi
7931
7932 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
7933 if test -n "$MAGIC_CMD"; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7935 $as_echo "$MAGIC_CMD" >&6; }
7936 else
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939 fi
7940
7941
7942 else
7943 MAGIC_CMD=:
7944 fi
7945 fi
7946
7947 fi
7948 ;;
7949 esac
7950
7951 # Use C for the default configuration in the libtool script
7952
7953 lt_save_CC=$CC
7954 ac_ext=c
7955 ac_cpp='$CPP $CPPFLAGS'
7956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7959
7960
7961 # Source file extension for C test sources.
7962 ac_ext=c
7963
7964 # Object file extension for compiled C test sources.
7965 objext=o
7966 objext=$objext
7967
7968 # Code to be used in simple compile tests
7969 lt_simple_compile_test_code="int some_variable = 0;"
7970
7971 # Code to be used in simple link tests
7972 lt_simple_link_test_code='int main(){return(0);}'
7973
7974
7975
7976
7977
7978
7979
7980 # If no C compiler was specified, use CC.
7981 LTCC=${LTCC-"$CC"}
7982
7983 # If no C compiler flags were specified, use CFLAGS.
7984 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7985
7986 # Allow CC to be a program name with arguments.
7987 compiler=$CC
7988
7989 # Save the default compiler, since it gets overwritten when the other
7990 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7991 compiler_DEFAULT=$CC
7992
7993 # save warnings/boilerplate of simple test code
7994 ac_outfile=conftest.$ac_objext
7995 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7996 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7997 _lt_compiler_boilerplate=`cat conftest.err`
7998 $RM conftest*
7999
8000 ac_outfile=conftest.$ac_objext
8001 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8002 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8003 _lt_linker_boilerplate=`cat conftest.err`
8004 $RM -r conftest*
8005
8006
8007 ## CAVEAT EMPTOR:
8008 ## There is no encapsulation within the following macros, do not change
8009 ## the running order or otherwise move them around unless you know exactly
8010 ## what you are doing...
8011 if test -n "$compiler"; then
8012
8013 lt_prog_compiler_no_builtin_flag=
8014
8015 if test yes = "$GCC"; then
8016 case $cc_basename in
8017 nvcc*)
8018 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8019 *)
8020 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8021 esac
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8024 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8025 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8026 $as_echo_n "(cached) " >&6
8027 else
8028 lt_cv_prog_compiler_rtti_exceptions=no
8029 ac_outfile=conftest.$ac_objext
8030 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8031 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8032 # Insert the option either (1) after the last *FLAGS variable, or
8033 # (2) before a word containing "conftest.", or (3) at the end.
8034 # Note that $ac_compile itself does not contain backslashes and begins
8035 # with a dollar sign (not a hyphen), so the echo should work correctly.
8036 # The option is referenced via a variable to avoid confusing sed.
8037 lt_compile=`echo "$ac_compile" | $SED \
8038 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8039 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8040 -e 's:$: $lt_compiler_flag:'`
8041 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8042 (eval "$lt_compile" 2>conftest.err)
8043 ac_status=$?
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 if (exit $ac_status) && test -s "$ac_outfile"; then
8047 # The compiler can only warn and ignore the option if not recognized
8048 # So say no if there are warnings other than the usual output.
8049 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8050 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8051 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8052 lt_cv_prog_compiler_rtti_exceptions=yes
8053 fi
8054 fi
8055 $RM conftest*
8056
8057 fi
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8059 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8060
8061 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8062 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8063 else
8064 :
8065 fi
8066
8067 fi
8068
8069
8070
8071
8072
8073
8074 lt_prog_compiler_wl=
8075 lt_prog_compiler_pic=
8076 lt_prog_compiler_static=
8077
8078
8079 if test yes = "$GCC"; then
8080 lt_prog_compiler_wl='-Wl,'
8081 lt_prog_compiler_static='-static'
8082
8083 case $host_os in
8084 aix*)
8085 # All AIX code is PIC.
8086 if test ia64 = "$host_cpu"; then
8087 # AIX 5 now supports IA64 processor
8088 lt_prog_compiler_static='-Bstatic'
8089 fi
8090 lt_prog_compiler_pic='-fPIC'
8091 ;;
8092
8093 amigaos*)
8094 case $host_cpu in
8095 powerpc)
8096 # see comment about AmigaOS4 .so support
8097 lt_prog_compiler_pic='-fPIC'
8098 ;;
8099 m68k)
8100 # FIXME: we need at least 68020 code to build shared libraries, but
8101 # adding the '-m68020' flag to GCC prevents building anything better,
8102 # like '-m68040'.
8103 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8104 ;;
8105 esac
8106 ;;
8107
8108 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8109 # PIC is the default for these OSes.
8110 ;;
8111
8112 mingw* | cygwin* | pw32* | os2* | cegcc*)
8113 # This hack is so that the source file can tell whether it is being
8114 # built for inclusion in a dll (and should export symbols for example).
8115 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8116 # (--disable-auto-import) libraries
8117 lt_prog_compiler_pic='-DDLL_EXPORT'
8118 case $host_os in
8119 os2*)
8120 lt_prog_compiler_static='$wl-static'
8121 ;;
8122 esac
8123 ;;
8124
8125 darwin* | rhapsody*)
8126 # PIC is the default on this platform
8127 # Common symbols not allowed in MH_DYLIB files
8128 lt_prog_compiler_pic='-fno-common'
8129 ;;
8130
8131 haiku*)
8132 # PIC is the default for Haiku.
8133 # The "-static" flag exists, but is broken.
8134 lt_prog_compiler_static=
8135 ;;
8136
8137 hpux*)
8138 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8139 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8140 # sets the default TLS model and affects inlining.
8141 case $host_cpu in
8142 hppa*64*)
8143 # +Z the default
8144 ;;
8145 *)
8146 lt_prog_compiler_pic='-fPIC'
8147 ;;
8148 esac
8149 ;;
8150
8151 interix[3-9]*)
8152 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8153 # Instead, we relocate shared libraries at runtime.
8154 ;;
8155
8156 msdosdjgpp*)
8157 # Just because we use GCC doesn't mean we suddenly get shared libraries
8158 # on systems that don't support them.
8159 lt_prog_compiler_can_build_shared=no
8160 enable_shared=no
8161 ;;
8162
8163 *nto* | *qnx*)
8164 # QNX uses GNU C++, but need to define -shared option too, otherwise
8165 # it will coredump.
8166 lt_prog_compiler_pic='-fPIC -shared'
8167 ;;
8168
8169 sysv4*MP*)
8170 if test -d /usr/nec; then
8171 lt_prog_compiler_pic=-Kconform_pic
8172 fi
8173 ;;
8174
8175 *)
8176 lt_prog_compiler_pic='-fPIC'
8177 ;;
8178 esac
8179
8180 case $cc_basename in
8181 nvcc*) # Cuda Compiler Driver 2.2
8182 lt_prog_compiler_wl='-Xlinker '
8183 if test -n "$lt_prog_compiler_pic"; then
8184 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8185 fi
8186 ;;
8187 esac
8188 else
8189 # PORTME Check for flag to pass linker flags through the system compiler.
8190 case $host_os in
8191 aix*)
8192 lt_prog_compiler_wl='-Wl,'
8193 if test ia64 = "$host_cpu"; then
8194 # AIX 5 now supports IA64 processor
8195 lt_prog_compiler_static='-Bstatic'
8196 else
8197 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8198 fi
8199 ;;
8200
8201 darwin* | rhapsody*)
8202 # PIC is the default on this platform
8203 # Common symbols not allowed in MH_DYLIB files
8204 lt_prog_compiler_pic='-fno-common'
8205 case $cc_basename in
8206 nagfor*)
8207 # NAG Fortran compiler
8208 lt_prog_compiler_wl='-Wl,-Wl,,'
8209 lt_prog_compiler_pic='-PIC'
8210 lt_prog_compiler_static='-Bstatic'
8211 ;;
8212 esac
8213 ;;
8214
8215 mingw* | cygwin* | pw32* | os2* | cegcc*)
8216 # This hack is so that the source file can tell whether it is being
8217 # built for inclusion in a dll (and should export symbols for example).
8218 lt_prog_compiler_pic='-DDLL_EXPORT'
8219 case $host_os in
8220 os2*)
8221 lt_prog_compiler_static='$wl-static'
8222 ;;
8223 esac
8224 ;;
8225
8226 hpux9* | hpux10* | hpux11*)
8227 lt_prog_compiler_wl='-Wl,'
8228 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8229 # not for PA HP-UX.
8230 case $host_cpu in
8231 hppa*64*|ia64*)
8232 # +Z the default
8233 ;;
8234 *)
8235 lt_prog_compiler_pic='+Z'
8236 ;;
8237 esac
8238 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8239 lt_prog_compiler_static='$wl-a ${wl}archive'
8240 ;;
8241
8242 irix5* | irix6* | nonstopux*)
8243 lt_prog_compiler_wl='-Wl,'
8244 # PIC (with -KPIC) is the default.
8245 lt_prog_compiler_static='-non_shared'
8246 ;;
8247
8248 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8249 case $cc_basename in
8250 # old Intel for x86_64, which still supported -KPIC.
8251 ecc*)
8252 lt_prog_compiler_wl='-Wl,'
8253 lt_prog_compiler_pic='-KPIC'
8254 lt_prog_compiler_static='-static'
8255 ;;
8256 # icc used to be incompatible with GCC.
8257 # ICC 10 doesn't accept -KPIC any more.
8258 icc* | ifort*)
8259 lt_prog_compiler_wl='-Wl,'
8260 lt_prog_compiler_pic='-fPIC'
8261 lt_prog_compiler_static='-static'
8262 ;;
8263 # Lahey Fortran 8.1.
8264 lf95*)
8265 lt_prog_compiler_wl='-Wl,'
8266 lt_prog_compiler_pic='--shared'
8267 lt_prog_compiler_static='--static'
8268 ;;
8269 nagfor*)
8270 # NAG Fortran compiler
8271 lt_prog_compiler_wl='-Wl,-Wl,,'
8272 lt_prog_compiler_pic='-PIC'
8273 lt_prog_compiler_static='-Bstatic'
8274 ;;
8275 tcc*)
8276 # Fabrice Bellard et al's Tiny C Compiler
8277 lt_prog_compiler_wl='-Wl,'
8278 lt_prog_compiler_pic='-fPIC'
8279 lt_prog_compiler_static='-static'
8280 ;;
8281 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8282 # Portland Group compilers (*not* the Pentium gcc compiler,
8283 # which looks to be a dead project)
8284 lt_prog_compiler_wl='-Wl,'
8285 lt_prog_compiler_pic='-fpic'
8286 lt_prog_compiler_static='-Bstatic'
8287 ;;
8288 ccc*)
8289 lt_prog_compiler_wl='-Wl,'
8290 # All Alpha code is PIC.
8291 lt_prog_compiler_static='-non_shared'
8292 ;;
8293 xl* | bgxl* | bgf* | mpixl*)
8294 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8295 lt_prog_compiler_wl='-Wl,'
8296 lt_prog_compiler_pic='-qpic'
8297 lt_prog_compiler_static='-qstaticlink'
8298 ;;
8299 *)
8300 case `$CC -V 2>&1 | sed 5q` in
8301 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8302 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8303 lt_prog_compiler_pic='-KPIC'
8304 lt_prog_compiler_static='-Bstatic'
8305 lt_prog_compiler_wl=''
8306 ;;
8307 *Sun\ F* | *Sun*Fortran*)
8308 lt_prog_compiler_pic='-KPIC'
8309 lt_prog_compiler_static='-Bstatic'
8310 lt_prog_compiler_wl='-Qoption ld '
8311 ;;
8312 *Sun\ C*)
8313 # Sun C 5.9
8314 lt_prog_compiler_pic='-KPIC'
8315 lt_prog_compiler_static='-Bstatic'
8316 lt_prog_compiler_wl='-Wl,'
8317 ;;
8318 *Intel*\ [CF]*Compiler*)
8319 lt_prog_compiler_wl='-Wl,'
8320 lt_prog_compiler_pic='-fPIC'
8321 lt_prog_compiler_static='-static'
8322 ;;
8323 *Portland\ Group*)
8324 lt_prog_compiler_wl='-Wl,'
8325 lt_prog_compiler_pic='-fpic'
8326 lt_prog_compiler_static='-Bstatic'
8327 ;;
8328 esac
8329 ;;
8330 esac
8331 ;;
8332
8333 newsos6)
8334 lt_prog_compiler_pic='-KPIC'
8335 lt_prog_compiler_static='-Bstatic'
8336 ;;
8337
8338 *nto* | *qnx*)
8339 # QNX uses GNU C++, but need to define -shared option too, otherwise
8340 # it will coredump.
8341 lt_prog_compiler_pic='-fPIC -shared'
8342 ;;
8343
8344 osf3* | osf4* | osf5*)
8345 lt_prog_compiler_wl='-Wl,'
8346 # All OSF/1 code is PIC.
8347 lt_prog_compiler_static='-non_shared'
8348 ;;
8349
8350 rdos*)
8351 lt_prog_compiler_static='-non_shared'
8352 ;;
8353
8354 solaris*)
8355 lt_prog_compiler_pic='-KPIC'
8356 lt_prog_compiler_static='-Bstatic'
8357 case $cc_basename in
8358 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8359 lt_prog_compiler_wl='-Qoption ld ';;
8360 *)
8361 lt_prog_compiler_wl='-Wl,';;
8362 esac
8363 ;;
8364
8365 sunos4*)
8366 lt_prog_compiler_wl='-Qoption ld '
8367 lt_prog_compiler_pic='-PIC'
8368 lt_prog_compiler_static='-Bstatic'
8369 ;;
8370
8371 sysv4 | sysv4.2uw2* | sysv4.3*)
8372 lt_prog_compiler_wl='-Wl,'
8373 lt_prog_compiler_pic='-KPIC'
8374 lt_prog_compiler_static='-Bstatic'
8375 ;;
8376
8377 sysv4*MP*)
8378 if test -d /usr/nec; then
8379 lt_prog_compiler_pic='-Kconform_pic'
8380 lt_prog_compiler_static='-Bstatic'
8381 fi
8382 ;;
8383
8384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8385 lt_prog_compiler_wl='-Wl,'
8386 lt_prog_compiler_pic='-KPIC'
8387 lt_prog_compiler_static='-Bstatic'
8388 ;;
8389
8390 unicos*)
8391 lt_prog_compiler_wl='-Wl,'
8392 lt_prog_compiler_can_build_shared=no
8393 ;;
8394
8395 uts4*)
8396 lt_prog_compiler_pic='-pic'
8397 lt_prog_compiler_static='-Bstatic'
8398 ;;
8399
8400 *)
8401 lt_prog_compiler_can_build_shared=no
8402 ;;
8403 esac
8404 fi
8405
8406 case $host_os in
8407 # For platforms that do not support PIC, -DPIC is meaningless:
8408 *djgpp*)
8409 lt_prog_compiler_pic=
8410 ;;
8411 *)
8412 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8413 ;;
8414 esac
8415
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8417 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8418 if ${lt_cv_prog_compiler_pic+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8422 fi
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8424 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8425 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8426
8427 #
8428 # Check to make sure the PIC flag actually works.
8429 #
8430 if test -n "$lt_prog_compiler_pic"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8432 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8433 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8434 $as_echo_n "(cached) " >&6
8435 else
8436 lt_cv_prog_compiler_pic_works=no
8437 ac_outfile=conftest.$ac_objext
8438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8439 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8440 # Insert the option either (1) after the last *FLAGS variable, or
8441 # (2) before a word containing "conftest.", or (3) at the end.
8442 # Note that $ac_compile itself does not contain backslashes and begins
8443 # with a dollar sign (not a hyphen), so the echo should work correctly.
8444 # The option is referenced via a variable to avoid confusing sed.
8445 lt_compile=`echo "$ac_compile" | $SED \
8446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8448 -e 's:$: $lt_compiler_flag:'`
8449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8450 (eval "$lt_compile" 2>conftest.err)
8451 ac_status=$?
8452 cat conftest.err >&5
8453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8454 if (exit $ac_status) && test -s "$ac_outfile"; then
8455 # The compiler can only warn and ignore the option if not recognized
8456 # So say no if there are warnings other than the usual output.
8457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8460 lt_cv_prog_compiler_pic_works=yes
8461 fi
8462 fi
8463 $RM conftest*
8464
8465 fi
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8467 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8468
8469 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8470 case $lt_prog_compiler_pic in
8471 "" | " "*) ;;
8472 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8473 esac
8474 else
8475 lt_prog_compiler_pic=
8476 lt_prog_compiler_can_build_shared=no
8477 fi
8478
8479 fi
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490
8491 #
8492 # Check to make sure the static flag actually works.
8493 #
8494 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8496 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8497 if ${lt_cv_prog_compiler_static_works+:} false; then :
8498 $as_echo_n "(cached) " >&6
8499 else
8500 lt_cv_prog_compiler_static_works=no
8501 save_LDFLAGS=$LDFLAGS
8502 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8503 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8504 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8505 # The linker can only warn and ignore the option if not recognized
8506 # So say no if there are warnings
8507 if test -s conftest.err; then
8508 # Append any errors to the config.log.
8509 cat conftest.err 1>&5
8510 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8512 if diff conftest.exp conftest.er2 >/dev/null; then
8513 lt_cv_prog_compiler_static_works=yes
8514 fi
8515 else
8516 lt_cv_prog_compiler_static_works=yes
8517 fi
8518 fi
8519 $RM -r conftest*
8520 LDFLAGS=$save_LDFLAGS
8521
8522 fi
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8524 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8525
8526 if test yes = "$lt_cv_prog_compiler_static_works"; then
8527 :
8528 else
8529 lt_prog_compiler_static=
8530 fi
8531
8532
8533
8534
8535
8536
8537
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8539 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8540 if ${lt_cv_prog_compiler_c_o+:} false; then :
8541 $as_echo_n "(cached) " >&6
8542 else
8543 lt_cv_prog_compiler_c_o=no
8544 $RM -r conftest 2>/dev/null
8545 mkdir conftest
8546 cd conftest
8547 mkdir out
8548 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8549
8550 lt_compiler_flag="-o out/conftest2.$ac_objext"
8551 # Insert the option either (1) after the last *FLAGS variable, or
8552 # (2) before a word containing "conftest.", or (3) at the end.
8553 # Note that $ac_compile itself does not contain backslashes and begins
8554 # with a dollar sign (not a hyphen), so the echo should work correctly.
8555 lt_compile=`echo "$ac_compile" | $SED \
8556 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8557 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8558 -e 's:$: $lt_compiler_flag:'`
8559 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8560 (eval "$lt_compile" 2>out/conftest.err)
8561 ac_status=$?
8562 cat out/conftest.err >&5
8563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8564 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8565 then
8566 # The compiler can only warn and ignore the option if not recognized
8567 # So say no if there are warnings
8568 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8569 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8570 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8571 lt_cv_prog_compiler_c_o=yes
8572 fi
8573 fi
8574 chmod u+w . 2>&5
8575 $RM conftest*
8576 # SGI C++ compiler will create directory out/ii_files/ for
8577 # template instantiation
8578 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8579 $RM out/* && rmdir out
8580 cd ..
8581 $RM -r conftest
8582 $RM conftest*
8583
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8586 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8587
8588
8589
8590
8591
8592
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8594 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8595 if ${lt_cv_prog_compiler_c_o+:} false; then :
8596 $as_echo_n "(cached) " >&6
8597 else
8598 lt_cv_prog_compiler_c_o=no
8599 $RM -r conftest 2>/dev/null
8600 mkdir conftest
8601 cd conftest
8602 mkdir out
8603 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8604
8605 lt_compiler_flag="-o out/conftest2.$ac_objext"
8606 # Insert the option either (1) after the last *FLAGS variable, or
8607 # (2) before a word containing "conftest.", or (3) at the end.
8608 # Note that $ac_compile itself does not contain backslashes and begins
8609 # with a dollar sign (not a hyphen), so the echo should work correctly.
8610 lt_compile=`echo "$ac_compile" | $SED \
8611 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8612 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8613 -e 's:$: $lt_compiler_flag:'`
8614 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8615 (eval "$lt_compile" 2>out/conftest.err)
8616 ac_status=$?
8617 cat out/conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8620 then
8621 # The compiler can only warn and ignore the option if not recognized
8622 # So say no if there are warnings
8623 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8624 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8625 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8626 lt_cv_prog_compiler_c_o=yes
8627 fi
8628 fi
8629 chmod u+w . 2>&5
8630 $RM conftest*
8631 # SGI C++ compiler will create directory out/ii_files/ for
8632 # template instantiation
8633 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8634 $RM out/* && rmdir out
8635 cd ..
8636 $RM -r conftest
8637 $RM conftest*
8638
8639 fi
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8641 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8642
8643
8644
8645
8646 hard_links=nottested
8647 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
8648 # do not overwrite the value of need_locks provided by the user
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8650 $as_echo_n "checking if we can lock with hard links... " >&6; }
8651 hard_links=yes
8652 $RM conftest*
8653 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8654 touch conftest.a
8655 ln conftest.a conftest.b 2>&5 || hard_links=no
8656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8658 $as_echo "$hard_links" >&6; }
8659 if test no = "$hard_links"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
8661 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
8662 need_locks=warn
8663 fi
8664 else
8665 need_locks=no
8666 fi
8667
8668
8669
8670
8671
8672
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8674 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8675
8676 runpath_var=
8677 allow_undefined_flag=
8678 always_export_symbols=no
8679 archive_cmds=
8680 archive_expsym_cmds=
8681 compiler_needs_object=no
8682 enable_shared_with_static_runtimes=no
8683 export_dynamic_flag_spec=
8684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8685 hardcode_automatic=no
8686 hardcode_direct=no
8687 hardcode_direct_absolute=no
8688 hardcode_libdir_flag_spec=
8689 hardcode_libdir_separator=
8690 hardcode_minus_L=no
8691 hardcode_shlibpath_var=unsupported
8692 inherit_rpath=no
8693 link_all_deplibs=unknown
8694 module_cmds=
8695 module_expsym_cmds=
8696 old_archive_from_new_cmds=
8697 old_archive_from_expsyms_cmds=
8698 thread_safe_flag_spec=
8699 whole_archive_flag_spec=
8700 # include_expsyms should be a list of space-separated symbols to be *always*
8701 # included in the symbol list
8702 include_expsyms=
8703 # exclude_expsyms can be an extended regexp of symbols to exclude
8704 # it will be wrapped by ' (' and ')$', so one must not match beginning or
8705 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
8706 # as well as any symbol that contains 'd'.
8707 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8708 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8709 # platforms (ab)use it in PIC code, but their linkers get confused if
8710 # the symbol is explicitly referenced. Since portable code cannot
8711 # rely on this symbol name, it's probably fine to never include it in
8712 # preloaded symbol tables.
8713 # Exclude shared library initialization/finalization symbols.
8714 extract_expsyms_cmds=
8715
8716 case $host_os in
8717 cygwin* | mingw* | pw32* | cegcc*)
8718 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8719 # When not using gcc, we currently assume that we are using
8720 # Microsoft Visual C++.
8721 if test yes != "$GCC"; then
8722 with_gnu_ld=no
8723 fi
8724 ;;
8725 interix*)
8726 # we just hope/assume this is gcc and not c89 (= MSVC++)
8727 with_gnu_ld=yes
8728 ;;
8729 openbsd* | bitrig*)
8730 with_gnu_ld=no
8731 ;;
8732 linux* | k*bsd*-gnu | gnu*)
8733 link_all_deplibs=no
8734 ;;
8735 esac
8736
8737 ld_shlibs=yes
8738
8739 # On some targets, GNU ld is compatible enough with the native linker
8740 # that we're better off using the native interface for both.
8741 lt_use_gnu_ld_interface=no
8742 if test yes = "$with_gnu_ld"; then
8743 case $host_os in
8744 aix*)
8745 # The AIX port of GNU ld has always aspired to compatibility
8746 # with the native linker. However, as the warning in the GNU ld
8747 # block says, versions before 2.19.5* couldn't really create working
8748 # shared libraries, regardless of the interface used.
8749 case `$LD -v 2>&1` in
8750 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8751 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8752 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8753 *)
8754 lt_use_gnu_ld_interface=yes
8755 ;;
8756 esac
8757 ;;
8758 *)
8759 lt_use_gnu_ld_interface=yes
8760 ;;
8761 esac
8762 fi
8763
8764 if test yes = "$lt_use_gnu_ld_interface"; then
8765 # If archive_cmds runs LD, not CC, wlarc should be empty
8766 wlarc='$wl'
8767
8768 # Set some defaults for GNU ld with shared library support. These
8769 # are reset later if shared libraries are not supported. Putting them
8770 # here allows them to be overridden if necessary.
8771 runpath_var=LD_RUN_PATH
8772 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8773 export_dynamic_flag_spec='$wl--export-dynamic'
8774 # ancient GNU ld didn't support --whole-archive et. al.
8775 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8776 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
8777 else
8778 whole_archive_flag_spec=
8779 fi
8780 supports_anon_versioning=no
8781 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
8782 *GNU\ gold*) supports_anon_versioning=yes ;;
8783 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8784 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8785 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8786 *\ 2.11.*) ;; # other 2.11 versions
8787 *) supports_anon_versioning=yes ;;
8788 esac
8789
8790 # See if GNU ld supports shared libraries.
8791 case $host_os in
8792 aix[3-9]*)
8793 # On AIX/PPC, the GNU linker is very broken
8794 if test ia64 != "$host_cpu"; then
8795 ld_shlibs=no
8796 cat <<_LT_EOF 1>&2
8797
8798 *** Warning: the GNU linker, at least up to release 2.19, is reported
8799 *** to be unable to reliably create shared libraries on AIX.
8800 *** Therefore, libtool is disabling shared libraries support. If you
8801 *** really care for shared libraries, you may want to install binutils
8802 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8803 *** You will then need to restart the configuration process.
8804
8805 _LT_EOF
8806 fi
8807 ;;
8808
8809 amigaos*)
8810 case $host_cpu in
8811 powerpc)
8812 # see comment about AmigaOS4 .so support
8813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8814 archive_expsym_cmds=''
8815 ;;
8816 m68k)
8817 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)'
8818 hardcode_libdir_flag_spec='-L$libdir'
8819 hardcode_minus_L=yes
8820 ;;
8821 esac
8822 ;;
8823
8824 beos*)
8825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8826 allow_undefined_flag=unsupported
8827 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8828 # support --undefined. This deserves some investigation. FIXME
8829 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8830 else
8831 ld_shlibs=no
8832 fi
8833 ;;
8834
8835 cygwin* | mingw* | pw32* | cegcc*)
8836 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8837 # as there is no search path for DLLs.
8838 hardcode_libdir_flag_spec='-L$libdir'
8839 export_dynamic_flag_spec='$wl--export-all-symbols'
8840 allow_undefined_flag=unsupported
8841 always_export_symbols=no
8842 enable_shared_with_static_runtimes=yes
8843 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8844 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8845
8846 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8847 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8848 # If the export-symbols file already is a .def file, use it as
8849 # is; otherwise, prepend EXPORTS...
8850 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
8851 cp $export_symbols $output_objdir/$soname.def;
8852 else
8853 echo EXPORTS > $output_objdir/$soname.def;
8854 cat $export_symbols >> $output_objdir/$soname.def;
8855 fi~
8856 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8857 else
8858 ld_shlibs=no
8859 fi
8860 ;;
8861
8862 haiku*)
8863 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8864 link_all_deplibs=yes
8865 ;;
8866
8867 os2*)
8868 hardcode_libdir_flag_spec='-L$libdir'
8869 hardcode_minus_L=yes
8870 allow_undefined_flag=unsupported
8871 shrext_cmds=.dll
8872 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8873 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8874 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8875 $ECHO EXPORTS >> $output_objdir/$libname.def~
8876 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
8877 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8878 emximp -o $lib $output_objdir/$libname.def'
8879 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
8880 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
8881 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
8882 $ECHO EXPORTS >> $output_objdir/$libname.def~
8883 prefix_cmds="$SED"~
8884 if test EXPORTS = "`$SED 1q $export_symbols`"; then
8885 prefix_cmds="$prefix_cmds -e 1d";
8886 fi~
8887 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
8888 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
8889 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
8890 emximp -o $lib $output_objdir/$libname.def'
8891 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
8892 enable_shared_with_static_runtimes=yes
8893 ;;
8894
8895 interix[3-9]*)
8896 hardcode_direct=no
8897 hardcode_shlibpath_var=no
8898 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
8899 export_dynamic_flag_spec='$wl-E'
8900 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8901 # Instead, shared libraries are loaded at an image base (0x10000000 by
8902 # default) and relocated if they conflict, which is a slow very memory
8903 # consuming and fragmenting process. To avoid this, we pick a random,
8904 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8905 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8906 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8907 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'
8908 ;;
8909
8910 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8911 tmp_diet=no
8912 if test linux-dietlibc = "$host_os"; then
8913 case $cc_basename in
8914 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8915 esac
8916 fi
8917 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8918 && test no = "$tmp_diet"
8919 then
8920 tmp_addflag=' $pic_flag'
8921 tmp_sharedflag='-shared'
8922 case $cc_basename,$host_cpu in
8923 pgcc*) # Portland Group C compiler
8924 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8925 tmp_addflag=' $pic_flag'
8926 ;;
8927 pgf77* | pgf90* | pgf95* | pgfortran*)
8928 # Portland Group f77 and f90 compilers
8929 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8930 tmp_addflag=' $pic_flag -Mnomain' ;;
8931 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8932 tmp_addflag=' -i_dynamic' ;;
8933 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8934 tmp_addflag=' -i_dynamic -nofor_main' ;;
8935 ifc* | ifort*) # Intel Fortran compiler
8936 tmp_addflag=' -nofor_main' ;;
8937 lf95*) # Lahey Fortran 8.1
8938 whole_archive_flag_spec=
8939 tmp_sharedflag='--shared' ;;
8940 nagfor*) # NAGFOR 5.3
8941 tmp_sharedflag='-Wl,-shared' ;;
8942 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8943 tmp_sharedflag='-qmkshrobj'
8944 tmp_addflag= ;;
8945 nvcc*) # Cuda Compiler Driver 2.2
8946 whole_archive_flag_spec='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8947 compiler_needs_object=yes
8948 ;;
8949 esac
8950 case `$CC -V 2>&1 | sed 5q` in
8951 *Sun\ C*) # Sun C 5.9
8952 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
8953 compiler_needs_object=yes
8954 tmp_sharedflag='-G' ;;
8955 *Sun\ F*) # Sun Fortran 8.3
8956 tmp_sharedflag='-G' ;;
8957 esac
8958 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8959
8960 if test yes = "$supports_anon_versioning"; then
8961 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8962 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8963 echo "local: *; };" >> $output_objdir/$libname.ver~
8964 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
8965 fi
8966
8967 case $cc_basename in
8968 tcc*)
8969 export_dynamic_flag_spec='-rdynamic'
8970 ;;
8971 xlf* | bgf* | bgxlf* | mpixlf*)
8972 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8973 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8974 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
8975 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8976 if test yes = "$supports_anon_versioning"; then
8977 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8979 echo "local: *; };" >> $output_objdir/$libname.ver~
8980 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8981 fi
8982 ;;
8983 esac
8984 else
8985 ld_shlibs=no
8986 fi
8987 ;;
8988
8989 netbsd* | netbsdelf*-gnu)
8990 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8991 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8992 wlarc=
8993 else
8994 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
8995 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
8996 fi
8997 ;;
8998
8999 solaris*)
9000 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9001 ld_shlibs=no
9002 cat <<_LT_EOF 1>&2
9003
9004 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9005 *** create shared libraries on Solaris systems. Therefore, libtool
9006 *** is disabling shared libraries support. We urge you to upgrade GNU
9007 *** binutils to release 2.9.1 or newer. Another option is to modify
9008 *** your PATH or compiler configuration so that the native linker is
9009 *** used, and then restart.
9010
9011 _LT_EOF
9012 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9013 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9014 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9015 else
9016 ld_shlibs=no
9017 fi
9018 ;;
9019
9020 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9021 case `$LD -v 2>&1` in
9022 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9023 ld_shlibs=no
9024 cat <<_LT_EOF 1>&2
9025
9026 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9027 *** reliably create shared libraries on SCO systems. Therefore, libtool
9028 *** is disabling shared libraries support. We urge you to upgrade GNU
9029 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9030 *** your PATH or compiler configuration so that the native linker is
9031 *** used, and then restart.
9032
9033 _LT_EOF
9034 ;;
9035 *)
9036 # For security reasons, it is highly recommended that you always
9037 # use absolute paths for naming shared libraries, and exclude the
9038 # DT_RUNPATH tag from executables and libraries. But doing so
9039 # requires that you compile everything twice, which is a pain.
9040 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9041 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9042 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9043 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9044 else
9045 ld_shlibs=no
9046 fi
9047 ;;
9048 esac
9049 ;;
9050
9051 sunos4*)
9052 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9053 wlarc=
9054 hardcode_direct=yes
9055 hardcode_shlibpath_var=no
9056 ;;
9057
9058 *)
9059 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9060 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9061 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9062 else
9063 ld_shlibs=no
9064 fi
9065 ;;
9066 esac
9067
9068 if test no = "$ld_shlibs"; then
9069 runpath_var=
9070 hardcode_libdir_flag_spec=
9071 export_dynamic_flag_spec=
9072 whole_archive_flag_spec=
9073 fi
9074 else
9075 # PORTME fill in a description of your system's linker (not GNU ld)
9076 case $host_os in
9077 aix3*)
9078 allow_undefined_flag=unsupported
9079 always_export_symbols=yes
9080 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'
9081 # Note: this linker hardcodes the directories in LIBPATH if there
9082 # are no directories specified by -L.
9083 hardcode_minus_L=yes
9084 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9085 # Neither direct hardcoding nor static linking is supported with a
9086 # broken collect2.
9087 hardcode_direct=unsupported
9088 fi
9089 ;;
9090
9091 aix[4-9]*)
9092 if test ia64 = "$host_cpu"; then
9093 # On IA64, the linker does run time linking by default, so we don't
9094 # have to do anything special.
9095 aix_use_runtimelinking=no
9096 exp_sym_flag='-Bexport'
9097 no_entry_flag=
9098 else
9099 # If we're using GNU nm, then we don't want the "-C" option.
9100 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9101 # Without the "-l" option, or with the "-B" option, AIX nm treats
9102 # weak defined symbols like other global defined symbols, whereas
9103 # GNU nm marks them as "W".
9104 # While the 'weak' keyword is ignored in the Export File, we need
9105 # it in the Import File for the 'aix-soname' feature, so we have
9106 # to replace the "-B" option with "-P" for AIX nm.
9107 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9108 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9109 else
9110 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9111 fi
9112 aix_use_runtimelinking=no
9113
9114 # Test if we are trying to use run time linking or normal
9115 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9116 # have runtime linking enabled, and use it for executables.
9117 # For shared libraries, we enable/disable runtime linking
9118 # depending on the kind of the shared library created -
9119 # when "with_aix_soname,aix_use_runtimelinking" is:
9120 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9121 # "aix,yes" lib.so shared, rtl:yes, for executables
9122 # lib.a static archive
9123 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9124 # lib.a(lib.so.V) shared, rtl:no, for executables
9125 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9126 # lib.a(lib.so.V) shared, rtl:no
9127 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9128 # lib.a static archive
9129 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9130 for ld_flag in $LDFLAGS; do
9131 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9132 aix_use_runtimelinking=yes
9133 break
9134 fi
9135 done
9136 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9137 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9138 # so we don't have lib.a shared libs to link our executables.
9139 # We have to force runtime linking in this case.
9140 aix_use_runtimelinking=yes
9141 LDFLAGS="$LDFLAGS -Wl,-brtl"
9142 fi
9143 ;;
9144 esac
9145
9146 exp_sym_flag='-bexport'
9147 no_entry_flag='-bnoentry'
9148 fi
9149
9150 # When large executables or shared objects are built, AIX ld can
9151 # have problems creating the table of contents. If linking a library
9152 # or program results in "error TOC overflow" add -mminimal-toc to
9153 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9154 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9155
9156 archive_cmds=''
9157 hardcode_direct=yes
9158 hardcode_direct_absolute=yes
9159 hardcode_libdir_separator=':'
9160 link_all_deplibs=yes
9161 file_list_spec='$wl-f,'
9162 case $with_aix_soname,$aix_use_runtimelinking in
9163 aix,*) ;; # traditional, no import file
9164 svr4,* | *,yes) # use import file
9165 # The Import File defines what to hardcode.
9166 hardcode_direct=no
9167 hardcode_direct_absolute=no
9168 ;;
9169 esac
9170
9171 if test yes = "$GCC"; then
9172 case $host_os in aix4.[012]|aix4.[012].*)
9173 # We only want to do this on AIX 4.2 and lower, the check
9174 # below for broken collect2 doesn't work under 4.3+
9175 collect2name=`$CC -print-prog-name=collect2`
9176 if test -f "$collect2name" &&
9177 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9178 then
9179 # We have reworked collect2
9180 :
9181 else
9182 # We have old collect2
9183 hardcode_direct=unsupported
9184 # It fails to find uninstalled libraries when the uninstalled
9185 # path is not listed in the libpath. Setting hardcode_minus_L
9186 # to unsupported forces relinking
9187 hardcode_minus_L=yes
9188 hardcode_libdir_flag_spec='-L$libdir'
9189 hardcode_libdir_separator=
9190 fi
9191 ;;
9192 esac
9193 shared_flag='-shared'
9194 if test yes = "$aix_use_runtimelinking"; then
9195 shared_flag="$shared_flag "'$wl-G'
9196 fi
9197 # Need to ensure runtime linking is disabled for the traditional
9198 # shared library, or the linker may eventually find shared libraries
9199 # /with/ Import File - we do not want to mix them.
9200 shared_flag_aix='-shared'
9201 shared_flag_svr4='-shared $wl-G'
9202 else
9203 # not using gcc
9204 if test ia64 = "$host_cpu"; then
9205 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9206 # chokes on -Wl,-G. The following line is correct:
9207 shared_flag='-G'
9208 else
9209 if test yes = "$aix_use_runtimelinking"; then
9210 shared_flag='$wl-G'
9211 else
9212 shared_flag='$wl-bM:SRE'
9213 fi
9214 shared_flag_aix='$wl-bM:SRE'
9215 shared_flag_svr4='$wl-G'
9216 fi
9217 fi
9218
9219 export_dynamic_flag_spec='$wl-bexpall'
9220 # It seems that -bexpall does not export symbols beginning with
9221 # underscore (_), so it is better to generate a list of symbols to export.
9222 always_export_symbols=yes
9223 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9224 # Warning - without using the other runtime loading flags (-brtl),
9225 # -berok will link without error, but may produce a broken library.
9226 allow_undefined_flag='-berok'
9227 # Determine the default libpath from the value encoded in an
9228 # empty executable.
9229 if test set = "${lt_cv_aix_libpath+set}"; then
9230 aix_libpath=$lt_cv_aix_libpath
9231 else
9232 if ${lt_cv_aix_libpath_+:} false; then :
9233 $as_echo_n "(cached) " >&6
9234 else
9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9236 /* end confdefs.h. */
9237
9238 int
9239 main ()
9240 {
9241
9242 ;
9243 return 0;
9244 }
9245 _ACEOF
9246 if ac_fn_c_try_link "$LINENO"; then :
9247
9248 lt_aix_libpath_sed='
9249 /Import File Strings/,/^$/ {
9250 /^0/ {
9251 s/^0 *\([^ ]*\) *$/\1/
9252 p
9253 }
9254 }'
9255 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9256 # Check for a 64-bit object if we didn't find anything.
9257 if test -z "$lt_cv_aix_libpath_"; then
9258 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9259 fi
9260 fi
9261 rm -f core conftest.err conftest.$ac_objext \
9262 conftest$ac_exeext conftest.$ac_ext
9263 if test -z "$lt_cv_aix_libpath_"; then
9264 lt_cv_aix_libpath_=/usr/lib:/lib
9265 fi
9266
9267 fi
9268
9269 aix_libpath=$lt_cv_aix_libpath_
9270 fi
9271
9272 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9273 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9274 else
9275 if test ia64 = "$host_cpu"; then
9276 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9277 allow_undefined_flag="-z nodefs"
9278 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"
9279 else
9280 # Determine the default libpath from the value encoded in an
9281 # empty executable.
9282 if test set = "${lt_cv_aix_libpath+set}"; then
9283 aix_libpath=$lt_cv_aix_libpath
9284 else
9285 if ${lt_cv_aix_libpath_+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287 else
9288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9289 /* end confdefs.h. */
9290
9291 int
9292 main ()
9293 {
9294
9295 ;
9296 return 0;
9297 }
9298 _ACEOF
9299 if ac_fn_c_try_link "$LINENO"; then :
9300
9301 lt_aix_libpath_sed='
9302 /Import File Strings/,/^$/ {
9303 /^0/ {
9304 s/^0 *\([^ ]*\) *$/\1/
9305 p
9306 }
9307 }'
9308 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9309 # Check for a 64-bit object if we didn't find anything.
9310 if test -z "$lt_cv_aix_libpath_"; then
9311 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9312 fi
9313 fi
9314 rm -f core conftest.err conftest.$ac_objext \
9315 conftest$ac_exeext conftest.$ac_ext
9316 if test -z "$lt_cv_aix_libpath_"; then
9317 lt_cv_aix_libpath_=/usr/lib:/lib
9318 fi
9319
9320 fi
9321
9322 aix_libpath=$lt_cv_aix_libpath_
9323 fi
9324
9325 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9326 # Warning - without using the other run time loading flags,
9327 # -berok will link without error, but may produce a broken library.
9328 no_undefined_flag=' $wl-bernotok'
9329 allow_undefined_flag=' $wl-berok'
9330 if test yes = "$with_gnu_ld"; then
9331 # We only use this code for GNU lds that support --whole-archive.
9332 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9333 else
9334 # Exported symbols can be pulled into shared objects from archives
9335 whole_archive_flag_spec='$convenience'
9336 fi
9337 archive_cmds_need_lc=yes
9338 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9339 # -brtl affects multiple linker settings, -berok does not and is overridden later
9340 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9341 if test svr4 != "$with_aix_soname"; then
9342 # This is similar to how AIX traditionally builds its shared libraries.
9343 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9344 fi
9345 if test aix != "$with_aix_soname"; then
9346 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9347 else
9348 # used by -dlpreopen to get the symbols
9349 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9350 fi
9351 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9352 fi
9353 fi
9354 ;;
9355
9356 amigaos*)
9357 case $host_cpu in
9358 powerpc)
9359 # see comment about AmigaOS4 .so support
9360 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9361 archive_expsym_cmds=''
9362 ;;
9363 m68k)
9364 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)'
9365 hardcode_libdir_flag_spec='-L$libdir'
9366 hardcode_minus_L=yes
9367 ;;
9368 esac
9369 ;;
9370
9371 bsdi[45]*)
9372 export_dynamic_flag_spec=-rdynamic
9373 ;;
9374
9375 cygwin* | mingw* | pw32* | cegcc*)
9376 # When not using gcc, we currently assume that we are using
9377 # Microsoft Visual C++.
9378 # hardcode_libdir_flag_spec is actually meaningless, as there is
9379 # no search path for DLLs.
9380 case $cc_basename in
9381 cl*)
9382 # Native MSVC
9383 hardcode_libdir_flag_spec=' '
9384 allow_undefined_flag=unsupported
9385 always_export_symbols=yes
9386 file_list_spec='@'
9387 # Tell ltmain to make .lib files, not .a files.
9388 libext=lib
9389 # Tell ltmain to make .dll files, not .so files.
9390 shrext_cmds=.dll
9391 # FIXME: Setting linknames here is a bad hack.
9392 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9393 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9394 cp "$export_symbols" "$output_objdir/$soname.def";
9395 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9396 else
9397 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9398 fi~
9399 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9400 linknames='
9401 # The linker will not automatically build a static lib if we build a DLL.
9402 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9403 enable_shared_with_static_runtimes=yes
9404 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9405 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9406 # Don't use ranlib
9407 old_postinstall_cmds='chmod 644 $oldlib'
9408 postlink_cmds='lt_outputfile="@OUTPUT@"~
9409 lt_tool_outputfile="@TOOL_OUTPUT@"~
9410 case $lt_outputfile in
9411 *.exe|*.EXE) ;;
9412 *)
9413 lt_outputfile=$lt_outputfile.exe
9414 lt_tool_outputfile=$lt_tool_outputfile.exe
9415 ;;
9416 esac~
9417 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9418 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9419 $RM "$lt_outputfile.manifest";
9420 fi'
9421 ;;
9422 *)
9423 # Assume MSVC wrapper
9424 hardcode_libdir_flag_spec=' '
9425 allow_undefined_flag=unsupported
9426 # Tell ltmain to make .lib files, not .a files.
9427 libext=lib
9428 # Tell ltmain to make .dll files, not .so files.
9429 shrext_cmds=.dll
9430 # FIXME: Setting linknames here is a bad hack.
9431 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9432 # The linker will automatically build a .lib file if we build a DLL.
9433 old_archive_from_new_cmds='true'
9434 # FIXME: Should let the user specify the lib program.
9435 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9436 enable_shared_with_static_runtimes=yes
9437 ;;
9438 esac
9439 ;;
9440
9441 darwin* | rhapsody*)
9442
9443
9444 archive_cmds_need_lc=no
9445 hardcode_direct=no
9446 hardcode_automatic=yes
9447 hardcode_shlibpath_var=unsupported
9448 if test yes = "$lt_cv_ld_force_load"; then
9449 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9450
9451 else
9452 whole_archive_flag_spec=''
9453 fi
9454 link_all_deplibs=yes
9455 allow_undefined_flag=$_lt_dar_allow_undefined
9456 case $cc_basename in
9457 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
9458 *) _lt_dar_can_shared=$GCC ;;
9459 esac
9460 if test yes = "$_lt_dar_can_shared"; then
9461 output_verbose_link_cmd=func_echo_all
9462 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9463 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9464 archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
9465 module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
9466
9467 else
9468 ld_shlibs=no
9469 fi
9470
9471 ;;
9472
9473 dgux*)
9474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9475 hardcode_libdir_flag_spec='-L$libdir'
9476 hardcode_shlibpath_var=no
9477 ;;
9478
9479 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9480 # support. Future versions do this automatically, but an explicit c++rt0.o
9481 # does not break anything, and helps significantly (at the cost of a little
9482 # extra space).
9483 freebsd2.2*)
9484 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9485 hardcode_libdir_flag_spec='-R$libdir'
9486 hardcode_direct=yes
9487 hardcode_shlibpath_var=no
9488 ;;
9489
9490 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9491 freebsd2.*)
9492 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9493 hardcode_direct=yes
9494 hardcode_minus_L=yes
9495 hardcode_shlibpath_var=no
9496 ;;
9497
9498 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9499 freebsd* | dragonfly*)
9500 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9501 hardcode_libdir_flag_spec='-R$libdir'
9502 hardcode_direct=yes
9503 hardcode_shlibpath_var=no
9504 ;;
9505
9506 hpux9*)
9507 if test yes = "$GCC"; then
9508 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9509 else
9510 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
9511 fi
9512 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9513 hardcode_libdir_separator=:
9514 hardcode_direct=yes
9515
9516 # hardcode_minus_L: Not really in the search PATH,
9517 # but as the default location of the library.
9518 hardcode_minus_L=yes
9519 export_dynamic_flag_spec='$wl-E'
9520 ;;
9521
9522 hpux10*)
9523 if test yes,no = "$GCC,$with_gnu_ld"; then
9524 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9525 else
9526 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9527 fi
9528 if test no = "$with_gnu_ld"; then
9529 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9530 hardcode_libdir_separator=:
9531 hardcode_direct=yes
9532 hardcode_direct_absolute=yes
9533 export_dynamic_flag_spec='$wl-E'
9534 # hardcode_minus_L: Not really in the search PATH,
9535 # but as the default location of the library.
9536 hardcode_minus_L=yes
9537 fi
9538 ;;
9539
9540 hpux11*)
9541 if test yes,no = "$GCC,$with_gnu_ld"; then
9542 case $host_cpu in
9543 hppa*64*)
9544 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9545 ;;
9546 ia64*)
9547 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9548 ;;
9549 *)
9550 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9551 ;;
9552 esac
9553 else
9554 case $host_cpu in
9555 hppa*64*)
9556 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9557 ;;
9558 ia64*)
9559 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9560 ;;
9561 *)
9562
9563 # Older versions of the 11.00 compiler do not understand -b yet
9564 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9566 $as_echo_n "checking if $CC understands -b... " >&6; }
9567 if ${lt_cv_prog_compiler__b+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 lt_cv_prog_compiler__b=no
9571 save_LDFLAGS=$LDFLAGS
9572 LDFLAGS="$LDFLAGS -b"
9573 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9574 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9575 # The linker can only warn and ignore the option if not recognized
9576 # So say no if there are warnings
9577 if test -s conftest.err; then
9578 # Append any errors to the config.log.
9579 cat conftest.err 1>&5
9580 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9581 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9582 if diff conftest.exp conftest.er2 >/dev/null; then
9583 lt_cv_prog_compiler__b=yes
9584 fi
9585 else
9586 lt_cv_prog_compiler__b=yes
9587 fi
9588 fi
9589 $RM -r conftest*
9590 LDFLAGS=$save_LDFLAGS
9591
9592 fi
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9594 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9595
9596 if test yes = "$lt_cv_prog_compiler__b"; then
9597 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9598 else
9599 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9600 fi
9601
9602 ;;
9603 esac
9604 fi
9605 if test no = "$with_gnu_ld"; then
9606 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
9607 hardcode_libdir_separator=:
9608
9609 case $host_cpu in
9610 hppa*64*|ia64*)
9611 hardcode_direct=no
9612 hardcode_shlibpath_var=no
9613 ;;
9614 *)
9615 hardcode_direct=yes
9616 hardcode_direct_absolute=yes
9617 export_dynamic_flag_spec='$wl-E'
9618
9619 # hardcode_minus_L: Not really in the search PATH,
9620 # but as the default location of the library.
9621 hardcode_minus_L=yes
9622 ;;
9623 esac
9624 fi
9625 ;;
9626
9627 irix5* | irix6* | nonstopux*)
9628 if test yes = "$GCC"; then
9629 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9630 # Try to use the -exported_symbol ld option, if it does not
9631 # work, assume that -exports_file does not work either and
9632 # implicitly export all symbols.
9633 # This should be the same for all languages, so no per-tag cache variable.
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9635 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9636 if ${lt_cv_irix_exported_symbol+:} false; then :
9637 $as_echo_n "(cached) " >&6
9638 else
9639 save_LDFLAGS=$LDFLAGS
9640 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 int foo (void) { return 0; }
9644 _ACEOF
9645 if ac_fn_c_try_link "$LINENO"; then :
9646 lt_cv_irix_exported_symbol=yes
9647 else
9648 lt_cv_irix_exported_symbol=no
9649 fi
9650 rm -f core conftest.err conftest.$ac_objext \
9651 conftest$ac_exeext conftest.$ac_ext
9652 LDFLAGS=$save_LDFLAGS
9653 fi
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9655 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9656 if test yes = "$lt_cv_irix_exported_symbol"; then
9657 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
9658 fi
9659 link_all_deplibs=no
9660 else
9661 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9662 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
9663 fi
9664 archive_cmds_need_lc='no'
9665 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9666 hardcode_libdir_separator=:
9667 inherit_rpath=yes
9668 link_all_deplibs=yes
9669 ;;
9670
9671 linux*)
9672 case $cc_basename in
9673 tcc*)
9674 # Fabrice Bellard et al's Tiny C Compiler
9675 ld_shlibs=yes
9676 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9677 ;;
9678 esac
9679 ;;
9680
9681 netbsd* | netbsdelf*-gnu)
9682 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9683 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9684 else
9685 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9686 fi
9687 hardcode_libdir_flag_spec='-R$libdir'
9688 hardcode_direct=yes
9689 hardcode_shlibpath_var=no
9690 ;;
9691
9692 newsos6)
9693 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9694 hardcode_direct=yes
9695 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9696 hardcode_libdir_separator=:
9697 hardcode_shlibpath_var=no
9698 ;;
9699
9700 *nto* | *qnx*)
9701 ;;
9702
9703 openbsd* | bitrig*)
9704 if test -f /usr/libexec/ld.so; then
9705 hardcode_direct=yes
9706 hardcode_shlibpath_var=no
9707 hardcode_direct_absolute=yes
9708 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9709 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9710 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
9711 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9712 export_dynamic_flag_spec='$wl-E'
9713 else
9714 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9715 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9716 fi
9717 else
9718 ld_shlibs=no
9719 fi
9720 ;;
9721
9722 os2*)
9723 hardcode_libdir_flag_spec='-L$libdir'
9724 hardcode_minus_L=yes
9725 allow_undefined_flag=unsupported
9726 shrext_cmds=.dll
9727 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9728 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9729 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9730 $ECHO EXPORTS >> $output_objdir/$libname.def~
9731 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9732 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9733 emximp -o $lib $output_objdir/$libname.def'
9734 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9735 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9736 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9737 $ECHO EXPORTS >> $output_objdir/$libname.def~
9738 prefix_cmds="$SED"~
9739 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9740 prefix_cmds="$prefix_cmds -e 1d";
9741 fi~
9742 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9743 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9744 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9745 emximp -o $lib $output_objdir/$libname.def'
9746 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9747 enable_shared_with_static_runtimes=yes
9748 ;;
9749
9750 osf3*)
9751 if test yes = "$GCC"; then
9752 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9753 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9754 else
9755 allow_undefined_flag=' -expect_unresolved \*'
9756 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9757 fi
9758 archive_cmds_need_lc='no'
9759 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9760 hardcode_libdir_separator=:
9761 ;;
9762
9763 osf4* | osf5*) # as osf3* with the addition of -msym flag
9764 if test yes = "$GCC"; then
9765 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
9766 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
9767 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9768 else
9769 allow_undefined_flag=' -expect_unresolved \*'
9770 archive_cmds='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
9771 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
9772 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
9773
9774 # Both c and cxx compiler support -rpath directly
9775 hardcode_libdir_flag_spec='-rpath $libdir'
9776 fi
9777 archive_cmds_need_lc='no'
9778 hardcode_libdir_separator=:
9779 ;;
9780
9781 solaris*)
9782 no_undefined_flag=' -z defs'
9783 if test yes = "$GCC"; then
9784 wlarc='$wl'
9785 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
9786 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9787 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9788 else
9789 case `$CC -V 2>&1` in
9790 *"Compilers 5.0"*)
9791 wlarc=''
9792 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
9793 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9794 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9795 ;;
9796 *)
9797 wlarc='$wl'
9798 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9799 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9800 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9801 ;;
9802 esac
9803 fi
9804 hardcode_libdir_flag_spec='-R$libdir'
9805 hardcode_shlibpath_var=no
9806 case $host_os in
9807 solaris2.[0-5] | solaris2.[0-5].*) ;;
9808 *)
9809 # The compiler driver will combine and reorder linker options,
9810 # but understands '-z linker_flag'. GCC discards it without '$wl',
9811 # but is careful enough not to reorder.
9812 # Supported since Solaris 2.6 (maybe 2.5.1?)
9813 if test yes = "$GCC"; then
9814 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
9815 else
9816 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9817 fi
9818 ;;
9819 esac
9820 link_all_deplibs=yes
9821 ;;
9822
9823 sunos4*)
9824 if test sequent = "$host_vendor"; then
9825 # Use $CC to link under sequent, because it throws in some extra .o
9826 # files that make .init and .fini sections work.
9827 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9828 else
9829 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9830 fi
9831 hardcode_libdir_flag_spec='-L$libdir'
9832 hardcode_direct=yes
9833 hardcode_minus_L=yes
9834 hardcode_shlibpath_var=no
9835 ;;
9836
9837 sysv4)
9838 case $host_vendor in
9839 sni)
9840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9841 hardcode_direct=yes # is this really true???
9842 ;;
9843 siemens)
9844 ## LD is ld it makes a PLAMLIB
9845 ## CC just makes a GrossModule.
9846 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9847 reload_cmds='$CC -r -o $output$reload_objs'
9848 hardcode_direct=no
9849 ;;
9850 motorola)
9851 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9852 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9853 ;;
9854 esac
9855 runpath_var='LD_RUN_PATH'
9856 hardcode_shlibpath_var=no
9857 ;;
9858
9859 sysv4.3*)
9860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9861 hardcode_shlibpath_var=no
9862 export_dynamic_flag_spec='-Bexport'
9863 ;;
9864
9865 sysv4*MP*)
9866 if test -d /usr/nec; then
9867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_shlibpath_var=no
9869 runpath_var=LD_RUN_PATH
9870 hardcode_runpath_var=yes
9871 ld_shlibs=yes
9872 fi
9873 ;;
9874
9875 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9876 no_undefined_flag='$wl-z,text'
9877 archive_cmds_need_lc=no
9878 hardcode_shlibpath_var=no
9879 runpath_var='LD_RUN_PATH'
9880
9881 if test yes = "$GCC"; then
9882 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9883 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9884 else
9885 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9886 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9887 fi
9888 ;;
9889
9890 sysv5* | sco3.2v5* | sco5v6*)
9891 # Note: We CANNOT use -z defs as we might desire, because we do not
9892 # link with -lc, and that would cause any symbols used from libc to
9893 # always be unresolved, which means just about no library would
9894 # ever link correctly. If we're not using GNU ld we use -z text
9895 # though, which does catch some bad symbols but isn't as heavy-handed
9896 # as -z defs.
9897 no_undefined_flag='$wl-z,text'
9898 allow_undefined_flag='$wl-z,nodefs'
9899 archive_cmds_need_lc=no
9900 hardcode_shlibpath_var=no
9901 hardcode_libdir_flag_spec='$wl-R,$libdir'
9902 hardcode_libdir_separator=':'
9903 link_all_deplibs=yes
9904 export_dynamic_flag_spec='$wl-Bexport'
9905 runpath_var='LD_RUN_PATH'
9906
9907 if test yes = "$GCC"; then
9908 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9909 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9910 else
9911 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9913 fi
9914 ;;
9915
9916 uts4*)
9917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9918 hardcode_libdir_flag_spec='-L$libdir'
9919 hardcode_shlibpath_var=no
9920 ;;
9921
9922 *)
9923 ld_shlibs=no
9924 ;;
9925 esac
9926
9927 if test sni = "$host_vendor"; then
9928 case $host in
9929 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9930 export_dynamic_flag_spec='$wl-Blargedynsym'
9931 ;;
9932 esac
9933 fi
9934 fi
9935
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9937 $as_echo "$ld_shlibs" >&6; }
9938 test no = "$ld_shlibs" && can_build_shared=no
9939
9940 with_gnu_ld=$with_gnu_ld
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956 #
9957 # Do we need to explicitly link libc?
9958 #
9959 case "x$archive_cmds_need_lc" in
9960 x|xyes)
9961 # Assume -lc should be added
9962 archive_cmds_need_lc=yes
9963
9964 if test yes,yes = "$GCC,$enable_shared"; then
9965 case $archive_cmds in
9966 *'~'*)
9967 # FIXME: we may have to deal with multi-command sequences.
9968 ;;
9969 '$CC '*)
9970 # Test whether the compiler implicitly links with -lc since on some
9971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9972 # to ld, don't add -lc before -lgcc.
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9974 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9975 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9976 $as_echo_n "(cached) " >&6
9977 else
9978 $RM conftest*
9979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9980
9981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9982 (eval $ac_compile) 2>&5
9983 ac_status=$?
9984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9985 test $ac_status = 0; } 2>conftest.err; then
9986 soname=conftest
9987 lib=conftest
9988 libobjs=conftest.$ac_objext
9989 deplibs=
9990 wl=$lt_prog_compiler_wl
9991 pic_flag=$lt_prog_compiler_pic
9992 compiler_flags=-v
9993 linker_flags=-v
9994 verstring=
9995 output_objdir=.
9996 libname=conftest
9997 lt_save_allow_undefined_flag=$allow_undefined_flag
9998 allow_undefined_flag=
9999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10000 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10001 ac_status=$?
10002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10003 test $ac_status = 0; }
10004 then
10005 lt_cv_archive_cmds_need_lc=no
10006 else
10007 lt_cv_archive_cmds_need_lc=yes
10008 fi
10009 allow_undefined_flag=$lt_save_allow_undefined_flag
10010 else
10011 cat conftest.err 1>&5
10012 fi
10013 $RM conftest*
10014
10015 fi
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10017 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10018 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10019 ;;
10020 esac
10021 fi
10022 ;;
10023 esac
10024
10025
10026
10027
10028
10029
10030
10031
10032
10033
10034
10035
10036
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060
10061
10062
10063
10064
10065
10066
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10177 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10178
10179 if test yes = "$GCC"; then
10180 case $host_os in
10181 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10182 *) lt_awk_arg='/^libraries:/' ;;
10183 esac
10184 case $host_os in
10185 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10186 *) lt_sed_strip_eq='s|=/|/|g' ;;
10187 esac
10188 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10189 case $lt_search_path_spec in
10190 *\;*)
10191 # if the path contains ";" then we assume it to be the separator
10192 # otherwise default to the standard path separator (i.e. ":") - it is
10193 # assumed that no part of a normal pathname contains ";" but that should
10194 # okay in the real world where ";" in dirpaths is itself problematic.
10195 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10196 ;;
10197 *)
10198 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10199 ;;
10200 esac
10201 # Ok, now we have the path, separated by spaces, we can step through it
10202 # and add multilib dir if necessary...
10203 lt_tmp_lt_search_path_spec=
10204 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10205 # ...but if some path component already ends with the multilib dir we assume
10206 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10207 case "$lt_multi_os_dir; $lt_search_path_spec " in
10208 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10209 lt_multi_os_dir=
10210 ;;
10211 esac
10212 for lt_sys_path in $lt_search_path_spec; do
10213 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10214 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10215 elif test -n "$lt_multi_os_dir"; then
10216 test -d "$lt_sys_path" && \
10217 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10218 fi
10219 done
10220 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10221 BEGIN {RS = " "; FS = "/|\n";} {
10222 lt_foo = "";
10223 lt_count = 0;
10224 for (lt_i = NF; lt_i > 0; lt_i--) {
10225 if ($lt_i != "" && $lt_i != ".") {
10226 if ($lt_i == "..") {
10227 lt_count++;
10228 } else {
10229 if (lt_count == 0) {
10230 lt_foo = "/" $lt_i lt_foo;
10231 } else {
10232 lt_count--;
10233 }
10234 }
10235 }
10236 }
10237 if (lt_foo != "") { lt_freq[lt_foo]++; }
10238 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10239 }'`
10240 # AWK program above erroneously prepends '/' to C:/dos/paths
10241 # for these hosts.
10242 case $host_os in
10243 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10244 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10245 esac
10246 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10247 else
10248 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10249 fi
10250 library_names_spec=
10251 libname_spec='lib$name'
10252 soname_spec=
10253 shrext_cmds=.so
10254 postinstall_cmds=
10255 postuninstall_cmds=
10256 finish_cmds=
10257 finish_eval=
10258 shlibpath_var=
10259 shlibpath_overrides_runpath=unknown
10260 version_type=none
10261 dynamic_linker="$host_os ld.so"
10262 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10263 need_lib_prefix=unknown
10264 hardcode_into_libs=no
10265
10266 # when you set need_version to no, make sure it does not cause -set_version
10267 # flags to be left without arguments
10268 need_version=unknown
10269
10270
10271
10272 case $host_os in
10273 aix3*)
10274 version_type=linux # correct to gnu/linux during the next big refactor
10275 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10276 shlibpath_var=LIBPATH
10277
10278 # AIX 3 has no versioning support, so we append a major version to the name.
10279 soname_spec='$libname$release$shared_ext$major'
10280 ;;
10281
10282 aix[4-9]*)
10283 version_type=linux # correct to gnu/linux during the next big refactor
10284 need_lib_prefix=no
10285 need_version=no
10286 hardcode_into_libs=yes
10287 if test ia64 = "$host_cpu"; then
10288 # AIX 5 supports IA64
10289 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10290 shlibpath_var=LD_LIBRARY_PATH
10291 else
10292 # With GCC up to 2.95.x, collect2 would create an import file
10293 # for dependence libraries. The import file would start with
10294 # the line '#! .'. This would cause the generated library to
10295 # depend on '.', always an invalid library. This was fixed in
10296 # development snapshots of GCC prior to 3.0.
10297 case $host_os in
10298 aix4 | aix4.[01] | aix4.[01].*)
10299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10300 echo ' yes '
10301 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10302 :
10303 else
10304 can_build_shared=no
10305 fi
10306 ;;
10307 esac
10308 # Using Import Files as archive members, it is possible to support
10309 # filename-based versioning of shared library archives on AIX. While
10310 # this would work for both with and without runtime linking, it will
10311 # prevent static linking of such archives. So we do filename-based
10312 # shared library versioning with .so extension only, which is used
10313 # when both runtime linking and shared linking is enabled.
10314 # Unfortunately, runtime linking may impact performance, so we do
10315 # not want this to be the default eventually. Also, we use the
10316 # versioned .so libs for executables only if there is the -brtl
10317 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10318 # To allow for filename-based versioning support, we need to create
10319 # libNAME.so.V as an archive file, containing:
10320 # *) an Import File, referring to the versioned filename of the
10321 # archive as well as the shared archive member, telling the
10322 # bitwidth (32 or 64) of that shared object, and providing the
10323 # list of exported symbols of that shared object, eventually
10324 # decorated with the 'weak' keyword
10325 # *) the shared object with the F_LOADONLY flag set, to really avoid
10326 # it being seen by the linker.
10327 # At run time we better use the real file rather than another symlink,
10328 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10329
10330 case $with_aix_soname,$aix_use_runtimelinking in
10331 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10332 # soname into executable. Probably we can add versioning support to
10333 # collect2, so additional links can be useful in future.
10334 aix,yes) # traditional libtool
10335 dynamic_linker='AIX unversionable lib.so'
10336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10337 # instead of lib<name>.a to let people know that these are not
10338 # typical AIX shared libraries.
10339 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10340 ;;
10341 aix,no) # traditional AIX only
10342 dynamic_linker='AIX lib.a(lib.so.V)'
10343 # We preserve .a as extension for shared libraries through AIX4.2
10344 # and later when we are not doing run time linking.
10345 library_names_spec='$libname$release.a $libname.a'
10346 soname_spec='$libname$release$shared_ext$major'
10347 ;;
10348 svr4,*) # full svr4 only
10349 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10350 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10351 # We do not specify a path in Import Files, so LIBPATH fires.
10352 shlibpath_overrides_runpath=yes
10353 ;;
10354 *,yes) # both, prefer svr4
10355 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10356 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10357 # unpreferred sharedlib libNAME.a needs extra handling
10358 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10359 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10360 # We do not specify a path in Import Files, so LIBPATH fires.
10361 shlibpath_overrides_runpath=yes
10362 ;;
10363 *,no) # both, prefer aix
10364 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10365 library_names_spec='$libname$release.a $libname.a'
10366 soname_spec='$libname$release$shared_ext$major'
10367 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10368 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10369 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10370 ;;
10371 esac
10372 shlibpath_var=LIBPATH
10373 fi
10374 ;;
10375
10376 amigaos*)
10377 case $host_cpu in
10378 powerpc)
10379 # Since July 2007 AmigaOS4 officially supports .so libraries.
10380 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10381 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10382 ;;
10383 m68k)
10384 library_names_spec='$libname.ixlibrary $libname.a'
10385 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10386 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10387 ;;
10388 esac
10389 ;;
10390
10391 beos*)
10392 library_names_spec='$libname$shared_ext'
10393 dynamic_linker="$host_os ld.so"
10394 shlibpath_var=LIBRARY_PATH
10395 ;;
10396
10397 bsdi[45]*)
10398 version_type=linux # correct to gnu/linux during the next big refactor
10399 need_version=no
10400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10401 soname_spec='$libname$release$shared_ext$major'
10402 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10403 shlibpath_var=LD_LIBRARY_PATH
10404 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10405 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10406 # the default ld.so.conf also contains /usr/contrib/lib and
10407 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10408 # libtool to hard-code these into programs
10409 ;;
10410
10411 cygwin* | mingw* | pw32* | cegcc*)
10412 version_type=windows
10413 shrext_cmds=.dll
10414 need_version=no
10415 need_lib_prefix=no
10416
10417 case $GCC,$cc_basename in
10418 yes,*)
10419 # gcc
10420 library_names_spec='$libname.dll.a'
10421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10422 postinstall_cmds='base_file=`basename \$file`~
10423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10424 dldir=$destdir/`dirname \$dlpath`~
10425 test -d \$dldir || mkdir -p \$dldir~
10426 $install_prog $dir/$dlname \$dldir/$dlname~
10427 chmod a+x \$dldir/$dlname~
10428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10430 fi'
10431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10432 dlpath=$dir/\$dldll~
10433 $RM \$dlpath'
10434 shlibpath_overrides_runpath=yes
10435
10436 case $host_os in
10437 cygwin*)
10438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10439 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10440
10441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10442 ;;
10443 mingw* | cegcc*)
10444 # MinGW DLLs use traditional 'lib' prefix
10445 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10446 ;;
10447 pw32*)
10448 # pw32 DLLs use 'pw' prefix rather than 'lib'
10449 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10450 ;;
10451 esac
10452 dynamic_linker='Win32 ld.exe'
10453 ;;
10454
10455 *,cl*)
10456 # Native MSVC
10457 libname_spec='$name'
10458 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
10459 library_names_spec='$libname.dll.lib'
10460
10461 case $build_os in
10462 mingw*)
10463 sys_lib_search_path_spec=
10464 lt_save_ifs=$IFS
10465 IFS=';'
10466 for lt_path in $LIB
10467 do
10468 IFS=$lt_save_ifs
10469 # Let DOS variable expansion print the short 8.3 style file name.
10470 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10471 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10472 done
10473 IFS=$lt_save_ifs
10474 # Convert to MSYS style.
10475 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10476 ;;
10477 cygwin*)
10478 # Convert to unix form, then to dos form, then back to unix form
10479 # but this time dos style (no spaces!) so that the unix form looks
10480 # like /cygdrive/c/PROGRA~1:/cygdr...
10481 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10482 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10483 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10484 ;;
10485 *)
10486 sys_lib_search_path_spec=$LIB
10487 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10488 # It is most probably a Windows format PATH.
10489 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10490 else
10491 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10492 fi
10493 # FIXME: find the short name or the path components, as spaces are
10494 # common. (e.g. "Program Files" -> "PROGRA~1")
10495 ;;
10496 esac
10497
10498 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10499 postinstall_cmds='base_file=`basename \$file`~
10500 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10501 dldir=$destdir/`dirname \$dlpath`~
10502 test -d \$dldir || mkdir -p \$dldir~
10503 $install_prog $dir/$dlname \$dldir/$dlname'
10504 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10505 dlpath=$dir/\$dldll~
10506 $RM \$dlpath'
10507 shlibpath_overrides_runpath=yes
10508 dynamic_linker='Win32 link.exe'
10509 ;;
10510
10511 *)
10512 # Assume MSVC wrapper
10513 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
10514 dynamic_linker='Win32 ld.exe'
10515 ;;
10516 esac
10517 # FIXME: first we should search . and the directory the executable is in
10518 shlibpath_var=PATH
10519 ;;
10520
10521 darwin* | rhapsody*)
10522 dynamic_linker="$host_os dyld"
10523 version_type=darwin
10524 need_lib_prefix=no
10525 need_version=no
10526 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
10527 soname_spec='$libname$release$major$shared_ext'
10528 shlibpath_overrides_runpath=yes
10529 shlibpath_var=DYLD_LIBRARY_PATH
10530 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10531
10532 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10534 ;;
10535
10536 dgux*)
10537 version_type=linux # correct to gnu/linux during the next big refactor
10538 need_lib_prefix=no
10539 need_version=no
10540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10541 soname_spec='$libname$release$shared_ext$major'
10542 shlibpath_var=LD_LIBRARY_PATH
10543 ;;
10544
10545 freebsd* | dragonfly*)
10546 # DragonFly does not have aout. When/if they implement a new
10547 # versioning mechanism, adjust this.
10548 if test -x /usr/bin/objformat; then
10549 objformat=`/usr/bin/objformat`
10550 else
10551 case $host_os in
10552 freebsd[23].*) objformat=aout ;;
10553 *) objformat=elf ;;
10554 esac
10555 fi
10556 version_type=freebsd-$objformat
10557 case $version_type in
10558 freebsd-elf*)
10559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10560 soname_spec='$libname$release$shared_ext$major'
10561 need_version=no
10562 need_lib_prefix=no
10563 ;;
10564 freebsd-*)
10565 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10566 need_version=yes
10567 ;;
10568 esac
10569 shlibpath_var=LD_LIBRARY_PATH
10570 case $host_os in
10571 freebsd2.*)
10572 shlibpath_overrides_runpath=yes
10573 ;;
10574 freebsd3.[01]* | freebsdelf3.[01]*)
10575 shlibpath_overrides_runpath=yes
10576 hardcode_into_libs=yes
10577 ;;
10578 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10579 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10580 shlibpath_overrides_runpath=no
10581 hardcode_into_libs=yes
10582 ;;
10583 *) # from 4.6 on, and DragonFly
10584 shlibpath_overrides_runpath=yes
10585 hardcode_into_libs=yes
10586 ;;
10587 esac
10588 ;;
10589
10590 haiku*)
10591 version_type=linux # correct to gnu/linux during the next big refactor
10592 need_lib_prefix=no
10593 need_version=no
10594 dynamic_linker="$host_os runtime_loader"
10595 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10596 soname_spec='$libname$release$shared_ext$major'
10597 shlibpath_var=LIBRARY_PATH
10598 shlibpath_overrides_runpath=no
10599 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10600 hardcode_into_libs=yes
10601 ;;
10602
10603 hpux9* | hpux10* | hpux11*)
10604 # Give a soname corresponding to the major version so that dld.sl refuses to
10605 # link against other versions.
10606 version_type=sunos
10607 need_lib_prefix=no
10608 need_version=no
10609 case $host_cpu in
10610 ia64*)
10611 shrext_cmds='.so'
10612 hardcode_into_libs=yes
10613 dynamic_linker="$host_os dld.so"
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10616 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10617 soname_spec='$libname$release$shared_ext$major'
10618 if test 32 = "$HPUX_IA64_MODE"; then
10619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10620 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
10621 else
10622 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10623 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
10624 fi
10625 ;;
10626 hppa*64*)
10627 shrext_cmds='.sl'
10628 hardcode_into_libs=yes
10629 dynamic_linker="$host_os dld.sl"
10630 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10631 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10632 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10633 soname_spec='$libname$release$shared_ext$major'
10634 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10636 ;;
10637 *)
10638 shrext_cmds='.sl'
10639 dynamic_linker="$host_os dld.sl"
10640 shlibpath_var=SHLIB_PATH
10641 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10642 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10643 soname_spec='$libname$release$shared_ext$major'
10644 ;;
10645 esac
10646 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10647 postinstall_cmds='chmod 555 $lib'
10648 # or fails outright, so override atomically:
10649 install_override_mode=555
10650 ;;
10651
10652 interix[3-9]*)
10653 version_type=linux # correct to gnu/linux during the next big refactor
10654 need_lib_prefix=no
10655 need_version=no
10656 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10657 soname_spec='$libname$release$shared_ext$major'
10658 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10659 shlibpath_var=LD_LIBRARY_PATH
10660 shlibpath_overrides_runpath=no
10661 hardcode_into_libs=yes
10662 ;;
10663
10664 irix5* | irix6* | nonstopux*)
10665 case $host_os in
10666 nonstopux*) version_type=nonstopux ;;
10667 *)
10668 if test yes = "$lt_cv_prog_gnu_ld"; then
10669 version_type=linux # correct to gnu/linux during the next big refactor
10670 else
10671 version_type=irix
10672 fi ;;
10673 esac
10674 need_lib_prefix=no
10675 need_version=no
10676 soname_spec='$libname$release$shared_ext$major'
10677 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
10678 case $host_os in
10679 irix5* | nonstopux*)
10680 libsuff= shlibsuff=
10681 ;;
10682 *)
10683 case $LD in # libtool.m4 will add one of these switches to LD
10684 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10685 libsuff= shlibsuff= libmagic=32-bit;;
10686 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10687 libsuff=32 shlibsuff=N32 libmagic=N32;;
10688 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10689 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10690 *) libsuff= shlibsuff= libmagic=never-match;;
10691 esac
10692 ;;
10693 esac
10694 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10695 shlibpath_overrides_runpath=no
10696 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
10697 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
10698 hardcode_into_libs=yes
10699 ;;
10700
10701 # No shared lib support for Linux oldld, aout, or coff.
10702 linux*oldld* | linux*aout* | linux*coff*)
10703 dynamic_linker=no
10704 ;;
10705
10706 linux*android*)
10707 version_type=none # Android doesn't support versioned libraries.
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='$libname$release$shared_ext'
10711 soname_spec='$libname$release$shared_ext'
10712 finish_cmds=
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=yes
10715
10716 # This implies no fast_install, which is unacceptable.
10717 # Some rework will be needed to allow for fast_install
10718 # before this can be enabled.
10719 hardcode_into_libs=yes
10720
10721 dynamic_linker='Android linker'
10722 # Don't embed -rpath directories since the linker doesn't support them.
10723 hardcode_libdir_flag_spec='-L$libdir'
10724 ;;
10725
10726 # This must be glibc/ELF.
10727 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10728 version_type=linux # correct to gnu/linux during the next big refactor
10729 need_lib_prefix=no
10730 need_version=no
10731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10732 soname_spec='$libname$release$shared_ext$major'
10733 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10734 shlibpath_var=LD_LIBRARY_PATH
10735 shlibpath_overrides_runpath=no
10736
10737 # Some binutils ld are patched to set DT_RUNPATH
10738 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10739 $as_echo_n "(cached) " >&6
10740 else
10741 lt_cv_shlibpath_overrides_runpath=no
10742 save_LDFLAGS=$LDFLAGS
10743 save_libdir=$libdir
10744 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10745 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h. */
10748
10749 int
10750 main ()
10751 {
10752
10753 ;
10754 return 0;
10755 }
10756 _ACEOF
10757 if ac_fn_c_try_link "$LINENO"; then :
10758 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10759 lt_cv_shlibpath_overrides_runpath=yes
10760 fi
10761 fi
10762 rm -f core conftest.err conftest.$ac_objext \
10763 conftest$ac_exeext conftest.$ac_ext
10764 LDFLAGS=$save_LDFLAGS
10765 libdir=$save_libdir
10766
10767 fi
10768
10769 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10770
10771 # This implies no fast_install, which is unacceptable.
10772 # Some rework will be needed to allow for fast_install
10773 # before this can be enabled.
10774 hardcode_into_libs=yes
10775
10776 # Ideally, we could use ldconfig to report *all* directores which are
10777 # searched for libraries, however this is still not possible. Aside from not
10778 # being certain /sbin/ldconfig is available, command
10779 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
10780 # even though it is searched at run-time. Try to do the best guess by
10781 # appending ld.so.conf contents (and includes) to the search path.
10782 if test -f /etc/ld.so.conf; then
10783 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10784 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10785 fi
10786
10787 # We used to test for /lib/ld.so.1 and disable shared libraries on
10788 # powerpc, because MkLinux only supported shared libraries with the
10789 # GNU dynamic linker. Since this was broken with cross compilers,
10790 # most powerpc-linux boxes support dynamic linking these days and
10791 # people can always --disable-shared, the test was removed, and we
10792 # assume the GNU/Linux dynamic linker is in use.
10793 dynamic_linker='GNU/Linux ld.so'
10794 ;;
10795
10796 netbsdelf*-gnu)
10797 version_type=linux
10798 need_lib_prefix=no
10799 need_version=no
10800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10801 soname_spec='${libname}${release}${shared_ext}$major'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath=no
10804 hardcode_into_libs=yes
10805 dynamic_linker='NetBSD ld.elf_so'
10806 ;;
10807
10808 netbsd*)
10809 version_type=sunos
10810 need_lib_prefix=no
10811 need_version=no
10812 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10815 dynamic_linker='NetBSD (a.out) ld.so'
10816 else
10817 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10818 soname_spec='$libname$release$shared_ext$major'
10819 dynamic_linker='NetBSD ld.elf_so'
10820 fi
10821 shlibpath_var=LD_LIBRARY_PATH
10822 shlibpath_overrides_runpath=yes
10823 hardcode_into_libs=yes
10824 ;;
10825
10826 newsos6)
10827 version_type=linux # correct to gnu/linux during the next big refactor
10828 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 shlibpath_overrides_runpath=yes
10831 ;;
10832
10833 *nto* | *qnx*)
10834 version_type=qnx
10835 need_lib_prefix=no
10836 need_version=no
10837 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10838 soname_spec='$libname$release$shared_ext$major'
10839 shlibpath_var=LD_LIBRARY_PATH
10840 shlibpath_overrides_runpath=no
10841 hardcode_into_libs=yes
10842 dynamic_linker='ldqnx.so'
10843 ;;
10844
10845 openbsd* | bitrig*)
10846 version_type=sunos
10847 sys_lib_dlsearch_path_spec=/usr/lib
10848 need_lib_prefix=no
10849 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10850 need_version=no
10851 else
10852 need_version=yes
10853 fi
10854 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856 shlibpath_var=LD_LIBRARY_PATH
10857 shlibpath_overrides_runpath=yes
10858 ;;
10859
10860 os2*)
10861 libname_spec='$name'
10862 version_type=windows
10863 shrext_cmds=.dll
10864 need_version=no
10865 need_lib_prefix=no
10866 # OS/2 can only load a DLL with a base name of 8 characters or less.
10867 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
10868 v=$($ECHO $release$versuffix | tr -d .-);
10869 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
10870 $ECHO $n$v`$shared_ext'
10871 library_names_spec='${libname}_dll.$libext'
10872 dynamic_linker='OS/2 ld.exe'
10873 shlibpath_var=BEGINLIBPATH
10874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10876 postinstall_cmds='base_file=`basename \$file`~
10877 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
10878 dldir=$destdir/`dirname \$dlpath`~
10879 test -d \$dldir || mkdir -p \$dldir~
10880 $install_prog $dir/$dlname \$dldir/$dlname~
10881 chmod a+x \$dldir/$dlname~
10882 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10883 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10884 fi'
10885 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
10886 dlpath=$dir/\$dldll~
10887 $RM \$dlpath'
10888 ;;
10889
10890 osf3* | osf4* | osf5*)
10891 version_type=osf
10892 need_lib_prefix=no
10893 need_version=no
10894 soname_spec='$libname$release$shared_ext$major'
10895 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10896 shlibpath_var=LD_LIBRARY_PATH
10897 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10898 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10899 ;;
10900
10901 rdos*)
10902 dynamic_linker=no
10903 ;;
10904
10905 solaris*)
10906 version_type=linux # correct to gnu/linux during the next big refactor
10907 need_lib_prefix=no
10908 need_version=no
10909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10910 soname_spec='$libname$release$shared_ext$major'
10911 shlibpath_var=LD_LIBRARY_PATH
10912 shlibpath_overrides_runpath=yes
10913 hardcode_into_libs=yes
10914 # ldd complains unless libraries are executable
10915 postinstall_cmds='chmod +x $lib'
10916 ;;
10917
10918 sunos4*)
10919 version_type=sunos
10920 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
10921 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10922 shlibpath_var=LD_LIBRARY_PATH
10923 shlibpath_overrides_runpath=yes
10924 if test yes = "$with_gnu_ld"; then
10925 need_lib_prefix=no
10926 fi
10927 need_version=yes
10928 ;;
10929
10930 sysv4 | sysv4.3*)
10931 version_type=linux # correct to gnu/linux during the next big refactor
10932 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10933 soname_spec='$libname$release$shared_ext$major'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 case $host_vendor in
10936 sni)
10937 shlibpath_overrides_runpath=no
10938 need_lib_prefix=no
10939 runpath_var=LD_RUN_PATH
10940 ;;
10941 siemens)
10942 need_lib_prefix=no
10943 ;;
10944 motorola)
10945 need_lib_prefix=no
10946 need_version=no
10947 shlibpath_overrides_runpath=no
10948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10949 ;;
10950 esac
10951 ;;
10952
10953 sysv4*MP*)
10954 if test -d /usr/nec; then
10955 version_type=linux # correct to gnu/linux during the next big refactor
10956 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
10957 soname_spec='$libname$shared_ext.$major'
10958 shlibpath_var=LD_LIBRARY_PATH
10959 fi
10960 ;;
10961
10962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10963 version_type=sco
10964 need_lib_prefix=no
10965 need_version=no
10966 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
10967 soname_spec='$libname$release$shared_ext$major'
10968 shlibpath_var=LD_LIBRARY_PATH
10969 shlibpath_overrides_runpath=yes
10970 hardcode_into_libs=yes
10971 if test yes = "$with_gnu_ld"; then
10972 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10973 else
10974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10975 case $host_os in
10976 sco3.2v5*)
10977 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10978 ;;
10979 esac
10980 fi
10981 sys_lib_dlsearch_path_spec='/usr/lib'
10982 ;;
10983
10984 tpf*)
10985 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10986 version_type=linux # correct to gnu/linux during the next big refactor
10987 need_lib_prefix=no
10988 need_version=no
10989 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10990 shlibpath_var=LD_LIBRARY_PATH
10991 shlibpath_overrides_runpath=no
10992 hardcode_into_libs=yes
10993 ;;
10994
10995 uts4*)
10996 version_type=linux # correct to gnu/linux during the next big refactor
10997 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10998 soname_spec='$libname$release$shared_ext$major'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 ;;
11001
11002 *)
11003 dynamic_linker=no
11004 ;;
11005 esac
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11007 $as_echo "$dynamic_linker" >&6; }
11008 test no = "$dynamic_linker" && can_build_shared=no
11009
11010 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11011 if test yes = "$GCC"; then
11012 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11013 fi
11014
11015 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11016 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11017 fi
11018
11019 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11020 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11021 fi
11022
11023 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11024 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11025
11026 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11027 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11028
11029 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11030 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11129 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11130 hardcode_action=
11131 if test -n "$hardcode_libdir_flag_spec" ||
11132 test -n "$runpath_var" ||
11133 test yes = "$hardcode_automatic"; then
11134
11135 # We can hardcode non-existent directories.
11136 if test no != "$hardcode_direct" &&
11137 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11138 # have to relink, otherwise we might link with an installed library
11139 # when we should be linking with a yet-to-be-installed one
11140 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11141 test no != "$hardcode_minus_L"; then
11142 # Linking always hardcodes the temporary library directory.
11143 hardcode_action=relink
11144 else
11145 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11146 hardcode_action=immediate
11147 fi
11148 else
11149 # We cannot hardcode anything, or else we can only hardcode existing
11150 # directories.
11151 hardcode_action=unsupported
11152 fi
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11154 $as_echo "$hardcode_action" >&6; }
11155
11156 if test relink = "$hardcode_action" ||
11157 test yes = "$inherit_rpath"; then
11158 # Fast installation is not supported
11159 enable_fast_install=no
11160 elif test yes = "$shlibpath_overrides_runpath" ||
11161 test no = "$enable_shared"; then
11162 # Fast installation is not necessary
11163 enable_fast_install=needless
11164 fi
11165
11166
11167
11168
11169
11170
11171 if test yes != "$enable_dlopen"; then
11172 enable_dlopen=unknown
11173 enable_dlopen_self=unknown
11174 enable_dlopen_self_static=unknown
11175 else
11176 lt_cv_dlopen=no
11177 lt_cv_dlopen_libs=
11178
11179 case $host_os in
11180 beos*)
11181 lt_cv_dlopen=load_add_on
11182 lt_cv_dlopen_libs=
11183 lt_cv_dlopen_self=yes
11184 ;;
11185
11186 mingw* | pw32* | cegcc*)
11187 lt_cv_dlopen=LoadLibrary
11188 lt_cv_dlopen_libs=
11189 ;;
11190
11191 cygwin*)
11192 lt_cv_dlopen=dlopen
11193 lt_cv_dlopen_libs=
11194 ;;
11195
11196 darwin*)
11197 # if libdl is installed we need to link against it
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11199 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11200 if ${ac_cv_lib_dl_dlopen+:} false; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 ac_check_lib_save_LIBS=$LIBS
11204 LIBS="-ldl $LIBS"
11205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11206 /* end confdefs.h. */
11207
11208 /* Override any GCC internal prototype to avoid an error.
11209 Use char because int might match the return type of a GCC
11210 builtin and then its argument prototype would still apply. */
11211 #ifdef __cplusplus
11212 extern "C"
11213 #endif
11214 char dlopen ();
11215 int
11216 main ()
11217 {
11218 return dlopen ();
11219 ;
11220 return 0;
11221 }
11222 _ACEOF
11223 if ac_fn_c_try_link "$LINENO"; then :
11224 ac_cv_lib_dl_dlopen=yes
11225 else
11226 ac_cv_lib_dl_dlopen=no
11227 fi
11228 rm -f core conftest.err conftest.$ac_objext \
11229 conftest$ac_exeext conftest.$ac_ext
11230 LIBS=$ac_check_lib_save_LIBS
11231 fi
11232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11233 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11234 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11235 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11236 else
11237
11238 lt_cv_dlopen=dyld
11239 lt_cv_dlopen_libs=
11240 lt_cv_dlopen_self=yes
11241
11242 fi
11243
11244 ;;
11245
11246 tpf*)
11247 # Don't try to run any link tests for TPF. We know it's impossible
11248 # because TPF is a cross-compiler, and we know how we open DSOs.
11249 lt_cv_dlopen=dlopen
11250 lt_cv_dlopen_libs=
11251 lt_cv_dlopen_self=no
11252 ;;
11253
11254 *)
11255 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11256 if test "x$ac_cv_func_shl_load" = xyes; then :
11257 lt_cv_dlopen=shl_load
11258 else
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11260 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11261 if ${ac_cv_lib_dld_shl_load+:} false; then :
11262 $as_echo_n "(cached) " >&6
11263 else
11264 ac_check_lib_save_LIBS=$LIBS
11265 LIBS="-ldld $LIBS"
11266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11267 /* end confdefs.h. */
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char shl_load ();
11276 int
11277 main ()
11278 {
11279 return shl_load ();
11280 ;
11281 return 0;
11282 }
11283 _ACEOF
11284 if ac_fn_c_try_link "$LINENO"; then :
11285 ac_cv_lib_dld_shl_load=yes
11286 else
11287 ac_cv_lib_dld_shl_load=no
11288 fi
11289 rm -f core conftest.err conftest.$ac_objext \
11290 conftest$ac_exeext conftest.$ac_ext
11291 LIBS=$ac_check_lib_save_LIBS
11292 fi
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11294 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11295 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11296 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11297 else
11298 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11299 if test "x$ac_cv_func_dlopen" = xyes; then :
11300 lt_cv_dlopen=dlopen
11301 else
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11303 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11304 if ${ac_cv_lib_dl_dlopen+:} false; then :
11305 $as_echo_n "(cached) " >&6
11306 else
11307 ac_check_lib_save_LIBS=$LIBS
11308 LIBS="-ldl $LIBS"
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11311
11312 /* Override any GCC internal prototype to avoid an error.
11313 Use char because int might match the return type of a GCC
11314 builtin and then its argument prototype would still apply. */
11315 #ifdef __cplusplus
11316 extern "C"
11317 #endif
11318 char dlopen ();
11319 int
11320 main ()
11321 {
11322 return dlopen ();
11323 ;
11324 return 0;
11325 }
11326 _ACEOF
11327 if ac_fn_c_try_link "$LINENO"; then :
11328 ac_cv_lib_dl_dlopen=yes
11329 else
11330 ac_cv_lib_dl_dlopen=no
11331 fi
11332 rm -f core conftest.err conftest.$ac_objext \
11333 conftest$ac_exeext conftest.$ac_ext
11334 LIBS=$ac_check_lib_save_LIBS
11335 fi
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11337 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11338 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11339 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11340 else
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11342 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11343 if ${ac_cv_lib_svld_dlopen+:} false; then :
11344 $as_echo_n "(cached) " >&6
11345 else
11346 ac_check_lib_save_LIBS=$LIBS
11347 LIBS="-lsvld $LIBS"
11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11349 /* end confdefs.h. */
11350
11351 /* Override any GCC internal prototype to avoid an error.
11352 Use char because int might match the return type of a GCC
11353 builtin and then its argument prototype would still apply. */
11354 #ifdef __cplusplus
11355 extern "C"
11356 #endif
11357 char dlopen ();
11358 int
11359 main ()
11360 {
11361 return dlopen ();
11362 ;
11363 return 0;
11364 }
11365 _ACEOF
11366 if ac_fn_c_try_link "$LINENO"; then :
11367 ac_cv_lib_svld_dlopen=yes
11368 else
11369 ac_cv_lib_svld_dlopen=no
11370 fi
11371 rm -f core conftest.err conftest.$ac_objext \
11372 conftest$ac_exeext conftest.$ac_ext
11373 LIBS=$ac_check_lib_save_LIBS
11374 fi
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11376 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11377 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11378 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11379 else
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11381 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11382 if ${ac_cv_lib_dld_dld_link+:} false; then :
11383 $as_echo_n "(cached) " >&6
11384 else
11385 ac_check_lib_save_LIBS=$LIBS
11386 LIBS="-ldld $LIBS"
11387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11389
11390 /* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11393 #ifdef __cplusplus
11394 extern "C"
11395 #endif
11396 char dld_link ();
11397 int
11398 main ()
11399 {
11400 return dld_link ();
11401 ;
11402 return 0;
11403 }
11404 _ACEOF
11405 if ac_fn_c_try_link "$LINENO"; then :
11406 ac_cv_lib_dld_dld_link=yes
11407 else
11408 ac_cv_lib_dld_dld_link=no
11409 fi
11410 rm -f core conftest.err conftest.$ac_objext \
11411 conftest$ac_exeext conftest.$ac_ext
11412 LIBS=$ac_check_lib_save_LIBS
11413 fi
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11415 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11416 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11417 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
11418 fi
11419
11420
11421 fi
11422
11423
11424 fi
11425
11426
11427 fi
11428
11429
11430 fi
11431
11432
11433 fi
11434
11435 ;;
11436 esac
11437
11438 if test no = "$lt_cv_dlopen"; then
11439 enable_dlopen=no
11440 else
11441 enable_dlopen=yes
11442 fi
11443
11444 case $lt_cv_dlopen in
11445 dlopen)
11446 save_CPPFLAGS=$CPPFLAGS
11447 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11448
11449 save_LDFLAGS=$LDFLAGS
11450 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11451
11452 save_LIBS=$LIBS
11453 LIBS="$lt_cv_dlopen_libs $LIBS"
11454
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11456 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11457 if ${lt_cv_dlopen_self+:} false; then :
11458 $as_echo_n "(cached) " >&6
11459 else
11460 if test yes = "$cross_compiling"; then :
11461 lt_cv_dlopen_self=cross
11462 else
11463 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11464 lt_status=$lt_dlunknown
11465 cat > conftest.$ac_ext <<_LT_EOF
11466 #line $LINENO "configure"
11467 #include "confdefs.h"
11468
11469 #if HAVE_DLFCN_H
11470 #include <dlfcn.h>
11471 #endif
11472
11473 #include <stdio.h>
11474
11475 #ifdef RTLD_GLOBAL
11476 # define LT_DLGLOBAL RTLD_GLOBAL
11477 #else
11478 # ifdef DL_GLOBAL
11479 # define LT_DLGLOBAL DL_GLOBAL
11480 # else
11481 # define LT_DLGLOBAL 0
11482 # endif
11483 #endif
11484
11485 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11486 find out it does not work in some platform. */
11487 #ifndef LT_DLLAZY_OR_NOW
11488 # ifdef RTLD_LAZY
11489 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11490 # else
11491 # ifdef DL_LAZY
11492 # define LT_DLLAZY_OR_NOW DL_LAZY
11493 # else
11494 # ifdef RTLD_NOW
11495 # define LT_DLLAZY_OR_NOW RTLD_NOW
11496 # else
11497 # ifdef DL_NOW
11498 # define LT_DLLAZY_OR_NOW DL_NOW
11499 # else
11500 # define LT_DLLAZY_OR_NOW 0
11501 # endif
11502 # endif
11503 # endif
11504 # endif
11505 #endif
11506
11507 /* When -fvisibility=hidden is used, assume the code has been annotated
11508 correspondingly for the symbols needed. */
11509 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11510 int fnord () __attribute__((visibility("default")));
11511 #endif
11512
11513 int fnord () { return 42; }
11514 int main ()
11515 {
11516 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11517 int status = $lt_dlunknown;
11518
11519 if (self)
11520 {
11521 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11522 else
11523 {
11524 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11525 else puts (dlerror ());
11526 }
11527 /* dlclose (self); */
11528 }
11529 else
11530 puts (dlerror ());
11531
11532 return status;
11533 }
11534 _LT_EOF
11535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11536 (eval $ac_link) 2>&5
11537 ac_status=$?
11538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11539 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11540 (./conftest; exit; ) >&5 2>/dev/null
11541 lt_status=$?
11542 case x$lt_status in
11543 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11544 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11545 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11546 esac
11547 else :
11548 # compilation failed
11549 lt_cv_dlopen_self=no
11550 fi
11551 fi
11552 rm -fr conftest*
11553
11554
11555 fi
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11557 $as_echo "$lt_cv_dlopen_self" >&6; }
11558
11559 if test yes = "$lt_cv_dlopen_self"; then
11560 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11562 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11563 if ${lt_cv_dlopen_self_static+:} false; then :
11564 $as_echo_n "(cached) " >&6
11565 else
11566 if test yes = "$cross_compiling"; then :
11567 lt_cv_dlopen_self_static=cross
11568 else
11569 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11570 lt_status=$lt_dlunknown
11571 cat > conftest.$ac_ext <<_LT_EOF
11572 #line $LINENO "configure"
11573 #include "confdefs.h"
11574
11575 #if HAVE_DLFCN_H
11576 #include <dlfcn.h>
11577 #endif
11578
11579 #include <stdio.h>
11580
11581 #ifdef RTLD_GLOBAL
11582 # define LT_DLGLOBAL RTLD_GLOBAL
11583 #else
11584 # ifdef DL_GLOBAL
11585 # define LT_DLGLOBAL DL_GLOBAL
11586 # else
11587 # define LT_DLGLOBAL 0
11588 # endif
11589 #endif
11590
11591 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11592 find out it does not work in some platform. */
11593 #ifndef LT_DLLAZY_OR_NOW
11594 # ifdef RTLD_LAZY
11595 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11596 # else
11597 # ifdef DL_LAZY
11598 # define LT_DLLAZY_OR_NOW DL_LAZY
11599 # else
11600 # ifdef RTLD_NOW
11601 # define LT_DLLAZY_OR_NOW RTLD_NOW
11602 # else
11603 # ifdef DL_NOW
11604 # define LT_DLLAZY_OR_NOW DL_NOW
11605 # else
11606 # define LT_DLLAZY_OR_NOW 0
11607 # endif
11608 # endif
11609 # endif
11610 # endif
11611 #endif
11612
11613 /* When -fvisibility=hidden is used, assume the code has been annotated
11614 correspondingly for the symbols needed. */
11615 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11616 int fnord () __attribute__((visibility("default")));
11617 #endif
11618
11619 int fnord () { return 42; }
11620 int main ()
11621 {
11622 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11623 int status = $lt_dlunknown;
11624
11625 if (self)
11626 {
11627 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11628 else
11629 {
11630 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11631 else puts (dlerror ());
11632 }
11633 /* dlclose (self); */
11634 }
11635 else
11636 puts (dlerror ());
11637
11638 return status;
11639 }
11640 _LT_EOF
11641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11642 (eval $ac_link) 2>&5
11643 ac_status=$?
11644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11645 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
11646 (./conftest; exit; ) >&5 2>/dev/null
11647 lt_status=$?
11648 case x$lt_status in
11649 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11650 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11651 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11652 esac
11653 else :
11654 # compilation failed
11655 lt_cv_dlopen_self_static=no
11656 fi
11657 fi
11658 rm -fr conftest*
11659
11660
11661 fi
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11663 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11664 fi
11665
11666 CPPFLAGS=$save_CPPFLAGS
11667 LDFLAGS=$save_LDFLAGS
11668 LIBS=$save_LIBS
11669 ;;
11670 esac
11671
11672 case $lt_cv_dlopen_self in
11673 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11674 *) enable_dlopen_self=unknown ;;
11675 esac
11676
11677 case $lt_cv_dlopen_self_static in
11678 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11679 *) enable_dlopen_self_static=unknown ;;
11680 esac
11681 fi
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699 striplib=
11700 old_striplib=
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11702 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11703 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11704 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11705 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11707 $as_echo "yes" >&6; }
11708 else
11709 # FIXME - insert some real tests, host_os isn't really good enough
11710 case $host_os in
11711 darwin*)
11712 if test -n "$STRIP"; then
11713 striplib="$STRIP -x"
11714 old_striplib="$STRIP -S"
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11716 $as_echo "yes" >&6; }
11717 else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11720 fi
11721 ;;
11722 *)
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11724 $as_echo "no" >&6; }
11725 ;;
11726 esac
11727 fi
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740 # Report what library types will actually be built
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11742 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11744 $as_echo "$can_build_shared" >&6; }
11745
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11747 $as_echo_n "checking whether to build shared libraries... " >&6; }
11748 test no = "$can_build_shared" && enable_shared=no
11749
11750 # On AIX, shared libraries and static libraries use the same namespace, and
11751 # are all built from PIC.
11752 case $host_os in
11753 aix3*)
11754 test yes = "$enable_shared" && enable_static=no
11755 if test -n "$RANLIB"; then
11756 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11757 postinstall_cmds='$RANLIB $lib'
11758 fi
11759 ;;
11760
11761 aix[4-9]*)
11762 if test ia64 != "$host_cpu"; then
11763 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
11764 yes,aix,yes) ;; # shared object as lib.so file only
11765 yes,svr4,*) ;; # shared object as lib.so archive member only
11766 yes,*) enable_static=no ;; # shared object in lib.a archive as well
11767 esac
11768 fi
11769 ;;
11770 esac
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11772 $as_echo "$enable_shared" >&6; }
11773
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11775 $as_echo_n "checking whether to build static libraries... " >&6; }
11776 # Make sure either enable_shared or enable_static is yes.
11777 test yes = "$enable_shared" || enable_static=yes
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11779 $as_echo "$enable_static" >&6; }
11780
11781
11782
11783
11784 fi
11785 ac_ext=c
11786 ac_cpp='$CPP $CPPFLAGS'
11787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11790
11791 CC=$lt_save_CC
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807 ac_config_commands="$ac_config_commands libtool"
11808
11809
11810
11811
11812 # Only expand once:
11813
11814
11815
11816
11817 # Checks for programs.
11818 rm -rf .tst 2>/dev/null
11819 mkdir .tst 2>/dev/null
11820 if test -d .tst; then
11821 am__leading_dot=.
11822 else
11823 am__leading_dot=_
11824 fi
11825 rmdir .tst 2>/dev/null
11826
11827 DEPDIR="${am__leading_dot}deps"
11828
11829 ac_config_commands="$ac_config_commands depfiles"
11830
11831
11832 am_make=${MAKE-make}
11833 cat > confinc << 'END'
11834 am__doit:
11835 @echo this is the am__doit target
11836 .PHONY: am__doit
11837 END
11838 # If we don't find an include directive, just comment out the code.
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
11840 $as_echo_n "checking for style of include used by $am_make... " >&6; }
11841 am__include="#"
11842 am__quote=
11843 _am_result=none
11844 # First try GNU make style include.
11845 echo "include confinc" > confmf
11846 # Ignore all kinds of additional output from 'make'.
11847 case `$am_make -s -f confmf 2> /dev/null` in #(
11848 *the\ am__doit\ target*)
11849 am__include=include
11850 am__quote=
11851 _am_result=GNU
11852 ;;
11853 esac
11854 # Now try BSD make style include.
11855 if test "$am__include" = "#"; then
11856 echo '.include "confinc"' > confmf
11857 case `$am_make -s -f confmf 2> /dev/null` in #(
11858 *the\ am__doit\ target*)
11859 am__include=.include
11860 am__quote="\""
11861 _am_result=BSD
11862 ;;
11863 esac
11864 fi
11865
11866
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
11868 $as_echo "$_am_result" >&6; }
11869 rm -f confinc confmf
11870
11871 # Check whether --enable-dependency-tracking was given.
11872 if test "${enable_dependency_tracking+set}" = set; then :
11873 enableval=$enable_dependency_tracking;
11874 fi
11875
11876 if test "x$enable_dependency_tracking" != xno; then
11877 am_depcomp="$ac_aux_dir/depcomp"
11878 AMDEPBACKSLASH='\'
11879 am__nodep='_no'
11880 fi
11881 if test "x$enable_dependency_tracking" != xno; then
11882 AMDEP_TRUE=
11883 AMDEP_FALSE='#'
11884 else
11885 AMDEP_TRUE='#'
11886 AMDEP_FALSE=
11887 fi
11888
11889
11890 # By default we simply use the C compiler to build assembly code.
11891
11892 test "${CCAS+set}" = set || CCAS=$CC
11893 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
11894
11895
11896
11897 depcc="$CCAS" am_compiler_list=
11898
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11900 $as_echo_n "checking dependency style of $depcc... " >&6; }
11901 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
11902 $as_echo_n "(cached) " >&6
11903 else
11904 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11905 # We make a subdir and do the tests there. Otherwise we can end up
11906 # making bogus files that we don't know about and never remove. For
11907 # instance it was reported that on HP-UX the gcc test will end up
11908 # making a dummy file named 'D' -- because '-MD' means "put the output
11909 # in D".
11910 rm -rf conftest.dir
11911 mkdir conftest.dir
11912 # Copy depcomp to subdir because otherwise we won't find it if we're
11913 # using a relative directory.
11914 cp "$am_depcomp" conftest.dir
11915 cd conftest.dir
11916 # We will build objects and dependencies in a subdirectory because
11917 # it helps to detect inapplicable dependency modes. For instance
11918 # both Tru64's cc and ICC support -MD to output dependencies as a
11919 # side effect of compilation, but ICC will put the dependencies in
11920 # the current directory while Tru64 will put them in the object
11921 # directory.
11922 mkdir sub
11923
11924 am_cv_CCAS_dependencies_compiler_type=none
11925 if test "$am_compiler_list" = ""; then
11926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11927 fi
11928 am__universal=false
11929
11930
11931 for depmode in $am_compiler_list; do
11932 # Setup a source with many dependencies, because some compilers
11933 # like to wrap large dependency lists on column 80 (with \), and
11934 # we should not choose a depcomp mode which is confused by this.
11935 #
11936 # We need to recreate these files for each test, as the compiler may
11937 # overwrite some of them when testing with obscure command lines.
11938 # This happens at least with the AIX C compiler.
11939 : > sub/conftest.c
11940 for i in 1 2 3 4 5 6; do
11941 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11942 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
11943 # Solaris 10 /bin/sh.
11944 echo '/* dummy */' > sub/conftst$i.h
11945 done
11946 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11947
11948 # We check with '-c' and '-o' for the sake of the "dashmstdout"
11949 # mode. It turns out that the SunPro C++ compiler does not properly
11950 # handle '-M -o', and we need to detect this. Also, some Intel
11951 # versions had trouble with output in subdirs.
11952 am__obj=sub/conftest.${OBJEXT-o}
11953 am__minus_obj="-o $am__obj"
11954 case $depmode in
11955 gcc)
11956 # This depmode causes a compiler race in universal mode.
11957 test "$am__universal" = false || continue
11958 ;;
11959 nosideeffect)
11960 # After this tag, mechanisms are not by side-effect, so they'll
11961 # only be used when explicitly requested.
11962 if test "x$enable_dependency_tracking" = xyes; then
11963 continue
11964 else
11965 break
11966 fi
11967 ;;
11968 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
11969 # This compiler won't grok '-c -o', but also, the minuso test has
11970 # not run yet. These depmodes are late enough in the game, and
11971 # so weak that their functioning should not be impacted.
11972 am__obj=conftest.${OBJEXT-o}
11973 am__minus_obj=
11974 ;;
11975 none) break ;;
11976 esac
11977 if depmode=$depmode \
11978 source=sub/conftest.c object=$am__obj \
11979 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11980 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11981 >/dev/null 2>conftest.err &&
11982 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11983 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11984 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11985 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11986 # icc doesn't choke on unknown options, it will just issue warnings
11987 # or remarks (even with -Werror). So we grep stderr for any message
11988 # that says an option was ignored or not supported.
11989 # When given -MP, icc 7.0 and 7.1 complain thusly:
11990 # icc: Command line warning: ignoring option '-M'; no argument required
11991 # The diagnosis changed in icc 8.0:
11992 # icc: Command line remark: option '-MP' not supported
11993 if (grep 'ignoring option' conftest.err ||
11994 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11995 am_cv_CCAS_dependencies_compiler_type=$depmode
11996 break
11997 fi
11998 fi
11999 done
12000
12001 cd ..
12002 rm -rf conftest.dir
12003 else
12004 am_cv_CCAS_dependencies_compiler_type=none
12005 fi
12006
12007 fi
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12009 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12010 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
12011
12012 if
12013 test "x$enable_dependency_tracking" != xno \
12014 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
12015 am__fastdepCCAS_TRUE=
12016 am__fastdepCCAS_FALSE='#'
12017 else
12018 am__fastdepCCAS_TRUE='#'
12019 am__fastdepCCAS_FALSE=
12020 fi
12021
12022
12023 ac_ext=cpp
12024 ac_cpp='$CXXCPP $CPPFLAGS'
12025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12028 if test -z "$CXX"; then
12029 if test -n "$CCC"; then
12030 CXX=$CCC
12031 else
12032 if test -n "$ac_tool_prefix"; then
12033 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12034 do
12035 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12038 $as_echo_n "checking for $ac_word... " >&6; }
12039 if ${ac_cv_prog_CXX+:} false; then :
12040 $as_echo_n "(cached) " >&6
12041 else
12042 if test -n "$CXX"; then
12043 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12044 else
12045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046 for as_dir in $PATH
12047 do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
12050 for ac_exec_ext in '' $ac_executable_extensions; do
12051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12052 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12054 break 2
12055 fi
12056 done
12057 done
12058 IFS=$as_save_IFS
12059
12060 fi
12061 fi
12062 CXX=$ac_cv_prog_CXX
12063 if test -n "$CXX"; then
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12065 $as_echo "$CXX" >&6; }
12066 else
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12068 $as_echo "no" >&6; }
12069 fi
12070
12071
12072 test -n "$CXX" && break
12073 done
12074 fi
12075 if test -z "$CXX"; then
12076 ac_ct_CXX=$CXX
12077 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12078 do
12079 # Extract the first word of "$ac_prog", so it can be a program name with args.
12080 set dummy $ac_prog; ac_word=$2
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12082 $as_echo_n "checking for $ac_word... " >&6; }
12083 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12084 $as_echo_n "(cached) " >&6
12085 else
12086 if test -n "$ac_ct_CXX"; then
12087 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12088 else
12089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12090 for as_dir in $PATH
12091 do
12092 IFS=$as_save_IFS
12093 test -z "$as_dir" && as_dir=.
12094 for ac_exec_ext in '' $ac_executable_extensions; do
12095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12096 ac_cv_prog_ac_ct_CXX="$ac_prog"
12097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12098 break 2
12099 fi
12100 done
12101 done
12102 IFS=$as_save_IFS
12103
12104 fi
12105 fi
12106 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12107 if test -n "$ac_ct_CXX"; then
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12109 $as_echo "$ac_ct_CXX" >&6; }
12110 else
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12112 $as_echo "no" >&6; }
12113 fi
12114
12115
12116 test -n "$ac_ct_CXX" && break
12117 done
12118
12119 if test "x$ac_ct_CXX" = x; then
12120 CXX="g++"
12121 else
12122 case $cross_compiling:$ac_tool_warned in
12123 yes:)
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12126 ac_tool_warned=yes ;;
12127 esac
12128 CXX=$ac_ct_CXX
12129 fi
12130 fi
12131
12132 fi
12133 fi
12134 # Provide some information about the compiler.
12135 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12136 set X $ac_compile
12137 ac_compiler=$2
12138 for ac_option in --version -v -V -qversion; do
12139 { { ac_try="$ac_compiler $ac_option >&5"
12140 case "(($ac_try" in
12141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12142 *) ac_try_echo=$ac_try;;
12143 esac
12144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12145 $as_echo "$ac_try_echo"; } >&5
12146 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12147 ac_status=$?
12148 if test -s conftest.err; then
12149 sed '10a\
12150 ... rest of stderr output deleted ...
12151 10q' conftest.err >conftest.er1
12152 cat conftest.er1 >&5
12153 fi
12154 rm -f conftest.er1 conftest.err
12155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12156 test $ac_status = 0; }
12157 done
12158
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12160 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12161 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12162 $as_echo_n "(cached) " >&6
12163 else
12164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12165 /* end confdefs.h. */
12166
12167 int
12168 main ()
12169 {
12170 #ifndef __GNUC__
12171 choke me
12172 #endif
12173
12174 ;
12175 return 0;
12176 }
12177 _ACEOF
12178 if ac_fn_cxx_try_compile "$LINENO"; then :
12179 ac_compiler_gnu=yes
12180 else
12181 ac_compiler_gnu=no
12182 fi
12183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12184 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12185
12186 fi
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12188 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12189 if test $ac_compiler_gnu = yes; then
12190 GXX=yes
12191 else
12192 GXX=
12193 fi
12194 ac_test_CXXFLAGS=${CXXFLAGS+set}
12195 ac_save_CXXFLAGS=$CXXFLAGS
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12197 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12198 if ${ac_cv_prog_cxx_g+:} false; then :
12199 $as_echo_n "(cached) " >&6
12200 else
12201 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12202 ac_cxx_werror_flag=yes
12203 ac_cv_prog_cxx_g=no
12204 CXXFLAGS="-g"
12205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206 /* end confdefs.h. */
12207
12208 int
12209 main ()
12210 {
12211
12212 ;
12213 return 0;
12214 }
12215 _ACEOF
12216 if ac_fn_cxx_try_compile "$LINENO"; then :
12217 ac_cv_prog_cxx_g=yes
12218 else
12219 CXXFLAGS=""
12220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12221 /* end confdefs.h. */
12222
12223 int
12224 main ()
12225 {
12226
12227 ;
12228 return 0;
12229 }
12230 _ACEOF
12231 if ac_fn_cxx_try_compile "$LINENO"; then :
12232
12233 else
12234 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12235 CXXFLAGS="-g"
12236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12237 /* end confdefs.h. */
12238
12239 int
12240 main ()
12241 {
12242
12243 ;
12244 return 0;
12245 }
12246 _ACEOF
12247 if ac_fn_cxx_try_compile "$LINENO"; then :
12248 ac_cv_prog_cxx_g=yes
12249 fi
12250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 fi
12252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12253 fi
12254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12255 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12256 fi
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12258 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12259 if test "$ac_test_CXXFLAGS" = set; then
12260 CXXFLAGS=$ac_save_CXXFLAGS
12261 elif test $ac_cv_prog_cxx_g = yes; then
12262 if test "$GXX" = yes; then
12263 CXXFLAGS="-g -O2"
12264 else
12265 CXXFLAGS="-g"
12266 fi
12267 else
12268 if test "$GXX" = yes; then
12269 CXXFLAGS="-O2"
12270 else
12271 CXXFLAGS=
12272 fi
12273 fi
12274 ac_ext=c
12275 ac_cpp='$CPP $CPPFLAGS'
12276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12279
12280
12281
12282 func_stripname_cnf ()
12283 {
12284 case $2 in
12285 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
12286 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
12287 esac
12288 } # func_stripname_cnf
12289
12290 if test -n "$CXX" && ( test no != "$CXX" &&
12291 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
12292 (test g++ != "$CXX"))); then
12293 ac_ext=cpp
12294 ac_cpp='$CXXCPP $CPPFLAGS'
12295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12299 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12300 if test -z "$CXXCPP"; then
12301 if ${ac_cv_prog_CXXCPP+:} false; then :
12302 $as_echo_n "(cached) " >&6
12303 else
12304 # Double quotes because CXXCPP needs to be expanded
12305 for CXXCPP in "$CXX -E" "/lib/cpp"
12306 do
12307 ac_preproc_ok=false
12308 for ac_cxx_preproc_warn_flag in '' yes
12309 do
12310 # Use a header file that comes with gcc, so configuring glibc
12311 # with a fresh cross-compiler works.
12312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12313 # <limits.h> exists even on freestanding compilers.
12314 # On the NeXT, cc -E runs the code through the compiler's parser,
12315 # not just through cpp. "Syntax error" is here to catch this case.
12316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12317 /* end confdefs.h. */
12318 #ifdef __STDC__
12319 # include <limits.h>
12320 #else
12321 # include <assert.h>
12322 #endif
12323 Syntax error
12324 _ACEOF
12325 if ac_fn_cxx_try_cpp "$LINENO"; then :
12326
12327 else
12328 # Broken: fails on valid input.
12329 continue
12330 fi
12331 rm -f conftest.err conftest.i conftest.$ac_ext
12332
12333 # OK, works on sane cases. Now check whether nonexistent headers
12334 # can be detected and how.
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12337 #include <ac_nonexistent.h>
12338 _ACEOF
12339 if ac_fn_cxx_try_cpp "$LINENO"; then :
12340 # Broken: success on invalid input.
12341 continue
12342 else
12343 # Passes both tests.
12344 ac_preproc_ok=:
12345 break
12346 fi
12347 rm -f conftest.err conftest.i conftest.$ac_ext
12348
12349 done
12350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12351 rm -f conftest.i conftest.err conftest.$ac_ext
12352 if $ac_preproc_ok; then :
12353 break
12354 fi
12355
12356 done
12357 ac_cv_prog_CXXCPP=$CXXCPP
12358
12359 fi
12360 CXXCPP=$ac_cv_prog_CXXCPP
12361 else
12362 ac_cv_prog_CXXCPP=$CXXCPP
12363 fi
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12365 $as_echo "$CXXCPP" >&6; }
12366 ac_preproc_ok=false
12367 for ac_cxx_preproc_warn_flag in '' yes
12368 do
12369 # Use a header file that comes with gcc, so configuring glibc
12370 # with a fresh cross-compiler works.
12371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12372 # <limits.h> exists even on freestanding compilers.
12373 # On the NeXT, cc -E runs the code through the compiler's parser,
12374 # not just through cpp. "Syntax error" is here to catch this case.
12375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12376 /* end confdefs.h. */
12377 #ifdef __STDC__
12378 # include <limits.h>
12379 #else
12380 # include <assert.h>
12381 #endif
12382 Syntax error
12383 _ACEOF
12384 if ac_fn_cxx_try_cpp "$LINENO"; then :
12385
12386 else
12387 # Broken: fails on valid input.
12388 continue
12389 fi
12390 rm -f conftest.err conftest.i conftest.$ac_ext
12391
12392 # OK, works on sane cases. Now check whether nonexistent headers
12393 # can be detected and how.
12394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* end confdefs.h. */
12396 #include <ac_nonexistent.h>
12397 _ACEOF
12398 if ac_fn_cxx_try_cpp "$LINENO"; then :
12399 # Broken: success on invalid input.
12400 continue
12401 else
12402 # Passes both tests.
12403 ac_preproc_ok=:
12404 break
12405 fi
12406 rm -f conftest.err conftest.i conftest.$ac_ext
12407
12408 done
12409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12410 rm -f conftest.i conftest.err conftest.$ac_ext
12411 if $ac_preproc_ok; then :
12412
12413 else
12414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12416 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12417 See \`config.log' for more details" "$LINENO" 5; }
12418 fi
12419
12420 ac_ext=c
12421 ac_cpp='$CPP $CPPFLAGS'
12422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12425
12426 else
12427 _lt_caught_CXX_error=yes
12428 fi
12429
12430 ac_ext=cpp
12431 ac_cpp='$CXXCPP $CPPFLAGS'
12432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12435
12436 archive_cmds_need_lc_CXX=no
12437 allow_undefined_flag_CXX=
12438 always_export_symbols_CXX=no
12439 archive_expsym_cmds_CXX=
12440 compiler_needs_object_CXX=no
12441 export_dynamic_flag_spec_CXX=
12442 hardcode_direct_CXX=no
12443 hardcode_direct_absolute_CXX=no
12444 hardcode_libdir_flag_spec_CXX=
12445 hardcode_libdir_separator_CXX=
12446 hardcode_minus_L_CXX=no
12447 hardcode_shlibpath_var_CXX=unsupported
12448 hardcode_automatic_CXX=no
12449 inherit_rpath_CXX=no
12450 module_cmds_CXX=
12451 module_expsym_cmds_CXX=
12452 link_all_deplibs_CXX=unknown
12453 old_archive_cmds_CXX=$old_archive_cmds
12454 reload_flag_CXX=$reload_flag
12455 reload_cmds_CXX=$reload_cmds
12456 no_undefined_flag_CXX=
12457 whole_archive_flag_spec_CXX=
12458 enable_shared_with_static_runtimes_CXX=no
12459
12460 # Source file extension for C++ test sources.
12461 ac_ext=cpp
12462
12463 # Object file extension for compiled C++ test sources.
12464 objext=o
12465 objext_CXX=$objext
12466
12467 # No sense in running all these tests if we already determined that
12468 # the CXX compiler isn't working. Some variables (like enable_shared)
12469 # are currently assumed to apply to all compilers on this platform,
12470 # and will be corrupted by setting them based on a non-working compiler.
12471 if test yes != "$_lt_caught_CXX_error"; then
12472 # Code to be used in simple compile tests
12473 lt_simple_compile_test_code="int some_variable = 0;"
12474
12475 # Code to be used in simple link tests
12476 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12477
12478 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12479
12480
12481
12482
12483
12484
12485 # If no C compiler was specified, use CC.
12486 LTCC=${LTCC-"$CC"}
12487
12488 # If no C compiler flags were specified, use CFLAGS.
12489 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12490
12491 # Allow CC to be a program name with arguments.
12492 compiler=$CC
12493
12494
12495 # save warnings/boilerplate of simple test code
12496 ac_outfile=conftest.$ac_objext
12497 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12498 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12499 _lt_compiler_boilerplate=`cat conftest.err`
12500 $RM conftest*
12501
12502 ac_outfile=conftest.$ac_objext
12503 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12504 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12505 _lt_linker_boilerplate=`cat conftest.err`
12506 $RM -r conftest*
12507
12508
12509 # Allow CC to be a program name with arguments.
12510 lt_save_CC=$CC
12511 lt_save_CFLAGS=$CFLAGS
12512 lt_save_LD=$LD
12513 lt_save_GCC=$GCC
12514 GCC=$GXX
12515 lt_save_with_gnu_ld=$with_gnu_ld
12516 lt_save_path_LD=$lt_cv_path_LD
12517 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12518 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12519 else
12520 $as_unset lt_cv_prog_gnu_ld
12521 fi
12522 if test -n "${lt_cv_path_LDCXX+set}"; then
12523 lt_cv_path_LD=$lt_cv_path_LDCXX
12524 else
12525 $as_unset lt_cv_path_LD
12526 fi
12527 test -z "${LDCXX+set}" || LD=$LDCXX
12528 CC=${CXX-"c++"}
12529 CFLAGS=$CXXFLAGS
12530 compiler=$CC
12531 compiler_CXX=$CC
12532 func_cc_basename $compiler
12533 cc_basename=$func_cc_basename_result
12534
12535
12536 if test -n "$compiler"; then
12537 # We don't want -fno-exception when compiling C++ code, so set the
12538 # no_builtin_flag separately
12539 if test yes = "$GXX"; then
12540 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12541 else
12542 lt_prog_compiler_no_builtin_flag_CXX=
12543 fi
12544
12545 if test yes = "$GXX"; then
12546 # Set up default GNU C++ configuration
12547
12548
12549
12550 # Check whether --with-gnu-ld was given.
12551 if test "${with_gnu_ld+set}" = set; then :
12552 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
12553 else
12554 with_gnu_ld=no
12555 fi
12556
12557 ac_prog=ld
12558 if test yes = "$GCC"; then
12559 # Check if gcc -print-prog-name=ld gives a path.
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12561 $as_echo_n "checking for ld used by $CC... " >&6; }
12562 case $host in
12563 *-*-mingw*)
12564 # gcc leaves a trailing carriage return, which upsets mingw
12565 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12566 *)
12567 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12568 esac
12569 case $ac_prog in
12570 # Accept absolute paths.
12571 [\\/]* | ?:[\\/]*)
12572 re_direlt='/[^/][^/]*/\.\./'
12573 # Canonicalize the pathname of ld
12574 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12575 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12576 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12577 done
12578 test -z "$LD" && LD=$ac_prog
12579 ;;
12580 "")
12581 # If it fails, then pretend we aren't using GCC.
12582 ac_prog=ld
12583 ;;
12584 *)
12585 # If it is relative, then search for the first ld in PATH.
12586 with_gnu_ld=unknown
12587 ;;
12588 esac
12589 elif test yes = "$with_gnu_ld"; then
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12591 $as_echo_n "checking for GNU ld... " >&6; }
12592 else
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12594 $as_echo_n "checking for non-GNU ld... " >&6; }
12595 fi
12596 if ${lt_cv_path_LD+:} false; then :
12597 $as_echo_n "(cached) " >&6
12598 else
12599 if test -z "$LD"; then
12600 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12601 for ac_dir in $PATH; do
12602 IFS=$lt_save_ifs
12603 test -z "$ac_dir" && ac_dir=.
12604 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12605 lt_cv_path_LD=$ac_dir/$ac_prog
12606 # Check to see if the program is GNU ld. I'd rather use --version,
12607 # but apparently some variants of GNU ld only accept -v.
12608 # Break only if it was the GNU/non-GNU ld that we prefer.
12609 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12610 *GNU* | *'with BFD'*)
12611 test no != "$with_gnu_ld" && break
12612 ;;
12613 *)
12614 test yes != "$with_gnu_ld" && break
12615 ;;
12616 esac
12617 fi
12618 done
12619 IFS=$lt_save_ifs
12620 else
12621 lt_cv_path_LD=$LD # Let the user override the test with a path.
12622 fi
12623 fi
12624
12625 LD=$lt_cv_path_LD
12626 if test -n "$LD"; then
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12628 $as_echo "$LD" >&6; }
12629 else
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12631 $as_echo "no" >&6; }
12632 fi
12633 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12635 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12636 if ${lt_cv_prog_gnu_ld+:} false; then :
12637 $as_echo_n "(cached) " >&6
12638 else
12639 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12640 case `$LD -v 2>&1 </dev/null` in
12641 *GNU* | *'with BFD'*)
12642 lt_cv_prog_gnu_ld=yes
12643 ;;
12644 *)
12645 lt_cv_prog_gnu_ld=no
12646 ;;
12647 esac
12648 fi
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12650 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12651 with_gnu_ld=$lt_cv_prog_gnu_ld
12652
12653
12654
12655
12656
12657
12658
12659 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12660 # archiving commands below assume that GNU ld is being used.
12661 if test yes = "$with_gnu_ld"; then
12662 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
12663 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12664
12665 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
12666 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
12667
12668 # If archive_cmds runs LD, not CC, wlarc should be empty
12669 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12670 # investigate it a little bit more. (MM)
12671 wlarc='$wl'
12672
12673 # ancient GNU ld didn't support --whole-archive et. al.
12674 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12675 $GREP 'no-whole-archive' > /dev/null; then
12676 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12677 else
12678 whole_archive_flag_spec_CXX=
12679 fi
12680 else
12681 with_gnu_ld=no
12682 wlarc=
12683
12684 # A generic and very simple default shared library creation
12685 # command for GNU C++ for the case where it uses the native
12686 # linker, instead of GNU ld. If possible, this setting should
12687 # overridden to take advantage of the native linker features on
12688 # the platform it is being used on.
12689 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12690 fi
12691
12692 # Commands to make compiler produce verbose output that lists
12693 # what "hidden" libraries, object files and flags are used when
12694 # linking a shared library.
12695 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12696
12697 else
12698 GXX=no
12699 with_gnu_ld=no
12700 wlarc=
12701 fi
12702
12703 # PORTME: fill in a description of your system's C++ link characteristics
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12705 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12706 ld_shlibs_CXX=yes
12707 case $host_os in
12708 aix3*)
12709 # FIXME: insert proper C++ library support
12710 ld_shlibs_CXX=no
12711 ;;
12712 aix[4-9]*)
12713 if test ia64 = "$host_cpu"; then
12714 # On IA64, the linker does run time linking by default, so we don't
12715 # have to do anything special.
12716 aix_use_runtimelinking=no
12717 exp_sym_flag='-Bexport'
12718 no_entry_flag=
12719 else
12720 aix_use_runtimelinking=no
12721
12722 # Test if we are trying to use run time linking or normal
12723 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12724 # have runtime linking enabled, and use it for executables.
12725 # For shared libraries, we enable/disable runtime linking
12726 # depending on the kind of the shared library created -
12727 # when "with_aix_soname,aix_use_runtimelinking" is:
12728 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12729 # "aix,yes" lib.so shared, rtl:yes, for executables
12730 # lib.a static archive
12731 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12732 # lib.a(lib.so.V) shared, rtl:no, for executables
12733 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12734 # lib.a(lib.so.V) shared, rtl:no
12735 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12736 # lib.a static archive
12737 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12738 for ld_flag in $LDFLAGS; do
12739 case $ld_flag in
12740 *-brtl*)
12741 aix_use_runtimelinking=yes
12742 break
12743 ;;
12744 esac
12745 done
12746 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12747 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12748 # so we don't have lib.a shared libs to link our executables.
12749 # We have to force runtime linking in this case.
12750 aix_use_runtimelinking=yes
12751 LDFLAGS="$LDFLAGS -Wl,-brtl"
12752 fi
12753 ;;
12754 esac
12755
12756 exp_sym_flag='-bexport'
12757 no_entry_flag='-bnoentry'
12758 fi
12759
12760 # When large executables or shared objects are built, AIX ld can
12761 # have problems creating the table of contents. If linking a library
12762 # or program results in "error TOC overflow" add -mminimal-toc to
12763 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12764 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12765
12766 archive_cmds_CXX=''
12767 hardcode_direct_CXX=yes
12768 hardcode_direct_absolute_CXX=yes
12769 hardcode_libdir_separator_CXX=':'
12770 link_all_deplibs_CXX=yes
12771 file_list_spec_CXX='$wl-f,'
12772 case $with_aix_soname,$aix_use_runtimelinking in
12773 aix,*) ;; # no import file
12774 svr4,* | *,yes) # use import file
12775 # The Import File defines what to hardcode.
12776 hardcode_direct_CXX=no
12777 hardcode_direct_absolute_CXX=no
12778 ;;
12779 esac
12780
12781 if test yes = "$GXX"; then
12782 case $host_os in aix4.[012]|aix4.[012].*)
12783 # We only want to do this on AIX 4.2 and lower, the check
12784 # below for broken collect2 doesn't work under 4.3+
12785 collect2name=`$CC -print-prog-name=collect2`
12786 if test -f "$collect2name" &&
12787 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12788 then
12789 # We have reworked collect2
12790 :
12791 else
12792 # We have old collect2
12793 hardcode_direct_CXX=unsupported
12794 # It fails to find uninstalled libraries when the uninstalled
12795 # path is not listed in the libpath. Setting hardcode_minus_L
12796 # to unsupported forces relinking
12797 hardcode_minus_L_CXX=yes
12798 hardcode_libdir_flag_spec_CXX='-L$libdir'
12799 hardcode_libdir_separator_CXX=
12800 fi
12801 esac
12802 shared_flag='-shared'
12803 if test yes = "$aix_use_runtimelinking"; then
12804 shared_flag=$shared_flag' $wl-G'
12805 fi
12806 # Need to ensure runtime linking is disabled for the traditional
12807 # shared library, or the linker may eventually find shared libraries
12808 # /with/ Import File - we do not want to mix them.
12809 shared_flag_aix='-shared'
12810 shared_flag_svr4='-shared $wl-G'
12811 else
12812 # not using gcc
12813 if test ia64 = "$host_cpu"; then
12814 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12815 # chokes on -Wl,-G. The following line is correct:
12816 shared_flag='-G'
12817 else
12818 if test yes = "$aix_use_runtimelinking"; then
12819 shared_flag='$wl-G'
12820 else
12821 shared_flag='$wl-bM:SRE'
12822 fi
12823 shared_flag_aix='$wl-bM:SRE'
12824 shared_flag_svr4='$wl-G'
12825 fi
12826 fi
12827
12828 export_dynamic_flag_spec_CXX='$wl-bexpall'
12829 # It seems that -bexpall does not export symbols beginning with
12830 # underscore (_), so it is better to generate a list of symbols to
12831 # export.
12832 always_export_symbols_CXX=yes
12833 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12834 # Warning - without using the other runtime loading flags (-brtl),
12835 # -berok will link without error, but may produce a broken library.
12836 # The "-G" linker flag allows undefined symbols.
12837 no_undefined_flag_CXX='-bernotok'
12838 # Determine the default libpath from the value encoded in an empty
12839 # executable.
12840 if test set = "${lt_cv_aix_libpath+set}"; then
12841 aix_libpath=$lt_cv_aix_libpath
12842 else
12843 if ${lt_cv_aix_libpath__CXX+:} false; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848
12849 int
12850 main ()
12851 {
12852
12853 ;
12854 return 0;
12855 }
12856 _ACEOF
12857 if ac_fn_cxx_try_link "$LINENO"; then :
12858
12859 lt_aix_libpath_sed='
12860 /Import File Strings/,/^$/ {
12861 /^0/ {
12862 s/^0 *\([^ ]*\) *$/\1/
12863 p
12864 }
12865 }'
12866 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12867 # Check for a 64-bit object if we didn't find anything.
12868 if test -z "$lt_cv_aix_libpath__CXX"; then
12869 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12870 fi
12871 fi
12872 rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext conftest.$ac_ext
12874 if test -z "$lt_cv_aix_libpath__CXX"; then
12875 lt_cv_aix_libpath__CXX=/usr/lib:/lib
12876 fi
12877
12878 fi
12879
12880 aix_libpath=$lt_cv_aix_libpath__CXX
12881 fi
12882
12883 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
12884
12885 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12886 else
12887 if test ia64 = "$host_cpu"; then
12888 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
12889 allow_undefined_flag_CXX="-z nodefs"
12890 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"
12891 else
12892 # Determine the default libpath from the value encoded in an
12893 # empty executable.
12894 if test set = "${lt_cv_aix_libpath+set}"; then
12895 aix_libpath=$lt_cv_aix_libpath
12896 else
12897 if ${lt_cv_aix_libpath__CXX+:} false; then :
12898 $as_echo_n "(cached) " >&6
12899 else
12900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12901 /* end confdefs.h. */
12902
12903 int
12904 main ()
12905 {
12906
12907 ;
12908 return 0;
12909 }
12910 _ACEOF
12911 if ac_fn_cxx_try_link "$LINENO"; then :
12912
12913 lt_aix_libpath_sed='
12914 /Import File Strings/,/^$/ {
12915 /^0/ {
12916 s/^0 *\([^ ]*\) *$/\1/
12917 p
12918 }
12919 }'
12920 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12921 # Check for a 64-bit object if we didn't find anything.
12922 if test -z "$lt_cv_aix_libpath__CXX"; then
12923 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12924 fi
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 if test -z "$lt_cv_aix_libpath__CXX"; then
12929 lt_cv_aix_libpath__CXX=/usr/lib:/lib
12930 fi
12931
12932 fi
12933
12934 aix_libpath=$lt_cv_aix_libpath__CXX
12935 fi
12936
12937 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
12938 # Warning - without using the other run time loading flags,
12939 # -berok will link without error, but may produce a broken library.
12940 no_undefined_flag_CXX=' $wl-bernotok'
12941 allow_undefined_flag_CXX=' $wl-berok'
12942 if test yes = "$with_gnu_ld"; then
12943 # We only use this code for GNU lds that support --whole-archive.
12944 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
12945 else
12946 # Exported symbols can be pulled into shared objects from archives
12947 whole_archive_flag_spec_CXX='$convenience'
12948 fi
12949 archive_cmds_need_lc_CXX=yes
12950 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12951 # -brtl affects multiple linker settings, -berok does not and is overridden later
12952 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12953 if test svr4 != "$with_aix_soname"; then
12954 # This is similar to how AIX traditionally builds its shared
12955 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
12956 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12957 fi
12958 if test aix != "$with_aix_soname"; then
12959 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12960 else
12961 # used by -dlpreopen to get the symbols
12962 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12963 fi
12964 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
12965 fi
12966 fi
12967 ;;
12968
12969 beos*)
12970 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12971 allow_undefined_flag_CXX=unsupported
12972 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12973 # support --undefined. This deserves some investigation. FIXME
12974 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12975 else
12976 ld_shlibs_CXX=no
12977 fi
12978 ;;
12979
12980 chorus*)
12981 case $cc_basename in
12982 *)
12983 # FIXME: insert proper C++ library support
12984 ld_shlibs_CXX=no
12985 ;;
12986 esac
12987 ;;
12988
12989 cygwin* | mingw* | pw32* | cegcc*)
12990 case $GXX,$cc_basename in
12991 ,cl* | no,cl*)
12992 # Native MSVC
12993 # hardcode_libdir_flag_spec is actually meaningless, as there is
12994 # no search path for DLLs.
12995 hardcode_libdir_flag_spec_CXX=' '
12996 allow_undefined_flag_CXX=unsupported
12997 always_export_symbols_CXX=yes
12998 file_list_spec_CXX='@'
12999 # Tell ltmain to make .lib files, not .a files.
13000 libext=lib
13001 # Tell ltmain to make .dll files, not .so files.
13002 shrext_cmds=.dll
13003 # FIXME: Setting linknames here is a bad hack.
13004 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13005 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13006 cp "$export_symbols" "$output_objdir/$soname.def";
13007 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13008 else
13009 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13010 fi~
13011 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13012 linknames='
13013 # The linker will not automatically build a static lib if we build a DLL.
13014 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13015 enable_shared_with_static_runtimes_CXX=yes
13016 # Don't use ranlib
13017 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13018 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13019 lt_tool_outputfile="@TOOL_OUTPUT@"~
13020 case $lt_outputfile in
13021 *.exe|*.EXE) ;;
13022 *)
13023 lt_outputfile=$lt_outputfile.exe
13024 lt_tool_outputfile=$lt_tool_outputfile.exe
13025 ;;
13026 esac~
13027 func_to_tool_file "$lt_outputfile"~
13028 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13029 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13030 $RM "$lt_outputfile.manifest";
13031 fi'
13032 ;;
13033 *)
13034 # g++
13035 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13036 # as there is no search path for DLLs.
13037 hardcode_libdir_flag_spec_CXX='-L$libdir'
13038 export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
13039 allow_undefined_flag_CXX=unsupported
13040 always_export_symbols_CXX=no
13041 enable_shared_with_static_runtimes_CXX=yes
13042
13043 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13044 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'
13045 # If the export-symbols file already is a .def file, use it as
13046 # is; otherwise, prepend EXPORTS...
13047 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13048 cp $export_symbols $output_objdir/$soname.def;
13049 else
13050 echo EXPORTS > $output_objdir/$soname.def;
13051 cat $export_symbols >> $output_objdir/$soname.def;
13052 fi~
13053 $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'
13054 else
13055 ld_shlibs_CXX=no
13056 fi
13057 ;;
13058 esac
13059 ;;
13060 darwin* | rhapsody*)
13061
13062
13063 archive_cmds_need_lc_CXX=no
13064 hardcode_direct_CXX=no
13065 hardcode_automatic_CXX=yes
13066 hardcode_shlibpath_var_CXX=unsupported
13067 if test yes = "$lt_cv_ld_force_load"; then
13068 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13069
13070 else
13071 whole_archive_flag_spec_CXX=''
13072 fi
13073 link_all_deplibs_CXX=yes
13074 allow_undefined_flag_CXX=$_lt_dar_allow_undefined
13075 case $cc_basename in
13076 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13077 *) _lt_dar_can_shared=$GCC ;;
13078 esac
13079 if test yes = "$_lt_dar_can_shared"; then
13080 output_verbose_link_cmd=func_echo_all
13081 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13082 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13083 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
13084 module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
13085 if test yes != "$lt_cv_apple_cc_single_mod"; then
13086 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$_lt_dsymutil"
13087 archive_expsym_cmds_CXX="sed '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$_lt_dar_export_syms$_lt_dsymutil"
13088 fi
13089
13090 else
13091 ld_shlibs_CXX=no
13092 fi
13093
13094 ;;
13095
13096 os2*)
13097 hardcode_libdir_flag_spec_CXX='-L$libdir'
13098 hardcode_minus_L_CXX=yes
13099 allow_undefined_flag_CXX=unsupported
13100 shrext_cmds=.dll
13101 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13102 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13103 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13104 $ECHO EXPORTS >> $output_objdir/$libname.def~
13105 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13106 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13107 emximp -o $lib $output_objdir/$libname.def'
13108 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13109 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13110 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13111 $ECHO EXPORTS >> $output_objdir/$libname.def~
13112 prefix_cmds="$SED"~
13113 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13114 prefix_cmds="$prefix_cmds -e 1d";
13115 fi~
13116 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13117 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13118 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13119 emximp -o $lib $output_objdir/$libname.def'
13120 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13121 enable_shared_with_static_runtimes_CXX=yes
13122 ;;
13123
13124 dgux*)
13125 case $cc_basename in
13126 ec++*)
13127 # FIXME: insert proper C++ library support
13128 ld_shlibs_CXX=no
13129 ;;
13130 ghcx*)
13131 # Green Hills C++ Compiler
13132 # FIXME: insert proper C++ library support
13133 ld_shlibs_CXX=no
13134 ;;
13135 *)
13136 # FIXME: insert proper C++ library support
13137 ld_shlibs_CXX=no
13138 ;;
13139 esac
13140 ;;
13141
13142 freebsd2.*)
13143 # C++ shared libraries reported to be fairly broken before
13144 # switch to ELF
13145 ld_shlibs_CXX=no
13146 ;;
13147
13148 freebsd-elf*)
13149 archive_cmds_need_lc_CXX=no
13150 ;;
13151
13152 freebsd* | dragonfly*)
13153 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13154 # conventions
13155 ld_shlibs_CXX=yes
13156 ;;
13157
13158 haiku*)
13159 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13160 link_all_deplibs_CXX=yes
13161 ;;
13162
13163 hpux9*)
13164 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13165 hardcode_libdir_separator_CXX=:
13166 export_dynamic_flag_spec_CXX='$wl-E'
13167 hardcode_direct_CXX=yes
13168 hardcode_minus_L_CXX=yes # Not in the search PATH,
13169 # but as the default
13170 # location of the library.
13171
13172 case $cc_basename in
13173 CC*)
13174 # FIXME: insert proper C++ library support
13175 ld_shlibs_CXX=no
13176 ;;
13177 aCC*)
13178 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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13179 # Commands to make compiler produce verbose output that lists
13180 # what "hidden" libraries, object files and flags are used when
13181 # linking a shared library.
13182 #
13183 # There doesn't appear to be a way to prevent this compiler from
13184 # explicitly linking system object files so we need to strip them
13185 # from the output so that they don't get included in the library
13186 # dependencies.
13187 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13188 ;;
13189 *)
13190 if test yes = "$GXX"; then
13191 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13192 else
13193 # FIXME: insert proper C++ library support
13194 ld_shlibs_CXX=no
13195 fi
13196 ;;
13197 esac
13198 ;;
13199
13200 hpux10*|hpux11*)
13201 if test no = "$with_gnu_ld"; then
13202 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
13203 hardcode_libdir_separator_CXX=:
13204
13205 case $host_cpu in
13206 hppa*64*|ia64*)
13207 ;;
13208 *)
13209 export_dynamic_flag_spec_CXX='$wl-E'
13210 ;;
13211 esac
13212 fi
13213 case $host_cpu in
13214 hppa*64*|ia64*)
13215 hardcode_direct_CXX=no
13216 hardcode_shlibpath_var_CXX=no
13217 ;;
13218 *)
13219 hardcode_direct_CXX=yes
13220 hardcode_direct_absolute_CXX=yes
13221 hardcode_minus_L_CXX=yes # Not in the search PATH,
13222 # but as the default
13223 # location of the library.
13224 ;;
13225 esac
13226
13227 case $cc_basename in
13228 CC*)
13229 # FIXME: insert proper C++ library support
13230 ld_shlibs_CXX=no
13231 ;;
13232 aCC*)
13233 case $host_cpu in
13234 hppa*64*)
13235 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13236 ;;
13237 ia64*)
13238 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13239 ;;
13240 *)
13241 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13242 ;;
13243 esac
13244 # Commands to make compiler produce verbose output that lists
13245 # what "hidden" libraries, object files and flags are used when
13246 # linking a shared library.
13247 #
13248 # There doesn't appear to be a way to prevent this compiler from
13249 # explicitly linking system object files so we need to strip them
13250 # from the output so that they don't get included in the library
13251 # dependencies.
13252 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; func_echo_all "$list"'
13253 ;;
13254 *)
13255 if test yes = "$GXX"; then
13256 if test no = "$with_gnu_ld"; then
13257 case $host_cpu in
13258 hppa*64*)
13259 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13260 ;;
13261 ia64*)
13262 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13263 ;;
13264 *)
13265 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13266 ;;
13267 esac
13268 fi
13269 else
13270 # FIXME: insert proper C++ library support
13271 ld_shlibs_CXX=no
13272 fi
13273 ;;
13274 esac
13275 ;;
13276
13277 interix[3-9]*)
13278 hardcode_direct_CXX=no
13279 hardcode_shlibpath_var_CXX=no
13280 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13281 export_dynamic_flag_spec_CXX='$wl-E'
13282 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13283 # Instead, shared libraries are loaded at an image base (0x10000000 by
13284 # default) and relocated if they conflict, which is a slow very memory
13285 # consuming and fragmenting process. To avoid this, we pick a random,
13286 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13287 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13288 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'
13289 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'
13290 ;;
13291 irix5* | irix6*)
13292 case $cc_basename in
13293 CC*)
13294 # SGI C++
13295 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13296
13297 # Archives containing C++ object files must be created using
13298 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13299 # necessary to make sure instantiated templates are included
13300 # in the archive.
13301 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13302 ;;
13303 *)
13304 if test yes = "$GXX"; then
13305 if test no = "$with_gnu_ld"; then
13306 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13307 else
13308 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
13309 fi
13310 fi
13311 link_all_deplibs_CXX=yes
13312 ;;
13313 esac
13314 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13315 hardcode_libdir_separator_CXX=:
13316 inherit_rpath_CXX=yes
13317 ;;
13318
13319 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
13320 case $cc_basename in
13321 KCC*)
13322 # Kuck and Associates, Inc. (KAI) C++ Compiler
13323
13324 # KCC will only create a shared library if the output file
13325 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13326 # to its proper name (with version) after linking.
13327 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'
13328 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'
13329 # Commands to make compiler produce verbose output that lists
13330 # what "hidden" libraries, object files and flags are used when
13331 # linking a shared library.
13332 #
13333 # There doesn't appear to be a way to prevent this compiler from
13334 # explicitly linking system object files so we need to strip them
13335 # from the output so that they don't get included in the library
13336 # dependencies.
13337 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; func_echo_all "$list"'
13338
13339 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13340 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13341
13342 # Archives containing C++ object files must be created using
13343 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13344 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13345 ;;
13346 icpc* | ecpc* )
13347 # Intel C++
13348 with_gnu_ld=yes
13349 # version 8.0 and above of icpc choke on multiply defined symbols
13350 # if we add $predep_objects and $postdep_objects, however 7.1 and
13351 # earlier do not add the objects themselves.
13352 case `$CC -V 2>&1` in
13353 *"Version 7."*)
13354 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13355 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'
13356 ;;
13357 *) # Version 8.0 or newer
13358 tmp_idyn=
13359 case $host_cpu in
13360 ia64*) tmp_idyn=' -i_dynamic';;
13361 esac
13362 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13363 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'
13364 ;;
13365 esac
13366 archive_cmds_need_lc_CXX=no
13367 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13368 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13369 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
13370 ;;
13371 pgCC* | pgcpp*)
13372 # Portland Group C++ compiler
13373 case `$CC -V` in
13374 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13375 prelink_cmds_CXX='tpldir=Template.dir~
13376 rm -rf $tpldir~
13377 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13378 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13379 old_archive_cmds_CXX='tpldir=Template.dir~
13380 rm -rf $tpldir~
13381 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13382 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13383 $RANLIB $oldlib'
13384 archive_cmds_CXX='tpldir=Template.dir~
13385 rm -rf $tpldir~
13386 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13387 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13388 archive_expsym_cmds_CXX='tpldir=Template.dir~
13389 rm -rf $tpldir~
13390 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13391 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13392 ;;
13393 *) # Version 6 and above use weak symbols
13394 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13395 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'
13396 ;;
13397 esac
13398
13399 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
13400 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13401 whole_archive_flag_spec_CXX='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13402 ;;
13403 cxx*)
13404 # Compaq C++
13405 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
13406 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'
13407
13408 runpath_var=LD_RUN_PATH
13409 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13410 hardcode_libdir_separator_CXX=:
13411
13412 # Commands to make compiler produce verbose output that lists
13413 # what "hidden" libraries, object files and flags are used when
13414 # linking a shared library.
13415 #
13416 # There doesn't appear to be a way to prevent this compiler from
13417 # explicitly linking system object files so we need to strip them
13418 # from the output so that they don't get included in the library
13419 # dependencies.
13420 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
13421 ;;
13422 xl* | mpixl* | bgxl*)
13423 # IBM XL 8.0 on PPC, with GNU ld
13424 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13425 export_dynamic_flag_spec_CXX='$wl--export-dynamic'
13426 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13427 if test yes = "$supports_anon_versioning"; then
13428 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13429 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13430 echo "local: *; };" >> $output_objdir/$libname.ver~
13431 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13432 fi
13433 ;;
13434 *)
13435 case `$CC -V 2>&1 | sed 5q` in
13436 *Sun\ C*)
13437 # Sun C++ 5.9
13438 no_undefined_flag_CXX=' -zdefs'
13439 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13440 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
13441 hardcode_libdir_flag_spec_CXX='-R$libdir'
13442 whole_archive_flag_spec_CXX='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
13443 compiler_needs_object_CXX=yes
13444
13445 # Not sure whether something based on
13446 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13447 # would be better.
13448 output_verbose_link_cmd='func_echo_all'
13449
13450 # Archives containing C++ object files must be created using
13451 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13452 # necessary to make sure instantiated templates are included
13453 # in the archive.
13454 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13455 ;;
13456 esac
13457 ;;
13458 esac
13459 ;;
13460
13461 lynxos*)
13462 # FIXME: insert proper C++ library support
13463 ld_shlibs_CXX=no
13464 ;;
13465
13466 m88k*)
13467 # FIXME: insert proper C++ library support
13468 ld_shlibs_CXX=no
13469 ;;
13470
13471 mvs*)
13472 case $cc_basename in
13473 cxx*)
13474 # FIXME: insert proper C++ library support
13475 ld_shlibs_CXX=no
13476 ;;
13477 *)
13478 # FIXME: insert proper C++ library support
13479 ld_shlibs_CXX=no
13480 ;;
13481 esac
13482 ;;
13483
13484 netbsd*)
13485 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13486 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13487 wlarc=
13488 hardcode_libdir_flag_spec_CXX='-R$libdir'
13489 hardcode_direct_CXX=yes
13490 hardcode_shlibpath_var_CXX=no
13491 fi
13492 # Workaround some broken pre-1.5 toolchains
13493 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13494 ;;
13495
13496 *nto* | *qnx*)
13497 ld_shlibs_CXX=yes
13498 ;;
13499
13500 openbsd* | bitrig*)
13501 if test -f /usr/libexec/ld.so; then
13502 hardcode_direct_CXX=yes
13503 hardcode_shlibpath_var_CXX=no
13504 hardcode_direct_absolute_CXX=yes
13505 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13506 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13507 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
13508 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
13509 export_dynamic_flag_spec_CXX='$wl-E'
13510 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13511 fi
13512 output_verbose_link_cmd=func_echo_all
13513 else
13514 ld_shlibs_CXX=no
13515 fi
13516 ;;
13517
13518 osf3* | osf4* | osf5*)
13519 case $cc_basename in
13520 KCC*)
13521 # Kuck and Associates, Inc. (KAI) C++ Compiler
13522
13523 # KCC will only create a shared library if the output file
13524 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13525 # to its proper name (with version) after linking.
13526 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'
13527
13528 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
13529 hardcode_libdir_separator_CXX=:
13530
13531 # Archives containing C++ object files must be created using
13532 # the KAI C++ compiler.
13533 case $host in
13534 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13535 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13536 esac
13537 ;;
13538 RCC*)
13539 # Rational C++ 2.4.1
13540 # FIXME: insert proper C++ library support
13541 ld_shlibs_CXX=no
13542 ;;
13543 cxx*)
13544 case $host in
13545 osf3*)
13546 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13547 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13548 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13549 ;;
13550 *)
13551 allow_undefined_flag_CXX=' -expect_unresolved \*'
13552 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
13553 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13554 echo "-hidden">> $lib.exp~
13555 $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~
13556 $RM $lib.exp'
13557 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13558 ;;
13559 esac
13560
13561 hardcode_libdir_separator_CXX=:
13562
13563 # Commands to make compiler produce verbose output that lists
13564 # what "hidden" libraries, object files and flags are used when
13565 # linking a shared library.
13566 #
13567 # There doesn't appear to be a way to prevent this compiler from
13568 # explicitly linking system object files so we need to strip them
13569 # from the output so that they don't get included in the library
13570 # dependencies.
13571 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
13572 ;;
13573 *)
13574 if test yes,no = "$GXX,$with_gnu_ld"; then
13575 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
13576 case $host in
13577 osf3*)
13578 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13579 ;;
13580 *)
13581 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
13582 ;;
13583 esac
13584
13585 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
13586 hardcode_libdir_separator_CXX=:
13587
13588 # Commands to make compiler produce verbose output that lists
13589 # what "hidden" libraries, object files and flags are used when
13590 # linking a shared library.
13591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13592
13593 else
13594 # FIXME: insert proper C++ library support
13595 ld_shlibs_CXX=no
13596 fi
13597 ;;
13598 esac
13599 ;;
13600
13601 psos*)
13602 # FIXME: insert proper C++ library support
13603 ld_shlibs_CXX=no
13604 ;;
13605
13606 sunos4*)
13607 case $cc_basename in
13608 CC*)
13609 # Sun C++ 4.x
13610 # FIXME: insert proper C++ library support
13611 ld_shlibs_CXX=no
13612 ;;
13613 lcc*)
13614 # Lucid
13615 # FIXME: insert proper C++ library support
13616 ld_shlibs_CXX=no
13617 ;;
13618 *)
13619 # FIXME: insert proper C++ library support
13620 ld_shlibs_CXX=no
13621 ;;
13622 esac
13623 ;;
13624
13625 solaris*)
13626 case $cc_basename in
13627 CC* | sunCC*)
13628 # Sun C++ 4.2, 5.x and Centerline C++
13629 archive_cmds_need_lc_CXX=yes
13630 no_undefined_flag_CXX=' -zdefs'
13631 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13632 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13633 $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'
13634
13635 hardcode_libdir_flag_spec_CXX='-R$libdir'
13636 hardcode_shlibpath_var_CXX=no
13637 case $host_os in
13638 solaris2.[0-5] | solaris2.[0-5].*) ;;
13639 *)
13640 # The compiler driver will combine and reorder linker options,
13641 # but understands '-z linker_flag'.
13642 # Supported since Solaris 2.6 (maybe 2.5.1?)
13643 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13644 ;;
13645 esac
13646 link_all_deplibs_CXX=yes
13647
13648 output_verbose_link_cmd='func_echo_all'
13649
13650 # Archives containing C++ object files must be created using
13651 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13652 # necessary to make sure instantiated templates are included
13653 # in the archive.
13654 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13655 ;;
13656 gcx*)
13657 # Green Hills C++ Compiler
13658 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13659
13660 # The C++ compiler must be used to create the archive.
13661 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13662 ;;
13663 *)
13664 # GNU C++ compiler with Solaris linker
13665 if test yes,no = "$GXX,$with_gnu_ld"; then
13666 no_undefined_flag_CXX=' $wl-z ${wl}defs'
13667 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13668 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13669 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13670 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13671
13672 # Commands to make compiler produce verbose output that lists
13673 # what "hidden" libraries, object files and flags are used when
13674 # linking a shared library.
13675 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13676 else
13677 # g++ 2.7 appears to require '-G' NOT '-shared' on this
13678 # platform.
13679 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
13680 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13681 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13682
13683 # Commands to make compiler produce verbose output that lists
13684 # what "hidden" libraries, object files and flags are used when
13685 # linking a shared library.
13686 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13687 fi
13688
13689 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
13690 case $host_os in
13691 solaris2.[0-5] | solaris2.[0-5].*) ;;
13692 *)
13693 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13694 ;;
13695 esac
13696 fi
13697 ;;
13698 esac
13699 ;;
13700
13701 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13702 no_undefined_flag_CXX='$wl-z,text'
13703 archive_cmds_need_lc_CXX=no
13704 hardcode_shlibpath_var_CXX=no
13705 runpath_var='LD_RUN_PATH'
13706
13707 case $cc_basename in
13708 CC*)
13709 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13710 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13711 ;;
13712 *)
13713 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13714 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13715 ;;
13716 esac
13717 ;;
13718
13719 sysv5* | sco3.2v5* | sco5v6*)
13720 # Note: We CANNOT use -z defs as we might desire, because we do not
13721 # link with -lc, and that would cause any symbols used from libc to
13722 # always be unresolved, which means just about no library would
13723 # ever link correctly. If we're not using GNU ld we use -z text
13724 # though, which does catch some bad symbols but isn't as heavy-handed
13725 # as -z defs.
13726 no_undefined_flag_CXX='$wl-z,text'
13727 allow_undefined_flag_CXX='$wl-z,nodefs'
13728 archive_cmds_need_lc_CXX=no
13729 hardcode_shlibpath_var_CXX=no
13730 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
13731 hardcode_libdir_separator_CXX=':'
13732 link_all_deplibs_CXX=yes
13733 export_dynamic_flag_spec_CXX='$wl-Bexport'
13734 runpath_var='LD_RUN_PATH'
13735
13736 case $cc_basename in
13737 CC*)
13738 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13739 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13740 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13741 '"$old_archive_cmds_CXX"
13742 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13743 '"$reload_cmds_CXX"
13744 ;;
13745 *)
13746 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13747 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13748 ;;
13749 esac
13750 ;;
13751
13752 tandem*)
13753 case $cc_basename in
13754 NCC*)
13755 # NonStop-UX NCC 3.20
13756 # FIXME: insert proper C++ library support
13757 ld_shlibs_CXX=no
13758 ;;
13759 *)
13760 # FIXME: insert proper C++ library support
13761 ld_shlibs_CXX=no
13762 ;;
13763 esac
13764 ;;
13765
13766 vxworks*)
13767 # FIXME: insert proper C++ library support
13768 ld_shlibs_CXX=no
13769 ;;
13770
13771 *)
13772 # FIXME: insert proper C++ library support
13773 ld_shlibs_CXX=no
13774 ;;
13775 esac
13776
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13778 $as_echo "$ld_shlibs_CXX" >&6; }
13779 test no = "$ld_shlibs_CXX" && can_build_shared=no
13780
13781 GCC_CXX=$GXX
13782 LD_CXX=$LD
13783
13784 ## CAVEAT EMPTOR:
13785 ## There is no encapsulation within the following macros, do not change
13786 ## the running order or otherwise move them around unless you know exactly
13787 ## what you are doing...
13788 # Dependencies to place before and after the object being linked:
13789 predep_objects_CXX=
13790 postdep_objects_CXX=
13791 predeps_CXX=
13792 postdeps_CXX=
13793 compiler_lib_search_path_CXX=
13794
13795 cat > conftest.$ac_ext <<_LT_EOF
13796 class Foo
13797 {
13798 public:
13799 Foo (void) { a = 0; }
13800 private:
13801 int a;
13802 };
13803 _LT_EOF
13804
13805
13806 _lt_libdeps_save_CFLAGS=$CFLAGS
13807 case "$CC $CFLAGS " in #(
13808 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
13809 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
13810 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
13811 esac
13812
13813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13814 (eval $ac_compile) 2>&5
13815 ac_status=$?
13816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13817 test $ac_status = 0; }; then
13818 # Parse the compiler output and extract the necessary
13819 # objects, libraries and library flags.
13820
13821 # Sentinel used to keep track of whether or not we are before
13822 # the conftest object file.
13823 pre_test_object_deps_done=no
13824
13825 for p in `eval "$output_verbose_link_cmd"`; do
13826 case $prev$p in
13827
13828 -L* | -R* | -l*)
13829 # Some compilers place space between "-{L,R}" and the path.
13830 # Remove the space.
13831 if test x-L = "$p" ||
13832 test x-R = "$p"; then
13833 prev=$p
13834 continue
13835 fi
13836
13837 # Expand the sysroot to ease extracting the directories later.
13838 if test -z "$prev"; then
13839 case $p in
13840 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
13841 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
13842 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
13843 esac
13844 fi
13845 case $p in
13846 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
13847 esac
13848 if test no = "$pre_test_object_deps_done"; then
13849 case $prev in
13850 -L | -R)
13851 # Internal compiler library paths should come after those
13852 # provided the user. The postdeps already come after the
13853 # user supplied libs so there is no need to process them.
13854 if test -z "$compiler_lib_search_path_CXX"; then
13855 compiler_lib_search_path_CXX=$prev$p
13856 else
13857 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
13858 fi
13859 ;;
13860 # The "-l" case would never come before the object being
13861 # linked, so don't bother handling this case.
13862 esac
13863 else
13864 if test -z "$postdeps_CXX"; then
13865 postdeps_CXX=$prev$p
13866 else
13867 postdeps_CXX="${postdeps_CXX} $prev$p"
13868 fi
13869 fi
13870 prev=
13871 ;;
13872
13873 *.lto.$objext) ;; # Ignore GCC LTO objects
13874 *.$objext)
13875 # This assumes that the test object file only shows up
13876 # once in the compiler output.
13877 if test "$p" = "conftest.$objext"; then
13878 pre_test_object_deps_done=yes
13879 continue
13880 fi
13881
13882 if test no = "$pre_test_object_deps_done"; then
13883 if test -z "$predep_objects_CXX"; then
13884 predep_objects_CXX=$p
13885 else
13886 predep_objects_CXX="$predep_objects_CXX $p"
13887 fi
13888 else
13889 if test -z "$postdep_objects_CXX"; then
13890 postdep_objects_CXX=$p
13891 else
13892 postdep_objects_CXX="$postdep_objects_CXX $p"
13893 fi
13894 fi
13895 ;;
13896
13897 *) ;; # Ignore the rest.
13898
13899 esac
13900 done
13901
13902 # Clean up.
13903 rm -f a.out a.exe
13904 else
13905 echo "libtool.m4: error: problem compiling CXX test program"
13906 fi
13907
13908 $RM -f confest.$objext
13909 CFLAGS=$_lt_libdeps_save_CFLAGS
13910
13911 # PORTME: override above test on systems where it is broken
13912 case $host_os in
13913 interix[3-9]*)
13914 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13915 # hack all around it, let's just trust "g++" to DTRT.
13916 predep_objects_CXX=
13917 postdep_objects_CXX=
13918 postdeps_CXX=
13919 ;;
13920 esac
13921
13922
13923 case " $postdeps_CXX " in
13924 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13925 esac
13926 compiler_lib_search_dirs_CXX=
13927 if test -n "${compiler_lib_search_path_CXX}"; then
13928 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
13929 fi
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961 lt_prog_compiler_wl_CXX=
13962 lt_prog_compiler_pic_CXX=
13963 lt_prog_compiler_static_CXX=
13964
13965
13966 # C++ specific cases for pic, static, wl, etc.
13967 if test yes = "$GXX"; then
13968 lt_prog_compiler_wl_CXX='-Wl,'
13969 lt_prog_compiler_static_CXX='-static'
13970
13971 case $host_os in
13972 aix*)
13973 # All AIX code is PIC.
13974 if test ia64 = "$host_cpu"; then
13975 # AIX 5 now supports IA64 processor
13976 lt_prog_compiler_static_CXX='-Bstatic'
13977 fi
13978 lt_prog_compiler_pic_CXX='-fPIC'
13979 ;;
13980
13981 amigaos*)
13982 case $host_cpu in
13983 powerpc)
13984 # see comment about AmigaOS4 .so support
13985 lt_prog_compiler_pic_CXX='-fPIC'
13986 ;;
13987 m68k)
13988 # FIXME: we need at least 68020 code to build shared libraries, but
13989 # adding the '-m68020' flag to GCC prevents building anything better,
13990 # like '-m68040'.
13991 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13992 ;;
13993 esac
13994 ;;
13995
13996 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13997 # PIC is the default for these OSes.
13998 ;;
13999 mingw* | cygwin* | os2* | pw32* | cegcc*)
14000 # This hack is so that the source file can tell whether it is being
14001 # built for inclusion in a dll (and should export symbols for example).
14002 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14003 # (--disable-auto-import) libraries
14004 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14005 case $host_os in
14006 os2*)
14007 lt_prog_compiler_static_CXX='$wl-static'
14008 ;;
14009 esac
14010 ;;
14011 darwin* | rhapsody*)
14012 # PIC is the default on this platform
14013 # Common symbols not allowed in MH_DYLIB files
14014 lt_prog_compiler_pic_CXX='-fno-common'
14015 ;;
14016 *djgpp*)
14017 # DJGPP does not support shared libraries at all
14018 lt_prog_compiler_pic_CXX=
14019 ;;
14020 haiku*)
14021 # PIC is the default for Haiku.
14022 # The "-static" flag exists, but is broken.
14023 lt_prog_compiler_static_CXX=
14024 ;;
14025 interix[3-9]*)
14026 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14027 # Instead, we relocate shared libraries at runtime.
14028 ;;
14029 sysv4*MP*)
14030 if test -d /usr/nec; then
14031 lt_prog_compiler_pic_CXX=-Kconform_pic
14032 fi
14033 ;;
14034 hpux*)
14035 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14036 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14037 # sets the default TLS model and affects inlining.
14038 case $host_cpu in
14039 hppa*64*)
14040 ;;
14041 *)
14042 lt_prog_compiler_pic_CXX='-fPIC'
14043 ;;
14044 esac
14045 ;;
14046 *qnx* | *nto*)
14047 # QNX uses GNU C++, but need to define -shared option too, otherwise
14048 # it will coredump.
14049 lt_prog_compiler_pic_CXX='-fPIC -shared'
14050 ;;
14051 *)
14052 lt_prog_compiler_pic_CXX='-fPIC'
14053 ;;
14054 esac
14055 else
14056 case $host_os in
14057 aix[4-9]*)
14058 # All AIX code is PIC.
14059 if test ia64 = "$host_cpu"; then
14060 # AIX 5 now supports IA64 processor
14061 lt_prog_compiler_static_CXX='-Bstatic'
14062 else
14063 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14064 fi
14065 ;;
14066 chorus*)
14067 case $cc_basename in
14068 cxch68*)
14069 # Green Hills C++ Compiler
14070 # _LT_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"
14071 ;;
14072 esac
14073 ;;
14074 mingw* | cygwin* | os2* | pw32* | cegcc*)
14075 # This hack is so that the source file can tell whether it is being
14076 # built for inclusion in a dll (and should export symbols for example).
14077 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14078 ;;
14079 dgux*)
14080 case $cc_basename in
14081 ec++*)
14082 lt_prog_compiler_pic_CXX='-KPIC'
14083 ;;
14084 ghcx*)
14085 # Green Hills C++ Compiler
14086 lt_prog_compiler_pic_CXX='-pic'
14087 ;;
14088 *)
14089 ;;
14090 esac
14091 ;;
14092 freebsd* | dragonfly*)
14093 # FreeBSD uses GNU C++
14094 ;;
14095 hpux9* | hpux10* | hpux11*)
14096 case $cc_basename in
14097 CC*)
14098 lt_prog_compiler_wl_CXX='-Wl,'
14099 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14100 if test ia64 != "$host_cpu"; then
14101 lt_prog_compiler_pic_CXX='+Z'
14102 fi
14103 ;;
14104 aCC*)
14105 lt_prog_compiler_wl_CXX='-Wl,'
14106 lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
14107 case $host_cpu in
14108 hppa*64*|ia64*)
14109 # +Z the default
14110 ;;
14111 *)
14112 lt_prog_compiler_pic_CXX='+Z'
14113 ;;
14114 esac
14115 ;;
14116 *)
14117 ;;
14118 esac
14119 ;;
14120 interix*)
14121 # This is c89, which is MS Visual C++ (no shared libs)
14122 # Anyone wants to do a port?
14123 ;;
14124 irix5* | irix6* | nonstopux*)
14125 case $cc_basename in
14126 CC*)
14127 lt_prog_compiler_wl_CXX='-Wl,'
14128 lt_prog_compiler_static_CXX='-non_shared'
14129 # CC pic flag -KPIC is the default.
14130 ;;
14131 *)
14132 ;;
14133 esac
14134 ;;
14135 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14136 case $cc_basename in
14137 KCC*)
14138 # KAI C++ Compiler
14139 lt_prog_compiler_wl_CXX='--backend -Wl,'
14140 lt_prog_compiler_pic_CXX='-fPIC'
14141 ;;
14142 ecpc* )
14143 # old Intel C++ for x86_64, which still supported -KPIC.
14144 lt_prog_compiler_wl_CXX='-Wl,'
14145 lt_prog_compiler_pic_CXX='-KPIC'
14146 lt_prog_compiler_static_CXX='-static'
14147 ;;
14148 icpc* )
14149 # Intel C++, used to be incompatible with GCC.
14150 # ICC 10 doesn't accept -KPIC any more.
14151 lt_prog_compiler_wl_CXX='-Wl,'
14152 lt_prog_compiler_pic_CXX='-fPIC'
14153 lt_prog_compiler_static_CXX='-static'
14154 ;;
14155 pgCC* | pgcpp*)
14156 # Portland Group C++ compiler
14157 lt_prog_compiler_wl_CXX='-Wl,'
14158 lt_prog_compiler_pic_CXX='-fpic'
14159 lt_prog_compiler_static_CXX='-Bstatic'
14160 ;;
14161 cxx*)
14162 # Compaq C++
14163 # Make sure the PIC flag is empty. It appears that all Alpha
14164 # Linux and Compaq Tru64 Unix objects are PIC.
14165 lt_prog_compiler_pic_CXX=
14166 lt_prog_compiler_static_CXX='-non_shared'
14167 ;;
14168 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14169 # IBM XL 8.0, 9.0 on PPC and BlueGene
14170 lt_prog_compiler_wl_CXX='-Wl,'
14171 lt_prog_compiler_pic_CXX='-qpic'
14172 lt_prog_compiler_static_CXX='-qstaticlink'
14173 ;;
14174 *)
14175 case `$CC -V 2>&1 | sed 5q` in
14176 *Sun\ C*)
14177 # Sun C++ 5.9
14178 lt_prog_compiler_pic_CXX='-KPIC'
14179 lt_prog_compiler_static_CXX='-Bstatic'
14180 lt_prog_compiler_wl_CXX='-Qoption ld '
14181 ;;
14182 esac
14183 ;;
14184 esac
14185 ;;
14186 lynxos*)
14187 ;;
14188 m88k*)
14189 ;;
14190 mvs*)
14191 case $cc_basename in
14192 cxx*)
14193 lt_prog_compiler_pic_CXX='-W c,exportall'
14194 ;;
14195 *)
14196 ;;
14197 esac
14198 ;;
14199 netbsd* | netbsdelf*-gnu)
14200 ;;
14201 *qnx* | *nto*)
14202 # QNX uses GNU C++, but need to define -shared option too, otherwise
14203 # it will coredump.
14204 lt_prog_compiler_pic_CXX='-fPIC -shared'
14205 ;;
14206 osf3* | osf4* | osf5*)
14207 case $cc_basename in
14208 KCC*)
14209 lt_prog_compiler_wl_CXX='--backend -Wl,'
14210 ;;
14211 RCC*)
14212 # Rational C++ 2.4.1
14213 lt_prog_compiler_pic_CXX='-pic'
14214 ;;
14215 cxx*)
14216 # Digital/Compaq C++
14217 lt_prog_compiler_wl_CXX='-Wl,'
14218 # Make sure the PIC flag is empty. It appears that all Alpha
14219 # Linux and Compaq Tru64 Unix objects are PIC.
14220 lt_prog_compiler_pic_CXX=
14221 lt_prog_compiler_static_CXX='-non_shared'
14222 ;;
14223 *)
14224 ;;
14225 esac
14226 ;;
14227 psos*)
14228 ;;
14229 solaris*)
14230 case $cc_basename in
14231 CC* | sunCC*)
14232 # Sun C++ 4.2, 5.x and Centerline C++
14233 lt_prog_compiler_pic_CXX='-KPIC'
14234 lt_prog_compiler_static_CXX='-Bstatic'
14235 lt_prog_compiler_wl_CXX='-Qoption ld '
14236 ;;
14237 gcx*)
14238 # Green Hills C++ Compiler
14239 lt_prog_compiler_pic_CXX='-PIC'
14240 ;;
14241 *)
14242 ;;
14243 esac
14244 ;;
14245 sunos4*)
14246 case $cc_basename in
14247 CC*)
14248 # Sun C++ 4.x
14249 lt_prog_compiler_pic_CXX='-pic'
14250 lt_prog_compiler_static_CXX='-Bstatic'
14251 ;;
14252 lcc*)
14253 # Lucid
14254 lt_prog_compiler_pic_CXX='-pic'
14255 ;;
14256 *)
14257 ;;
14258 esac
14259 ;;
14260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14261 case $cc_basename in
14262 CC*)
14263 lt_prog_compiler_wl_CXX='-Wl,'
14264 lt_prog_compiler_pic_CXX='-KPIC'
14265 lt_prog_compiler_static_CXX='-Bstatic'
14266 ;;
14267 esac
14268 ;;
14269 tandem*)
14270 case $cc_basename in
14271 NCC*)
14272 # NonStop-UX NCC 3.20
14273 lt_prog_compiler_pic_CXX='-KPIC'
14274 ;;
14275 *)
14276 ;;
14277 esac
14278 ;;
14279 vxworks*)
14280 ;;
14281 *)
14282 lt_prog_compiler_can_build_shared_CXX=no
14283 ;;
14284 esac
14285 fi
14286
14287 case $host_os in
14288 # For platforms that do not support PIC, -DPIC is meaningless:
14289 *djgpp*)
14290 lt_prog_compiler_pic_CXX=
14291 ;;
14292 *)
14293 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14294 ;;
14295 esac
14296
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14298 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14299 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14300 $as_echo_n "(cached) " >&6
14301 else
14302 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14303 fi
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14305 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14306 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14307
14308 #
14309 # Check to make sure the PIC flag actually works.
14310 #
14311 if test -n "$lt_prog_compiler_pic_CXX"; then
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14313 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14314 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14315 $as_echo_n "(cached) " >&6
14316 else
14317 lt_cv_prog_compiler_pic_works_CXX=no
14318 ac_outfile=conftest.$ac_objext
14319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14320 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment
14321 # Insert the option either (1) after the last *FLAGS variable, or
14322 # (2) before a word containing "conftest.", or (3) at the end.
14323 # Note that $ac_compile itself does not contain backslashes and begins
14324 # with a dollar sign (not a hyphen), so the echo should work correctly.
14325 # The option is referenced via a variable to avoid confusing sed.
14326 lt_compile=`echo "$ac_compile" | $SED \
14327 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14328 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14329 -e 's:$: $lt_compiler_flag:'`
14330 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14331 (eval "$lt_compile" 2>conftest.err)
14332 ac_status=$?
14333 cat conftest.err >&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 if (exit $ac_status) && test -s "$ac_outfile"; then
14336 # The compiler can only warn and ignore the option if not recognized
14337 # So say no if there are warnings other than the usual output.
14338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14339 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14340 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14341 lt_cv_prog_compiler_pic_works_CXX=yes
14342 fi
14343 fi
14344 $RM conftest*
14345
14346 fi
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14348 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14349
14350 if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
14351 case $lt_prog_compiler_pic_CXX in
14352 "" | " "*) ;;
14353 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14354 esac
14355 else
14356 lt_prog_compiler_pic_CXX=
14357 lt_prog_compiler_can_build_shared_CXX=no
14358 fi
14359
14360 fi
14361
14362
14363
14364
14365
14366 #
14367 # Check to make sure the static flag actually works.
14368 #
14369 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14371 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14372 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 lt_cv_prog_compiler_static_works_CXX=no
14376 save_LDFLAGS=$LDFLAGS
14377 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14378 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14379 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14380 # The linker can only warn and ignore the option if not recognized
14381 # So say no if there are warnings
14382 if test -s conftest.err; then
14383 # Append any errors to the config.log.
14384 cat conftest.err 1>&5
14385 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14386 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14387 if diff conftest.exp conftest.er2 >/dev/null; then
14388 lt_cv_prog_compiler_static_works_CXX=yes
14389 fi
14390 else
14391 lt_cv_prog_compiler_static_works_CXX=yes
14392 fi
14393 fi
14394 $RM -r conftest*
14395 LDFLAGS=$save_LDFLAGS
14396
14397 fi
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14399 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14400
14401 if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
14402 :
14403 else
14404 lt_prog_compiler_static_CXX=
14405 fi
14406
14407
14408
14409
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14411 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14412 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14413 $as_echo_n "(cached) " >&6
14414 else
14415 lt_cv_prog_compiler_c_o_CXX=no
14416 $RM -r conftest 2>/dev/null
14417 mkdir conftest
14418 cd conftest
14419 mkdir out
14420 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14421
14422 lt_compiler_flag="-o out/conftest2.$ac_objext"
14423 # Insert the option either (1) after the last *FLAGS variable, or
14424 # (2) before a word containing "conftest.", or (3) at the end.
14425 # Note that $ac_compile itself does not contain backslashes and begins
14426 # with a dollar sign (not a hyphen), so the echo should work correctly.
14427 lt_compile=`echo "$ac_compile" | $SED \
14428 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14429 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14430 -e 's:$: $lt_compiler_flag:'`
14431 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14432 (eval "$lt_compile" 2>out/conftest.err)
14433 ac_status=$?
14434 cat out/conftest.err >&5
14435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14436 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14437 then
14438 # The compiler can only warn and ignore the option if not recognized
14439 # So say no if there are warnings
14440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14441 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14442 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14443 lt_cv_prog_compiler_c_o_CXX=yes
14444 fi
14445 fi
14446 chmod u+w . 2>&5
14447 $RM conftest*
14448 # SGI C++ compiler will create directory out/ii_files/ for
14449 # template instantiation
14450 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14451 $RM out/* && rmdir out
14452 cd ..
14453 $RM -r conftest
14454 $RM conftest*
14455
14456 fi
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14458 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14459
14460
14461
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14463 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14464 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14465 $as_echo_n "(cached) " >&6
14466 else
14467 lt_cv_prog_compiler_c_o_CXX=no
14468 $RM -r conftest 2>/dev/null
14469 mkdir conftest
14470 cd conftest
14471 mkdir out
14472 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14473
14474 lt_compiler_flag="-o out/conftest2.$ac_objext"
14475 # Insert the option either (1) after the last *FLAGS variable, or
14476 # (2) before a word containing "conftest.", or (3) at the end.
14477 # Note that $ac_compile itself does not contain backslashes and begins
14478 # with a dollar sign (not a hyphen), so the echo should work correctly.
14479 lt_compile=`echo "$ac_compile" | $SED \
14480 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14481 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14482 -e 's:$: $lt_compiler_flag:'`
14483 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14484 (eval "$lt_compile" 2>out/conftest.err)
14485 ac_status=$?
14486 cat out/conftest.err >&5
14487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14488 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14489 then
14490 # The compiler can only warn and ignore the option if not recognized
14491 # So say no if there are warnings
14492 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14493 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14494 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14495 lt_cv_prog_compiler_c_o_CXX=yes
14496 fi
14497 fi
14498 chmod u+w . 2>&5
14499 $RM conftest*
14500 # SGI C++ compiler will create directory out/ii_files/ for
14501 # template instantiation
14502 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14503 $RM out/* && rmdir out
14504 cd ..
14505 $RM -r conftest
14506 $RM conftest*
14507
14508 fi
14509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14510 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14511
14512
14513
14514
14515 hard_links=nottested
14516 if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
14517 # do not overwrite the value of need_locks provided by the user
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14519 $as_echo_n "checking if we can lock with hard links... " >&6; }
14520 hard_links=yes
14521 $RM conftest*
14522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14523 touch conftest.a
14524 ln conftest.a conftest.b 2>&5 || hard_links=no
14525 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14527 $as_echo "$hard_links" >&6; }
14528 if test no = "$hard_links"; then
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
14530 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
14531 need_locks=warn
14532 fi
14533 else
14534 need_locks=no
14535 fi
14536
14537
14538
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14540 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14541
14542 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14543 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14544 case $host_os in
14545 aix[4-9]*)
14546 # If we're using GNU nm, then we don't want the "-C" option.
14547 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
14548 # Without the "-l" option, or with the "-B" option, AIX nm treats
14549 # weak defined symbols like other global defined symbols, whereas
14550 # GNU nm marks them as "W".
14551 # While the 'weak' keyword is ignored in the Export File, we need
14552 # it in the Import File for the 'aix-soname' feature, so we have
14553 # to replace the "-B" option with "-P" for AIX nm.
14554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14555 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
14556 else
14557 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
14558 fi
14559 ;;
14560 pw32*)
14561 export_symbols_cmds_CXX=$ltdll_cmds
14562 ;;
14563 cygwin* | mingw* | cegcc*)
14564 case $cc_basename in
14565 cl*)
14566 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14567 ;;
14568 *)
14569 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14570 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
14571 ;;
14572 esac
14573 ;;
14574 linux* | k*bsd*-gnu | gnu*)
14575 link_all_deplibs_CXX=no
14576 ;;
14577 *)
14578 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14579 ;;
14580 esac
14581
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14583 $as_echo "$ld_shlibs_CXX" >&6; }
14584 test no = "$ld_shlibs_CXX" && can_build_shared=no
14585
14586 with_gnu_ld_CXX=$with_gnu_ld
14587
14588
14589
14590
14591
14592
14593 #
14594 # Do we need to explicitly link libc?
14595 #
14596 case "x$archive_cmds_need_lc_CXX" in
14597 x|xyes)
14598 # Assume -lc should be added
14599 archive_cmds_need_lc_CXX=yes
14600
14601 if test yes,yes = "$GCC,$enable_shared"; then
14602 case $archive_cmds_CXX in
14603 *'~'*)
14604 # FIXME: we may have to deal with multi-command sequences.
14605 ;;
14606 '$CC '*)
14607 # Test whether the compiler implicitly links with -lc since on some
14608 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14609 # to ld, don't add -lc before -lgcc.
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14611 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14612 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
14613 $as_echo_n "(cached) " >&6
14614 else
14615 $RM conftest*
14616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14617
14618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14619 (eval $ac_compile) 2>&5
14620 ac_status=$?
14621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622 test $ac_status = 0; } 2>conftest.err; then
14623 soname=conftest
14624 lib=conftest
14625 libobjs=conftest.$ac_objext
14626 deplibs=
14627 wl=$lt_prog_compiler_wl_CXX
14628 pic_flag=$lt_prog_compiler_pic_CXX
14629 compiler_flags=-v
14630 linker_flags=-v
14631 verstring=
14632 output_objdir=.
14633 libname=conftest
14634 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14635 allow_undefined_flag_CXX=
14636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14637 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14638 ac_status=$?
14639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14640 test $ac_status = 0; }
14641 then
14642 lt_cv_archive_cmds_need_lc_CXX=no
14643 else
14644 lt_cv_archive_cmds_need_lc_CXX=yes
14645 fi
14646 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14647 else
14648 cat conftest.err 1>&5
14649 fi
14650 $RM conftest*
14651
14652 fi
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14654 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14655 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14656 ;;
14657 esac
14658 fi
14659 ;;
14660 esac
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14724 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14725
14726 library_names_spec=
14727 libname_spec='lib$name'
14728 soname_spec=
14729 shrext_cmds=.so
14730 postinstall_cmds=
14731 postuninstall_cmds=
14732 finish_cmds=
14733 finish_eval=
14734 shlibpath_var=
14735 shlibpath_overrides_runpath=unknown
14736 version_type=none
14737 dynamic_linker="$host_os ld.so"
14738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14739 need_lib_prefix=unknown
14740 hardcode_into_libs=no
14741
14742 # when you set need_version to no, make sure it does not cause -set_version
14743 # flags to be left without arguments
14744 need_version=unknown
14745
14746
14747
14748 case $host_os in
14749 aix3*)
14750 version_type=linux # correct to gnu/linux during the next big refactor
14751 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14752 shlibpath_var=LIBPATH
14753
14754 # AIX 3 has no versioning support, so we append a major version to the name.
14755 soname_spec='$libname$release$shared_ext$major'
14756 ;;
14757
14758 aix[4-9]*)
14759 version_type=linux # correct to gnu/linux during the next big refactor
14760 need_lib_prefix=no
14761 need_version=no
14762 hardcode_into_libs=yes
14763 if test ia64 = "$host_cpu"; then
14764 # AIX 5 supports IA64
14765 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14766 shlibpath_var=LD_LIBRARY_PATH
14767 else
14768 # With GCC up to 2.95.x, collect2 would create an import file
14769 # for dependence libraries. The import file would start with
14770 # the line '#! .'. This would cause the generated library to
14771 # depend on '.', always an invalid library. This was fixed in
14772 # development snapshots of GCC prior to 3.0.
14773 case $host_os in
14774 aix4 | aix4.[01] | aix4.[01].*)
14775 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14776 echo ' yes '
14777 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14778 :
14779 else
14780 can_build_shared=no
14781 fi
14782 ;;
14783 esac
14784 # Using Import Files as archive members, it is possible to support
14785 # filename-based versioning of shared library archives on AIX. While
14786 # this would work for both with and without runtime linking, it will
14787 # prevent static linking of such archives. So we do filename-based
14788 # shared library versioning with .so extension only, which is used
14789 # when both runtime linking and shared linking is enabled.
14790 # Unfortunately, runtime linking may impact performance, so we do
14791 # not want this to be the default eventually. Also, we use the
14792 # versioned .so libs for executables only if there is the -brtl
14793 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14794 # To allow for filename-based versioning support, we need to create
14795 # libNAME.so.V as an archive file, containing:
14796 # *) an Import File, referring to the versioned filename of the
14797 # archive as well as the shared archive member, telling the
14798 # bitwidth (32 or 64) of that shared object, and providing the
14799 # list of exported symbols of that shared object, eventually
14800 # decorated with the 'weak' keyword
14801 # *) the shared object with the F_LOADONLY flag set, to really avoid
14802 # it being seen by the linker.
14803 # At run time we better use the real file rather than another symlink,
14804 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14805
14806 case $with_aix_soname,$aix_use_runtimelinking in
14807 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14808 # soname into executable. Probably we can add versioning support to
14809 # collect2, so additional links can be useful in future.
14810 aix,yes) # traditional libtool
14811 dynamic_linker='AIX unversionable lib.so'
14812 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14813 # instead of lib<name>.a to let people know that these are not
14814 # typical AIX shared libraries.
14815 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14816 ;;
14817 aix,no) # traditional AIX only
14818 dynamic_linker='AIX lib.a(lib.so.V)'
14819 # We preserve .a as extension for shared libraries through AIX4.2
14820 # and later when we are not doing run time linking.
14821 library_names_spec='$libname$release.a $libname.a'
14822 soname_spec='$libname$release$shared_ext$major'
14823 ;;
14824 svr4,*) # full svr4 only
14825 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14826 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14827 # We do not specify a path in Import Files, so LIBPATH fires.
14828 shlibpath_overrides_runpath=yes
14829 ;;
14830 *,yes) # both, prefer svr4
14831 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14832 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14833 # unpreferred sharedlib libNAME.a needs extra handling
14834 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
14835 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
14836 # We do not specify a path in Import Files, so LIBPATH fires.
14837 shlibpath_overrides_runpath=yes
14838 ;;
14839 *,no) # both, prefer aix
14840 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14841 library_names_spec='$libname$release.a $libname.a'
14842 soname_spec='$libname$release$shared_ext$major'
14843 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14844 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
14845 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
14846 ;;
14847 esac
14848 shlibpath_var=LIBPATH
14849 fi
14850 ;;
14851
14852 amigaos*)
14853 case $host_cpu in
14854 powerpc)
14855 # Since July 2007 AmigaOS4 officially supports .so libraries.
14856 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14857 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14858 ;;
14859 m68k)
14860 library_names_spec='$libname.ixlibrary $libname.a'
14861 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14862 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
14863 ;;
14864 esac
14865 ;;
14866
14867 beos*)
14868 library_names_spec='$libname$shared_ext'
14869 dynamic_linker="$host_os ld.so"
14870 shlibpath_var=LIBRARY_PATH
14871 ;;
14872
14873 bsdi[45]*)
14874 version_type=linux # correct to gnu/linux during the next big refactor
14875 need_version=no
14876 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14877 soname_spec='$libname$release$shared_ext$major'
14878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14882 # the default ld.so.conf also contains /usr/contrib/lib and
14883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14884 # libtool to hard-code these into programs
14885 ;;
14886
14887 cygwin* | mingw* | pw32* | cegcc*)
14888 version_type=windows
14889 shrext_cmds=.dll
14890 need_version=no
14891 need_lib_prefix=no
14892
14893 case $GCC,$cc_basename in
14894 yes,*)
14895 # gcc
14896 library_names_spec='$libname.dll.a'
14897 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14898 postinstall_cmds='base_file=`basename \$file`~
14899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14900 dldir=$destdir/`dirname \$dlpath`~
14901 test -d \$dldir || mkdir -p \$dldir~
14902 $install_prog $dir/$dlname \$dldir/$dlname~
14903 chmod a+x \$dldir/$dlname~
14904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14906 fi'
14907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14908 dlpath=$dir/\$dldll~
14909 $RM \$dlpath'
14910 shlibpath_overrides_runpath=yes
14911
14912 case $host_os in
14913 cygwin*)
14914 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14915 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14916
14917 ;;
14918 mingw* | cegcc*)
14919 # MinGW DLLs use traditional 'lib' prefix
14920 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14921 ;;
14922 pw32*)
14923 # pw32 DLLs use 'pw' prefix rather than 'lib'
14924 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14925 ;;
14926 esac
14927 dynamic_linker='Win32 ld.exe'
14928 ;;
14929
14930 *,cl*)
14931 # Native MSVC
14932 libname_spec='$name'
14933 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14934 library_names_spec='$libname.dll.lib'
14935
14936 case $build_os in
14937 mingw*)
14938 sys_lib_search_path_spec=
14939 lt_save_ifs=$IFS
14940 IFS=';'
14941 for lt_path in $LIB
14942 do
14943 IFS=$lt_save_ifs
14944 # Let DOS variable expansion print the short 8.3 style file name.
14945 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14946 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14947 done
14948 IFS=$lt_save_ifs
14949 # Convert to MSYS style.
14950 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14951 ;;
14952 cygwin*)
14953 # Convert to unix form, then to dos form, then back to unix form
14954 # but this time dos style (no spaces!) so that the unix form looks
14955 # like /cygdrive/c/PROGRA~1:/cygdr...
14956 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14957 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14958 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14959 ;;
14960 *)
14961 sys_lib_search_path_spec=$LIB
14962 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14963 # It is most probably a Windows format PATH.
14964 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14965 else
14966 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14967 fi
14968 # FIXME: find the short name or the path components, as spaces are
14969 # common. (e.g. "Program Files" -> "PROGRA~1")
14970 ;;
14971 esac
14972
14973 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14974 postinstall_cmds='base_file=`basename \$file`~
14975 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14976 dldir=$destdir/`dirname \$dlpath`~
14977 test -d \$dldir || mkdir -p \$dldir~
14978 $install_prog $dir/$dlname \$dldir/$dlname'
14979 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14980 dlpath=$dir/\$dldll~
14981 $RM \$dlpath'
14982 shlibpath_overrides_runpath=yes
14983 dynamic_linker='Win32 link.exe'
14984 ;;
14985
14986 *)
14987 # Assume MSVC wrapper
14988 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14989 dynamic_linker='Win32 ld.exe'
14990 ;;
14991 esac
14992 # FIXME: first we should search . and the directory the executable is in
14993 shlibpath_var=PATH
14994 ;;
14995
14996 darwin* | rhapsody*)
14997 dynamic_linker="$host_os dyld"
14998 version_type=darwin
14999 need_lib_prefix=no
15000 need_version=no
15001 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15002 soname_spec='$libname$release$major$shared_ext'
15003 shlibpath_overrides_runpath=yes
15004 shlibpath_var=DYLD_LIBRARY_PATH
15005 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15006
15007 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15008 ;;
15009
15010 dgux*)
15011 version_type=linux # correct to gnu/linux during the next big refactor
15012 need_lib_prefix=no
15013 need_version=no
15014 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15015 soname_spec='$libname$release$shared_ext$major'
15016 shlibpath_var=LD_LIBRARY_PATH
15017 ;;
15018
15019 freebsd* | dragonfly*)
15020 # DragonFly does not have aout. When/if they implement a new
15021 # versioning mechanism, adjust this.
15022 if test -x /usr/bin/objformat; then
15023 objformat=`/usr/bin/objformat`
15024 else
15025 case $host_os in
15026 freebsd[23].*) objformat=aout ;;
15027 *) objformat=elf ;;
15028 esac
15029 fi
15030 version_type=freebsd-$objformat
15031 case $version_type in
15032 freebsd-elf*)
15033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15034 soname_spec='$libname$release$shared_ext$major'
15035 need_version=no
15036 need_lib_prefix=no
15037 ;;
15038 freebsd-*)
15039 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15040 need_version=yes
15041 ;;
15042 esac
15043 shlibpath_var=LD_LIBRARY_PATH
15044 case $host_os in
15045 freebsd2.*)
15046 shlibpath_overrides_runpath=yes
15047 ;;
15048 freebsd3.[01]* | freebsdelf3.[01]*)
15049 shlibpath_overrides_runpath=yes
15050 hardcode_into_libs=yes
15051 ;;
15052 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15053 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15054 shlibpath_overrides_runpath=no
15055 hardcode_into_libs=yes
15056 ;;
15057 *) # from 4.6 on, and DragonFly
15058 shlibpath_overrides_runpath=yes
15059 hardcode_into_libs=yes
15060 ;;
15061 esac
15062 ;;
15063
15064 haiku*)
15065 version_type=linux # correct to gnu/linux during the next big refactor
15066 need_lib_prefix=no
15067 need_version=no
15068 dynamic_linker="$host_os runtime_loader"
15069 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15070 soname_spec='$libname$release$shared_ext$major'
15071 shlibpath_var=LIBRARY_PATH
15072 shlibpath_overrides_runpath=no
15073 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15074 hardcode_into_libs=yes
15075 ;;
15076
15077 hpux9* | hpux10* | hpux11*)
15078 # Give a soname corresponding to the major version so that dld.sl refuses to
15079 # link against other versions.
15080 version_type=sunos
15081 need_lib_prefix=no
15082 need_version=no
15083 case $host_cpu in
15084 ia64*)
15085 shrext_cmds='.so'
15086 hardcode_into_libs=yes
15087 dynamic_linker="$host_os dld.so"
15088 shlibpath_var=LD_LIBRARY_PATH
15089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15091 soname_spec='$libname$release$shared_ext$major'
15092 if test 32 = "$HPUX_IA64_MODE"; then
15093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15094 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15095 else
15096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15097 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15098 fi
15099 ;;
15100 hppa*64*)
15101 shrext_cmds='.sl'
15102 hardcode_into_libs=yes
15103 dynamic_linker="$host_os dld.sl"
15104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15106 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15107 soname_spec='$libname$release$shared_ext$major'
15108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15110 ;;
15111 *)
15112 shrext_cmds='.sl'
15113 dynamic_linker="$host_os dld.sl"
15114 shlibpath_var=SHLIB_PATH
15115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15117 soname_spec='$libname$release$shared_ext$major'
15118 ;;
15119 esac
15120 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15121 postinstall_cmds='chmod 555 $lib'
15122 # or fails outright, so override atomically:
15123 install_override_mode=555
15124 ;;
15125
15126 interix[3-9]*)
15127 version_type=linux # correct to gnu/linux during the next big refactor
15128 need_lib_prefix=no
15129 need_version=no
15130 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15131 soname_spec='$libname$release$shared_ext$major'
15132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 shlibpath_overrides_runpath=no
15135 hardcode_into_libs=yes
15136 ;;
15137
15138 irix5* | irix6* | nonstopux*)
15139 case $host_os in
15140 nonstopux*) version_type=nonstopux ;;
15141 *)
15142 if test yes = "$lt_cv_prog_gnu_ld"; then
15143 version_type=linux # correct to gnu/linux during the next big refactor
15144 else
15145 version_type=irix
15146 fi ;;
15147 esac
15148 need_lib_prefix=no
15149 need_version=no
15150 soname_spec='$libname$release$shared_ext$major'
15151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15152 case $host_os in
15153 irix5* | nonstopux*)
15154 libsuff= shlibsuff=
15155 ;;
15156 *)
15157 case $LD in # libtool.m4 will add one of these switches to LD
15158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15159 libsuff= shlibsuff= libmagic=32-bit;;
15160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15161 libsuff=32 shlibsuff=N32 libmagic=N32;;
15162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15163 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15164 *) libsuff= shlibsuff= libmagic=never-match;;
15165 esac
15166 ;;
15167 esac
15168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15169 shlibpath_overrides_runpath=no
15170 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15171 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15172 hardcode_into_libs=yes
15173 ;;
15174
15175 # No shared lib support for Linux oldld, aout, or coff.
15176 linux*oldld* | linux*aout* | linux*coff*)
15177 dynamic_linker=no
15178 ;;
15179
15180 linux*android*)
15181 version_type=none # Android doesn't support versioned libraries.
15182 need_lib_prefix=no
15183 need_version=no
15184 library_names_spec='$libname$release$shared_ext'
15185 soname_spec='$libname$release$shared_ext'
15186 finish_cmds=
15187 shlibpath_var=LD_LIBRARY_PATH
15188 shlibpath_overrides_runpath=yes
15189
15190 # This implies no fast_install, which is unacceptable.
15191 # Some rework will be needed to allow for fast_install
15192 # before this can be enabled.
15193 hardcode_into_libs=yes
15194
15195 dynamic_linker='Android linker'
15196 # Don't embed -rpath directories since the linker doesn't support them.
15197 hardcode_libdir_flag_spec_CXX='-L$libdir'
15198 ;;
15199
15200 # This must be glibc/ELF.
15201 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15202 version_type=linux # correct to gnu/linux during the next big refactor
15203 need_lib_prefix=no
15204 need_version=no
15205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15206 soname_spec='$libname$release$shared_ext$major'
15207 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 shlibpath_overrides_runpath=no
15210
15211 # Some binutils ld are patched to set DT_RUNPATH
15212 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15213 $as_echo_n "(cached) " >&6
15214 else
15215 lt_cv_shlibpath_overrides_runpath=no
15216 save_LDFLAGS=$LDFLAGS
15217 save_libdir=$libdir
15218 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15219 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222
15223 int
15224 main ()
15225 {
15226
15227 ;
15228 return 0;
15229 }
15230 _ACEOF
15231 if ac_fn_cxx_try_link "$LINENO"; then :
15232 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15233 lt_cv_shlibpath_overrides_runpath=yes
15234 fi
15235 fi
15236 rm -f core conftest.err conftest.$ac_objext \
15237 conftest$ac_exeext conftest.$ac_ext
15238 LDFLAGS=$save_LDFLAGS
15239 libdir=$save_libdir
15240
15241 fi
15242
15243 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15244
15245 # This implies no fast_install, which is unacceptable.
15246 # Some rework will be needed to allow for fast_install
15247 # before this can be enabled.
15248 hardcode_into_libs=yes
15249
15250 # Ideally, we could use ldconfig to report *all* directores which are
15251 # searched for libraries, however this is still not possible. Aside from not
15252 # being certain /sbin/ldconfig is available, command
15253 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15254 # even though it is searched at run-time. Try to do the best guess by
15255 # appending ld.so.conf contents (and includes) to the search path.
15256 if test -f /etc/ld.so.conf; then
15257 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15258 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15259 fi
15260
15261 # We used to test for /lib/ld.so.1 and disable shared libraries on
15262 # powerpc, because MkLinux only supported shared libraries with the
15263 # GNU dynamic linker. Since this was broken with cross compilers,
15264 # most powerpc-linux boxes support dynamic linking these days and
15265 # people can always --disable-shared, the test was removed, and we
15266 # assume the GNU/Linux dynamic linker is in use.
15267 dynamic_linker='GNU/Linux ld.so'
15268 ;;
15269
15270 netbsdelf*-gnu)
15271 version_type=linux
15272 need_lib_prefix=no
15273 need_version=no
15274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15275 soname_spec='${libname}${release}${shared_ext}$major'
15276 shlibpath_var=LD_LIBRARY_PATH
15277 shlibpath_overrides_runpath=no
15278 hardcode_into_libs=yes
15279 dynamic_linker='NetBSD ld.elf_so'
15280 ;;
15281
15282 netbsd*)
15283 version_type=sunos
15284 need_lib_prefix=no
15285 need_version=no
15286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15287 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15288 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15289 dynamic_linker='NetBSD (a.out) ld.so'
15290 else
15291 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15292 soname_spec='$libname$release$shared_ext$major'
15293 dynamic_linker='NetBSD ld.elf_so'
15294 fi
15295 shlibpath_var=LD_LIBRARY_PATH
15296 shlibpath_overrides_runpath=yes
15297 hardcode_into_libs=yes
15298 ;;
15299
15300 newsos6)
15301 version_type=linux # correct to gnu/linux during the next big refactor
15302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15303 shlibpath_var=LD_LIBRARY_PATH
15304 shlibpath_overrides_runpath=yes
15305 ;;
15306
15307 *nto* | *qnx*)
15308 version_type=qnx
15309 need_lib_prefix=no
15310 need_version=no
15311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15312 soname_spec='$libname$release$shared_ext$major'
15313 shlibpath_var=LD_LIBRARY_PATH
15314 shlibpath_overrides_runpath=no
15315 hardcode_into_libs=yes
15316 dynamic_linker='ldqnx.so'
15317 ;;
15318
15319 openbsd* | bitrig*)
15320 version_type=sunos
15321 sys_lib_dlsearch_path_spec=/usr/lib
15322 need_lib_prefix=no
15323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15324 need_version=no
15325 else
15326 need_version=yes
15327 fi
15328 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15329 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15330 shlibpath_var=LD_LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes
15332 ;;
15333
15334 os2*)
15335 libname_spec='$name'
15336 version_type=windows
15337 shrext_cmds=.dll
15338 need_version=no
15339 need_lib_prefix=no
15340 # OS/2 can only load a DLL with a base name of 8 characters or less.
15341 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15342 v=$($ECHO $release$versuffix | tr -d .-);
15343 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15344 $ECHO $n$v`$shared_ext'
15345 library_names_spec='${libname}_dll.$libext'
15346 dynamic_linker='OS/2 ld.exe'
15347 shlibpath_var=BEGINLIBPATH
15348 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15349 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15350 postinstall_cmds='base_file=`basename \$file`~
15351 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15352 dldir=$destdir/`dirname \$dlpath`~
15353 test -d \$dldir || mkdir -p \$dldir~
15354 $install_prog $dir/$dlname \$dldir/$dlname~
15355 chmod a+x \$dldir/$dlname~
15356 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15357 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15358 fi'
15359 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15360 dlpath=$dir/\$dldll~
15361 $RM \$dlpath'
15362 ;;
15363
15364 osf3* | osf4* | osf5*)
15365 version_type=osf
15366 need_lib_prefix=no
15367 need_version=no
15368 soname_spec='$libname$release$shared_ext$major'
15369 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15373 ;;
15374
15375 rdos*)
15376 dynamic_linker=no
15377 ;;
15378
15379 solaris*)
15380 version_type=linux # correct to gnu/linux during the next big refactor
15381 need_lib_prefix=no
15382 need_version=no
15383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15384 soname_spec='$libname$release$shared_ext$major'
15385 shlibpath_var=LD_LIBRARY_PATH
15386 shlibpath_overrides_runpath=yes
15387 hardcode_into_libs=yes
15388 # ldd complains unless libraries are executable
15389 postinstall_cmds='chmod +x $lib'
15390 ;;
15391
15392 sunos4*)
15393 version_type=sunos
15394 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15395 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15396 shlibpath_var=LD_LIBRARY_PATH
15397 shlibpath_overrides_runpath=yes
15398 if test yes = "$with_gnu_ld"; then
15399 need_lib_prefix=no
15400 fi
15401 need_version=yes
15402 ;;
15403
15404 sysv4 | sysv4.3*)
15405 version_type=linux # correct to gnu/linux during the next big refactor
15406 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15407 soname_spec='$libname$release$shared_ext$major'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 case $host_vendor in
15410 sni)
15411 shlibpath_overrides_runpath=no
15412 need_lib_prefix=no
15413 runpath_var=LD_RUN_PATH
15414 ;;
15415 siemens)
15416 need_lib_prefix=no
15417 ;;
15418 motorola)
15419 need_lib_prefix=no
15420 need_version=no
15421 shlibpath_overrides_runpath=no
15422 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15423 ;;
15424 esac
15425 ;;
15426
15427 sysv4*MP*)
15428 if test -d /usr/nec; then
15429 version_type=linux # correct to gnu/linux during the next big refactor
15430 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15431 soname_spec='$libname$shared_ext.$major'
15432 shlibpath_var=LD_LIBRARY_PATH
15433 fi
15434 ;;
15435
15436 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15437 version_type=sco
15438 need_lib_prefix=no
15439 need_version=no
15440 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15441 soname_spec='$libname$release$shared_ext$major'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=yes
15444 hardcode_into_libs=yes
15445 if test yes = "$with_gnu_ld"; then
15446 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15447 else
15448 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15449 case $host_os in
15450 sco3.2v5*)
15451 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15452 ;;
15453 esac
15454 fi
15455 sys_lib_dlsearch_path_spec='/usr/lib'
15456 ;;
15457
15458 tpf*)
15459 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15460 version_type=linux # correct to gnu/linux during the next big refactor
15461 need_lib_prefix=no
15462 need_version=no
15463 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=no
15466 hardcode_into_libs=yes
15467 ;;
15468
15469 uts4*)
15470 version_type=linux # correct to gnu/linux during the next big refactor
15471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15472 soname_spec='$libname$release$shared_ext$major'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 ;;
15475
15476 *)
15477 dynamic_linker=no
15478 ;;
15479 esac
15480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15481 $as_echo "$dynamic_linker" >&6; }
15482 test no = "$dynamic_linker" && can_build_shared=no
15483
15484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15485 if test yes = "$GCC"; then
15486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15487 fi
15488
15489 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15490 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15491 fi
15492
15493 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15494 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15495 fi
15496
15497 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15498 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15499
15500 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15501 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15502
15503 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15504 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15546 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15547 hardcode_action_CXX=
15548 if test -n "$hardcode_libdir_flag_spec_CXX" ||
15549 test -n "$runpath_var_CXX" ||
15550 test yes = "$hardcode_automatic_CXX"; then
15551
15552 # We can hardcode non-existent directories.
15553 if test no != "$hardcode_direct_CXX" &&
15554 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15555 # have to relink, otherwise we might link with an installed library
15556 # when we should be linking with a yet-to-be-installed one
15557 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
15558 test no != "$hardcode_minus_L_CXX"; then
15559 # Linking always hardcodes the temporary library directory.
15560 hardcode_action_CXX=relink
15561 else
15562 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15563 hardcode_action_CXX=immediate
15564 fi
15565 else
15566 # We cannot hardcode anything, or else we can only hardcode existing
15567 # directories.
15568 hardcode_action_CXX=unsupported
15569 fi
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
15571 $as_echo "$hardcode_action_CXX" >&6; }
15572
15573 if test relink = "$hardcode_action_CXX" ||
15574 test yes = "$inherit_rpath_CXX"; then
15575 # Fast installation is not supported
15576 enable_fast_install=no
15577 elif test yes = "$shlibpath_overrides_runpath" ||
15578 test no = "$enable_shared"; then
15579 # Fast installation is not necessary
15580 enable_fast_install=needless
15581 fi
15582
15583
15584
15585
15586
15587
15588
15589 fi # test -n "$compiler"
15590
15591 CC=$lt_save_CC
15592 CFLAGS=$lt_save_CFLAGS
15593 LDCXX=$LD
15594 LD=$lt_save_LD
15595 GCC=$lt_save_GCC
15596 with_gnu_ld=$lt_save_with_gnu_ld
15597 lt_cv_path_LDCXX=$lt_cv_path_LD
15598 lt_cv_path_LD=$lt_save_path_LD
15599 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15600 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15601 fi # test yes != "$_lt_caught_CXX_error"
15602
15603 ac_ext=c
15604 ac_cpp='$CPP $CPPFLAGS'
15605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15608
15609
15610 ac_ext=c
15611 ac_cpp='$CPP $CPPFLAGS'
15612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15615 if test -n "$ac_tool_prefix"; then
15616 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
15617 set dummy ${ac_tool_prefix}gcc; ac_word=$2
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15619 $as_echo_n "checking for $ac_word... " >&6; }
15620 if ${ac_cv_prog_CC+:} false; then :
15621 $as_echo_n "(cached) " >&6
15622 else
15623 if test -n "$CC"; then
15624 ac_cv_prog_CC="$CC" # Let the user override the test.
15625 else
15626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15627 for as_dir in $PATH
15628 do
15629 IFS=$as_save_IFS
15630 test -z "$as_dir" && as_dir=.
15631 for ac_exec_ext in '' $ac_executable_extensions; do
15632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15633 ac_cv_prog_CC="${ac_tool_prefix}gcc"
15634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15635 break 2
15636 fi
15637 done
15638 done
15639 IFS=$as_save_IFS
15640
15641 fi
15642 fi
15643 CC=$ac_cv_prog_CC
15644 if test -n "$CC"; then
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15646 $as_echo "$CC" >&6; }
15647 else
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15649 $as_echo "no" >&6; }
15650 fi
15651
15652
15653 fi
15654 if test -z "$ac_cv_prog_CC"; then
15655 ac_ct_CC=$CC
15656 # Extract the first word of "gcc", so it can be a program name with args.
15657 set dummy gcc; ac_word=$2
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15659 $as_echo_n "checking for $ac_word... " >&6; }
15660 if ${ac_cv_prog_ac_ct_CC+:} false; then :
15661 $as_echo_n "(cached) " >&6
15662 else
15663 if test -n "$ac_ct_CC"; then
15664 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15665 else
15666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15667 for as_dir in $PATH
15668 do
15669 IFS=$as_save_IFS
15670 test -z "$as_dir" && as_dir=.
15671 for ac_exec_ext in '' $ac_executable_extensions; do
15672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15673 ac_cv_prog_ac_ct_CC="gcc"
15674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15675 break 2
15676 fi
15677 done
15678 done
15679 IFS=$as_save_IFS
15680
15681 fi
15682 fi
15683 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15684 if test -n "$ac_ct_CC"; then
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15686 $as_echo "$ac_ct_CC" >&6; }
15687 else
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15689 $as_echo "no" >&6; }
15690 fi
15691
15692 if test "x$ac_ct_CC" = x; then
15693 CC=""
15694 else
15695 case $cross_compiling:$ac_tool_warned in
15696 yes:)
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15699 ac_tool_warned=yes ;;
15700 esac
15701 CC=$ac_ct_CC
15702 fi
15703 else
15704 CC="$ac_cv_prog_CC"
15705 fi
15706
15707 if test -z "$CC"; then
15708 if test -n "$ac_tool_prefix"; then
15709 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
15710 set dummy ${ac_tool_prefix}cc; ac_word=$2
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15712 $as_echo_n "checking for $ac_word... " >&6; }
15713 if ${ac_cv_prog_CC+:} false; then :
15714 $as_echo_n "(cached) " >&6
15715 else
15716 if test -n "$CC"; then
15717 ac_cv_prog_CC="$CC" # Let the user override the test.
15718 else
15719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15720 for as_dir in $PATH
15721 do
15722 IFS=$as_save_IFS
15723 test -z "$as_dir" && as_dir=.
15724 for ac_exec_ext in '' $ac_executable_extensions; do
15725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15726 ac_cv_prog_CC="${ac_tool_prefix}cc"
15727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15728 break 2
15729 fi
15730 done
15731 done
15732 IFS=$as_save_IFS
15733
15734 fi
15735 fi
15736 CC=$ac_cv_prog_CC
15737 if test -n "$CC"; then
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15739 $as_echo "$CC" >&6; }
15740 else
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15742 $as_echo "no" >&6; }
15743 fi
15744
15745
15746 fi
15747 fi
15748 if test -z "$CC"; then
15749 # Extract the first word of "cc", so it can be a program name with args.
15750 set dummy cc; ac_word=$2
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15752 $as_echo_n "checking for $ac_word... " >&6; }
15753 if ${ac_cv_prog_CC+:} false; then :
15754 $as_echo_n "(cached) " >&6
15755 else
15756 if test -n "$CC"; then
15757 ac_cv_prog_CC="$CC" # Let the user override the test.
15758 else
15759 ac_prog_rejected=no
15760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15761 for as_dir in $PATH
15762 do
15763 IFS=$as_save_IFS
15764 test -z "$as_dir" && as_dir=.
15765 for ac_exec_ext in '' $ac_executable_extensions; do
15766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15767 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
15768 ac_prog_rejected=yes
15769 continue
15770 fi
15771 ac_cv_prog_CC="cc"
15772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15773 break 2
15774 fi
15775 done
15776 done
15777 IFS=$as_save_IFS
15778
15779 if test $ac_prog_rejected = yes; then
15780 # We found a bogon in the path, so make sure we never use it.
15781 set dummy $ac_cv_prog_CC
15782 shift
15783 if test $# != 0; then
15784 # We chose a different compiler from the bogus one.
15785 # However, it has the same basename, so the bogon will be chosen
15786 # first if we set CC to just the basename; use the full file name.
15787 shift
15788 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
15789 fi
15790 fi
15791 fi
15792 fi
15793 CC=$ac_cv_prog_CC
15794 if test -n "$CC"; then
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15796 $as_echo "$CC" >&6; }
15797 else
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15799 $as_echo "no" >&6; }
15800 fi
15801
15802
15803 fi
15804 if test -z "$CC"; then
15805 if test -n "$ac_tool_prefix"; then
15806 for ac_prog in cl.exe
15807 do
15808 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15809 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15811 $as_echo_n "checking for $ac_word... " >&6; }
15812 if ${ac_cv_prog_CC+:} false; then :
15813 $as_echo_n "(cached) " >&6
15814 else
15815 if test -n "$CC"; then
15816 ac_cv_prog_CC="$CC" # Let the user override the test.
15817 else
15818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15819 for as_dir in $PATH
15820 do
15821 IFS=$as_save_IFS
15822 test -z "$as_dir" && as_dir=.
15823 for ac_exec_ext in '' $ac_executable_extensions; do
15824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15825 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
15826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15827 break 2
15828 fi
15829 done
15830 done
15831 IFS=$as_save_IFS
15832
15833 fi
15834 fi
15835 CC=$ac_cv_prog_CC
15836 if test -n "$CC"; then
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
15838 $as_echo "$CC" >&6; }
15839 else
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15841 $as_echo "no" >&6; }
15842 fi
15843
15844
15845 test -n "$CC" && break
15846 done
15847 fi
15848 if test -z "$CC"; then
15849 ac_ct_CC=$CC
15850 for ac_prog in cl.exe
15851 do
15852 # Extract the first word of "$ac_prog", so it can be a program name with args.
15853 set dummy $ac_prog; ac_word=$2
15854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15855 $as_echo_n "checking for $ac_word... " >&6; }
15856 if ${ac_cv_prog_ac_ct_CC+:} false; then :
15857 $as_echo_n "(cached) " >&6
15858 else
15859 if test -n "$ac_ct_CC"; then
15860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
15861 else
15862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15863 for as_dir in $PATH
15864 do
15865 IFS=$as_save_IFS
15866 test -z "$as_dir" && as_dir=.
15867 for ac_exec_ext in '' $ac_executable_extensions; do
15868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15869 ac_cv_prog_ac_ct_CC="$ac_prog"
15870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15871 break 2
15872 fi
15873 done
15874 done
15875 IFS=$as_save_IFS
15876
15877 fi
15878 fi
15879 ac_ct_CC=$ac_cv_prog_ac_ct_CC
15880 if test -n "$ac_ct_CC"; then
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
15882 $as_echo "$ac_ct_CC" >&6; }
15883 else
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15885 $as_echo "no" >&6; }
15886 fi
15887
15888
15889 test -n "$ac_ct_CC" && break
15890 done
15891
15892 if test "x$ac_ct_CC" = x; then
15893 CC=""
15894 else
15895 case $cross_compiling:$ac_tool_warned in
15896 yes:)
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15899 ac_tool_warned=yes ;;
15900 esac
15901 CC=$ac_ct_CC
15902 fi
15903 fi
15904
15905 fi
15906
15907
15908 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15909 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15910 as_fn_error $? "no acceptable C compiler found in \$PATH
15911 See \`config.log' for more details" "$LINENO" 5; }
15912
15913 # Provide some information about the compiler.
15914 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
15915 set X $ac_compile
15916 ac_compiler=$2
15917 for ac_option in --version -v -V -qversion; do
15918 { { ac_try="$ac_compiler $ac_option >&5"
15919 case "(($ac_try" in
15920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15921 *) ac_try_echo=$ac_try;;
15922 esac
15923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15924 $as_echo "$ac_try_echo"; } >&5
15925 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15926 ac_status=$?
15927 if test -s conftest.err; then
15928 sed '10a\
15929 ... rest of stderr output deleted ...
15930 10q' conftest.err >conftest.er1
15931 cat conftest.er1 >&5
15932 fi
15933 rm -f conftest.er1 conftest.err
15934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15935 test $ac_status = 0; }
15936 done
15937
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
15939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
15940 if ${ac_cv_c_compiler_gnu+:} false; then :
15941 $as_echo_n "(cached) " >&6
15942 else
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945
15946 int
15947 main ()
15948 {
15949 #ifndef __GNUC__
15950 choke me
15951 #endif
15952
15953 ;
15954 return 0;
15955 }
15956 _ACEOF
15957 if ac_fn_c_try_compile "$LINENO"; then :
15958 ac_compiler_gnu=yes
15959 else
15960 ac_compiler_gnu=no
15961 fi
15962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
15964
15965 fi
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
15967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
15968 if test $ac_compiler_gnu = yes; then
15969 GCC=yes
15970 else
15971 GCC=
15972 fi
15973 ac_test_CFLAGS=${CFLAGS+set}
15974 ac_save_CFLAGS=$CFLAGS
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
15976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
15977 if ${ac_cv_prog_cc_g+:} false; then :
15978 $as_echo_n "(cached) " >&6
15979 else
15980 ac_save_c_werror_flag=$ac_c_werror_flag
15981 ac_c_werror_flag=yes
15982 ac_cv_prog_cc_g=no
15983 CFLAGS="-g"
15984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15985 /* end confdefs.h. */
15986
15987 int
15988 main ()
15989 {
15990
15991 ;
15992 return 0;
15993 }
15994 _ACEOF
15995 if ac_fn_c_try_compile "$LINENO"; then :
15996 ac_cv_prog_cc_g=yes
15997 else
15998 CFLAGS=""
15999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16000 /* end confdefs.h. */
16001
16002 int
16003 main ()
16004 {
16005
16006 ;
16007 return 0;
16008 }
16009 _ACEOF
16010 if ac_fn_c_try_compile "$LINENO"; then :
16011
16012 else
16013 ac_c_werror_flag=$ac_save_c_werror_flag
16014 CFLAGS="-g"
16015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16016 /* end confdefs.h. */
16017
16018 int
16019 main ()
16020 {
16021
16022 ;
16023 return 0;
16024 }
16025 _ACEOF
16026 if ac_fn_c_try_compile "$LINENO"; then :
16027 ac_cv_prog_cc_g=yes
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16030 fi
16031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16032 fi
16033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16034 ac_c_werror_flag=$ac_save_c_werror_flag
16035 fi
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16037 $as_echo "$ac_cv_prog_cc_g" >&6; }
16038 if test "$ac_test_CFLAGS" = set; then
16039 CFLAGS=$ac_save_CFLAGS
16040 elif test $ac_cv_prog_cc_g = yes; then
16041 if test "$GCC" = yes; then
16042 CFLAGS="-g -O2"
16043 else
16044 CFLAGS="-g"
16045 fi
16046 else
16047 if test "$GCC" = yes; then
16048 CFLAGS="-O2"
16049 else
16050 CFLAGS=
16051 fi
16052 fi
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16055 if ${ac_cv_prog_cc_c89+:} false; then :
16056 $as_echo_n "(cached) " >&6
16057 else
16058 ac_cv_prog_cc_c89=no
16059 ac_save_CC=$CC
16060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16061 /* end confdefs.h. */
16062 #include <stdarg.h>
16063 #include <stdio.h>
16064 struct stat;
16065 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16066 struct buf { int x; };
16067 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16068 static char *e (p, i)
16069 char **p;
16070 int i;
16071 {
16072 return p[i];
16073 }
16074 static char *f (char * (*g) (char **, int), char **p, ...)
16075 {
16076 char *s;
16077 va_list v;
16078 va_start (v,p);
16079 s = g (p, va_arg (v,int));
16080 va_end (v);
16081 return s;
16082 }
16083
16084 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16085 function prototypes and stuff, but not '\xHH' hex character constants.
16086 These don't provoke an error unfortunately, instead are silently treated
16087 as 'x'. The following induces an error, until -std is added to get
16088 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16089 array size at least. It's necessary to write '\x00'==0 to get something
16090 that's true only with -std. */
16091 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16092
16093 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16094 inside strings and character constants. */
16095 #define FOO(x) 'x'
16096 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16097
16098 int test (int i, double x);
16099 struct s1 {int (*f) (int a);};
16100 struct s2 {int (*f) (double a);};
16101 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16102 int argc;
16103 char **argv;
16104 int
16105 main ()
16106 {
16107 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16108 ;
16109 return 0;
16110 }
16111 _ACEOF
16112 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16113 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16114 do
16115 CC="$ac_save_CC $ac_arg"
16116 if ac_fn_c_try_compile "$LINENO"; then :
16117 ac_cv_prog_cc_c89=$ac_arg
16118 fi
16119 rm -f core conftest.err conftest.$ac_objext
16120 test "x$ac_cv_prog_cc_c89" != "xno" && break
16121 done
16122 rm -f conftest.$ac_ext
16123 CC=$ac_save_CC
16124
16125 fi
16126 # AC_CACHE_VAL
16127 case "x$ac_cv_prog_cc_c89" in
16128 x)
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16130 $as_echo "none needed" >&6; } ;;
16131 xno)
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16133 $as_echo "unsupported" >&6; } ;;
16134 *)
16135 CC="$CC $ac_cv_prog_cc_c89"
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16137 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16138 esac
16139 if test "x$ac_cv_prog_cc_c89" != xno; then :
16140
16141 fi
16142
16143 ac_ext=c
16144 ac_cpp='$CPP $CPPFLAGS'
16145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16148
16149 ac_ext=c
16150 ac_cpp='$CPP $CPPFLAGS'
16151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16155 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16156 if ${am_cv_prog_cc_c_o+:} false; then :
16157 $as_echo_n "(cached) " >&6
16158 else
16159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16160 /* end confdefs.h. */
16161
16162 int
16163 main ()
16164 {
16165
16166 ;
16167 return 0;
16168 }
16169 _ACEOF
16170 # Make sure it works both with $CC and with simple cc.
16171 # Following AC_PROG_CC_C_O, we do the test twice because some
16172 # compilers refuse to overwrite an existing .o file with -o,
16173 # though they will create one.
16174 am_cv_prog_cc_c_o=yes
16175 for am_i in 1 2; do
16176 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16177 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16178 ac_status=$?
16179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16180 (exit $ac_status); } \
16181 && test -f conftest2.$ac_objext; then
16182 : OK
16183 else
16184 am_cv_prog_cc_c_o=no
16185 break
16186 fi
16187 done
16188 rm -f core conftest*
16189 unset am_i
16190 fi
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16192 $as_echo "$am_cv_prog_cc_c_o" >&6; }
16193 if test "$am_cv_prog_cc_c_o" != yes; then
16194 # Losing compiler, so override with the script.
16195 # FIXME: It is wrong to rewrite CC.
16196 # But if we don't then we get into trouble of one sort or another.
16197 # A longer-term fix would be to have automake use am__CC in this case,
16198 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16199 CC="$am_aux_dir/compile $CC"
16200 fi
16201 ac_ext=c
16202 ac_cpp='$CPP $CPPFLAGS'
16203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16206
16207
16208 # Find a good install program. We prefer a C program (faster),
16209 # so one script is as good as another. But avoid the broken or
16210 # incompatible versions:
16211 # SysV /etc/install, /usr/sbin/install
16212 # SunOS /usr/etc/install
16213 # IRIX /sbin/install
16214 # AIX /bin/install
16215 # AmigaOS /C/install, which installs bootblocks on floppy discs
16216 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
16217 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
16218 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
16219 # OS/2's system install, which has a completely different semantic
16220 # ./install, which can be erroneously created by make from ./install.sh.
16221 # Reject install programs that cannot install multiple files.
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
16223 $as_echo_n "checking for a BSD-compatible install... " >&6; }
16224 if test -z "$INSTALL"; then
16225 if ${ac_cv_path_install+:} false; then :
16226 $as_echo_n "(cached) " >&6
16227 else
16228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16229 for as_dir in $PATH
16230 do
16231 IFS=$as_save_IFS
16232 test -z "$as_dir" && as_dir=.
16233 # Account for people who put trailing slashes in PATH elements.
16234 case $as_dir/ in #((
16235 ./ | .// | /[cC]/* | \
16236 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
16237 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
16238 /usr/ucb/* ) ;;
16239 *)
16240 # OSF1 and SCO ODT 3.0 have their own names for install.
16241 # Don't use installbsd from OSF since it installs stuff as root
16242 # by default.
16243 for ac_prog in ginstall scoinst install; do
16244 for ac_exec_ext in '' $ac_executable_extensions; do
16245 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
16246 if test $ac_prog = install &&
16247 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16248 # AIX install. It has an incompatible calling convention.
16249 :
16250 elif test $ac_prog = install &&
16251 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
16252 # program-specific install script used by HP pwplus--don't use.
16253 :
16254 else
16255 rm -rf conftest.one conftest.two conftest.dir
16256 echo one > conftest.one
16257 echo two > conftest.two
16258 mkdir conftest.dir
16259 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
16260 test -s conftest.one && test -s conftest.two &&
16261 test -s conftest.dir/conftest.one &&
16262 test -s conftest.dir/conftest.two
16263 then
16264 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
16265 break 3
16266 fi
16267 fi
16268 fi
16269 done
16270 done
16271 ;;
16272 esac
16273
16274 done
16275 IFS=$as_save_IFS
16276
16277 rm -rf conftest.one conftest.two conftest.dir
16278
16279 fi
16280 if test "${ac_cv_path_install+set}" = set; then
16281 INSTALL=$ac_cv_path_install
16282 else
16283 # As a last resort, use the slow shell script. Don't cache a
16284 # value for INSTALL within a source directory, because that will
16285 # break other packages using the cache if that directory is
16286 # removed, or if the value is a relative name.
16287 INSTALL=$ac_install_sh
16288 fi
16289 fi
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
16291 $as_echo "$INSTALL" >&6; }
16292
16293 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
16294 # It thinks the first close brace ends the variable substitution.
16295 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
16296
16297 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
16298
16299 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
16300
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
16302 $as_echo_n "checking whether ln -s works... " >&6; }
16303 LN_S=$as_ln_s
16304 if test "$LN_S" = "ln -s"; then
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16306 $as_echo "yes" >&6; }
16307 else
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
16309 $as_echo "no, using $LN_S" >&6; }
16310 fi
16311
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
16313 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
16314 if ${ac_cv_path_GREP+:} false; then :
16315 $as_echo_n "(cached) " >&6
16316 else
16317 if test -z "$GREP"; then
16318 ac_path_GREP_found=false
16319 # Loop through the user's path and test for each of PROGNAME-LIST
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
16322 do
16323 IFS=$as_save_IFS
16324 test -z "$as_dir" && as_dir=.
16325 for ac_prog in grep ggrep; do
16326 for ac_exec_ext in '' $ac_executable_extensions; do
16327 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
16328 as_fn_executable_p "$ac_path_GREP" || continue
16329 # Check for GNU ac_path_GREP and select it if it is found.
16330 # Check for GNU $ac_path_GREP
16331 case `"$ac_path_GREP" --version 2>&1` in
16332 *GNU*)
16333 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
16334 *)
16335 ac_count=0
16336 $as_echo_n 0123456789 >"conftest.in"
16337 while :
16338 do
16339 cat "conftest.in" "conftest.in" >"conftest.tmp"
16340 mv "conftest.tmp" "conftest.in"
16341 cp "conftest.in" "conftest.nl"
16342 $as_echo 'GREP' >> "conftest.nl"
16343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
16344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
16345 as_fn_arith $ac_count + 1 && ac_count=$as_val
16346 if test $ac_count -gt ${ac_path_GREP_max-0}; then
16347 # Best one so far, save it but keep looking for a better one
16348 ac_cv_path_GREP="$ac_path_GREP"
16349 ac_path_GREP_max=$ac_count
16350 fi
16351 # 10*(2^10) chars as input seems more than enough
16352 test $ac_count -gt 10 && break
16353 done
16354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
16355 esac
16356
16357 $ac_path_GREP_found && break 3
16358 done
16359 done
16360 done
16361 IFS=$as_save_IFS
16362 if test -z "$ac_cv_path_GREP"; then
16363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
16364 fi
16365 else
16366 ac_cv_path_GREP=$GREP
16367 fi
16368
16369 fi
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
16371 $as_echo "$ac_cv_path_GREP" >&6; }
16372 GREP="$ac_cv_path_GREP"
16373
16374
16375
16376 # Initialize automake stuff
16377 am__api_version='1.15'
16378
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
16380 $as_echo_n "checking whether build environment is sane... " >&6; }
16381 # Reject unsafe characters in $srcdir or the absolute working directory
16382 # name. Accept space and tab only in the latter.
16383 am_lf='
16384 '
16385 case `pwd` in
16386 *[\\\"\#\$\&\'\`$am_lf]*)
16387 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
16388 esac
16389 case $srcdir in
16390 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
16391 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
16392 esac
16393
16394 # Do 'set' in a subshell so we don't clobber the current shell's
16395 # arguments. Must try -L first in case configure is actually a
16396 # symlink; some systems play weird games with the mod time of symlinks
16397 # (eg FreeBSD returns the mod time of the symlink's containing
16398 # directory).
16399 if (
16400 am_has_slept=no
16401 for am_try in 1 2; do
16402 echo "timestamp, slept: $am_has_slept" > conftest.file
16403 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
16404 if test "$*" = "X"; then
16405 # -L didn't work.
16406 set X `ls -t "$srcdir/configure" conftest.file`
16407 fi
16408 if test "$*" != "X $srcdir/configure conftest.file" \
16409 && test "$*" != "X conftest.file $srcdir/configure"; then
16410
16411 # If neither matched, then we have a broken ls. This can happen
16412 # if, for instance, CONFIG_SHELL is bash and it inherits a
16413 # broken ls alias from the environment. This has actually
16414 # happened. Such a system could not be considered "sane".
16415 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
16416 alias in your environment" "$LINENO" 5
16417 fi
16418 if test "$2" = conftest.file || test $am_try -eq 2; then
16419 break
16420 fi
16421 # Just in case.
16422 sleep 1
16423 am_has_slept=yes
16424 done
16425 test "$2" = conftest.file
16426 )
16427 then
16428 # Ok.
16429 :
16430 else
16431 as_fn_error $? "newly created file is older than distributed files!
16432 Check your system clock" "$LINENO" 5
16433 fi
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16435 $as_echo "yes" >&6; }
16436 # If we didn't sleep, we still need to ensure time stamps of config.status and
16437 # generated files are strictly newer.
16438 am_sleep_pid=
16439 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
16440 ( sleep 1 ) &
16441 am_sleep_pid=$!
16442 fi
16443
16444 rm -f conftest.file
16445
16446 test "$program_prefix" != NONE &&
16447 program_transform_name="s&^&$program_prefix&;$program_transform_name"
16448 # Use a double $ so make ignores it.
16449 test "$program_suffix" != NONE &&
16450 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
16451 # Double any \ or $.
16452 # By default was `s,x,x', remove it if useless.
16453 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
16454 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
16455
16456 if test x"${MISSING+set}" != xset; then
16457 case $am_aux_dir in
16458 *\ * | *\ *)
16459 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
16460 *)
16461 MISSING="\${SHELL} $am_aux_dir/missing" ;;
16462 esac
16463 fi
16464 # Use eval to expand $SHELL
16465 if eval "$MISSING --is-lightweight"; then
16466 am_missing_run="$MISSING "
16467 else
16468 am_missing_run=
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
16470 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
16471 fi
16472
16473 if test x"${install_sh+set}" != xset; then
16474 case $am_aux_dir in
16475 *\ * | *\ *)
16476 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
16477 *)
16478 install_sh="\${SHELL} $am_aux_dir/install-sh"
16479 esac
16480 fi
16481
16482 # Installed binaries are usually stripped using 'strip' when the user
16483 # run "make install-strip". However 'strip' might not be the right
16484 # tool to use in cross-compilation environments, therefore Automake
16485 # will honor the 'STRIP' environment variable to overrule this program.
16486 if test "$cross_compiling" != no; then
16487 if test -n "$ac_tool_prefix"; then
16488 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
16489 set dummy ${ac_tool_prefix}strip; ac_word=$2
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16491 $as_echo_n "checking for $ac_word... " >&6; }
16492 if ${ac_cv_prog_STRIP+:} false; then :
16493 $as_echo_n "(cached) " >&6
16494 else
16495 if test -n "$STRIP"; then
16496 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
16497 else
16498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16499 for as_dir in $PATH
16500 do
16501 IFS=$as_save_IFS
16502 test -z "$as_dir" && as_dir=.
16503 for ac_exec_ext in '' $ac_executable_extensions; do
16504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16505 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
16506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16507 break 2
16508 fi
16509 done
16510 done
16511 IFS=$as_save_IFS
16512
16513 fi
16514 fi
16515 STRIP=$ac_cv_prog_STRIP
16516 if test -n "$STRIP"; then
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
16518 $as_echo "$STRIP" >&6; }
16519 else
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16521 $as_echo "no" >&6; }
16522 fi
16523
16524
16525 fi
16526 if test -z "$ac_cv_prog_STRIP"; then
16527 ac_ct_STRIP=$STRIP
16528 # Extract the first word of "strip", so it can be a program name with args.
16529 set dummy strip; ac_word=$2
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16531 $as_echo_n "checking for $ac_word... " >&6; }
16532 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
16533 $as_echo_n "(cached) " >&6
16534 else
16535 if test -n "$ac_ct_STRIP"; then
16536 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
16537 else
16538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16539 for as_dir in $PATH
16540 do
16541 IFS=$as_save_IFS
16542 test -z "$as_dir" && as_dir=.
16543 for ac_exec_ext in '' $ac_executable_extensions; do
16544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16545 ac_cv_prog_ac_ct_STRIP="strip"
16546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16547 break 2
16548 fi
16549 done
16550 done
16551 IFS=$as_save_IFS
16552
16553 fi
16554 fi
16555 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
16556 if test -n "$ac_ct_STRIP"; then
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
16558 $as_echo "$ac_ct_STRIP" >&6; }
16559 else
16560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16561 $as_echo "no" >&6; }
16562 fi
16563
16564 if test "x$ac_ct_STRIP" = x; then
16565 STRIP=":"
16566 else
16567 case $cross_compiling:$ac_tool_warned in
16568 yes:)
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16571 ac_tool_warned=yes ;;
16572 esac
16573 STRIP=$ac_ct_STRIP
16574 fi
16575 else
16576 STRIP="$ac_cv_prog_STRIP"
16577 fi
16578
16579 fi
16580 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
16581
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
16583 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
16584 if test -z "$MKDIR_P"; then
16585 if ${ac_cv_path_mkdir+:} false; then :
16586 $as_echo_n "(cached) " >&6
16587 else
16588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16589 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
16590 do
16591 IFS=$as_save_IFS
16592 test -z "$as_dir" && as_dir=.
16593 for ac_prog in mkdir gmkdir; do
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
16596 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
16597 'mkdir (GNU coreutils) '* | \
16598 'mkdir (coreutils) '* | \
16599 'mkdir (fileutils) '4.1*)
16600 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
16601 break 3;;
16602 esac
16603 done
16604 done
16605 done
16606 IFS=$as_save_IFS
16607
16608 fi
16609
16610 test -d ./--version && rmdir ./--version
16611 if test "${ac_cv_path_mkdir+set}" = set; then
16612 MKDIR_P="$ac_cv_path_mkdir -p"
16613 else
16614 # As a last resort, use the slow shell script. Don't cache a
16615 # value for MKDIR_P within a source directory, because that will
16616 # break other packages using the cache if that directory is
16617 # removed, or if the value is a relative name.
16618 MKDIR_P="$ac_install_sh -d"
16619 fi
16620 fi
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
16622 $as_echo "$MKDIR_P" >&6; }
16623
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16625 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16626 set x ${MAKE-make}
16627 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16628 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
16629 $as_echo_n "(cached) " >&6
16630 else
16631 cat >conftest.make <<\_ACEOF
16632 SHELL = /bin/sh
16633 all:
16634 @echo '@@@%%%=$(MAKE)=@@@%%%'
16635 _ACEOF
16636 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
16637 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16638 *@@@%%%=?*=@@@%%%*)
16639 eval ac_cv_prog_make_${ac_make}_set=yes;;
16640 *)
16641 eval ac_cv_prog_make_${ac_make}_set=no;;
16642 esac
16643 rm -f conftest.make
16644 fi
16645 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16647 $as_echo "yes" >&6; }
16648 SET_MAKE=
16649 else
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16651 $as_echo "no" >&6; }
16652 SET_MAKE="MAKE=${MAKE-make}"
16653 fi
16654
16655 # Check whether --enable-silent-rules was given.
16656 if test "${enable_silent_rules+set}" = set; then :
16657 enableval=$enable_silent_rules;
16658 fi
16659
16660 case $enable_silent_rules in # (((
16661 yes) AM_DEFAULT_VERBOSITY=0;;
16662 no) AM_DEFAULT_VERBOSITY=1;;
16663 *) AM_DEFAULT_VERBOSITY=1;;
16664 esac
16665 am_make=${MAKE-make}
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16667 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16668 if ${am_cv_make_support_nested_variables+:} false; then :
16669 $as_echo_n "(cached) " >&6
16670 else
16671 if $as_echo 'TRUE=$(BAR$(V))
16672 BAR0=false
16673 BAR1=true
16674 V=1
16675 am__doit:
16676 @$(TRUE)
16677 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16678 am_cv_make_support_nested_variables=yes
16679 else
16680 am_cv_make_support_nested_variables=no
16681 fi
16682 fi
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16684 $as_echo "$am_cv_make_support_nested_variables" >&6; }
16685 if test $am_cv_make_support_nested_variables = yes; then
16686 AM_V='$(V)'
16687 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16688 else
16689 AM_V=$AM_DEFAULT_VERBOSITY
16690 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16691 fi
16692 AM_BACKSLASH='\'
16693
16694 if test "`cd $srcdir && pwd`" != "`pwd`"; then
16695 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
16696 # is not polluted with repeated "-I."
16697 am__isrc=' -I$(srcdir)'
16698 # test to see if srcdir already configured
16699 if test -f $srcdir/config.status; then
16700 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
16701 fi
16702 fi
16703
16704 # test whether we have cygpath
16705 if test -z "$CYGPATH_W"; then
16706 if (cygpath --version) >/dev/null 2>/dev/null; then
16707 CYGPATH_W='cygpath -w'
16708 else
16709 CYGPATH_W=echo
16710 fi
16711 fi
16712
16713
16714 # Define the identity of the package.
16715 PACKAGE='libde265'
16716 VERSION='1.0.8'
16717
16718
16719 cat >>confdefs.h <<_ACEOF
16720 #define PACKAGE "$PACKAGE"
16721 _ACEOF
16722
16723
16724 cat >>confdefs.h <<_ACEOF
16725 #define VERSION "$VERSION"
16726 _ACEOF
16727
16728 # Some tools Automake needs.
16729
16730 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
16731
16732
16733 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
16734
16735
16736 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
16737
16738
16739 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
16740
16741
16742 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
16743
16744 # For better backward compatibility. To be removed once Automake 1.9.x
16745 # dies out for good. For more background, see:
16746 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
16747 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
16748 mkdir_p='$(MKDIR_P)'
16749
16750 # We need awk for the "check" target (and possibly the TAP driver). The
16751 # system "awk" is bad on some platforms.
16752 # Always define AMTAR for backward compatibility. Yes, it's still used
16753 # in the wild :-( We should find a proper way to deprecate it ...
16754 AMTAR='$${TAR-tar}'
16755
16756
16757 # We'll loop over all known methods to create a tar archive until one works.
16758 _am_tools='gnutar pax cpio none'
16759
16760 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
16761
16762
16763
16764
16765
16766 depcc="$CC" am_compiler_list=
16767
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16769 $as_echo_n "checking dependency style of $depcc... " >&6; }
16770 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
16771 $as_echo_n "(cached) " >&6
16772 else
16773 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16774 # We make a subdir and do the tests there. Otherwise we can end up
16775 # making bogus files that we don't know about and never remove. For
16776 # instance it was reported that on HP-UX the gcc test will end up
16777 # making a dummy file named 'D' -- because '-MD' means "put the output
16778 # in D".
16779 rm -rf conftest.dir
16780 mkdir conftest.dir
16781 # Copy depcomp to subdir because otherwise we won't find it if we're
16782 # using a relative directory.
16783 cp "$am_depcomp" conftest.dir
16784 cd conftest.dir
16785 # We will build objects and dependencies in a subdirectory because
16786 # it helps to detect inapplicable dependency modes. For instance
16787 # both Tru64's cc and ICC support -MD to output dependencies as a
16788 # side effect of compilation, but ICC will put the dependencies in
16789 # the current directory while Tru64 will put them in the object
16790 # directory.
16791 mkdir sub
16792
16793 am_cv_CC_dependencies_compiler_type=none
16794 if test "$am_compiler_list" = ""; then
16795 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16796 fi
16797 am__universal=false
16798 case " $depcc " in #(
16799 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16800 esac
16801
16802 for depmode in $am_compiler_list; do
16803 # Setup a source with many dependencies, because some compilers
16804 # like to wrap large dependency lists on column 80 (with \), and
16805 # we should not choose a depcomp mode which is confused by this.
16806 #
16807 # We need to recreate these files for each test, as the compiler may
16808 # overwrite some of them when testing with obscure command lines.
16809 # This happens at least with the AIX C compiler.
16810 : > sub/conftest.c
16811 for i in 1 2 3 4 5 6; do
16812 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16813 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16814 # Solaris 10 /bin/sh.
16815 echo '/* dummy */' > sub/conftst$i.h
16816 done
16817 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16818
16819 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16820 # mode. It turns out that the SunPro C++ compiler does not properly
16821 # handle '-M -o', and we need to detect this. Also, some Intel
16822 # versions had trouble with output in subdirs.
16823 am__obj=sub/conftest.${OBJEXT-o}
16824 am__minus_obj="-o $am__obj"
16825 case $depmode in
16826 gcc)
16827 # This depmode causes a compiler race in universal mode.
16828 test "$am__universal" = false || continue
16829 ;;
16830 nosideeffect)
16831 # After this tag, mechanisms are not by side-effect, so they'll
16832 # only be used when explicitly requested.
16833 if test "x$enable_dependency_tracking" = xyes; then
16834 continue
16835 else
16836 break
16837 fi
16838 ;;
16839 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16840 # This compiler won't grok '-c -o', but also, the minuso test has
16841 # not run yet. These depmodes are late enough in the game, and
16842 # so weak that their functioning should not be impacted.
16843 am__obj=conftest.${OBJEXT-o}
16844 am__minus_obj=
16845 ;;
16846 none) break ;;
16847 esac
16848 if depmode=$depmode \
16849 source=sub/conftest.c object=$am__obj \
16850 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16851 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16852 >/dev/null 2>conftest.err &&
16853 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16854 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16855 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16856 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16857 # icc doesn't choke on unknown options, it will just issue warnings
16858 # or remarks (even with -Werror). So we grep stderr for any message
16859 # that says an option was ignored or not supported.
16860 # When given -MP, icc 7.0 and 7.1 complain thusly:
16861 # icc: Command line warning: ignoring option '-M'; no argument required
16862 # The diagnosis changed in icc 8.0:
16863 # icc: Command line remark: option '-MP' not supported
16864 if (grep 'ignoring option' conftest.err ||
16865 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16866 am_cv_CC_dependencies_compiler_type=$depmode
16867 break
16868 fi
16869 fi
16870 done
16871
16872 cd ..
16873 rm -rf conftest.dir
16874 else
16875 am_cv_CC_dependencies_compiler_type=none
16876 fi
16877
16878 fi
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
16880 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
16881 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
16882
16883 if
16884 test "x$enable_dependency_tracking" != xno \
16885 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
16886 am__fastdepCC_TRUE=
16887 am__fastdepCC_FALSE='#'
16888 else
16889 am__fastdepCC_TRUE='#'
16890 am__fastdepCC_FALSE=
16891 fi
16892
16893
16894 depcc="$CXX" am_compiler_list=
16895
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16897 $as_echo_n "checking dependency style of $depcc... " >&6; }
16898 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16902 # We make a subdir and do the tests there. Otherwise we can end up
16903 # making bogus files that we don't know about and never remove. For
16904 # instance it was reported that on HP-UX the gcc test will end up
16905 # making a dummy file named 'D' -- because '-MD' means "put the output
16906 # in D".
16907 rm -rf conftest.dir
16908 mkdir conftest.dir
16909 # Copy depcomp to subdir because otherwise we won't find it if we're
16910 # using a relative directory.
16911 cp "$am_depcomp" conftest.dir
16912 cd conftest.dir
16913 # We will build objects and dependencies in a subdirectory because
16914 # it helps to detect inapplicable dependency modes. For instance
16915 # both Tru64's cc and ICC support -MD to output dependencies as a
16916 # side effect of compilation, but ICC will put the dependencies in
16917 # the current directory while Tru64 will put them in the object
16918 # directory.
16919 mkdir sub
16920
16921 am_cv_CXX_dependencies_compiler_type=none
16922 if test "$am_compiler_list" = ""; then
16923 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16924 fi
16925 am__universal=false
16926 case " $depcc " in #(
16927 *\ -arch\ *\ -arch\ *) am__universal=true ;;
16928 esac
16929
16930 for depmode in $am_compiler_list; do
16931 # Setup a source with many dependencies, because some compilers
16932 # like to wrap large dependency lists on column 80 (with \), and
16933 # we should not choose a depcomp mode which is confused by this.
16934 #
16935 # We need to recreate these files for each test, as the compiler may
16936 # overwrite some of them when testing with obscure command lines.
16937 # This happens at least with the AIX C compiler.
16938 : > sub/conftest.c
16939 for i in 1 2 3 4 5 6; do
16940 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16941 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
16942 # Solaris 10 /bin/sh.
16943 echo '/* dummy */' > sub/conftst$i.h
16944 done
16945 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16946
16947 # We check with '-c' and '-o' for the sake of the "dashmstdout"
16948 # mode. It turns out that the SunPro C++ compiler does not properly
16949 # handle '-M -o', and we need to detect this. Also, some Intel
16950 # versions had trouble with output in subdirs.
16951 am__obj=sub/conftest.${OBJEXT-o}
16952 am__minus_obj="-o $am__obj"
16953 case $depmode in
16954 gcc)
16955 # This depmode causes a compiler race in universal mode.
16956 test "$am__universal" = false || continue
16957 ;;
16958 nosideeffect)
16959 # After this tag, mechanisms are not by side-effect, so they'll
16960 # only be used when explicitly requested.
16961 if test "x$enable_dependency_tracking" = xyes; then
16962 continue
16963 else
16964 break
16965 fi
16966 ;;
16967 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
16968 # This compiler won't grok '-c -o', but also, the minuso test has
16969 # not run yet. These depmodes are late enough in the game, and
16970 # so weak that their functioning should not be impacted.
16971 am__obj=conftest.${OBJEXT-o}
16972 am__minus_obj=
16973 ;;
16974 none) break ;;
16975 esac
16976 if depmode=$depmode \
16977 source=sub/conftest.c object=$am__obj \
16978 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16979 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16980 >/dev/null 2>conftest.err &&
16981 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16982 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16983 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16984 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16985 # icc doesn't choke on unknown options, it will just issue warnings
16986 # or remarks (even with -Werror). So we grep stderr for any message
16987 # that says an option was ignored or not supported.
16988 # When given -MP, icc 7.0 and 7.1 complain thusly:
16989 # icc: Command line warning: ignoring option '-M'; no argument required
16990 # The diagnosis changed in icc 8.0:
16991 # icc: Command line remark: option '-MP' not supported
16992 if (grep 'ignoring option' conftest.err ||
16993 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16994 am_cv_CXX_dependencies_compiler_type=$depmode
16995 break
16996 fi
16997 fi
16998 done
16999
17000 cd ..
17001 rm -rf conftest.dir
17002 else
17003 am_cv_CXX_dependencies_compiler_type=none
17004 fi
17005
17006 fi
17007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
17008 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
17009 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
17010
17011 if
17012 test "x$enable_dependency_tracking" != xno \
17013 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
17014 am__fastdepCXX_TRUE=
17015 am__fastdepCXX_FALSE='#'
17016 else
17017 am__fastdepCXX_TRUE='#'
17018 am__fastdepCXX_FALSE=
17019 fi
17020
17021
17022
17023 # POSIX will say in a future version that running "rm -f" with no argument
17024 # is OK; and we want to be able to make that assumption in our Makefile
17025 # recipes. So use an aggressive probe to check that the usage we want is
17026 # actually supported "in the wild" to an acceptable degree.
17027 # See automake bug#10828.
17028 # To make any issue more visible, cause the running configure to be aborted
17029 # by default if the 'rm' program in use doesn't match our expectations; the
17030 # user can still override this though.
17031 if rm -f && rm -fr && rm -rf; then : OK; else
17032 cat >&2 <<'END'
17033 Oops!
17034
17035 Your 'rm' program seems unable to run without file operands specified
17036 on the command line, even when the '-f' option is present. This is contrary
17037 to the behaviour of most rm programs out there, and not conforming with
17038 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
17039
17040 Please tell bug-automake@gnu.org about your system, including the value
17041 of your $PATH and any error possibly output before this message. This
17042 can help us improve future automake versions.
17043
17044 END
17045 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
17046 echo 'Configuration will proceed anyway, since you have set the' >&2
17047 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
17048 echo >&2
17049 else
17050 cat >&2 <<'END'
17051 Aborting the configuration process, to ensure you take notice of the issue.
17052
17053 You can download and install GNU coreutils to get an 'rm' implementation
17054 that behaves properly: <http://www.gnu.org/software/coreutils/>.
17055
17056 If you want to complete the configuration process using your problematic
17057 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
17058 to "yes", and re-run configure.
17059
17060 END
17061 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
17062 fi
17063 fi
17064
17065
17066 CFLAGS="$CFLAGS -std=c99"
17067 CXXFLAGS="$CXXFLAGS -Werror=return-type -Werror=unused-result -Werror=reorder"
17068 ax_cxx_compile_cxx11_required=true
17069 ac_ext=cpp
17070 ac_cpp='$CXXCPP $CPPFLAGS'
17071 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17072 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17073 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17074 ac_success=no
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
17076 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
17077 if ${ax_cv_cxx_compile_cxx11+:} false; then :
17078 $as_echo_n "(cached) " >&6
17079 else
17080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17081 /* end confdefs.h. */
17082
17083 template <typename T>
17084 struct check
17085 {
17086 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17087 };
17088
17089 struct Base {
17090 virtual void f() {}
17091 };
17092 struct Child : public Base {
17093 virtual void f() {} // DiFa: override {} # override not supported in gcc 4.6
17094 };
17095
17096 typedef check<check<bool>> right_angle_brackets;
17097
17098 int a;
17099 decltype(a) b;
17100
17101 typedef check<int> check_type;
17102 check_type c;
17103 check_type&& cr = static_cast<check_type&&>(c);
17104
17105 auto d = a;
17106 auto l = [](){};
17107
17108 _ACEOF
17109 if ac_fn_cxx_try_compile "$LINENO"; then :
17110 ax_cv_cxx_compile_cxx11=yes
17111 else
17112 ax_cv_cxx_compile_cxx11=no
17113 fi
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115 fi
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
17117 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
17118 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
17119 ac_success=yes
17120 fi
17121
17122 if test x$ac_success = xno; then
17123 for switch in -std=gnu++11 -std=gnu++0x; do
17124 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17126 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17127 if eval \${$cachevar+:} false; then :
17128 $as_echo_n "(cached) " >&6
17129 else
17130 ac_save_CXXFLAGS="$CXXFLAGS"
17131 CXXFLAGS="$CXXFLAGS $switch"
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17134
17135 template <typename T>
17136 struct check
17137 {
17138 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17139 };
17140
17141 struct Base {
17142 virtual void f() {}
17143 };
17144 struct Child : public Base {
17145 virtual void f() {} // DiFa: override {} # override not supported in gcc 4.6
17146 };
17147
17148 typedef check<check<bool>> right_angle_brackets;
17149
17150 int a;
17151 decltype(a) b;
17152
17153 typedef check<int> check_type;
17154 check_type c;
17155 check_type&& cr = static_cast<check_type&&>(c);
17156
17157 auto d = a;
17158 auto l = [](){};
17159
17160 _ACEOF
17161 if ac_fn_cxx_try_compile "$LINENO"; then :
17162 eval $cachevar=yes
17163 else
17164 eval $cachevar=no
17165 fi
17166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17167 CXXFLAGS="$ac_save_CXXFLAGS"
17168 fi
17169 eval ac_res=\$$cachevar
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17171 $as_echo "$ac_res" >&6; }
17172 if eval test x\$$cachevar = xyes; then
17173 CXXFLAGS="$CXXFLAGS $switch"
17174 ac_success=yes
17175 break
17176 fi
17177 done
17178 fi
17179
17180 if test x$ac_success = xno; then
17181 for switch in -std=c++11 -std=c++0x; do
17182 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
17184 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
17185 if eval \${$cachevar+:} false; then :
17186 $as_echo_n "(cached) " >&6
17187 else
17188 ac_save_CXXFLAGS="$CXXFLAGS"
17189 CXXFLAGS="$CXXFLAGS $switch"
17190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17191 /* end confdefs.h. */
17192
17193 template <typename T>
17194 struct check
17195 {
17196 static_assert(sizeof(int) <= sizeof(T), "not big enough");
17197 };
17198
17199 struct Base {
17200 virtual void f() {}
17201 };
17202 struct Child : public Base {
17203 virtual void f() {} // DiFa: override {} # override not supported in gcc 4.6
17204 };
17205
17206 typedef check<check<bool>> right_angle_brackets;
17207
17208 int a;
17209 decltype(a) b;
17210
17211 typedef check<int> check_type;
17212 check_type c;
17213 check_type&& cr = static_cast<check_type&&>(c);
17214
17215 auto d = a;
17216 auto l = [](){};
17217
17218 _ACEOF
17219 if ac_fn_cxx_try_compile "$LINENO"; then :
17220 eval $cachevar=yes
17221 else
17222 eval $cachevar=no
17223 fi
17224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17225 CXXFLAGS="$ac_save_CXXFLAGS"
17226 fi
17227 eval ac_res=\$$cachevar
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17229 $as_echo "$ac_res" >&6; }
17230 if eval test x\$$cachevar = xyes; then
17231 CXXFLAGS="$CXXFLAGS $switch"
17232 ac_success=yes
17233 break
17234 fi
17235 done
17236 fi
17237 ac_ext=c
17238 ac_cpp='$CPP $CPPFLAGS'
17239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17242
17243 if test x$ax_cxx_compile_cxx11_required = xtrue; then
17244 if test x$ac_success = xno; then
17245 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
17246 fi
17247 else
17248 if test x$ac_success = xno; then
17249 HAVE_CXX11=0
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
17251 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
17252 else
17253 HAVE_CXX11=1
17254
17255 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
17256
17257 fi
17258
17259
17260 fi
17261
17262
17263 if test "x$GCC" = "xyes"; then
17264 case " $CFLAGS " in
17265 *[\ \ ]-Wall[\ \ ]*) ;;
17266 *) CFLAGS="$CFLAGS -Wall" ;;
17267 esac
17268 fi
17269
17270 HAVE_VISIBILITY=0
17271 if test "x$HAVE_VISIBILITY" != "x0"; then
17272 HAVE_VISIBILITY_TRUE=
17273 HAVE_VISIBILITY_FALSE='#'
17274 else
17275 HAVE_VISIBILITY_TRUE='#'
17276 HAVE_VISIBILITY_FALSE=
17277 fi
17278
17279
17280 # Checks for header files.
17281 for ac_header in stdint.h stdlib.h string.h malloc.h signal.h setjmp.h stddef.h sys/time.h
17282 do :
17283 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17284 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17285 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
17286 cat >>confdefs.h <<_ACEOF
17287 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17288 _ACEOF
17289
17290 fi
17291
17292 done
17293
17294
17295 ac_ext=cpp
17296 ac_cpp='$CXXCPP $CPPFLAGS'
17297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17300
17301 OLD_CPPFLAGS="$CPPFLAGS"
17302 CPPFLAGS="$CXXFLAGS"
17303
17304 for ac_header in cstdint
17305 do :
17306 ac_fn_cxx_check_header_mongrel "$LINENO" "cstdint" "ac_cv_header_cstdint" "$ac_includes_default"
17307 if test "x$ac_cv_header_cstdint" = xyes; then :
17308 cat >>confdefs.h <<_ACEOF
17309 #define HAVE_CSTDINT 1
17310 _ACEOF
17311
17312 fi
17313
17314 done
17315
17316 CPPFLAGS="$OLD_CPPFLAGS"
17317 ac_ext=c
17318 ac_cpp='$CPP $CPPFLAGS'
17319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17322
17323
17324 # Checks for typedefs, structures, and compiler characteristics.
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17326 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
17327 if ${ac_cv_header_stdbool_h+:} false; then :
17328 $as_echo_n "(cached) " >&6
17329 else
17330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17331 /* end confdefs.h. */
17332
17333 #include <stdbool.h>
17334 #ifndef bool
17335 "error: bool is not defined"
17336 #endif
17337 #ifndef false
17338 "error: false is not defined"
17339 #endif
17340 #if false
17341 "error: false is not 0"
17342 #endif
17343 #ifndef true
17344 "error: true is not defined"
17345 #endif
17346 #if true != 1
17347 "error: true is not 1"
17348 #endif
17349 #ifndef __bool_true_false_are_defined
17350 "error: __bool_true_false_are_defined is not defined"
17351 #endif
17352
17353 struct s { _Bool s: 1; _Bool t; } s;
17354
17355 char a[true == 1 ? 1 : -1];
17356 char b[false == 0 ? 1 : -1];
17357 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17358 char d[(bool) 0.5 == true ? 1 : -1];
17359 /* See body of main program for 'e'. */
17360 char f[(_Bool) 0.0 == false ? 1 : -1];
17361 char g[true];
17362 char h[sizeof (_Bool)];
17363 char i[sizeof s.t];
17364 enum { j = false, k = true, l = false * true, m = true * 256 };
17365 /* The following fails for
17366 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17367 _Bool n[m];
17368 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17369 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17370 /* Catch a bug in an HP-UX C compiler. See
17371 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17372 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
17373 */
17374 _Bool q = true;
17375 _Bool *pq = &q;
17376
17377 int
17378 main ()
17379 {
17380
17381 bool e = &s;
17382 *pq |= q;
17383 *pq |= ! q;
17384 /* Refer to every declared value, to avoid compiler optimizations. */
17385 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17386 + !m + !n + !o + !p + !q + !pq);
17387
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_compile "$LINENO"; then :
17393 ac_cv_header_stdbool_h=yes
17394 else
17395 ac_cv_header_stdbool_h=no
17396 fi
17397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17398 fi
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17400 $as_echo "$ac_cv_header_stdbool_h" >&6; }
17401 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17402 if test "x$ac_cv_type__Bool" = xyes; then :
17403
17404 cat >>confdefs.h <<_ACEOF
17405 #define HAVE__BOOL 1
17406 _ACEOF
17407
17408
17409 fi
17410
17411
17412 if test $ac_cv_header_stdbool_h = yes; then
17413
17414 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
17415
17416 fi
17417
17418 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17419 if test "x$ac_cv_type_size_t" = xyes; then :
17420
17421 else
17422
17423 cat >>confdefs.h <<_ACEOF
17424 #define size_t unsigned int
17425 _ACEOF
17426
17427 fi
17428
17429 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
17430 case $ac_cv_c_int8_t in #(
17431 no|yes) ;; #(
17432 *)
17433
17434 cat >>confdefs.h <<_ACEOF
17435 #define int8_t $ac_cv_c_int8_t
17436 _ACEOF
17437 ;;
17438 esac
17439
17440 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
17441 case $ac_cv_c_int16_t in #(
17442 no|yes) ;; #(
17443 *)
17444
17445 cat >>confdefs.h <<_ACEOF
17446 #define int16_t $ac_cv_c_int16_t
17447 _ACEOF
17448 ;;
17449 esac
17450
17451 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
17452 case $ac_cv_c_int32_t in #(
17453 no|yes) ;; #(
17454 *)
17455
17456 cat >>confdefs.h <<_ACEOF
17457 #define int32_t $ac_cv_c_int32_t
17458 _ACEOF
17459 ;;
17460 esac
17461
17462 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
17463 case $ac_cv_c_int64_t in #(
17464 no|yes) ;; #(
17465 *)
17466
17467 cat >>confdefs.h <<_ACEOF
17468 #define int64_t $ac_cv_c_int64_t
17469 _ACEOF
17470 ;;
17471 esac
17472
17473 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
17474 case $ac_cv_c_uint8_t in #(
17475 no|yes) ;; #(
17476 *)
17477
17478 $as_echo "#define _UINT8_T 1" >>confdefs.h
17479
17480
17481 cat >>confdefs.h <<_ACEOF
17482 #define uint8_t $ac_cv_c_uint8_t
17483 _ACEOF
17484 ;;
17485 esac
17486
17487 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
17488 case $ac_cv_c_uint16_t in #(
17489 no|yes) ;; #(
17490 *)
17491
17492
17493 cat >>confdefs.h <<_ACEOF
17494 #define uint16_t $ac_cv_c_uint16_t
17495 _ACEOF
17496 ;;
17497 esac
17498
17499 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17500 case $ac_cv_c_uint32_t in #(
17501 no|yes) ;; #(
17502 *)
17503
17504 $as_echo "#define _UINT32_T 1" >>confdefs.h
17505
17506
17507 cat >>confdefs.h <<_ACEOF
17508 #define uint32_t $ac_cv_c_uint32_t
17509 _ACEOF
17510 ;;
17511 esac
17512
17513 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
17514 case $ac_cv_c_uint64_t in #(
17515 no|yes) ;; #(
17516 *)
17517
17518 $as_echo "#define _UINT64_T 1" >>confdefs.h
17519
17520
17521 cat >>confdefs.h <<_ACEOF
17522 #define uint64_t $ac_cv_c_uint64_t
17523 _ACEOF
17524 ;;
17525 esac
17526
17527 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17528 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17529
17530 cat >>confdefs.h <<_ACEOF
17531 #define HAVE_PTRDIFF_T 1
17532 _ACEOF
17533
17534
17535 fi
17536
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17538 $as_echo_n "checking for inline... " >&6; }
17539 if ${ac_cv_c_inline+:} false; then :
17540 $as_echo_n "(cached) " >&6
17541 else
17542 ac_cv_c_inline=no
17543 for ac_kw in inline __inline__ __inline; do
17544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17545 /* end confdefs.h. */
17546 #ifndef __cplusplus
17547 typedef int foo_t;
17548 static $ac_kw foo_t static_foo () {return 0; }
17549 $ac_kw foo_t foo () {return 0; }
17550 #endif
17551
17552 _ACEOF
17553 if ac_fn_c_try_compile "$LINENO"; then :
17554 ac_cv_c_inline=$ac_kw
17555 fi
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557 test "$ac_cv_c_inline" != no && break
17558 done
17559
17560 fi
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17562 $as_echo "$ac_cv_c_inline" >&6; }
17563
17564 case $ac_cv_c_inline in
17565 inline | yes) ;;
17566 *)
17567 case $ac_cv_c_inline in
17568 no) ac_val=;;
17569 *) ac_val=$ac_cv_c_inline;;
17570 esac
17571 cat >>confdefs.h <<_ACEOF
17572 #ifndef __cplusplus
17573 #define inline $ac_val
17574 #endif
17575 _ACEOF
17576 ;;
17577 esac
17578
17579
17580 # Checks for library functions.
17581 for ac_func in malloc memmove memset __malloc_hook memalign posix_memalign __mingw_aligned_malloc __mingw_aligned_free
17582 do :
17583 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17584 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17585 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17586 cat >>confdefs.h <<_ACEOF
17587 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17588 _ACEOF
17589
17590 fi
17591 done
17592
17593
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
17595 $as_echo_n "checking for library containing pow... " >&6; }
17596 if ${ac_cv_search_pow+:} false; then :
17597 $as_echo_n "(cached) " >&6
17598 else
17599 ac_func_search_save_LIBS=$LIBS
17600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17601 /* end confdefs.h. */
17602
17603 /* Override any GCC internal prototype to avoid an error.
17604 Use char because int might match the return type of a GCC
17605 builtin and then its argument prototype would still apply. */
17606 #ifdef __cplusplus
17607 extern "C"
17608 #endif
17609 char pow ();
17610 int
17611 main ()
17612 {
17613 return pow ();
17614 ;
17615 return 0;
17616 }
17617 _ACEOF
17618 for ac_lib in '' m; do
17619 if test -z "$ac_lib"; then
17620 ac_res="none required"
17621 else
17622 ac_res=-l$ac_lib
17623 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17624 fi
17625 if ac_fn_c_try_link "$LINENO"; then :
17626 ac_cv_search_pow=$ac_res
17627 fi
17628 rm -f core conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext
17630 if ${ac_cv_search_pow+:} false; then :
17631 break
17632 fi
17633 done
17634 if ${ac_cv_search_pow+:} false; then :
17635
17636 else
17637 ac_cv_search_pow=no
17638 fi
17639 rm conftest.$ac_ext
17640 LIBS=$ac_func_search_save_LIBS
17641 fi
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
17643 $as_echo "$ac_cv_search_pow" >&6; }
17644 ac_res=$ac_cv_search_pow
17645 if test "$ac_res" != no; then :
17646 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17647
17648 fi
17649
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqrt" >&5
17651 $as_echo_n "checking for library containing sqrt... " >&6; }
17652 if ${ac_cv_search_sqrt+:} false; then :
17653 $as_echo_n "(cached) " >&6
17654 else
17655 ac_func_search_save_LIBS=$LIBS
17656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17657 /* end confdefs.h. */
17658
17659 /* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17662 #ifdef __cplusplus
17663 extern "C"
17664 #endif
17665 char sqrt ();
17666 int
17667 main ()
17668 {
17669 return sqrt ();
17670 ;
17671 return 0;
17672 }
17673 _ACEOF
17674 for ac_lib in '' m; do
17675 if test -z "$ac_lib"; then
17676 ac_res="none required"
17677 else
17678 ac_res=-l$ac_lib
17679 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17680 fi
17681 if ac_fn_c_try_link "$LINENO"; then :
17682 ac_cv_search_sqrt=$ac_res
17683 fi
17684 rm -f core conftest.err conftest.$ac_objext \
17685 conftest$ac_exeext
17686 if ${ac_cv_search_sqrt+:} false; then :
17687 break
17688 fi
17689 done
17690 if ${ac_cv_search_sqrt+:} false; then :
17691
17692 else
17693 ac_cv_search_sqrt=no
17694 fi
17695 rm conftest.$ac_ext
17696 LIBS=$ac_func_search_save_LIBS
17697 fi
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqrt" >&5
17699 $as_echo "$ac_cv_search_sqrt" >&6; }
17700 ac_res=$ac_cv_search_sqrt
17701 if test "$ac_res" != no; then :
17702 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17703
17704 fi
17705
17706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
17707 $as_echo_n "checking for library containing pthread_create... " >&6; }
17708 if ${ac_cv_search_pthread_create+:} false; then :
17709 $as_echo_n "(cached) " >&6
17710 else
17711 ac_func_search_save_LIBS=$LIBS
17712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17713 /* end confdefs.h. */
17714
17715 /* Override any GCC internal prototype to avoid an error.
17716 Use char because int might match the return type of a GCC
17717 builtin and then its argument prototype would still apply. */
17718 #ifdef __cplusplus
17719 extern "C"
17720 #endif
17721 char pthread_create ();
17722 int
17723 main ()
17724 {
17725 return pthread_create ();
17726 ;
17727 return 0;
17728 }
17729 _ACEOF
17730 for ac_lib in '' pthread; do
17731 if test -z "$ac_lib"; then
17732 ac_res="none required"
17733 else
17734 ac_res=-l$ac_lib
17735 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17736 fi
17737 if ac_fn_c_try_link "$LINENO"; then :
17738 ac_cv_search_pthread_create=$ac_res
17739 fi
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext
17742 if ${ac_cv_search_pthread_create+:} false; then :
17743 break
17744 fi
17745 done
17746 if ${ac_cv_search_pthread_create+:} false; then :
17747
17748 else
17749 ac_cv_search_pthread_create=no
17750 fi
17751 rm conftest.$ac_ext
17752 LIBS=$ac_func_search_save_LIBS
17753 fi
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
17755 $as_echo "$ac_cv_search_pthread_create" >&6; }
17756 ac_res=$ac_cv_search_pthread_create
17757 if test "$ac_res" != no; then :
17758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17759
17760 fi
17761
17762
17763 for ac_func in gettimeofday
17764 do :
17765 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
17766 if test "x$ac_cv_func_gettimeofday" = xyes; then :
17767 cat >>confdefs.h <<_ACEOF
17768 #define HAVE_GETTIMEOFDAY 1
17769 _ACEOF
17770
17771 fi
17772 done
17773
17774 for ac_func in pow sqrt
17775 do :
17776 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17777 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17778 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17779 cat >>confdefs.h <<_ACEOF
17780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17781 _ACEOF
17782
17783 fi
17784 done
17785
17786 for ac_func in strchr strrchr
17787 do :
17788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17789 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17790 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17791 cat >>confdefs.h <<_ACEOF
17792 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17793 _ACEOF
17794
17795 fi
17796 done
17797
17798
17799 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
17800 # for constant arguments. Useless!
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
17802 $as_echo_n "checking for working alloca.h... " >&6; }
17803 if ${ac_cv_working_alloca_h+:} false; then :
17804 $as_echo_n "(cached) " >&6
17805 else
17806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17807 /* end confdefs.h. */
17808 #include <alloca.h>
17809 int
17810 main ()
17811 {
17812 char *p = (char *) alloca (2 * sizeof (int));
17813 if (p) return 0;
17814 ;
17815 return 0;
17816 }
17817 _ACEOF
17818 if ac_fn_c_try_link "$LINENO"; then :
17819 ac_cv_working_alloca_h=yes
17820 else
17821 ac_cv_working_alloca_h=no
17822 fi
17823 rm -f core conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17825 fi
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
17827 $as_echo "$ac_cv_working_alloca_h" >&6; }
17828 if test $ac_cv_working_alloca_h = yes; then
17829
17830 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
17831
17832 fi
17833
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
17835 $as_echo_n "checking for alloca... " >&6; }
17836 if ${ac_cv_func_alloca_works+:} false; then :
17837 $as_echo_n "(cached) " >&6
17838 else
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17841 #ifdef __GNUC__
17842 # define alloca __builtin_alloca
17843 #else
17844 # ifdef _MSC_VER
17845 # include <malloc.h>
17846 # define alloca _alloca
17847 # else
17848 # ifdef HAVE_ALLOCA_H
17849 # include <alloca.h>
17850 # else
17851 # ifdef _AIX
17852 #pragma alloca
17853 # else
17854 # ifndef alloca /* predefined by HP cc +Olibcalls */
17855 void *alloca (size_t);
17856 # endif
17857 # endif
17858 # endif
17859 # endif
17860 #endif
17861
17862 int
17863 main ()
17864 {
17865 char *p = (char *) alloca (1);
17866 if (p) return 0;
17867 ;
17868 return 0;
17869 }
17870 _ACEOF
17871 if ac_fn_c_try_link "$LINENO"; then :
17872 ac_cv_func_alloca_works=yes
17873 else
17874 ac_cv_func_alloca_works=no
17875 fi
17876 rm -f core conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17878 fi
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
17880 $as_echo "$ac_cv_func_alloca_works" >&6; }
17881
17882 if test $ac_cv_func_alloca_works = yes; then
17883
17884 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
17885
17886 else
17887 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
17888 # that cause trouble. Some versions do not even contain alloca or
17889 # contain a buggy version. If you still want to use their alloca,
17890 # use ar to extract alloca.o from them instead of compiling alloca.c.
17891
17892 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
17893
17894 $as_echo "#define C_ALLOCA 1" >>confdefs.h
17895
17896
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
17898 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
17899 if ${ac_cv_os_cray+:} false; then :
17900 $as_echo_n "(cached) " >&6
17901 else
17902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h. */
17904 #if defined CRAY && ! defined CRAY2
17905 webecray
17906 #else
17907 wenotbecray
17908 #endif
17909
17910 _ACEOF
17911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17912 $EGREP "webecray" >/dev/null 2>&1; then :
17913 ac_cv_os_cray=yes
17914 else
17915 ac_cv_os_cray=no
17916 fi
17917 rm -f conftest*
17918
17919 fi
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
17921 $as_echo "$ac_cv_os_cray" >&6; }
17922 if test $ac_cv_os_cray = yes; then
17923 for ac_func in _getb67 GETB67 getb67; do
17924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17925 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17926 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17927
17928 cat >>confdefs.h <<_ACEOF
17929 #define CRAY_STACKSEG_END $ac_func
17930 _ACEOF
17931
17932 break
17933 fi
17934
17935 done
17936 fi
17937
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
17939 $as_echo_n "checking stack direction for C alloca... " >&6; }
17940 if ${ac_cv_c_stack_direction+:} false; then :
17941 $as_echo_n "(cached) " >&6
17942 else
17943 if test "$cross_compiling" = yes; then :
17944 ac_cv_c_stack_direction=0
17945 else
17946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17947 /* end confdefs.h. */
17948 $ac_includes_default
17949 int
17950 find_stack_direction (int *addr, int depth)
17951 {
17952 int dir, dummy = 0;
17953 if (! addr)
17954 addr = &dummy;
17955 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
17956 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
17957 return dir + dummy;
17958 }
17959
17960 int
17961 main (int argc, char **argv)
17962 {
17963 return find_stack_direction (0, argc + !argv + 20) < 0;
17964 }
17965 _ACEOF
17966 if ac_fn_c_try_run "$LINENO"; then :
17967 ac_cv_c_stack_direction=1
17968 else
17969 ac_cv_c_stack_direction=-1
17970 fi
17971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17972 conftest.$ac_objext conftest.beam conftest.$ac_ext
17973 fi
17974
17975 fi
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
17977 $as_echo "$ac_cv_c_stack_direction" >&6; }
17978 cat >>confdefs.h <<_ACEOF
17979 #define STACK_DIRECTION $ac_cv_c_stack_direction
17980 _ACEOF
17981
17982
17983 fi
17984
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
17986 $as_echo_n "checking for error_at_line... " >&6; }
17987 if ${ac_cv_lib_error_at_line+:} false; then :
17988 $as_echo_n "(cached) " >&6
17989 else
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 #include <error.h>
17993 int
17994 main ()
17995 {
17996 error_at_line (0, 0, "", 0, "an error occurred");
17997 ;
17998 return 0;
17999 }
18000 _ACEOF
18001 if ac_fn_c_try_link "$LINENO"; then :
18002 ac_cv_lib_error_at_line=yes
18003 else
18004 ac_cv_lib_error_at_line=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 fi
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
18010 $as_echo "$ac_cv_lib_error_at_line" >&6; }
18011 if test $ac_cv_lib_error_at_line = no; then
18012 case " $LIBOBJS " in
18013 *" error.$ac_objext "* ) ;;
18014 *) LIBOBJS="$LIBOBJS error.$ac_objext"
18015 ;;
18016 esac
18017
18018 fi
18019
18020 # Checking for malloc breaks building on ARM for us. A similar issue is described
18021 # here: http://nerdland.net/unstumping-the-internet/malloc-has-not-been-declared/
18022 # AC_FUNC_MALLOC
18023 # AC_FUNC_REALLOC
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
18025 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
18026 if ${ac_cv_header_time+:} false; then :
18027 $as_echo_n "(cached) " >&6
18028 else
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18031 #include <sys/types.h>
18032 #include <sys/time.h>
18033 #include <time.h>
18034
18035 int
18036 main ()
18037 {
18038 if ((struct tm *) 0)
18039 return 0;
18040 ;
18041 return 0;
18042 }
18043 _ACEOF
18044 if ac_fn_c_try_compile "$LINENO"; then :
18045 ac_cv_header_time=yes
18046 else
18047 ac_cv_header_time=no
18048 fi
18049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18050 fi
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
18052 $as_echo "$ac_cv_header_time" >&6; }
18053 if test $ac_cv_header_time = yes; then
18054
18055 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
18056
18057 fi
18058
18059
18060
18061
18062 for ac_header in $ac_header_list
18063 do :
18064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18065 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18066 "
18067 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18068 cat >>confdefs.h <<_ACEOF
18069 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18070 _ACEOF
18071
18072 fi
18073
18074 done
18075
18076
18077
18078
18079
18080
18081
18082
18083 for ac_func in $ac_func_list
18084 do :
18085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18086 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18087 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18088 cat >>confdefs.h <<_ACEOF
18089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18090 _ACEOF
18091
18092 fi
18093 done
18094
18095
18096
18097
18098
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
18100 $as_echo_n "checking for working mktime... " >&6; }
18101 if ${ac_cv_func_working_mktime+:} false; then :
18102 $as_echo_n "(cached) " >&6
18103 else
18104 if test "$cross_compiling" = yes; then :
18105 ac_cv_func_working_mktime=no
18106 else
18107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18108 /* end confdefs.h. */
18109 /* Test program from Paul Eggert and Tony Leneis. */
18110 #ifdef TIME_WITH_SYS_TIME
18111 # include <sys/time.h>
18112 # include <time.h>
18113 #else
18114 # ifdef HAVE_SYS_TIME_H
18115 # include <sys/time.h>
18116 # else
18117 # include <time.h>
18118 # endif
18119 #endif
18120
18121 #include <limits.h>
18122 #include <stdlib.h>
18123
18124 #ifdef HAVE_UNISTD_H
18125 # include <unistd.h>
18126 #endif
18127
18128 #ifndef HAVE_ALARM
18129 # define alarm(X) /* empty */
18130 #endif
18131
18132 /* Work around redefinition to rpl_putenv by other config tests. */
18133 #undef putenv
18134
18135 static time_t time_t_max;
18136 static time_t time_t_min;
18137
18138 /* Values we'll use to set the TZ environment variable. */
18139 static const char *tz_strings[] = {
18140 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
18141 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
18142 };
18143 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
18144
18145 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
18146 Based on a problem report from Andreas Jaeger. */
18147 static int
18148 spring_forward_gap ()
18149 {
18150 /* glibc (up to about 1998-10-07) failed this test. */
18151 struct tm tm;
18152
18153 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18154 instead of "TZ=America/Vancouver" in order to detect the bug even
18155 on systems that don't support the Olson extension, or don't have the
18156 full zoneinfo tables installed. */
18157 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
18158
18159 tm.tm_year = 98;
18160 tm.tm_mon = 3;
18161 tm.tm_mday = 5;
18162 tm.tm_hour = 2;
18163 tm.tm_min = 0;
18164 tm.tm_sec = 0;
18165 tm.tm_isdst = -1;
18166 return mktime (&tm) != (time_t) -1;
18167 }
18168
18169 static int
18170 mktime_test1 (time_t now)
18171 {
18172 struct tm *lt;
18173 return ! (lt = localtime (&now)) || mktime (lt) == now;
18174 }
18175
18176 static int
18177 mktime_test (time_t now)
18178 {
18179 return (mktime_test1 (now)
18180 && mktime_test1 ((time_t) (time_t_max - now))
18181 && mktime_test1 ((time_t) (time_t_min + now)));
18182 }
18183
18184 static int
18185 irix_6_4_bug ()
18186 {
18187 /* Based on code from Ariel Faigon. */
18188 struct tm tm;
18189 tm.tm_year = 96;
18190 tm.tm_mon = 3;
18191 tm.tm_mday = 0;
18192 tm.tm_hour = 0;
18193 tm.tm_min = 0;
18194 tm.tm_sec = 0;
18195 tm.tm_isdst = -1;
18196 mktime (&tm);
18197 return tm.tm_mon == 2 && tm.tm_mday == 31;
18198 }
18199
18200 static int
18201 bigtime_test (int j)
18202 {
18203 struct tm tm;
18204 time_t now;
18205 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
18206 now = mktime (&tm);
18207 if (now != (time_t) -1)
18208 {
18209 struct tm *lt = localtime (&now);
18210 if (! (lt
18211 && lt->tm_year == tm.tm_year
18212 && lt->tm_mon == tm.tm_mon
18213 && lt->tm_mday == tm.tm_mday
18214 && lt->tm_hour == tm.tm_hour
18215 && lt->tm_min == tm.tm_min
18216 && lt->tm_sec == tm.tm_sec
18217 && lt->tm_yday == tm.tm_yday
18218 && lt->tm_wday == tm.tm_wday
18219 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
18220 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
18221 return 0;
18222 }
18223 return 1;
18224 }
18225
18226 static int
18227 year_2050_test ()
18228 {
18229 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
18230 ignoring leap seconds. */
18231 unsigned long int answer = 2527315200UL;
18232
18233 struct tm tm;
18234 time_t t;
18235 tm.tm_year = 2050 - 1900;
18236 tm.tm_mon = 2 - 1;
18237 tm.tm_mday = 1;
18238 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
18239 tm.tm_isdst = -1;
18240
18241 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
18242 instead of "TZ=America/Vancouver" in order to detect the bug even
18243 on systems that don't support the Olson extension, or don't have the
18244 full zoneinfo tables installed. */
18245 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
18246
18247 t = mktime (&tm);
18248
18249 /* Check that the result is either a failure, or close enough
18250 to the correct answer that we can assume the discrepancy is
18251 due to leap seconds. */
18252 return (t == (time_t) -1
18253 || (0 < t && answer - 120 <= t && t <= answer + 120));
18254 }
18255
18256 int
18257 main ()
18258 {
18259 time_t t, delta;
18260 int i, j;
18261
18262 /* This test makes some buggy mktime implementations loop.
18263 Give up after 60 seconds; a mktime slower than that
18264 isn't worth using anyway. */
18265 alarm (60);
18266
18267 for (;;)
18268 {
18269 t = (time_t_max << 1) + 1;
18270 if (t <= time_t_max)
18271 break;
18272 time_t_max = t;
18273 }
18274 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
18275
18276 delta = time_t_max / 997; /* a suitable prime number */
18277 for (i = 0; i < N_STRINGS; i++)
18278 {
18279 if (tz_strings[i])
18280 putenv ((char*) tz_strings[i]);
18281
18282 for (t = 0; t <= time_t_max - delta; t += delta)
18283 if (! mktime_test (t))
18284 return 1;
18285 if (! (mktime_test ((time_t) 1)
18286 && mktime_test ((time_t) (60 * 60))
18287 && mktime_test ((time_t) (60 * 60 * 24))))
18288 return 1;
18289
18290 for (j = 1; ; j <<= 1)
18291 if (! bigtime_test (j))
18292 return 1;
18293 else if (INT_MAX / 2 < j)
18294 break;
18295 if (! bigtime_test (INT_MAX))
18296 return 1;
18297 }
18298 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18299 }
18300 _ACEOF
18301 if ac_fn_c_try_run "$LINENO"; then :
18302 ac_cv_func_working_mktime=yes
18303 else
18304 ac_cv_func_working_mktime=no
18305 fi
18306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18307 conftest.$ac_objext conftest.beam conftest.$ac_ext
18308 fi
18309
18310 fi
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
18312 $as_echo "$ac_cv_func_working_mktime" >&6; }
18313 if test $ac_cv_func_working_mktime = no; then
18314 case " $LIBOBJS " in
18315 *" mktime.$ac_objext "* ) ;;
18316 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18317 ;;
18318 esac
18319
18320 fi
18321
18322
18323 if expr $host : '.*-mingw' >/dev/null 2>&1; then
18324 MINGW_TRUE=
18325 MINGW_FALSE='#'
18326 else
18327 MINGW_TRUE='#'
18328 MINGW_FALSE=
18329 fi
18330
18331
18332 # Check if "__STRICT_ANSI__" is required.
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if __STRICT_ANSI__ is required" >&5
18334 $as_echo_n "checking if __STRICT_ANSI__ is required... " >&6; }
18335 ac_ext=cpp
18336 ac_cpp='$CXXCPP $CPPFLAGS'
18337 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18338 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18339 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18340
18341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18342 /* end confdefs.h. */
18343
18344 #include <vector>
18345
18346 int
18347 main ()
18348 {
18349
18350 ;
18351 return 0;
18352 }
18353 _ACEOF
18354 if ac_fn_cxx_try_compile "$LINENO"; then :
18355 need_strict_ansi=no
18356 else
18357 need_strict_ansi=yes
18358 fi
18359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
18360 ac_ext=c
18361 ac_cpp='$CPP $CPPFLAGS'
18362 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18363 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18364 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18365
18366 if eval "test x$need_strict_ansi = xyes"; then
18367 CFLAGS="$CFLAGS -D__STRICT_ANSI__"
18368 CXXFLAGS="$CXXFLAGS -D__STRICT_ANSI__"
18369 fi
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $need_strict_ansi" >&5
18371 $as_echo "$need_strict_ansi" >&6; }
18372
18373 # Check if "std::shared_ptr" is "std::tr1::shared_ptr"
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::shared_ptr" >&5
18375 $as_echo_n "checking for std::shared_ptr... " >&6; }
18376 ac_ext=cpp
18377 ac_cpp='$CXXCPP $CPPFLAGS'
18378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18381
18382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18383 /* end confdefs.h. */
18384
18385 #include <memory>
18386
18387 int
18388 main ()
18389 {
18390
18391 class A {};
18392 std::shared_ptr<A> a;
18393
18394 ;
18395 return 0;
18396 }
18397 _ACEOF
18398 if ac_fn_cxx_try_compile "$LINENO"; then :
18399 has_std_shared_ptr=yes
18400 else
18401 has_std_shared_ptr=no
18402 fi
18403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_std_shared_ptr" >&5
18405 $as_echo "$has_std_shared_ptr" >&6; }
18406 if eval "test x$has_std_shared_ptr = xno"; then
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::tr1::shared_ptr" >&5
18408 $as_echo_n "checking for std::tr1::shared_ptr... " >&6; }
18409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18410 /* end confdefs.h. */
18411
18412 #include <tr1/memory>
18413
18414 int
18415 main ()
18416 {
18417
18418 class A {};
18419 std::tr1::shared_ptr<A> a;
18420
18421 ;
18422 return 0;
18423 }
18424 _ACEOF
18425 if ac_fn_cxx_try_compile "$LINENO"; then :
18426 has_std_tr1_shared_ptr=yes
18427 else
18428 has_std_tr1_shared_ptr=no
18429 fi
18430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_std_tr1_shared_ptr" >&5
18432 $as_echo "$has_std_tr1_shared_ptr" >&6; }
18433 if eval "test x$has_std_tr1_shared_ptr = xyes"; then
18434
18435 $as_echo "#define USE_STD_TR1_NAMESPACE 1" >>confdefs.h
18436
18437 fi
18438 fi
18439 ac_ext=c
18440 ac_cpp='$CPP $CPPFLAGS'
18441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18444
18445
18446 # Check if "std::move" is available (assume always available with clang)
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::move" >&5
18448 $as_echo_n "checking for std::move... " >&6; }
18449 ac_ext=cpp
18450 ac_cpp='$CXXCPP $CPPFLAGS'
18451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18454
18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18457
18458 #include <utility>
18459
18460 int
18461 main ()
18462 {
18463
18464 #if !defined(__clang__)
18465 class A {};
18466 A* a = new A();
18467 A* b = std::move(a);
18468 #endif
18469
18470 ;
18471 return 0;
18472 }
18473 _ACEOF
18474 if ac_fn_cxx_try_compile "$LINENO"; then :
18475 has_std_move=yes
18476 else
18477 has_std_move=no
18478 fi
18479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
18480 ac_ext=c
18481 ac_cpp='$CPP $CPPFLAGS'
18482 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18483 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18484 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18485
18486 if eval "test x$has_std_move = xno"; then
18487
18488 $as_echo "#define NEED_STD_MOVE_FALLBACK 1" >>confdefs.h
18489
18490 fi
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_std_move" >&5
18492 $as_echo "$has_std_move" >&6; }
18493
18494 # Check if "nullptr" is available
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nullptr" >&5
18496 $as_echo_n "checking for nullptr... " >&6; }
18497 ac_ext=cpp
18498 ac_cpp='$CXXCPP $CPPFLAGS'
18499 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18500 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18501 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18502
18503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18504 /* end confdefs.h. */
18505
18506
18507 int
18508 main ()
18509 {
18510
18511 class A {};
18512 A* a = nullptr;
18513
18514 ;
18515 return 0;
18516 }
18517 _ACEOF
18518 if ac_fn_cxx_try_compile "$LINENO"; then :
18519 has_nullptr=yes
18520 else
18521 has_nullptr=no
18522 fi
18523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
18524 ac_ext=c
18525 ac_cpp='$CPP $CPPFLAGS'
18526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18529
18530 if eval "test x$has_nullptr = xno"; then
18531
18532 $as_echo "#define NEED_NULLPTR_FALLBACK 1" >>confdefs.h
18533
18534 fi
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_nullptr" >&5
18536 $as_echo "$has_nullptr" >&6; }
18537
18538
18539
18540 # Check whether --enable-encoder was given.
18541 if test "${enable_encoder+set}" = set; then :
18542 enableval=$enable_encoder;
18543 fi
18544
18545 if eval "test x$enable_encoder = x" ; then enable_encoder=yes ; fi
18546
18547 if test x"$enable_encoder" = x"yes"; then
18548 ENABLE_ENCODER_TRUE=
18549 ENABLE_ENCODER_FALSE='#'
18550 else
18551 ENABLE_ENCODER_TRUE='#'
18552 ENABLE_ENCODER_FALSE=
18553 fi
18554
18555
18556
18557 # --- machine dependent optimizations ---
18558
18559 #AX_EXT
18560
18561 # Check whether --enable-sse was given.
18562 if test "${enable_sse+set}" = set; then :
18563 enableval=$enable_sse; disable_sse=yes
18564 else
18565 disable_sse=no
18566 fi
18567
18568
18569 if eval "test x$disable_sse != xyes"; then
18570 case $target_cpu in
18571 powerpc*)
18572 ;;
18573
18574 i[3456]86*|x86_64*|amd64*)
18575
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -msse4.1" >&5
18577 $as_echo_n "checking whether C compiler accepts -msse4.1... " >&6; }
18578 if ${ax_cv_check_cflags___msse4_1+:} false; then :
18579 $as_echo_n "(cached) " >&6
18580 else
18581
18582 ax_check_save_flags=$CFLAGS
18583 CFLAGS="$CFLAGS -msse4.1"
18584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18585 /* end confdefs.h. */
18586
18587 int
18588 main ()
18589 {
18590
18591 ;
18592 return 0;
18593 }
18594 _ACEOF
18595 if ac_fn_c_try_compile "$LINENO"; then :
18596 ax_cv_check_cflags___msse4_1=yes
18597 else
18598 ax_cv_check_cflags___msse4_1=no
18599 fi
18600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18601 CFLAGS=$ax_check_save_flags
18602 fi
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___msse4_1" >&5
18604 $as_echo "$ax_cv_check_cflags___msse4_1" >&6; }
18605 if test x"$ax_cv_check_cflags___msse4_1" = xyes; then :
18606 ax_cv_support_sse41_ext=yes
18607 else
18608 :
18609 fi
18610
18611 if test x"$ax_cv_support_sse41_ext" = x"yes"; then
18612 # SIMD_FLAGS="$SIMD_FLAGS -msse4.1"
18613
18614 $as_echo "#define HAVE_SSE4_1 1" >>confdefs.h
18615
18616 else
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your compiler does not support SSE4.1 instructions, can you try another compiler?" >&5
18618 $as_echo "$as_me: WARNING: Your compiler does not support SSE4.1 instructions, can you try another compiler?" >&2;}
18619 fi
18620 ;;
18621
18622 esac
18623 fi
18624 if test x"$ax_cv_support_sse41_ext" = x"yes"; then
18625 ENABLE_SSE_OPT_TRUE=
18626 ENABLE_SSE_OPT_FALSE='#'
18627 else
18628 ENABLE_SSE_OPT_TRUE='#'
18629 ENABLE_SSE_OPT_FALSE=
18630 fi
18631
18632
18633 # CFLAGS+=$SIMD_FLAGS
18634 # CFLAGS+=" -march=x86-64"
18635
18636 case $target_cpu in
18637 arm*)
18638 # Check whether --enable-arm was given.
18639 if test "${enable_arm+set}" = set; then :
18640 enableval=$enable_arm; disable_arm=yes
18641 else
18642 disable_arm=no
18643 fi
18644
18645
18646 if test x"$disable_arm" != x"yes"; then
18647
18648 $as_echo "#define HAVE_ARM 1" >>confdefs.h
18649
18650
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -mfpu=neon" >&5
18652 $as_echo_n "checking whether C compiler accepts -mfpu=neon... " >&6; }
18653 if ${ax_cv_check_cflags___mfpu_neon+:} false; then :
18654 $as_echo_n "(cached) " >&6
18655 else
18656
18657 ax_check_save_flags=$CFLAGS
18658 CFLAGS="$CFLAGS -mfpu=neon"
18659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18660 /* end confdefs.h. */
18661
18662 int
18663 main ()
18664 {
18665
18666 ;
18667 return 0;
18668 }
18669 _ACEOF
18670 if ac_fn_c_try_compile "$LINENO"; then :
18671 ax_cv_check_cflags___mfpu_neon=yes
18672 else
18673 ax_cv_check_cflags___mfpu_neon=no
18674 fi
18675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18676 CFLAGS=$ax_check_save_flags
18677 fi
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags___mfpu_neon" >&5
18679 $as_echo "$ax_cv_check_cflags___mfpu_neon" >&6; }
18680 if test x"$ax_cv_check_cflags___mfpu_neon" = xyes; then :
18681
18682
18683 $as_echo "#define HAVE_NEON 1" >>confdefs.h
18684
18685 ax_cv_support_neon_ext=yes
18686 else
18687 :
18688 fi
18689
18690
18691 # Check whether --enable-thumb was given.
18692 if test "${enable_thumb+set}" = set; then :
18693 enableval=$enable_thumb; enable_thumb=yes
18694 else
18695 enable_thumb=no
18696 fi
18697
18698 fi
18699 ;;
18700
18701 *)
18702 disable_arm=yes
18703 ;;
18704
18705 esac
18706
18707 if test x"$disable_arm" != x"yes"; then
18708 ENABLE_ARM_OPT_TRUE=
18709 ENABLE_ARM_OPT_FALSE='#'
18710 else
18711 ENABLE_ARM_OPT_TRUE='#'
18712 ENABLE_ARM_OPT_FALSE=
18713 fi
18714
18715 if test x"$ax_cv_support_neon_ext" = x"yes"; then
18716 ENABLE_NEON_OPT_TRUE=
18717 ENABLE_NEON_OPT_FALSE='#'
18718 else
18719 ENABLE_NEON_OPT_TRUE='#'
18720 ENABLE_NEON_OPT_FALSE=
18721 fi
18722
18723 if test x"$enable_thumb" != x"no"; then
18724 ENABLE_ARM_THUMB_TRUE=
18725 ENABLE_ARM_THUMB_FALSE='#'
18726 else
18727 ENABLE_ARM_THUMB_TRUE='#'
18728 ENABLE_ARM_THUMB_FALSE=
18729 fi
18730
18731
18732 # --- additional logging ---
18733
18734 # Check whether --enable-log-error was given.
18735 if test "${enable_log_error+set}" = set; then :
18736 enableval=$enable_log_error; enable_log_error=$enableval
18737 else
18738 enable_log_error=yes
18739 fi
18740
18741 if eval "test $enable_log_error = yes"; then
18742 CXXFLAGS="$CXXFLAGS -DDE265_LOG_ERROR"
18743 fi
18744
18745 # Check whether --enable-log-info was given.
18746 if test "${enable_log_info+set}" = set; then :
18747 enableval=$enable_log_info; enable_log_info=$enableval
18748 else
18749 enable_log_info=no
18750 fi
18751
18752 if eval "test $enable_log_info = yes"; then
18753 CXXFLAGS="$CXXFLAGS -DDE265_LOG_INFO"
18754 fi
18755
18756 # Check whether --enable-log-debug was given.
18757 if test "${enable_log_debug+set}" = set; then :
18758 enableval=$enable_log_debug; enable_log_debug=$enableval
18759 else
18760 enable_log_debug=no
18761 fi
18762
18763 if eval "test $enable_log_debug = yes"; then
18764 CXXFLAGS="$CXXFLAGS -DDE265_LOG_DEBUG"
18765 fi
18766
18767 # Check whether --enable-log-trace was given.
18768 if test "${enable_log_trace+set}" = set; then :
18769 enableval=$enable_log_trace; enable_log_trace=$enableval
18770 else
18771 enable_log_trace=no
18772 fi
18773
18774 if eval "test $enable_log_trace = yes"; then
18775 CXXFLAGS="$CXXFLAGS -DDE265_LOG_TRACE"
18776 fi
18777
18778
18779 # --- enable example programs ---
18780
18781 # Check whether --enable-dec265 was given.
18782 if test "${enable_dec265+set}" = set; then :
18783 enableval=$enable_dec265;
18784 fi
18785
18786 # Check whether --enable-sherlock265 was given.
18787 if test "${enable_sherlock265+set}" = set; then :
18788 enableval=$enable_sherlock265;
18789 fi
18790
18791
18792 if eval "test x$enable_dec265 = x" ; then enable_dec265=yes ; fi
18793 if eval "test x$enable_sherlock265 = x" ; then enable_sherlock265=yes ; fi
18794
18795 if eval "test x$enable_dec265 = xyes" || eval "test x$enable_sherlock265 = xyes" ; then
18796
18797
18798
18799
18800
18801
18802
18803 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18804 if test -n "$ac_tool_prefix"; then
18805 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18806 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18808 $as_echo_n "checking for $ac_word... " >&6; }
18809 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18810 $as_echo_n "(cached) " >&6
18811 else
18812 case $PKG_CONFIG in
18813 [\\/]* | ?:[\\/]*)
18814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18815 ;;
18816 *)
18817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18818 for as_dir in $PATH
18819 do
18820 IFS=$as_save_IFS
18821 test -z "$as_dir" && as_dir=.
18822 for ac_exec_ext in '' $ac_executable_extensions; do
18823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18826 break 2
18827 fi
18828 done
18829 done
18830 IFS=$as_save_IFS
18831
18832 ;;
18833 esac
18834 fi
18835 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18836 if test -n "$PKG_CONFIG"; then
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18838 $as_echo "$PKG_CONFIG" >&6; }
18839 else
18840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18841 $as_echo "no" >&6; }
18842 fi
18843
18844
18845 fi
18846 if test -z "$ac_cv_path_PKG_CONFIG"; then
18847 ac_pt_PKG_CONFIG=$PKG_CONFIG
18848 # Extract the first word of "pkg-config", so it can be a program name with args.
18849 set dummy pkg-config; ac_word=$2
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18851 $as_echo_n "checking for $ac_word... " >&6; }
18852 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18853 $as_echo_n "(cached) " >&6
18854 else
18855 case $ac_pt_PKG_CONFIG in
18856 [\\/]* | ?:[\\/]*)
18857 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18858 ;;
18859 *)
18860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18861 for as_dir in $PATH
18862 do
18863 IFS=$as_save_IFS
18864 test -z "$as_dir" && as_dir=.
18865 for ac_exec_ext in '' $ac_executable_extensions; do
18866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18867 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18869 break 2
18870 fi
18871 done
18872 done
18873 IFS=$as_save_IFS
18874
18875 ;;
18876 esac
18877 fi
18878 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18879 if test -n "$ac_pt_PKG_CONFIG"; then
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18881 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18882 else
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18884 $as_echo "no" >&6; }
18885 fi
18886
18887 if test "x$ac_pt_PKG_CONFIG" = x; then
18888 PKG_CONFIG=""
18889 else
18890 case $cross_compiling:$ac_tool_warned in
18891 yes:)
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18894 ac_tool_warned=yes ;;
18895 esac
18896 PKG_CONFIG=$ac_pt_PKG_CONFIG
18897 fi
18898 else
18899 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18900 fi
18901
18902 fi
18903 if test -n "$PKG_CONFIG"; then
18904 _pkg_min_version=0.9.0
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18906 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18907 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18909 $as_echo "yes" >&6; }
18910 else
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18912 $as_echo "no" >&6; }
18913 PKG_CONFIG=""
18914 fi
18915 fi
18916
18917 pkg_failed=no
18918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for VIDEOGFX" >&5
18919 $as_echo_n "checking for VIDEOGFX... " >&6; }
18920
18921 if test -n "$VIDEOGFX_CFLAGS"; then
18922 pkg_cv_VIDEOGFX_CFLAGS="$VIDEOGFX_CFLAGS"
18923 elif test -n "$PKG_CONFIG"; then
18924 if test -n "$PKG_CONFIG" && \
18925 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvideogfx\""; } >&5
18926 ($PKG_CONFIG --exists --print-errors "libvideogfx") 2>&5
18927 ac_status=$?
18928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18929 test $ac_status = 0; }; then
18930 pkg_cv_VIDEOGFX_CFLAGS=`$PKG_CONFIG --cflags "libvideogfx" 2>/dev/null`
18931 test "x$?" != "x0" && pkg_failed=yes
18932 else
18933 pkg_failed=yes
18934 fi
18935 else
18936 pkg_failed=untried
18937 fi
18938 if test -n "$VIDEOGFX_LIBS"; then
18939 pkg_cv_VIDEOGFX_LIBS="$VIDEOGFX_LIBS"
18940 elif test -n "$PKG_CONFIG"; then
18941 if test -n "$PKG_CONFIG" && \
18942 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libvideogfx\""; } >&5
18943 ($PKG_CONFIG --exists --print-errors "libvideogfx") 2>&5
18944 ac_status=$?
18945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18946 test $ac_status = 0; }; then
18947 pkg_cv_VIDEOGFX_LIBS=`$PKG_CONFIG --libs "libvideogfx" 2>/dev/null`
18948 test "x$?" != "x0" && pkg_failed=yes
18949 else
18950 pkg_failed=yes
18951 fi
18952 else
18953 pkg_failed=untried
18954 fi
18955
18956
18957
18958 if test $pkg_failed = yes; then
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18960 $as_echo "no" >&6; }
18961
18962 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18963 _pkg_short_errors_supported=yes
18964 else
18965 _pkg_short_errors_supported=no
18966 fi
18967 if test $_pkg_short_errors_supported = yes; then
18968 VIDEOGFX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libvideogfx" 2>&1`
18969 else
18970 VIDEOGFX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libvideogfx" 2>&1`
18971 fi
18972 # Put the nasty error message in config.log where it belongs
18973 echo "$VIDEOGFX_PKG_ERRORS" >&5
18974
18975 have_videogfx="no"
18976
18977 elif test $pkg_failed = untried; then
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18979 $as_echo "no" >&6; }
18980 have_videogfx="no"
18981
18982 else
18983 VIDEOGFX_CFLAGS=$pkg_cv_VIDEOGFX_CFLAGS
18984 VIDEOGFX_LIBS=$pkg_cv_VIDEOGFX_LIBS
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18986 $as_echo "yes" >&6; }
18987
18988 $as_echo "#define HAVE_VIDEOGFX 1" >>confdefs.h
18989
18990
18991
18992 have_videogfx="yes"
18993 fi
18994 fi
18995
18996 if eval "test x$enable_dec265 = xyes" ; then
18997
18998 pkg_failed=no
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL" >&5
19000 $as_echo_n "checking for SDL... " >&6; }
19001
19002 if test -n "$SDL_CFLAGS"; then
19003 pkg_cv_SDL_CFLAGS="$SDL_CFLAGS"
19004 elif test -n "$PKG_CONFIG"; then
19005 if test -n "$PKG_CONFIG" && \
19006 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
19007 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
19008 ac_status=$?
19009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19010 test $ac_status = 0; }; then
19011 pkg_cv_SDL_CFLAGS=`$PKG_CONFIG --cflags "sdl" 2>/dev/null`
19012 test "x$?" != "x0" && pkg_failed=yes
19013 else
19014 pkg_failed=yes
19015 fi
19016 else
19017 pkg_failed=untried
19018 fi
19019 if test -n "$SDL_LIBS"; then
19020 pkg_cv_SDL_LIBS="$SDL_LIBS"
19021 elif test -n "$PKG_CONFIG"; then
19022 if test -n "$PKG_CONFIG" && \
19023 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"sdl\""; } >&5
19024 ($PKG_CONFIG --exists --print-errors "sdl") 2>&5
19025 ac_status=$?
19026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19027 test $ac_status = 0; }; then
19028 pkg_cv_SDL_LIBS=`$PKG_CONFIG --libs "sdl" 2>/dev/null`
19029 test "x$?" != "x0" && pkg_failed=yes
19030 else
19031 pkg_failed=yes
19032 fi
19033 else
19034 pkg_failed=untried
19035 fi
19036
19037
19038
19039 if test $pkg_failed = yes; then
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19041 $as_echo "no" >&6; }
19042
19043 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19044 _pkg_short_errors_supported=yes
19045 else
19046 _pkg_short_errors_supported=no
19047 fi
19048 if test $_pkg_short_errors_supported = yes; then
19049 SDL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "sdl" 2>&1`
19050 else
19051 SDL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "sdl" 2>&1`
19052 fi
19053 # Put the nasty error message in config.log where it belongs
19054 echo "$SDL_PKG_ERRORS" >&5
19055
19056 have_sdl="no"
19057
19058 elif test $pkg_failed = untried; then
19059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19060 $as_echo "no" >&6; }
19061 have_sdl="no"
19062
19063 else
19064 SDL_CFLAGS=$pkg_cv_SDL_CFLAGS
19065 SDL_LIBS=$pkg_cv_SDL_LIBS
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19067 $as_echo "yes" >&6; }
19068
19069 $as_echo "#define HAVE_SDL 1" >>confdefs.h
19070
19071
19072
19073 have_sdl="yes"
19074 fi
19075 fi
19076
19077 if eval "test x$enable_sherlock265 = xyes" && eval "test x$have_videogfx != xyes" ; then
19078
19079 pkg_failed=no
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SWSCALE" >&5
19081 $as_echo_n "checking for SWSCALE... " >&6; }
19082
19083 if test -n "$SWSCALE_CFLAGS"; then
19084 pkg_cv_SWSCALE_CFLAGS="$SWSCALE_CFLAGS"
19085 elif test -n "$PKG_CONFIG"; then
19086 if test -n "$PKG_CONFIG" && \
19087 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5
19088 ($PKG_CONFIG --exists --print-errors "libswscale") 2>&5
19089 ac_status=$?
19090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19091 test $ac_status = 0; }; then
19092 pkg_cv_SWSCALE_CFLAGS=`$PKG_CONFIG --cflags "libswscale" 2>/dev/null`
19093 test "x$?" != "x0" && pkg_failed=yes
19094 else
19095 pkg_failed=yes
19096 fi
19097 else
19098 pkg_failed=untried
19099 fi
19100 if test -n "$SWSCALE_LIBS"; then
19101 pkg_cv_SWSCALE_LIBS="$SWSCALE_LIBS"
19102 elif test -n "$PKG_CONFIG"; then
19103 if test -n "$PKG_CONFIG" && \
19104 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libswscale\""; } >&5
19105 ($PKG_CONFIG --exists --print-errors "libswscale") 2>&5
19106 ac_status=$?
19107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19108 test $ac_status = 0; }; then
19109 pkg_cv_SWSCALE_LIBS=`$PKG_CONFIG --libs "libswscale" 2>/dev/null`
19110 test "x$?" != "x0" && pkg_failed=yes
19111 else
19112 pkg_failed=yes
19113 fi
19114 else
19115 pkg_failed=untried
19116 fi
19117
19118
19119
19120 if test $pkg_failed = yes; then
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19122 $as_echo "no" >&6; }
19123
19124 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19125 _pkg_short_errors_supported=yes
19126 else
19127 _pkg_short_errors_supported=no
19128 fi
19129 if test $_pkg_short_errors_supported = yes; then
19130 SWSCALE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libswscale" 2>&1`
19131 else
19132 SWSCALE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libswscale" 2>&1`
19133 fi
19134 # Put the nasty error message in config.log where it belongs
19135 echo "$SWSCALE_PKG_ERRORS" >&5
19136
19137 have_swscale="no"
19138
19139 elif test $pkg_failed = untried; then
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19141 $as_echo "no" >&6; }
19142 have_swscale="no"
19143
19144 else
19145 SWSCALE_CFLAGS=$pkg_cv_SWSCALE_CFLAGS
19146 SWSCALE_LIBS=$pkg_cv_SWSCALE_LIBS
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19148 $as_echo "yes" >&6; }
19149
19150 $as_echo "#define HAVE_SWSCALE 1" >>confdefs.h
19151
19152
19153
19154 have_swscale="yes"
19155 fi
19156 fi
19157
19158 if test "x$have_videogfx" = "xyes"; then
19159 HAVE_VIDEOGFX_TRUE=
19160 HAVE_VIDEOGFX_FALSE='#'
19161 else
19162 HAVE_VIDEOGFX_TRUE='#'
19163 HAVE_VIDEOGFX_FALSE=
19164 fi
19165
19166 if test "x$have_swscale" = "xyes"; then
19167 HAVE_SWSCALE_TRUE=
19168 HAVE_SWSCALE_FALSE='#'
19169 else
19170 HAVE_SWSCALE_TRUE='#'
19171 HAVE_SWSCALE_FALSE=
19172 fi
19173
19174 if test "x$have_sdl" = "xyes"; then
19175 HAVE_SDL_TRUE=
19176 HAVE_SDL_FALSE='#'
19177 else
19178 HAVE_SDL_TRUE='#'
19179 HAVE_SDL_FALSE=
19180 fi
19181
19182
19183 if eval "test $enable_dec265 = yes" && eval "test $have_videogfx != yes" && eval "test $have_sdl != yes" ; then
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find libvideogfx or libsdl, video output of dec265 will be disabled." >&5
19185 $as_echo "$as_me: WARNING: Did not find libvideogfx or libsdl, video output of dec265 will be disabled." >&2;}
19186 fi
19187
19188 if eval "test $enable_sherlock265 = yes" && eval "test $have_videogfx != yes" && eval "test $have_swscale != yes" ; then
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Did not find libvideogfx or libswscale, compilation of sherlock265 will be disabled." >&5
19190 $as_echo "$as_me: WARNING: Did not find libvideogfx or libswscale, compilation of sherlock265 will be disabled." >&2;}
19191 enable_sherlock265="no"
19192 fi
19193
19194 if eval "test $enable_sherlock265 = yes" ; then
19195
19196 pkg_failed=no
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
19198 $as_echo_n "checking for QT... " >&6; }
19199
19200 if test -n "$QT_CFLAGS"; then
19201 pkg_cv_QT_CFLAGS="$QT_CFLAGS"
19202 elif test -n "$PKG_CONFIG"; then
19203 if test -n "$PKG_CONFIG" && \
19204 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui Qt5Widgets\""; } >&5
19205 ($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui Qt5Widgets") 2>&5
19206 ac_status=$?
19207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19208 test $ac_status = 0; }; then
19209 pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "Qt5Core Qt5Gui Qt5Widgets" 2>/dev/null`
19210 test "x$?" != "x0" && pkg_failed=yes
19211 else
19212 pkg_failed=yes
19213 fi
19214 else
19215 pkg_failed=untried
19216 fi
19217 if test -n "$QT_LIBS"; then
19218 pkg_cv_QT_LIBS="$QT_LIBS"
19219 elif test -n "$PKG_CONFIG"; then
19220 if test -n "$PKG_CONFIG" && \
19221 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"Qt5Core Qt5Gui Qt5Widgets\""; } >&5
19222 ($PKG_CONFIG --exists --print-errors "Qt5Core Qt5Gui Qt5Widgets") 2>&5
19223 ac_status=$?
19224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19225 test $ac_status = 0; }; then
19226 pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "Qt5Core Qt5Gui Qt5Widgets" 2>/dev/null`
19227 test "x$?" != "x0" && pkg_failed=yes
19228 else
19229 pkg_failed=yes
19230 fi
19231 else
19232 pkg_failed=untried
19233 fi
19234
19235
19236
19237 if test $pkg_failed = yes; then
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19239 $as_echo "no" >&6; }
19240
19241 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19242 _pkg_short_errors_supported=yes
19243 else
19244 _pkg_short_errors_supported=no
19245 fi
19246 if test $_pkg_short_errors_supported = yes; then
19247 QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "Qt5Core Qt5Gui Qt5Widgets" 2>&1`
19248 else
19249 QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "Qt5Core Qt5Gui Qt5Widgets" 2>&1`
19250 fi
19251 # Put the nasty error message in config.log where it belongs
19252 echo "$QT_PKG_ERRORS" >&5
19253
19254 found_qt=no
19255 elif test $pkg_failed = untried; then
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257 $as_echo "no" >&6; }
19258 found_qt=no
19259 else
19260 QT_CFLAGS=$pkg_cv_QT_CFLAGS
19261 QT_LIBS=$pkg_cv_QT_LIBS
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19263 $as_echo "yes" >&6; }
19264 found_qt=5
19265 fi
19266 if eval "test $found_qt = no" ; then
19267
19268 pkg_failed=no
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QT" >&5
19270 $as_echo_n "checking for QT... " >&6; }
19271
19272 if test -n "$QT_CFLAGS"; then
19273 pkg_cv_QT_CFLAGS="$QT_CFLAGS"
19274 elif test -n "$PKG_CONFIG"; then
19275 if test -n "$PKG_CONFIG" && \
19276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui\""; } >&5
19277 ($PKG_CONFIG --exists --print-errors "QtCore QtGui") 2>&5
19278 ac_status=$?
19279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19280 test $ac_status = 0; }; then
19281 pkg_cv_QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui" 2>/dev/null`
19282 test "x$?" != "x0" && pkg_failed=yes
19283 else
19284 pkg_failed=yes
19285 fi
19286 else
19287 pkg_failed=untried
19288 fi
19289 if test -n "$QT_LIBS"; then
19290 pkg_cv_QT_LIBS="$QT_LIBS"
19291 elif test -n "$PKG_CONFIG"; then
19292 if test -n "$PKG_CONFIG" && \
19293 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"QtCore QtGui\""; } >&5
19294 ($PKG_CONFIG --exists --print-errors "QtCore QtGui") 2>&5
19295 ac_status=$?
19296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19297 test $ac_status = 0; }; then
19298 pkg_cv_QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui" 2>/dev/null`
19299 test "x$?" != "x0" && pkg_failed=yes
19300 else
19301 pkg_failed=yes
19302 fi
19303 else
19304 pkg_failed=untried
19305 fi
19306
19307
19308
19309 if test $pkg_failed = yes; then
19310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19311 $as_echo "no" >&6; }
19312
19313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19314 _pkg_short_errors_supported=yes
19315 else
19316 _pkg_short_errors_supported=no
19317 fi
19318 if test $_pkg_short_errors_supported = yes; then
19319 QT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "QtCore QtGui" 2>&1`
19320 else
19321 QT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "QtCore QtGui" 2>&1`
19322 fi
19323 # Put the nasty error message in config.log where it belongs
19324 echo "$QT_PKG_ERRORS" >&5
19325
19326 as_fn_error $? "Package requirements (QtCore QtGui) were not met:
19327
19328 $QT_PKG_ERRORS
19329
19330 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19331 installed software in a non-standard prefix.
19332
19333 Alternatively, you may set the environment variables QT_CFLAGS
19334 and QT_LIBS to avoid the need to call pkg-config.
19335 See the pkg-config man page for more details." "$LINENO" 5
19336 elif test $pkg_failed = untried; then
19337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19338 $as_echo "no" >&6; }
19339 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19340 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19341 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19342 is in your PATH or set the PKG_CONFIG environment variable to the full
19343 path to pkg-config.
19344
19345 Alternatively, you may set the environment variables QT_CFLAGS
19346 and QT_LIBS to avoid the need to call pkg-config.
19347 See the pkg-config man page for more details.
19348
19349 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19350 See \`config.log' for more details" "$LINENO" 5; }
19351 else
19352 QT_CFLAGS=$pkg_cv_QT_CFLAGS
19353 QT_LIBS=$pkg_cv_QT_LIBS
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19355 $as_echo "yes" >&6; }
19356 found_qt=4
19357 fi
19358 fi
19359 for ac_prog in qtchooser
19360 do
19361 # Extract the first word of "$ac_prog", so it can be a program name with args.
19362 set dummy $ac_prog; ac_word=$2
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19364 $as_echo_n "checking for $ac_word... " >&6; }
19365 if ${ac_cv_path_QTCHOOSER+:} false; then :
19366 $as_echo_n "(cached) " >&6
19367 else
19368 case $QTCHOOSER in
19369 [\\/]* | ?:[\\/]*)
19370 ac_cv_path_QTCHOOSER="$QTCHOOSER" # Let the user override the test with a path.
19371 ;;
19372 *)
19373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19374 for as_dir in $PATH
19375 do
19376 IFS=$as_save_IFS
19377 test -z "$as_dir" && as_dir=.
19378 for ac_exec_ext in '' $ac_executable_extensions; do
19379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19380 ac_cv_path_QTCHOOSER="$as_dir/$ac_word$ac_exec_ext"
19381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19382 break 2
19383 fi
19384 done
19385 done
19386 IFS=$as_save_IFS
19387
19388 ;;
19389 esac
19390 fi
19391 QTCHOOSER=$ac_cv_path_QTCHOOSER
19392 if test -n "$QTCHOOSER"; then
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTCHOOSER" >&5
19394 $as_echo "$QTCHOOSER" >&6; }
19395 else
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19397 $as_echo "no" >&6; }
19398 fi
19399
19400
19401 test -n "$QTCHOOSER" && break
19402 done
19403
19404 if eval "test x$QTCHOOSER = x" ; then
19405 for ac_prog in moc-qt$found_qt moc
19406 do
19407 # Extract the first word of "$ac_prog", so it can be a program name with args.
19408 set dummy $ac_prog; ac_word=$2
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19410 $as_echo_n "checking for $ac_word... " >&6; }
19411 if ${ac_cv_path_QTMOC+:} false; then :
19412 $as_echo_n "(cached) " >&6
19413 else
19414 case $QTMOC in
19415 [\\/]* | ?:[\\/]*)
19416 ac_cv_path_QTMOC="$QTMOC" # Let the user override the test with a path.
19417 ;;
19418 *)
19419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19420 for as_dir in $PATH
19421 do
19422 IFS=$as_save_IFS
19423 test -z "$as_dir" && as_dir=.
19424 for ac_exec_ext in '' $ac_executable_extensions; do
19425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19426 ac_cv_path_QTMOC="$as_dir/$ac_word$ac_exec_ext"
19427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19428 break 2
19429 fi
19430 done
19431 done
19432 IFS=$as_save_IFS
19433
19434 ;;
19435 esac
19436 fi
19437 QTMOC=$ac_cv_path_QTMOC
19438 if test -n "$QTMOC"; then
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTMOC" >&5
19440 $as_echo "$QTMOC" >&6; }
19441 else
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19443 $as_echo "no" >&6; }
19444 fi
19445
19446
19447 test -n "$QTMOC" && break
19448 done
19449
19450 if eval "test x$QTMOC = x" ; then
19451 as_fn_error $? "Need the \"moc\" commandline tool which is required to generate the Qt files required for sherlock265." "$LINENO" 5
19452 fi
19453 else
19454 QTMOC="$QTCHOOSER -run-tool=moc -qt=$found_qt"
19455 fi
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for version of $QTMOC" >&5
19457 $as_echo_n "checking for version of $QTMOC... " >&6; }
19458 QTMOC_VERSION=`$QTMOC -v 2>&1 | $GREP -o '[0-9]\+.[0-9]\+.[0-9]\+'`
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QTMOC_VERSION" >&5
19460 $as_echo "$QTMOC_VERSION" >&6; }
19461
19462
19463
19464 # Used to indicate true or false condition
19465 ax_compare_version=false
19466
19467 # Convert the two version strings to be compared into a format that
19468 # allows a simple string comparison. The end result is that a version
19469 # string of the form 1.12.5-r617 will be converted to the form
19470 # 0001001200050617. In other words, each number is zero padded to four
19471 # digits, and non digits are removed.
19472
19473 ax_compare_version_A=`echo "$QTMOC_VERSION" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19474 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19475 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19476 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19477 -e 's/[^0-9]//g'`
19478
19479
19480 ax_compare_version_B=`echo "$found_qt" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
19481 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
19482 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
19483 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
19484 -e 's/[^0-9]//g'`
19485
19486
19487 ax_compare_version=`echo "x$ax_compare_version_A
19488 x$ax_compare_version_B" | sed 's/^ *//' | sort -r | sed "s/x${ax_compare_version_A}/false/;s/x${ax_compare_version_B}/true/;1q"`
19489
19490
19491
19492 if test "$ax_compare_version" = "true" ; then
19493 as_fn_error $? "Please install \"moc\" for Qt$found_qt (found $QTMOC_VERSION)." "$LINENO" 5
19494 fi
19495
19496
19497 fi
19498
19499 if test "x$enable_dec265" != "xno"; then
19500 ENABLE_DEC265_TRUE=
19501 ENABLE_DEC265_FALSE='#'
19502 else
19503 ENABLE_DEC265_TRUE='#'
19504 ENABLE_DEC265_FALSE=
19505 fi
19506
19507 if test "x$enable_sherlock265" != "xno"; then
19508 ENABLE_SHERLOCK265_TRUE=
19509 ENABLE_SHERLOCK265_FALSE='#'
19510 else
19511 ENABLE_SHERLOCK265_TRUE='#'
19512 ENABLE_SHERLOCK265_FALSE=
19513 fi
19514
19515
19516
19517 # --- output configuration results ---
19518
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: ---------------------------------------" >&5
19520 $as_echo "$as_me: ---------------------------------------" >&6;}
19521 { $as_echo "$as_me:${as_lineno-$LINENO}: Building dec265 example: $enable_dec265" >&5
19522 $as_echo "$as_me: Building dec265 example: $enable_dec265" >&6;}
19523 { $as_echo "$as_me:${as_lineno-$LINENO}: Building sherlock265 example: $enable_sherlock265" >&5
19524 $as_echo "$as_me: Building sherlock265 example: $enable_sherlock265" >&6;}
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: Building encoder: $enable_encoder" >&5
19526 $as_echo "$as_me: Building encoder: $enable_encoder" >&6;}
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: ---------------------------------------" >&5
19528 $as_echo "$as_me: ---------------------------------------" >&6;}
19529
19530 ac_config_files="$ac_config_files Makefile"
19531
19532 ac_config_files="$ac_config_files libde265/Makefile"
19533
19534 ac_config_files="$ac_config_files libde265/arm/Makefile"
19535
19536 ac_config_files="$ac_config_files libde265/x86/Makefile"
19537
19538 ac_config_files="$ac_config_files libde265/encoder/Makefile"
19539
19540 ac_config_files="$ac_config_files libde265/encoder/algo/Makefile"
19541
19542 ac_config_files="$ac_config_files libde265/de265-version.h"
19543
19544 ac_config_files="$ac_config_files dec265/Makefile"
19545
19546 ac_config_files="$ac_config_files enc265/Makefile"
19547
19548 ac_config_files="$ac_config_files sherlock265/Makefile"
19549
19550 ac_config_files="$ac_config_files tools/Makefile"
19551
19552 ac_config_files="$ac_config_files acceleration-speed/Makefile"
19553
19554 ac_config_files="$ac_config_files libde265.pc"
19555
19556 cat >confcache <<\_ACEOF
19557 # This file is a shell script that caches the results of configure
19558 # tests run on this system so they can be shared between configure
19559 # scripts and configure runs, see configure's option --config-cache.
19560 # It is not useful on other systems. If it contains results you don't
19561 # want to keep, you may remove or edit it.
19562 #
19563 # config.status only pays attention to the cache file if you give it
19564 # the --recheck option to rerun configure.
19565 #
19566 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19567 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19568 # following values.
19569
19570 _ACEOF
19571
19572 # The following way of writing the cache mishandles newlines in values,
19573 # but we know of no workaround that is simple, portable, and efficient.
19574 # So, we kill variables containing newlines.
19575 # Ultrix sh set writes to stderr and can't be redirected directly,
19576 # and sets the high bit in the cache file unless we assign to the vars.
19577 (
19578 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19579 eval ac_val=\$$ac_var
19580 case $ac_val in #(
19581 *${as_nl}*)
19582 case $ac_var in #(
19583 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19584 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19585 esac
19586 case $ac_var in #(
19587 _ | IFS | as_nl) ;; #(
19588 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19589 *) { eval $ac_var=; unset $ac_var;} ;;
19590 esac ;;
19591 esac
19592 done
19593
19594 (set) 2>&1 |
19595 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19596 *${as_nl}ac_space=\ *)
19597 # `set' does not quote correctly, so add quotes: double-quote
19598 # substitution turns \\\\ into \\, and sed turns \\ into \.
19599 sed -n \
19600 "s/'/'\\\\''/g;
19601 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19602 ;; #(
19603 *)
19604 # `set' quotes correctly as required by POSIX, so do not add quotes.
19605 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19606 ;;
19607 esac |
19608 sort
19609 ) |
19610 sed '
19611 /^ac_cv_env_/b end
19612 t clear
19613 :clear
19614 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19615 t end
19616 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19617 :end' >>confcache
19618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19619 if test -w "$cache_file"; then
19620 if test "x$cache_file" != "x/dev/null"; then
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19622 $as_echo "$as_me: updating cache $cache_file" >&6;}
19623 if test ! -f "$cache_file" || test -h "$cache_file"; then
19624 cat confcache >"$cache_file"
19625 else
19626 case $cache_file in #(
19627 */* | ?:*)
19628 mv -f confcache "$cache_file"$$ &&
19629 mv -f "$cache_file"$$ "$cache_file" ;; #(
19630 *)
19631 mv -f confcache "$cache_file" ;;
19632 esac
19633 fi
19634 fi
19635 else
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19637 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19638 fi
19639 fi
19640 rm -f confcache
19641
19642 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19643 # Let make expand exec_prefix.
19644 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19645
19646 DEFS=-DHAVE_CONFIG_H
19647
19648 ac_libobjs=
19649 ac_ltlibobjs=
19650 U=
19651 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19652 # 1. Remove the extension, and $U if already installed.
19653 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19654 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19655 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19656 # will be set to the directory where LIBOBJS objects are built.
19657 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19658 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19659 done
19660 LIBOBJS=$ac_libobjs
19661
19662 LTLIBOBJS=$ac_ltlibobjs
19663
19664
19665 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19666 as_fn_error $? "conditional \"AMDEP\" was never defined.
19667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19668 fi
19669 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
19670 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
19671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19672 fi
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19674 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19675 if test -n "$am_sleep_pid"; then
19676 # Hide warnings about reused PIDs.
19677 wait $am_sleep_pid 2>/dev/null
19678 fi
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19680 $as_echo "done" >&6; }
19681 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19682 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19684 fi
19685 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19686 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19688 fi
19689 if test -n "$EXEEXT"; then
19690 am__EXEEXT_TRUE=
19691 am__EXEEXT_FALSE='#'
19692 else
19693 am__EXEEXT_TRUE='#'
19694 am__EXEEXT_FALSE=
19695 fi
19696
19697 if test -z "${HAVE_VISIBILITY_TRUE}" && test -z "${HAVE_VISIBILITY_FALSE}"; then
19698 as_fn_error $? "conditional \"HAVE_VISIBILITY\" was never defined.
19699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19700 fi
19701 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
19702 as_fn_error $? "conditional \"MINGW\" was never defined.
19703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19704 fi
19705 if test -z "${ENABLE_ENCODER_TRUE}" && test -z "${ENABLE_ENCODER_FALSE}"; then
19706 as_fn_error $? "conditional \"ENABLE_ENCODER\" was never defined.
19707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19708 fi
19709 if test -z "${ENABLE_SSE_OPT_TRUE}" && test -z "${ENABLE_SSE_OPT_FALSE}"; then
19710 as_fn_error $? "conditional \"ENABLE_SSE_OPT\" was never defined.
19711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19712 fi
19713 if test -z "${ENABLE_ARM_OPT_TRUE}" && test -z "${ENABLE_ARM_OPT_FALSE}"; then
19714 as_fn_error $? "conditional \"ENABLE_ARM_OPT\" was never defined.
19715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19716 fi
19717 if test -z "${ENABLE_NEON_OPT_TRUE}" && test -z "${ENABLE_NEON_OPT_FALSE}"; then
19718 as_fn_error $? "conditional \"ENABLE_NEON_OPT\" was never defined.
19719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19720 fi
19721 if test -z "${ENABLE_ARM_THUMB_TRUE}" && test -z "${ENABLE_ARM_THUMB_FALSE}"; then
19722 as_fn_error $? "conditional \"ENABLE_ARM_THUMB\" was never defined.
19723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19724 fi
19725 if test -z "${HAVE_VIDEOGFX_TRUE}" && test -z "${HAVE_VIDEOGFX_FALSE}"; then
19726 as_fn_error $? "conditional \"HAVE_VIDEOGFX\" was never defined.
19727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19728 fi
19729 if test -z "${HAVE_SWSCALE_TRUE}" && test -z "${HAVE_SWSCALE_FALSE}"; then
19730 as_fn_error $? "conditional \"HAVE_SWSCALE\" was never defined.
19731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19732 fi
19733 if test -z "${HAVE_SDL_TRUE}" && test -z "${HAVE_SDL_FALSE}"; then
19734 as_fn_error $? "conditional \"HAVE_SDL\" was never defined.
19735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19736 fi
19737 if test -z "${ENABLE_DEC265_TRUE}" && test -z "${ENABLE_DEC265_FALSE}"; then
19738 as_fn_error $? "conditional \"ENABLE_DEC265\" was never defined.
19739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19740 fi
19741 if test -z "${ENABLE_SHERLOCK265_TRUE}" && test -z "${ENABLE_SHERLOCK265_FALSE}"; then
19742 as_fn_error $? "conditional \"ENABLE_SHERLOCK265\" was never defined.
19743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19744 fi
19745
19746 : "${CONFIG_STATUS=./config.status}"
19747 ac_write_fail=0
19748 ac_clean_files_save=$ac_clean_files
19749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19751 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19752 as_write_fail=0
19753 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19754 #! $SHELL
19755 # Generated by $as_me.
19756 # Run this file to recreate the current configuration.
19757 # Compiler output produced by configure, useful for debugging
19758 # configure, is in config.log if it exists.
19759
19760 debug=false
19761 ac_cs_recheck=false
19762 ac_cs_silent=false
19763
19764 SHELL=\${CONFIG_SHELL-$SHELL}
19765 export SHELL
19766 _ASEOF
19767 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19768 ## -------------------- ##
19769 ## M4sh Initialization. ##
19770 ## -------------------- ##
19771
19772 # Be more Bourne compatible
19773 DUALCASE=1; export DUALCASE # for MKS sh
19774 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19775 emulate sh
19776 NULLCMD=:
19777 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19778 # is contrary to our usage. Disable this feature.
19779 alias -g '${1+"$@"}'='"$@"'
19780 setopt NO_GLOB_SUBST
19781 else
19782 case `(set -o) 2>/dev/null` in #(
19783 *posix*) :
19784 set -o posix ;; #(
19785 *) :
19786 ;;
19787 esac
19788 fi
19789
19790
19791 as_nl='
19792 '
19793 export as_nl
19794 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19795 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19796 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19797 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19798 # Prefer a ksh shell builtin over an external printf program on Solaris,
19799 # but without wasting forks for bash or zsh.
19800 if test -z "$BASH_VERSION$ZSH_VERSION" \
19801 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19802 as_echo='print -r --'
19803 as_echo_n='print -rn --'
19804 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19805 as_echo='printf %s\n'
19806 as_echo_n='printf %s'
19807 else
19808 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19809 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19810 as_echo_n='/usr/ucb/echo -n'
19811 else
19812 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19813 as_echo_n_body='eval
19814 arg=$1;
19815 case $arg in #(
19816 *"$as_nl"*)
19817 expr "X$arg" : "X\\(.*\\)$as_nl";
19818 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19819 esac;
19820 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19821 '
19822 export as_echo_n_body
19823 as_echo_n='sh -c $as_echo_n_body as_echo'
19824 fi
19825 export as_echo_body
19826 as_echo='sh -c $as_echo_body as_echo'
19827 fi
19828
19829 # The user is always right.
19830 if test "${PATH_SEPARATOR+set}" != set; then
19831 PATH_SEPARATOR=:
19832 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19833 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19834 PATH_SEPARATOR=';'
19835 }
19836 fi
19837
19838
19839 # IFS
19840 # We need space, tab and new line, in precisely that order. Quoting is
19841 # there to prevent editors from complaining about space-tab.
19842 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19843 # splitting by setting IFS to empty value.)
19844 IFS=" "" $as_nl"
19845
19846 # Find who we are. Look in the path if we contain no directory separator.
19847 as_myself=
19848 case $0 in #((
19849 *[\\/]* ) as_myself=$0 ;;
19850 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19851 for as_dir in $PATH
19852 do
19853 IFS=$as_save_IFS
19854 test -z "$as_dir" && as_dir=.
19855 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19856 done
19857 IFS=$as_save_IFS
19858
19859 ;;
19860 esac
19861 # We did not find ourselves, most probably we were run as `sh COMMAND'
19862 # in which case we are not to be found in the path.
19863 if test "x$as_myself" = x; then
19864 as_myself=$0
19865 fi
19866 if test ! -f "$as_myself"; then
19867 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19868 exit 1
19869 fi
19870
19871 # Unset variables that we do not need and which cause bugs (e.g. in
19872 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19873 # suppresses any "Segmentation fault" message there. '((' could
19874 # trigger a bug in pdksh 5.2.14.
19875 for as_var in BASH_ENV ENV MAIL MAILPATH
19876 do eval test x\${$as_var+set} = xset \
19877 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19878 done
19879 PS1='$ '
19880 PS2='> '
19881 PS4='+ '
19882
19883 # NLS nuisances.
19884 LC_ALL=C
19885 export LC_ALL
19886 LANGUAGE=C
19887 export LANGUAGE
19888
19889 # CDPATH.
19890 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19891
19892
19893 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19894 # ----------------------------------------
19895 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19896 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19897 # script with STATUS, using 1 if that was 0.
19898 as_fn_error ()
19899 {
19900 as_status=$1; test $as_status -eq 0 && as_status=1
19901 if test "$4"; then
19902 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19903 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19904 fi
19905 $as_echo "$as_me: error: $2" >&2
19906 as_fn_exit $as_status
19907 } # as_fn_error
19908
19909
19910 # as_fn_set_status STATUS
19911 # -----------------------
19912 # Set $? to STATUS, without forking.
19913 as_fn_set_status ()
19914 {
19915 return $1
19916 } # as_fn_set_status
19917
19918 # as_fn_exit STATUS
19919 # -----------------
19920 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19921 as_fn_exit ()
19922 {
19923 set +e
19924 as_fn_set_status $1
19925 exit $1
19926 } # as_fn_exit
19927
19928 # as_fn_unset VAR
19929 # ---------------
19930 # Portably unset VAR.
19931 as_fn_unset ()
19932 {
19933 { eval $1=; unset $1;}
19934 }
19935 as_unset=as_fn_unset
19936 # as_fn_append VAR VALUE
19937 # ----------------------
19938 # Append the text in VALUE to the end of the definition contained in VAR. Take
19939 # advantage of any shell optimizations that allow amortized linear growth over
19940 # repeated appends, instead of the typical quadratic growth present in naive
19941 # implementations.
19942 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19943 eval 'as_fn_append ()
19944 {
19945 eval $1+=\$2
19946 }'
19947 else
19948 as_fn_append ()
19949 {
19950 eval $1=\$$1\$2
19951 }
19952 fi # as_fn_append
19953
19954 # as_fn_arith ARG...
19955 # ------------------
19956 # Perform arithmetic evaluation on the ARGs, and store the result in the
19957 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19958 # must be portable across $(()) and expr.
19959 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19960 eval 'as_fn_arith ()
19961 {
19962 as_val=$(( $* ))
19963 }'
19964 else
19965 as_fn_arith ()
19966 {
19967 as_val=`expr "$@" || test $? -eq 1`
19968 }
19969 fi # as_fn_arith
19970
19971
19972 if expr a : '\(a\)' >/dev/null 2>&1 &&
19973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19974 as_expr=expr
19975 else
19976 as_expr=false
19977 fi
19978
19979 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19980 as_basename=basename
19981 else
19982 as_basename=false
19983 fi
19984
19985 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19986 as_dirname=dirname
19987 else
19988 as_dirname=false
19989 fi
19990
19991 as_me=`$as_basename -- "$0" ||
19992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19993 X"$0" : 'X\(//\)$' \| \
19994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19995 $as_echo X/"$0" |
19996 sed '/^.*\/\([^/][^/]*\)\/*$/{
19997 s//\1/
19998 q
19999 }
20000 /^X\/\(\/\/\)$/{
20001 s//\1/
20002 q
20003 }
20004 /^X\/\(\/\).*/{
20005 s//\1/
20006 q
20007 }
20008 s/.*/./; q'`
20009
20010 # Avoid depending upon Character Ranges.
20011 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20012 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20013 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20014 as_cr_digits='0123456789'
20015 as_cr_alnum=$as_cr_Letters$as_cr_digits
20016
20017 ECHO_C= ECHO_N= ECHO_T=
20018 case `echo -n x` in #(((((
20019 -n*)
20020 case `echo 'xy\c'` in
20021 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20022 xy) ECHO_C='\c';;
20023 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20024 ECHO_T=' ';;
20025 esac;;
20026 *)
20027 ECHO_N='-n';;
20028 esac
20029
20030 rm -f conf$$ conf$$.exe conf$$.file
20031 if test -d conf$$.dir; then
20032 rm -f conf$$.dir/conf$$.file
20033 else
20034 rm -f conf$$.dir
20035 mkdir conf$$.dir 2>/dev/null
20036 fi
20037 if (echo >conf$$.file) 2>/dev/null; then
20038 if ln -s conf$$.file conf$$ 2>/dev/null; then
20039 as_ln_s='ln -s'
20040 # ... but there are two gotchas:
20041 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20042 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20043 # In both cases, we have to default to `cp -pR'.
20044 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20045 as_ln_s='cp -pR'
20046 elif ln conf$$.file conf$$ 2>/dev/null; then
20047 as_ln_s=ln
20048 else
20049 as_ln_s='cp -pR'
20050 fi
20051 else
20052 as_ln_s='cp -pR'
20053 fi
20054 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20055 rmdir conf$$.dir 2>/dev/null
20056
20057
20058 # as_fn_mkdir_p
20059 # -------------
20060 # Create "$as_dir" as a directory, including parents if necessary.
20061 as_fn_mkdir_p ()
20062 {
20063
20064 case $as_dir in #(
20065 -*) as_dir=./$as_dir;;
20066 esac
20067 test -d "$as_dir" || eval $as_mkdir_p || {
20068 as_dirs=
20069 while :; do
20070 case $as_dir in #(
20071 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20072 *) as_qdir=$as_dir;;
20073 esac
20074 as_dirs="'$as_qdir' $as_dirs"
20075 as_dir=`$as_dirname -- "$as_dir" ||
20076 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20077 X"$as_dir" : 'X\(//\)[^/]' \| \
20078 X"$as_dir" : 'X\(//\)$' \| \
20079 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20080 $as_echo X"$as_dir" |
20081 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20082 s//\1/
20083 q
20084 }
20085 /^X\(\/\/\)[^/].*/{
20086 s//\1/
20087 q
20088 }
20089 /^X\(\/\/\)$/{
20090 s//\1/
20091 q
20092 }
20093 /^X\(\/\).*/{
20094 s//\1/
20095 q
20096 }
20097 s/.*/./; q'`
20098 test -d "$as_dir" && break
20099 done
20100 test -z "$as_dirs" || eval "mkdir $as_dirs"
20101 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20102
20103
20104 } # as_fn_mkdir_p
20105 if mkdir -p . 2>/dev/null; then
20106 as_mkdir_p='mkdir -p "$as_dir"'
20107 else
20108 test -d ./-p && rmdir ./-p
20109 as_mkdir_p=false
20110 fi
20111
20112
20113 # as_fn_executable_p FILE
20114 # -----------------------
20115 # Test if FILE is an executable regular file.
20116 as_fn_executable_p ()
20117 {
20118 test -f "$1" && test -x "$1"
20119 } # as_fn_executable_p
20120 as_test_x='test -x'
20121 as_executable_p=as_fn_executable_p
20122
20123 # Sed expression to map a string onto a valid CPP name.
20124 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20125
20126 # Sed expression to map a string onto a valid variable name.
20127 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20128
20129
20130 exec 6>&1
20131 ## ----------------------------------- ##
20132 ## Main body of $CONFIG_STATUS script. ##
20133 ## ----------------------------------- ##
20134 _ASEOF
20135 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20136
20137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20138 # Save the log message, to keep $0 and so on meaningful, and to
20139 # report actual input values of CONFIG_FILES etc. instead of their
20140 # values after options handling.
20141 ac_log="
20142 This file was extended by libde265 $as_me 1.0.8, which was
20143 generated by GNU Autoconf 2.69. Invocation command line was
20144
20145 CONFIG_FILES = $CONFIG_FILES
20146 CONFIG_HEADERS = $CONFIG_HEADERS
20147 CONFIG_LINKS = $CONFIG_LINKS
20148 CONFIG_COMMANDS = $CONFIG_COMMANDS
20149 $ $0 $@
20150
20151 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20152 "
20153
20154 _ACEOF
20155
20156 case $ac_config_files in *"
20157 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20158 esac
20159
20160 case $ac_config_headers in *"
20161 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20162 esac
20163
20164
20165 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20166 # Files that config.status was made for.
20167 config_files="$ac_config_files"
20168 config_headers="$ac_config_headers"
20169 config_commands="$ac_config_commands"
20170
20171 _ACEOF
20172
20173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20174 ac_cs_usage="\
20175 \`$as_me' instantiates files and other configuration actions
20176 from templates according to the current configuration. Unless the files
20177 and actions are specified as TAGs, all are instantiated by default.
20178
20179 Usage: $0 [OPTION]... [TAG]...
20180
20181 -h, --help print this help, then exit
20182 -V, --version print version number and configuration settings, then exit
20183 --config print configuration, then exit
20184 -q, --quiet, --silent
20185 do not print progress messages
20186 -d, --debug don't remove temporary files
20187 --recheck update $as_me by reconfiguring in the same conditions
20188 --file=FILE[:TEMPLATE]
20189 instantiate the configuration file FILE
20190 --header=FILE[:TEMPLATE]
20191 instantiate the configuration header FILE
20192
20193 Configuration files:
20194 $config_files
20195
20196 Configuration headers:
20197 $config_headers
20198
20199 Configuration commands:
20200 $config_commands
20201
20202 Report bugs to <farin@struktur.de>."
20203
20204 _ACEOF
20205 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20206 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20207 ac_cs_version="\\
20208 libde265 config.status 1.0.8
20209 configured by $0, generated by GNU Autoconf 2.69,
20210 with options \\"\$ac_cs_config\\"
20211
20212 Copyright (C) 2012 Free Software Foundation, Inc.
20213 This config.status script is free software; the Free Software Foundation
20214 gives unlimited permission to copy, distribute and modify it."
20215
20216 ac_pwd='$ac_pwd'
20217 srcdir='$srcdir'
20218 INSTALL='$INSTALL'
20219 MKDIR_P='$MKDIR_P'
20220 AWK='$AWK'
20221 test -n "\$AWK" || AWK=awk
20222 _ACEOF
20223
20224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20225 # The default lists apply if the user does not specify any file.
20226 ac_need_defaults=:
20227 while test $# != 0
20228 do
20229 case $1 in
20230 --*=?*)
20231 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20232 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20233 ac_shift=:
20234 ;;
20235 --*=)
20236 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20237 ac_optarg=
20238 ac_shift=:
20239 ;;
20240 *)
20241 ac_option=$1
20242 ac_optarg=$2
20243 ac_shift=shift
20244 ;;
20245 esac
20246
20247 case $ac_option in
20248 # Handling of the options.
20249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20250 ac_cs_recheck=: ;;
20251 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20252 $as_echo "$ac_cs_version"; exit ;;
20253 --config | --confi | --conf | --con | --co | --c )
20254 $as_echo "$ac_cs_config"; exit ;;
20255 --debug | --debu | --deb | --de | --d | -d )
20256 debug=: ;;
20257 --file | --fil | --fi | --f )
20258 $ac_shift
20259 case $ac_optarg in
20260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20261 '') as_fn_error $? "missing file argument" ;;
20262 esac
20263 as_fn_append CONFIG_FILES " '$ac_optarg'"
20264 ac_need_defaults=false;;
20265 --header | --heade | --head | --hea )
20266 $ac_shift
20267 case $ac_optarg in
20268 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20269 esac
20270 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20271 ac_need_defaults=false;;
20272 --he | --h)
20273 # Conflict between --help and --header
20274 as_fn_error $? "ambiguous option: \`$1'
20275 Try \`$0 --help' for more information.";;
20276 --help | --hel | -h )
20277 $as_echo "$ac_cs_usage"; exit ;;
20278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20280 ac_cs_silent=: ;;
20281
20282 # This is an error.
20283 -*) as_fn_error $? "unrecognized option: \`$1'
20284 Try \`$0 --help' for more information." ;;
20285
20286 *) as_fn_append ac_config_targets " $1"
20287 ac_need_defaults=false ;;
20288
20289 esac
20290 shift
20291 done
20292
20293 ac_configure_extra_args=
20294
20295 if $ac_cs_silent; then
20296 exec 6>/dev/null
20297 ac_configure_extra_args="$ac_configure_extra_args --silent"
20298 fi
20299
20300 _ACEOF
20301 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20302 if \$ac_cs_recheck; then
20303 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20304 shift
20305 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20306 CONFIG_SHELL='$SHELL'
20307 export CONFIG_SHELL
20308 exec "\$@"
20309 fi
20310
20311 _ACEOF
20312 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20313 exec 5>>config.log
20314 {
20315 echo
20316 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20317 ## Running $as_me. ##
20318 _ASBOX
20319 $as_echo "$ac_log"
20320 } >&5
20321
20322 _ACEOF
20323 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20324 #
20325 # INIT-COMMANDS
20326 #
20327
20328
20329 # The HP-UX ksh and POSIX shell print the target directory to stdout
20330 # if CDPATH is set.
20331 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20332
20333 sed_quote_subst='$sed_quote_subst'
20334 double_quote_subst='$double_quote_subst'
20335 delay_variable_subst='$delay_variable_subst'
20336 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20337 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20338 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20339 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20340 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20341 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20342 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20343 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20344 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20345 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20346 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20347 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20348 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20349 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20350 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20351 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20352 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20353 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20354 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20355 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20356 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20357 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20358 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20359 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20360 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20361 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20362 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20363 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20364 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20365 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20366 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20367 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20368 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20369 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20370 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20371 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20372 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20373 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20374 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20375 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20376 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20377 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20378 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20379 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20380 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20381 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20382 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20383 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20384 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20385 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20386 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20387 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20388 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20389 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20390 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20391 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20392 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20393 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20394 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20395 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20396 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20397 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20398 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20399 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20400 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20401 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20402 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20403 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20404 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20405 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20406 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20407 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20408 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20409 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20410 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20411 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20412 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20413 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20414 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20415 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20416 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20417 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20418 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20419 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20420 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20421 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20422 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20423 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20424 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20425 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20426 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20427 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20428 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20429 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20430 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20431 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20432 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20433 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20434 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20435 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20436 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20437 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20438 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20439 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20440 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20441 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20442 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20443 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20444 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20445 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20446 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20447 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20448 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20449 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20450 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20451 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20452 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20453 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20454 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20455 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20456 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20457 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20458 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20459 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20460 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20461 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20462 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20463 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20464 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20465 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20466 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20467 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20468 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20469 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20470 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20471 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20472 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20473 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20474 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20475 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20476 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20477 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20478 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20479 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20480 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20481 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20482 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20483 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20484 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20485 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20486 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20487 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20488 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20489 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20490 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20491 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20492 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20493 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20494 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20495 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20496 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20497 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20498 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20499 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20500 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20501 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20502 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20503 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20504 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20505 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20506 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20507 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20508 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20509 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20510 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20511 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20512 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20513 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20514 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20515 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20516 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20517 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20518 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20519 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20520 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20521 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20522 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20523 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20524 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20525
20526 LTCC='$LTCC'
20527 LTCFLAGS='$LTCFLAGS'
20528 compiler='$compiler_DEFAULT'
20529
20530 # A function that is used when there is no print builtin or printf.
20531 func_fallback_echo ()
20532 {
20533 eval 'cat <<_LTECHO_EOF
20534 \$1
20535 _LTECHO_EOF'
20536 }
20537
20538 # Quote evaled strings.
20539 for var in SHELL \
20540 ECHO \
20541 PATH_SEPARATOR \
20542 SED \
20543 GREP \
20544 EGREP \
20545 FGREP \
20546 LD \
20547 NM \
20548 LN_S \
20549 lt_SP2NL \
20550 lt_NL2SP \
20551 reload_flag \
20552 OBJDUMP \
20553 deplibs_check_method \
20554 file_magic_cmd \
20555 file_magic_glob \
20556 want_nocaseglob \
20557 DLLTOOL \
20558 sharedlib_from_linklib_cmd \
20559 AR \
20560 AR_FLAGS \
20561 archiver_list_spec \
20562 STRIP \
20563 RANLIB \
20564 CC \
20565 CFLAGS \
20566 compiler \
20567 lt_cv_sys_global_symbol_pipe \
20568 lt_cv_sys_global_symbol_to_cdecl \
20569 lt_cv_sys_global_symbol_to_import \
20570 lt_cv_sys_global_symbol_to_c_name_address \
20571 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20572 lt_cv_nm_interface \
20573 nm_file_list_spec \
20574 lt_cv_truncate_bin \
20575 lt_prog_compiler_no_builtin_flag \
20576 lt_prog_compiler_pic \
20577 lt_prog_compiler_wl \
20578 lt_prog_compiler_static \
20579 lt_cv_prog_compiler_c_o \
20580 need_locks \
20581 MANIFEST_TOOL \
20582 DSYMUTIL \
20583 NMEDIT \
20584 LIPO \
20585 OTOOL \
20586 OTOOL64 \
20587 shrext_cmds \
20588 export_dynamic_flag_spec \
20589 whole_archive_flag_spec \
20590 compiler_needs_object \
20591 with_gnu_ld \
20592 allow_undefined_flag \
20593 no_undefined_flag \
20594 hardcode_libdir_flag_spec \
20595 hardcode_libdir_separator \
20596 exclude_expsyms \
20597 include_expsyms \
20598 file_list_spec \
20599 variables_saved_for_relink \
20600 libname_spec \
20601 library_names_spec \
20602 soname_spec \
20603 install_override_mode \
20604 finish_eval \
20605 old_striplib \
20606 striplib \
20607 compiler_lib_search_dirs \
20608 predep_objects \
20609 postdep_objects \
20610 predeps \
20611 postdeps \
20612 compiler_lib_search_path \
20613 LD_CXX \
20614 reload_flag_CXX \
20615 compiler_CXX \
20616 lt_prog_compiler_no_builtin_flag_CXX \
20617 lt_prog_compiler_pic_CXX \
20618 lt_prog_compiler_wl_CXX \
20619 lt_prog_compiler_static_CXX \
20620 lt_cv_prog_compiler_c_o_CXX \
20621 export_dynamic_flag_spec_CXX \
20622 whole_archive_flag_spec_CXX \
20623 compiler_needs_object_CXX \
20624 with_gnu_ld_CXX \
20625 allow_undefined_flag_CXX \
20626 no_undefined_flag_CXX \
20627 hardcode_libdir_flag_spec_CXX \
20628 hardcode_libdir_separator_CXX \
20629 exclude_expsyms_CXX \
20630 include_expsyms_CXX \
20631 file_list_spec_CXX \
20632 compiler_lib_search_dirs_CXX \
20633 predep_objects_CXX \
20634 postdep_objects_CXX \
20635 predeps_CXX \
20636 postdeps_CXX \
20637 compiler_lib_search_path_CXX; do
20638 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20639 *[\\\\\\\`\\"\\\$]*)
20640 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20641 ;;
20642 *)
20643 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20644 ;;
20645 esac
20646 done
20647
20648 # Double-quote double-evaled strings.
20649 for var in reload_cmds \
20650 old_postinstall_cmds \
20651 old_postuninstall_cmds \
20652 old_archive_cmds \
20653 extract_expsyms_cmds \
20654 old_archive_from_new_cmds \
20655 old_archive_from_expsyms_cmds \
20656 archive_cmds \
20657 archive_expsym_cmds \
20658 module_cmds \
20659 module_expsym_cmds \
20660 export_symbols_cmds \
20661 prelink_cmds \
20662 postlink_cmds \
20663 postinstall_cmds \
20664 postuninstall_cmds \
20665 finish_cmds \
20666 sys_lib_search_path_spec \
20667 configure_time_dlsearch_path \
20668 configure_time_lt_sys_library_path \
20669 reload_cmds_CXX \
20670 old_archive_cmds_CXX \
20671 old_archive_from_new_cmds_CXX \
20672 old_archive_from_expsyms_cmds_CXX \
20673 archive_cmds_CXX \
20674 archive_expsym_cmds_CXX \
20675 module_cmds_CXX \
20676 module_expsym_cmds_CXX \
20677 export_symbols_cmds_CXX \
20678 prelink_cmds_CXX \
20679 postlink_cmds_CXX; do
20680 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20681 *[\\\\\\\`\\"\\\$]*)
20682 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20683 ;;
20684 *)
20685 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20686 ;;
20687 esac
20688 done
20689
20690 ac_aux_dir='$ac_aux_dir'
20691
20692 # See if we are running on zsh, and set the options that allow our
20693 # commands through without removal of \ escapes INIT.
20694 if test -n "\${ZSH_VERSION+set}"; then
20695 setopt NO_GLOB_SUBST
20696 fi
20697
20698
20699 PACKAGE='$PACKAGE'
20700 VERSION='$VERSION'
20701 RM='$RM'
20702 ofile='$ofile'
20703
20704
20705
20706
20707
20708 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20709
20710 _ACEOF
20711
20712 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20713
20714 # Handling of arguments.
20715 for ac_config_target in $ac_config_targets
20716 do
20717 case $ac_config_target in
20718 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20719 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20720 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20721 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20722 "libde265/Makefile") CONFIG_FILES="$CONFIG_FILES libde265/Makefile" ;;
20723 "libde265/arm/Makefile") CONFIG_FILES="$CONFIG_FILES libde265/arm/Makefile" ;;
20724 "libde265/x86/Makefile") CONFIG_FILES="$CONFIG_FILES libde265/x86/Makefile" ;;
20725 "libde265/encoder/Makefile") CONFIG_FILES="$CONFIG_FILES libde265/encoder/Makefile" ;;
20726 "libde265/encoder/algo/Makefile") CONFIG_FILES="$CONFIG_FILES libde265/encoder/algo/Makefile" ;;
20727 "libde265/de265-version.h") CONFIG_FILES="$CONFIG_FILES libde265/de265-version.h" ;;
20728 "dec265/Makefile") CONFIG_FILES="$CONFIG_FILES dec265/Makefile" ;;
20729 "enc265/Makefile") CONFIG_FILES="$CONFIG_FILES enc265/Makefile" ;;
20730 "sherlock265/Makefile") CONFIG_FILES="$CONFIG_FILES sherlock265/Makefile" ;;
20731 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
20732 "acceleration-speed/Makefile") CONFIG_FILES="$CONFIG_FILES acceleration-speed/Makefile" ;;
20733 "libde265.pc") CONFIG_FILES="$CONFIG_FILES libde265.pc" ;;
20734
20735 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20736 esac
20737 done
20738
20739
20740 # If the user did not use the arguments to specify the items to instantiate,
20741 # then the envvar interface is used. Set only those that are not.
20742 # We use the long form for the default assignment because of an extremely
20743 # bizarre bug on SunOS 4.1.3.
20744 if $ac_need_defaults; then
20745 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20746 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20747 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20748 fi
20749
20750 # Have a temporary directory for convenience. Make it in the build tree
20751 # simply because there is no reason against having it here, and in addition,
20752 # creating and moving files from /tmp can sometimes cause problems.
20753 # Hook for its removal unless debugging.
20754 # Note that there is a small window in which the directory will not be cleaned:
20755 # after its creation but before its name has been assigned to `$tmp'.
20756 $debug ||
20757 {
20758 tmp= ac_tmp=
20759 trap 'exit_status=$?
20760 : "${ac_tmp:=$tmp}"
20761 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20762 ' 0
20763 trap 'as_fn_exit 1' 1 2 13 15
20764 }
20765 # Create a (secure) tmp directory for tmp files.
20766
20767 {
20768 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20769 test -d "$tmp"
20770 } ||
20771 {
20772 tmp=./conf$$-$RANDOM
20773 (umask 077 && mkdir "$tmp")
20774 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20775 ac_tmp=$tmp
20776
20777 # Set up the scripts for CONFIG_FILES section.
20778 # No need to generate them if there are no CONFIG_FILES.
20779 # This happens for instance with `./config.status config.h'.
20780 if test -n "$CONFIG_FILES"; then
20781
20782
20783 ac_cr=`echo X | tr X '\015'`
20784 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20785 # But we know of no other shell where ac_cr would be empty at this
20786 # point, so we can use a bashism as a fallback.
20787 if test "x$ac_cr" = x; then
20788 eval ac_cr=\$\'\\r\'
20789 fi
20790 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20791 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20792 ac_cs_awk_cr='\\r'
20793 else
20794 ac_cs_awk_cr=$ac_cr
20795 fi
20796
20797 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20798 _ACEOF
20799
20800
20801 {
20802 echo "cat >conf$$subs.awk <<_ACEOF" &&
20803 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20804 echo "_ACEOF"
20805 } >conf$$subs.sh ||
20806 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20807 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20808 ac_delim='%!_!# '
20809 for ac_last_try in false false false false false :; do
20810 . ./conf$$subs.sh ||
20811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20812
20813 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20814 if test $ac_delim_n = $ac_delim_num; then
20815 break
20816 elif $ac_last_try; then
20817 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20818 else
20819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20820 fi
20821 done
20822 rm -f conf$$subs.sh
20823
20824 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20825 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20826 _ACEOF
20827 sed -n '
20828 h
20829 s/^/S["/; s/!.*/"]=/
20830 p
20831 g
20832 s/^[^!]*!//
20833 :repl
20834 t repl
20835 s/'"$ac_delim"'$//
20836 t delim
20837 :nl
20838 h
20839 s/\(.\{148\}\)..*/\1/
20840 t more1
20841 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20842 p
20843 n
20844 b repl
20845 :more1
20846 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20847 p
20848 g
20849 s/.\{148\}//
20850 t nl
20851 :delim
20852 h
20853 s/\(.\{148\}\)..*/\1/
20854 t more2
20855 s/["\\]/\\&/g; s/^/"/; s/$/"/
20856 p
20857 b
20858 :more2
20859 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20860 p
20861 g
20862 s/.\{148\}//
20863 t delim
20864 ' <conf$$subs.awk | sed '
20865 /^[^""]/{
20866 N
20867 s/\n//
20868 }
20869 ' >>$CONFIG_STATUS || ac_write_fail=1
20870 rm -f conf$$subs.awk
20871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20872 _ACAWK
20873 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20874 for (key in S) S_is_set[key] = 1
20875 FS = ""
20876
20877 }
20878 {
20879 line = $ 0
20880 nfields = split(line, field, "@")
20881 substed = 0
20882 len = length(field[1])
20883 for (i = 2; i < nfields; i++) {
20884 key = field[i]
20885 keylen = length(key)
20886 if (S_is_set[key]) {
20887 value = S[key]
20888 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20889 len += length(value) + length(field[++i])
20890 substed = 1
20891 } else
20892 len += 1 + keylen
20893 }
20894
20895 print line
20896 }
20897
20898 _ACAWK
20899 _ACEOF
20900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20901 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20902 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20903 else
20904 cat
20905 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20906 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20907 _ACEOF
20908
20909 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20910 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20911 # trailing colons and then remove the whole line if VPATH becomes empty
20912 # (actually we leave an empty line to preserve line numbers).
20913 if test "x$srcdir" = x.; then
20914 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20915 h
20916 s///
20917 s/^/:/
20918 s/[ ]*$/:/
20919 s/:\$(srcdir):/:/g
20920 s/:\${srcdir}:/:/g
20921 s/:@srcdir@:/:/g
20922 s/^:*//
20923 s/:*$//
20924 x
20925 s/\(=[ ]*\).*/\1/
20926 G
20927 s/\n//
20928 s/^[^=]*=[ ]*$//
20929 }'
20930 fi
20931
20932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20933 fi # test -n "$CONFIG_FILES"
20934
20935 # Set up the scripts for CONFIG_HEADERS section.
20936 # No need to generate them if there are no CONFIG_HEADERS.
20937 # This happens for instance with `./config.status Makefile'.
20938 if test -n "$CONFIG_HEADERS"; then
20939 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20940 BEGIN {
20941 _ACEOF
20942
20943 # Transform confdefs.h into an awk script `defines.awk', embedded as
20944 # here-document in config.status, that substitutes the proper values into
20945 # config.h.in to produce config.h.
20946
20947 # Create a delimiter string that does not exist in confdefs.h, to ease
20948 # handling of long lines.
20949 ac_delim='%!_!# '
20950 for ac_last_try in false false :; do
20951 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20952 if test -z "$ac_tt"; then
20953 break
20954 elif $ac_last_try; then
20955 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20956 else
20957 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20958 fi
20959 done
20960
20961 # For the awk script, D is an array of macro values keyed by name,
20962 # likewise P contains macro parameters if any. Preserve backslash
20963 # newline sequences.
20964
20965 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20966 sed -n '
20967 s/.\{148\}/&'"$ac_delim"'/g
20968 t rset
20969 :rset
20970 s/^[ ]*#[ ]*define[ ][ ]*/ /
20971 t def
20972 d
20973 :def
20974 s/\\$//
20975 t bsnl
20976 s/["\\]/\\&/g
20977 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20978 D["\1"]=" \3"/p
20979 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20980 d
20981 :bsnl
20982 s/["\\]/\\&/g
20983 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20984 D["\1"]=" \3\\\\\\n"\\/p
20985 t cont
20986 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20987 t cont
20988 d
20989 :cont
20990 n
20991 s/.\{148\}/&'"$ac_delim"'/g
20992 t clear
20993 :clear
20994 s/\\$//
20995 t bsnlc
20996 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20997 d
20998 :bsnlc
20999 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21000 b cont
21001 ' <confdefs.h | sed '
21002 s/'"$ac_delim"'/"\\\
21003 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21004
21005 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21006 for (key in D) D_is_set[key] = 1
21007 FS = ""
21008 }
21009 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21010 line = \$ 0
21011 split(line, arg, " ")
21012 if (arg[1] == "#") {
21013 defundef = arg[2]
21014 mac1 = arg[3]
21015 } else {
21016 defundef = substr(arg[1], 2)
21017 mac1 = arg[2]
21018 }
21019 split(mac1, mac2, "(") #)
21020 macro = mac2[1]
21021 prefix = substr(line, 1, index(line, defundef) - 1)
21022 if (D_is_set[macro]) {
21023 # Preserve the white space surrounding the "#".
21024 print prefix "define", macro P[macro] D[macro]
21025 next
21026 } else {
21027 # Replace #undef with comments. This is necessary, for example,
21028 # in the case of _POSIX_SOURCE, which is predefined and required
21029 # on some systems where configure will not decide to define it.
21030 if (defundef == "undef") {
21031 print "/*", prefix defundef, macro, "*/"
21032 next
21033 }
21034 }
21035 }
21036 { print }
21037 _ACAWK
21038 _ACEOF
21039 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21040 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21041 fi # test -n "$CONFIG_HEADERS"
21042
21043
21044 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21045 shift
21046 for ac_tag
21047 do
21048 case $ac_tag in
21049 :[FHLC]) ac_mode=$ac_tag; continue;;
21050 esac
21051 case $ac_mode$ac_tag in
21052 :[FHL]*:*);;
21053 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21054 :[FH]-) ac_tag=-:-;;
21055 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21056 esac
21057 ac_save_IFS=$IFS
21058 IFS=:
21059 set x $ac_tag
21060 IFS=$ac_save_IFS
21061 shift
21062 ac_file=$1
21063 shift
21064
21065 case $ac_mode in
21066 :L) ac_source=$1;;
21067 :[FH])
21068 ac_file_inputs=
21069 for ac_f
21070 do
21071 case $ac_f in
21072 -) ac_f="$ac_tmp/stdin";;
21073 *) # Look for the file first in the build tree, then in the source tree
21074 # (if the path is not absolute). The absolute path cannot be DOS-style,
21075 # because $ac_f cannot contain `:'.
21076 test -f "$ac_f" ||
21077 case $ac_f in
21078 [\\/$]*) false;;
21079 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21080 esac ||
21081 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21082 esac
21083 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21084 as_fn_append ac_file_inputs " '$ac_f'"
21085 done
21086
21087 # Let's still pretend it is `configure' which instantiates (i.e., don't
21088 # use $as_me), people would be surprised to read:
21089 # /* config.h. Generated by config.status. */
21090 configure_input='Generated from '`
21091 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21092 `' by configure.'
21093 if test x"$ac_file" != x-; then
21094 configure_input="$ac_file. $configure_input"
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21096 $as_echo "$as_me: creating $ac_file" >&6;}
21097 fi
21098 # Neutralize special characters interpreted by sed in replacement strings.
21099 case $configure_input in #(
21100 *\&* | *\|* | *\\* )
21101 ac_sed_conf_input=`$as_echo "$configure_input" |
21102 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21103 *) ac_sed_conf_input=$configure_input;;
21104 esac
21105
21106 case $ac_tag in
21107 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21109 esac
21110 ;;
21111 esac
21112
21113 ac_dir=`$as_dirname -- "$ac_file" ||
21114 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21115 X"$ac_file" : 'X\(//\)[^/]' \| \
21116 X"$ac_file" : 'X\(//\)$' \| \
21117 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21118 $as_echo X"$ac_file" |
21119 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21120 s//\1/
21121 q
21122 }
21123 /^X\(\/\/\)[^/].*/{
21124 s//\1/
21125 q
21126 }
21127 /^X\(\/\/\)$/{
21128 s//\1/
21129 q
21130 }
21131 /^X\(\/\).*/{
21132 s//\1/
21133 q
21134 }
21135 s/.*/./; q'`
21136 as_dir="$ac_dir"; as_fn_mkdir_p
21137 ac_builddir=.
21138
21139 case "$ac_dir" in
21140 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21141 *)
21142 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21143 # A ".." for each directory in $ac_dir_suffix.
21144 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21145 case $ac_top_builddir_sub in
21146 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21147 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21148 esac ;;
21149 esac
21150 ac_abs_top_builddir=$ac_pwd
21151 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21152 # for backward compatibility:
21153 ac_top_builddir=$ac_top_build_prefix
21154
21155 case $srcdir in
21156 .) # We are building in place.
21157 ac_srcdir=.
21158 ac_top_srcdir=$ac_top_builddir_sub
21159 ac_abs_top_srcdir=$ac_pwd ;;
21160 [\\/]* | ?:[\\/]* ) # Absolute name.
21161 ac_srcdir=$srcdir$ac_dir_suffix;
21162 ac_top_srcdir=$srcdir
21163 ac_abs_top_srcdir=$srcdir ;;
21164 *) # Relative name.
21165 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21166 ac_top_srcdir=$ac_top_build_prefix$srcdir
21167 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21168 esac
21169 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21170
21171
21172 case $ac_mode in
21173 :F)
21174 #
21175 # CONFIG_FILE
21176 #
21177
21178 case $INSTALL in
21179 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21180 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21181 esac
21182 ac_MKDIR_P=$MKDIR_P
21183 case $MKDIR_P in
21184 [\\/$]* | ?:[\\/]* ) ;;
21185 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21186 esac
21187 _ACEOF
21188
21189 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21190 # If the template does not know about datarootdir, expand it.
21191 # FIXME: This hack should be removed a few years after 2.60.
21192 ac_datarootdir_hack=; ac_datarootdir_seen=
21193 ac_sed_dataroot='
21194 /datarootdir/ {
21195 p
21196 q
21197 }
21198 /@datadir@/p
21199 /@docdir@/p
21200 /@infodir@/p
21201 /@localedir@/p
21202 /@mandir@/p'
21203 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21204 *datarootdir*) ac_datarootdir_seen=yes;;
21205 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21207 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21208 _ACEOF
21209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21210 ac_datarootdir_hack='
21211 s&@datadir@&$datadir&g
21212 s&@docdir@&$docdir&g
21213 s&@infodir@&$infodir&g
21214 s&@localedir@&$localedir&g
21215 s&@mandir@&$mandir&g
21216 s&\\\${datarootdir}&$datarootdir&g' ;;
21217 esac
21218 _ACEOF
21219
21220 # Neutralize VPATH when `$srcdir' = `.'.
21221 # Shell code in configure.ac might set extrasub.
21222 # FIXME: do we really want to maintain this feature?
21223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21224 ac_sed_extra="$ac_vpsub
21225 $extrasub
21226 _ACEOF
21227 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21228 :t
21229 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21230 s|@configure_input@|$ac_sed_conf_input|;t t
21231 s&@top_builddir@&$ac_top_builddir_sub&;t t
21232 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21233 s&@srcdir@&$ac_srcdir&;t t
21234 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21235 s&@top_srcdir@&$ac_top_srcdir&;t t
21236 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21237 s&@builddir@&$ac_builddir&;t t
21238 s&@abs_builddir@&$ac_abs_builddir&;t t
21239 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21240 s&@INSTALL@&$ac_INSTALL&;t t
21241 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21242 $ac_datarootdir_hack
21243 "
21244 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21245 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21246
21247 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21248 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21249 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21250 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21252 which seems to be undefined. Please make sure it is defined" >&5
21253 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21254 which seems to be undefined. Please make sure it is defined" >&2;}
21255
21256 rm -f "$ac_tmp/stdin"
21257 case $ac_file in
21258 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21259 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21260 esac \
21261 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21262 ;;
21263 :H)
21264 #
21265 # CONFIG_HEADER
21266 #
21267 if test x"$ac_file" != x-; then
21268 {
21269 $as_echo "/* $configure_input */" \
21270 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21271 } >"$ac_tmp/config.h" \
21272 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21273 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21274 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21275 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21276 else
21277 rm -f "$ac_file"
21278 mv "$ac_tmp/config.h" "$ac_file" \
21279 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21280 fi
21281 else
21282 $as_echo "/* $configure_input */" \
21283 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21284 || as_fn_error $? "could not create -" "$LINENO" 5
21285 fi
21286 # Compute "$ac_file"'s index in $config_headers.
21287 _am_arg="$ac_file"
21288 _am_stamp_count=1
21289 for _am_header in $config_headers :; do
21290 case $_am_header in
21291 $_am_arg | $_am_arg:* )
21292 break ;;
21293 * )
21294 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21295 esac
21296 done
21297 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21298 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21299 X"$_am_arg" : 'X\(//\)[^/]' \| \
21300 X"$_am_arg" : 'X\(//\)$' \| \
21301 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21302 $as_echo X"$_am_arg" |
21303 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21304 s//\1/
21305 q
21306 }
21307 /^X\(\/\/\)[^/].*/{
21308 s//\1/
21309 q
21310 }
21311 /^X\(\/\/\)$/{
21312 s//\1/
21313 q
21314 }
21315 /^X\(\/\).*/{
21316 s//\1/
21317 q
21318 }
21319 s/.*/./; q'`/stamp-h$_am_stamp_count
21320 ;;
21321
21322 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21323 $as_echo "$as_me: executing $ac_file commands" >&6;}
21324 ;;
21325 esac
21326
21327
21328 case $ac_file$ac_mode in
21329 "libtool":C)
21330
21331 # See if we are running on zsh, and set the options that allow our
21332 # commands through without removal of \ escapes.
21333 if test -n "${ZSH_VERSION+set}"; then
21334 setopt NO_GLOB_SUBST
21335 fi
21336
21337 cfgfile=${ofile}T
21338 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21339 $RM "$cfgfile"
21340
21341 cat <<_LT_EOF >> "$cfgfile"
21342 #! $SHELL
21343 # Generated automatically by $as_me ($PACKAGE) $VERSION
21344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21345
21346 # Provide generalized library-building support services.
21347 # Written by Gordon Matzigkeit, 1996
21348
21349 # Copyright (C) 2014 Free Software Foundation, Inc.
21350 # This is free software; see the source for copying conditions. There is NO
21351 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21352
21353 # GNU Libtool is free software; you can redistribute it and/or modify
21354 # it under the terms of the GNU General Public License as published by
21355 # the Free Software Foundation; either version 2 of of the License, or
21356 # (at your option) any later version.
21357 #
21358 # As a special exception to the GNU General Public License, if you
21359 # distribute this file as part of a program or library that is built
21360 # using GNU Libtool, you may include this file under the same
21361 # distribution terms that you use for the rest of that program.
21362 #
21363 # GNU Libtool is distributed in the hope that it will be useful, but
21364 # WITHOUT ANY WARRANTY; without even the implied warranty of
21365 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21366 # GNU General Public License for more details.
21367 #
21368 # You should have received a copy of the GNU General Public License
21369 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21370
21371
21372 # The names of the tagged configurations supported by this script.
21373 available_tags='CXX '
21374
21375 # Configured defaults for sys_lib_dlsearch_path munging.
21376 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21377
21378 # ### BEGIN LIBTOOL CONFIG
21379
21380 # Which release of libtool.m4 was used?
21381 macro_version=$macro_version
21382 macro_revision=$macro_revision
21383
21384 # Whether or not to build shared libraries.
21385 build_libtool_libs=$enable_shared
21386
21387 # Whether or not to build static libraries.
21388 build_old_libs=$enable_static
21389
21390 # What type of objects to build.
21391 pic_mode=$pic_mode
21392
21393 # Whether or not to optimize for fast installation.
21394 fast_install=$enable_fast_install
21395
21396 # Shared archive member basename,for filename based shared library versioning on AIX.
21397 shared_archive_member_spec=$shared_archive_member_spec
21398
21399 # Shell to use when invoking shell scripts.
21400 SHELL=$lt_SHELL
21401
21402 # An echo program that protects backslashes.
21403 ECHO=$lt_ECHO
21404
21405 # The PATH separator for the build system.
21406 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21407
21408 # The host system.
21409 host_alias=$host_alias
21410 host=$host
21411 host_os=$host_os
21412
21413 # The build system.
21414 build_alias=$build_alias
21415 build=$build
21416 build_os=$build_os
21417
21418 # A sed program that does not truncate output.
21419 SED=$lt_SED
21420
21421 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21422 Xsed="\$SED -e 1s/^X//"
21423
21424 # A grep program that handles long lines.
21425 GREP=$lt_GREP
21426
21427 # An ERE matcher.
21428 EGREP=$lt_EGREP
21429
21430 # A literal string matcher.
21431 FGREP=$lt_FGREP
21432
21433 # A BSD- or MS-compatible name lister.
21434 NM=$lt_NM
21435
21436 # Whether we need soft or hard links.
21437 LN_S=$lt_LN_S
21438
21439 # What is the maximum length of a command?
21440 max_cmd_len=$max_cmd_len
21441
21442 # Object file suffix (normally "o").
21443 objext=$ac_objext
21444
21445 # Executable file suffix (normally "").
21446 exeext=$exeext
21447
21448 # whether the shell understands "unset".
21449 lt_unset=$lt_unset
21450
21451 # turn spaces into newlines.
21452 SP2NL=$lt_lt_SP2NL
21453
21454 # turn newlines into spaces.
21455 NL2SP=$lt_lt_NL2SP
21456
21457 # convert \$build file names to \$host format.
21458 to_host_file_cmd=$lt_cv_to_host_file_cmd
21459
21460 # convert \$build files to toolchain format.
21461 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21462
21463 # An object symbol dumper.
21464 OBJDUMP=$lt_OBJDUMP
21465
21466 # Method to check whether dependent libraries are shared objects.
21467 deplibs_check_method=$lt_deplibs_check_method
21468
21469 # Command to use when deplibs_check_method = "file_magic".
21470 file_magic_cmd=$lt_file_magic_cmd
21471
21472 # How to find potential files when deplibs_check_method = "file_magic".
21473 file_magic_glob=$lt_file_magic_glob
21474
21475 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21476 want_nocaseglob=$lt_want_nocaseglob
21477
21478 # DLL creation program.
21479 DLLTOOL=$lt_DLLTOOL
21480
21481 # Command to associate shared and link libraries.
21482 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21483
21484 # The archiver.
21485 AR=$lt_AR
21486
21487 # Flags to create an archive.
21488 AR_FLAGS=$lt_AR_FLAGS
21489
21490 # How to feed a file listing to the archiver.
21491 archiver_list_spec=$lt_archiver_list_spec
21492
21493 # A symbol stripping program.
21494 STRIP=$lt_STRIP
21495
21496 # Commands used to install an old-style archive.
21497 RANLIB=$lt_RANLIB
21498 old_postinstall_cmds=$lt_old_postinstall_cmds
21499 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21500
21501 # Whether to use a lock for old archive extraction.
21502 lock_old_archive_extraction=$lock_old_archive_extraction
21503
21504 # A C compiler.
21505 LTCC=$lt_CC
21506
21507 # LTCC compiler flags.
21508 LTCFLAGS=$lt_CFLAGS
21509
21510 # Take the output of nm and produce a listing of raw symbols and C names.
21511 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21512
21513 # Transform the output of nm in a proper C declaration.
21514 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21515
21516 # Transform the output of nm into a list of symbols to manually relocate.
21517 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21518
21519 # Transform the output of nm in a C name address pair.
21520 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21521
21522 # Transform the output of nm in a C name address pair when lib prefix is needed.
21523 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21524
21525 # The name lister interface.
21526 nm_interface=$lt_lt_cv_nm_interface
21527
21528 # Specify filename containing input files for \$NM.
21529 nm_file_list_spec=$lt_nm_file_list_spec
21530
21531 # The root where to search for dependent libraries,and where our libraries should be installed.
21532 lt_sysroot=$lt_sysroot
21533
21534 # Command to truncate a binary pipe.
21535 lt_truncate_bin=$lt_lt_cv_truncate_bin
21536
21537 # The name of the directory that contains temporary libtool files.
21538 objdir=$objdir
21539
21540 # Used to examine libraries when file_magic_cmd begins with "file".
21541 MAGIC_CMD=$MAGIC_CMD
21542
21543 # Must we lock files when doing compilation?
21544 need_locks=$lt_need_locks
21545
21546 # Manifest tool.
21547 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21548
21549 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21550 DSYMUTIL=$lt_DSYMUTIL
21551
21552 # Tool to change global to local symbols on Mac OS X.
21553 NMEDIT=$lt_NMEDIT
21554
21555 # Tool to manipulate fat objects and archives on Mac OS X.
21556 LIPO=$lt_LIPO
21557
21558 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21559 OTOOL=$lt_OTOOL
21560
21561 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21562 OTOOL64=$lt_OTOOL64
21563
21564 # Old archive suffix (normally "a").
21565 libext=$libext
21566
21567 # Shared library suffix (normally ".so").
21568 shrext_cmds=$lt_shrext_cmds
21569
21570 # The commands to extract the exported symbol list from a shared archive.
21571 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21572
21573 # Variables whose values should be saved in libtool wrapper scripts and
21574 # restored at link time.
21575 variables_saved_for_relink=$lt_variables_saved_for_relink
21576
21577 # Do we need the "lib" prefix for modules?
21578 need_lib_prefix=$need_lib_prefix
21579
21580 # Do we need a version for libraries?
21581 need_version=$need_version
21582
21583 # Library versioning type.
21584 version_type=$version_type
21585
21586 # Shared library runtime path variable.
21587 runpath_var=$runpath_var
21588
21589 # Shared library path variable.
21590 shlibpath_var=$shlibpath_var
21591
21592 # Is shlibpath searched before the hard-coded library search path?
21593 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21594
21595 # Format of library name prefix.
21596 libname_spec=$lt_libname_spec
21597
21598 # List of archive names. First name is the real one, the rest are links.
21599 # The last name is the one that the linker finds with -lNAME
21600 library_names_spec=$lt_library_names_spec
21601
21602 # The coded name of the library, if different from the real name.
21603 soname_spec=$lt_soname_spec
21604
21605 # Permission mode override for installation of shared libraries.
21606 install_override_mode=$lt_install_override_mode
21607
21608 # Command to use after installation of a shared archive.
21609 postinstall_cmds=$lt_postinstall_cmds
21610
21611 # Command to use after uninstallation of a shared archive.
21612 postuninstall_cmds=$lt_postuninstall_cmds
21613
21614 # Commands used to finish a libtool library installation in a directory.
21615 finish_cmds=$lt_finish_cmds
21616
21617 # As "finish_cmds", except a single script fragment to be evaled but
21618 # not shown.
21619 finish_eval=$lt_finish_eval
21620
21621 # Whether we should hardcode library paths into libraries.
21622 hardcode_into_libs=$hardcode_into_libs
21623
21624 # Compile-time system search path for libraries.
21625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21626
21627 # Detected run-time system search path for libraries.
21628 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21629
21630 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21631 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21632
21633 # Whether dlopen is supported.
21634 dlopen_support=$enable_dlopen
21635
21636 # Whether dlopen of programs is supported.
21637 dlopen_self=$enable_dlopen_self
21638
21639 # Whether dlopen of statically linked programs is supported.
21640 dlopen_self_static=$enable_dlopen_self_static
21641
21642 # Commands to strip libraries.
21643 old_striplib=$lt_old_striplib
21644 striplib=$lt_striplib
21645
21646
21647 # The linker used to build libraries.
21648 LD=$lt_LD
21649
21650 # How to create reloadable object files.
21651 reload_flag=$lt_reload_flag
21652 reload_cmds=$lt_reload_cmds
21653
21654 # Commands used to build an old-style archive.
21655 old_archive_cmds=$lt_old_archive_cmds
21656
21657 # A language specific compiler.
21658 CC=$lt_compiler
21659
21660 # Is the compiler the GNU compiler?
21661 with_gcc=$GCC
21662
21663 # Compiler flag to turn off builtin functions.
21664 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21665
21666 # Additional compiler flags for building library objects.
21667 pic_flag=$lt_lt_prog_compiler_pic
21668
21669 # How to pass a linker flag through the compiler.
21670 wl=$lt_lt_prog_compiler_wl
21671
21672 # Compiler flag to prevent dynamic linking.
21673 link_static_flag=$lt_lt_prog_compiler_static
21674
21675 # Does compiler simultaneously support -c and -o options?
21676 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21677
21678 # Whether or not to add -lc for building shared libraries.
21679 build_libtool_need_lc=$archive_cmds_need_lc
21680
21681 # Whether or not to disallow shared libs when runtime libs are static.
21682 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21683
21684 # Compiler flag to allow reflexive dlopens.
21685 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21686
21687 # Compiler flag to generate shared objects directly from archives.
21688 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21689
21690 # Whether the compiler copes with passing no objects directly.
21691 compiler_needs_object=$lt_compiler_needs_object
21692
21693 # Create an old-style archive from a shared archive.
21694 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21695
21696 # Create a temporary old-style archive to link instead of a shared archive.
21697 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21698
21699 # Commands used to build a shared archive.
21700 archive_cmds=$lt_archive_cmds
21701 archive_expsym_cmds=$lt_archive_expsym_cmds
21702
21703 # Commands used to build a loadable module if different from building
21704 # a shared archive.
21705 module_cmds=$lt_module_cmds
21706 module_expsym_cmds=$lt_module_expsym_cmds
21707
21708 # Whether we are building with GNU ld or not.
21709 with_gnu_ld=$lt_with_gnu_ld
21710
21711 # Flag that allows shared libraries with undefined symbols to be built.
21712 allow_undefined_flag=$lt_allow_undefined_flag
21713
21714 # Flag that enforces no undefined symbols.
21715 no_undefined_flag=$lt_no_undefined_flag
21716
21717 # Flag to hardcode \$libdir into a binary during linking.
21718 # This must work even if \$libdir does not exist
21719 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21720
21721 # Whether we need a single "-rpath" flag with a separated argument.
21722 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21723
21724 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21725 # DIR into the resulting binary.
21726 hardcode_direct=$hardcode_direct
21727
21728 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21729 # DIR into the resulting binary and the resulting library dependency is
21730 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21731 # library is relocated.
21732 hardcode_direct_absolute=$hardcode_direct_absolute
21733
21734 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21735 # into the resulting binary.
21736 hardcode_minus_L=$hardcode_minus_L
21737
21738 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21739 # into the resulting binary.
21740 hardcode_shlibpath_var=$hardcode_shlibpath_var
21741
21742 # Set to "yes" if building a shared library automatically hardcodes DIR
21743 # into the library and all subsequent libraries and executables linked
21744 # against it.
21745 hardcode_automatic=$hardcode_automatic
21746
21747 # Set to yes if linker adds runtime paths of dependent libraries
21748 # to runtime path list.
21749 inherit_rpath=$inherit_rpath
21750
21751 # Whether libtool must link a program against all its dependency libraries.
21752 link_all_deplibs=$link_all_deplibs
21753
21754 # Set to "yes" if exported symbols are required.
21755 always_export_symbols=$always_export_symbols
21756
21757 # The commands to list exported symbols.
21758 export_symbols_cmds=$lt_export_symbols_cmds
21759
21760 # Symbols that should not be listed in the preloaded symbols.
21761 exclude_expsyms=$lt_exclude_expsyms
21762
21763 # Symbols that must always be exported.
21764 include_expsyms=$lt_include_expsyms
21765
21766 # Commands necessary for linking programs (against libraries) with templates.
21767 prelink_cmds=$lt_prelink_cmds
21768
21769 # Commands necessary for finishing linking programs.
21770 postlink_cmds=$lt_postlink_cmds
21771
21772 # Specify filename containing input files.
21773 file_list_spec=$lt_file_list_spec
21774
21775 # How to hardcode a shared library path into an executable.
21776 hardcode_action=$hardcode_action
21777
21778 # The directories searched by this compiler when creating a shared library.
21779 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21780
21781 # Dependencies to place before and after the objects being linked to
21782 # create a shared library.
21783 predep_objects=$lt_predep_objects
21784 postdep_objects=$lt_postdep_objects
21785 predeps=$lt_predeps
21786 postdeps=$lt_postdeps
21787
21788 # The library search path used internally by the compiler when linking
21789 # a shared library.
21790 compiler_lib_search_path=$lt_compiler_lib_search_path
21791
21792 # ### END LIBTOOL CONFIG
21793
21794 _LT_EOF
21795
21796 cat <<'_LT_EOF' >> "$cfgfile"
21797
21798 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
21799
21800 # func_munge_path_list VARIABLE PATH
21801 # -----------------------------------
21802 # VARIABLE is name of variable containing _space_ separated list of
21803 # directories to be munged by the contents of PATH, which is string
21804 # having a format:
21805 # "DIR[:DIR]:"
21806 # string "DIR[ DIR]" will be prepended to VARIABLE
21807 # ":DIR[:DIR]"
21808 # string "DIR[ DIR]" will be appended to VARIABLE
21809 # "DIRP[:DIRP]::[DIRA:]DIRA"
21810 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
21811 # "DIRA[ DIRA]" will be appended to VARIABLE
21812 # "DIR[:DIR]"
21813 # VARIABLE will be replaced by "DIR[ DIR]"
21814 func_munge_path_list ()
21815 {
21816 case x$2 in
21817 x)
21818 ;;
21819 *:)
21820 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
21821 ;;
21822 x:*)
21823 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
21824 ;;
21825 *::*)
21826 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
21827 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
21828 ;;
21829 *)
21830 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
21831 ;;
21832 esac
21833 }
21834
21835
21836 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
21837 func_cc_basename ()
21838 {
21839 for cc_temp in $*""; do
21840 case $cc_temp in
21841 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21842 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21843 \-*) ;;
21844 *) break;;
21845 esac
21846 done
21847 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
21848 }
21849
21850
21851 # ### END FUNCTIONS SHARED WITH CONFIGURE
21852
21853 _LT_EOF
21854
21855 case $host_os in
21856 aix3*)
21857 cat <<\_LT_EOF >> "$cfgfile"
21858 # AIX sometimes has problems with the GCC collect2 program. For some
21859 # reason, if we set the COLLECT_NAMES environment variable, the problems
21860 # vanish in a puff of smoke.
21861 if test set != "${COLLECT_NAMES+set}"; then
21862 COLLECT_NAMES=
21863 export COLLECT_NAMES
21864 fi
21865 _LT_EOF
21866 ;;
21867 esac
21868
21869
21870 ltmain=$ac_aux_dir/ltmain.sh
21871
21872
21873 # We use sed instead of cat because bash on DJGPP gets confused if
21874 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21875 # text mode, it properly converts lines to CR/LF. This bash problem
21876 # is reportedly fixed, but why not run on old versions too?
21877 sed '$q' "$ltmain" >> "$cfgfile" \
21878 || (rm -f "$cfgfile"; exit 1)
21879
21880 mv -f "$cfgfile" "$ofile" ||
21881 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21882 chmod +x "$ofile"
21883
21884
21885 cat <<_LT_EOF >> "$ofile"
21886
21887 # ### BEGIN LIBTOOL TAG CONFIG: CXX
21888
21889 # The linker used to build libraries.
21890 LD=$lt_LD_CXX
21891
21892 # How to create reloadable object files.
21893 reload_flag=$lt_reload_flag_CXX
21894 reload_cmds=$lt_reload_cmds_CXX
21895
21896 # Commands used to build an old-style archive.
21897 old_archive_cmds=$lt_old_archive_cmds_CXX
21898
21899 # A language specific compiler.
21900 CC=$lt_compiler_CXX
21901
21902 # Is the compiler the GNU compiler?
21903 with_gcc=$GCC_CXX
21904
21905 # Compiler flag to turn off builtin functions.
21906 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
21907
21908 # Additional compiler flags for building library objects.
21909 pic_flag=$lt_lt_prog_compiler_pic_CXX
21910
21911 # How to pass a linker flag through the compiler.
21912 wl=$lt_lt_prog_compiler_wl_CXX
21913
21914 # Compiler flag to prevent dynamic linking.
21915 link_static_flag=$lt_lt_prog_compiler_static_CXX
21916
21917 # Does compiler simultaneously support -c and -o options?
21918 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
21919
21920 # Whether or not to add -lc for building shared libraries.
21921 build_libtool_need_lc=$archive_cmds_need_lc_CXX
21922
21923 # Whether or not to disallow shared libs when runtime libs are static.
21924 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
21925
21926 # Compiler flag to allow reflexive dlopens.
21927 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
21928
21929 # Compiler flag to generate shared objects directly from archives.
21930 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
21931
21932 # Whether the compiler copes with passing no objects directly.
21933 compiler_needs_object=$lt_compiler_needs_object_CXX
21934
21935 # Create an old-style archive from a shared archive.
21936 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
21937
21938 # Create a temporary old-style archive to link instead of a shared archive.
21939 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
21940
21941 # Commands used to build a shared archive.
21942 archive_cmds=$lt_archive_cmds_CXX
21943 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
21944
21945 # Commands used to build a loadable module if different from building
21946 # a shared archive.
21947 module_cmds=$lt_module_cmds_CXX
21948 module_expsym_cmds=$lt_module_expsym_cmds_CXX
21949
21950 # Whether we are building with GNU ld or not.
21951 with_gnu_ld=$lt_with_gnu_ld_CXX
21952
21953 # Flag that allows shared libraries with undefined symbols to be built.
21954 allow_undefined_flag=$lt_allow_undefined_flag_CXX
21955
21956 # Flag that enforces no undefined symbols.
21957 no_undefined_flag=$lt_no_undefined_flag_CXX
21958
21959 # Flag to hardcode \$libdir into a binary during linking.
21960 # This must work even if \$libdir does not exist
21961 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
21962
21963 # Whether we need a single "-rpath" flag with a separated argument.
21964 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
21965
21966 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21967 # DIR into the resulting binary.
21968 hardcode_direct=$hardcode_direct_CXX
21969
21970 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
21971 # DIR into the resulting binary and the resulting library dependency is
21972 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
21973 # library is relocated.
21974 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
21975
21976 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21977 # into the resulting binary.
21978 hardcode_minus_L=$hardcode_minus_L_CXX
21979
21980 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21981 # into the resulting binary.
21982 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
21983
21984 # Set to "yes" if building a shared library automatically hardcodes DIR
21985 # into the library and all subsequent libraries and executables linked
21986 # against it.
21987 hardcode_automatic=$hardcode_automatic_CXX
21988
21989 # Set to yes if linker adds runtime paths of dependent libraries
21990 # to runtime path list.
21991 inherit_rpath=$inherit_rpath_CXX
21992
21993 # Whether libtool must link a program against all its dependency libraries.
21994 link_all_deplibs=$link_all_deplibs_CXX
21995
21996 # Set to "yes" if exported symbols are required.
21997 always_export_symbols=$always_export_symbols_CXX
21998
21999 # The commands to list exported symbols.
22000 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22001
22002 # Symbols that should not be listed in the preloaded symbols.
22003 exclude_expsyms=$lt_exclude_expsyms_CXX
22004
22005 # Symbols that must always be exported.
22006 include_expsyms=$lt_include_expsyms_CXX
22007
22008 # Commands necessary for linking programs (against libraries) with templates.
22009 prelink_cmds=$lt_prelink_cmds_CXX
22010
22011 # Commands necessary for finishing linking programs.
22012 postlink_cmds=$lt_postlink_cmds_CXX
22013
22014 # Specify filename containing input files.
22015 file_list_spec=$lt_file_list_spec_CXX
22016
22017 # How to hardcode a shared library path into an executable.
22018 hardcode_action=$hardcode_action_CXX
22019
22020 # The directories searched by this compiler when creating a shared library.
22021 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22022
22023 # Dependencies to place before and after the objects being linked to
22024 # create a shared library.
22025 predep_objects=$lt_predep_objects_CXX
22026 postdep_objects=$lt_postdep_objects_CXX
22027 predeps=$lt_predeps_CXX
22028 postdeps=$lt_postdeps_CXX
22029
22030 # The library search path used internally by the compiler when linking
22031 # a shared library.
22032 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22033
22034 # ### END LIBTOOL TAG CONFIG: CXX
22035 _LT_EOF
22036
22037 ;;
22038 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22039 # Older Autoconf quotes --file arguments for eval, but not when files
22040 # are listed without --file. Let's play safe and only enable the eval
22041 # if we detect the quoting.
22042 case $CONFIG_FILES in
22043 *\'*) eval set x "$CONFIG_FILES" ;;
22044 *) set x $CONFIG_FILES ;;
22045 esac
22046 shift
22047 for mf
22048 do
22049 # Strip MF so we end up with the name of the file.
22050 mf=`echo "$mf" | sed -e 's/:.*$//'`
22051 # Check whether this is an Automake generated Makefile or not.
22052 # We used to match only the files named 'Makefile.in', but
22053 # some people rename them; so instead we look at the file content.
22054 # Grep'ing the first line is not enough: some people post-process
22055 # each Makefile.in and add a new line on top of each file to say so.
22056 # Grep'ing the whole file is not good either: AIX grep has a line
22057 # limit of 2048, but all sed's we know have understand at least 4000.
22058 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22059 dirpart=`$as_dirname -- "$mf" ||
22060 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22061 X"$mf" : 'X\(//\)[^/]' \| \
22062 X"$mf" : 'X\(//\)$' \| \
22063 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22064 $as_echo X"$mf" |
22065 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22066 s//\1/
22067 q
22068 }
22069 /^X\(\/\/\)[^/].*/{
22070 s//\1/
22071 q
22072 }
22073 /^X\(\/\/\)$/{
22074 s//\1/
22075 q
22076 }
22077 /^X\(\/\).*/{
22078 s//\1/
22079 q
22080 }
22081 s/.*/./; q'`
22082 else
22083 continue
22084 fi
22085 # Extract the definition of DEPDIR, am__include, and am__quote
22086 # from the Makefile without running 'make'.
22087 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22088 test -z "$DEPDIR" && continue
22089 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22090 test -z "$am__include" && continue
22091 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22092 # Find all dependency output files, they are included files with
22093 # $(DEPDIR) in their names. We invoke sed twice because it is the
22094 # simplest approach to changing $(DEPDIR) to its actual value in the
22095 # expansion.
22096 for file in `sed -n "
22097 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22098 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22099 # Make sure the directory exists.
22100 test -f "$dirpart/$file" && continue
22101 fdir=`$as_dirname -- "$file" ||
22102 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22103 X"$file" : 'X\(//\)[^/]' \| \
22104 X"$file" : 'X\(//\)$' \| \
22105 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22106 $as_echo X"$file" |
22107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22108 s//\1/
22109 q
22110 }
22111 /^X\(\/\/\)[^/].*/{
22112 s//\1/
22113 q
22114 }
22115 /^X\(\/\/\)$/{
22116 s//\1/
22117 q
22118 }
22119 /^X\(\/\).*/{
22120 s//\1/
22121 q
22122 }
22123 s/.*/./; q'`
22124 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22125 # echo "creating $dirpart/$file"
22126 echo '# dummy' > "$dirpart/$file"
22127 done
22128 done
22129 }
22130 ;;
22131
22132 esac
22133 done # for ac_tag
22134
22135
22136 as_fn_exit 0
22137 _ACEOF
22138 ac_clean_files=$ac_clean_files_save
22139
22140 test $ac_write_fail = 0 ||
22141 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22142
22143
22144 # configure is writing to config.log, and then calls config.status.
22145 # config.status does its own redirection, appending to config.log.
22146 # Unfortunately, on DOS this fails, as config.log is still kept open
22147 # by configure, so config.status won't be able to write to it; its
22148 # output is simply discarded. So we exec the FD to /dev/null,
22149 # effectively closing config.log, so it can be properly (re)opened and
22150 # appended to by config.status. When coming back to configure, we
22151 # need to make the FD available again.
22152 if test "$no_create" != yes; then
22153 ac_cs_success=:
22154 ac_config_status_args=
22155 test "$silent" = yes &&
22156 ac_config_status_args="$ac_config_status_args --quiet"
22157 exec 5>/dev/null
22158 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22159 exec 5>>config.log
22160 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22161 # would make configure fail if this is the last instruction.
22162 $ac_cs_success || as_fn_exit 1
22163 fi
22164 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22166 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22167 fi
22168
+0
-757
dec265/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91 bin_PROGRAMS = dec265$(EXEEXT) hdrcopy$(EXEEXT)
92 @HAVE_VIDEOGFX_TRUE@am__append_1 = $(VIDEOGFX_CFLAGS)
93 @HAVE_VIDEOGFX_TRUE@am__append_2 = $(VIDEOGFX_LIBS)
94 @HAVE_SDL_TRUE@am__append_3 = $(SDL_CFLAGS)
95 @HAVE_SDL_TRUE@am__append_4 = $(SDL_LIBS)
96 @HAVE_SDL_TRUE@am__append_5 = sdl.cc sdl.hh
97 @MINGW_TRUE@am__append_6 = -static-libgcc -static-libstdc++
98 subdir = dec265
99 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
100 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
101 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
102 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
103 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
104 $(top_srcdir)/m4/lt~obsolete.m4 \
105 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
106 $(top_srcdir)/configure.ac
107 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
108 $(ACLOCAL_M4)
109 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
110 mkinstalldirs = $(install_sh) -d
111 CONFIG_HEADER = $(top_builddir)/config.h
112 CONFIG_CLEAN_FILES =
113 CONFIG_CLEAN_VPATH_FILES =
114 am__installdirs = "$(DESTDIR)$(bindir)"
115 PROGRAMS = $(bin_PROGRAMS)
116 am__dec265_SOURCES_DIST = dec265.cc sdl.cc sdl.hh
117 @HAVE_SDL_TRUE@am__objects_1 = dec265-sdl.$(OBJEXT)
118 am_dec265_OBJECTS = dec265-dec265.$(OBJEXT) $(am__objects_1)
119 dec265_OBJECTS = $(am_dec265_OBJECTS)
120 AM_V_lt = $(am__v_lt_@AM_V@)
121 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
122 am__v_lt_0 = --silent
123 am__v_lt_1 =
124 dec265_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
125 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(dec265_CXXFLAGS) \
126 $(CXXFLAGS) $(dec265_LDFLAGS) $(LDFLAGS) -o $@
127 am_hdrcopy_OBJECTS = hdrcopy-hdrcopy.$(OBJEXT)
128 hdrcopy_OBJECTS = $(am_hdrcopy_OBJECTS)
129 hdrcopy_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
130 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(hdrcopy_CXXFLAGS) \
131 $(CXXFLAGS) $(hdrcopy_LDFLAGS) $(LDFLAGS) -o $@
132 AM_V_P = $(am__v_P_@AM_V@)
133 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
134 am__v_P_0 = false
135 am__v_P_1 = :
136 AM_V_GEN = $(am__v_GEN_@AM_V@)
137 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
138 am__v_GEN_0 = @echo " GEN " $@;
139 am__v_GEN_1 =
140 AM_V_at = $(am__v_at_@AM_V@)
141 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
142 am__v_at_0 = @
143 am__v_at_1 =
144 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
145 depcomp = $(SHELL) $(top_srcdir)/depcomp
146 am__depfiles_maybe = depfiles
147 am__mv = mv -f
148 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
149 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
150 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
151 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
152 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
153 $(AM_CXXFLAGS) $(CXXFLAGS)
154 AM_V_CXX = $(am__v_CXX_@AM_V@)
155 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
156 am__v_CXX_0 = @echo " CXX " $@;
157 am__v_CXX_1 =
158 CXXLD = $(CXX)
159 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
160 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
161 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
162 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
163 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
164 am__v_CXXLD_0 = @echo " CXXLD " $@;
165 am__v_CXXLD_1 =
166 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
167 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
168 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
169 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
170 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
171 $(AM_CFLAGS) $(CFLAGS)
172 AM_V_CC = $(am__v_CC_@AM_V@)
173 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
174 am__v_CC_0 = @echo " CC " $@;
175 am__v_CC_1 =
176 CCLD = $(CC)
177 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
178 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
179 $(AM_LDFLAGS) $(LDFLAGS) -o $@
180 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
181 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
182 am__v_CCLD_0 = @echo " CCLD " $@;
183 am__v_CCLD_1 =
184 SOURCES = $(dec265_SOURCES) $(hdrcopy_SOURCES)
185 DIST_SOURCES = $(am__dec265_SOURCES_DIST) $(hdrcopy_SOURCES)
186 am__can_run_installinfo = \
187 case $$AM_UPDATE_INFO_DIR in \
188 n|no|NO) false;; \
189 *) (install-info --version) >/dev/null 2>&1;; \
190 esac
191 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
192 # Read a list of newline-separated strings from the standard input,
193 # and print each of them once, without duplicates. Input order is
194 # *not* preserved.
195 am__uniquify_input = $(AWK) '\
196 BEGIN { nonempty = 0; } \
197 { items[$$0] = 1; nonempty = 1; } \
198 END { if (nonempty) { for (i in items) print i; }; } \
199 '
200 # Make sure the list of sources is unique. This is necessary because,
201 # e.g., the same source file might be shared among _SOURCES variables
202 # for different programs/libraries.
203 am__define_uniq_tagged_files = \
204 list='$(am__tagged_files)'; \
205 unique=`for i in $$list; do \
206 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
207 done | $(am__uniquify_input)`
208 ETAGS = etags
209 CTAGS = ctags
210 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp COPYING
211 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
212 ACLOCAL = @ACLOCAL@
213 ALLOCA = @ALLOCA@
214 AMTAR = @AMTAR@
215 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
216 AR = @AR@
217 AUTOCONF = @AUTOCONF@
218 AUTOHEADER = @AUTOHEADER@
219 AUTOMAKE = @AUTOMAKE@
220 AWK = @AWK@
221 CC = @CC@
222 CCAS = @CCAS@
223 CCASDEPMODE = @CCASDEPMODE@
224 CCASFLAGS = @CCASFLAGS@
225 CCDEPMODE = @CCDEPMODE@
226 CFLAGS = @CFLAGS@
227 CPP = @CPP@
228 CPPFLAGS = @CPPFLAGS@
229 CXX = @CXX@
230 CXXCPP = @CXXCPP@
231 CXXDEPMODE = @CXXDEPMODE@
232 CXXFLAGS = @CXXFLAGS@
233 CYGPATH_W = @CYGPATH_W@
234 DEFS = @DEFS@
235 DEPDIR = @DEPDIR@
236 DLLTOOL = @DLLTOOL@
237 DSYMUTIL = @DSYMUTIL@
238 DUMPBIN = @DUMPBIN@
239 ECHO_C = @ECHO_C@
240 ECHO_N = @ECHO_N@
241 ECHO_T = @ECHO_T@
242 EGREP = @EGREP@
243 EXEEXT = @EXEEXT@
244 FGREP = @FGREP@
245 GREP = @GREP@
246 HAVE_CXX11 = @HAVE_CXX11@
247 INSTALL = @INSTALL@
248 INSTALL_DATA = @INSTALL_DATA@
249 INSTALL_PROGRAM = @INSTALL_PROGRAM@
250 INSTALL_SCRIPT = @INSTALL_SCRIPT@
251 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
252 LD = @LD@
253 LDFLAGS = @LDFLAGS@
254 LIBDE265_AGE = @LIBDE265_AGE@
255 LIBDE265_CURRENT = @LIBDE265_CURRENT@
256 LIBDE265_REVISION = @LIBDE265_REVISION@
257 LIBOBJS = @LIBOBJS@
258 LIBS = @LIBS@
259 LIBTOOL = @LIBTOOL@
260 LIPO = @LIPO@
261 LN_S = @LN_S@
262 LTLIBOBJS = @LTLIBOBJS@
263 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
264 MAKEINFO = @MAKEINFO@
265 MANIFEST_TOOL = @MANIFEST_TOOL@
266 MKDIR_P = @MKDIR_P@
267 NM = @NM@
268 NMEDIT = @NMEDIT@
269 NUMERIC_VERSION = @NUMERIC_VERSION@
270 OBJDUMP = @OBJDUMP@
271 OBJEXT = @OBJEXT@
272 OTOOL = @OTOOL@
273 OTOOL64 = @OTOOL64@
274 PACKAGE = @PACKAGE@
275 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
276 PACKAGE_NAME = @PACKAGE_NAME@
277 PACKAGE_STRING = @PACKAGE_STRING@
278 PACKAGE_TARNAME = @PACKAGE_TARNAME@
279 PACKAGE_URL = @PACKAGE_URL@
280 PACKAGE_VERSION = @PACKAGE_VERSION@
281 PATH_SEPARATOR = @PATH_SEPARATOR@
282 PKG_CONFIG = @PKG_CONFIG@
283 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
284 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
285 QTCHOOSER = @QTCHOOSER@
286 QTMOC = @QTMOC@
287 QT_CFLAGS = @QT_CFLAGS@
288 QT_LIBS = @QT_LIBS@
289 RANLIB = @RANLIB@
290 SDL_CFLAGS = @SDL_CFLAGS@
291 SDL_LIBS = @SDL_LIBS@
292 SED = @SED@
293 SET_MAKE = @SET_MAKE@
294 SHELL = @SHELL@
295 STRIP = @STRIP@
296 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
297 SWSCALE_LIBS = @SWSCALE_LIBS@
298 VERSION = @VERSION@
299 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
300 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
301 abs_builddir = @abs_builddir@
302 abs_srcdir = @abs_srcdir@
303 abs_top_builddir = @abs_top_builddir@
304 abs_top_srcdir = @abs_top_srcdir@
305 ac_ct_AR = @ac_ct_AR@
306 ac_ct_CC = @ac_ct_CC@
307 ac_ct_CXX = @ac_ct_CXX@
308 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
309 am__include = @am__include@
310 am__leading_dot = @am__leading_dot@
311 am__quote = @am__quote@
312 am__tar = @am__tar@
313 am__untar = @am__untar@
314 bindir = @bindir@
315 build = @build@
316 build_alias = @build_alias@
317 build_cpu = @build_cpu@
318 build_os = @build_os@
319 build_vendor = @build_vendor@
320 builddir = @builddir@
321 datadir = @datadir@
322 datarootdir = @datarootdir@
323 docdir = @docdir@
324 dvidir = @dvidir@
325 exec_prefix = @exec_prefix@
326 host = @host@
327 host_alias = @host_alias@
328 host_cpu = @host_cpu@
329 host_os = @host_os@
330 host_vendor = @host_vendor@
331 htmldir = @htmldir@
332 includedir = @includedir@
333 infodir = @infodir@
334 install_sh = @install_sh@
335 libdir = @libdir@
336 libexecdir = @libexecdir@
337 localedir = @localedir@
338 localstatedir = @localstatedir@
339 mandir = @mandir@
340 mkdir_p = @mkdir_p@
341 oldincludedir = @oldincludedir@
342 pdfdir = @pdfdir@
343 prefix = @prefix@
344 program_transform_name = @program_transform_name@
345 psdir = @psdir@
346 runstatedir = @runstatedir@
347 sbindir = @sbindir@
348 sharedstatedir = @sharedstatedir@
349 srcdir = @srcdir@
350 sysconfdir = @sysconfdir@
351 target = @target@
352 target_alias = @target_alias@
353 target_cpu = @target_cpu@
354 target_os = @target_os@
355 target_vendor = @target_vendor@
356 top_build_prefix = @top_build_prefix@
357 top_builddir = @top_builddir@
358 top_srcdir = @top_srcdir@
359 AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir)
360 dec265_DEPENDENCIES = ../libde265/libde265.la
361 dec265_CXXFLAGS = $(am__append_1) $(am__append_3)
362 dec265_LDFLAGS = $(am__append_2) $(am__append_4) $(am__append_6)
363 dec265_LDADD = ../libde265/libde265.la -lstdc++
364 dec265_SOURCES = dec265.cc $(am__append_5)
365 hdrcopy_DEPENDENCIES = ../libde265/libde265.la
366 hdrcopy_CXXFLAGS =
367 hdrcopy_LDFLAGS =
368 hdrcopy_LDADD = ../libde265/libde265.la -lstdc++
369 hdrcopy_SOURCES = hdrcopy.cc
370 EXTRA_DIST = Makefile.vc7 \
371 CMakeLists.txt \
372 ../extra/getopt.c \
373 ../extra/getopt.h \
374 ../extra/getopt_long.c
375
376 all: all-am
377
378 .SUFFIXES:
379 .SUFFIXES: .cc .lo .o .obj
380 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
381 @for dep in $?; do \
382 case '$(am__configure_deps)' in \
383 *$$dep*) \
384 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
385 && { if test -f $@; then exit 0; else break; fi; }; \
386 exit 1;; \
387 esac; \
388 done; \
389 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu dec265/Makefile'; \
390 $(am__cd) $(top_srcdir) && \
391 $(AUTOMAKE) --gnu dec265/Makefile
392 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
393 @case '$?' in \
394 *config.status*) \
395 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
396 *) \
397 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
398 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
399 esac;
400
401 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
402 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
403
404 $(top_srcdir)/configure: $(am__configure_deps)
405 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
406 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
407 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
408 $(am__aclocal_m4_deps):
409 install-binPROGRAMS: $(bin_PROGRAMS)
410 @$(NORMAL_INSTALL)
411 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
412 if test -n "$$list"; then \
413 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
414 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
415 fi; \
416 for p in $$list; do echo "$$p $$p"; done | \
417 sed 's/$(EXEEXT)$$//' | \
418 while read p p1; do if test -f $$p \
419 || test -f $$p1 \
420 ; then echo "$$p"; echo "$$p"; else :; fi; \
421 done | \
422 sed -e 'p;s,.*/,,;n;h' \
423 -e 's|.*|.|' \
424 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
425 sed 'N;N;N;s,\n, ,g' | \
426 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
427 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
428 if ($$2 == $$4) files[d] = files[d] " " $$1; \
429 else { print "f", $$3 "/" $$4, $$1; } } \
430 END { for (d in files) print "f", d, files[d] }' | \
431 while read type dir files; do \
432 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
433 test -z "$$files" || { \
434 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
435 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
436 } \
437 ; done
438
439 uninstall-binPROGRAMS:
440 @$(NORMAL_UNINSTALL)
441 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
442 files=`for p in $$list; do echo "$$p"; done | \
443 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
444 -e 's/$$/$(EXEEXT)/' \
445 `; \
446 test -n "$$list" || exit 0; \
447 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
448 cd "$(DESTDIR)$(bindir)" && rm -f $$files
449
450 clean-binPROGRAMS:
451 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
452 echo " rm -f" $$list; \
453 rm -f $$list || exit $$?; \
454 test -n "$(EXEEXT)" || exit 0; \
455 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
456 echo " rm -f" $$list; \
457 rm -f $$list
458
459 dec265$(EXEEXT): $(dec265_OBJECTS) $(dec265_DEPENDENCIES) $(EXTRA_dec265_DEPENDENCIES)
460 @rm -f dec265$(EXEEXT)
461 $(AM_V_CXXLD)$(dec265_LINK) $(dec265_OBJECTS) $(dec265_LDADD) $(LIBS)
462
463 hdrcopy$(EXEEXT): $(hdrcopy_OBJECTS) $(hdrcopy_DEPENDENCIES) $(EXTRA_hdrcopy_DEPENDENCIES)
464 @rm -f hdrcopy$(EXEEXT)
465 $(AM_V_CXXLD)$(hdrcopy_LINK) $(hdrcopy_OBJECTS) $(hdrcopy_LDADD) $(LIBS)
466
467 mostlyclean-compile:
468 -rm -f *.$(OBJEXT)
469
470 distclean-compile:
471 -rm -f *.tab.c
472
473 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dec265-dec265.Po@am__quote@
474 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/dec265-sdl.Po@am__quote@
475 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hdrcopy-hdrcopy.Po@am__quote@
476
477 .cc.o:
478 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
479 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
480 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
481 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
482 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
483
484 .cc.obj:
485 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
486 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
487 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
488 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
489 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
490
491 .cc.lo:
492 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
493 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
494 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
495 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
496 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
497
498 dec265-dec265.o: dec265.cc
499 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dec265_CXXFLAGS) $(CXXFLAGS) -MT dec265-dec265.o -MD -MP -MF $(DEPDIR)/dec265-dec265.Tpo -c -o dec265-dec265.o `test -f 'dec265.cc' || echo '$(srcdir)/'`dec265.cc
500 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dec265-dec265.Tpo $(DEPDIR)/dec265-dec265.Po
501 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dec265.cc' object='dec265-dec265.o' libtool=no @AMDEPBACKSLASH@
502 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
503 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dec265_CXXFLAGS) $(CXXFLAGS) -c -o dec265-dec265.o `test -f 'dec265.cc' || echo '$(srcdir)/'`dec265.cc
504
505 dec265-dec265.obj: dec265.cc
506 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dec265_CXXFLAGS) $(CXXFLAGS) -MT dec265-dec265.obj -MD -MP -MF $(DEPDIR)/dec265-dec265.Tpo -c -o dec265-dec265.obj `if test -f 'dec265.cc'; then $(CYGPATH_W) 'dec265.cc'; else $(CYGPATH_W) '$(srcdir)/dec265.cc'; fi`
507 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dec265-dec265.Tpo $(DEPDIR)/dec265-dec265.Po
508 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dec265.cc' object='dec265-dec265.obj' libtool=no @AMDEPBACKSLASH@
509 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
510 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dec265_CXXFLAGS) $(CXXFLAGS) -c -o dec265-dec265.obj `if test -f 'dec265.cc'; then $(CYGPATH_W) 'dec265.cc'; else $(CYGPATH_W) '$(srcdir)/dec265.cc'; fi`
511
512 dec265-sdl.o: sdl.cc
513 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dec265_CXXFLAGS) $(CXXFLAGS) -MT dec265-sdl.o -MD -MP -MF $(DEPDIR)/dec265-sdl.Tpo -c -o dec265-sdl.o `test -f 'sdl.cc' || echo '$(srcdir)/'`sdl.cc
514 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dec265-sdl.Tpo $(DEPDIR)/dec265-sdl.Po
515 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sdl.cc' object='dec265-sdl.o' libtool=no @AMDEPBACKSLASH@
516 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
517 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dec265_CXXFLAGS) $(CXXFLAGS) -c -o dec265-sdl.o `test -f 'sdl.cc' || echo '$(srcdir)/'`sdl.cc
518
519 dec265-sdl.obj: sdl.cc
520 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dec265_CXXFLAGS) $(CXXFLAGS) -MT dec265-sdl.obj -MD -MP -MF $(DEPDIR)/dec265-sdl.Tpo -c -o dec265-sdl.obj `if test -f 'sdl.cc'; then $(CYGPATH_W) 'sdl.cc'; else $(CYGPATH_W) '$(srcdir)/sdl.cc'; fi`
521 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/dec265-sdl.Tpo $(DEPDIR)/dec265-sdl.Po
522 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sdl.cc' object='dec265-sdl.obj' libtool=no @AMDEPBACKSLASH@
523 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
524 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(dec265_CXXFLAGS) $(CXXFLAGS) -c -o dec265-sdl.obj `if test -f 'sdl.cc'; then $(CYGPATH_W) 'sdl.cc'; else $(CYGPATH_W) '$(srcdir)/sdl.cc'; fi`
525
526 hdrcopy-hdrcopy.o: hdrcopy.cc
527 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hdrcopy_CXXFLAGS) $(CXXFLAGS) -MT hdrcopy-hdrcopy.o -MD -MP -MF $(DEPDIR)/hdrcopy-hdrcopy.Tpo -c -o hdrcopy-hdrcopy.o `test -f 'hdrcopy.cc' || echo '$(srcdir)/'`hdrcopy.cc
528 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hdrcopy-hdrcopy.Tpo $(DEPDIR)/hdrcopy-hdrcopy.Po
529 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='hdrcopy.cc' object='hdrcopy-hdrcopy.o' libtool=no @AMDEPBACKSLASH@
530 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
531 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hdrcopy_CXXFLAGS) $(CXXFLAGS) -c -o hdrcopy-hdrcopy.o `test -f 'hdrcopy.cc' || echo '$(srcdir)/'`hdrcopy.cc
532
533 hdrcopy-hdrcopy.obj: hdrcopy.cc
534 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hdrcopy_CXXFLAGS) $(CXXFLAGS) -MT hdrcopy-hdrcopy.obj -MD -MP -MF $(DEPDIR)/hdrcopy-hdrcopy.Tpo -c -o hdrcopy-hdrcopy.obj `if test -f 'hdrcopy.cc'; then $(CYGPATH_W) 'hdrcopy.cc'; else $(CYGPATH_W) '$(srcdir)/hdrcopy.cc'; fi`
535 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/hdrcopy-hdrcopy.Tpo $(DEPDIR)/hdrcopy-hdrcopy.Po
536 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='hdrcopy.cc' object='hdrcopy-hdrcopy.obj' libtool=no @AMDEPBACKSLASH@
537 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
538 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(hdrcopy_CXXFLAGS) $(CXXFLAGS) -c -o hdrcopy-hdrcopy.obj `if test -f 'hdrcopy.cc'; then $(CYGPATH_W) 'hdrcopy.cc'; else $(CYGPATH_W) '$(srcdir)/hdrcopy.cc'; fi`
539
540 mostlyclean-libtool:
541 -rm -f *.lo
542
543 clean-libtool:
544 -rm -rf .libs _libs
545
546 ID: $(am__tagged_files)
547 $(am__define_uniq_tagged_files); mkid -fID $$unique
548 tags: tags-am
549 TAGS: tags
550
551 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
552 set x; \
553 here=`pwd`; \
554 $(am__define_uniq_tagged_files); \
555 shift; \
556 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
557 test -n "$$unique" || unique=$$empty_fix; \
558 if test $$# -gt 0; then \
559 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
560 "$$@" $$unique; \
561 else \
562 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
563 $$unique; \
564 fi; \
565 fi
566 ctags: ctags-am
567
568 CTAGS: ctags
569 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
570 $(am__define_uniq_tagged_files); \
571 test -z "$(CTAGS_ARGS)$$unique" \
572 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
573 $$unique
574
575 GTAGS:
576 here=`$(am__cd) $(top_builddir) && pwd` \
577 && $(am__cd) $(top_srcdir) \
578 && gtags -i $(GTAGS_ARGS) "$$here"
579 cscopelist: cscopelist-am
580
581 cscopelist-am: $(am__tagged_files)
582 list='$(am__tagged_files)'; \
583 case "$(srcdir)" in \
584 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
585 *) sdir=$(subdir)/$(srcdir) ;; \
586 esac; \
587 for i in $$list; do \
588 if test -f "$$i"; then \
589 echo "$(subdir)/$$i"; \
590 else \
591 echo "$$sdir/$$i"; \
592 fi; \
593 done >> $(top_builddir)/cscope.files
594
595 distclean-tags:
596 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
597
598 distdir: $(DISTFILES)
599 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
600 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
601 list='$(DISTFILES)'; \
602 dist_files=`for file in $$list; do echo $$file; done | \
603 sed -e "s|^$$srcdirstrip/||;t" \
604 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
605 case $$dist_files in \
606 */*) $(MKDIR_P) `echo "$$dist_files" | \
607 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
608 sort -u` ;; \
609 esac; \
610 for file in $$dist_files; do \
611 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
612 if test -d $$d/$$file; then \
613 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
614 if test -d "$(distdir)/$$file"; then \
615 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
616 fi; \
617 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
618 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
619 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
620 fi; \
621 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
622 else \
623 test -f "$(distdir)/$$file" \
624 || cp -p $$d/$$file "$(distdir)/$$file" \
625 || exit 1; \
626 fi; \
627 done
628 check-am: all-am
629 check: check-am
630 all-am: Makefile $(PROGRAMS)
631 installdirs:
632 for dir in "$(DESTDIR)$(bindir)"; do \
633 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
634 done
635 install: install-am
636 install-exec: install-exec-am
637 install-data: install-data-am
638 uninstall: uninstall-am
639
640 install-am: all-am
641 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
642
643 installcheck: installcheck-am
644 install-strip:
645 if test -z '$(STRIP)'; then \
646 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
647 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
648 install; \
649 else \
650 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
651 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
652 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
653 fi
654 mostlyclean-generic:
655
656 clean-generic:
657
658 distclean-generic:
659 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
660 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
661
662 maintainer-clean-generic:
663 @echo "This command is intended for maintainers to use"
664 @echo "it deletes files that may require special tools to rebuild."
665 clean: clean-am
666
667 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
668
669 distclean: distclean-am
670 -rm -rf ./$(DEPDIR)
671 -rm -f Makefile
672 distclean-am: clean-am distclean-compile distclean-generic \
673 distclean-tags
674
675 dvi: dvi-am
676
677 dvi-am:
678
679 html: html-am
680
681 html-am:
682
683 info: info-am
684
685 info-am:
686
687 install-data-am:
688
689 install-dvi: install-dvi-am
690
691 install-dvi-am:
692
693 install-exec-am: install-binPROGRAMS
694
695 install-html: install-html-am
696
697 install-html-am:
698
699 install-info: install-info-am
700
701 install-info-am:
702
703 install-man:
704
705 install-pdf: install-pdf-am
706
707 install-pdf-am:
708
709 install-ps: install-ps-am
710
711 install-ps-am:
712
713 installcheck-am:
714
715 maintainer-clean: maintainer-clean-am
716 -rm -rf ./$(DEPDIR)
717 -rm -f Makefile
718 maintainer-clean-am: distclean-am maintainer-clean-generic
719
720 mostlyclean: mostlyclean-am
721
722 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
723 mostlyclean-libtool
724
725 pdf: pdf-am
726
727 pdf-am:
728
729 ps: ps-am
730
731 ps-am:
732
733 uninstall-am: uninstall-binPROGRAMS
734
735 .MAKE: install-am install-strip
736
737 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
738 clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
739 ctags ctags-am distclean distclean-compile distclean-generic \
740 distclean-libtool distclean-tags distdir dvi dvi-am html \
741 html-am info info-am install install-am install-binPROGRAMS \
742 install-data install-data-am install-dvi install-dvi-am \
743 install-exec install-exec-am install-html install-html-am \
744 install-info install-info-am install-man install-pdf \
745 install-pdf-am install-ps install-ps-am install-strip \
746 installcheck installcheck-am installdirs maintainer-clean \
747 maintainer-clean-generic mostlyclean mostlyclean-compile \
748 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
749 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
750
751 .PRECIOUS: Makefile
752
753
754 # Tell versions [3.59,3.63) of GNU make to not export all variables.
755 # Otherwise a system limit (for SysV at least) may be exceeded.
756 .NOEXPORT:
+0
-791
depcomp less more
0 #! /bin/sh
1 # depcomp - compile a program generating dependencies as side-effects
2
3 scriptversion=2016-01-11.22; # UTC
4
5 # Copyright (C) 1999-2017 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, see <http://www.gnu.org/licenses/>.
19
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that program.
24
25 # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
26
27 case $1 in
28 '')
29 echo "$0: No command. Try '$0 --help' for more information." 1>&2
30 exit 1;
31 ;;
32 -h | --h*)
33 cat <<\EOF
34 Usage: depcomp [--help] [--version] PROGRAM [ARGS]
35
36 Run PROGRAMS ARGS to compile a file, generating dependencies
37 as side-effects.
38
39 Environment variables:
40 depmode Dependency tracking mode.
41 source Source file read by 'PROGRAMS ARGS'.
42 object Object file output by 'PROGRAMS ARGS'.
43 DEPDIR directory where to store dependencies.
44 depfile Dependency file to output.
45 tmpdepfile Temporary file to use when outputting dependencies.
46 libtool Whether libtool is used (yes/no).
47
48 Report bugs to <bug-automake@gnu.org>.
49 EOF
50 exit $?
51 ;;
52 -v | --v*)
53 echo "depcomp $scriptversion"
54 exit $?
55 ;;
56 esac
57
58 # Get the directory component of the given path, and save it in the
59 # global variables '$dir'. Note that this directory component will
60 # be either empty or ending with a '/' character. This is deliberate.
61 set_dir_from ()
62 {
63 case $1 in
64 */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;;
65 *) dir=;;
66 esac
67 }
68
69 # Get the suffix-stripped basename of the given path, and save it the
70 # global variable '$base'.
71 set_base_from ()
72 {
73 base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'`
74 }
75
76 # If no dependency file was actually created by the compiler invocation,
77 # we still have to create a dummy depfile, to avoid errors with the
78 # Makefile "include basename.Plo" scheme.
79 make_dummy_depfile ()
80 {
81 echo "#dummy" > "$depfile"
82 }
83
84 # Factor out some common post-processing of the generated depfile.
85 # Requires the auxiliary global variable '$tmpdepfile' to be set.
86 aix_post_process_depfile ()
87 {
88 # If the compiler actually managed to produce a dependency file,
89 # post-process it.
90 if test -f "$tmpdepfile"; then
91 # Each line is of the form 'foo.o: dependency.h'.
92 # Do two passes, one to just change these to
93 # $object: dependency.h
94 # and one to simply output
95 # dependency.h:
96 # which is needed to avoid the deleted-header problem.
97 { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile"
98 sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile"
99 } > "$depfile"
100 rm -f "$tmpdepfile"
101 else
102 make_dummy_depfile
103 fi
104 }
105
106 # A tabulation character.
107 tab=' '
108 # A newline character.
109 nl='
110 '
111 # Character ranges might be problematic outside the C locale.
112 # These definitions help.
113 upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ
114 lower=abcdefghijklmnopqrstuvwxyz
115 digits=0123456789
116 alpha=${upper}${lower}
117
118 if test -z "$depmode" || test -z "$source" || test -z "$object"; then
119 echo "depcomp: Variables source, object and depmode must be set" 1>&2
120 exit 1
121 fi
122
123 # Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
124 depfile=${depfile-`echo "$object" |
125 sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
126 tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
127
128 rm -f "$tmpdepfile"
129
130 # Avoid interferences from the environment.
131 gccflag= dashmflag=
132
133 # Some modes work just like other modes, but use different flags. We
134 # parameterize here, but still list the modes in the big case below,
135 # to make depend.m4 easier to write. Note that we *cannot* use a case
136 # here, because this file can only contain one case statement.
137 if test "$depmode" = hp; then
138 # HP compiler uses -M and no extra arg.
139 gccflag=-M
140 depmode=gcc
141 fi
142
143 if test "$depmode" = dashXmstdout; then
144 # This is just like dashmstdout with a different argument.
145 dashmflag=-xM
146 depmode=dashmstdout
147 fi
148
149 cygpath_u="cygpath -u -f -"
150 if test "$depmode" = msvcmsys; then
151 # This is just like msvisualcpp but w/o cygpath translation.
152 # Just convert the backslash-escaped backslashes to single forward
153 # slashes to satisfy depend.m4
154 cygpath_u='sed s,\\\\,/,g'
155 depmode=msvisualcpp
156 fi
157
158 if test "$depmode" = msvc7msys; then
159 # This is just like msvc7 but w/o cygpath translation.
160 # Just convert the backslash-escaped backslashes to single forward
161 # slashes to satisfy depend.m4
162 cygpath_u='sed s,\\\\,/,g'
163 depmode=msvc7
164 fi
165
166 if test "$depmode" = xlc; then
167 # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information.
168 gccflag=-qmakedep=gcc,-MF
169 depmode=gcc
170 fi
171
172 case "$depmode" in
173 gcc3)
174 ## gcc 3 implements dependency tracking that does exactly what
175 ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
176 ## it if -MD -MP comes after the -MF stuff. Hmm.
177 ## Unfortunately, FreeBSD c89 acceptance of flags depends upon
178 ## the command line argument order; so add the flags where they
179 ## appear in depend2.am. Note that the slowdown incurred here
180 ## affects only configure: in makefiles, %FASTDEP% shortcuts this.
181 for arg
182 do
183 case $arg in
184 -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
185 *) set fnord "$@" "$arg" ;;
186 esac
187 shift # fnord
188 shift # $arg
189 done
190 "$@"
191 stat=$?
192 if test $stat -ne 0; then
193 rm -f "$tmpdepfile"
194 exit $stat
195 fi
196 mv "$tmpdepfile" "$depfile"
197 ;;
198
199 gcc)
200 ## Note that this doesn't just cater to obsosete pre-3.x GCC compilers.
201 ## but also to in-use compilers like IMB xlc/xlC and the HP C compiler.
202 ## (see the conditional assignment to $gccflag above).
203 ## There are various ways to get dependency output from gcc. Here's
204 ## why we pick this rather obscure method:
205 ## - Don't want to use -MD because we'd like the dependencies to end
206 ## up in a subdir. Having to rename by hand is ugly.
207 ## (We might end up doing this anyway to support other compilers.)
208 ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like
209 ## -MM, not -M (despite what the docs say). Also, it might not be
210 ## supported by the other compilers which use the 'gcc' depmode.
211 ## - Using -M directly means running the compiler twice (even worse
212 ## than renaming).
213 if test -z "$gccflag"; then
214 gccflag=-MD,
215 fi
216 "$@" -Wp,"$gccflag$tmpdepfile"
217 stat=$?
218 if test $stat -ne 0; then
219 rm -f "$tmpdepfile"
220 exit $stat
221 fi
222 rm -f "$depfile"
223 echo "$object : \\" > "$depfile"
224 # The second -e expression handles DOS-style file names with drive
225 # letters.
226 sed -e 's/^[^:]*: / /' \
227 -e 's/^['$alpha']:\/[^:]*: / /' < "$tmpdepfile" >> "$depfile"
228 ## This next piece of magic avoids the "deleted header file" problem.
229 ## The problem is that when a header file which appears in a .P file
230 ## is deleted, the dependency causes make to die (because there is
231 ## typically no way to rebuild the header). We avoid this by adding
232 ## dummy dependencies for each header file. Too bad gcc doesn't do
233 ## this for us directly.
234 ## Some versions of gcc put a space before the ':'. On the theory
235 ## that the space means something, we add a space to the output as
236 ## well. hp depmode also adds that space, but also prefixes the VPATH
237 ## to the object. Take care to not repeat it in the output.
238 ## Some versions of the HPUX 10.20 sed can't process this invocation
239 ## correctly. Breaking it into two sed invocations is a workaround.
240 tr ' ' "$nl" < "$tmpdepfile" \
241 | sed -e 's/^\\$//' -e '/^$/d' -e "s|.*$object$||" -e '/:$/d' \
242 | sed -e 's/$/ :/' >> "$depfile"
243 rm -f "$tmpdepfile"
244 ;;
245
246 hp)
247 # This case exists only to let depend.m4 do its work. It works by
248 # looking at the text of this script. This case will never be run,
249 # since it is checked for above.
250 exit 1
251 ;;
252
253 sgi)
254 if test "$libtool" = yes; then
255 "$@" "-Wp,-MDupdate,$tmpdepfile"
256 else
257 "$@" -MDupdate "$tmpdepfile"
258 fi
259 stat=$?
260 if test $stat -ne 0; then
261 rm -f "$tmpdepfile"
262 exit $stat
263 fi
264 rm -f "$depfile"
265
266 if test -f "$tmpdepfile"; then # yes, the sourcefile depend on other files
267 echo "$object : \\" > "$depfile"
268 # Clip off the initial element (the dependent). Don't try to be
269 # clever and replace this with sed code, as IRIX sed won't handle
270 # lines with more than a fixed number of characters (4096 in
271 # IRIX 6.2 sed, 8192 in IRIX 6.5). We also remove comment lines;
272 # the IRIX cc adds comments like '#:fec' to the end of the
273 # dependency line.
274 tr ' ' "$nl" < "$tmpdepfile" \
275 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
276 | tr "$nl" ' ' >> "$depfile"
277 echo >> "$depfile"
278 # The second pass generates a dummy entry for each header file.
279 tr ' ' "$nl" < "$tmpdepfile" \
280 | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
281 >> "$depfile"
282 else
283 make_dummy_depfile
284 fi
285 rm -f "$tmpdepfile"
286 ;;
287
288 xlc)
289 # This case exists only to let depend.m4 do its work. It works by
290 # looking at the text of this script. This case will never be run,
291 # since it is checked for above.
292 exit 1
293 ;;
294
295 aix)
296 # The C for AIX Compiler uses -M and outputs the dependencies
297 # in a .u file. In older versions, this file always lives in the
298 # current directory. Also, the AIX compiler puts '$object:' at the
299 # start of each line; $object doesn't have directory information.
300 # Version 6 uses the directory in both cases.
301 set_dir_from "$object"
302 set_base_from "$object"
303 if test "$libtool" = yes; then
304 tmpdepfile1=$dir$base.u
305 tmpdepfile2=$base.u
306 tmpdepfile3=$dir.libs/$base.u
307 "$@" -Wc,-M
308 else
309 tmpdepfile1=$dir$base.u
310 tmpdepfile2=$dir$base.u
311 tmpdepfile3=$dir$base.u
312 "$@" -M
313 fi
314 stat=$?
315 if test $stat -ne 0; then
316 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
317 exit $stat
318 fi
319
320 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
321 do
322 test -f "$tmpdepfile" && break
323 done
324 aix_post_process_depfile
325 ;;
326
327 tcc)
328 # tcc (Tiny C Compiler) understand '-MD -MF file' since version 0.9.26
329 # FIXME: That version still under development at the moment of writing.
330 # Make that this statement remains true also for stable, released
331 # versions.
332 # It will wrap lines (doesn't matter whether long or short) with a
333 # trailing '\', as in:
334 #
335 # foo.o : \
336 # foo.c \
337 # foo.h \
338 #
339 # It will put a trailing '\' even on the last line, and will use leading
340 # spaces rather than leading tabs (at least since its commit 0394caf7
341 # "Emit spaces for -MD").
342 "$@" -MD -MF "$tmpdepfile"
343 stat=$?
344 if test $stat -ne 0; then
345 rm -f "$tmpdepfile"
346 exit $stat
347 fi
348 rm -f "$depfile"
349 # Each non-empty line is of the form 'foo.o : \' or ' dep.h \'.
350 # We have to change lines of the first kind to '$object: \'.
351 sed -e "s|.*:|$object :|" < "$tmpdepfile" > "$depfile"
352 # And for each line of the second kind, we have to emit a 'dep.h:'
353 # dummy dependency, to avoid the deleted-header problem.
354 sed -n -e 's|^ *\(.*\) *\\$|\1:|p' < "$tmpdepfile" >> "$depfile"
355 rm -f "$tmpdepfile"
356 ;;
357
358 ## The order of this option in the case statement is important, since the
359 ## shell code in configure will try each of these formats in the order
360 ## listed in this file. A plain '-MD' option would be understood by many
361 ## compilers, so we must ensure this comes after the gcc and icc options.
362 pgcc)
363 # Portland's C compiler understands '-MD'.
364 # Will always output deps to 'file.d' where file is the root name of the
365 # source file under compilation, even if file resides in a subdirectory.
366 # The object file name does not affect the name of the '.d' file.
367 # pgcc 10.2 will output
368 # foo.o: sub/foo.c sub/foo.h
369 # and will wrap long lines using '\' :
370 # foo.o: sub/foo.c ... \
371 # sub/foo.h ... \
372 # ...
373 set_dir_from "$object"
374 # Use the source, not the object, to determine the base name, since
375 # that's sadly what pgcc will do too.
376 set_base_from "$source"
377 tmpdepfile=$base.d
378
379 # For projects that build the same source file twice into different object
380 # files, the pgcc approach of using the *source* file root name can cause
381 # problems in parallel builds. Use a locking strategy to avoid stomping on
382 # the same $tmpdepfile.
383 lockdir=$base.d-lock
384 trap "
385 echo '$0: caught signal, cleaning up...' >&2
386 rmdir '$lockdir'
387 exit 1
388 " 1 2 13 15
389 numtries=100
390 i=$numtries
391 while test $i -gt 0; do
392 # mkdir is a portable test-and-set.
393 if mkdir "$lockdir" 2>/dev/null; then
394 # This process acquired the lock.
395 "$@" -MD
396 stat=$?
397 # Release the lock.
398 rmdir "$lockdir"
399 break
400 else
401 # If the lock is being held by a different process, wait
402 # until the winning process is done or we timeout.
403 while test -d "$lockdir" && test $i -gt 0; do
404 sleep 1
405 i=`expr $i - 1`
406 done
407 fi
408 i=`expr $i - 1`
409 done
410 trap - 1 2 13 15
411 if test $i -le 0; then
412 echo "$0: failed to acquire lock after $numtries attempts" >&2
413 echo "$0: check lockdir '$lockdir'" >&2
414 exit 1
415 fi
416
417 if test $stat -ne 0; then
418 rm -f "$tmpdepfile"
419 exit $stat
420 fi
421 rm -f "$depfile"
422 # Each line is of the form `foo.o: dependent.h',
423 # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
424 # Do two passes, one to just change these to
425 # `$object: dependent.h' and one to simply `dependent.h:'.
426 sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
427 # Some versions of the HPUX 10.20 sed can't process this invocation
428 # correctly. Breaking it into two sed invocations is a workaround.
429 sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" \
430 | sed -e 's/$/ :/' >> "$depfile"
431 rm -f "$tmpdepfile"
432 ;;
433
434 hp2)
435 # The "hp" stanza above does not work with aCC (C++) and HP's ia64
436 # compilers, which have integrated preprocessors. The correct option
437 # to use with these is +Maked; it writes dependencies to a file named
438 # 'foo.d', which lands next to the object file, wherever that
439 # happens to be.
440 # Much of this is similar to the tru64 case; see comments there.
441 set_dir_from "$object"
442 set_base_from "$object"
443 if test "$libtool" = yes; then
444 tmpdepfile1=$dir$base.d
445 tmpdepfile2=$dir.libs/$base.d
446 "$@" -Wc,+Maked
447 else
448 tmpdepfile1=$dir$base.d
449 tmpdepfile2=$dir$base.d
450 "$@" +Maked
451 fi
452 stat=$?
453 if test $stat -ne 0; then
454 rm -f "$tmpdepfile1" "$tmpdepfile2"
455 exit $stat
456 fi
457
458 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
459 do
460 test -f "$tmpdepfile" && break
461 done
462 if test -f "$tmpdepfile"; then
463 sed -e "s,^.*\.[$lower]*:,$object:," "$tmpdepfile" > "$depfile"
464 # Add 'dependent.h:' lines.
465 sed -ne '2,${
466 s/^ *//
467 s/ \\*$//
468 s/$/:/
469 p
470 }' "$tmpdepfile" >> "$depfile"
471 else
472 make_dummy_depfile
473 fi
474 rm -f "$tmpdepfile" "$tmpdepfile2"
475 ;;
476
477 tru64)
478 # The Tru64 compiler uses -MD to generate dependencies as a side
479 # effect. 'cc -MD -o foo.o ...' puts the dependencies into 'foo.o.d'.
480 # At least on Alpha/Redhat 6.1, Compaq CCC V6.2-504 seems to put
481 # dependencies in 'foo.d' instead, so we check for that too.
482 # Subdirectories are respected.
483 set_dir_from "$object"
484 set_base_from "$object"
485
486 if test "$libtool" = yes; then
487 # Libtool generates 2 separate objects for the 2 libraries. These
488 # two compilations output dependencies in $dir.libs/$base.o.d and
489 # in $dir$base.o.d. We have to check for both files, because
490 # one of the two compilations can be disabled. We should prefer
491 # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
492 # automatically cleaned when .libs/ is deleted, while ignoring
493 # the former would cause a distcleancheck panic.
494 tmpdepfile1=$dir$base.o.d # libtool 1.5
495 tmpdepfile2=$dir.libs/$base.o.d # Likewise.
496 tmpdepfile3=$dir.libs/$base.d # Compaq CCC V6.2-504
497 "$@" -Wc,-MD
498 else
499 tmpdepfile1=$dir$base.d
500 tmpdepfile2=$dir$base.d
501 tmpdepfile3=$dir$base.d
502 "$@" -MD
503 fi
504
505 stat=$?
506 if test $stat -ne 0; then
507 rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
508 exit $stat
509 fi
510
511 for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
512 do
513 test -f "$tmpdepfile" && break
514 done
515 # Same post-processing that is required for AIX mode.
516 aix_post_process_depfile
517 ;;
518
519 msvc7)
520 if test "$libtool" = yes; then
521 showIncludes=-Wc,-showIncludes
522 else
523 showIncludes=-showIncludes
524 fi
525 "$@" $showIncludes > "$tmpdepfile"
526 stat=$?
527 grep -v '^Note: including file: ' "$tmpdepfile"
528 if test $stat -ne 0; then
529 rm -f "$tmpdepfile"
530 exit $stat
531 fi
532 rm -f "$depfile"
533 echo "$object : \\" > "$depfile"
534 # The first sed program below extracts the file names and escapes
535 # backslashes for cygpath. The second sed program outputs the file
536 # name when reading, but also accumulates all include files in the
537 # hold buffer in order to output them again at the end. This only
538 # works with sed implementations that can handle large buffers.
539 sed < "$tmpdepfile" -n '
540 /^Note: including file: *\(.*\)/ {
541 s//\1/
542 s/\\/\\\\/g
543 p
544 }' | $cygpath_u | sort -u | sed -n '
545 s/ /\\ /g
546 s/\(.*\)/'"$tab"'\1 \\/p
547 s/.\(.*\) \\/\1:/
548 H
549 $ {
550 s/.*/'"$tab"'/
551 G
552 p
553 }' >> "$depfile"
554 echo >> "$depfile" # make sure the fragment doesn't end with a backslash
555 rm -f "$tmpdepfile"
556 ;;
557
558 msvc7msys)
559 # This case exists only to let depend.m4 do its work. It works by
560 # looking at the text of this script. This case will never be run,
561 # since it is checked for above.
562 exit 1
563 ;;
564
565 #nosideeffect)
566 # This comment above is used by automake to tell side-effect
567 # dependency tracking mechanisms from slower ones.
568
569 dashmstdout)
570 # Important note: in order to support this mode, a compiler *must*
571 # always write the preprocessed file to stdout, regardless of -o.
572 "$@" || exit $?
573
574 # Remove the call to Libtool.
575 if test "$libtool" = yes; then
576 while test "X$1" != 'X--mode=compile'; do
577 shift
578 done
579 shift
580 fi
581
582 # Remove '-o $object'.
583 IFS=" "
584 for arg
585 do
586 case $arg in
587 -o)
588 shift
589 ;;
590 $object)
591 shift
592 ;;
593 *)
594 set fnord "$@" "$arg"
595 shift # fnord
596 shift # $arg
597 ;;
598 esac
599 done
600
601 test -z "$dashmflag" && dashmflag=-M
602 # Require at least two characters before searching for ':'
603 # in the target name. This is to cope with DOS-style filenames:
604 # a dependency such as 'c:/foo/bar' could be seen as target 'c' otherwise.
605 "$@" $dashmflag |
606 sed "s|^[$tab ]*[^:$tab ][^:][^:]*:[$tab ]*|$object: |" > "$tmpdepfile"
607 rm -f "$depfile"
608 cat < "$tmpdepfile" > "$depfile"
609 # Some versions of the HPUX 10.20 sed can't process this sed invocation
610 # correctly. Breaking it into two sed invocations is a workaround.
611 tr ' ' "$nl" < "$tmpdepfile" \
612 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
613 | sed -e 's/$/ :/' >> "$depfile"
614 rm -f "$tmpdepfile"
615 ;;
616
617 dashXmstdout)
618 # This case only exists to satisfy depend.m4. It is never actually
619 # run, as this mode is specially recognized in the preamble.
620 exit 1
621 ;;
622
623 makedepend)
624 "$@" || exit $?
625 # Remove any Libtool call
626 if test "$libtool" = yes; then
627 while test "X$1" != 'X--mode=compile'; do
628 shift
629 done
630 shift
631 fi
632 # X makedepend
633 shift
634 cleared=no eat=no
635 for arg
636 do
637 case $cleared in
638 no)
639 set ""; shift
640 cleared=yes ;;
641 esac
642 if test $eat = yes; then
643 eat=no
644 continue
645 fi
646 case "$arg" in
647 -D*|-I*)
648 set fnord "$@" "$arg"; shift ;;
649 # Strip any option that makedepend may not understand. Remove
650 # the object too, otherwise makedepend will parse it as a source file.
651 -arch)
652 eat=yes ;;
653 -*|$object)
654 ;;
655 *)
656 set fnord "$@" "$arg"; shift ;;
657 esac
658 done
659 obj_suffix=`echo "$object" | sed 's/^.*\././'`
660 touch "$tmpdepfile"
661 ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
662 rm -f "$depfile"
663 # makedepend may prepend the VPATH from the source file name to the object.
664 # No need to regex-escape $object, excess matching of '.' is harmless.
665 sed "s|^.*\($object *:\)|\1|" "$tmpdepfile" > "$depfile"
666 # Some versions of the HPUX 10.20 sed can't process the last invocation
667 # correctly. Breaking it into two sed invocations is a workaround.
668 sed '1,2d' "$tmpdepfile" \
669 | tr ' ' "$nl" \
670 | sed -e 's/^\\$//' -e '/^$/d' -e '/:$/d' \
671 | sed -e 's/$/ :/' >> "$depfile"
672 rm -f "$tmpdepfile" "$tmpdepfile".bak
673 ;;
674
675 cpp)
676 # Important note: in order to support this mode, a compiler *must*
677 # always write the preprocessed file to stdout.
678 "$@" || exit $?
679
680 # Remove the call to Libtool.
681 if test "$libtool" = yes; then
682 while test "X$1" != 'X--mode=compile'; do
683 shift
684 done
685 shift
686 fi
687
688 # Remove '-o $object'.
689 IFS=" "
690 for arg
691 do
692 case $arg in
693 -o)
694 shift
695 ;;
696 $object)
697 shift
698 ;;
699 *)
700 set fnord "$@" "$arg"
701 shift # fnord
702 shift # $arg
703 ;;
704 esac
705 done
706
707 "$@" -E \
708 | sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
709 -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
710 | sed '$ s: \\$::' > "$tmpdepfile"
711 rm -f "$depfile"
712 echo "$object : \\" > "$depfile"
713 cat < "$tmpdepfile" >> "$depfile"
714 sed < "$tmpdepfile" '/^$/d;s/^ //;s/ \\$//;s/$/ :/' >> "$depfile"
715 rm -f "$tmpdepfile"
716 ;;
717
718 msvisualcpp)
719 # Important note: in order to support this mode, a compiler *must*
720 # always write the preprocessed file to stdout.
721 "$@" || exit $?
722
723 # Remove the call to Libtool.
724 if test "$libtool" = yes; then
725 while test "X$1" != 'X--mode=compile'; do
726 shift
727 done
728 shift
729 fi
730
731 IFS=" "
732 for arg
733 do
734 case "$arg" in
735 -o)
736 shift
737 ;;
738 $object)
739 shift
740 ;;
741 "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
742 set fnord "$@"
743 shift
744 shift
745 ;;
746 *)
747 set fnord "$@" "$arg"
748 shift
749 shift
750 ;;
751 esac
752 done
753 "$@" -E 2>/dev/null |
754 sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
755 rm -f "$depfile"
756 echo "$object : \\" > "$depfile"
757 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::'"$tab"'\1 \\:p' >> "$depfile"
758 echo "$tab" >> "$depfile"
759 sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
760 rm -f "$tmpdepfile"
761 ;;
762
763 msvcmsys)
764 # This case exists only to let depend.m4 do its work. It works by
765 # looking at the text of this script. This case will never be run,
766 # since it is checked for above.
767 exit 1
768 ;;
769
770 none)
771 exec "$@"
772 ;;
773
774 *)
775 echo "Unknown depmode $depmode" 1>&2
776 exit 1
777 ;;
778 esac
779
780 exit 0
781
782 # Local Variables:
783 # mode: shell-script
784 # sh-indentation: 2
785 # eval: (add-hook 'write-file-hooks 'time-stamp)
786 # time-stamp-start: "scriptversion="
787 # time-stamp-format: "%:y-%02m-%02d.%02H"
788 # time-stamp-time-zone: "UTC0"
789 # time-stamp-end: "; # UTC"
790 # End:
+0
-721
enc265/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91 bin_PROGRAMS = enc265$(EXEEXT)
92 @HAVE_VIDEOGFX_TRUE@am__append_1 = $(VIDEOGFX_CFLAGS)
93 @HAVE_VIDEOGFX_TRUE@am__append_2 = $(VIDEOGFX_LIBS)
94 subdir = enc265
95 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
96 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
97 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
98 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
99 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
100 $(top_srcdir)/m4/lt~obsolete.m4 \
101 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
102 $(top_srcdir)/configure.ac
103 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
104 $(ACLOCAL_M4)
105 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
106 mkinstalldirs = $(install_sh) -d
107 CONFIG_HEADER = $(top_builddir)/config.h
108 CONFIG_CLEAN_FILES =
109 CONFIG_CLEAN_VPATH_FILES =
110 am__installdirs = "$(DESTDIR)$(bindir)"
111 PROGRAMS = $(bin_PROGRAMS)
112 am_enc265_OBJECTS = enc265-enc265.$(OBJEXT) \
113 enc265-image-io-png.$(OBJEXT)
114 enc265_OBJECTS = $(am_enc265_OBJECTS)
115 AM_V_lt = $(am__v_lt_@AM_V@)
116 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
117 am__v_lt_0 = --silent
118 am__v_lt_1 =
119 enc265_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
120 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(enc265_CXXFLAGS) \
121 $(CXXFLAGS) $(enc265_LDFLAGS) $(LDFLAGS) -o $@
122 AM_V_P = $(am__v_P_@AM_V@)
123 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
124 am__v_P_0 = false
125 am__v_P_1 = :
126 AM_V_GEN = $(am__v_GEN_@AM_V@)
127 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
128 am__v_GEN_0 = @echo " GEN " $@;
129 am__v_GEN_1 =
130 AM_V_at = $(am__v_at_@AM_V@)
131 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
132 am__v_at_0 = @
133 am__v_at_1 =
134 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
135 depcomp = $(SHELL) $(top_srcdir)/depcomp
136 am__depfiles_maybe = depfiles
137 am__mv = mv -f
138 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
139 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
140 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
141 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
142 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
143 $(AM_CXXFLAGS) $(CXXFLAGS)
144 AM_V_CXX = $(am__v_CXX_@AM_V@)
145 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
146 am__v_CXX_0 = @echo " CXX " $@;
147 am__v_CXX_1 =
148 CXXLD = $(CXX)
149 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
150 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
151 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
152 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
153 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
154 am__v_CXXLD_0 = @echo " CXXLD " $@;
155 am__v_CXXLD_1 =
156 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
157 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
158 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
159 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
160 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
161 $(AM_CFLAGS) $(CFLAGS)
162 AM_V_CC = $(am__v_CC_@AM_V@)
163 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
164 am__v_CC_0 = @echo " CC " $@;
165 am__v_CC_1 =
166 CCLD = $(CC)
167 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
168 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
169 $(AM_LDFLAGS) $(LDFLAGS) -o $@
170 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
171 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
172 am__v_CCLD_0 = @echo " CCLD " $@;
173 am__v_CCLD_1 =
174 SOURCES = $(enc265_SOURCES)
175 DIST_SOURCES = $(enc265_SOURCES)
176 am__can_run_installinfo = \
177 case $$AM_UPDATE_INFO_DIR in \
178 n|no|NO) false;; \
179 *) (install-info --version) >/dev/null 2>&1;; \
180 esac
181 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
182 # Read a list of newline-separated strings from the standard input,
183 # and print each of them once, without duplicates. Input order is
184 # *not* preserved.
185 am__uniquify_input = $(AWK) '\
186 BEGIN { nonempty = 0; } \
187 { items[$$0] = 1; nonempty = 1; } \
188 END { if (nonempty) { for (i in items) print i; }; } \
189 '
190 # Make sure the list of sources is unique. This is necessary because,
191 # e.g., the same source file might be shared among _SOURCES variables
192 # for different programs/libraries.
193 am__define_uniq_tagged_files = \
194 list='$(am__tagged_files)'; \
195 unique=`for i in $$list; do \
196 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
197 done | $(am__uniquify_input)`
198 ETAGS = etags
199 CTAGS = ctags
200 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp COPYING
201 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
202 ACLOCAL = @ACLOCAL@
203 ALLOCA = @ALLOCA@
204 AMTAR = @AMTAR@
205 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
206 AR = @AR@
207 AUTOCONF = @AUTOCONF@
208 AUTOHEADER = @AUTOHEADER@
209 AUTOMAKE = @AUTOMAKE@
210 AWK = @AWK@
211 CC = @CC@
212 CCAS = @CCAS@
213 CCASDEPMODE = @CCASDEPMODE@
214 CCASFLAGS = @CCASFLAGS@
215 CCDEPMODE = @CCDEPMODE@
216 CFLAGS = @CFLAGS@
217 CPP = @CPP@
218 CPPFLAGS = @CPPFLAGS@
219 CXX = @CXX@
220 CXXCPP = @CXXCPP@
221 CXXDEPMODE = @CXXDEPMODE@
222 CXXFLAGS = @CXXFLAGS@
223 CYGPATH_W = @CYGPATH_W@
224 DEFS = @DEFS@
225 DEPDIR = @DEPDIR@
226 DLLTOOL = @DLLTOOL@
227 DSYMUTIL = @DSYMUTIL@
228 DUMPBIN = @DUMPBIN@
229 ECHO_C = @ECHO_C@
230 ECHO_N = @ECHO_N@
231 ECHO_T = @ECHO_T@
232 EGREP = @EGREP@
233 EXEEXT = @EXEEXT@
234 FGREP = @FGREP@
235 GREP = @GREP@
236 HAVE_CXX11 = @HAVE_CXX11@
237 INSTALL = @INSTALL@
238 INSTALL_DATA = @INSTALL_DATA@
239 INSTALL_PROGRAM = @INSTALL_PROGRAM@
240 INSTALL_SCRIPT = @INSTALL_SCRIPT@
241 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
242 LD = @LD@
243 LDFLAGS = @LDFLAGS@
244 LIBDE265_AGE = @LIBDE265_AGE@
245 LIBDE265_CURRENT = @LIBDE265_CURRENT@
246 LIBDE265_REVISION = @LIBDE265_REVISION@
247 LIBOBJS = @LIBOBJS@
248 LIBS = @LIBS@
249 LIBTOOL = @LIBTOOL@
250 LIPO = @LIPO@
251 LN_S = @LN_S@
252 LTLIBOBJS = @LTLIBOBJS@
253 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
254 MAKEINFO = @MAKEINFO@
255 MANIFEST_TOOL = @MANIFEST_TOOL@
256 MKDIR_P = @MKDIR_P@
257 NM = @NM@
258 NMEDIT = @NMEDIT@
259 NUMERIC_VERSION = @NUMERIC_VERSION@
260 OBJDUMP = @OBJDUMP@
261 OBJEXT = @OBJEXT@
262 OTOOL = @OTOOL@
263 OTOOL64 = @OTOOL64@
264 PACKAGE = @PACKAGE@
265 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
266 PACKAGE_NAME = @PACKAGE_NAME@
267 PACKAGE_STRING = @PACKAGE_STRING@
268 PACKAGE_TARNAME = @PACKAGE_TARNAME@
269 PACKAGE_URL = @PACKAGE_URL@
270 PACKAGE_VERSION = @PACKAGE_VERSION@
271 PATH_SEPARATOR = @PATH_SEPARATOR@
272 PKG_CONFIG = @PKG_CONFIG@
273 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
274 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
275 QTCHOOSER = @QTCHOOSER@
276 QTMOC = @QTMOC@
277 QT_CFLAGS = @QT_CFLAGS@
278 QT_LIBS = @QT_LIBS@
279 RANLIB = @RANLIB@
280 SDL_CFLAGS = @SDL_CFLAGS@
281 SDL_LIBS = @SDL_LIBS@
282 SED = @SED@
283 SET_MAKE = @SET_MAKE@
284 SHELL = @SHELL@
285 STRIP = @STRIP@
286 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
287 SWSCALE_LIBS = @SWSCALE_LIBS@
288 VERSION = @VERSION@
289 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
290 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
291 abs_builddir = @abs_builddir@
292 abs_srcdir = @abs_srcdir@
293 abs_top_builddir = @abs_top_builddir@
294 abs_top_srcdir = @abs_top_srcdir@
295 ac_ct_AR = @ac_ct_AR@
296 ac_ct_CC = @ac_ct_CC@
297 ac_ct_CXX = @ac_ct_CXX@
298 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
299 am__include = @am__include@
300 am__leading_dot = @am__leading_dot@
301 am__quote = @am__quote@
302 am__tar = @am__tar@
303 am__untar = @am__untar@
304 bindir = @bindir@
305 build = @build@
306 build_alias = @build_alias@
307 build_cpu = @build_cpu@
308 build_os = @build_os@
309 build_vendor = @build_vendor@
310 builddir = @builddir@
311 datadir = @datadir@
312 datarootdir = @datarootdir@
313 docdir = @docdir@
314 dvidir = @dvidir@
315 exec_prefix = @exec_prefix@
316 host = @host@
317 host_alias = @host_alias@
318 host_cpu = @host_cpu@
319 host_os = @host_os@
320 host_vendor = @host_vendor@
321 htmldir = @htmldir@
322 includedir = @includedir@
323 infodir = @infodir@
324 install_sh = @install_sh@
325 libdir = @libdir@
326 libexecdir = @libexecdir@
327 localedir = @localedir@
328 localstatedir = @localstatedir@
329 mandir = @mandir@
330 mkdir_p = @mkdir_p@
331 oldincludedir = @oldincludedir@
332 pdfdir = @pdfdir@
333 prefix = @prefix@
334 program_transform_name = @program_transform_name@
335 psdir = @psdir@
336 runstatedir = @runstatedir@
337 sbindir = @sbindir@
338 sharedstatedir = @sharedstatedir@
339 srcdir = @srcdir@
340 sysconfdir = @sysconfdir@
341 target = @target@
342 target_alias = @target_alias@
343 target_cpu = @target_cpu@
344 target_os = @target_os@
345 target_vendor = @target_vendor@
346 top_build_prefix = @top_build_prefix@
347 top_builddir = @top_builddir@
348 top_srcdir = @top_srcdir@
349 AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir)
350 enc265_DEPENDENCIES = ../libde265/libde265.la
351 enc265_CXXFLAGS = $(am__append_1)
352 enc265_LDFLAGS = $(am__append_2)
353 enc265_LDADD = ../libde265/libde265.la -lstdc++
354 enc265_SOURCES = enc265.cc image-io-png.cc image-io-png.h
355 EXTRA_DIST = \
356 CMakeLists.txt \
357 Makefile.vc7
358
359 all: all-am
360
361 .SUFFIXES:
362 .SUFFIXES: .cc .lo .o .obj
363 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
364 @for dep in $?; do \
365 case '$(am__configure_deps)' in \
366 *$$dep*) \
367 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
368 && { if test -f $@; then exit 0; else break; fi; }; \
369 exit 1;; \
370 esac; \
371 done; \
372 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu enc265/Makefile'; \
373 $(am__cd) $(top_srcdir) && \
374 $(AUTOMAKE) --gnu enc265/Makefile
375 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
376 @case '$?' in \
377 *config.status*) \
378 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
379 *) \
380 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
381 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
382 esac;
383
384 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
385 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
386
387 $(top_srcdir)/configure: $(am__configure_deps)
388 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
389 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
390 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
391 $(am__aclocal_m4_deps):
392 install-binPROGRAMS: $(bin_PROGRAMS)
393 @$(NORMAL_INSTALL)
394 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
395 if test -n "$$list"; then \
396 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
397 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
398 fi; \
399 for p in $$list; do echo "$$p $$p"; done | \
400 sed 's/$(EXEEXT)$$//' | \
401 while read p p1; do if test -f $$p \
402 || test -f $$p1 \
403 ; then echo "$$p"; echo "$$p"; else :; fi; \
404 done | \
405 sed -e 'p;s,.*/,,;n;h' \
406 -e 's|.*|.|' \
407 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
408 sed 'N;N;N;s,\n, ,g' | \
409 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
410 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
411 if ($$2 == $$4) files[d] = files[d] " " $$1; \
412 else { print "f", $$3 "/" $$4, $$1; } } \
413 END { for (d in files) print "f", d, files[d] }' | \
414 while read type dir files; do \
415 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
416 test -z "$$files" || { \
417 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
418 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
419 } \
420 ; done
421
422 uninstall-binPROGRAMS:
423 @$(NORMAL_UNINSTALL)
424 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
425 files=`for p in $$list; do echo "$$p"; done | \
426 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
427 -e 's/$$/$(EXEEXT)/' \
428 `; \
429 test -n "$$list" || exit 0; \
430 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
431 cd "$(DESTDIR)$(bindir)" && rm -f $$files
432
433 clean-binPROGRAMS:
434 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
435 echo " rm -f" $$list; \
436 rm -f $$list || exit $$?; \
437 test -n "$(EXEEXT)" || exit 0; \
438 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
439 echo " rm -f" $$list; \
440 rm -f $$list
441
442 enc265$(EXEEXT): $(enc265_OBJECTS) $(enc265_DEPENDENCIES) $(EXTRA_enc265_DEPENDENCIES)
443 @rm -f enc265$(EXEEXT)
444 $(AM_V_CXXLD)$(enc265_LINK) $(enc265_OBJECTS) $(enc265_LDADD) $(LIBS)
445
446 mostlyclean-compile:
447 -rm -f *.$(OBJEXT)
448
449 distclean-compile:
450 -rm -f *.tab.c
451
452 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enc265-enc265.Po@am__quote@
453 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/enc265-image-io-png.Po@am__quote@
454
455 .cc.o:
456 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
457 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
458 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
459 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
460 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
461
462 .cc.obj:
463 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
464 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
465 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
466 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
467 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
468
469 .cc.lo:
470 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
471 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
472 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
473 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
474 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
475
476 enc265-enc265.o: enc265.cc
477 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enc265_CXXFLAGS) $(CXXFLAGS) -MT enc265-enc265.o -MD -MP -MF $(DEPDIR)/enc265-enc265.Tpo -c -o enc265-enc265.o `test -f 'enc265.cc' || echo '$(srcdir)/'`enc265.cc
478 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enc265-enc265.Tpo $(DEPDIR)/enc265-enc265.Po
479 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='enc265.cc' object='enc265-enc265.o' libtool=no @AMDEPBACKSLASH@
480 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
481 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enc265_CXXFLAGS) $(CXXFLAGS) -c -o enc265-enc265.o `test -f 'enc265.cc' || echo '$(srcdir)/'`enc265.cc
482
483 enc265-enc265.obj: enc265.cc
484 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enc265_CXXFLAGS) $(CXXFLAGS) -MT enc265-enc265.obj -MD -MP -MF $(DEPDIR)/enc265-enc265.Tpo -c -o enc265-enc265.obj `if test -f 'enc265.cc'; then $(CYGPATH_W) 'enc265.cc'; else $(CYGPATH_W) '$(srcdir)/enc265.cc'; fi`
485 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enc265-enc265.Tpo $(DEPDIR)/enc265-enc265.Po
486 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='enc265.cc' object='enc265-enc265.obj' libtool=no @AMDEPBACKSLASH@
487 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
488 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enc265_CXXFLAGS) $(CXXFLAGS) -c -o enc265-enc265.obj `if test -f 'enc265.cc'; then $(CYGPATH_W) 'enc265.cc'; else $(CYGPATH_W) '$(srcdir)/enc265.cc'; fi`
489
490 enc265-image-io-png.o: image-io-png.cc
491 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enc265_CXXFLAGS) $(CXXFLAGS) -MT enc265-image-io-png.o -MD -MP -MF $(DEPDIR)/enc265-image-io-png.Tpo -c -o enc265-image-io-png.o `test -f 'image-io-png.cc' || echo '$(srcdir)/'`image-io-png.cc
492 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enc265-image-io-png.Tpo $(DEPDIR)/enc265-image-io-png.Po
493 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='image-io-png.cc' object='enc265-image-io-png.o' libtool=no @AMDEPBACKSLASH@
494 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
495 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enc265_CXXFLAGS) $(CXXFLAGS) -c -o enc265-image-io-png.o `test -f 'image-io-png.cc' || echo '$(srcdir)/'`image-io-png.cc
496
497 enc265-image-io-png.obj: image-io-png.cc
498 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enc265_CXXFLAGS) $(CXXFLAGS) -MT enc265-image-io-png.obj -MD -MP -MF $(DEPDIR)/enc265-image-io-png.Tpo -c -o enc265-image-io-png.obj `if test -f 'image-io-png.cc'; then $(CYGPATH_W) 'image-io-png.cc'; else $(CYGPATH_W) '$(srcdir)/image-io-png.cc'; fi`
499 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/enc265-image-io-png.Tpo $(DEPDIR)/enc265-image-io-png.Po
500 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='image-io-png.cc' object='enc265-image-io-png.obj' libtool=no @AMDEPBACKSLASH@
501 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
502 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(enc265_CXXFLAGS) $(CXXFLAGS) -c -o enc265-image-io-png.obj `if test -f 'image-io-png.cc'; then $(CYGPATH_W) 'image-io-png.cc'; else $(CYGPATH_W) '$(srcdir)/image-io-png.cc'; fi`
503
504 mostlyclean-libtool:
505 -rm -f *.lo
506
507 clean-libtool:
508 -rm -rf .libs _libs
509
510 ID: $(am__tagged_files)
511 $(am__define_uniq_tagged_files); mkid -fID $$unique
512 tags: tags-am
513 TAGS: tags
514
515 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
516 set x; \
517 here=`pwd`; \
518 $(am__define_uniq_tagged_files); \
519 shift; \
520 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
521 test -n "$$unique" || unique=$$empty_fix; \
522 if test $$# -gt 0; then \
523 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
524 "$$@" $$unique; \
525 else \
526 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
527 $$unique; \
528 fi; \
529 fi
530 ctags: ctags-am
531
532 CTAGS: ctags
533 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
534 $(am__define_uniq_tagged_files); \
535 test -z "$(CTAGS_ARGS)$$unique" \
536 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
537 $$unique
538
539 GTAGS:
540 here=`$(am__cd) $(top_builddir) && pwd` \
541 && $(am__cd) $(top_srcdir) \
542 && gtags -i $(GTAGS_ARGS) "$$here"
543 cscopelist: cscopelist-am
544
545 cscopelist-am: $(am__tagged_files)
546 list='$(am__tagged_files)'; \
547 case "$(srcdir)" in \
548 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
549 *) sdir=$(subdir)/$(srcdir) ;; \
550 esac; \
551 for i in $$list; do \
552 if test -f "$$i"; then \
553 echo "$(subdir)/$$i"; \
554 else \
555 echo "$$sdir/$$i"; \
556 fi; \
557 done >> $(top_builddir)/cscope.files
558
559 distclean-tags:
560 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
561
562 distdir: $(DISTFILES)
563 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
564 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
565 list='$(DISTFILES)'; \
566 dist_files=`for file in $$list; do echo $$file; done | \
567 sed -e "s|^$$srcdirstrip/||;t" \
568 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
569 case $$dist_files in \
570 */*) $(MKDIR_P) `echo "$$dist_files" | \
571 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
572 sort -u` ;; \
573 esac; \
574 for file in $$dist_files; do \
575 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
576 if test -d $$d/$$file; then \
577 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
578 if test -d "$(distdir)/$$file"; then \
579 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
580 fi; \
581 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
582 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
583 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
584 fi; \
585 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
586 else \
587 test -f "$(distdir)/$$file" \
588 || cp -p $$d/$$file "$(distdir)/$$file" \
589 || exit 1; \
590 fi; \
591 done
592 check-am: all-am
593 check: check-am
594 all-am: Makefile $(PROGRAMS)
595 installdirs:
596 for dir in "$(DESTDIR)$(bindir)"; do \
597 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
598 done
599 install: install-am
600 install-exec: install-exec-am
601 install-data: install-data-am
602 uninstall: uninstall-am
603
604 install-am: all-am
605 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
606
607 installcheck: installcheck-am
608 install-strip:
609 if test -z '$(STRIP)'; then \
610 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
611 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
612 install; \
613 else \
614 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
615 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
616 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
617 fi
618 mostlyclean-generic:
619
620 clean-generic:
621
622 distclean-generic:
623 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
624 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
625
626 maintainer-clean-generic:
627 @echo "This command is intended for maintainers to use"
628 @echo "it deletes files that may require special tools to rebuild."
629 clean: clean-am
630
631 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
632
633 distclean: distclean-am
634 -rm -rf ./$(DEPDIR)
635 -rm -f Makefile
636 distclean-am: clean-am distclean-compile distclean-generic \
637 distclean-tags
638
639 dvi: dvi-am
640
641 dvi-am:
642
643 html: html-am
644
645 html-am:
646
647 info: info-am
648
649 info-am:
650
651 install-data-am:
652
653 install-dvi: install-dvi-am
654
655 install-dvi-am:
656
657 install-exec-am: install-binPROGRAMS
658
659 install-html: install-html-am
660
661 install-html-am:
662
663 install-info: install-info-am
664
665 install-info-am:
666
667 install-man:
668
669 install-pdf: install-pdf-am
670
671 install-pdf-am:
672
673 install-ps: install-ps-am
674
675 install-ps-am:
676
677 installcheck-am:
678
679 maintainer-clean: maintainer-clean-am
680 -rm -rf ./$(DEPDIR)
681 -rm -f Makefile
682 maintainer-clean-am: distclean-am maintainer-clean-generic
683
684 mostlyclean: mostlyclean-am
685
686 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
687 mostlyclean-libtool
688
689 pdf: pdf-am
690
691 pdf-am:
692
693 ps: ps-am
694
695 ps-am:
696
697 uninstall-am: uninstall-binPROGRAMS
698
699 .MAKE: install-am install-strip
700
701 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
702 clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
703 ctags ctags-am distclean distclean-compile distclean-generic \
704 distclean-libtool distclean-tags distdir dvi dvi-am html \
705 html-am info info-am install install-am install-binPROGRAMS \
706 install-data install-data-am install-dvi install-dvi-am \
707 install-exec install-exec-am install-html install-html-am \
708 install-info install-info-am install-man install-pdf \
709 install-pdf-am install-ps install-ps-am install-strip \
710 installcheck installcheck-am installdirs maintainer-clean \
711 maintainer-clean-generic mostlyclean mostlyclean-compile \
712 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
713 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
714
715 .PRECIOUS: Makefile
716
717
718 # Tell versions [3.59,3.63) of GNU make to not export all variables.
719 # Otherwise a system limit (for SysV at least) may be exceeded.
720 .NOEXPORT:
0 /*
1 * H.265 video codec.
2 * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de>
3 *
4 * This file is part of libde265.
5 *
6 * libde265 is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation, either version 3 of
9 * the License, or (at your option) any later version.
10 *
11 * libde265 is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with libde265. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 #ifndef LIBDE265_VERSION_H
21 #define LIBDE265_VERSION_H
22
23 /* Numeric representation of the version */
24 #define LIBDE265_NUMERIC_VERSION 0x01000800
25
26 #define LIBDE265_VERSION "1.0.8"
27
28 #endif
+0
-508
install-sh less more
0 #!/bin/sh
1 # install - install a program, script, or datafile
2
3 scriptversion=2014-09-12.12; # UTC
4
5 # This originates from X11R5 (mit/util/scripts/install.sh), which was
6 # later released in X11R6 (xc/config/util/install.sh) with the
7 # following copyright and license.
8 #
9 # Copyright (C) 1994 X Consortium
10 #
11 # Permission is hereby granted, free of charge, to any person obtaining a copy
12 # of this software and associated documentation files (the "Software"), to
13 # deal in the Software without restriction, including without limitation the
14 # rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
15 # sell copies of the Software, and to permit persons to whom the Software is
16 # furnished to do so, subject to the following conditions:
17 #
18 # The above copyright notice and this permission notice shall be included in
19 # all copies or substantial portions of the Software.
20 #
21 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 # X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25 # AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
26 # TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 #
28 # Except as contained in this notice, the name of the X Consortium shall not
29 # be used in advertising or otherwise to promote the sale, use or other deal-
30 # ings in this Software without prior written authorization from the X Consor-
31 # tium.
32 #
33 #
34 # FSF changes to this file are in the public domain.
35 #
36 # Calling this script install-sh is preferred over install.sh, to prevent
37 # 'make' implicit rules from creating a file called install from it
38 # when there is no Makefile.
39 #
40 # This script is compatible with the BSD install script, but was written
41 # from scratch.
42
43 tab=' '
44 nl='
45 '
46 IFS=" $tab$nl"
47
48 # Set DOITPROG to "echo" to test this script.
49
50 doit=${DOITPROG-}
51 doit_exec=${doit:-exec}
52
53 # Put in absolute file names if you don't have them in your path;
54 # or use environment vars.
55
56 chgrpprog=${CHGRPPROG-chgrp}
57 chmodprog=${CHMODPROG-chmod}
58 chownprog=${CHOWNPROG-chown}
59 cmpprog=${CMPPROG-cmp}
60 cpprog=${CPPROG-cp}
61 mkdirprog=${MKDIRPROG-mkdir}
62 mvprog=${MVPROG-mv}
63 rmprog=${RMPROG-rm}
64 stripprog=${STRIPPROG-strip}
65
66 posix_mkdir=
67
68 # Desired mode of installed file.
69 mode=0755
70
71 chgrpcmd=
72 chmodcmd=$chmodprog
73 chowncmd=
74 mvcmd=$mvprog
75 rmcmd="$rmprog -f"
76 stripcmd=
77
78 src=
79 dst=
80 dir_arg=
81 dst_arg=
82
83 copy_on_change=false
84 is_target_a_directory=possibly
85
86 usage="\
87 Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
88 or: $0 [OPTION]... SRCFILES... DIRECTORY
89 or: $0 [OPTION]... -t DIRECTORY SRCFILES...
90 or: $0 [OPTION]... -d DIRECTORIES...
91
92 In the 1st form, copy SRCFILE to DSTFILE.
93 In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
94 In the 4th, create DIRECTORIES.
95
96 Options:
97 --help display this help and exit.
98 --version display version info and exit.
99
100 -c (ignored)
101 -C install only if different (preserve the last data modification time)
102 -d create directories instead of installing files.
103 -g GROUP $chgrpprog installed files to GROUP.
104 -m MODE $chmodprog installed files to MODE.
105 -o USER $chownprog installed files to USER.
106 -s $stripprog installed files.
107 -t DIRECTORY install into DIRECTORY.
108 -T report an error if DSTFILE is a directory.
109
110 Environment variables override the default commands:
111 CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
112 RMPROG STRIPPROG
113 "
114
115 while test $# -ne 0; do
116 case $1 in
117 -c) ;;
118
119 -C) copy_on_change=true;;
120
121 -d) dir_arg=true;;
122
123 -g) chgrpcmd="$chgrpprog $2"
124 shift;;
125
126 --help) echo "$usage"; exit $?;;
127
128 -m) mode=$2
129 case $mode in
130 *' '* | *"$tab"* | *"$nl"* | *'*'* | *'?'* | *'['*)
131 echo "$0: invalid mode: $mode" >&2
132 exit 1;;
133 esac
134 shift;;
135
136 -o) chowncmd="$chownprog $2"
137 shift;;
138
139 -s) stripcmd=$stripprog;;
140
141 -t)
142 is_target_a_directory=always
143 dst_arg=$2
144 # Protect names problematic for 'test' and other utilities.
145 case $dst_arg in
146 -* | [=\(\)!]) dst_arg=./$dst_arg;;
147 esac
148 shift;;
149
150 -T) is_target_a_directory=never;;
151
152 --version) echo "$0 $scriptversion"; exit $?;;
153
154 --) shift
155 break;;
156
157 -*) echo "$0: invalid option: $1" >&2
158 exit 1;;
159
160 *) break;;
161 esac
162 shift
163 done
164
165 # We allow the use of options -d and -T together, by making -d
166 # take the precedence; this is for compatibility with GNU install.
167
168 if test -n "$dir_arg"; then
169 if test -n "$dst_arg"; then
170 echo "$0: target directory not allowed when installing a directory." >&2
171 exit 1
172 fi
173 fi
174
175 if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
176 # When -d is used, all remaining arguments are directories to create.
177 # When -t is used, the destination is already specified.
178 # Otherwise, the last argument is the destination. Remove it from $@.
179 for arg
180 do
181 if test -n "$dst_arg"; then
182 # $@ is not empty: it contains at least $arg.
183 set fnord "$@" "$dst_arg"
184 shift # fnord
185 fi
186 shift # arg
187 dst_arg=$arg
188 # Protect names problematic for 'test' and other utilities.
189 case $dst_arg in
190 -* | [=\(\)!]) dst_arg=./$dst_arg;;
191 esac
192 done
193 fi
194
195 if test $# -eq 0; then
196 if test -z "$dir_arg"; then
197 echo "$0: no input file specified." >&2
198 exit 1
199 fi
200 # It's OK to call 'install-sh -d' without argument.
201 # This can happen when creating conditional directories.
202 exit 0
203 fi
204
205 if test -z "$dir_arg"; then
206 if test $# -gt 1 || test "$is_target_a_directory" = always; then
207 if test ! -d "$dst_arg"; then
208 echo "$0: $dst_arg: Is not a directory." >&2
209 exit 1
210 fi
211 fi
212 fi
213
214 if test -z "$dir_arg"; then
215 do_exit='(exit $ret); exit $ret'
216 trap "ret=129; $do_exit" 1
217 trap "ret=130; $do_exit" 2
218 trap "ret=141; $do_exit" 13
219 trap "ret=143; $do_exit" 15
220
221 # Set umask so as not to create temps with too-generous modes.
222 # However, 'strip' requires both read and write access to temps.
223 case $mode in
224 # Optimize common cases.
225 *644) cp_umask=133;;
226 *755) cp_umask=22;;
227
228 *[0-7])
229 if test -z "$stripcmd"; then
230 u_plus_rw=
231 else
232 u_plus_rw='% 200'
233 fi
234 cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
235 *)
236 if test -z "$stripcmd"; then
237 u_plus_rw=
238 else
239 u_plus_rw=,u+rw
240 fi
241 cp_umask=$mode$u_plus_rw;;
242 esac
243 fi
244
245 for src
246 do
247 # Protect names problematic for 'test' and other utilities.
248 case $src in
249 -* | [=\(\)!]) src=./$src;;
250 esac
251
252 if test -n "$dir_arg"; then
253 dst=$src
254 dstdir=$dst
255 test -d "$dstdir"
256 dstdir_status=$?
257 else
258
259 # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
260 # might cause directories to be created, which would be especially bad
261 # if $src (and thus $dsttmp) contains '*'.
262 if test ! -f "$src" && test ! -d "$src"; then
263 echo "$0: $src does not exist." >&2
264 exit 1
265 fi
266
267 if test -z "$dst_arg"; then
268 echo "$0: no destination specified." >&2
269 exit 1
270 fi
271 dst=$dst_arg
272
273 # If destination is a directory, append the input filename; won't work
274 # if double slashes aren't ignored.
275 if test -d "$dst"; then
276 if test "$is_target_a_directory" = never; then
277 echo "$0: $dst_arg: Is a directory" >&2
278 exit 1
279 fi
280 dstdir=$dst
281 dst=$dstdir/`basename "$src"`
282 dstdir_status=0
283 else
284 dstdir=`dirname "$dst"`
285 test -d "$dstdir"
286 dstdir_status=$?
287 fi
288 fi
289
290 obsolete_mkdir_used=false
291
292 if test $dstdir_status != 0; then
293 case $posix_mkdir in
294 '')
295 # Create intermediate dirs using mode 755 as modified by the umask.
296 # This is like FreeBSD 'install' as of 1997-10-28.
297 umask=`umask`
298 case $stripcmd.$umask in
299 # Optimize common cases.
300 *[2367][2367]) mkdir_umask=$umask;;
301 .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
302
303 *[0-7])
304 mkdir_umask=`expr $umask + 22 \
305 - $umask % 100 % 40 + $umask % 20 \
306 - $umask % 10 % 4 + $umask % 2
307 `;;
308 *) mkdir_umask=$umask,go-w;;
309 esac
310
311 # With -d, create the new directory with the user-specified mode.
312 # Otherwise, rely on $mkdir_umask.
313 if test -n "$dir_arg"; then
314 mkdir_mode=-m$mode
315 else
316 mkdir_mode=
317 fi
318
319 posix_mkdir=false
320 case $umask in
321 *[123567][0-7][0-7])
322 # POSIX mkdir -p sets u+wx bits regardless of umask, which
323 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
324 ;;
325 *)
326 # $RANDOM is not portable (e.g. dash); use it when possible to
327 # lower collision chance
328 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
329 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
330
331 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so
332 # create the $tmpdir first (and fail if unsuccessful) to make sure
333 # that nobody tries to guess the $tmpdir name.
334 if (umask $mkdir_umask &&
335 $mkdirprog $mkdir_mode "$tmpdir" &&
336 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
337 then
338 if test -z "$dir_arg" || {
339 # Check for POSIX incompatibilities with -m.
340 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
341 # other-writable bit of parent directory when it shouldn't.
342 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
343 test_tmpdir="$tmpdir/a"
344 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
345 case $ls_ld_tmpdir in
346 d????-?r-*) different_mode=700;;
347 d????-?--*) different_mode=755;;
348 *) false;;
349 esac &&
350 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
351 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
352 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
353 }
354 }
355 then posix_mkdir=:
356 fi
357 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
358 else
359 # Remove any dirs left behind by ancient mkdir implementations.
360 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
361 fi
362 trap '' 0;;
363 esac;;
364 esac
365
366 if
367 $posix_mkdir && (
368 umask $mkdir_umask &&
369 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
370 )
371 then :
372 else
373
374 # The umask is ridiculous, or mkdir does not conform to POSIX,
375 # or it failed possibly due to a race condition. Create the
376 # directory the slow way, step by step, checking for races as we go.
377
378 case $dstdir in
379 /*) prefix='/';;
380 [-=\(\)!]*) prefix='./';;
381 *) prefix='';;
382 esac
383
384 oIFS=$IFS
385 IFS=/
386 set -f
387 set fnord $dstdir
388 shift
389 set +f
390 IFS=$oIFS
391
392 prefixes=
393
394 for d
395 do
396 test X"$d" = X && continue
397
398 prefix=$prefix$d
399 if test -d "$prefix"; then
400 prefixes=
401 else
402 if $posix_mkdir; then
403 (umask=$mkdir_umask &&
404 $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
405 # Don't fail if two instances are running concurrently.
406 test -d "$prefix" || exit 1
407 else
408 case $prefix in
409 *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
410 *) qprefix=$prefix;;
411 esac
412 prefixes="$prefixes '$qprefix'"
413 fi
414 fi
415 prefix=$prefix/
416 done
417
418 if test -n "$prefixes"; then
419 # Don't fail if two instances are running concurrently.
420 (umask $mkdir_umask &&
421 eval "\$doit_exec \$mkdirprog $prefixes") ||
422 test -d "$dstdir" || exit 1
423 obsolete_mkdir_used=true
424 fi
425 fi
426 fi
427
428 if test -n "$dir_arg"; then
429 { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
430 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
431 { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
432 test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
433 else
434
435 # Make a couple of temp file names in the proper directory.
436 dsttmp=$dstdir/_inst.$$_
437 rmtmp=$dstdir/_rm.$$_
438
439 # Trap to clean up those temp files at exit.
440 trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
441
442 # Copy the file name to the temp name.
443 (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
444
445 # and set any options; do chmod last to preserve setuid bits.
446 #
447 # If any of these fail, we abort the whole thing. If we want to
448 # ignore errors from any of these, just make sure not to ignore
449 # errors from the above "$doit $cpprog $src $dsttmp" command.
450 #
451 { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
452 { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
453 { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
454 { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
455
456 # If -C, don't bother to copy if it wouldn't change the file.
457 if $copy_on_change &&
458 old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
459 new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
460 set -f &&
461 set X $old && old=:$2:$4:$5:$6 &&
462 set X $new && new=:$2:$4:$5:$6 &&
463 set +f &&
464 test "$old" = "$new" &&
465 $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
466 then
467 rm -f "$dsttmp"
468 else
469 # Rename the file to the real destination.
470 $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
471
472 # The rename failed, perhaps because mv can't rename something else
473 # to itself, or perhaps because mv is so ancient that it does not
474 # support -f.
475 {
476 # Now remove or move aside any old file at destination location.
477 # We try this two ways since rm can't unlink itself on some
478 # systems and the destination file might be busy for other
479 # reasons. In this case, the final cleanup might fail but the new
480 # file should still install successfully.
481 {
482 test ! -f "$dst" ||
483 $doit $rmcmd -f "$dst" 2>/dev/null ||
484 { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
485 { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
486 } ||
487 { echo "$0: cannot unlink or rename $dst" >&2
488 (exit 1); exit 1
489 }
490 } &&
491
492 # Now rename the file to the real destination.
493 $doit $mvcmd "$dsttmp" "$dst"
494 }
495 fi || exit 1
496
497 trap '' 0
498 fi
499 done
500
501 # Local variables:
502 # eval: (add-hook 'write-file-hooks 'time-stamp)
503 # time-stamp-start: "scriptversion="
504 # time-stamp-format: "%:y-%02m-%02d.%02H"
505 # time-stamp-time-zone: "UTC"
506 # time-stamp-end: "; # UTC"
507 # End:
+0
-1236
libde265/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
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 VPATH = @srcdir@
18 am__is_gnu_make = { \
19 if test -z '$(MAKELEVEL)'; then \
20 false; \
21 elif test -n '$(MAKE_HOST)'; then \
22 true; \
23 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
24 true; \
25 else \
26 false; \
27 fi; \
28 }
29 am__make_running_with_option = \
30 case $${target_option-} in \
31 ?) ;; \
32 *) echo "am__make_running_with_option: internal error: invalid" \
33 "target option '$${target_option-}' specified" >&2; \
34 exit 1;; \
35 esac; \
36 has_opt=no; \
37 sane_makeflags=$$MAKEFLAGS; \
38 if $(am__is_gnu_make); then \
39 sane_makeflags=$$MFLAGS; \
40 else \
41 case $$MAKEFLAGS in \
42 *\\[\ \ ]*) \
43 bs=\\; \
44 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
45 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
46 esac; \
47 fi; \
48 skip_next=no; \
49 strip_trailopt () \
50 { \
51 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
52 }; \
53 for flg in $$sane_makeflags; do \
54 test $$skip_next = yes && { skip_next=no; continue; }; \
55 case $$flg in \
56 *=*|--*) continue;; \
57 -*I) strip_trailopt 'I'; skip_next=yes;; \
58 -*I?*) strip_trailopt 'I';; \
59 -*O) strip_trailopt 'O'; skip_next=yes;; \
60 -*O?*) strip_trailopt 'O';; \
61 -*l) strip_trailopt 'l'; skip_next=yes;; \
62 -*l?*) strip_trailopt 'l';; \
63 -[dEDm]) skip_next=yes;; \
64 -[JT]) skip_next=yes;; \
65 esac; \
66 case $$flg in \
67 *$$target_option*) has_opt=yes; break;; \
68 esac; \
69 done; \
70 test $$has_opt = yes
71 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
72 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
73 pkgdatadir = $(datadir)/@PACKAGE@
74 pkgincludedir = $(includedir)/@PACKAGE@
75 pkglibdir = $(libdir)/@PACKAGE@
76 pkglibexecdir = $(libexecdir)/@PACKAGE@
77 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
78 install_sh_DATA = $(install_sh) -c -m 644
79 install_sh_PROGRAM = $(install_sh) -c
80 install_sh_SCRIPT = $(install_sh) -c
81 INSTALL_HEADER = $(INSTALL_DATA)
82 transform = $(program_transform_name)
83 NORMAL_INSTALL = :
84 PRE_INSTALL = :
85 POST_INSTALL = :
86 NORMAL_UNINSTALL = :
87 PRE_UNINSTALL = :
88 POST_UNINSTALL = :
89 build_triplet = @build@
90 host_triplet = @host@
91 target_triplet = @target@
92 @HAVE_VISIBILITY_TRUE@am__append_1 = -DHAVE_VISIBILITY
93 @HAVE_VISIBILITY_TRUE@am__append_2 = -DHAVE_VISIBILITY
94 @ENABLE_ENCODER_TRUE@am__append_3 = en265.h en265.cc
95 @ENABLE_ENCODER_TRUE@am__append_4 = encoder
96 @ENABLE_ENCODER_TRUE@am__append_5 = encoder/libde265_encoder.la
97 @ENABLE_SSE_OPT_TRUE@am__append_6 = x86
98 @ENABLE_SSE_OPT_TRUE@am__append_7 = x86/libde265_x86.la
99 @ENABLE_ARM_OPT_TRUE@am__append_8 = arm
100 @ENABLE_ARM_OPT_TRUE@am__append_9 = arm/libde265_arm.la
101 @MINGW_TRUE@am__append_10 = ../extra/win32cond.c ../extra/win32cond.h
102 @MINGW_TRUE@am__append_11 = -no-undefined -static-libgcc -static-libstdc++
103 subdir = libde265
104 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
105 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
106 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
107 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
108 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
109 $(top_srcdir)/m4/lt~obsolete.m4 \
110 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
111 $(top_srcdir)/configure.ac
112 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
113 $(ACLOCAL_M4)
114 DIST_COMMON = $(srcdir)/Makefile.am $(libde265_la_HEADERS) \
115 $(am__DIST_COMMON)
116 mkinstalldirs = $(install_sh) -d
117 CONFIG_HEADER = $(top_builddir)/config.h
118 CONFIG_CLEAN_FILES = de265-version.h
119 CONFIG_CLEAN_VPATH_FILES =
120 am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
121 am__vpath_adj = case $$p in \
122 $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
123 *) f=$$p;; \
124 esac;
125 am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
126 am__install_max = 40
127 am__nobase_strip_setup = \
128 srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
129 am__nobase_strip = \
130 for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
131 am__nobase_list = $(am__nobase_strip_setup); \
132 for p in $$list; do echo "$$p $$p"; done | \
133 sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
134 $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
135 if (++n[$$2] == $(am__install_max)) \
136 { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
137 END { for (dir in files) print dir, files[dir] }'
138 am__base_list = \
139 sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
140 sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
141 am__uninstall_files_from_dir = { \
142 test -z "$$files" \
143 || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \
144 || { echo " ( cd '$$dir' && rm -f" $$files ")"; \
145 $(am__cd) "$$dir" && rm -f $$files; }; \
146 }
147 am__installdirs = "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libde265_ladir)"
148 LTLIBRARIES = $(lib_LTLIBRARIES)
149 libde265_la_DEPENDENCIES = $(am__append_5) $(am__append_7) \
150 $(am__append_9)
151 am__libde265_la_SOURCES_DIST = acceleration.h alloc_pool.h \
152 alloc_pool.cc bitstream.cc bitstream.h cabac.cc cabac.h \
153 configparam.cc configparam.h contextmodel.cc contextmodel.h \
154 de265.cc deblock.cc deblock.h decctx.cc decctx.h fallback.cc \
155 fallback.h fallback-dct.h fallback-dct.cc fallback-motion.cc \
156 fallback-motion.h dpb.cc dpb.h image.cc image.h image-io.h \
157 image-io.cc intrapred.cc intrapred.h md5.cc md5.h motion.cc \
158 motion.h nal.cc nal.h nal-parser.cc nal-parser.h pps.cc pps.h \
159 quality.cc quality.h refpic.cc refpic.h sao.cc sao.h scan.cc \
160 scan.h sei.cc sei.h slice.cc slice.h sps.cc sps.h threads.cc \
161 threads.h transform.cc transform.h util.cc util.h visualize.cc \
162 visualize.h vps.cc vps.h vui.cc vui.h en265.h en265.cc \
163 ../extra/win32cond.c ../extra/win32cond.h
164 @ENABLE_ENCODER_TRUE@am__objects_1 = libde265_la-en265.lo
165 am__dirstamp = $(am__leading_dot)dirstamp
166 @MINGW_TRUE@am__objects_2 = ../extra/libde265_la-win32cond.lo
167 am_libde265_la_OBJECTS = libde265_la-alloc_pool.lo \
168 libde265_la-bitstream.lo libde265_la-cabac.lo \
169 libde265_la-configparam.lo libde265_la-contextmodel.lo \
170 libde265_la-de265.lo libde265_la-deblock.lo \
171 libde265_la-decctx.lo libde265_la-fallback.lo \
172 libde265_la-fallback-dct.lo libde265_la-fallback-motion.lo \
173 libde265_la-dpb.lo libde265_la-image.lo \
174 libde265_la-image-io.lo libde265_la-intrapred.lo \
175 libde265_la-md5.lo libde265_la-motion.lo libde265_la-nal.lo \
176 libde265_la-nal-parser.lo libde265_la-pps.lo \
177 libde265_la-quality.lo libde265_la-refpic.lo \
178 libde265_la-sao.lo libde265_la-scan.lo libde265_la-sei.lo \
179 libde265_la-slice.lo libde265_la-sps.lo libde265_la-threads.lo \
180 libde265_la-transform.lo libde265_la-util.lo \
181 libde265_la-visualize.lo libde265_la-vps.lo libde265_la-vui.lo \
182 $(am__objects_1) $(am__objects_2)
183 libde265_la_OBJECTS = $(am_libde265_la_OBJECTS)
184 AM_V_lt = $(am__v_lt_@AM_V@)
185 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
186 am__v_lt_0 = --silent
187 am__v_lt_1 =
188 libde265_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
189 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(libde265_la_CXXFLAGS) \
190 $(CXXFLAGS) $(libde265_la_LDFLAGS) $(LDFLAGS) -o $@
191 AM_V_P = $(am__v_P_@AM_V@)
192 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
193 am__v_P_0 = false
194 am__v_P_1 = :
195 AM_V_GEN = $(am__v_GEN_@AM_V@)
196 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
197 am__v_GEN_0 = @echo " GEN " $@;
198 am__v_GEN_1 =
199 AM_V_at = $(am__v_at_@AM_V@)
200 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
201 am__v_at_0 = @
202 am__v_at_1 =
203 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
204 depcomp = $(SHELL) $(top_srcdir)/depcomp
205 am__depfiles_maybe = depfiles
206 am__mv = mv -f
207 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
208 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
209 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
210 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
211 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
212 $(AM_CFLAGS) $(CFLAGS)
213 AM_V_CC = $(am__v_CC_@AM_V@)
214 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
215 am__v_CC_0 = @echo " CC " $@;
216 am__v_CC_1 =
217 CCLD = $(CC)
218 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
219 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
220 $(AM_LDFLAGS) $(LDFLAGS) -o $@
221 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
222 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
223 am__v_CCLD_0 = @echo " CCLD " $@;
224 am__v_CCLD_1 =
225 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
226 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
227 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
228 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
229 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
230 $(AM_CXXFLAGS) $(CXXFLAGS)
231 AM_V_CXX = $(am__v_CXX_@AM_V@)
232 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
233 am__v_CXX_0 = @echo " CXX " $@;
234 am__v_CXX_1 =
235 CXXLD = $(CXX)
236 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
237 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
238 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
239 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
240 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
241 am__v_CXXLD_0 = @echo " CXXLD " $@;
242 am__v_CXXLD_1 =
243 SOURCES = $(libde265_la_SOURCES)
244 DIST_SOURCES = $(am__libde265_la_SOURCES_DIST)
245 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
246 ctags-recursive dvi-recursive html-recursive info-recursive \
247 install-data-recursive install-dvi-recursive \
248 install-exec-recursive install-html-recursive \
249 install-info-recursive install-pdf-recursive \
250 install-ps-recursive install-recursive installcheck-recursive \
251 installdirs-recursive pdf-recursive ps-recursive \
252 tags-recursive uninstall-recursive
253 am__can_run_installinfo = \
254 case $$AM_UPDATE_INFO_DIR in \
255 n|no|NO) false;; \
256 *) (install-info --version) >/dev/null 2>&1;; \
257 esac
258 HEADERS = $(libde265_la_HEADERS)
259 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
260 distclean-recursive maintainer-clean-recursive
261 am__recursive_targets = \
262 $(RECURSIVE_TARGETS) \
263 $(RECURSIVE_CLEAN_TARGETS) \
264 $(am__extra_recursive_targets)
265 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
266 distdir
267 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
268 # Read a list of newline-separated strings from the standard input,
269 # and print each of them once, without duplicates. Input order is
270 # *not* preserved.
271 am__uniquify_input = $(AWK) '\
272 BEGIN { nonempty = 0; } \
273 { items[$$0] = 1; nonempty = 1; } \
274 END { if (nonempty) { for (i in items) print i; }; } \
275 '
276 # Make sure the list of sources is unique. This is necessary because,
277 # e.g., the same source file might be shared among _SOURCES variables
278 # for different programs/libraries.
279 am__define_uniq_tagged_files = \
280 list='$(am__tagged_files)'; \
281 unique=`for i in $$list; do \
282 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
283 done | $(am__uniquify_input)`
284 ETAGS = etags
285 CTAGS = ctags
286 DIST_SUBDIRS = encoder x86 arm
287 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/de265-version.h.in \
288 $(top_srcdir)/depcomp COPYING
289 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
290 am__relativize = \
291 dir0=`pwd`; \
292 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
293 sed_rest='s,^[^/]*/*,,'; \
294 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
295 sed_butlast='s,/*[^/]*$$,,'; \
296 while test -n "$$dir1"; do \
297 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
298 if test "$$first" != "."; then \
299 if test "$$first" = ".."; then \
300 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
301 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
302 else \
303 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
304 if test "$$first2" = "$$first"; then \
305 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
306 else \
307 dir2="../$$dir2"; \
308 fi; \
309 dir0="$$dir0"/"$$first"; \
310 fi; \
311 fi; \
312 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
313 done; \
314 reldir="$$dir2"
315 ACLOCAL = @ACLOCAL@
316 ALLOCA = @ALLOCA@
317 AMTAR = @AMTAR@
318 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
319 AR = @AR@
320 AUTOCONF = @AUTOCONF@
321 AUTOHEADER = @AUTOHEADER@
322 AUTOMAKE = @AUTOMAKE@
323 AWK = @AWK@
324 CC = @CC@
325 CCAS = @CCAS@
326 CCASDEPMODE = @CCASDEPMODE@
327 CCASFLAGS = @CCASFLAGS@
328 CCDEPMODE = @CCDEPMODE@
329 CFLAGS = @CFLAGS@
330 CPP = @CPP@
331 CPPFLAGS = @CPPFLAGS@
332 CXX = @CXX@
333 CXXCPP = @CXXCPP@
334 CXXDEPMODE = @CXXDEPMODE@
335 CXXFLAGS = @CXXFLAGS@
336 CYGPATH_W = @CYGPATH_W@
337 DEFS = @DEFS@
338 DEPDIR = @DEPDIR@
339 DLLTOOL = @DLLTOOL@
340 DSYMUTIL = @DSYMUTIL@
341 DUMPBIN = @DUMPBIN@
342 ECHO_C = @ECHO_C@
343 ECHO_N = @ECHO_N@
344 ECHO_T = @ECHO_T@
345 EGREP = @EGREP@
346 EXEEXT = @EXEEXT@
347 FGREP = @FGREP@
348 GREP = @GREP@
349 HAVE_CXX11 = @HAVE_CXX11@
350 INSTALL = @INSTALL@
351 INSTALL_DATA = @INSTALL_DATA@
352 INSTALL_PROGRAM = @INSTALL_PROGRAM@
353 INSTALL_SCRIPT = @INSTALL_SCRIPT@
354 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
355 LD = @LD@
356 LDFLAGS = @LDFLAGS@
357 LIBDE265_AGE = @LIBDE265_AGE@
358 LIBDE265_CURRENT = @LIBDE265_CURRENT@
359 LIBDE265_REVISION = @LIBDE265_REVISION@
360 LIBOBJS = @LIBOBJS@
361 LIBS = @LIBS@
362 LIBTOOL = @LIBTOOL@
363 LIPO = @LIPO@
364 LN_S = @LN_S@
365 LTLIBOBJS = @LTLIBOBJS@
366 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
367 MAKEINFO = @MAKEINFO@
368 MANIFEST_TOOL = @MANIFEST_TOOL@
369 MKDIR_P = @MKDIR_P@
370 NM = @NM@
371 NMEDIT = @NMEDIT@
372 NUMERIC_VERSION = @NUMERIC_VERSION@
373 OBJDUMP = @OBJDUMP@
374 OBJEXT = @OBJEXT@
375 OTOOL = @OTOOL@
376 OTOOL64 = @OTOOL64@
377 PACKAGE = @PACKAGE@
378 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
379 PACKAGE_NAME = @PACKAGE_NAME@
380 PACKAGE_STRING = @PACKAGE_STRING@
381 PACKAGE_TARNAME = @PACKAGE_TARNAME@
382 PACKAGE_URL = @PACKAGE_URL@
383 PACKAGE_VERSION = @PACKAGE_VERSION@
384 PATH_SEPARATOR = @PATH_SEPARATOR@
385 PKG_CONFIG = @PKG_CONFIG@
386 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
387 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
388 QTCHOOSER = @QTCHOOSER@
389 QTMOC = @QTMOC@
390 QT_CFLAGS = @QT_CFLAGS@
391 QT_LIBS = @QT_LIBS@
392 RANLIB = @RANLIB@
393 SDL_CFLAGS = @SDL_CFLAGS@
394 SDL_LIBS = @SDL_LIBS@
395 SED = @SED@
396 SET_MAKE = @SET_MAKE@
397 SHELL = @SHELL@
398 STRIP = @STRIP@
399 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
400 SWSCALE_LIBS = @SWSCALE_LIBS@
401 VERSION = @VERSION@
402 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
403 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
404 abs_builddir = @abs_builddir@
405 abs_srcdir = @abs_srcdir@
406 abs_top_builddir = @abs_top_builddir@
407 abs_top_srcdir = @abs_top_srcdir@
408 ac_ct_AR = @ac_ct_AR@
409 ac_ct_CC = @ac_ct_CC@
410 ac_ct_CXX = @ac_ct_CXX@
411 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
412 am__include = @am__include@
413 am__leading_dot = @am__leading_dot@
414 am__quote = @am__quote@
415 am__tar = @am__tar@
416 am__untar = @am__untar@
417 bindir = @bindir@
418 build = @build@
419 build_alias = @build_alias@
420 build_cpu = @build_cpu@
421 build_os = @build_os@
422 build_vendor = @build_vendor@
423 builddir = @builddir@
424 datadir = @datadir@
425 datarootdir = @datarootdir@
426 docdir = @docdir@
427 dvidir = @dvidir@
428 exec_prefix = @exec_prefix@
429 host = @host@
430 host_alias = @host_alias@
431 host_cpu = @host_cpu@
432 host_os = @host_os@
433 host_vendor = @host_vendor@
434 htmldir = @htmldir@
435 includedir = @includedir@
436 infodir = @infodir@
437 install_sh = @install_sh@
438 libdir = @libdir@
439 libexecdir = @libexecdir@
440 localedir = @localedir@
441 localstatedir = @localstatedir@
442 mandir = @mandir@
443 mkdir_p = @mkdir_p@
444 oldincludedir = @oldincludedir@
445 pdfdir = @pdfdir@
446 prefix = @prefix@
447 program_transform_name = @program_transform_name@
448 psdir = @psdir@
449 runstatedir = @runstatedir@
450 sbindir = @sbindir@
451 sharedstatedir = @sharedstatedir@
452 srcdir = @srcdir@
453 sysconfdir = @sysconfdir@
454 target = @target@
455 target_alias = @target_alias@
456 target_cpu = @target_cpu@
457 target_os = @target_os@
458 target_vendor = @target_vendor@
459 top_build_prefix = @top_build_prefix@
460 top_builddir = @top_builddir@
461 top_srcdir = @top_srcdir@
462 AUTOMAKE_OPTIONS = subdir-objects
463 lib_LTLIBRARIES = libde265.la
464 libde265_ladir = \
465 $(includedir)/libde265
466
467 libde265_la_CPPFLAGS =
468 libde265_la_CFLAGS = $(CFLAG_VISIBILITY) -DLIBDE265_EXPORTS \
469 $(am__append_1)
470 libde265_la_CXXFLAGS = $(CFLAG_VISIBILITY) -DLIBDE265_EXPORTS \
471 -I$(top_srcdir) $(am__append_2)
472 libde265_la_LDFLAGS = -version-info \
473 $(LIBDE265_CURRENT):$(LIBDE265_REVISION):$(LIBDE265_AGE) \
474 $(am__append_11)
475 libde265_la_SOURCES = acceleration.h alloc_pool.h alloc_pool.cc \
476 bitstream.cc bitstream.h cabac.cc cabac.h configparam.cc \
477 configparam.h contextmodel.cc contextmodel.h de265.cc \
478 deblock.cc deblock.h decctx.cc decctx.h fallback.cc fallback.h \
479 fallback-dct.h fallback-dct.cc fallback-motion.cc \
480 fallback-motion.h dpb.cc dpb.h image.cc image.h image-io.h \
481 image-io.cc intrapred.cc intrapred.h md5.cc md5.h motion.cc \
482 motion.h nal.cc nal.h nal-parser.cc nal-parser.h pps.cc pps.h \
483 quality.cc quality.h refpic.cc refpic.h sao.cc sao.h scan.cc \
484 scan.h sei.cc sei.h slice.cc slice.h sps.cc sps.h threads.cc \
485 threads.h transform.cc transform.h util.cc util.h visualize.cc \
486 visualize.h vps.cc vps.h vui.cc vui.h $(am__append_3) \
487 $(am__append_10)
488 SUBDIRS = $(am__append_4) $(am__append_6) $(am__append_8)
489 libde265_la_LIBADD = $(am__append_5) $(am__append_7) $(am__append_9)
490 EXTRA_DIST = Makefile.vc7 \
491 CMakeLists.txt \
492 ../extra/stdbool.h \
493 ../extra/stdint.h
494
495 libde265_la_HEADERS = \
496 de265.h \
497 de265-version.h
498
499 all: all-recursive
500
501 .SUFFIXES:
502 .SUFFIXES: .c .cc .lo .o .obj
503 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
504 @for dep in $?; do \
505 case '$(am__configure_deps)' in \
506 *$$dep*) \
507 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
508 && { if test -f $@; then exit 0; else break; fi; }; \
509 exit 1;; \
510 esac; \
511 done; \
512 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libde265/Makefile'; \
513 $(am__cd) $(top_srcdir) && \
514 $(AUTOMAKE) --gnu libde265/Makefile
515 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
516 @case '$?' in \
517 *config.status*) \
518 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
519 *) \
520 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
521 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
522 esac;
523
524 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
525 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
526
527 $(top_srcdir)/configure: $(am__configure_deps)
528 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
529 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
530 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
531 $(am__aclocal_m4_deps):
532 de265-version.h: $(top_builddir)/config.status $(srcdir)/de265-version.h.in
533 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
534
535 install-libLTLIBRARIES: $(lib_LTLIBRARIES)
536 @$(NORMAL_INSTALL)
537 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
538 list2=; for p in $$list; do \
539 if test -f $$p; then \
540 list2="$$list2 $$p"; \
541 else :; fi; \
542 done; \
543 test -z "$$list2" || { \
544 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \
545 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \
546 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(libdir)'"; \
547 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(libdir)"; \
548 }
549
550 uninstall-libLTLIBRARIES:
551 @$(NORMAL_UNINSTALL)
552 @list='$(lib_LTLIBRARIES)'; test -n "$(libdir)" || list=; \
553 for p in $$list; do \
554 $(am__strip_dir) \
555 echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(libdir)/$$f'"; \
556 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(libdir)/$$f"; \
557 done
558
559 clean-libLTLIBRARIES:
560 -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
561 @list='$(lib_LTLIBRARIES)'; \
562 locs=`for p in $$list; do echo $$p; done | \
563 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
564 sort -u`; \
565 test -z "$$locs" || { \
566 echo rm -f $${locs}; \
567 rm -f $${locs}; \
568 }
569 ../extra/$(am__dirstamp):
570 @$(MKDIR_P) ../extra
571 @: > ../extra/$(am__dirstamp)
572 ../extra/$(DEPDIR)/$(am__dirstamp):
573 @$(MKDIR_P) ../extra/$(DEPDIR)
574 @: > ../extra/$(DEPDIR)/$(am__dirstamp)
575 ../extra/libde265_la-win32cond.lo: ../extra/$(am__dirstamp) \
576 ../extra/$(DEPDIR)/$(am__dirstamp)
577
578 libde265.la: $(libde265_la_OBJECTS) $(libde265_la_DEPENDENCIES) $(EXTRA_libde265_la_DEPENDENCIES)
579 $(AM_V_CXXLD)$(libde265_la_LINK) -rpath $(libdir) $(libde265_la_OBJECTS) $(libde265_la_LIBADD) $(LIBS)
580
581 mostlyclean-compile:
582 -rm -f *.$(OBJEXT)
583 -rm -f ../extra/*.$(OBJEXT)
584 -rm -f ../extra/*.lo
585
586 distclean-compile:
587 -rm -f *.tab.c
588
589 @AMDEP_TRUE@@am__include@ @am__quote@../extra/$(DEPDIR)/libde265_la-win32cond.Plo@am__quote@
590 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-alloc_pool.Plo@am__quote@
591 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-bitstream.Plo@am__quote@
592 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-cabac.Plo@am__quote@
593 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-configparam.Plo@am__quote@
594 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-contextmodel.Plo@am__quote@
595 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-de265.Plo@am__quote@
596 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-deblock.Plo@am__quote@
597 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-decctx.Plo@am__quote@
598 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-dpb.Plo@am__quote@
599 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-en265.Plo@am__quote@
600 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-fallback-dct.Plo@am__quote@
601 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-fallback-motion.Plo@am__quote@
602 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-fallback.Plo@am__quote@
603 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-image-io.Plo@am__quote@
604 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-image.Plo@am__quote@
605 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-intrapred.Plo@am__quote@
606 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-md5.Plo@am__quote@
607 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-motion.Plo@am__quote@
608 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-nal-parser.Plo@am__quote@
609 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-nal.Plo@am__quote@
610 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-pps.Plo@am__quote@
611 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-quality.Plo@am__quote@
612 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-refpic.Plo@am__quote@
613 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-sao.Plo@am__quote@
614 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-scan.Plo@am__quote@
615 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-sei.Plo@am__quote@
616 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-slice.Plo@am__quote@
617 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-sps.Plo@am__quote@
618 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-threads.Plo@am__quote@
619 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-transform.Plo@am__quote@
620 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-util.Plo@am__quote@
621 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-visualize.Plo@am__quote@
622 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-vps.Plo@am__quote@
623 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_la-vui.Plo@am__quote@
624
625 .c.o:
626 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
627 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
628 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
629 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
630 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
631 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
632
633 .c.obj:
634 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
635 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
636 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
637 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
638 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
639 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
640
641 .c.lo:
642 @am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
643 @am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
644 @am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
645 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
646 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
647 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
648
649 ../extra/libde265_la-win32cond.lo: ../extra/win32cond.c
650 @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CFLAGS) $(CFLAGS) -MT ../extra/libde265_la-win32cond.lo -MD -MP -MF ../extra/$(DEPDIR)/libde265_la-win32cond.Tpo -c -o ../extra/libde265_la-win32cond.lo `test -f '../extra/win32cond.c' || echo '$(srcdir)/'`../extra/win32cond.c
651 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) ../extra/$(DEPDIR)/libde265_la-win32cond.Tpo ../extra/$(DEPDIR)/libde265_la-win32cond.Plo
652 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='../extra/win32cond.c' object='../extra/libde265_la-win32cond.lo' libtool=yes @AMDEPBACKSLASH@
653 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
654 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CFLAGS) $(CFLAGS) -c -o ../extra/libde265_la-win32cond.lo `test -f '../extra/win32cond.c' || echo '$(srcdir)/'`../extra/win32cond.c
655
656 .cc.o:
657 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
658 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
659 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
660 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
661 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
662 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
663
664 .cc.obj:
665 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
666 @am__fastdepCXX_TRUE@ $(CXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
667 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
668 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
669 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
670 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
671
672 .cc.lo:
673 @am__fastdepCXX_TRUE@ $(AM_V_CXX)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
674 @am__fastdepCXX_TRUE@ $(LTCXXCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
675 @am__fastdepCXX_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
676 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
677 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
678 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
679
680 libde265_la-alloc_pool.lo: alloc_pool.cc
681 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-alloc_pool.lo -MD -MP -MF $(DEPDIR)/libde265_la-alloc_pool.Tpo -c -o libde265_la-alloc_pool.lo `test -f 'alloc_pool.cc' || echo '$(srcdir)/'`alloc_pool.cc
682 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-alloc_pool.Tpo $(DEPDIR)/libde265_la-alloc_pool.Plo
683 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='alloc_pool.cc' object='libde265_la-alloc_pool.lo' libtool=yes @AMDEPBACKSLASH@
684 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
685 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-alloc_pool.lo `test -f 'alloc_pool.cc' || echo '$(srcdir)/'`alloc_pool.cc
686
687 libde265_la-bitstream.lo: bitstream.cc
688 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-bitstream.lo -MD -MP -MF $(DEPDIR)/libde265_la-bitstream.Tpo -c -o libde265_la-bitstream.lo `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc
689 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-bitstream.Tpo $(DEPDIR)/libde265_la-bitstream.Plo
690 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bitstream.cc' object='libde265_la-bitstream.lo' libtool=yes @AMDEPBACKSLASH@
691 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
692 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-bitstream.lo `test -f 'bitstream.cc' || echo '$(srcdir)/'`bitstream.cc
693
694 libde265_la-cabac.lo: cabac.cc
695 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-cabac.lo -MD -MP -MF $(DEPDIR)/libde265_la-cabac.Tpo -c -o libde265_la-cabac.lo `test -f 'cabac.cc' || echo '$(srcdir)/'`cabac.cc
696 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-cabac.Tpo $(DEPDIR)/libde265_la-cabac.Plo
697 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='cabac.cc' object='libde265_la-cabac.lo' libtool=yes @AMDEPBACKSLASH@
698 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
699 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-cabac.lo `test -f 'cabac.cc' || echo '$(srcdir)/'`cabac.cc
700
701 libde265_la-configparam.lo: configparam.cc
702 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-configparam.lo -MD -MP -MF $(DEPDIR)/libde265_la-configparam.Tpo -c -o libde265_la-configparam.lo `test -f 'configparam.cc' || echo '$(srcdir)/'`configparam.cc
703 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-configparam.Tpo $(DEPDIR)/libde265_la-configparam.Plo
704 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='configparam.cc' object='libde265_la-configparam.lo' libtool=yes @AMDEPBACKSLASH@
705 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
706 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-configparam.lo `test -f 'configparam.cc' || echo '$(srcdir)/'`configparam.cc
707
708 libde265_la-contextmodel.lo: contextmodel.cc
709 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-contextmodel.lo -MD -MP -MF $(DEPDIR)/libde265_la-contextmodel.Tpo -c -o libde265_la-contextmodel.lo `test -f 'contextmodel.cc' || echo '$(srcdir)/'`contextmodel.cc
710 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-contextmodel.Tpo $(DEPDIR)/libde265_la-contextmodel.Plo
711 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='contextmodel.cc' object='libde265_la-contextmodel.lo' libtool=yes @AMDEPBACKSLASH@
712 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
713 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-contextmodel.lo `test -f 'contextmodel.cc' || echo '$(srcdir)/'`contextmodel.cc
714
715 libde265_la-de265.lo: de265.cc
716 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-de265.lo -MD -MP -MF $(DEPDIR)/libde265_la-de265.Tpo -c -o libde265_la-de265.lo `test -f 'de265.cc' || echo '$(srcdir)/'`de265.cc
717 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-de265.Tpo $(DEPDIR)/libde265_la-de265.Plo
718 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='de265.cc' object='libde265_la-de265.lo' libtool=yes @AMDEPBACKSLASH@
719 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
720 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-de265.lo `test -f 'de265.cc' || echo '$(srcdir)/'`de265.cc
721
722 libde265_la-deblock.lo: deblock.cc
723 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-deblock.lo -MD -MP -MF $(DEPDIR)/libde265_la-deblock.Tpo -c -o libde265_la-deblock.lo `test -f 'deblock.cc' || echo '$(srcdir)/'`deblock.cc
724 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-deblock.Tpo $(DEPDIR)/libde265_la-deblock.Plo
725 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='deblock.cc' object='libde265_la-deblock.lo' libtool=yes @AMDEPBACKSLASH@
726 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
727 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-deblock.lo `test -f 'deblock.cc' || echo '$(srcdir)/'`deblock.cc
728
729 libde265_la-decctx.lo: decctx.cc
730 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-decctx.lo -MD -MP -MF $(DEPDIR)/libde265_la-decctx.Tpo -c -o libde265_la-decctx.lo `test -f 'decctx.cc' || echo '$(srcdir)/'`decctx.cc
731 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-decctx.Tpo $(DEPDIR)/libde265_la-decctx.Plo
732 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='decctx.cc' object='libde265_la-decctx.lo' libtool=yes @AMDEPBACKSLASH@
733 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
734 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-decctx.lo `test -f 'decctx.cc' || echo '$(srcdir)/'`decctx.cc
735
736 libde265_la-fallback.lo: fallback.cc
737 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-fallback.lo -MD -MP -MF $(DEPDIR)/libde265_la-fallback.Tpo -c -o libde265_la-fallback.lo `test -f 'fallback.cc' || echo '$(srcdir)/'`fallback.cc
738 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-fallback.Tpo $(DEPDIR)/libde265_la-fallback.Plo
739 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='fallback.cc' object='libde265_la-fallback.lo' libtool=yes @AMDEPBACKSLASH@
740 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
741 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-fallback.lo `test -f 'fallback.cc' || echo '$(srcdir)/'`fallback.cc
742
743 libde265_la-fallback-dct.lo: fallback-dct.cc
744 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-fallback-dct.lo -MD -MP -MF $(DEPDIR)/libde265_la-fallback-dct.Tpo -c -o libde265_la-fallback-dct.lo `test -f 'fallback-dct.cc' || echo '$(srcdir)/'`fallback-dct.cc
745 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-fallback-dct.Tpo $(DEPDIR)/libde265_la-fallback-dct.Plo
746 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='fallback-dct.cc' object='libde265_la-fallback-dct.lo' libtool=yes @AMDEPBACKSLASH@
747 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
748 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-fallback-dct.lo `test -f 'fallback-dct.cc' || echo '$(srcdir)/'`fallback-dct.cc
749
750 libde265_la-fallback-motion.lo: fallback-motion.cc
751 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-fallback-motion.lo -MD -MP -MF $(DEPDIR)/libde265_la-fallback-motion.Tpo -c -o libde265_la-fallback-motion.lo `test -f 'fallback-motion.cc' || echo '$(srcdir)/'`fallback-motion.cc
752 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-fallback-motion.Tpo $(DEPDIR)/libde265_la-fallback-motion.Plo
753 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='fallback-motion.cc' object='libde265_la-fallback-motion.lo' libtool=yes @AMDEPBACKSLASH@
754 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
755 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-fallback-motion.lo `test -f 'fallback-motion.cc' || echo '$(srcdir)/'`fallback-motion.cc
756
757 libde265_la-dpb.lo: dpb.cc
758 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-dpb.lo -MD -MP -MF $(DEPDIR)/libde265_la-dpb.Tpo -c -o libde265_la-dpb.lo `test -f 'dpb.cc' || echo '$(srcdir)/'`dpb.cc
759 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-dpb.Tpo $(DEPDIR)/libde265_la-dpb.Plo
760 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='dpb.cc' object='libde265_la-dpb.lo' libtool=yes @AMDEPBACKSLASH@
761 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
762 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-dpb.lo `test -f 'dpb.cc' || echo '$(srcdir)/'`dpb.cc
763
764 libde265_la-image.lo: image.cc
765 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-image.lo -MD -MP -MF $(DEPDIR)/libde265_la-image.Tpo -c -o libde265_la-image.lo `test -f 'image.cc' || echo '$(srcdir)/'`image.cc
766 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-image.Tpo $(DEPDIR)/libde265_la-image.Plo
767 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='image.cc' object='libde265_la-image.lo' libtool=yes @AMDEPBACKSLASH@
768 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
769 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-image.lo `test -f 'image.cc' || echo '$(srcdir)/'`image.cc
770
771 libde265_la-image-io.lo: image-io.cc
772 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-image-io.lo -MD -MP -MF $(DEPDIR)/libde265_la-image-io.Tpo -c -o libde265_la-image-io.lo `test -f 'image-io.cc' || echo '$(srcdir)/'`image-io.cc
773 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-image-io.Tpo $(DEPDIR)/libde265_la-image-io.Plo
774 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='image-io.cc' object='libde265_la-image-io.lo' libtool=yes @AMDEPBACKSLASH@
775 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
776 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-image-io.lo `test -f 'image-io.cc' || echo '$(srcdir)/'`image-io.cc
777
778 libde265_la-intrapred.lo: intrapred.cc
779 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-intrapred.lo -MD -MP -MF $(DEPDIR)/libde265_la-intrapred.Tpo -c -o libde265_la-intrapred.lo `test -f 'intrapred.cc' || echo '$(srcdir)/'`intrapred.cc
780 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-intrapred.Tpo $(DEPDIR)/libde265_la-intrapred.Plo
781 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='intrapred.cc' object='libde265_la-intrapred.lo' libtool=yes @AMDEPBACKSLASH@
782 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
783 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-intrapred.lo `test -f 'intrapred.cc' || echo '$(srcdir)/'`intrapred.cc
784
785 libde265_la-md5.lo: md5.cc
786 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-md5.lo -MD -MP -MF $(DEPDIR)/libde265_la-md5.Tpo -c -o libde265_la-md5.lo `test -f 'md5.cc' || echo '$(srcdir)/'`md5.cc
787 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-md5.Tpo $(DEPDIR)/libde265_la-md5.Plo
788 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='md5.cc' object='libde265_la-md5.lo' libtool=yes @AMDEPBACKSLASH@
789 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
790 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-md5.lo `test -f 'md5.cc' || echo '$(srcdir)/'`md5.cc
791
792 libde265_la-motion.lo: motion.cc
793 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-motion.lo -MD -MP -MF $(DEPDIR)/libde265_la-motion.Tpo -c -o libde265_la-motion.lo `test -f 'motion.cc' || echo '$(srcdir)/'`motion.cc
794 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-motion.Tpo $(DEPDIR)/libde265_la-motion.Plo
795 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='motion.cc' object='libde265_la-motion.lo' libtool=yes @AMDEPBACKSLASH@
796 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
797 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-motion.lo `test -f 'motion.cc' || echo '$(srcdir)/'`motion.cc
798
799 libde265_la-nal.lo: nal.cc
800 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-nal.lo -MD -MP -MF $(DEPDIR)/libde265_la-nal.Tpo -c -o libde265_la-nal.lo `test -f 'nal.cc' || echo '$(srcdir)/'`nal.cc
801 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-nal.Tpo $(DEPDIR)/libde265_la-nal.Plo
802 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nal.cc' object='libde265_la-nal.lo' libtool=yes @AMDEPBACKSLASH@
803 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
804 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-nal.lo `test -f 'nal.cc' || echo '$(srcdir)/'`nal.cc
805
806 libde265_la-nal-parser.lo: nal-parser.cc
807 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-nal-parser.lo -MD -MP -MF $(DEPDIR)/libde265_la-nal-parser.Tpo -c -o libde265_la-nal-parser.lo `test -f 'nal-parser.cc' || echo '$(srcdir)/'`nal-parser.cc
808 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-nal-parser.Tpo $(DEPDIR)/libde265_la-nal-parser.Plo
809 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='nal-parser.cc' object='libde265_la-nal-parser.lo' libtool=yes @AMDEPBACKSLASH@
810 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
811 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-nal-parser.lo `test -f 'nal-parser.cc' || echo '$(srcdir)/'`nal-parser.cc
812
813 libde265_la-pps.lo: pps.cc
814 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-pps.lo -MD -MP -MF $(DEPDIR)/libde265_la-pps.Tpo -c -o libde265_la-pps.lo `test -f 'pps.cc' || echo '$(srcdir)/'`pps.cc
815 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-pps.Tpo $(DEPDIR)/libde265_la-pps.Plo
816 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='pps.cc' object='libde265_la-pps.lo' libtool=yes @AMDEPBACKSLASH@
817 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
818 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-pps.lo `test -f 'pps.cc' || echo '$(srcdir)/'`pps.cc
819
820 libde265_la-quality.lo: quality.cc
821 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-quality.lo -MD -MP -MF $(DEPDIR)/libde265_la-quality.Tpo -c -o libde265_la-quality.lo `test -f 'quality.cc' || echo '$(srcdir)/'`quality.cc
822 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-quality.Tpo $(DEPDIR)/libde265_la-quality.Plo
823 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='quality.cc' object='libde265_la-quality.lo' libtool=yes @AMDEPBACKSLASH@
824 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
825 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-quality.lo `test -f 'quality.cc' || echo '$(srcdir)/'`quality.cc
826
827 libde265_la-refpic.lo: refpic.cc
828 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-refpic.lo -MD -MP -MF $(DEPDIR)/libde265_la-refpic.Tpo -c -o libde265_la-refpic.lo `test -f 'refpic.cc' || echo '$(srcdir)/'`refpic.cc
829 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-refpic.Tpo $(DEPDIR)/libde265_la-refpic.Plo
830 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='refpic.cc' object='libde265_la-refpic.lo' libtool=yes @AMDEPBACKSLASH@
831 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
832 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-refpic.lo `test -f 'refpic.cc' || echo '$(srcdir)/'`refpic.cc
833
834 libde265_la-sao.lo: sao.cc
835 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-sao.lo -MD -MP -MF $(DEPDIR)/libde265_la-sao.Tpo -c -o libde265_la-sao.lo `test -f 'sao.cc' || echo '$(srcdir)/'`sao.cc
836 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-sao.Tpo $(DEPDIR)/libde265_la-sao.Plo
837 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sao.cc' object='libde265_la-sao.lo' libtool=yes @AMDEPBACKSLASH@
838 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
839 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-sao.lo `test -f 'sao.cc' || echo '$(srcdir)/'`sao.cc
840
841 libde265_la-scan.lo: scan.cc
842 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-scan.lo -MD -MP -MF $(DEPDIR)/libde265_la-scan.Tpo -c -o libde265_la-scan.lo `test -f 'scan.cc' || echo '$(srcdir)/'`scan.cc
843 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-scan.Tpo $(DEPDIR)/libde265_la-scan.Plo
844 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='scan.cc' object='libde265_la-scan.lo' libtool=yes @AMDEPBACKSLASH@
845 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
846 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-scan.lo `test -f 'scan.cc' || echo '$(srcdir)/'`scan.cc
847
848 libde265_la-sei.lo: sei.cc
849 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-sei.lo -MD -MP -MF $(DEPDIR)/libde265_la-sei.Tpo -c -o libde265_la-sei.lo `test -f 'sei.cc' || echo '$(srcdir)/'`sei.cc
850 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-sei.Tpo $(DEPDIR)/libde265_la-sei.Plo
851 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sei.cc' object='libde265_la-sei.lo' libtool=yes @AMDEPBACKSLASH@
852 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
853 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-sei.lo `test -f 'sei.cc' || echo '$(srcdir)/'`sei.cc
854
855 libde265_la-slice.lo: slice.cc
856 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-slice.lo -MD -MP -MF $(DEPDIR)/libde265_la-slice.Tpo -c -o libde265_la-slice.lo `test -f 'slice.cc' || echo '$(srcdir)/'`slice.cc
857 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-slice.Tpo $(DEPDIR)/libde265_la-slice.Plo
858 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='slice.cc' object='libde265_la-slice.lo' libtool=yes @AMDEPBACKSLASH@
859 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
860 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-slice.lo `test -f 'slice.cc' || echo '$(srcdir)/'`slice.cc
861
862 libde265_la-sps.lo: sps.cc
863 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-sps.lo -MD -MP -MF $(DEPDIR)/libde265_la-sps.Tpo -c -o libde265_la-sps.lo `test -f 'sps.cc' || echo '$(srcdir)/'`sps.cc
864 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-sps.Tpo $(DEPDIR)/libde265_la-sps.Plo
865 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sps.cc' object='libde265_la-sps.lo' libtool=yes @AMDEPBACKSLASH@
866 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
867 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-sps.lo `test -f 'sps.cc' || echo '$(srcdir)/'`sps.cc
868
869 libde265_la-threads.lo: threads.cc
870 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-threads.lo -MD -MP -MF $(DEPDIR)/libde265_la-threads.Tpo -c -o libde265_la-threads.lo `test -f 'threads.cc' || echo '$(srcdir)/'`threads.cc
871 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-threads.Tpo $(DEPDIR)/libde265_la-threads.Plo
872 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='threads.cc' object='libde265_la-threads.lo' libtool=yes @AMDEPBACKSLASH@
873 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
874 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-threads.lo `test -f 'threads.cc' || echo '$(srcdir)/'`threads.cc
875
876 libde265_la-transform.lo: transform.cc
877 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-transform.lo -MD -MP -MF $(DEPDIR)/libde265_la-transform.Tpo -c -o libde265_la-transform.lo `test -f 'transform.cc' || echo '$(srcdir)/'`transform.cc
878 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-transform.Tpo $(DEPDIR)/libde265_la-transform.Plo
879 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='transform.cc' object='libde265_la-transform.lo' libtool=yes @AMDEPBACKSLASH@
880 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
881 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-transform.lo `test -f 'transform.cc' || echo '$(srcdir)/'`transform.cc
882
883 libde265_la-util.lo: util.cc
884 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-util.lo -MD -MP -MF $(DEPDIR)/libde265_la-util.Tpo -c -o libde265_la-util.lo `test -f 'util.cc' || echo '$(srcdir)/'`util.cc
885 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-util.Tpo $(DEPDIR)/libde265_la-util.Plo
886 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='util.cc' object='libde265_la-util.lo' libtool=yes @AMDEPBACKSLASH@
887 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
888 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-util.lo `test -f 'util.cc' || echo '$(srcdir)/'`util.cc
889
890 libde265_la-visualize.lo: visualize.cc
891 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-visualize.lo -MD -MP -MF $(DEPDIR)/libde265_la-visualize.Tpo -c -o libde265_la-visualize.lo `test -f 'visualize.cc' || echo '$(srcdir)/'`visualize.cc
892 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-visualize.Tpo $(DEPDIR)/libde265_la-visualize.Plo
893 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='visualize.cc' object='libde265_la-visualize.lo' libtool=yes @AMDEPBACKSLASH@
894 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
895 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-visualize.lo `test -f 'visualize.cc' || echo '$(srcdir)/'`visualize.cc
896
897 libde265_la-vps.lo: vps.cc
898 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-vps.lo -MD -MP -MF $(DEPDIR)/libde265_la-vps.Tpo -c -o libde265_la-vps.lo `test -f 'vps.cc' || echo '$(srcdir)/'`vps.cc
899 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-vps.Tpo $(DEPDIR)/libde265_la-vps.Plo
900 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='vps.cc' object='libde265_la-vps.lo' libtool=yes @AMDEPBACKSLASH@
901 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
902 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-vps.lo `test -f 'vps.cc' || echo '$(srcdir)/'`vps.cc
903
904 libde265_la-vui.lo: vui.cc
905 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-vui.lo -MD -MP -MF $(DEPDIR)/libde265_la-vui.Tpo -c -o libde265_la-vui.lo `test -f 'vui.cc' || echo '$(srcdir)/'`vui.cc
906 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-vui.Tpo $(DEPDIR)/libde265_la-vui.Plo
907 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='vui.cc' object='libde265_la-vui.lo' libtool=yes @AMDEPBACKSLASH@
908 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
909 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-vui.lo `test -f 'vui.cc' || echo '$(srcdir)/'`vui.cc
910
911 libde265_la-en265.lo: en265.cc
912 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_la-en265.lo -MD -MP -MF $(DEPDIR)/libde265_la-en265.Tpo -c -o libde265_la-en265.lo `test -f 'en265.cc' || echo '$(srcdir)/'`en265.cc
913 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_la-en265.Tpo $(DEPDIR)/libde265_la-en265.Plo
914 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='en265.cc' object='libde265_la-en265.lo' libtool=yes @AMDEPBACKSLASH@
915 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
916 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(libde265_la_CPPFLAGS) $(CPPFLAGS) $(libde265_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_la-en265.lo `test -f 'en265.cc' || echo '$(srcdir)/'`en265.cc
917
918 mostlyclean-libtool:
919 -rm -f *.lo
920
921 clean-libtool:
922 -rm -rf .libs _libs
923 -rm -rf ../extra/.libs ../extra/_libs
924 install-libde265_laHEADERS: $(libde265_la_HEADERS)
925 @$(NORMAL_INSTALL)
926 @list='$(libde265_la_HEADERS)'; test -n "$(libde265_ladir)" || list=; \
927 if test -n "$$list"; then \
928 echo " $(MKDIR_P) '$(DESTDIR)$(libde265_ladir)'"; \
929 $(MKDIR_P) "$(DESTDIR)$(libde265_ladir)" || exit 1; \
930 fi; \
931 for p in $$list; do \
932 if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
933 echo "$$d$$p"; \
934 done | $(am__base_list) | \
935 while read files; do \
936 echo " $(INSTALL_HEADER) $$files '$(DESTDIR)$(libde265_ladir)'"; \
937 $(INSTALL_HEADER) $$files "$(DESTDIR)$(libde265_ladir)" || exit $$?; \
938 done
939
940 uninstall-libde265_laHEADERS:
941 @$(NORMAL_UNINSTALL)
942 @list='$(libde265_la_HEADERS)'; test -n "$(libde265_ladir)" || list=; \
943 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \
944 dir='$(DESTDIR)$(libde265_ladir)'; $(am__uninstall_files_from_dir)
945
946 # This directory's subdirectories are mostly independent; you can cd
947 # into them and run 'make' without going through this Makefile.
948 # To change the values of 'make' variables: instead of editing Makefiles,
949 # (1) if the variable is set in 'config.status', edit 'config.status'
950 # (which will cause the Makefiles to be regenerated when you run 'make');
951 # (2) otherwise, pass the desired values on the 'make' command line.
952 $(am__recursive_targets):
953 @fail=; \
954 if $(am__make_keepgoing); then \
955 failcom='fail=yes'; \
956 else \
957 failcom='exit 1'; \
958 fi; \
959 dot_seen=no; \
960 target=`echo $@ | sed s/-recursive//`; \
961 case "$@" in \
962 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
963 *) list='$(SUBDIRS)' ;; \
964 esac; \
965 for subdir in $$list; do \
966 echo "Making $$target in $$subdir"; \
967 if test "$$subdir" = "."; then \
968 dot_seen=yes; \
969 local_target="$$target-am"; \
970 else \
971 local_target="$$target"; \
972 fi; \
973 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
974 || eval $$failcom; \
975 done; \
976 if test "$$dot_seen" = "no"; then \
977 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
978 fi; test -z "$$fail"
979
980 ID: $(am__tagged_files)
981 $(am__define_uniq_tagged_files); mkid -fID $$unique
982 tags: tags-recursive
983 TAGS: tags
984
985 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
986 set x; \
987 here=`pwd`; \
988 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
989 include_option=--etags-include; \
990 empty_fix=.; \
991 else \
992 include_option=--include; \
993 empty_fix=; \
994 fi; \
995 list='$(SUBDIRS)'; for subdir in $$list; do \
996 if test "$$subdir" = .; then :; else \
997 test ! -f $$subdir/TAGS || \
998 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
999 fi; \
1000 done; \
1001 $(am__define_uniq_tagged_files); \
1002 shift; \
1003 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
1004 test -n "$$unique" || unique=$$empty_fix; \
1005 if test $$# -gt 0; then \
1006 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1007 "$$@" $$unique; \
1008 else \
1009 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
1010 $$unique; \
1011 fi; \
1012 fi
1013 ctags: ctags-recursive
1014
1015 CTAGS: ctags
1016 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
1017 $(am__define_uniq_tagged_files); \
1018 test -z "$(CTAGS_ARGS)$$unique" \
1019 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
1020 $$unique
1021
1022 GTAGS:
1023 here=`$(am__cd) $(top_builddir) && pwd` \
1024 && $(am__cd) $(top_srcdir) \
1025 && gtags -i $(GTAGS_ARGS) "$$here"
1026 cscopelist: cscopelist-recursive
1027
1028 cscopelist-am: $(am__tagged_files)
1029 list='$(am__tagged_files)'; \
1030 case "$(srcdir)" in \
1031 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
1032 *) sdir=$(subdir)/$(srcdir) ;; \
1033 esac; \
1034 for i in $$list; do \
1035 if test -f "$$i"; then \
1036 echo "$(subdir)/$$i"; \
1037 else \
1038 echo "$$sdir/$$i"; \
1039 fi; \
1040 done >> $(top_builddir)/cscope.files
1041
1042 distclean-tags:
1043 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
1044
1045 distdir: $(DISTFILES)
1046 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1047 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
1048 list='$(DISTFILES)'; \
1049 dist_files=`for file in $$list; do echo $$file; done | \
1050 sed -e "s|^$$srcdirstrip/||;t" \
1051 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
1052 case $$dist_files in \
1053 */*) $(MKDIR_P) `echo "$$dist_files" | \
1054 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
1055 sort -u` ;; \
1056 esac; \
1057 for file in $$dist_files; do \
1058 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
1059 if test -d $$d/$$file; then \
1060 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
1061 if test -d "$(distdir)/$$file"; then \
1062 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1063 fi; \
1064 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
1065 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
1066 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
1067 fi; \
1068 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
1069 else \
1070 test -f "$(distdir)/$$file" \
1071 || cp -p $$d/$$file "$(distdir)/$$file" \
1072 || exit 1; \
1073 fi; \
1074 done
1075 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
1076 if test "$$subdir" = .; then :; else \
1077 $(am__make_dryrun) \
1078 || test -d "$(distdir)/$$subdir" \
1079 || $(MKDIR_P) "$(distdir)/$$subdir" \
1080 || exit 1; \
1081 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
1082 $(am__relativize); \
1083 new_distdir=$$reldir; \
1084 dir1=$$subdir; dir2="$(top_distdir)"; \
1085 $(am__relativize); \
1086 new_top_distdir=$$reldir; \
1087 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
1088 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
1089 ($(am__cd) $$subdir && \
1090 $(MAKE) $(AM_MAKEFLAGS) \
1091 top_distdir="$$new_top_distdir" \
1092 distdir="$$new_distdir" \
1093 am__remove_distdir=: \
1094 am__skip_length_check=: \
1095 am__skip_mode_fix=: \
1096 distdir) \
1097 || exit 1; \
1098 fi; \
1099 done
1100 check-am: all-am
1101 check: check-recursive
1102 all-am: Makefile $(LTLIBRARIES) $(HEADERS)
1103 installdirs: installdirs-recursive
1104 installdirs-am:
1105 for dir in "$(DESTDIR)$(libdir)" "$(DESTDIR)$(libde265_ladir)"; do \
1106 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
1107 done
1108 install: install-recursive
1109 install-exec: install-exec-recursive
1110 install-data: install-data-recursive
1111 uninstall: uninstall-recursive
1112
1113 install-am: all-am
1114 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
1115
1116 installcheck: installcheck-recursive
1117 install-strip:
1118 if test -z '$(STRIP)'; then \
1119 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1120 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1121 install; \
1122 else \
1123 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
1124 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
1125 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
1126 fi
1127 mostlyclean-generic:
1128
1129 clean-generic:
1130
1131 distclean-generic:
1132 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
1133 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
1134 -rm -f ../extra/$(DEPDIR)/$(am__dirstamp)
1135 -rm -f ../extra/$(am__dirstamp)
1136
1137 maintainer-clean-generic:
1138 @echo "This command is intended for maintainers to use"
1139 @echo "it deletes files that may require special tools to rebuild."
1140 clean: clean-recursive
1141
1142 clean-am: clean-generic clean-libLTLIBRARIES clean-libtool \
1143 mostlyclean-am
1144
1145 distclean: distclean-recursive
1146 -rm -rf ../extra/$(DEPDIR) ./$(DEPDIR)
1147 -rm -f Makefile
1148 distclean-am: clean-am distclean-compile distclean-generic \
1149 distclean-tags
1150
1151 dvi: dvi-recursive
1152
1153 dvi-am:
1154
1155 html: html-recursive
1156
1157 html-am:
1158
1159 info: info-recursive
1160
1161 info-am:
1162
1163 install-data-am: install-libde265_laHEADERS
1164
1165 install-dvi: install-dvi-recursive
1166
1167 install-dvi-am:
1168
1169 install-exec-am: install-libLTLIBRARIES
1170
1171 install-html: install-html-recursive
1172
1173 install-html-am:
1174
1175 install-info: install-info-recursive
1176
1177 install-info-am:
1178
1179 install-man:
1180
1181 install-pdf: install-pdf-recursive
1182
1183 install-pdf-am:
1184
1185 install-ps: install-ps-recursive
1186
1187 install-ps-am:
1188
1189 installcheck-am:
1190
1191 maintainer-clean: maintainer-clean-recursive
1192 -rm -rf ../extra/$(DEPDIR) ./$(DEPDIR)
1193 -rm -f Makefile
1194 maintainer-clean-am: distclean-am maintainer-clean-generic
1195
1196 mostlyclean: mostlyclean-recursive
1197
1198 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
1199 mostlyclean-libtool
1200
1201 pdf: pdf-recursive
1202
1203 pdf-am:
1204
1205 ps: ps-recursive
1206
1207 ps-am:
1208
1209 uninstall-am: uninstall-libLTLIBRARIES uninstall-libde265_laHEADERS
1210
1211 .MAKE: $(am__recursive_targets) install-am install-strip
1212
1213 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
1214 check-am clean clean-generic clean-libLTLIBRARIES \
1215 clean-libtool cscopelist-am ctags ctags-am distclean \
1216 distclean-compile distclean-generic distclean-libtool \
1217 distclean-tags distdir dvi dvi-am html html-am info info-am \
1218 install install-am install-data install-data-am install-dvi \
1219 install-dvi-am install-exec install-exec-am install-html \
1220 install-html-am install-info install-info-am \
1221 install-libLTLIBRARIES install-libde265_laHEADERS install-man \
1222 install-pdf install-pdf-am install-ps install-ps-am \
1223 install-strip installcheck installcheck-am installdirs \
1224 installdirs-am maintainer-clean maintainer-clean-generic \
1225 mostlyclean mostlyclean-compile mostlyclean-generic \
1226 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
1227 uninstall-am uninstall-libLTLIBRARIES \
1228 uninstall-libde265_laHEADERS
1229
1230 .PRECIOUS: Makefile
1231
1232
1233 # Tell versions [3.59,3.63) of GNU make to not export all variables.
1234 # Otherwise a system limit (for SysV at least) may be exceeded.
1235 .NOEXPORT:
+0
-749
libde265/arm/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91
92 # NEON specific functions
93 @ENABLE_NEON_OPT_TRUE@am__append_1 = libde265_arm_neon.la
94 @ENABLE_NEON_OPT_TRUE@am__append_2 = libde265_arm_neon.la
95 subdir = libde265/arm
96 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
97 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
98 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
99 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
100 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
101 $(top_srcdir)/m4/lt~obsolete.m4 \
102 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
103 $(top_srcdir)/configure.ac
104 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
105 $(ACLOCAL_M4)
106 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
107 mkinstalldirs = $(install_sh) -d
108 CONFIG_HEADER = $(top_builddir)/config.h
109 CONFIG_CLEAN_FILES =
110 CONFIG_CLEAN_VPATH_FILES =
111 LTLIBRARIES = $(noinst_LTLIBRARIES)
112 libde265_arm_la_DEPENDENCIES = $(am__append_2)
113 am_libde265_arm_la_OBJECTS = libde265_arm_la-arm.lo
114 libde265_arm_la_OBJECTS = $(am_libde265_arm_la_OBJECTS)
115 AM_V_lt = $(am__v_lt_@AM_V@)
116 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
117 am__v_lt_0 = --silent
118 am__v_lt_1 =
119 libde265_arm_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
120 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
121 $(libde265_arm_la_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
122 $(LDFLAGS) -o $@
123 libde265_arm_neon_la_LIBADD =
124 am__libde265_arm_neon_la_SOURCES_DIST = asm.S cpudetect.S \
125 hevcdsp_qpel_neon.S neon.S
126 @ENABLE_NEON_OPT_TRUE@am_libde265_arm_neon_la_OBJECTS = \
127 @ENABLE_NEON_OPT_TRUE@ libde265_arm_neon_la-asm.lo \
128 @ENABLE_NEON_OPT_TRUE@ libde265_arm_neon_la-cpudetect.lo \
129 @ENABLE_NEON_OPT_TRUE@ libde265_arm_neon_la-hevcdsp_qpel_neon.lo \
130 @ENABLE_NEON_OPT_TRUE@ libde265_arm_neon_la-neon.lo
131 libde265_arm_neon_la_OBJECTS = $(am_libde265_arm_neon_la_OBJECTS)
132 @ENABLE_NEON_OPT_TRUE@am_libde265_arm_neon_la_rpath =
133 AM_V_P = $(am__v_P_@AM_V@)
134 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
135 am__v_P_0 = false
136 am__v_P_1 = :
137 AM_V_GEN = $(am__v_GEN_@AM_V@)
138 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
139 am__v_GEN_0 = @echo " GEN " $@;
140 am__v_GEN_1 =
141 AM_V_at = $(am__v_at_@AM_V@)
142 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
143 am__v_at_0 = @
144 am__v_at_1 =
145 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
146 depcomp = $(SHELL) $(top_srcdir)/depcomp
147 am__depfiles_maybe = depfiles
148 am__mv = mv -f
149 CPPASCOMPILE = $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
150 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CCASFLAGS) $(CCASFLAGS)
151 LTCPPASCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \
152 $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) \
153 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
154 $(AM_CCASFLAGS) $(CCASFLAGS)
155 AM_V_CPPAS = $(am__v_CPPAS_@AM_V@)
156 am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@)
157 am__v_CPPAS_0 = @echo " CPPAS " $@;
158 am__v_CPPAS_1 =
159 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
160 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
161 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
162 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
163 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
164 $(AM_CXXFLAGS) $(CXXFLAGS)
165 AM_V_CXX = $(am__v_CXX_@AM_V@)
166 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
167 am__v_CXX_0 = @echo " CXX " $@;
168 am__v_CXX_1 =
169 CXXLD = $(CXX)
170 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
171 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
172 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
173 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
174 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
175 am__v_CXXLD_0 = @echo " CXXLD " $@;
176 am__v_CXXLD_1 =
177 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
178 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
179 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
180 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
181 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
182 $(AM_CFLAGS) $(CFLAGS)
183 AM_V_CC = $(am__v_CC_@AM_V@)
184 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
185 am__v_CC_0 = @echo " CC " $@;
186 am__v_CC_1 =
187 CCLD = $(CC)
188 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
189 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
190 $(AM_LDFLAGS) $(LDFLAGS) -o $@
191 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
192 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
193 am__v_CCLD_0 = @echo " CCLD " $@;
194 am__v_CCLD_1 =
195 SOURCES = $(libde265_arm_la_SOURCES) $(libde265_arm_neon_la_SOURCES)
196 DIST_SOURCES = $(libde265_arm_la_SOURCES) \
197 $(am__libde265_arm_neon_la_SOURCES_DIST)
198 am__can_run_installinfo = \
199 case $$AM_UPDATE_INFO_DIR in \
200 n|no|NO) false;; \
201 *) (install-info --version) >/dev/null 2>&1;; \
202 esac
203 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
204 # Read a list of newline-separated strings from the standard input,
205 # and print each of them once, without duplicates. Input order is
206 # *not* preserved.
207 am__uniquify_input = $(AWK) '\
208 BEGIN { nonempty = 0; } \
209 { items[$$0] = 1; nonempty = 1; } \
210 END { if (nonempty) { for (i in items) print i; }; } \
211 '
212 # Make sure the list of sources is unique. This is necessary because,
213 # e.g., the same source file might be shared among _SOURCES variables
214 # for different programs/libraries.
215 am__define_uniq_tagged_files = \
216 list='$(am__tagged_files)'; \
217 unique=`for i in $$list; do \
218 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
219 done | $(am__uniquify_input)`
220 ETAGS = etags
221 CTAGS = ctags
222 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
223 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
224 ACLOCAL = @ACLOCAL@
225 ALLOCA = @ALLOCA@
226 AMTAR = @AMTAR@
227 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
228 AR = @AR@
229 AUTOCONF = @AUTOCONF@
230 AUTOHEADER = @AUTOHEADER@
231 AUTOMAKE = @AUTOMAKE@
232 AWK = @AWK@
233 CC = @CC@
234 CCAS = @CCAS@
235 CCASDEPMODE = @CCASDEPMODE@
236 CCASFLAGS = @CCASFLAGS@
237 CCDEPMODE = @CCDEPMODE@
238 CFLAGS = @CFLAGS@
239 CPP = @CPP@
240 CPPFLAGS = @CPPFLAGS@
241 CXX = @CXX@
242 CXXCPP = @CXXCPP@
243 CXXDEPMODE = @CXXDEPMODE@
244 CXXFLAGS = @CXXFLAGS@
245 CYGPATH_W = @CYGPATH_W@
246 DEFS = @DEFS@
247 DEPDIR = @DEPDIR@
248 DLLTOOL = @DLLTOOL@
249 DSYMUTIL = @DSYMUTIL@
250 DUMPBIN = @DUMPBIN@
251 ECHO_C = @ECHO_C@
252 ECHO_N = @ECHO_N@
253 ECHO_T = @ECHO_T@
254 EGREP = @EGREP@
255 EXEEXT = @EXEEXT@
256 FGREP = @FGREP@
257 GREP = @GREP@
258 HAVE_CXX11 = @HAVE_CXX11@
259 INSTALL = @INSTALL@
260 INSTALL_DATA = @INSTALL_DATA@
261 INSTALL_PROGRAM = @INSTALL_PROGRAM@
262 INSTALL_SCRIPT = @INSTALL_SCRIPT@
263 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
264 LD = @LD@
265 LDFLAGS = @LDFLAGS@
266 LIBDE265_AGE = @LIBDE265_AGE@
267 LIBDE265_CURRENT = @LIBDE265_CURRENT@
268 LIBDE265_REVISION = @LIBDE265_REVISION@
269 LIBOBJS = @LIBOBJS@
270 LIBS = @LIBS@
271 LIBTOOL = @LIBTOOL@
272 LIPO = @LIPO@
273 LN_S = @LN_S@
274 LTLIBOBJS = @LTLIBOBJS@
275 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
276 MAKEINFO = @MAKEINFO@
277 MANIFEST_TOOL = @MANIFEST_TOOL@
278 MKDIR_P = @MKDIR_P@
279 NM = @NM@
280 NMEDIT = @NMEDIT@
281 NUMERIC_VERSION = @NUMERIC_VERSION@
282 OBJDUMP = @OBJDUMP@
283 OBJEXT = @OBJEXT@
284 OTOOL = @OTOOL@
285 OTOOL64 = @OTOOL64@
286 PACKAGE = @PACKAGE@
287 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
288 PACKAGE_NAME = @PACKAGE_NAME@
289 PACKAGE_STRING = @PACKAGE_STRING@
290 PACKAGE_TARNAME = @PACKAGE_TARNAME@
291 PACKAGE_URL = @PACKAGE_URL@
292 PACKAGE_VERSION = @PACKAGE_VERSION@
293 PATH_SEPARATOR = @PATH_SEPARATOR@
294 PKG_CONFIG = @PKG_CONFIG@
295 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
296 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
297 QTCHOOSER = @QTCHOOSER@
298 QTMOC = @QTMOC@
299 QT_CFLAGS = @QT_CFLAGS@
300 QT_LIBS = @QT_LIBS@
301 RANLIB = @RANLIB@
302 SDL_CFLAGS = @SDL_CFLAGS@
303 SDL_LIBS = @SDL_LIBS@
304 SED = @SED@
305 SET_MAKE = @SET_MAKE@
306 SHELL = @SHELL@
307 STRIP = @STRIP@
308 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
309 SWSCALE_LIBS = @SWSCALE_LIBS@
310 VERSION = @VERSION@
311 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
312 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
313 abs_builddir = @abs_builddir@
314 abs_srcdir = @abs_srcdir@
315 abs_top_builddir = @abs_top_builddir@
316 abs_top_srcdir = @abs_top_srcdir@
317 ac_ct_AR = @ac_ct_AR@
318 ac_ct_CC = @ac_ct_CC@
319 ac_ct_CXX = @ac_ct_CXX@
320 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
321 am__include = @am__include@
322 am__leading_dot = @am__leading_dot@
323 am__quote = @am__quote@
324 am__tar = @am__tar@
325 am__untar = @am__untar@
326 bindir = @bindir@
327 build = @build@
328 build_alias = @build_alias@
329 build_cpu = @build_cpu@
330 build_os = @build_os@
331 build_vendor = @build_vendor@
332 builddir = @builddir@
333 datadir = @datadir@
334 datarootdir = @datarootdir@
335 docdir = @docdir@
336 dvidir = @dvidir@
337 exec_prefix = @exec_prefix@
338 host = @host@
339 host_alias = @host_alias@
340 host_cpu = @host_cpu@
341 host_os = @host_os@
342 host_vendor = @host_vendor@
343 htmldir = @htmldir@
344 includedir = @includedir@
345 infodir = @infodir@
346 install_sh = @install_sh@
347 libdir = @libdir@
348 libexecdir = @libexecdir@
349 localedir = @localedir@
350 localstatedir = @localstatedir@
351 mandir = @mandir@
352 mkdir_p = @mkdir_p@
353 oldincludedir = @oldincludedir@
354 pdfdir = @pdfdir@
355 prefix = @prefix@
356 program_transform_name = @program_transform_name@
357 psdir = @psdir@
358 runstatedir = @runstatedir@
359 sbindir = @sbindir@
360 sharedstatedir = @sharedstatedir@
361 srcdir = @srcdir@
362 sysconfdir = @sysconfdir@
363 target = @target@
364 target_alias = @target_alias@
365 target_cpu = @target_cpu@
366 target_os = @target_os@
367 target_vendor = @target_vendor@
368 top_build_prefix = @top_build_prefix@
369 top_builddir = @top_builddir@
370 top_srcdir = @top_srcdir@
371 noinst_LTLIBRARIES = libde265_arm.la $(am__append_1)
372 libde265_arm_la_CXXFLAGS = -I.. $(CFLAG_VISIBILITY)
373 libde265_arm_la_SOURCES = arm.cc arm.h
374 libde265_arm_la_LIBADD = $(am__append_2)
375 @ENABLE_NEON_OPT_TRUE@libde265_arm_neon_la_CXXFLAGS = -mfpu=neon -I.. $(CFLAG_VISIBILITY)
376 @ENABLE_NEON_OPT_TRUE@libde265_arm_neon_la_CCASFLAGS = -mfpu=neon -I.. \
377 @ENABLE_NEON_OPT_TRUE@ -DHAVE_NEON \
378 @ENABLE_NEON_OPT_TRUE@ -DEXTERN_ASM= \
379 @ENABLE_NEON_OPT_TRUE@ -DHAVE_AS_FUNC \
380 @ENABLE_NEON_OPT_TRUE@ -DHAVE_SECTION_DATA_REL_RO
381
382 @ENABLE_NEON_OPT_TRUE@libde265_arm_neon_la_SOURCES = \
383 @ENABLE_NEON_OPT_TRUE@ asm.S \
384 @ENABLE_NEON_OPT_TRUE@ cpudetect.S \
385 @ENABLE_NEON_OPT_TRUE@ hevcdsp_qpel_neon.S \
386 @ENABLE_NEON_OPT_TRUE@ neon.S
387
388 all: all-am
389
390 .SUFFIXES:
391 .SUFFIXES: .S .cc .lo .o .obj
392 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
393 @for dep in $?; do \
394 case '$(am__configure_deps)' in \
395 *$$dep*) \
396 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
397 && { if test -f $@; then exit 0; else break; fi; }; \
398 exit 1;; \
399 esac; \
400 done; \
401 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libde265/arm/Makefile'; \
402 $(am__cd) $(top_srcdir) && \
403 $(AUTOMAKE) --gnu libde265/arm/Makefile
404 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
405 @case '$?' in \
406 *config.status*) \
407 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
408 *) \
409 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
410 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
411 esac;
412
413 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
414 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
415
416 $(top_srcdir)/configure: $(am__configure_deps)
417 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
418 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
419 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
420 $(am__aclocal_m4_deps):
421
422 clean-noinstLTLIBRARIES:
423 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
424 @list='$(noinst_LTLIBRARIES)'; \
425 locs=`for p in $$list; do echo $$p; done | \
426 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
427 sort -u`; \
428 test -z "$$locs" || { \
429 echo rm -f $${locs}; \
430 rm -f $${locs}; \
431 }
432
433 libde265_arm.la: $(libde265_arm_la_OBJECTS) $(libde265_arm_la_DEPENDENCIES) $(EXTRA_libde265_arm_la_DEPENDENCIES)
434 $(AM_V_CXXLD)$(libde265_arm_la_LINK) $(libde265_arm_la_OBJECTS) $(libde265_arm_la_LIBADD) $(LIBS)
435
436 libde265_arm_neon.la: $(libde265_arm_neon_la_OBJECTS) $(libde265_arm_neon_la_DEPENDENCIES) $(EXTRA_libde265_arm_neon_la_DEPENDENCIES)
437 $(AM_V_CCLD)$(LINK) $(am_libde265_arm_neon_la_rpath) $(libde265_arm_neon_la_OBJECTS) $(libde265_arm_neon_la_LIBADD) $(LIBS)
438
439 mostlyclean-compile:
440 -rm -f *.$(OBJEXT)
441
442 distclean-compile:
443 -rm -f *.tab.c
444
445 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_arm_la-arm.Plo@am__quote@
446 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_arm_neon_la-asm.Plo@am__quote@
447 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_arm_neon_la-cpudetect.Plo@am__quote@
448 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_arm_neon_la-hevcdsp_qpel_neon.Plo@am__quote@
449 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_arm_neon_la-neon.Plo@am__quote@
450
451 .S.o:
452 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
453 @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
454 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
455 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
456 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ $<
457
458 .S.obj:
459 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(CPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
460 @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
461 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
462 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
463 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(CPPASCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
464
465 .S.lo:
466 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LTCPPASCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
467 @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
468 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
469 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
470 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LTCPPASCOMPILE) -c -o $@ $<
471
472 libde265_arm_neon_la-asm.lo: asm.S
473 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_neon_la_CCASFLAGS) $(CCASFLAGS) -MT libde265_arm_neon_la-asm.lo -MD -MP -MF $(DEPDIR)/libde265_arm_neon_la-asm.Tpo -c -o libde265_arm_neon_la-asm.lo `test -f 'asm.S' || echo '$(srcdir)/'`asm.S
474 @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_arm_neon_la-asm.Tpo $(DEPDIR)/libde265_arm_neon_la-asm.Plo
475 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='asm.S' object='libde265_arm_neon_la-asm.lo' libtool=yes @AMDEPBACKSLASH@
476 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
477 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_neon_la_CCASFLAGS) $(CCASFLAGS) -c -o libde265_arm_neon_la-asm.lo `test -f 'asm.S' || echo '$(srcdir)/'`asm.S
478
479 libde265_arm_neon_la-cpudetect.lo: cpudetect.S
480 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_neon_la_CCASFLAGS) $(CCASFLAGS) -MT libde265_arm_neon_la-cpudetect.lo -MD -MP -MF $(DEPDIR)/libde265_arm_neon_la-cpudetect.Tpo -c -o libde265_arm_neon_la-cpudetect.lo `test -f 'cpudetect.S' || echo '$(srcdir)/'`cpudetect.S
481 @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_arm_neon_la-cpudetect.Tpo $(DEPDIR)/libde265_arm_neon_la-cpudetect.Plo
482 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='cpudetect.S' object='libde265_arm_neon_la-cpudetect.lo' libtool=yes @AMDEPBACKSLASH@
483 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
484 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_neon_la_CCASFLAGS) $(CCASFLAGS) -c -o libde265_arm_neon_la-cpudetect.lo `test -f 'cpudetect.S' || echo '$(srcdir)/'`cpudetect.S
485
486 libde265_arm_neon_la-hevcdsp_qpel_neon.lo: hevcdsp_qpel_neon.S
487 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_neon_la_CCASFLAGS) $(CCASFLAGS) -MT libde265_arm_neon_la-hevcdsp_qpel_neon.lo -MD -MP -MF $(DEPDIR)/libde265_arm_neon_la-hevcdsp_qpel_neon.Tpo -c -o libde265_arm_neon_la-hevcdsp_qpel_neon.lo `test -f 'hevcdsp_qpel_neon.S' || echo '$(srcdir)/'`hevcdsp_qpel_neon.S
488 @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_arm_neon_la-hevcdsp_qpel_neon.Tpo $(DEPDIR)/libde265_arm_neon_la-hevcdsp_qpel_neon.Plo
489 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='hevcdsp_qpel_neon.S' object='libde265_arm_neon_la-hevcdsp_qpel_neon.lo' libtool=yes @AMDEPBACKSLASH@
490 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
491 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_neon_la_CCASFLAGS) $(CCASFLAGS) -c -o libde265_arm_neon_la-hevcdsp_qpel_neon.lo `test -f 'hevcdsp_qpel_neon.S' || echo '$(srcdir)/'`hevcdsp_qpel_neon.S
492
493 libde265_arm_neon_la-neon.lo: neon.S
494 @am__fastdepCCAS_TRUE@ $(AM_V_CPPAS)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_neon_la_CCASFLAGS) $(CCASFLAGS) -MT libde265_arm_neon_la-neon.lo -MD -MP -MF $(DEPDIR)/libde265_arm_neon_la-neon.Tpo -c -o libde265_arm_neon_la-neon.lo `test -f 'neon.S' || echo '$(srcdir)/'`neon.S
495 @am__fastdepCCAS_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_arm_neon_la-neon.Tpo $(DEPDIR)/libde265_arm_neon_la-neon.Plo
496 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ $(AM_V_CPPAS)source='neon.S' object='libde265_arm_neon_la-neon.lo' libtool=yes @AMDEPBACKSLASH@
497 @AMDEP_TRUE@@am__fastdepCCAS_FALSE@ DEPDIR=$(DEPDIR) $(CCASDEPMODE) $(depcomp) @AMDEPBACKSLASH@
498 @am__fastdepCCAS_FALSE@ $(AM_V_CPPAS@am__nodep@)$(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CCAS) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_neon_la_CCASFLAGS) $(CCASFLAGS) -c -o libde265_arm_neon_la-neon.lo `test -f 'neon.S' || echo '$(srcdir)/'`neon.S
499
500 .cc.o:
501 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
502 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
503 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
504 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
505 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
506
507 .cc.obj:
508 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
509 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
510 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
511 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
512 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
513
514 .cc.lo:
515 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
516 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
517 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
518 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
519 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
520
521 libde265_arm_la-arm.lo: arm.cc
522 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_arm_la-arm.lo -MD -MP -MF $(DEPDIR)/libde265_arm_la-arm.Tpo -c -o libde265_arm_la-arm.lo `test -f 'arm.cc' || echo '$(srcdir)/'`arm.cc
523 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_arm_la-arm.Tpo $(DEPDIR)/libde265_arm_la-arm.Plo
524 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='arm.cc' object='libde265_arm_la-arm.lo' libtool=yes @AMDEPBACKSLASH@
525 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
526 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_arm_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_arm_la-arm.lo `test -f 'arm.cc' || echo '$(srcdir)/'`arm.cc
527
528 mostlyclean-libtool:
529 -rm -f *.lo
530
531 clean-libtool:
532 -rm -rf .libs _libs
533
534 ID: $(am__tagged_files)
535 $(am__define_uniq_tagged_files); mkid -fID $$unique
536 tags: tags-am
537 TAGS: tags
538
539 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
540 set x; \
541 here=`pwd`; \
542 $(am__define_uniq_tagged_files); \
543 shift; \
544 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
545 test -n "$$unique" || unique=$$empty_fix; \
546 if test $$# -gt 0; then \
547 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
548 "$$@" $$unique; \
549 else \
550 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
551 $$unique; \
552 fi; \
553 fi
554 ctags: ctags-am
555
556 CTAGS: ctags
557 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
558 $(am__define_uniq_tagged_files); \
559 test -z "$(CTAGS_ARGS)$$unique" \
560 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
561 $$unique
562
563 GTAGS:
564 here=`$(am__cd) $(top_builddir) && pwd` \
565 && $(am__cd) $(top_srcdir) \
566 && gtags -i $(GTAGS_ARGS) "$$here"
567 cscopelist: cscopelist-am
568
569 cscopelist-am: $(am__tagged_files)
570 list='$(am__tagged_files)'; \
571 case "$(srcdir)" in \
572 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
573 *) sdir=$(subdir)/$(srcdir) ;; \
574 esac; \
575 for i in $$list; do \
576 if test -f "$$i"; then \
577 echo "$(subdir)/$$i"; \
578 else \
579 echo "$$sdir/$$i"; \
580 fi; \
581 done >> $(top_builddir)/cscope.files
582
583 distclean-tags:
584 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
585
586 distdir: $(DISTFILES)
587 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
588 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
589 list='$(DISTFILES)'; \
590 dist_files=`for file in $$list; do echo $$file; done | \
591 sed -e "s|^$$srcdirstrip/||;t" \
592 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
593 case $$dist_files in \
594 */*) $(MKDIR_P) `echo "$$dist_files" | \
595 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
596 sort -u` ;; \
597 esac; \
598 for file in $$dist_files; do \
599 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
600 if test -d $$d/$$file; then \
601 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
602 if test -d "$(distdir)/$$file"; then \
603 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
604 fi; \
605 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
606 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
607 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
608 fi; \
609 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
610 else \
611 test -f "$(distdir)/$$file" \
612 || cp -p $$d/$$file "$(distdir)/$$file" \
613 || exit 1; \
614 fi; \
615 done
616 check-am: all-am
617 check: check-am
618 all-am: Makefile $(LTLIBRARIES)
619 installdirs:
620 install: install-am
621 install-exec: install-exec-am
622 install-data: install-data-am
623 uninstall: uninstall-am
624
625 install-am: all-am
626 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
627
628 installcheck: installcheck-am
629 install-strip:
630 if test -z '$(STRIP)'; then \
631 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
632 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
633 install; \
634 else \
635 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
636 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
637 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
638 fi
639 mostlyclean-generic:
640
641 clean-generic:
642
643 distclean-generic:
644 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
645 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
646
647 maintainer-clean-generic:
648 @echo "This command is intended for maintainers to use"
649 @echo "it deletes files that may require special tools to rebuild."
650 clean: clean-am
651
652 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
653 mostlyclean-am
654
655 distclean: distclean-am
656 -rm -rf ./$(DEPDIR)
657 -rm -f Makefile
658 distclean-am: clean-am distclean-compile distclean-generic \
659 distclean-tags
660
661 dvi: dvi-am
662
663 dvi-am:
664
665 html: html-am
666
667 html-am:
668
669 info: info-am
670
671 info-am:
672
673 install-data-am:
674
675 install-dvi: install-dvi-am
676
677 install-dvi-am:
678
679 install-exec-am:
680
681 install-html: install-html-am
682
683 install-html-am:
684
685 install-info: install-info-am
686
687 install-info-am:
688
689 install-man:
690
691 install-pdf: install-pdf-am
692
693 install-pdf-am:
694
695 install-ps: install-ps-am
696
697 install-ps-am:
698
699 installcheck-am:
700
701 maintainer-clean: maintainer-clean-am
702 -rm -rf ./$(DEPDIR)
703 -rm -f Makefile
704 maintainer-clean-am: distclean-am maintainer-clean-generic
705
706 mostlyclean: mostlyclean-am
707
708 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
709 mostlyclean-libtool
710
711 pdf: pdf-am
712
713 pdf-am:
714
715 ps: ps-am
716
717 ps-am:
718
719 uninstall-am:
720
721 .MAKE: install-am install-strip
722
723 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
724 clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
725 ctags-am distclean distclean-compile distclean-generic \
726 distclean-libtool distclean-tags distdir dvi dvi-am html \
727 html-am info info-am install install-am install-data \
728 install-data-am install-dvi install-dvi-am install-exec \
729 install-exec-am install-html install-html-am install-info \
730 install-info-am install-man install-pdf install-pdf-am \
731 install-ps install-ps-am install-strip installcheck \
732 installcheck-am installdirs maintainer-clean \
733 maintainer-clean-generic mostlyclean mostlyclean-compile \
734 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
735 tags tags-am uninstall uninstall-am
736
737 .PRECIOUS: Makefile
738
739
740 @HAVE_VISIBILITY_TRUE@ libde265_arm_la_CXXFLAGS += -DHAVE_VISIBILITY
741
742 @ENABLE_ARM_THUMB_TRUE@@ENABLE_NEON_OPT_TRUE@ libde265_arm_neon_la_CCASFLAGS += -DCONFIG_THUMB
743
744 @ENABLE_NEON_OPT_TRUE@@HAVE_VISIBILITY_TRUE@ libde265_arm_neon_la_CXXFLAGS += -DHAVE_VISIBILITY
745
746 # Tell versions [3.59,3.63) of GNU make to not export all variables.
747 # Otherwise a system limit (for SysV at least) may be exceeded.
748 .NOEXPORT:
+0
-36
libde265/de265-version.h less more
0 /*
1 * H.265 video codec.
2 * Copyright (c) 2013-2014 struktur AG, Dirk Farin <farin@struktur.de>
3 *
4 * This file is part of libde265.
5 *
6 * libde265 is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as
8 * published by the Free Software Foundation, either version 3 of
9 * the License, or (at your option) any later version.
10 *
11 * libde265 is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with libde265. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20 /* de265-version.h
21 *
22 * This file was generated by autoconf when libde265 was built.
23 *
24 * DO NOT EDIT THIS FILE.
25 */
26 #ifndef LIBDE265_VERSION_H
27 #define LIBDE265_VERSION_H
28
29 /* Numeric representation of the version */
30 #define LIBDE265_NUMERIC_VERSION 0x01000800
31
32 /* Version string */
33 #define LIBDE265_VERSION "1.0.8"
34
35 #endif
156156 return "SPS header missing, cannot decode SEI";
157157 case DE265_WARNING_COLLOCATED_MOTION_VECTOR_OUTSIDE_IMAGE_AREA:
158158 return "collocated motion-vector is outside image area";
159 case DE265_WARNING_PCM_BITDEPTH_TOO_LARGE:
160 return "PCM bit-depth too large";
159161
160162 default: return "unknown error";
161163 }
134134 DE265_NON_EXISTING_LT_REFERENCE_CANDIDATE_IN_SLICE_HEADER=1023,
135135 DE265_WARNING_CANNOT_APPLY_SAO_OUT_OF_MEMORY=1024,
136136 DE265_WARNING_SPS_MISSING_CANNOT_DECODE_SEI=1025,
137 DE265_WARNING_COLLOCATED_MOTION_VECTOR_OUTSIDE_IMAGE_AREA=1026
137 DE265_WARNING_COLLOCATED_MOTION_VECTOR_OUTSIDE_IMAGE_AREA=1026,
138 DE265_WARNING_PCM_BITDEPTH_TOO_LARGE=1027
138139 } de265_error;
139140
140141 LIBDE265_API const char* de265_get_error_text(de265_error err);
843843
844844
845845 for (int k=0;k<4;k++) {
846 int delta = Clip3(-tc,tc, ((((q[0][k]-p[0][k])<<2)+p[1][k]-q[1][k]+4)>>3));
846 int delta = Clip3(-tc,tc, ((((q[0][k]-p[0][k])*4)+p[1][k]-q[1][k]+4)>>3)); // standard says <<2 in eq. (8-356), but the value can also be negative
847847 logtrace(LogDeblock,"delta=%d\n",delta);
848848 if (filterP) { ptr[-1+k*stride] = Clip_BitDepth(p[0][k]+delta, bitDepth_C); }
849849 if (filterQ) { ptr[ 0+k*stride] = Clip_BitDepth(q[0][k]-delta, bitDepth_C); }
859859 if (img->get_cu_transquant_bypass(SubWidthC*xDi,SubHeightC*yDi)) filterQ=false;
860860
861861 for (int k=0;k<4;k++) {
862 int delta = Clip3(-tc,tc, ((((q[0][k]-p[0][k])<<2)+p[1][k]-q[1][k]+4)>>3));
862 int delta = Clip3(-tc,tc, ((((q[0][k]-p[0][k])*4)+p[1][k]-q[1][k]+4)>>3)); // standard says <<2, but the value can also be negative
863863 if (filterP) { ptr[ k-1*stride] = Clip_BitDepth(p[0][k]+delta, bitDepth_C); }
864864 if (filterQ) { ptr[ k+0*stride] = Clip_BitDepth(q[0][k]-delta, bitDepth_C); }
865865 }
449449 de265_image* img;
450450
451451 public:
452 const slice_segment_header* previous_slice_header; /* Remember the last slice for a successive
453 dependent slice. */
452 const slice_segment_header* previous_slice_header = nullptr; /* Remember the last slice for a successive
453 dependent slice. */
454454
455455
456456 // --- motion compensation ---
+0
-850
libde265/encoder/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91 subdir = libde265/encoder
92 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
94 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
95 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
96 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
97 $(top_srcdir)/m4/lt~obsolete.m4 \
98 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
99 $(top_srcdir)/configure.ac
100 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
101 $(ACLOCAL_M4)
102 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
103 mkinstalldirs = $(install_sh) -d
104 CONFIG_HEADER = $(top_builddir)/config.h
105 CONFIG_CLEAN_FILES =
106 CONFIG_CLEAN_VPATH_FILES =
107 LTLIBRARIES = $(noinst_LTLIBRARIES)
108 libde265_encoder_la_DEPENDENCIES = algo/libde265_encoder_algo.la
109 am_libde265_encoder_la_OBJECTS = libde265_encoder_la-encoder-core.lo \
110 libde265_encoder_la-encoder-types.lo \
111 libde265_encoder_la-encoder-params.lo \
112 libde265_encoder_la-encoder-context.lo \
113 libde265_encoder_la-encoder-syntax.lo \
114 libde265_encoder_la-encoder-intrapred.lo \
115 libde265_encoder_la-encoder-motion.lo \
116 libde265_encoder_la-encpicbuf.lo libde265_encoder_la-sop.lo
117 libde265_encoder_la_OBJECTS = $(am_libde265_encoder_la_OBJECTS)
118 AM_V_lt = $(am__v_lt_@AM_V@)
119 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
120 am__v_lt_0 = --silent
121 am__v_lt_1 =
122 libde265_encoder_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
123 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
124 $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
125 $(LDFLAGS) -o $@
126 AM_V_P = $(am__v_P_@AM_V@)
127 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
128 am__v_P_0 = false
129 am__v_P_1 = :
130 AM_V_GEN = $(am__v_GEN_@AM_V@)
131 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
132 am__v_GEN_0 = @echo " GEN " $@;
133 am__v_GEN_1 =
134 AM_V_at = $(am__v_at_@AM_V@)
135 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
136 am__v_at_0 = @
137 am__v_at_1 =
138 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
139 depcomp = $(SHELL) $(top_srcdir)/depcomp
140 am__depfiles_maybe = depfiles
141 am__mv = mv -f
142 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
143 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
144 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
145 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
146 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
147 $(AM_CXXFLAGS) $(CXXFLAGS)
148 AM_V_CXX = $(am__v_CXX_@AM_V@)
149 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
150 am__v_CXX_0 = @echo " CXX " $@;
151 am__v_CXX_1 =
152 CXXLD = $(CXX)
153 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
154 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
155 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
156 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
157 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
158 am__v_CXXLD_0 = @echo " CXXLD " $@;
159 am__v_CXXLD_1 =
160 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
161 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
162 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
163 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
164 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
165 $(AM_CFLAGS) $(CFLAGS)
166 AM_V_CC = $(am__v_CC_@AM_V@)
167 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
168 am__v_CC_0 = @echo " CC " $@;
169 am__v_CC_1 =
170 CCLD = $(CC)
171 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
172 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
173 $(AM_LDFLAGS) $(LDFLAGS) -o $@
174 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
175 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
176 am__v_CCLD_0 = @echo " CCLD " $@;
177 am__v_CCLD_1 =
178 SOURCES = $(libde265_encoder_la_SOURCES)
179 DIST_SOURCES = $(libde265_encoder_la_SOURCES)
180 RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \
181 ctags-recursive dvi-recursive html-recursive info-recursive \
182 install-data-recursive install-dvi-recursive \
183 install-exec-recursive install-html-recursive \
184 install-info-recursive install-pdf-recursive \
185 install-ps-recursive install-recursive installcheck-recursive \
186 installdirs-recursive pdf-recursive ps-recursive \
187 tags-recursive uninstall-recursive
188 am__can_run_installinfo = \
189 case $$AM_UPDATE_INFO_DIR in \
190 n|no|NO) false;; \
191 *) (install-info --version) >/dev/null 2>&1;; \
192 esac
193 RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
194 distclean-recursive maintainer-clean-recursive
195 am__recursive_targets = \
196 $(RECURSIVE_TARGETS) \
197 $(RECURSIVE_CLEAN_TARGETS) \
198 $(am__extra_recursive_targets)
199 AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
200 distdir
201 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
202 # Read a list of newline-separated strings from the standard input,
203 # and print each of them once, without duplicates. Input order is
204 # *not* preserved.
205 am__uniquify_input = $(AWK) '\
206 BEGIN { nonempty = 0; } \
207 { items[$$0] = 1; nonempty = 1; } \
208 END { if (nonempty) { for (i in items) print i; }; } \
209 '
210 # Make sure the list of sources is unique. This is necessary because,
211 # e.g., the same source file might be shared among _SOURCES variables
212 # for different programs/libraries.
213 am__define_uniq_tagged_files = \
214 list='$(am__tagged_files)'; \
215 unique=`for i in $$list; do \
216 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
217 done | $(am__uniquify_input)`
218 ETAGS = etags
219 CTAGS = ctags
220 DIST_SUBDIRS = $(SUBDIRS)
221 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
222 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
223 am__relativize = \
224 dir0=`pwd`; \
225 sed_first='s,^\([^/]*\)/.*$$,\1,'; \
226 sed_rest='s,^[^/]*/*,,'; \
227 sed_last='s,^.*/\([^/]*\)$$,\1,'; \
228 sed_butlast='s,/*[^/]*$$,,'; \
229 while test -n "$$dir1"; do \
230 first=`echo "$$dir1" | sed -e "$$sed_first"`; \
231 if test "$$first" != "."; then \
232 if test "$$first" = ".."; then \
233 dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
234 dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
235 else \
236 first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
237 if test "$$first2" = "$$first"; then \
238 dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
239 else \
240 dir2="../$$dir2"; \
241 fi; \
242 dir0="$$dir0"/"$$first"; \
243 fi; \
244 fi; \
245 dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
246 done; \
247 reldir="$$dir2"
248 ACLOCAL = @ACLOCAL@
249 ALLOCA = @ALLOCA@
250 AMTAR = @AMTAR@
251 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
252 AR = @AR@
253 AUTOCONF = @AUTOCONF@
254 AUTOHEADER = @AUTOHEADER@
255 AUTOMAKE = @AUTOMAKE@
256 AWK = @AWK@
257 CC = @CC@
258 CCAS = @CCAS@
259 CCASDEPMODE = @CCASDEPMODE@
260 CCASFLAGS = @CCASFLAGS@
261 CCDEPMODE = @CCDEPMODE@
262 CFLAGS = @CFLAGS@
263 CPP = @CPP@
264 CPPFLAGS = @CPPFLAGS@
265 CXX = @CXX@
266 CXXCPP = @CXXCPP@
267 CXXDEPMODE = @CXXDEPMODE@
268 CXXFLAGS = @CXXFLAGS@
269 CYGPATH_W = @CYGPATH_W@
270 DEFS = @DEFS@
271 DEPDIR = @DEPDIR@
272 DLLTOOL = @DLLTOOL@
273 DSYMUTIL = @DSYMUTIL@
274 DUMPBIN = @DUMPBIN@
275 ECHO_C = @ECHO_C@
276 ECHO_N = @ECHO_N@
277 ECHO_T = @ECHO_T@
278 EGREP = @EGREP@
279 EXEEXT = @EXEEXT@
280 FGREP = @FGREP@
281 GREP = @GREP@
282 HAVE_CXX11 = @HAVE_CXX11@
283 INSTALL = @INSTALL@
284 INSTALL_DATA = @INSTALL_DATA@
285 INSTALL_PROGRAM = @INSTALL_PROGRAM@
286 INSTALL_SCRIPT = @INSTALL_SCRIPT@
287 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
288 LD = @LD@
289 LDFLAGS = @LDFLAGS@
290 LIBDE265_AGE = @LIBDE265_AGE@
291 LIBDE265_CURRENT = @LIBDE265_CURRENT@
292 LIBDE265_REVISION = @LIBDE265_REVISION@
293 LIBOBJS = @LIBOBJS@
294 LIBS = @LIBS@
295 LIBTOOL = @LIBTOOL@
296 LIPO = @LIPO@
297 LN_S = @LN_S@
298 LTLIBOBJS = @LTLIBOBJS@
299 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
300 MAKEINFO = @MAKEINFO@
301 MANIFEST_TOOL = @MANIFEST_TOOL@
302 MKDIR_P = @MKDIR_P@
303 NM = @NM@
304 NMEDIT = @NMEDIT@
305 NUMERIC_VERSION = @NUMERIC_VERSION@
306 OBJDUMP = @OBJDUMP@
307 OBJEXT = @OBJEXT@
308 OTOOL = @OTOOL@
309 OTOOL64 = @OTOOL64@
310 PACKAGE = @PACKAGE@
311 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
312 PACKAGE_NAME = @PACKAGE_NAME@
313 PACKAGE_STRING = @PACKAGE_STRING@
314 PACKAGE_TARNAME = @PACKAGE_TARNAME@
315 PACKAGE_URL = @PACKAGE_URL@
316 PACKAGE_VERSION = @PACKAGE_VERSION@
317 PATH_SEPARATOR = @PATH_SEPARATOR@
318 PKG_CONFIG = @PKG_CONFIG@
319 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
320 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
321 QTCHOOSER = @QTCHOOSER@
322 QTMOC = @QTMOC@
323 QT_CFLAGS = @QT_CFLAGS@
324 QT_LIBS = @QT_LIBS@
325 RANLIB = @RANLIB@
326 SDL_CFLAGS = @SDL_CFLAGS@
327 SDL_LIBS = @SDL_LIBS@
328 SED = @SED@
329 SET_MAKE = @SET_MAKE@
330 SHELL = @SHELL@
331 STRIP = @STRIP@
332 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
333 SWSCALE_LIBS = @SWSCALE_LIBS@
334 VERSION = @VERSION@
335 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
336 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
337 abs_builddir = @abs_builddir@
338 abs_srcdir = @abs_srcdir@
339 abs_top_builddir = @abs_top_builddir@
340 abs_top_srcdir = @abs_top_srcdir@
341 ac_ct_AR = @ac_ct_AR@
342 ac_ct_CC = @ac_ct_CC@
343 ac_ct_CXX = @ac_ct_CXX@
344 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
345 am__include = @am__include@
346 am__leading_dot = @am__leading_dot@
347 am__quote = @am__quote@
348 am__tar = @am__tar@
349 am__untar = @am__untar@
350 bindir = @bindir@
351 build = @build@
352 build_alias = @build_alias@
353 build_cpu = @build_cpu@
354 build_os = @build_os@
355 build_vendor = @build_vendor@
356 builddir = @builddir@
357 datadir = @datadir@
358 datarootdir = @datarootdir@
359 docdir = @docdir@
360 dvidir = @dvidir@
361 exec_prefix = @exec_prefix@
362 host = @host@
363 host_alias = @host_alias@
364 host_cpu = @host_cpu@
365 host_os = @host_os@
366 host_vendor = @host_vendor@
367 htmldir = @htmldir@
368 includedir = @includedir@
369 infodir = @infodir@
370 install_sh = @install_sh@
371 libdir = @libdir@
372 libexecdir = @libexecdir@
373 localedir = @localedir@
374 localstatedir = @localstatedir@
375 mandir = @mandir@
376 mkdir_p = @mkdir_p@
377 oldincludedir = @oldincludedir@
378 pdfdir = @pdfdir@
379 prefix = @prefix@
380 program_transform_name = @program_transform_name@
381 psdir = @psdir@
382 runstatedir = @runstatedir@
383 sbindir = @sbindir@
384 sharedstatedir = @sharedstatedir@
385 srcdir = @srcdir@
386 sysconfdir = @sysconfdir@
387 target = @target@
388 target_alias = @target_alias@
389 target_cpu = @target_cpu@
390 target_os = @target_os@
391 target_vendor = @target_vendor@
392 top_build_prefix = @top_build_prefix@
393 top_builddir = @top_builddir@
394 top_srcdir = @top_srcdir@
395 noinst_LTLIBRARIES = libde265_encoder.la
396 libde265_encoder_la_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir) -I$(top_srcdir)/libde265
397 libde265_encoder_la_SOURCES = \
398 encoder-core.cc encoder-core.h \
399 encoder-types.h encoder-types.cc \
400 encoder-params.h encoder-params.cc \
401 encoder-context.h encoder-context.cc \
402 encoder-syntax.h encoder-syntax.cc \
403 encoder-intrapred.h encoder-intrapred.cc \
404 encoder-motion.h encoder-motion.cc \
405 encpicbuf.h encpicbuf.cc \
406 sop.h sop.cc
407
408 SUBDIRS = algo
409 libde265_encoder_la_LIBADD = algo/libde265_encoder_algo.la
410 EXTRA_DIST = \
411 CMakeLists.txt
412
413 all: all-recursive
414
415 .SUFFIXES:
416 .SUFFIXES: .cc .lo .o .obj
417 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
418 @for dep in $?; do \
419 case '$(am__configure_deps)' in \
420 *$$dep*) \
421 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
422 && { if test -f $@; then exit 0; else break; fi; }; \
423 exit 1;; \
424 esac; \
425 done; \
426 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libde265/encoder/Makefile'; \
427 $(am__cd) $(top_srcdir) && \
428 $(AUTOMAKE) --gnu libde265/encoder/Makefile
429 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
430 @case '$?' in \
431 *config.status*) \
432 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
433 *) \
434 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
435 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
436 esac;
437
438 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
439 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
440
441 $(top_srcdir)/configure: $(am__configure_deps)
442 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
443 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
444 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
445 $(am__aclocal_m4_deps):
446
447 clean-noinstLTLIBRARIES:
448 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
449 @list='$(noinst_LTLIBRARIES)'; \
450 locs=`for p in $$list; do echo $$p; done | \
451 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
452 sort -u`; \
453 test -z "$$locs" || { \
454 echo rm -f $${locs}; \
455 rm -f $${locs}; \
456 }
457
458 libde265_encoder.la: $(libde265_encoder_la_OBJECTS) $(libde265_encoder_la_DEPENDENCIES) $(EXTRA_libde265_encoder_la_DEPENDENCIES)
459 $(AM_V_CXXLD)$(libde265_encoder_la_LINK) $(libde265_encoder_la_OBJECTS) $(libde265_encoder_la_LIBADD) $(LIBS)
460
461 mostlyclean-compile:
462 -rm -f *.$(OBJEXT)
463
464 distclean-compile:
465 -rm -f *.tab.c
466
467 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-context.Plo@am__quote@
468 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-core.Plo@am__quote@
469 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-intrapred.Plo@am__quote@
470 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-motion.Plo@am__quote@
471 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-params.Plo@am__quote@
472 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-syntax.Plo@am__quote@
473 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encoder-types.Plo@am__quote@
474 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-encpicbuf.Plo@am__quote@
475 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_la-sop.Plo@am__quote@
476
477 .cc.o:
478 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
479 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
480 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
481 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
482 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
483
484 .cc.obj:
485 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
486 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
487 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
488 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
489 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
490
491 .cc.lo:
492 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
493 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
494 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
495 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
496 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
497
498 libde265_encoder_la-encoder-core.lo: encoder-core.cc
499 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encoder-core.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encoder-core.Tpo -c -o libde265_encoder_la-encoder-core.lo `test -f 'encoder-core.cc' || echo '$(srcdir)/'`encoder-core.cc
500 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encoder-core.Tpo $(DEPDIR)/libde265_encoder_la-encoder-core.Plo
501 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder-core.cc' object='libde265_encoder_la-encoder-core.lo' libtool=yes @AMDEPBACKSLASH@
502 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
503 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-core.lo `test -f 'encoder-core.cc' || echo '$(srcdir)/'`encoder-core.cc
504
505 libde265_encoder_la-encoder-types.lo: encoder-types.cc
506 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encoder-types.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encoder-types.Tpo -c -o libde265_encoder_la-encoder-types.lo `test -f 'encoder-types.cc' || echo '$(srcdir)/'`encoder-types.cc
507 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encoder-types.Tpo $(DEPDIR)/libde265_encoder_la-encoder-types.Plo
508 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder-types.cc' object='libde265_encoder_la-encoder-types.lo' libtool=yes @AMDEPBACKSLASH@
509 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
510 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-types.lo `test -f 'encoder-types.cc' || echo '$(srcdir)/'`encoder-types.cc
511
512 libde265_encoder_la-encoder-params.lo: encoder-params.cc
513 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encoder-params.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encoder-params.Tpo -c -o libde265_encoder_la-encoder-params.lo `test -f 'encoder-params.cc' || echo '$(srcdir)/'`encoder-params.cc
514 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encoder-params.Tpo $(DEPDIR)/libde265_encoder_la-encoder-params.Plo
515 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder-params.cc' object='libde265_encoder_la-encoder-params.lo' libtool=yes @AMDEPBACKSLASH@
516 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
517 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-params.lo `test -f 'encoder-params.cc' || echo '$(srcdir)/'`encoder-params.cc
518
519 libde265_encoder_la-encoder-context.lo: encoder-context.cc
520 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encoder-context.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encoder-context.Tpo -c -o libde265_encoder_la-encoder-context.lo `test -f 'encoder-context.cc' || echo '$(srcdir)/'`encoder-context.cc
521 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encoder-context.Tpo $(DEPDIR)/libde265_encoder_la-encoder-context.Plo
522 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder-context.cc' object='libde265_encoder_la-encoder-context.lo' libtool=yes @AMDEPBACKSLASH@
523 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
524 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-context.lo `test -f 'encoder-context.cc' || echo '$(srcdir)/'`encoder-context.cc
525
526 libde265_encoder_la-encoder-syntax.lo: encoder-syntax.cc
527 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encoder-syntax.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encoder-syntax.Tpo -c -o libde265_encoder_la-encoder-syntax.lo `test -f 'encoder-syntax.cc' || echo '$(srcdir)/'`encoder-syntax.cc
528 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encoder-syntax.Tpo $(DEPDIR)/libde265_encoder_la-encoder-syntax.Plo
529 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder-syntax.cc' object='libde265_encoder_la-encoder-syntax.lo' libtool=yes @AMDEPBACKSLASH@
530 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
531 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-syntax.lo `test -f 'encoder-syntax.cc' || echo '$(srcdir)/'`encoder-syntax.cc
532
533 libde265_encoder_la-encoder-intrapred.lo: encoder-intrapred.cc
534 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encoder-intrapred.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encoder-intrapred.Tpo -c -o libde265_encoder_la-encoder-intrapred.lo `test -f 'encoder-intrapred.cc' || echo '$(srcdir)/'`encoder-intrapred.cc
535 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encoder-intrapred.Tpo $(DEPDIR)/libde265_encoder_la-encoder-intrapred.Plo
536 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder-intrapred.cc' object='libde265_encoder_la-encoder-intrapred.lo' libtool=yes @AMDEPBACKSLASH@
537 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
538 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-intrapred.lo `test -f 'encoder-intrapred.cc' || echo '$(srcdir)/'`encoder-intrapred.cc
539
540 libde265_encoder_la-encoder-motion.lo: encoder-motion.cc
541 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encoder-motion.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encoder-motion.Tpo -c -o libde265_encoder_la-encoder-motion.lo `test -f 'encoder-motion.cc' || echo '$(srcdir)/'`encoder-motion.cc
542 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encoder-motion.Tpo $(DEPDIR)/libde265_encoder_la-encoder-motion.Plo
543 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encoder-motion.cc' object='libde265_encoder_la-encoder-motion.lo' libtool=yes @AMDEPBACKSLASH@
544 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
545 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encoder-motion.lo `test -f 'encoder-motion.cc' || echo '$(srcdir)/'`encoder-motion.cc
546
547 libde265_encoder_la-encpicbuf.lo: encpicbuf.cc
548 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-encpicbuf.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-encpicbuf.Tpo -c -o libde265_encoder_la-encpicbuf.lo `test -f 'encpicbuf.cc' || echo '$(srcdir)/'`encpicbuf.cc
549 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-encpicbuf.Tpo $(DEPDIR)/libde265_encoder_la-encpicbuf.Plo
550 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='encpicbuf.cc' object='libde265_encoder_la-encpicbuf.lo' libtool=yes @AMDEPBACKSLASH@
551 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
552 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-encpicbuf.lo `test -f 'encpicbuf.cc' || echo '$(srcdir)/'`encpicbuf.cc
553
554 libde265_encoder_la-sop.lo: sop.cc
555 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_la-sop.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_la-sop.Tpo -c -o libde265_encoder_la-sop.lo `test -f 'sop.cc' || echo '$(srcdir)/'`sop.cc
556 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_la-sop.Tpo $(DEPDIR)/libde265_encoder_la-sop.Plo
557 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sop.cc' object='libde265_encoder_la-sop.lo' libtool=yes @AMDEPBACKSLASH@
558 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
559 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_la-sop.lo `test -f 'sop.cc' || echo '$(srcdir)/'`sop.cc
560
561 mostlyclean-libtool:
562 -rm -f *.lo
563
564 clean-libtool:
565 -rm -rf .libs _libs
566
567 # This directory's subdirectories are mostly independent; you can cd
568 # into them and run 'make' without going through this Makefile.
569 # To change the values of 'make' variables: instead of editing Makefiles,
570 # (1) if the variable is set in 'config.status', edit 'config.status'
571 # (which will cause the Makefiles to be regenerated when you run 'make');
572 # (2) otherwise, pass the desired values on the 'make' command line.
573 $(am__recursive_targets):
574 @fail=; \
575 if $(am__make_keepgoing); then \
576 failcom='fail=yes'; \
577 else \
578 failcom='exit 1'; \
579 fi; \
580 dot_seen=no; \
581 target=`echo $@ | sed s/-recursive//`; \
582 case "$@" in \
583 distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
584 *) list='$(SUBDIRS)' ;; \
585 esac; \
586 for subdir in $$list; do \
587 echo "Making $$target in $$subdir"; \
588 if test "$$subdir" = "."; then \
589 dot_seen=yes; \
590 local_target="$$target-am"; \
591 else \
592 local_target="$$target"; \
593 fi; \
594 ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
595 || eval $$failcom; \
596 done; \
597 if test "$$dot_seen" = "no"; then \
598 $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
599 fi; test -z "$$fail"
600
601 ID: $(am__tagged_files)
602 $(am__define_uniq_tagged_files); mkid -fID $$unique
603 tags: tags-recursive
604 TAGS: tags
605
606 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
607 set x; \
608 here=`pwd`; \
609 if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
610 include_option=--etags-include; \
611 empty_fix=.; \
612 else \
613 include_option=--include; \
614 empty_fix=; \
615 fi; \
616 list='$(SUBDIRS)'; for subdir in $$list; do \
617 if test "$$subdir" = .; then :; else \
618 test ! -f $$subdir/TAGS || \
619 set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
620 fi; \
621 done; \
622 $(am__define_uniq_tagged_files); \
623 shift; \
624 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
625 test -n "$$unique" || unique=$$empty_fix; \
626 if test $$# -gt 0; then \
627 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
628 "$$@" $$unique; \
629 else \
630 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
631 $$unique; \
632 fi; \
633 fi
634 ctags: ctags-recursive
635
636 CTAGS: ctags
637 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
638 $(am__define_uniq_tagged_files); \
639 test -z "$(CTAGS_ARGS)$$unique" \
640 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
641 $$unique
642
643 GTAGS:
644 here=`$(am__cd) $(top_builddir) && pwd` \
645 && $(am__cd) $(top_srcdir) \
646 && gtags -i $(GTAGS_ARGS) "$$here"
647 cscopelist: cscopelist-recursive
648
649 cscopelist-am: $(am__tagged_files)
650 list='$(am__tagged_files)'; \
651 case "$(srcdir)" in \
652 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
653 *) sdir=$(subdir)/$(srcdir) ;; \
654 esac; \
655 for i in $$list; do \
656 if test -f "$$i"; then \
657 echo "$(subdir)/$$i"; \
658 else \
659 echo "$$sdir/$$i"; \
660 fi; \
661 done >> $(top_builddir)/cscope.files
662
663 distclean-tags:
664 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
665
666 distdir: $(DISTFILES)
667 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
668 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
669 list='$(DISTFILES)'; \
670 dist_files=`for file in $$list; do echo $$file; done | \
671 sed -e "s|^$$srcdirstrip/||;t" \
672 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
673 case $$dist_files in \
674 */*) $(MKDIR_P) `echo "$$dist_files" | \
675 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
676 sort -u` ;; \
677 esac; \
678 for file in $$dist_files; do \
679 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
680 if test -d $$d/$$file; then \
681 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
682 if test -d "$(distdir)/$$file"; then \
683 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
684 fi; \
685 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
686 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
687 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
688 fi; \
689 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
690 else \
691 test -f "$(distdir)/$$file" \
692 || cp -p $$d/$$file "$(distdir)/$$file" \
693 || exit 1; \
694 fi; \
695 done
696 @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
697 if test "$$subdir" = .; then :; else \
698 $(am__make_dryrun) \
699 || test -d "$(distdir)/$$subdir" \
700 || $(MKDIR_P) "$(distdir)/$$subdir" \
701 || exit 1; \
702 dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
703 $(am__relativize); \
704 new_distdir=$$reldir; \
705 dir1=$$subdir; dir2="$(top_distdir)"; \
706 $(am__relativize); \
707 new_top_distdir=$$reldir; \
708 echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
709 echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
710 ($(am__cd) $$subdir && \
711 $(MAKE) $(AM_MAKEFLAGS) \
712 top_distdir="$$new_top_distdir" \
713 distdir="$$new_distdir" \
714 am__remove_distdir=: \
715 am__skip_length_check=: \
716 am__skip_mode_fix=: \
717 distdir) \
718 || exit 1; \
719 fi; \
720 done
721 check-am: all-am
722 check: check-recursive
723 all-am: Makefile $(LTLIBRARIES)
724 installdirs: installdirs-recursive
725 installdirs-am:
726 install: install-recursive
727 install-exec: install-exec-recursive
728 install-data: install-data-recursive
729 uninstall: uninstall-recursive
730
731 install-am: all-am
732 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
733
734 installcheck: installcheck-recursive
735 install-strip:
736 if test -z '$(STRIP)'; then \
737 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
738 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
739 install; \
740 else \
741 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
742 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
743 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
744 fi
745 mostlyclean-generic:
746
747 clean-generic:
748
749 distclean-generic:
750 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
751 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
752
753 maintainer-clean-generic:
754 @echo "This command is intended for maintainers to use"
755 @echo "it deletes files that may require special tools to rebuild."
756 clean: clean-recursive
757
758 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
759 mostlyclean-am
760
761 distclean: distclean-recursive
762 -rm -rf ./$(DEPDIR)
763 -rm -f Makefile
764 distclean-am: clean-am distclean-compile distclean-generic \
765 distclean-tags
766
767 dvi: dvi-recursive
768
769 dvi-am:
770
771 html: html-recursive
772
773 html-am:
774
775 info: info-recursive
776
777 info-am:
778
779 install-data-am:
780
781 install-dvi: install-dvi-recursive
782
783 install-dvi-am:
784
785 install-exec-am:
786
787 install-html: install-html-recursive
788
789 install-html-am:
790
791 install-info: install-info-recursive
792
793 install-info-am:
794
795 install-man:
796
797 install-pdf: install-pdf-recursive
798
799 install-pdf-am:
800
801 install-ps: install-ps-recursive
802
803 install-ps-am:
804
805 installcheck-am:
806
807 maintainer-clean: maintainer-clean-recursive
808 -rm -rf ./$(DEPDIR)
809 -rm -f Makefile
810 maintainer-clean-am: distclean-am maintainer-clean-generic
811
812 mostlyclean: mostlyclean-recursive
813
814 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
815 mostlyclean-libtool
816
817 pdf: pdf-recursive
818
819 pdf-am:
820
821 ps: ps-recursive
822
823 ps-am:
824
825 uninstall-am:
826
827 .MAKE: $(am__recursive_targets) install-am install-strip
828
829 .PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am check \
830 check-am clean clean-generic clean-libtool \
831 clean-noinstLTLIBRARIES cscopelist-am ctags ctags-am distclean \
832 distclean-compile distclean-generic distclean-libtool \
833 distclean-tags distdir dvi dvi-am html html-am info info-am \
834 install install-am install-data install-data-am install-dvi \
835 install-dvi-am install-exec install-exec-am install-html \
836 install-html-am install-info install-info-am install-man \
837 install-pdf install-pdf-am install-ps install-ps-am \
838 install-strip installcheck installcheck-am installdirs \
839 installdirs-am maintainer-clean maintainer-clean-generic \
840 mostlyclean mostlyclean-compile mostlyclean-generic \
841 mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
842 uninstall-am
843
844 .PRECIOUS: Makefile
845
846
847 # Tell versions [3.59,3.63) of GNU make to not export all variables.
848 # Otherwise a system limit (for SysV at least) may be exceeded.
849 .NOEXPORT:
+0
-785
libde265/encoder/algo/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91 subdir = libde265/encoder/algo
92 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
93 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
94 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
95 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
96 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
97 $(top_srcdir)/m4/lt~obsolete.m4 \
98 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
99 $(top_srcdir)/configure.ac
100 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
101 $(ACLOCAL_M4)
102 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
103 mkinstalldirs = $(install_sh) -d
104 CONFIG_HEADER = $(top_builddir)/config.h
105 CONFIG_CLEAN_FILES =
106 CONFIG_CLEAN_VPATH_FILES =
107 LTLIBRARIES = $(noinst_LTLIBRARIES)
108 libde265_encoder_algo_la_LIBADD =
109 am_libde265_encoder_algo_la_OBJECTS = \
110 libde265_encoder_algo_la-algo.lo \
111 libde265_encoder_algo_la-coding-options.lo \
112 libde265_encoder_algo_la-ctb-qscale.lo \
113 libde265_encoder_algo_la-cb-split.lo \
114 libde265_encoder_algo_la-cb-intrapartmode.lo \
115 libde265_encoder_algo_la-cb-interpartmode.lo \
116 libde265_encoder_algo_la-cb-skip.lo \
117 libde265_encoder_algo_la-cb-intra-inter.lo \
118 libde265_encoder_algo_la-cb-mergeindex.lo \
119 libde265_encoder_algo_la-tb-split.lo \
120 libde265_encoder_algo_la-tb-transform.lo \
121 libde265_encoder_algo_la-tb-intrapredmode.lo \
122 libde265_encoder_algo_la-tb-rateestim.lo \
123 libde265_encoder_algo_la-pb-mv.lo
124 libde265_encoder_algo_la_OBJECTS = \
125 $(am_libde265_encoder_algo_la_OBJECTS)
126 AM_V_lt = $(am__v_lt_@AM_V@)
127 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
128 am__v_lt_0 = --silent
129 am__v_lt_1 =
130 libde265_encoder_algo_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
131 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
132 $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
133 $(LDFLAGS) -o $@
134 AM_V_P = $(am__v_P_@AM_V@)
135 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
136 am__v_P_0 = false
137 am__v_P_1 = :
138 AM_V_GEN = $(am__v_GEN_@AM_V@)
139 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
140 am__v_GEN_0 = @echo " GEN " $@;
141 am__v_GEN_1 =
142 AM_V_at = $(am__v_at_@AM_V@)
143 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
144 am__v_at_0 = @
145 am__v_at_1 =
146 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
147 depcomp = $(SHELL) $(top_srcdir)/depcomp
148 am__depfiles_maybe = depfiles
149 am__mv = mv -f
150 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
151 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
152 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
153 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
154 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
155 $(AM_CXXFLAGS) $(CXXFLAGS)
156 AM_V_CXX = $(am__v_CXX_@AM_V@)
157 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
158 am__v_CXX_0 = @echo " CXX " $@;
159 am__v_CXX_1 =
160 CXXLD = $(CXX)
161 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
162 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
163 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
164 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
165 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
166 am__v_CXXLD_0 = @echo " CXXLD " $@;
167 am__v_CXXLD_1 =
168 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
169 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
170 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
171 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
172 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
173 $(AM_CFLAGS) $(CFLAGS)
174 AM_V_CC = $(am__v_CC_@AM_V@)
175 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
176 am__v_CC_0 = @echo " CC " $@;
177 am__v_CC_1 =
178 CCLD = $(CC)
179 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
180 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
181 $(AM_LDFLAGS) $(LDFLAGS) -o $@
182 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
183 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
184 am__v_CCLD_0 = @echo " CCLD " $@;
185 am__v_CCLD_1 =
186 SOURCES = $(libde265_encoder_algo_la_SOURCES)
187 DIST_SOURCES = $(libde265_encoder_algo_la_SOURCES)
188 am__can_run_installinfo = \
189 case $$AM_UPDATE_INFO_DIR in \
190 n|no|NO) false;; \
191 *) (install-info --version) >/dev/null 2>&1;; \
192 esac
193 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
194 # Read a list of newline-separated strings from the standard input,
195 # and print each of them once, without duplicates. Input order is
196 # *not* preserved.
197 am__uniquify_input = $(AWK) '\
198 BEGIN { nonempty = 0; } \
199 { items[$$0] = 1; nonempty = 1; } \
200 END { if (nonempty) { for (i in items) print i; }; } \
201 '
202 # Make sure the list of sources is unique. This is necessary because,
203 # e.g., the same source file might be shared among _SOURCES variables
204 # for different programs/libraries.
205 am__define_uniq_tagged_files = \
206 list='$(am__tagged_files)'; \
207 unique=`for i in $$list; do \
208 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
209 done | $(am__uniquify_input)`
210 ETAGS = etags
211 CTAGS = ctags
212 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
213 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
214 ACLOCAL = @ACLOCAL@
215 ALLOCA = @ALLOCA@
216 AMTAR = @AMTAR@
217 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
218 AR = @AR@
219 AUTOCONF = @AUTOCONF@
220 AUTOHEADER = @AUTOHEADER@
221 AUTOMAKE = @AUTOMAKE@
222 AWK = @AWK@
223 CC = @CC@
224 CCAS = @CCAS@
225 CCASDEPMODE = @CCASDEPMODE@
226 CCASFLAGS = @CCASFLAGS@
227 CCDEPMODE = @CCDEPMODE@
228 CFLAGS = @CFLAGS@
229 CPP = @CPP@
230 CPPFLAGS = @CPPFLAGS@
231 CXX = @CXX@
232 CXXCPP = @CXXCPP@
233 CXXDEPMODE = @CXXDEPMODE@
234 CXXFLAGS = @CXXFLAGS@
235 CYGPATH_W = @CYGPATH_W@
236 DEFS = @DEFS@
237 DEPDIR = @DEPDIR@
238 DLLTOOL = @DLLTOOL@
239 DSYMUTIL = @DSYMUTIL@
240 DUMPBIN = @DUMPBIN@
241 ECHO_C = @ECHO_C@
242 ECHO_N = @ECHO_N@
243 ECHO_T = @ECHO_T@
244 EGREP = @EGREP@
245 EXEEXT = @EXEEXT@
246 FGREP = @FGREP@
247 GREP = @GREP@
248 HAVE_CXX11 = @HAVE_CXX11@
249 INSTALL = @INSTALL@
250 INSTALL_DATA = @INSTALL_DATA@
251 INSTALL_PROGRAM = @INSTALL_PROGRAM@
252 INSTALL_SCRIPT = @INSTALL_SCRIPT@
253 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
254 LD = @LD@
255 LDFLAGS = @LDFLAGS@
256 LIBDE265_AGE = @LIBDE265_AGE@
257 LIBDE265_CURRENT = @LIBDE265_CURRENT@
258 LIBDE265_REVISION = @LIBDE265_REVISION@
259 LIBOBJS = @LIBOBJS@
260 LIBS = @LIBS@
261 LIBTOOL = @LIBTOOL@
262 LIPO = @LIPO@
263 LN_S = @LN_S@
264 LTLIBOBJS = @LTLIBOBJS@
265 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
266 MAKEINFO = @MAKEINFO@
267 MANIFEST_TOOL = @MANIFEST_TOOL@
268 MKDIR_P = @MKDIR_P@
269 NM = @NM@
270 NMEDIT = @NMEDIT@
271 NUMERIC_VERSION = @NUMERIC_VERSION@
272 OBJDUMP = @OBJDUMP@
273 OBJEXT = @OBJEXT@
274 OTOOL = @OTOOL@
275 OTOOL64 = @OTOOL64@
276 PACKAGE = @PACKAGE@
277 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
278 PACKAGE_NAME = @PACKAGE_NAME@
279 PACKAGE_STRING = @PACKAGE_STRING@
280 PACKAGE_TARNAME = @PACKAGE_TARNAME@
281 PACKAGE_URL = @PACKAGE_URL@
282 PACKAGE_VERSION = @PACKAGE_VERSION@
283 PATH_SEPARATOR = @PATH_SEPARATOR@
284 PKG_CONFIG = @PKG_CONFIG@
285 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
286 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
287 QTCHOOSER = @QTCHOOSER@
288 QTMOC = @QTMOC@
289 QT_CFLAGS = @QT_CFLAGS@
290 QT_LIBS = @QT_LIBS@
291 RANLIB = @RANLIB@
292 SDL_CFLAGS = @SDL_CFLAGS@
293 SDL_LIBS = @SDL_LIBS@
294 SED = @SED@
295 SET_MAKE = @SET_MAKE@
296 SHELL = @SHELL@
297 STRIP = @STRIP@
298 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
299 SWSCALE_LIBS = @SWSCALE_LIBS@
300 VERSION = @VERSION@
301 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
302 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
303 abs_builddir = @abs_builddir@
304 abs_srcdir = @abs_srcdir@
305 abs_top_builddir = @abs_top_builddir@
306 abs_top_srcdir = @abs_top_srcdir@
307 ac_ct_AR = @ac_ct_AR@
308 ac_ct_CC = @ac_ct_CC@
309 ac_ct_CXX = @ac_ct_CXX@
310 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
311 am__include = @am__include@
312 am__leading_dot = @am__leading_dot@
313 am__quote = @am__quote@
314 am__tar = @am__tar@
315 am__untar = @am__untar@
316 bindir = @bindir@
317 build = @build@
318 build_alias = @build_alias@
319 build_cpu = @build_cpu@
320 build_os = @build_os@
321 build_vendor = @build_vendor@
322 builddir = @builddir@
323 datadir = @datadir@
324 datarootdir = @datarootdir@
325 docdir = @docdir@
326 dvidir = @dvidir@
327 exec_prefix = @exec_prefix@
328 host = @host@
329 host_alias = @host_alias@
330 host_cpu = @host_cpu@
331 host_os = @host_os@
332 host_vendor = @host_vendor@
333 htmldir = @htmldir@
334 includedir = @includedir@
335 infodir = @infodir@
336 install_sh = @install_sh@
337 libdir = @libdir@
338 libexecdir = @libexecdir@
339 localedir = @localedir@
340 localstatedir = @localstatedir@
341 mandir = @mandir@
342 mkdir_p = @mkdir_p@
343 oldincludedir = @oldincludedir@
344 pdfdir = @pdfdir@
345 prefix = @prefix@
346 program_transform_name = @program_transform_name@
347 psdir = @psdir@
348 runstatedir = @runstatedir@
349 sbindir = @sbindir@
350 sharedstatedir = @sharedstatedir@
351 srcdir = @srcdir@
352 sysconfdir = @sysconfdir@
353 target = @target@
354 target_alias = @target_alias@
355 target_cpu = @target_cpu@
356 target_os = @target_os@
357 target_vendor = @target_vendor@
358 top_build_prefix = @top_build_prefix@
359 top_builddir = @top_builddir@
360 top_srcdir = @top_srcdir@
361 noinst_LTLIBRARIES = libde265_encoder_algo.la
362 libde265_encoder_algo_la_CXXFLAGS = -I$(top_srcdir) -I$(top_builddir)
363 libde265_encoder_algo_la_SOURCES = \
364 algo.h algo.cc \
365 coding-options.h coding-options.cc \
366 ctb-qscale.h ctb-qscale.cc \
367 cb-split.h cb-split.cc \
368 cb-intrapartmode.h cb-intrapartmode.cc \
369 cb-interpartmode.h cb-interpartmode.cc \
370 cb-skip.h cb-skip.cc \
371 cb-intra-inter.h cb-intra-inter.cc \
372 cb-mergeindex.h cb-mergeindex.cc \
373 tb-split.h tb-split.cc \
374 tb-transform.h tb-transform.cc \
375 tb-intrapredmode.h tb-intrapredmode.cc \
376 tb-rateestim.h tb-rateestim.cc \
377 pb-mv.h pb-mv.cc
378
379 EXTRA_DIST = \
380 CMakeLists.txt
381
382 all: all-am
383
384 .SUFFIXES:
385 .SUFFIXES: .cc .lo .o .obj
386 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
387 @for dep in $?; do \
388 case '$(am__configure_deps)' in \
389 *$$dep*) \
390 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
391 && { if test -f $@; then exit 0; else break; fi; }; \
392 exit 1;; \
393 esac; \
394 done; \
395 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libde265/encoder/algo/Makefile'; \
396 $(am__cd) $(top_srcdir) && \
397 $(AUTOMAKE) --gnu libde265/encoder/algo/Makefile
398 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
399 @case '$?' in \
400 *config.status*) \
401 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
402 *) \
403 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
404 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
405 esac;
406
407 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
408 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
409
410 $(top_srcdir)/configure: $(am__configure_deps)
411 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
412 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
413 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
414 $(am__aclocal_m4_deps):
415
416 clean-noinstLTLIBRARIES:
417 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
418 @list='$(noinst_LTLIBRARIES)'; \
419 locs=`for p in $$list; do echo $$p; done | \
420 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
421 sort -u`; \
422 test -z "$$locs" || { \
423 echo rm -f $${locs}; \
424 rm -f $${locs}; \
425 }
426
427 libde265_encoder_algo.la: $(libde265_encoder_algo_la_OBJECTS) $(libde265_encoder_algo_la_DEPENDENCIES) $(EXTRA_libde265_encoder_algo_la_DEPENDENCIES)
428 $(AM_V_CXXLD)$(libde265_encoder_algo_la_LINK) $(libde265_encoder_algo_la_OBJECTS) $(libde265_encoder_algo_la_LIBADD) $(LIBS)
429
430 mostlyclean-compile:
431 -rm -f *.$(OBJEXT)
432
433 distclean-compile:
434 -rm -f *.tab.c
435
436 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-algo.Plo@am__quote@
437 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-cb-interpartmode.Plo@am__quote@
438 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-cb-intra-inter.Plo@am__quote@
439 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-cb-intrapartmode.Plo@am__quote@
440 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-cb-mergeindex.Plo@am__quote@
441 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-cb-skip.Plo@am__quote@
442 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-cb-split.Plo@am__quote@
443 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-coding-options.Plo@am__quote@
444 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-ctb-qscale.Plo@am__quote@
445 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-pb-mv.Plo@am__quote@
446 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-tb-intrapredmode.Plo@am__quote@
447 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-tb-rateestim.Plo@am__quote@
448 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-tb-split.Plo@am__quote@
449 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_encoder_algo_la-tb-transform.Plo@am__quote@
450
451 .cc.o:
452 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
453 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
454 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
455 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
456 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
457
458 .cc.obj:
459 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
460 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
461 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
462 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
463 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
464
465 .cc.lo:
466 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
467 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
468 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
469 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
470 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
471
472 libde265_encoder_algo_la-algo.lo: algo.cc
473 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-algo.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-algo.Tpo -c -o libde265_encoder_algo_la-algo.lo `test -f 'algo.cc' || echo '$(srcdir)/'`algo.cc
474 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-algo.Tpo $(DEPDIR)/libde265_encoder_algo_la-algo.Plo
475 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='algo.cc' object='libde265_encoder_algo_la-algo.lo' libtool=yes @AMDEPBACKSLASH@
476 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
477 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-algo.lo `test -f 'algo.cc' || echo '$(srcdir)/'`algo.cc
478
479 libde265_encoder_algo_la-coding-options.lo: coding-options.cc
480 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-coding-options.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-coding-options.Tpo -c -o libde265_encoder_algo_la-coding-options.lo `test -f 'coding-options.cc' || echo '$(srcdir)/'`coding-options.cc
481 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-coding-options.Tpo $(DEPDIR)/libde265_encoder_algo_la-coding-options.Plo
482 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='coding-options.cc' object='libde265_encoder_algo_la-coding-options.lo' libtool=yes @AMDEPBACKSLASH@
483 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
484 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-coding-options.lo `test -f 'coding-options.cc' || echo '$(srcdir)/'`coding-options.cc
485
486 libde265_encoder_algo_la-ctb-qscale.lo: ctb-qscale.cc
487 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-ctb-qscale.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-ctb-qscale.Tpo -c -o libde265_encoder_algo_la-ctb-qscale.lo `test -f 'ctb-qscale.cc' || echo '$(srcdir)/'`ctb-qscale.cc
488 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-ctb-qscale.Tpo $(DEPDIR)/libde265_encoder_algo_la-ctb-qscale.Plo
489 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='ctb-qscale.cc' object='libde265_encoder_algo_la-ctb-qscale.lo' libtool=yes @AMDEPBACKSLASH@
490 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
491 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-ctb-qscale.lo `test -f 'ctb-qscale.cc' || echo '$(srcdir)/'`ctb-qscale.cc
492
493 libde265_encoder_algo_la-cb-split.lo: cb-split.cc
494 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-cb-split.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-cb-split.Tpo -c -o libde265_encoder_algo_la-cb-split.lo `test -f 'cb-split.cc' || echo '$(srcdir)/'`cb-split.cc
495 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-cb-split.Tpo $(DEPDIR)/libde265_encoder_algo_la-cb-split.Plo
496 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='cb-split.cc' object='libde265_encoder_algo_la-cb-split.lo' libtool=yes @AMDEPBACKSLASH@
497 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
498 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-cb-split.lo `test -f 'cb-split.cc' || echo '$(srcdir)/'`cb-split.cc
499
500 libde265_encoder_algo_la-cb-intrapartmode.lo: cb-intrapartmode.cc
501 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-cb-intrapartmode.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-cb-intrapartmode.Tpo -c -o libde265_encoder_algo_la-cb-intrapartmode.lo `test -f 'cb-intrapartmode.cc' || echo '$(srcdir)/'`cb-intrapartmode.cc
502 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-cb-intrapartmode.Tpo $(DEPDIR)/libde265_encoder_algo_la-cb-intrapartmode.Plo
503 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='cb-intrapartmode.cc' object='libde265_encoder_algo_la-cb-intrapartmode.lo' libtool=yes @AMDEPBACKSLASH@
504 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
505 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-cb-intrapartmode.lo `test -f 'cb-intrapartmode.cc' || echo '$(srcdir)/'`cb-intrapartmode.cc
506
507 libde265_encoder_algo_la-cb-interpartmode.lo: cb-interpartmode.cc
508 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-cb-interpartmode.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-cb-interpartmode.Tpo -c -o libde265_encoder_algo_la-cb-interpartmode.lo `test -f 'cb-interpartmode.cc' || echo '$(srcdir)/'`cb-interpartmode.cc
509 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-cb-interpartmode.Tpo $(DEPDIR)/libde265_encoder_algo_la-cb-interpartmode.Plo
510 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='cb-interpartmode.cc' object='libde265_encoder_algo_la-cb-interpartmode.lo' libtool=yes @AMDEPBACKSLASH@
511 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
512 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-cb-interpartmode.lo `test -f 'cb-interpartmode.cc' || echo '$(srcdir)/'`cb-interpartmode.cc
513
514 libde265_encoder_algo_la-cb-skip.lo: cb-skip.cc
515 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-cb-skip.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-cb-skip.Tpo -c -o libde265_encoder_algo_la-cb-skip.lo `test -f 'cb-skip.cc' || echo '$(srcdir)/'`cb-skip.cc
516 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-cb-skip.Tpo $(DEPDIR)/libde265_encoder_algo_la-cb-skip.Plo
517 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='cb-skip.cc' object='libde265_encoder_algo_la-cb-skip.lo' libtool=yes @AMDEPBACKSLASH@
518 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
519 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-cb-skip.lo `test -f 'cb-skip.cc' || echo '$(srcdir)/'`cb-skip.cc
520
521 libde265_encoder_algo_la-cb-intra-inter.lo: cb-intra-inter.cc
522 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-cb-intra-inter.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-cb-intra-inter.Tpo -c -o libde265_encoder_algo_la-cb-intra-inter.lo `test -f 'cb-intra-inter.cc' || echo '$(srcdir)/'`cb-intra-inter.cc
523 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-cb-intra-inter.Tpo $(DEPDIR)/libde265_encoder_algo_la-cb-intra-inter.Plo
524 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='cb-intra-inter.cc' object='libde265_encoder_algo_la-cb-intra-inter.lo' libtool=yes @AMDEPBACKSLASH@
525 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
526 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-cb-intra-inter.lo `test -f 'cb-intra-inter.cc' || echo '$(srcdir)/'`cb-intra-inter.cc
527
528 libde265_encoder_algo_la-cb-mergeindex.lo: cb-mergeindex.cc
529 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-cb-mergeindex.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-cb-mergeindex.Tpo -c -o libde265_encoder_algo_la-cb-mergeindex.lo `test -f 'cb-mergeindex.cc' || echo '$(srcdir)/'`cb-mergeindex.cc
530 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-cb-mergeindex.Tpo $(DEPDIR)/libde265_encoder_algo_la-cb-mergeindex.Plo
531 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='cb-mergeindex.cc' object='libde265_encoder_algo_la-cb-mergeindex.lo' libtool=yes @AMDEPBACKSLASH@
532 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
533 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-cb-mergeindex.lo `test -f 'cb-mergeindex.cc' || echo '$(srcdir)/'`cb-mergeindex.cc
534
535 libde265_encoder_algo_la-tb-split.lo: tb-split.cc
536 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-tb-split.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-tb-split.Tpo -c -o libde265_encoder_algo_la-tb-split.lo `test -f 'tb-split.cc' || echo '$(srcdir)/'`tb-split.cc
537 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-tb-split.Tpo $(DEPDIR)/libde265_encoder_algo_la-tb-split.Plo
538 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tb-split.cc' object='libde265_encoder_algo_la-tb-split.lo' libtool=yes @AMDEPBACKSLASH@
539 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
540 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-tb-split.lo `test -f 'tb-split.cc' || echo '$(srcdir)/'`tb-split.cc
541
542 libde265_encoder_algo_la-tb-transform.lo: tb-transform.cc
543 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-tb-transform.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-tb-transform.Tpo -c -o libde265_encoder_algo_la-tb-transform.lo `test -f 'tb-transform.cc' || echo '$(srcdir)/'`tb-transform.cc
544 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-tb-transform.Tpo $(DEPDIR)/libde265_encoder_algo_la-tb-transform.Plo
545 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tb-transform.cc' object='libde265_encoder_algo_la-tb-transform.lo' libtool=yes @AMDEPBACKSLASH@
546 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
547 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-tb-transform.lo `test -f 'tb-transform.cc' || echo '$(srcdir)/'`tb-transform.cc
548
549 libde265_encoder_algo_la-tb-intrapredmode.lo: tb-intrapredmode.cc
550 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-tb-intrapredmode.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-tb-intrapredmode.Tpo -c -o libde265_encoder_algo_la-tb-intrapredmode.lo `test -f 'tb-intrapredmode.cc' || echo '$(srcdir)/'`tb-intrapredmode.cc
551 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-tb-intrapredmode.Tpo $(DEPDIR)/libde265_encoder_algo_la-tb-intrapredmode.Plo
552 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tb-intrapredmode.cc' object='libde265_encoder_algo_la-tb-intrapredmode.lo' libtool=yes @AMDEPBACKSLASH@
553 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
554 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-tb-intrapredmode.lo `test -f 'tb-intrapredmode.cc' || echo '$(srcdir)/'`tb-intrapredmode.cc
555
556 libde265_encoder_algo_la-tb-rateestim.lo: tb-rateestim.cc
557 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-tb-rateestim.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-tb-rateestim.Tpo -c -o libde265_encoder_algo_la-tb-rateestim.lo `test -f 'tb-rateestim.cc' || echo '$(srcdir)/'`tb-rateestim.cc
558 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-tb-rateestim.Tpo $(DEPDIR)/libde265_encoder_algo_la-tb-rateestim.Plo
559 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tb-rateestim.cc' object='libde265_encoder_algo_la-tb-rateestim.lo' libtool=yes @AMDEPBACKSLASH@
560 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
561 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-tb-rateestim.lo `test -f 'tb-rateestim.cc' || echo '$(srcdir)/'`tb-rateestim.cc
562
563 libde265_encoder_algo_la-pb-mv.lo: pb-mv.cc
564 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_encoder_algo_la-pb-mv.lo -MD -MP -MF $(DEPDIR)/libde265_encoder_algo_la-pb-mv.Tpo -c -o libde265_encoder_algo_la-pb-mv.lo `test -f 'pb-mv.cc' || echo '$(srcdir)/'`pb-mv.cc
565 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_encoder_algo_la-pb-mv.Tpo $(DEPDIR)/libde265_encoder_algo_la-pb-mv.Plo
566 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='pb-mv.cc' object='libde265_encoder_algo_la-pb-mv.lo' libtool=yes @AMDEPBACKSLASH@
567 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
568 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_encoder_algo_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_encoder_algo_la-pb-mv.lo `test -f 'pb-mv.cc' || echo '$(srcdir)/'`pb-mv.cc
569
570 mostlyclean-libtool:
571 -rm -f *.lo
572
573 clean-libtool:
574 -rm -rf .libs _libs
575
576 ID: $(am__tagged_files)
577 $(am__define_uniq_tagged_files); mkid -fID $$unique
578 tags: tags-am
579 TAGS: tags
580
581 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
582 set x; \
583 here=`pwd`; \
584 $(am__define_uniq_tagged_files); \
585 shift; \
586 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
587 test -n "$$unique" || unique=$$empty_fix; \
588 if test $$# -gt 0; then \
589 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
590 "$$@" $$unique; \
591 else \
592 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
593 $$unique; \
594 fi; \
595 fi
596 ctags: ctags-am
597
598 CTAGS: ctags
599 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
600 $(am__define_uniq_tagged_files); \
601 test -z "$(CTAGS_ARGS)$$unique" \
602 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
603 $$unique
604
605 GTAGS:
606 here=`$(am__cd) $(top_builddir) && pwd` \
607 && $(am__cd) $(top_srcdir) \
608 && gtags -i $(GTAGS_ARGS) "$$here"
609 cscopelist: cscopelist-am
610
611 cscopelist-am: $(am__tagged_files)
612 list='$(am__tagged_files)'; \
613 case "$(srcdir)" in \
614 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
615 *) sdir=$(subdir)/$(srcdir) ;; \
616 esac; \
617 for i in $$list; do \
618 if test -f "$$i"; then \
619 echo "$(subdir)/$$i"; \
620 else \
621 echo "$$sdir/$$i"; \
622 fi; \
623 done >> $(top_builddir)/cscope.files
624
625 distclean-tags:
626 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
627
628 distdir: $(DISTFILES)
629 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
630 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
631 list='$(DISTFILES)'; \
632 dist_files=`for file in $$list; do echo $$file; done | \
633 sed -e "s|^$$srcdirstrip/||;t" \
634 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
635 case $$dist_files in \
636 */*) $(MKDIR_P) `echo "$$dist_files" | \
637 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
638 sort -u` ;; \
639 esac; \
640 for file in $$dist_files; do \
641 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
642 if test -d $$d/$$file; then \
643 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
644 if test -d "$(distdir)/$$file"; then \
645 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
646 fi; \
647 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
648 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
649 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
650 fi; \
651 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
652 else \
653 test -f "$(distdir)/$$file" \
654 || cp -p $$d/$$file "$(distdir)/$$file" \
655 || exit 1; \
656 fi; \
657 done
658 check-am: all-am
659 check: check-am
660 all-am: Makefile $(LTLIBRARIES)
661 installdirs:
662 install: install-am
663 install-exec: install-exec-am
664 install-data: install-data-am
665 uninstall: uninstall-am
666
667 install-am: all-am
668 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
669
670 installcheck: installcheck-am
671 install-strip:
672 if test -z '$(STRIP)'; then \
673 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
674 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
675 install; \
676 else \
677 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
678 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
679 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
680 fi
681 mostlyclean-generic:
682
683 clean-generic:
684
685 distclean-generic:
686 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
687 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
688
689 maintainer-clean-generic:
690 @echo "This command is intended for maintainers to use"
691 @echo "it deletes files that may require special tools to rebuild."
692 clean: clean-am
693
694 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
695 mostlyclean-am
696
697 distclean: distclean-am
698 -rm -rf ./$(DEPDIR)
699 -rm -f Makefile
700 distclean-am: clean-am distclean-compile distclean-generic \
701 distclean-tags
702
703 dvi: dvi-am
704
705 dvi-am:
706
707 html: html-am
708
709 html-am:
710
711 info: info-am
712
713 info-am:
714
715 install-data-am:
716
717 install-dvi: install-dvi-am
718
719 install-dvi-am:
720
721 install-exec-am:
722
723 install-html: install-html-am
724
725 install-html-am:
726
727 install-info: install-info-am
728
729 install-info-am:
730
731 install-man:
732
733 install-pdf: install-pdf-am
734
735 install-pdf-am:
736
737 install-ps: install-ps-am
738
739 install-ps-am:
740
741 installcheck-am:
742
743 maintainer-clean: maintainer-clean-am
744 -rm -rf ./$(DEPDIR)
745 -rm -f Makefile
746 maintainer-clean-am: distclean-am maintainer-clean-generic
747
748 mostlyclean: mostlyclean-am
749
750 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
751 mostlyclean-libtool
752
753 pdf: pdf-am
754
755 pdf-am:
756
757 ps: ps-am
758
759 ps-am:
760
761 uninstall-am:
762
763 .MAKE: install-am install-strip
764
765 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
766 clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
767 ctags-am distclean distclean-compile distclean-generic \
768 distclean-libtool distclean-tags distdir dvi dvi-am html \
769 html-am info info-am install install-am install-data \
770 install-data-am install-dvi install-dvi-am install-exec \
771 install-exec-am install-html install-html-am install-info \
772 install-info-am install-man install-pdf install-pdf-am \
773 install-ps install-ps-am install-strip installcheck \
774 installcheck-am installdirs maintainer-clean \
775 maintainer-clean-generic mostlyclean mostlyclean-compile \
776 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
777 tags tags-am uninstall uninstall-am
778
779 .PRECIOUS: Makefile
780
781
782 # Tell versions [3.59,3.63) of GNU make to not export all variables.
783 # Otherwise a system limit (for SysV at least) may be exceeded.
784 .NOEXPORT:
41734173
41744174 int shift = bitDepth - nPcmBits;
41754175
4176 // a shift < 0 may result when the SPS sequence header is broken
4177 if (shift < 0) {
4178 shift=0;
4179 }
4180
41764181 for (int y=0;y<h;y++)
41774182 for (int x=0;x<w;x++)
41784183 {
364364 READ_VLC_OFFSET(log2_min_pcm_luma_coding_block_size, uvlc, 3);
365365 READ_VLC(log2_diff_max_min_pcm_luma_coding_block_size, uvlc);
366366 pcm_loop_filter_disable_flag = get_bits(br,1);
367
368 if (pcm_sample_bit_depth_luma > bit_depth_luma) {
369 errqueue->add_warning(DE265_WARNING_PCM_BITDEPTH_TOO_LARGE, false);
370 return DE265_ERROR_CODED_PARAMETER_OUT_OF_RANGE;
371 }
372
373 if (pcm_sample_bit_depth_chroma > bit_depth_chroma) {
374 errqueue->add_warning(DE265_WARNING_PCM_BITDEPTH_TOO_LARGE, false);
375 return DE265_ERROR_CODED_PARAMETER_OUT_OF_RANGE;
376 }
367377 }
368378 else {
369379 pcm_sample_bit_depth_luma = 0;
872882 int dc_coeff[4][6];
873883
874884 for (int sizeId=0;sizeId<4;sizeId++) {
875 int n = ((sizeId==3) ? 2 : 6);
885 //int n = ((sizeId==3) ? 2 : 6);
876886 uint8_t scaling_list[6][32*32];
877887
878 for (int matrixId=0;matrixId<n;matrixId++) {
888 for (int matrixId=0 ; matrixId<6 ; matrixId += (sizeId==3 ? 3 : 1)) {
879889 uint8_t* curr_scaling_list = scaling_list[matrixId];
880890 int scaling_list_dc_coef;
881891
981991 }
982992 }
983993
994
995 // --- fill 32x32 matrices for chroma
996
997 const position* scan = get_scan_order(3, 0 /* diag */);
998
999 for (int matrixId=0;matrixId<6;matrixId++)
1000 if (matrixId!=0 && matrixId!=3) {
1001 for (int i=0;i<64;i++) {
1002 int x = scan[i].x;
1003 int y = scan[i].y;
1004 int v = sclist->ScalingFactor_Size1[matrixId][y][x];
1005
1006 for (int dy=0;dy<4;dy++)
1007 for (int dx=0;dx<4;dx++) {
1008 sclist->ScalingFactor_Size3[matrixId][4*y+dy][4*x+dx] = v;
1009 }
1010 }
1011
1012 sclist->ScalingFactor_Size3[matrixId][0][0] = sclist->ScalingFactor_Size1[matrixId][0][0];
1013 }
1014
9841015 return DE265_OK;
9851016 }
9861017
5353 uint8_t ScalingFactor_Size0[6][4][4];
5454 uint8_t ScalingFactor_Size1[6][8][8];
5555 uint8_t ScalingFactor_Size2[6][16][16];
56 uint8_t ScalingFactor_Size3[2][32][32];
56 uint8_t ScalingFactor_Size3[6][32][32];
5757 } scaling_list_data;
5858
5959
503503
504504 for (int i=0;i<tctx->nCoeff[cIdx];i++) {
505505 int pos = tctx->coeffPos[cIdx][i];
506 int x = pos%nT;
507 int y = pos/nT;
508
509 const int m_x_y = sclist[x+y*nT];
506
507 const int m_x_y = sclist[pos];
510508 const int fact = m_x_y * levelScale[qP%6] << (qP/6);
511509
512510 int64_t currCoeff = tctx->coeffList[cIdx][i];
+0
-688
libde265/x86/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91 @HAVE_VISIBILITY_TRUE@am__append_1 = -DHAVE_VISIBILITY
92 @HAVE_VISIBILITY_TRUE@am__append_2 = -DHAVE_VISIBILITY
93 subdir = libde265/x86
94 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
95 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
96 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
97 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
98 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
99 $(top_srcdir)/m4/lt~obsolete.m4 \
100 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
101 $(top_srcdir)/configure.ac
102 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
103 $(ACLOCAL_M4)
104 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
105 mkinstalldirs = $(install_sh) -d
106 CONFIG_HEADER = $(top_builddir)/config.h
107 CONFIG_CLEAN_FILES =
108 CONFIG_CLEAN_VPATH_FILES =
109 LTLIBRARIES = $(noinst_LTLIBRARIES)
110 libde265_x86_la_DEPENDENCIES = libde265_x86_sse.la
111 am_libde265_x86_la_OBJECTS = libde265_x86_la-sse.lo
112 libde265_x86_la_OBJECTS = $(am_libde265_x86_la_OBJECTS)
113 AM_V_lt = $(am__v_lt_@AM_V@)
114 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
115 am__v_lt_0 = --silent
116 am__v_lt_1 =
117 libde265_x86_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
118 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
119 $(libde265_x86_la_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
120 $(LDFLAGS) -o $@
121 libde265_x86_sse_la_LIBADD =
122 am_libde265_x86_sse_la_OBJECTS = libde265_x86_sse_la-sse-motion.lo \
123 libde265_x86_sse_la-sse-dct.lo
124 libde265_x86_sse_la_OBJECTS = $(am_libde265_x86_sse_la_OBJECTS)
125 libde265_x86_sse_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
126 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
127 $(libde265_x86_sse_la_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
128 $(LDFLAGS) -o $@
129 AM_V_P = $(am__v_P_@AM_V@)
130 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
131 am__v_P_0 = false
132 am__v_P_1 = :
133 AM_V_GEN = $(am__v_GEN_@AM_V@)
134 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
135 am__v_GEN_0 = @echo " GEN " $@;
136 am__v_GEN_1 =
137 AM_V_at = $(am__v_at_@AM_V@)
138 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
139 am__v_at_0 = @
140 am__v_at_1 =
141 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
142 depcomp = $(SHELL) $(top_srcdir)/depcomp
143 am__depfiles_maybe = depfiles
144 am__mv = mv -f
145 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
146 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
147 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
148 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
149 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
150 $(AM_CXXFLAGS) $(CXXFLAGS)
151 AM_V_CXX = $(am__v_CXX_@AM_V@)
152 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
153 am__v_CXX_0 = @echo " CXX " $@;
154 am__v_CXX_1 =
155 CXXLD = $(CXX)
156 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
157 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
158 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
159 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
160 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
161 am__v_CXXLD_0 = @echo " CXXLD " $@;
162 am__v_CXXLD_1 =
163 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
164 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
165 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
166 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
167 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
168 $(AM_CFLAGS) $(CFLAGS)
169 AM_V_CC = $(am__v_CC_@AM_V@)
170 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
171 am__v_CC_0 = @echo " CC " $@;
172 am__v_CC_1 =
173 CCLD = $(CC)
174 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
175 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
176 $(AM_LDFLAGS) $(LDFLAGS) -o $@
177 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
178 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
179 am__v_CCLD_0 = @echo " CCLD " $@;
180 am__v_CCLD_1 =
181 SOURCES = $(libde265_x86_la_SOURCES) $(libde265_x86_sse_la_SOURCES)
182 DIST_SOURCES = $(libde265_x86_la_SOURCES) \
183 $(libde265_x86_sse_la_SOURCES)
184 am__can_run_installinfo = \
185 case $$AM_UPDATE_INFO_DIR in \
186 n|no|NO) false;; \
187 *) (install-info --version) >/dev/null 2>&1;; \
188 esac
189 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
190 # Read a list of newline-separated strings from the standard input,
191 # and print each of them once, without duplicates. Input order is
192 # *not* preserved.
193 am__uniquify_input = $(AWK) '\
194 BEGIN { nonempty = 0; } \
195 { items[$$0] = 1; nonempty = 1; } \
196 END { if (nonempty) { for (i in items) print i; }; } \
197 '
198 # Make sure the list of sources is unique. This is necessary because,
199 # e.g., the same source file might be shared among _SOURCES variables
200 # for different programs/libraries.
201 am__define_uniq_tagged_files = \
202 list='$(am__tagged_files)'; \
203 unique=`for i in $$list; do \
204 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
205 done | $(am__uniquify_input)`
206 ETAGS = etags
207 CTAGS = ctags
208 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
209 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
210 ACLOCAL = @ACLOCAL@
211 ALLOCA = @ALLOCA@
212 AMTAR = @AMTAR@
213 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
214 AR = @AR@
215 AUTOCONF = @AUTOCONF@
216 AUTOHEADER = @AUTOHEADER@
217 AUTOMAKE = @AUTOMAKE@
218 AWK = @AWK@
219 CC = @CC@
220 CCAS = @CCAS@
221 CCASDEPMODE = @CCASDEPMODE@
222 CCASFLAGS = @CCASFLAGS@
223 CCDEPMODE = @CCDEPMODE@
224 CFLAGS = @CFLAGS@
225 CPP = @CPP@
226 CPPFLAGS = @CPPFLAGS@
227 CXX = @CXX@
228 CXXCPP = @CXXCPP@
229 CXXDEPMODE = @CXXDEPMODE@
230 CXXFLAGS = @CXXFLAGS@
231 CYGPATH_W = @CYGPATH_W@
232 DEFS = @DEFS@
233 DEPDIR = @DEPDIR@
234 DLLTOOL = @DLLTOOL@
235 DSYMUTIL = @DSYMUTIL@
236 DUMPBIN = @DUMPBIN@
237 ECHO_C = @ECHO_C@
238 ECHO_N = @ECHO_N@
239 ECHO_T = @ECHO_T@
240 EGREP = @EGREP@
241 EXEEXT = @EXEEXT@
242 FGREP = @FGREP@
243 GREP = @GREP@
244 HAVE_CXX11 = @HAVE_CXX11@
245 INSTALL = @INSTALL@
246 INSTALL_DATA = @INSTALL_DATA@
247 INSTALL_PROGRAM = @INSTALL_PROGRAM@
248 INSTALL_SCRIPT = @INSTALL_SCRIPT@
249 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
250 LD = @LD@
251 LDFLAGS = @LDFLAGS@
252 LIBDE265_AGE = @LIBDE265_AGE@
253 LIBDE265_CURRENT = @LIBDE265_CURRENT@
254 LIBDE265_REVISION = @LIBDE265_REVISION@
255 LIBOBJS = @LIBOBJS@
256 LIBS = @LIBS@
257 LIBTOOL = @LIBTOOL@
258 LIPO = @LIPO@
259 LN_S = @LN_S@
260 LTLIBOBJS = @LTLIBOBJS@
261 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
262 MAKEINFO = @MAKEINFO@
263 MANIFEST_TOOL = @MANIFEST_TOOL@
264 MKDIR_P = @MKDIR_P@
265 NM = @NM@
266 NMEDIT = @NMEDIT@
267 NUMERIC_VERSION = @NUMERIC_VERSION@
268 OBJDUMP = @OBJDUMP@
269 OBJEXT = @OBJEXT@
270 OTOOL = @OTOOL@
271 OTOOL64 = @OTOOL64@
272 PACKAGE = @PACKAGE@
273 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
274 PACKAGE_NAME = @PACKAGE_NAME@
275 PACKAGE_STRING = @PACKAGE_STRING@
276 PACKAGE_TARNAME = @PACKAGE_TARNAME@
277 PACKAGE_URL = @PACKAGE_URL@
278 PACKAGE_VERSION = @PACKAGE_VERSION@
279 PATH_SEPARATOR = @PATH_SEPARATOR@
280 PKG_CONFIG = @PKG_CONFIG@
281 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
282 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
283 QTCHOOSER = @QTCHOOSER@
284 QTMOC = @QTMOC@
285 QT_CFLAGS = @QT_CFLAGS@
286 QT_LIBS = @QT_LIBS@
287 RANLIB = @RANLIB@
288 SDL_CFLAGS = @SDL_CFLAGS@
289 SDL_LIBS = @SDL_LIBS@
290 SED = @SED@
291 SET_MAKE = @SET_MAKE@
292 SHELL = @SHELL@
293 STRIP = @STRIP@
294 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
295 SWSCALE_LIBS = @SWSCALE_LIBS@
296 VERSION = @VERSION@
297 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
298 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
299 abs_builddir = @abs_builddir@
300 abs_srcdir = @abs_srcdir@
301 abs_top_builddir = @abs_top_builddir@
302 abs_top_srcdir = @abs_top_srcdir@
303 ac_ct_AR = @ac_ct_AR@
304 ac_ct_CC = @ac_ct_CC@
305 ac_ct_CXX = @ac_ct_CXX@
306 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
307 am__include = @am__include@
308 am__leading_dot = @am__leading_dot@
309 am__quote = @am__quote@
310 am__tar = @am__tar@
311 am__untar = @am__untar@
312 bindir = @bindir@
313 build = @build@
314 build_alias = @build_alias@
315 build_cpu = @build_cpu@
316 build_os = @build_os@
317 build_vendor = @build_vendor@
318 builddir = @builddir@
319 datadir = @datadir@
320 datarootdir = @datarootdir@
321 docdir = @docdir@
322 dvidir = @dvidir@
323 exec_prefix = @exec_prefix@
324 host = @host@
325 host_alias = @host_alias@
326 host_cpu = @host_cpu@
327 host_os = @host_os@
328 host_vendor = @host_vendor@
329 htmldir = @htmldir@
330 includedir = @includedir@
331 infodir = @infodir@
332 install_sh = @install_sh@
333 libdir = @libdir@
334 libexecdir = @libexecdir@
335 localedir = @localedir@
336 localstatedir = @localstatedir@
337 mandir = @mandir@
338 mkdir_p = @mkdir_p@
339 oldincludedir = @oldincludedir@
340 pdfdir = @pdfdir@
341 prefix = @prefix@
342 program_transform_name = @program_transform_name@
343 psdir = @psdir@
344 runstatedir = @runstatedir@
345 sbindir = @sbindir@
346 sharedstatedir = @sharedstatedir@
347 srcdir = @srcdir@
348 sysconfdir = @sysconfdir@
349 target = @target@
350 target_alias = @target_alias@
351 target_cpu = @target_cpu@
352 target_os = @target_os@
353 target_vendor = @target_vendor@
354 top_build_prefix = @top_build_prefix@
355 top_builddir = @top_builddir@
356 top_srcdir = @top_srcdir@
357 noinst_LTLIBRARIES = libde265_x86.la libde265_x86_sse.la
358 libde265_x86_la_CXXFLAGS = -I$(top_srcdir)/libde265 \
359 $(CFLAG_VISIBILITY) $(am__append_1)
360 libde265_x86_la_SOURCES = sse.cc sse.h
361 libde265_x86_la_LIBADD = libde265_x86_sse.la
362
363 # SSE4 specific functions
364 libde265_x86_sse_la_CXXFLAGS = -msse4.1 -I$(top_srcdir) \
365 -I$(top_srcdir)/libde265 $(CFLAG_VISIBILITY) $(am__append_2)
366 libde265_x86_sse_la_SOURCES = sse-motion.cc sse-motion.h sse-dct.h sse-dct.cc
367 EXTRA_DIST = \
368 CMakeLists.txt
369
370 all: all-am
371
372 .SUFFIXES:
373 .SUFFIXES: .cc .lo .o .obj
374 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
375 @for dep in $?; do \
376 case '$(am__configure_deps)' in \
377 *$$dep*) \
378 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
379 && { if test -f $@; then exit 0; else break; fi; }; \
380 exit 1;; \
381 esac; \
382 done; \
383 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu libde265/x86/Makefile'; \
384 $(am__cd) $(top_srcdir) && \
385 $(AUTOMAKE) --gnu libde265/x86/Makefile
386 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
387 @case '$?' in \
388 *config.status*) \
389 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
390 *) \
391 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
392 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
393 esac;
394
395 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
396 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
397
398 $(top_srcdir)/configure: $(am__configure_deps)
399 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
400 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
401 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
402 $(am__aclocal_m4_deps):
403
404 clean-noinstLTLIBRARIES:
405 -test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
406 @list='$(noinst_LTLIBRARIES)'; \
407 locs=`for p in $$list; do echo $$p; done | \
408 sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
409 sort -u`; \
410 test -z "$$locs" || { \
411 echo rm -f $${locs}; \
412 rm -f $${locs}; \
413 }
414
415 libde265_x86.la: $(libde265_x86_la_OBJECTS) $(libde265_x86_la_DEPENDENCIES) $(EXTRA_libde265_x86_la_DEPENDENCIES)
416 $(AM_V_CXXLD)$(libde265_x86_la_LINK) $(libde265_x86_la_OBJECTS) $(libde265_x86_la_LIBADD) $(LIBS)
417
418 libde265_x86_sse.la: $(libde265_x86_sse_la_OBJECTS) $(libde265_x86_sse_la_DEPENDENCIES) $(EXTRA_libde265_x86_sse_la_DEPENDENCIES)
419 $(AM_V_CXXLD)$(libde265_x86_sse_la_LINK) $(libde265_x86_sse_la_OBJECTS) $(libde265_x86_sse_la_LIBADD) $(LIBS)
420
421 mostlyclean-compile:
422 -rm -f *.$(OBJEXT)
423
424 distclean-compile:
425 -rm -f *.tab.c
426
427 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_x86_la-sse.Plo@am__quote@
428 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_x86_sse_la-sse-dct.Plo@am__quote@
429 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libde265_x86_sse_la-sse-motion.Plo@am__quote@
430
431 .cc.o:
432 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
433 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
434 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
435 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
436 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
437
438 .cc.obj:
439 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
440 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
441 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
442 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
443 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
444
445 .cc.lo:
446 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
447 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
448 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
449 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
450 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
451
452 libde265_x86_la-sse.lo: sse.cc
453 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_x86_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_x86_la-sse.lo -MD -MP -MF $(DEPDIR)/libde265_x86_la-sse.Tpo -c -o libde265_x86_la-sse.lo `test -f 'sse.cc' || echo '$(srcdir)/'`sse.cc
454 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_x86_la-sse.Tpo $(DEPDIR)/libde265_x86_la-sse.Plo
455 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sse.cc' object='libde265_x86_la-sse.lo' libtool=yes @AMDEPBACKSLASH@
456 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
457 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_x86_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_x86_la-sse.lo `test -f 'sse.cc' || echo '$(srcdir)/'`sse.cc
458
459 libde265_x86_sse_la-sse-motion.lo: sse-motion.cc
460 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_x86_sse_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_x86_sse_la-sse-motion.lo -MD -MP -MF $(DEPDIR)/libde265_x86_sse_la-sse-motion.Tpo -c -o libde265_x86_sse_la-sse-motion.lo `test -f 'sse-motion.cc' || echo '$(srcdir)/'`sse-motion.cc
461 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_x86_sse_la-sse-motion.Tpo $(DEPDIR)/libde265_x86_sse_la-sse-motion.Plo
462 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sse-motion.cc' object='libde265_x86_sse_la-sse-motion.lo' libtool=yes @AMDEPBACKSLASH@
463 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
464 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_x86_sse_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_x86_sse_la-sse-motion.lo `test -f 'sse-motion.cc' || echo '$(srcdir)/'`sse-motion.cc
465
466 libde265_x86_sse_la-sse-dct.lo: sse-dct.cc
467 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_x86_sse_la_CXXFLAGS) $(CXXFLAGS) -MT libde265_x86_sse_la-sse-dct.lo -MD -MP -MF $(DEPDIR)/libde265_x86_sse_la-sse-dct.Tpo -c -o libde265_x86_sse_la-sse-dct.lo `test -f 'sse-dct.cc' || echo '$(srcdir)/'`sse-dct.cc
468 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libde265_x86_sse_la-sse-dct.Tpo $(DEPDIR)/libde265_x86_sse_la-sse-dct.Plo
469 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sse-dct.cc' object='libde265_x86_sse_la-sse-dct.lo' libtool=yes @AMDEPBACKSLASH@
470 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
471 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libde265_x86_sse_la_CXXFLAGS) $(CXXFLAGS) -c -o libde265_x86_sse_la-sse-dct.lo `test -f 'sse-dct.cc' || echo '$(srcdir)/'`sse-dct.cc
472
473 mostlyclean-libtool:
474 -rm -f *.lo
475
476 clean-libtool:
477 -rm -rf .libs _libs
478
479 ID: $(am__tagged_files)
480 $(am__define_uniq_tagged_files); mkid -fID $$unique
481 tags: tags-am
482 TAGS: tags
483
484 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
485 set x; \
486 here=`pwd`; \
487 $(am__define_uniq_tagged_files); \
488 shift; \
489 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
490 test -n "$$unique" || unique=$$empty_fix; \
491 if test $$# -gt 0; then \
492 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
493 "$$@" $$unique; \
494 else \
495 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
496 $$unique; \
497 fi; \
498 fi
499 ctags: ctags-am
500
501 CTAGS: ctags
502 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
503 $(am__define_uniq_tagged_files); \
504 test -z "$(CTAGS_ARGS)$$unique" \
505 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
506 $$unique
507
508 GTAGS:
509 here=`$(am__cd) $(top_builddir) && pwd` \
510 && $(am__cd) $(top_srcdir) \
511 && gtags -i $(GTAGS_ARGS) "$$here"
512 cscopelist: cscopelist-am
513
514 cscopelist-am: $(am__tagged_files)
515 list='$(am__tagged_files)'; \
516 case "$(srcdir)" in \
517 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
518 *) sdir=$(subdir)/$(srcdir) ;; \
519 esac; \
520 for i in $$list; do \
521 if test -f "$$i"; then \
522 echo "$(subdir)/$$i"; \
523 else \
524 echo "$$sdir/$$i"; \
525 fi; \
526 done >> $(top_builddir)/cscope.files
527
528 distclean-tags:
529 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
530
531 distdir: $(DISTFILES)
532 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
533 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
534 list='$(DISTFILES)'; \
535 dist_files=`for file in $$list; do echo $$file; done | \
536 sed -e "s|^$$srcdirstrip/||;t" \
537 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
538 case $$dist_files in \
539 */*) $(MKDIR_P) `echo "$$dist_files" | \
540 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
541 sort -u` ;; \
542 esac; \
543 for file in $$dist_files; do \
544 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
545 if test -d $$d/$$file; then \
546 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
547 if test -d "$(distdir)/$$file"; then \
548 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
549 fi; \
550 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
551 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
552 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
553 fi; \
554 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
555 else \
556 test -f "$(distdir)/$$file" \
557 || cp -p $$d/$$file "$(distdir)/$$file" \
558 || exit 1; \
559 fi; \
560 done
561 check-am: all-am
562 check: check-am
563 all-am: Makefile $(LTLIBRARIES)
564 installdirs:
565 install: install-am
566 install-exec: install-exec-am
567 install-data: install-data-am
568 uninstall: uninstall-am
569
570 install-am: all-am
571 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
572
573 installcheck: installcheck-am
574 install-strip:
575 if test -z '$(STRIP)'; then \
576 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
577 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
578 install; \
579 else \
580 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
581 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
582 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
583 fi
584 mostlyclean-generic:
585
586 clean-generic:
587
588 distclean-generic:
589 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
590 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
591
592 maintainer-clean-generic:
593 @echo "This command is intended for maintainers to use"
594 @echo "it deletes files that may require special tools to rebuild."
595 clean: clean-am
596
597 clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
598 mostlyclean-am
599
600 distclean: distclean-am
601 -rm -rf ./$(DEPDIR)
602 -rm -f Makefile
603 distclean-am: clean-am distclean-compile distclean-generic \
604 distclean-tags
605
606 dvi: dvi-am
607
608 dvi-am:
609
610 html: html-am
611
612 html-am:
613
614 info: info-am
615
616 info-am:
617
618 install-data-am:
619
620 install-dvi: install-dvi-am
621
622 install-dvi-am:
623
624 install-exec-am:
625
626 install-html: install-html-am
627
628 install-html-am:
629
630 install-info: install-info-am
631
632 install-info-am:
633
634 install-man:
635
636 install-pdf: install-pdf-am
637
638 install-pdf-am:
639
640 install-ps: install-ps-am
641
642 install-ps-am:
643
644 installcheck-am:
645
646 maintainer-clean: maintainer-clean-am
647 -rm -rf ./$(DEPDIR)
648 -rm -f Makefile
649 maintainer-clean-am: distclean-am maintainer-clean-generic
650
651 mostlyclean: mostlyclean-am
652
653 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
654 mostlyclean-libtool
655
656 pdf: pdf-am
657
658 pdf-am:
659
660 ps: ps-am
661
662 ps-am:
663
664 uninstall-am:
665
666 .MAKE: install-am install-strip
667
668 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
669 clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
670 ctags-am distclean distclean-compile distclean-generic \
671 distclean-libtool distclean-tags distdir dvi dvi-am html \
672 html-am info info-am install install-am install-data \
673 install-data-am install-dvi install-dvi-am install-exec \
674 install-exec-am install-html install-html-am install-info \
675 install-info-am install-man install-pdf install-pdf-am \
676 install-ps install-ps-am install-strip installcheck \
677 installcheck-am installdirs maintainer-clean \
678 maintainer-clean-generic mostlyclean mostlyclean-compile \
679 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
680 tags tags-am uninstall uninstall-am
681
682 .PRECIOUS: Makefile
683
684
685 # Tell versions [3.59,3.63) of GNU make to not export all variables.
686 # Otherwise a system limit (for SysV at least) may be exceeded.
687 .NOEXPORT:
+0
-11156
ltmain.sh less more
0 #! /bin/sh
1 ## DO NOT EDIT - This file generated from ./build-aux/ltmain.in
2 ## by inline-source v2014-01-03.01
3
4 # libtool (GNU libtool) 2.4.6
5 # Provide generalized library-building support services.
6 # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
7
8 # Copyright (C) 1996-2015 Free Software Foundation, Inc.
9 # This is free software; see the source for copying conditions. There is NO
10 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11
12 # GNU Libtool 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 # As a special exception to the GNU General Public License,
18 # if you distribute this file as part of a program or library that
19 # is built using GNU Libtool, you may include this file under the
20 # same distribution terms that you use for the rest of that program.
21 #
22 # GNU Libtool is distributed in the hope that it will be useful, but
23 # WITHOUT ANY WARRANTY; without even the implied warranty of
24 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 # General Public License for more details.
26 #
27 # You should have received a copy of the GNU General Public License
28 # along with this program. If not, see <http://www.gnu.org/licenses/>.
29
30
31 PROGRAM=libtool
32 PACKAGE=libtool
33 VERSION="2.4.6 Debian-2.4.6-2"
34 package_revision=2.4.6
35
36
37 ## ------ ##
38 ## Usage. ##
39 ## ------ ##
40
41 # Run './libtool --help' for help with using this script from the
42 # command line.
43
44
45 ## ------------------------------- ##
46 ## User overridable command paths. ##
47 ## ------------------------------- ##
48
49 # After configure completes, it has a better idea of some of the
50 # shell tools we need than the defaults used by the functions shared
51 # with bootstrap, so set those here where they can still be over-
52 # ridden by the user, but otherwise take precedence.
53
54 : ${AUTOCONF="autoconf"}
55 : ${AUTOMAKE="automake"}
56
57
58 ## -------------------------- ##
59 ## Source external libraries. ##
60 ## -------------------------- ##
61
62 # Much of our low-level functionality needs to be sourced from external
63 # libraries, which are installed to $pkgauxdir.
64
65 # Set a version string for this script.
66 scriptversion=2015-01-20.17; # UTC
67
68 # General shell script boiler plate, and helper functions.
69 # Written by Gary V. Vaughan, 2004
70
71 # Copyright (C) 2004-2015 Free Software Foundation, Inc.
72 # This is free software; see the source for copying conditions. There is NO
73 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
74
75 # This program is free software; you can redistribute it and/or modify
76 # it under the terms of the GNU General Public License as published by
77 # the Free Software Foundation; either version 3 of the License, or
78 # (at your option) any later version.
79
80 # As a special exception to the GNU General Public License, if you distribute
81 # this file as part of a program or library that is built using GNU Libtool,
82 # you may include this file under the same distribution terms that you use
83 # for the rest of that program.
84
85 # This program is distributed in the hope that it will be useful,
86 # but WITHOUT ANY WARRANTY; without even the implied warranty of
87 # MERCHANTABILITY or FITNES FOR A PARTICULAR PURPOSE. See the GNU
88 # General Public License for more details.
89
90 # You should have received a copy of the GNU General Public License
91 # along with this program. If not, see <http://www.gnu.org/licenses/>.
92
93 # Please report bugs or propose patches to gary@gnu.org.
94
95
96 ## ------ ##
97 ## Usage. ##
98 ## ------ ##
99
100 # Evaluate this file near the top of your script to gain access to
101 # the functions and variables defined here:
102 #
103 # . `echo "$0" | ${SED-sed} 's|[^/]*$||'`/build-aux/funclib.sh
104 #
105 # If you need to override any of the default environment variable
106 # settings, do that before evaluating this file.
107
108
109 ## -------------------- ##
110 ## Shell normalisation. ##
111 ## -------------------- ##
112
113 # Some shells need a little help to be as Bourne compatible as possible.
114 # Before doing anything else, make sure all that help has been provided!
115
116 DUALCASE=1; export DUALCASE # for MKS sh
117 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
118 emulate sh
119 NULLCMD=:
120 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
121 # is contrary to our usage. Disable this feature.
122 alias -g '${1+"$@"}'='"$@"'
123 setopt NO_GLOB_SUBST
124 else
125 case `(set -o) 2>/dev/null` in *posix*) set -o posix ;; esac
126 fi
127
128 # NLS nuisances: We save the old values in case they are required later.
129 _G_user_locale=
130 _G_safe_locale=
131 for _G_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
132 do
133 eval "if test set = \"\${$_G_var+set}\"; then
134 save_$_G_var=\$$_G_var
135 $_G_var=C
136 export $_G_var
137 _G_user_locale=\"$_G_var=\\\$save_\$_G_var; \$_G_user_locale\"
138 _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\"
139 fi"
140 done
141
142 # CDPATH.
143 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
144
145 # Make sure IFS has a sensible default
146 sp=' '
147 nl='
148 '
149 IFS="$sp $nl"
150
151 # There are apparently some retarded systems that use ';' as a PATH separator!
152 if test "${PATH_SEPARATOR+set}" != set; then
153 PATH_SEPARATOR=:
154 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
155 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
156 PATH_SEPARATOR=';'
157 }
158 fi
159
160
161
162 ## ------------------------- ##
163 ## Locate command utilities. ##
164 ## ------------------------- ##
165
166
167 # func_executable_p FILE
168 # ----------------------
169 # Check that FILE is an executable regular file.
170 func_executable_p ()
171 {
172 test -f "$1" && test -x "$1"
173 }
174
175
176 # func_path_progs PROGS_LIST CHECK_FUNC [PATH]
177 # --------------------------------------------
178 # Search for either a program that responds to --version with output
179 # containing "GNU", or else returned by CHECK_FUNC otherwise, by
180 # trying all the directories in PATH with each of the elements of
181 # PROGS_LIST.
182 #
183 # CHECK_FUNC should accept the path to a candidate program, and
184 # set $func_check_prog_result if it truncates its output less than
185 # $_G_path_prog_max characters.
186 func_path_progs ()
187 {
188 _G_progs_list=$1
189 _G_check_func=$2
190 _G_PATH=${3-"$PATH"}
191
192 _G_path_prog_max=0
193 _G_path_prog_found=false
194 _G_save_IFS=$IFS; IFS=${PATH_SEPARATOR-:}
195 for _G_dir in $_G_PATH; do
196 IFS=$_G_save_IFS
197 test -z "$_G_dir" && _G_dir=.
198 for _G_prog_name in $_G_progs_list; do
199 for _exeext in '' .EXE; do
200 _G_path_prog=$_G_dir/$_G_prog_name$_exeext
201 func_executable_p "$_G_path_prog" || continue
202 case `"$_G_path_prog" --version 2>&1` in
203 *GNU*) func_path_progs_result=$_G_path_prog _G_path_prog_found=: ;;
204 *) $_G_check_func $_G_path_prog
205 func_path_progs_result=$func_check_prog_result
206 ;;
207 esac
208 $_G_path_prog_found && break 3
209 done
210 done
211 done
212 IFS=$_G_save_IFS
213 test -z "$func_path_progs_result" && {
214 echo "no acceptable sed could be found in \$PATH" >&2
215 exit 1
216 }
217 }
218
219
220 # We want to be able to use the functions in this file before configure
221 # has figured out where the best binaries are kept, which means we have
222 # to search for them ourselves - except when the results are already set
223 # where we skip the searches.
224
225 # Unless the user overrides by setting SED, search the path for either GNU
226 # sed, or the sed that truncates its output the least.
227 test -z "$SED" && {
228 _G_sed_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
229 for _G_i in 1 2 3 4 5 6 7; do
230 _G_sed_script=$_G_sed_script$nl$_G_sed_script
231 done
232 echo "$_G_sed_script" 2>/dev/null | sed 99q >conftest.sed
233 _G_sed_script=
234
235 func_check_prog_sed ()
236 {
237 _G_path_prog=$1
238
239 _G_count=0
240 printf 0123456789 >conftest.in
241 while :
242 do
243 cat conftest.in conftest.in >conftest.tmp
244 mv conftest.tmp conftest.in
245 cp conftest.in conftest.nl
246 echo '' >> conftest.nl
247 "$_G_path_prog" -f conftest.sed <conftest.nl >conftest.out 2>/dev/null || break
248 diff conftest.out conftest.nl >/dev/null 2>&1 || break
249 _G_count=`expr $_G_count + 1`
250 if test "$_G_count" -gt "$_G_path_prog_max"; then
251 # Best one so far, save it but keep looking for a better one
252 func_check_prog_result=$_G_path_prog
253 _G_path_prog_max=$_G_count
254 fi
255 # 10*(2^10) chars as input seems more than enough
256 test 10 -lt "$_G_count" && break
257 done
258 rm -f conftest.in conftest.tmp conftest.nl conftest.out
259 }
260
261 func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin
262 rm -f conftest.sed
263 SED=$func_path_progs_result
264 }
265
266
267 # Unless the user overrides by setting GREP, search the path for either GNU
268 # grep, or the grep that truncates its output the least.
269 test -z "$GREP" && {
270 func_check_prog_grep ()
271 {
272 _G_path_prog=$1
273
274 _G_count=0
275 _G_path_prog_max=0
276 printf 0123456789 >conftest.in
277 while :
278 do
279 cat conftest.in conftest.in >conftest.tmp
280 mv conftest.tmp conftest.in
281 cp conftest.in conftest.nl
282 echo 'GREP' >> conftest.nl
283 "$_G_path_prog" -e 'GREP$' -e '-(cannot match)-' <conftest.nl >conftest.out 2>/dev/null || break
284 diff conftest.out conftest.nl >/dev/null 2>&1 || break
285 _G_count=`expr $_G_count + 1`
286 if test "$_G_count" -gt "$_G_path_prog_max"; then
287 # Best one so far, save it but keep looking for a better one
288 func_check_prog_result=$_G_path_prog
289 _G_path_prog_max=$_G_count
290 fi
291 # 10*(2^10) chars as input seems more than enough
292 test 10 -lt "$_G_count" && break
293 done
294 rm -f conftest.in conftest.tmp conftest.nl conftest.out
295 }
296
297 func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin
298 GREP=$func_path_progs_result
299 }
300
301
302 ## ------------------------------- ##
303 ## User overridable command paths. ##
304 ## ------------------------------- ##
305
306 # All uppercase variable names are used for environment variables. These
307 # variables can be overridden by the user before calling a script that
308 # uses them if a suitable command of that name is not already available
309 # in the command search PATH.
310
311 : ${CP="cp -f"}
312 : ${ECHO="printf %s\n"}
313 : ${EGREP="$GREP -E"}
314 : ${FGREP="$GREP -F"}
315 : ${LN_S="ln -s"}
316 : ${MAKE="make"}
317 : ${MKDIR="mkdir"}
318 : ${MV="mv -f"}
319 : ${RM="rm -f"}
320 : ${SHELL="${CONFIG_SHELL-/bin/sh}"}
321
322
323 ## -------------------- ##
324 ## Useful sed snippets. ##
325 ## -------------------- ##
326
327 sed_dirname='s|/[^/]*$||'
328 sed_basename='s|^.*/||'
329
330 # Sed substitution that helps us do robust quoting. It backslashifies
331 # metacharacters that are still active within double-quoted strings.
332 sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
333
334 # Same as above, but do not quote variable references.
335 sed_double_quote_subst='s/\(["`\\]\)/\\\1/g'
336
337 # Sed substitution that turns a string into a regex matching for the
338 # string literally.
339 sed_make_literal_regex='s|[].[^$\\*\/]|\\&|g'
340
341 # Sed substitution that converts a w32 file name or path
342 # that contains forward slashes, into one that contains
343 # (escaped) backslashes. A very naive implementation.
344 sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
345
346 # Re-'\' parameter expansions in output of sed_double_quote_subst that
347 # were '\'-ed in input to the same. If an odd number of '\' preceded a
348 # '$' in input to sed_double_quote_subst, that '$' was protected from
349 # expansion. Since each input '\' is now two '\'s, look for any number
350 # of runs of four '\'s followed by two '\'s and then a '$'. '\' that '$'.
351 _G_bs='\\'
352 _G_bs2='\\\\'
353 _G_bs4='\\\\\\\\'
354 _G_dollar='\$'
355 sed_double_backslash="\
356 s/$_G_bs4/&\\
357 /g
358 s/^$_G_bs2$_G_dollar/$_G_bs&/
359 s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g
360 s/\n//g"
361
362
363 ## ----------------- ##
364 ## Global variables. ##
365 ## ----------------- ##
366
367 # Except for the global variables explicitly listed below, the following
368 # functions in the '^func_' namespace, and the '^require_' namespace
369 # variables initialised in the 'Resource management' section, sourcing
370 # this file will not pollute your global namespace with anything
371 # else. There's no portable way to scope variables in Bourne shell
372 # though, so actually running these functions will sometimes place
373 # results into a variable named after the function, and often use
374 # temporary variables in the '^_G_' namespace. If you are careful to
375 # avoid using those namespaces casually in your sourcing script, things
376 # should continue to work as you expect. And, of course, you can freely
377 # overwrite any of the functions or variables defined here before
378 # calling anything to customize them.
379
380 EXIT_SUCCESS=0
381 EXIT_FAILURE=1
382 EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
383 EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
384
385 # Allow overriding, eg assuming that you follow the convention of
386 # putting '$debug_cmd' at the start of all your functions, you can get
387 # bash to show function call trace with:
388 #
389 # debug_cmd='eval echo "${FUNCNAME[0]} $*" >&2' bash your-script-name
390 debug_cmd=${debug_cmd-":"}
391 exit_cmd=:
392
393 # By convention, finish your script with:
394 #
395 # exit $exit_status
396 #
397 # so that you can set exit_status to non-zero if you want to indicate
398 # something went wrong during execution without actually bailing out at
399 # the point of failure.
400 exit_status=$EXIT_SUCCESS
401
402 # Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
403 # is ksh but when the shell is invoked as "sh" and the current value of
404 # the _XPG environment variable is not equal to 1 (one), the special
405 # positional parameter $0, within a function call, is the name of the
406 # function.
407 progpath=$0
408
409 # The name of this program.
410 progname=`$ECHO "$progpath" |$SED "$sed_basename"`
411
412 # Make sure we have an absolute progpath for reexecution:
413 case $progpath in
414 [\\/]*|[A-Za-z]:\\*) ;;
415 *[\\/]*)
416 progdir=`$ECHO "$progpath" |$SED "$sed_dirname"`
417 progdir=`cd "$progdir" && pwd`
418 progpath=$progdir/$progname
419 ;;
420 *)
421 _G_IFS=$IFS
422 IFS=${PATH_SEPARATOR-:}
423 for progdir in $PATH; do
424 IFS=$_G_IFS
425 test -x "$progdir/$progname" && break
426 done
427 IFS=$_G_IFS
428 test -n "$progdir" || progdir=`pwd`
429 progpath=$progdir/$progname
430 ;;
431 esac
432
433
434 ## ----------------- ##
435 ## Standard options. ##
436 ## ----------------- ##
437
438 # The following options affect the operation of the functions defined
439 # below, and should be set appropriately depending on run-time para-
440 # meters passed on the command line.
441
442 opt_dry_run=false
443 opt_quiet=false
444 opt_verbose=false
445
446 # Categories 'all' and 'none' are always available. Append any others
447 # you will pass as the first argument to func_warning from your own
448 # code.
449 warning_categories=
450
451 # By default, display warnings according to 'opt_warning_types'. Set
452 # 'warning_func' to ':' to elide all warnings, or func_fatal_error to
453 # treat the next displayed warning as a fatal error.
454 warning_func=func_warn_and_continue
455
456 # Set to 'all' to display all warnings, 'none' to suppress all
457 # warnings, or a space delimited list of some subset of
458 # 'warning_categories' to display only the listed warnings.
459 opt_warning_types=all
460
461
462 ## -------------------- ##
463 ## Resource management. ##
464 ## -------------------- ##
465
466 # This section contains definitions for functions that each ensure a
467 # particular resource (a file, or a non-empty configuration variable for
468 # example) is available, and if appropriate to extract default values
469 # from pertinent package files. Call them using their associated
470 # 'require_*' variable to ensure that they are executed, at most, once.
471 #
472 # It's entirely deliberate that calling these functions can set
473 # variables that don't obey the namespace limitations obeyed by the rest
474 # of this file, in order that that they be as useful as possible to
475 # callers.
476
477
478 # require_term_colors
479 # -------------------
480 # Allow display of bold text on terminals that support it.
481 require_term_colors=func_require_term_colors
482 func_require_term_colors ()
483 {
484 $debug_cmd
485
486 test -t 1 && {
487 # COLORTERM and USE_ANSI_COLORS environment variables take
488 # precedence, because most terminfo databases neglect to describe
489 # whether color sequences are supported.
490 test -n "${COLORTERM+set}" && : ${USE_ANSI_COLORS="1"}
491
492 if test 1 = "$USE_ANSI_COLORS"; then
493 # Standard ANSI escape sequences
494 tc_reset=''
495 tc_bold=''; tc_standout=''
496 tc_red=''; tc_green=''
497 tc_blue=''; tc_cyan=''
498 else
499 # Otherwise trust the terminfo database after all.
500 test -n "`tput sgr0 2>/dev/null`" && {
501 tc_reset=`tput sgr0`
502 test -n "`tput bold 2>/dev/null`" && tc_bold=`tput bold`
503 tc_standout=$tc_bold
504 test -n "`tput smso 2>/dev/null`" && tc_standout=`tput smso`
505 test -n "`tput setaf 1 2>/dev/null`" && tc_red=`tput setaf 1`
506 test -n "`tput setaf 2 2>/dev/null`" && tc_green=`tput setaf 2`
507 test -n "`tput setaf 4 2>/dev/null`" && tc_blue=`tput setaf 4`
508 test -n "`tput setaf 5 2>/dev/null`" && tc_cyan=`tput setaf 5`
509 }
510 fi
511 }
512
513 require_term_colors=:
514 }
515
516
517 ## ----------------- ##
518 ## Function library. ##
519 ## ----------------- ##
520
521 # This section contains a variety of useful functions to call in your
522 # scripts. Take note of the portable wrappers for features provided by
523 # some modern shells, which will fall back to slower equivalents on
524 # less featureful shells.
525
526
527 # func_append VAR VALUE
528 # ---------------------
529 # Append VALUE onto the existing contents of VAR.
530
531 # We should try to minimise forks, especially on Windows where they are
532 # unreasonably slow, so skip the feature probes when bash or zsh are
533 # being used:
534 if test set = "${BASH_VERSION+set}${ZSH_VERSION+set}"; then
535 : ${_G_HAVE_ARITH_OP="yes"}
536 : ${_G_HAVE_XSI_OPS="yes"}
537 # The += operator was introduced in bash 3.1
538 case $BASH_VERSION in
539 [12].* | 3.0 | 3.0*) ;;
540 *)
541 : ${_G_HAVE_PLUSEQ_OP="yes"}
542 ;;
543 esac
544 fi
545
546 # _G_HAVE_PLUSEQ_OP
547 # Can be empty, in which case the shell is probed, "yes" if += is
548 # useable or anything else if it does not work.
549 test -z "$_G_HAVE_PLUSEQ_OP" \
550 && (eval 'x=a; x+=" b"; test "a b" = "$x"') 2>/dev/null \
551 && _G_HAVE_PLUSEQ_OP=yes
552
553 if test yes = "$_G_HAVE_PLUSEQ_OP"
554 then
555 # This is an XSI compatible shell, allowing a faster implementation...
556 eval 'func_append ()
557 {
558 $debug_cmd
559
560 eval "$1+=\$2"
561 }'
562 else
563 # ...otherwise fall back to using expr, which is often a shell builtin.
564 func_append ()
565 {
566 $debug_cmd
567
568 eval "$1=\$$1\$2"
569 }
570 fi
571
572
573 # func_append_quoted VAR VALUE
574 # ----------------------------
575 # Quote VALUE and append to the end of shell variable VAR, separated
576 # by a space.
577 if test yes = "$_G_HAVE_PLUSEQ_OP"; then
578 eval 'func_append_quoted ()
579 {
580 $debug_cmd
581
582 func_quote_for_eval "$2"
583 eval "$1+=\\ \$func_quote_for_eval_result"
584 }'
585 else
586 func_append_quoted ()
587 {
588 $debug_cmd
589
590 func_quote_for_eval "$2"
591 eval "$1=\$$1\\ \$func_quote_for_eval_result"
592 }
593 fi
594
595
596 # func_append_uniq VAR VALUE
597 # --------------------------
598 # Append unique VALUE onto the existing contents of VAR, assuming
599 # entries are delimited by the first character of VALUE. For example:
600 #
601 # func_append_uniq options " --another-option option-argument"
602 #
603 # will only append to $options if " --another-option option-argument "
604 # is not already present somewhere in $options already (note spaces at
605 # each end implied by leading space in second argument).
606 func_append_uniq ()
607 {
608 $debug_cmd
609
610 eval _G_current_value='`$ECHO $'$1'`'
611 _G_delim=`expr "$2" : '\(.\)'`
612
613 case $_G_delim$_G_current_value$_G_delim in
614 *"$2$_G_delim"*) ;;
615 *) func_append "$@" ;;
616 esac
617 }
618
619
620 # func_arith TERM...
621 # ------------------
622 # Set func_arith_result to the result of evaluating TERMs.
623 test -z "$_G_HAVE_ARITH_OP" \
624 && (eval 'test 2 = $(( 1 + 1 ))') 2>/dev/null \
625 && _G_HAVE_ARITH_OP=yes
626
627 if test yes = "$_G_HAVE_ARITH_OP"; then
628 eval 'func_arith ()
629 {
630 $debug_cmd
631
632 func_arith_result=$(( $* ))
633 }'
634 else
635 func_arith ()
636 {
637 $debug_cmd
638
639 func_arith_result=`expr "$@"`
640 }
641 fi
642
643
644 # func_basename FILE
645 # ------------------
646 # Set func_basename_result to FILE with everything up to and including
647 # the last / stripped.
648 if test yes = "$_G_HAVE_XSI_OPS"; then
649 # If this shell supports suffix pattern removal, then use it to avoid
650 # forking. Hide the definitions single quotes in case the shell chokes
651 # on unsupported syntax...
652 _b='func_basename_result=${1##*/}'
653 _d='case $1 in
654 */*) func_dirname_result=${1%/*}$2 ;;
655 * ) func_dirname_result=$3 ;;
656 esac'
657
658 else
659 # ...otherwise fall back to using sed.
660 _b='func_basename_result=`$ECHO "$1" |$SED "$sed_basename"`'
661 _d='func_dirname_result=`$ECHO "$1" |$SED "$sed_dirname"`
662 if test "X$func_dirname_result" = "X$1"; then
663 func_dirname_result=$3
664 else
665 func_append func_dirname_result "$2"
666 fi'
667 fi
668
669 eval 'func_basename ()
670 {
671 $debug_cmd
672
673 '"$_b"'
674 }'
675
676
677 # func_dirname FILE APPEND NONDIR_REPLACEMENT
678 # -------------------------------------------
679 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
680 # otherwise set result to NONDIR_REPLACEMENT.
681 eval 'func_dirname ()
682 {
683 $debug_cmd
684
685 '"$_d"'
686 }'
687
688
689 # func_dirname_and_basename FILE APPEND NONDIR_REPLACEMENT
690 # --------------------------------------------------------
691 # Perform func_basename and func_dirname in a single function
692 # call:
693 # dirname: Compute the dirname of FILE. If nonempty,
694 # add APPEND to the result, otherwise set result
695 # to NONDIR_REPLACEMENT.
696 # value returned in "$func_dirname_result"
697 # basename: Compute filename of FILE.
698 # value retuned in "$func_basename_result"
699 # For efficiency, we do not delegate to the functions above but instead
700 # duplicate the functionality here.
701 eval 'func_dirname_and_basename ()
702 {
703 $debug_cmd
704
705 '"$_b"'
706 '"$_d"'
707 }'
708
709
710 # func_echo ARG...
711 # ----------------
712 # Echo program name prefixed message.
713 func_echo ()
714 {
715 $debug_cmd
716
717 _G_message=$*
718
719 func_echo_IFS=$IFS
720 IFS=$nl
721 for _G_line in $_G_message; do
722 IFS=$func_echo_IFS
723 $ECHO "$progname: $_G_line"
724 done
725 IFS=$func_echo_IFS
726 }
727
728
729 # func_echo_all ARG...
730 # --------------------
731 # Invoke $ECHO with all args, space-separated.
732 func_echo_all ()
733 {
734 $ECHO "$*"
735 }
736
737
738 # func_echo_infix_1 INFIX ARG...
739 # ------------------------------
740 # Echo program name, followed by INFIX on the first line, with any
741 # additional lines not showing INFIX.
742 func_echo_infix_1 ()
743 {
744 $debug_cmd
745
746 $require_term_colors
747
748 _G_infix=$1; shift
749 _G_indent=$_G_infix
750 _G_prefix="$progname: $_G_infix: "
751 _G_message=$*
752
753 # Strip color escape sequences before counting printable length
754 for _G_tc in "$tc_reset" "$tc_bold" "$tc_standout" "$tc_red" "$tc_green" "$tc_blue" "$tc_cyan"
755 do
756 test -n "$_G_tc" && {
757 _G_esc_tc=`$ECHO "$_G_tc" | $SED "$sed_make_literal_regex"`
758 _G_indent=`$ECHO "$_G_indent" | $SED "s|$_G_esc_tc||g"`
759 }
760 done
761 _G_indent="$progname: "`echo "$_G_indent" | $SED 's|.| |g'`" " ## exclude from sc_prohibit_nested_quotes
762
763 func_echo_infix_1_IFS=$IFS
764 IFS=$nl
765 for _G_line in $_G_message; do
766 IFS=$func_echo_infix_1_IFS
767 $ECHO "$_G_prefix$tc_bold$_G_line$tc_reset" >&2
768 _G_prefix=$_G_indent
769 done
770 IFS=$func_echo_infix_1_IFS
771 }
772
773
774 # func_error ARG...
775 # -----------------
776 # Echo program name prefixed message to standard error.
777 func_error ()
778 {
779 $debug_cmd
780
781 $require_term_colors
782
783 func_echo_infix_1 " $tc_standout${tc_red}error$tc_reset" "$*" >&2
784 }
785
786
787 # func_fatal_error ARG...
788 # -----------------------
789 # Echo program name prefixed message to standard error, and exit.
790 func_fatal_error ()
791 {
792 $debug_cmd
793
794 func_error "$*"
795 exit $EXIT_FAILURE
796 }
797
798
799 # func_grep EXPRESSION FILENAME
800 # -----------------------------
801 # Check whether EXPRESSION matches any line of FILENAME, without output.
802 func_grep ()
803 {
804 $debug_cmd
805
806 $GREP "$1" "$2" >/dev/null 2>&1
807 }
808
809
810 # func_len STRING
811 # ---------------
812 # Set func_len_result to the length of STRING. STRING may not
813 # start with a hyphen.
814 test -z "$_G_HAVE_XSI_OPS" \
815 && (eval 'x=a/b/c;
816 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
817 && _G_HAVE_XSI_OPS=yes
818
819 if test yes = "$_G_HAVE_XSI_OPS"; then
820 eval 'func_len ()
821 {
822 $debug_cmd
823
824 func_len_result=${#1}
825 }'
826 else
827 func_len ()
828 {
829 $debug_cmd
830
831 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
832 }
833 fi
834
835
836 # func_mkdir_p DIRECTORY-PATH
837 # ---------------------------
838 # Make sure the entire path to DIRECTORY-PATH is available.
839 func_mkdir_p ()
840 {
841 $debug_cmd
842
843 _G_directory_path=$1
844 _G_dir_list=
845
846 if test -n "$_G_directory_path" && test : != "$opt_dry_run"; then
847
848 # Protect directory names starting with '-'
849 case $_G_directory_path in
850 -*) _G_directory_path=./$_G_directory_path ;;
851 esac
852
853 # While some portion of DIR does not yet exist...
854 while test ! -d "$_G_directory_path"; do
855 # ...make a list in topmost first order. Use a colon delimited
856 # list incase some portion of path contains whitespace.
857 _G_dir_list=$_G_directory_path:$_G_dir_list
858
859 # If the last portion added has no slash in it, the list is done
860 case $_G_directory_path in */*) ;; *) break ;; esac
861
862 # ...otherwise throw away the child directory and loop
863 _G_directory_path=`$ECHO "$_G_directory_path" | $SED -e "$sed_dirname"`
864 done
865 _G_dir_list=`$ECHO "$_G_dir_list" | $SED 's|:*$||'`
866
867 func_mkdir_p_IFS=$IFS; IFS=:
868 for _G_dir in $_G_dir_list; do
869 IFS=$func_mkdir_p_IFS
870 # mkdir can fail with a 'File exist' error if two processes
871 # try to create one of the directories concurrently. Don't
872 # stop in that case!
873 $MKDIR "$_G_dir" 2>/dev/null || :
874 done
875 IFS=$func_mkdir_p_IFS
876
877 # Bail out if we (or some other process) failed to create a directory.
878 test -d "$_G_directory_path" || \
879 func_fatal_error "Failed to create '$1'"
880 fi
881 }
882
883
884 # func_mktempdir [BASENAME]
885 # -------------------------
886 # Make a temporary directory that won't clash with other running
887 # libtool processes, and avoids race conditions if possible. If
888 # given, BASENAME is the basename for that directory.
889 func_mktempdir ()
890 {
891 $debug_cmd
892
893 _G_template=${TMPDIR-/tmp}/${1-$progname}
894
895 if test : = "$opt_dry_run"; then
896 # Return a directory name, but don't create it in dry-run mode
897 _G_tmpdir=$_G_template-$$
898 else
899
900 # If mktemp works, use that first and foremost
901 _G_tmpdir=`mktemp -d "$_G_template-XXXXXXXX" 2>/dev/null`
902
903 if test ! -d "$_G_tmpdir"; then
904 # Failing that, at least try and use $RANDOM to avoid a race
905 _G_tmpdir=$_G_template-${RANDOM-0}$$
906
907 func_mktempdir_umask=`umask`
908 umask 0077
909 $MKDIR "$_G_tmpdir"
910 umask $func_mktempdir_umask
911 fi
912
913 # If we're not in dry-run mode, bomb out on failure
914 test -d "$_G_tmpdir" || \
915 func_fatal_error "cannot create temporary directory '$_G_tmpdir'"
916 fi
917
918 $ECHO "$_G_tmpdir"
919 }
920
921
922 # func_normal_abspath PATH
923 # ------------------------
924 # Remove doubled-up and trailing slashes, "." path components,
925 # and cancel out any ".." path components in PATH after making
926 # it an absolute path.
927 func_normal_abspath ()
928 {
929 $debug_cmd
930
931 # These SED scripts presuppose an absolute path with a trailing slash.
932 _G_pathcar='s|^/\([^/]*\).*$|\1|'
933 _G_pathcdr='s|^/[^/]*||'
934 _G_removedotparts=':dotsl
935 s|/\./|/|g
936 t dotsl
937 s|/\.$|/|'
938 _G_collapseslashes='s|/\{1,\}|/|g'
939 _G_finalslash='s|/*$|/|'
940
941 # Start from root dir and reassemble the path.
942 func_normal_abspath_result=
943 func_normal_abspath_tpath=$1
944 func_normal_abspath_altnamespace=
945 case $func_normal_abspath_tpath in
946 "")
947 # Empty path, that just means $cwd.
948 func_stripname '' '/' "`pwd`"
949 func_normal_abspath_result=$func_stripname_result
950 return
951 ;;
952 # The next three entries are used to spot a run of precisely
953 # two leading slashes without using negated character classes;
954 # we take advantage of case's first-match behaviour.
955 ///*)
956 # Unusual form of absolute path, do nothing.
957 ;;
958 //*)
959 # Not necessarily an ordinary path; POSIX reserves leading '//'
960 # and for example Cygwin uses it to access remote file shares
961 # over CIFS/SMB, so we conserve a leading double slash if found.
962 func_normal_abspath_altnamespace=/
963 ;;
964 /*)
965 # Absolute path, do nothing.
966 ;;
967 *)
968 # Relative path, prepend $cwd.
969 func_normal_abspath_tpath=`pwd`/$func_normal_abspath_tpath
970 ;;
971 esac
972
973 # Cancel out all the simple stuff to save iterations. We also want
974 # the path to end with a slash for ease of parsing, so make sure
975 # there is one (and only one) here.
976 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
977 -e "$_G_removedotparts" -e "$_G_collapseslashes" -e "$_G_finalslash"`
978 while :; do
979 # Processed it all yet?
980 if test / = "$func_normal_abspath_tpath"; then
981 # If we ascended to the root using ".." the result may be empty now.
982 if test -z "$func_normal_abspath_result"; then
983 func_normal_abspath_result=/
984 fi
985 break
986 fi
987 func_normal_abspath_tcomponent=`$ECHO "$func_normal_abspath_tpath" | $SED \
988 -e "$_G_pathcar"`
989 func_normal_abspath_tpath=`$ECHO "$func_normal_abspath_tpath" | $SED \
990 -e "$_G_pathcdr"`
991 # Figure out what to do with it
992 case $func_normal_abspath_tcomponent in
993 "")
994 # Trailing empty path component, ignore it.
995 ;;
996 ..)
997 # Parent dir; strip last assembled component from result.
998 func_dirname "$func_normal_abspath_result"
999 func_normal_abspath_result=$func_dirname_result
1000 ;;
1001 *)
1002 # Actual path component, append it.
1003 func_append func_normal_abspath_result "/$func_normal_abspath_tcomponent"
1004 ;;
1005 esac
1006 done
1007 # Restore leading double-slash if one was found on entry.
1008 func_normal_abspath_result=$func_normal_abspath_altnamespace$func_normal_abspath_result
1009 }
1010
1011
1012 # func_notquiet ARG...
1013 # --------------------
1014 # Echo program name prefixed message only when not in quiet mode.
1015 func_notquiet ()
1016 {
1017 $debug_cmd
1018
1019 $opt_quiet || func_echo ${1+"$@"}
1020
1021 # A bug in bash halts the script if the last line of a function
1022 # fails when set -e is in force, so we need another command to
1023 # work around that:
1024 :
1025 }
1026
1027
1028 # func_relative_path SRCDIR DSTDIR
1029 # --------------------------------
1030 # Set func_relative_path_result to the relative path from SRCDIR to DSTDIR.
1031 func_relative_path ()
1032 {
1033 $debug_cmd
1034
1035 func_relative_path_result=
1036 func_normal_abspath "$1"
1037 func_relative_path_tlibdir=$func_normal_abspath_result
1038 func_normal_abspath "$2"
1039 func_relative_path_tbindir=$func_normal_abspath_result
1040
1041 # Ascend the tree starting from libdir
1042 while :; do
1043 # check if we have found a prefix of bindir
1044 case $func_relative_path_tbindir in
1045 $func_relative_path_tlibdir)
1046 # found an exact match
1047 func_relative_path_tcancelled=
1048 break
1049 ;;
1050 $func_relative_path_tlibdir*)
1051 # found a matching prefix
1052 func_stripname "$func_relative_path_tlibdir" '' "$func_relative_path_tbindir"
1053 func_relative_path_tcancelled=$func_stripname_result
1054 if test -z "$func_relative_path_result"; then
1055 func_relative_path_result=.
1056 fi
1057 break
1058 ;;
1059 *)
1060 func_dirname $func_relative_path_tlibdir
1061 func_relative_path_tlibdir=$func_dirname_result
1062 if test -z "$func_relative_path_tlibdir"; then
1063 # Have to descend all the way to the root!
1064 func_relative_path_result=../$func_relative_path_result
1065 func_relative_path_tcancelled=$func_relative_path_tbindir
1066 break
1067 fi
1068 func_relative_path_result=../$func_relative_path_result
1069 ;;
1070 esac
1071 done
1072
1073 # Now calculate path; take care to avoid doubling-up slashes.
1074 func_stripname '' '/' "$func_relative_path_result"
1075 func_relative_path_result=$func_stripname_result
1076 func_stripname '/' '/' "$func_relative_path_tcancelled"
1077 if test -n "$func_stripname_result"; then
1078 func_append func_relative_path_result "/$func_stripname_result"
1079 fi
1080
1081 # Normalisation. If bindir is libdir, return '.' else relative path.
1082 if test -n "$func_relative_path_result"; then
1083 func_stripname './' '' "$func_relative_path_result"
1084 func_relative_path_result=$func_stripname_result
1085 fi
1086
1087 test -n "$func_relative_path_result" || func_relative_path_result=.
1088
1089 :
1090 }
1091
1092
1093 # func_quote_for_eval ARG...
1094 # --------------------------
1095 # Aesthetically quote ARGs to be evaled later.
1096 # This function returns two values:
1097 # i) func_quote_for_eval_result
1098 # double-quoted, suitable for a subsequent eval
1099 # ii) func_quote_for_eval_unquoted_result
1100 # has all characters that are still active within double
1101 # quotes backslashified.
1102 func_quote_for_eval ()
1103 {
1104 $debug_cmd
1105
1106 func_quote_for_eval_unquoted_result=
1107 func_quote_for_eval_result=
1108 while test 0 -lt $#; do
1109 case $1 in
1110 *[\\\`\"\$]*)
1111 _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;;
1112 *)
1113 _G_unquoted_arg=$1 ;;
1114 esac
1115 if test -n "$func_quote_for_eval_unquoted_result"; then
1116 func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg"
1117 else
1118 func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg"
1119 fi
1120
1121 case $_G_unquoted_arg in
1122 # Double-quote args containing shell metacharacters to delay
1123 # word splitting, command substitution and variable expansion
1124 # for a subsequent eval.
1125 # Many Bourne shells cannot handle close brackets correctly
1126 # in scan sets, so we specify it separately.
1127 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1128 _G_quoted_arg=\"$_G_unquoted_arg\"
1129 ;;
1130 *)
1131 _G_quoted_arg=$_G_unquoted_arg
1132 ;;
1133 esac
1134
1135 if test -n "$func_quote_for_eval_result"; then
1136 func_append func_quote_for_eval_result " $_G_quoted_arg"
1137 else
1138 func_append func_quote_for_eval_result "$_G_quoted_arg"
1139 fi
1140 shift
1141 done
1142 }
1143
1144
1145 # func_quote_for_expand ARG
1146 # -------------------------
1147 # Aesthetically quote ARG to be evaled later; same as above,
1148 # but do not quote variable references.
1149 func_quote_for_expand ()
1150 {
1151 $debug_cmd
1152
1153 case $1 in
1154 *[\\\`\"]*)
1155 _G_arg=`$ECHO "$1" | $SED \
1156 -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;;
1157 *)
1158 _G_arg=$1 ;;
1159 esac
1160
1161 case $_G_arg in
1162 # Double-quote args containing shell metacharacters to delay
1163 # word splitting and command substitution for a subsequent eval.
1164 # Many Bourne shells cannot handle close brackets correctly
1165 # in scan sets, so we specify it separately.
1166 *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
1167 _G_arg=\"$_G_arg\"
1168 ;;
1169 esac
1170
1171 func_quote_for_expand_result=$_G_arg
1172 }
1173
1174
1175 # func_stripname PREFIX SUFFIX NAME
1176 # ---------------------------------
1177 # strip PREFIX and SUFFIX from NAME, and store in func_stripname_result.
1178 # PREFIX and SUFFIX must not contain globbing or regex special
1179 # characters, hashes, percent signs, but SUFFIX may contain a leading
1180 # dot (in which case that matches only a dot).
1181 if test yes = "$_G_HAVE_XSI_OPS"; then
1182 eval 'func_stripname ()
1183 {
1184 $debug_cmd
1185
1186 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
1187 # positional parameters, so assign one to ordinary variable first.
1188 func_stripname_result=$3
1189 func_stripname_result=${func_stripname_result#"$1"}
1190 func_stripname_result=${func_stripname_result%"$2"}
1191 }'
1192 else
1193 func_stripname ()
1194 {
1195 $debug_cmd
1196
1197 case $2 in
1198 .*) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%\\\\$2\$%%"`;;
1199 *) func_stripname_result=`$ECHO "$3" | $SED -e "s%^$1%%" -e "s%$2\$%%"`;;
1200 esac
1201 }
1202 fi
1203
1204
1205 # func_show_eval CMD [FAIL_EXP]
1206 # -----------------------------
1207 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
1208 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1209 # is given, then evaluate it.
1210 func_show_eval ()
1211 {
1212 $debug_cmd
1213
1214 _G_cmd=$1
1215 _G_fail_exp=${2-':'}
1216
1217 func_quote_for_expand "$_G_cmd"
1218 eval "func_notquiet $func_quote_for_expand_result"
1219
1220 $opt_dry_run || {
1221 eval "$_G_cmd"
1222 _G_status=$?
1223 if test 0 -ne "$_G_status"; then
1224 eval "(exit $_G_status); $_G_fail_exp"
1225 fi
1226 }
1227 }
1228
1229
1230 # func_show_eval_locale CMD [FAIL_EXP]
1231 # ------------------------------------
1232 # Unless opt_quiet is true, then output CMD. Then, if opt_dryrun is
1233 # not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
1234 # is given, then evaluate it. Use the saved locale for evaluation.
1235 func_show_eval_locale ()
1236 {
1237 $debug_cmd
1238
1239 _G_cmd=$1
1240 _G_fail_exp=${2-':'}
1241
1242 $opt_quiet || {
1243 func_quote_for_expand "$_G_cmd"
1244 eval "func_echo $func_quote_for_expand_result"
1245 }
1246
1247 $opt_dry_run || {
1248 eval "$_G_user_locale
1249 $_G_cmd"
1250 _G_status=$?
1251 eval "$_G_safe_locale"
1252 if test 0 -ne "$_G_status"; then
1253 eval "(exit $_G_status); $_G_fail_exp"
1254 fi
1255 }
1256 }
1257
1258
1259 # func_tr_sh
1260 # ----------
1261 # Turn $1 into a string suitable for a shell variable name.
1262 # Result is stored in $func_tr_sh_result. All characters
1263 # not in the set a-zA-Z0-9_ are replaced with '_'. Further,
1264 # if $1 begins with a digit, a '_' is prepended as well.
1265 func_tr_sh ()
1266 {
1267 $debug_cmd
1268
1269 case $1 in
1270 [0-9]* | *[!a-zA-Z0-9_]*)
1271 func_tr_sh_result=`$ECHO "$1" | $SED -e 's/^\([0-9]\)/_\1/' -e 's/[^a-zA-Z0-9_]/_/g'`
1272 ;;
1273 * )
1274 func_tr_sh_result=$1
1275 ;;
1276 esac
1277 }
1278
1279
1280 # func_verbose ARG...
1281 # -------------------
1282 # Echo program name prefixed message in verbose mode only.
1283 func_verbose ()
1284 {
1285 $debug_cmd
1286
1287 $opt_verbose && func_echo "$*"
1288
1289 :
1290 }
1291
1292
1293 # func_warn_and_continue ARG...
1294 # -----------------------------
1295 # Echo program name prefixed warning message to standard error.
1296 func_warn_and_continue ()
1297 {
1298 $debug_cmd
1299
1300 $require_term_colors
1301
1302 func_echo_infix_1 "${tc_red}warning$tc_reset" "$*" >&2
1303 }
1304
1305
1306 # func_warning CATEGORY ARG...
1307 # ----------------------------
1308 # Echo program name prefixed warning message to standard error. Warning
1309 # messages can be filtered according to CATEGORY, where this function
1310 # elides messages where CATEGORY is not listed in the global variable
1311 # 'opt_warning_types'.
1312 func_warning ()
1313 {
1314 $debug_cmd
1315
1316 # CATEGORY must be in the warning_categories list!
1317 case " $warning_categories " in
1318 *" $1 "*) ;;
1319 *) func_internal_error "invalid warning category '$1'" ;;
1320 esac
1321
1322 _G_category=$1
1323 shift
1324
1325 case " $opt_warning_types " in
1326 *" $_G_category "*) $warning_func ${1+"$@"} ;;
1327 esac
1328 }
1329
1330
1331 # func_sort_ver VER1 VER2
1332 # -----------------------
1333 # 'sort -V' is not generally available.
1334 # Note this deviates from the version comparison in automake
1335 # in that it treats 1.5 < 1.5.0, and treats 1.4.4a < 1.4-p3a
1336 # but this should suffice as we won't be specifying old
1337 # version formats or redundant trailing .0 in bootstrap.conf.
1338 # If we did want full compatibility then we should probably
1339 # use m4_version_compare from autoconf.
1340 func_sort_ver ()
1341 {
1342 $debug_cmd
1343
1344 printf '%s\n%s\n' "$1" "$2" \
1345 | sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n -k 5,5n -k 6,6n -k 7,7n -k 8,8n -k 9,9n
1346 }
1347
1348 # func_lt_ver PREV CURR
1349 # ---------------------
1350 # Return true if PREV and CURR are in the correct order according to
1351 # func_sort_ver, otherwise false. Use it like this:
1352 #
1353 # func_lt_ver "$prev_ver" "$proposed_ver" || func_fatal_error "..."
1354 func_lt_ver ()
1355 {
1356 $debug_cmd
1357
1358 test "x$1" = x`func_sort_ver "$1" "$2" | $SED 1q`
1359 }
1360
1361
1362 # Local variables:
1363 # mode: shell-script
1364 # sh-indentation: 2
1365 # eval: (add-hook 'before-save-hook 'time-stamp)
1366 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1367 # time-stamp-time-zone: "UTC"
1368 # End:
1369 #! /bin/sh
1370
1371 # Set a version string for this script.
1372 scriptversion=2014-01-07.03; # UTC
1373
1374 # A portable, pluggable option parser for Bourne shell.
1375 # Written by Gary V. Vaughan, 2010
1376
1377 # Copyright (C) 2010-2015 Free Software Foundation, Inc.
1378 # This is free software; see the source for copying conditions. There is NO
1379 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
1380
1381 # This program is free software: you can redistribute it and/or modify
1382 # it under the terms of the GNU General Public License as published by
1383 # the Free Software Foundation, either version 3 of the License, or
1384 # (at your option) any later version.
1385
1386 # This program is distributed in the hope that it will be useful,
1387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
1388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1389 # GNU General Public License for more details.
1390
1391 # You should have received a copy of the GNU General Public License
1392 # along with this program. If not, see <http://www.gnu.org/licenses/>.
1393
1394 # Please report bugs or propose patches to gary@gnu.org.
1395
1396
1397 ## ------ ##
1398 ## Usage. ##
1399 ## ------ ##
1400
1401 # This file is a library for parsing options in your shell scripts along
1402 # with assorted other useful supporting features that you can make use
1403 # of too.
1404 #
1405 # For the simplest scripts you might need only:
1406 #
1407 # #!/bin/sh
1408 # . relative/path/to/funclib.sh
1409 # . relative/path/to/options-parser
1410 # scriptversion=1.0
1411 # func_options ${1+"$@"}
1412 # eval set dummy "$func_options_result"; shift
1413 # ...rest of your script...
1414 #
1415 # In order for the '--version' option to work, you will need to have a
1416 # suitably formatted comment like the one at the top of this file
1417 # starting with '# Written by ' and ending with '# warranty; '.
1418 #
1419 # For '-h' and '--help' to work, you will also need a one line
1420 # description of your script's purpose in a comment directly above the
1421 # '# Written by ' line, like the one at the top of this file.
1422 #
1423 # The default options also support '--debug', which will turn on shell
1424 # execution tracing (see the comment above debug_cmd below for another
1425 # use), and '--verbose' and the func_verbose function to allow your script
1426 # to display verbose messages only when your user has specified
1427 # '--verbose'.
1428 #
1429 # After sourcing this file, you can plug processing for additional
1430 # options by amending the variables from the 'Configuration' section
1431 # below, and following the instructions in the 'Option parsing'
1432 # section further down.
1433
1434 ## -------------- ##
1435 ## Configuration. ##
1436 ## -------------- ##
1437
1438 # You should override these variables in your script after sourcing this
1439 # file so that they reflect the customisations you have added to the
1440 # option parser.
1441
1442 # The usage line for option parsing errors and the start of '-h' and
1443 # '--help' output messages. You can embed shell variables for delayed
1444 # expansion at the time the message is displayed, but you will need to
1445 # quote other shell meta-characters carefully to prevent them being
1446 # expanded when the contents are evaled.
1447 usage='$progpath [OPTION]...'
1448
1449 # Short help message in response to '-h' and '--help'. Add to this or
1450 # override it after sourcing this library to reflect the full set of
1451 # options your script accepts.
1452 usage_message="\
1453 --debug enable verbose shell tracing
1454 -W, --warnings=CATEGORY
1455 report the warnings falling in CATEGORY [all]
1456 -v, --verbose verbosely report processing
1457 --version print version information and exit
1458 -h, --help print short or long help message and exit
1459 "
1460
1461 # Additional text appended to 'usage_message' in response to '--help'.
1462 long_help_message="
1463 Warning categories include:
1464 'all' show all warnings
1465 'none' turn off all the warnings
1466 'error' warnings are treated as fatal errors"
1467
1468 # Help message printed before fatal option parsing errors.
1469 fatal_help="Try '\$progname --help' for more information."
1470
1471
1472
1473 ## ------------------------- ##
1474 ## Hook function management. ##
1475 ## ------------------------- ##
1476
1477 # This section contains functions for adding, removing, and running hooks
1478 # to the main code. A hook is just a named list of of function, that can
1479 # be run in order later on.
1480
1481 # func_hookable FUNC_NAME
1482 # -----------------------
1483 # Declare that FUNC_NAME will run hooks added with
1484 # 'func_add_hook FUNC_NAME ...'.
1485 func_hookable ()
1486 {
1487 $debug_cmd
1488
1489 func_append hookable_fns " $1"
1490 }
1491
1492
1493 # func_add_hook FUNC_NAME HOOK_FUNC
1494 # ---------------------------------
1495 # Request that FUNC_NAME call HOOK_FUNC before it returns. FUNC_NAME must
1496 # first have been declared "hookable" by a call to 'func_hookable'.
1497 func_add_hook ()
1498 {
1499 $debug_cmd
1500
1501 case " $hookable_fns " in
1502 *" $1 "*) ;;
1503 *) func_fatal_error "'$1' does not accept hook functions." ;;
1504 esac
1505
1506 eval func_append ${1}_hooks '" $2"'
1507 }
1508
1509
1510 # func_remove_hook FUNC_NAME HOOK_FUNC
1511 # ------------------------------------
1512 # Remove HOOK_FUNC from the list of functions called by FUNC_NAME.
1513 func_remove_hook ()
1514 {
1515 $debug_cmd
1516
1517 eval ${1}_hooks='`$ECHO "\$'$1'_hooks" |$SED "s| '$2'||"`'
1518 }
1519
1520
1521 # func_run_hooks FUNC_NAME [ARG]...
1522 # ---------------------------------
1523 # Run all hook functions registered to FUNC_NAME.
1524 # It is assumed that the list of hook functions contains nothing more
1525 # than a whitespace-delimited list of legal shell function names, and
1526 # no effort is wasted trying to catch shell meta-characters or preserve
1527 # whitespace.
1528 func_run_hooks ()
1529 {
1530 $debug_cmd
1531
1532 case " $hookable_fns " in
1533 *" $1 "*) ;;
1534 *) func_fatal_error "'$1' does not support hook funcions.n" ;;
1535 esac
1536
1537 eval _G_hook_fns=\$$1_hooks; shift
1538
1539 for _G_hook in $_G_hook_fns; do
1540 eval $_G_hook '"$@"'
1541
1542 # store returned options list back into positional
1543 # parameters for next 'cmd' execution.
1544 eval _G_hook_result=\$${_G_hook}_result
1545 eval set dummy "$_G_hook_result"; shift
1546 done
1547
1548 func_quote_for_eval ${1+"$@"}
1549 func_run_hooks_result=$func_quote_for_eval_result
1550 }
1551
1552
1553
1554 ## --------------- ##
1555 ## Option parsing. ##
1556 ## --------------- ##
1557
1558 # In order to add your own option parsing hooks, you must accept the
1559 # full positional parameter list in your hook function, remove any
1560 # options that you action, and then pass back the remaining unprocessed
1561 # options in '<hooked_function_name>_result', escaped suitably for
1562 # 'eval'. Like this:
1563 #
1564 # my_options_prep ()
1565 # {
1566 # $debug_cmd
1567 #
1568 # # Extend the existing usage message.
1569 # usage_message=$usage_message'
1570 # -s, --silent don'\''t print informational messages
1571 # '
1572 #
1573 # func_quote_for_eval ${1+"$@"}
1574 # my_options_prep_result=$func_quote_for_eval_result
1575 # }
1576 # func_add_hook func_options_prep my_options_prep
1577 #
1578 #
1579 # my_silent_option ()
1580 # {
1581 # $debug_cmd
1582 #
1583 # # Note that for efficiency, we parse as many options as we can
1584 # # recognise in a loop before passing the remainder back to the
1585 # # caller on the first unrecognised argument we encounter.
1586 # while test $# -gt 0; do
1587 # opt=$1; shift
1588 # case $opt in
1589 # --silent|-s) opt_silent=: ;;
1590 # # Separate non-argument short options:
1591 # -s*) func_split_short_opt "$_G_opt"
1592 # set dummy "$func_split_short_opt_name" \
1593 # "-$func_split_short_opt_arg" ${1+"$@"}
1594 # shift
1595 # ;;
1596 # *) set dummy "$_G_opt" "$*"; shift; break ;;
1597 # esac
1598 # done
1599 #
1600 # func_quote_for_eval ${1+"$@"}
1601 # my_silent_option_result=$func_quote_for_eval_result
1602 # }
1603 # func_add_hook func_parse_options my_silent_option
1604 #
1605 #
1606 # my_option_validation ()
1607 # {
1608 # $debug_cmd
1609 #
1610 # $opt_silent && $opt_verbose && func_fatal_help "\
1611 # '--silent' and '--verbose' options are mutually exclusive."
1612 #
1613 # func_quote_for_eval ${1+"$@"}
1614 # my_option_validation_result=$func_quote_for_eval_result
1615 # }
1616 # func_add_hook func_validate_options my_option_validation
1617 #
1618 # You'll alse need to manually amend $usage_message to reflect the extra
1619 # options you parse. It's preferable to append if you can, so that
1620 # multiple option parsing hooks can be added safely.
1621
1622
1623 # func_options [ARG]...
1624 # ---------------------
1625 # All the functions called inside func_options are hookable. See the
1626 # individual implementations for details.
1627 func_hookable func_options
1628 func_options ()
1629 {
1630 $debug_cmd
1631
1632 func_options_prep ${1+"$@"}
1633 eval func_parse_options \
1634 ${func_options_prep_result+"$func_options_prep_result"}
1635 eval func_validate_options \
1636 ${func_parse_options_result+"$func_parse_options_result"}
1637
1638 eval func_run_hooks func_options \
1639 ${func_validate_options_result+"$func_validate_options_result"}
1640
1641 # save modified positional parameters for caller
1642 func_options_result=$func_run_hooks_result
1643 }
1644
1645
1646 # func_options_prep [ARG]...
1647 # --------------------------
1648 # All initialisations required before starting the option parse loop.
1649 # Note that when calling hook functions, we pass through the list of
1650 # positional parameters. If a hook function modifies that list, and
1651 # needs to propogate that back to rest of this script, then the complete
1652 # modified list must be put in 'func_run_hooks_result' before
1653 # returning.
1654 func_hookable func_options_prep
1655 func_options_prep ()
1656 {
1657 $debug_cmd
1658
1659 # Option defaults:
1660 opt_verbose=false
1661 opt_warning_types=
1662
1663 func_run_hooks func_options_prep ${1+"$@"}
1664
1665 # save modified positional parameters for caller
1666 func_options_prep_result=$func_run_hooks_result
1667 }
1668
1669
1670 # func_parse_options [ARG]...
1671 # ---------------------------
1672 # The main option parsing loop.
1673 func_hookable func_parse_options
1674 func_parse_options ()
1675 {
1676 $debug_cmd
1677
1678 func_parse_options_result=
1679
1680 # this just eases exit handling
1681 while test $# -gt 0; do
1682 # Defer to hook functions for initial option parsing, so they
1683 # get priority in the event of reusing an option name.
1684 func_run_hooks func_parse_options ${1+"$@"}
1685
1686 # Adjust func_parse_options positional parameters to match
1687 eval set dummy "$func_run_hooks_result"; shift
1688
1689 # Break out of the loop if we already parsed every option.
1690 test $# -gt 0 || break
1691
1692 _G_opt=$1
1693 shift
1694 case $_G_opt in
1695 --debug|-x) debug_cmd='set -x'
1696 func_echo "enabling shell trace mode"
1697 $debug_cmd
1698 ;;
1699
1700 --no-warnings|--no-warning|--no-warn)
1701 set dummy --warnings none ${1+"$@"}
1702 shift
1703 ;;
1704
1705 --warnings|--warning|-W)
1706 test $# = 0 && func_missing_arg $_G_opt && break
1707 case " $warning_categories $1" in
1708 *" $1 "*)
1709 # trailing space prevents matching last $1 above
1710 func_append_uniq opt_warning_types " $1"
1711 ;;
1712 *all)
1713 opt_warning_types=$warning_categories
1714 ;;
1715 *none)
1716 opt_warning_types=none
1717 warning_func=:
1718 ;;
1719 *error)
1720 opt_warning_types=$warning_categories
1721 warning_func=func_fatal_error
1722 ;;
1723 *)
1724 func_fatal_error \
1725 "unsupported warning category: '$1'"
1726 ;;
1727 esac
1728 shift
1729 ;;
1730
1731 --verbose|-v) opt_verbose=: ;;
1732 --version) func_version ;;
1733 -\?|-h) func_usage ;;
1734 --help) func_help ;;
1735
1736 # Separate optargs to long options (plugins may need this):
1737 --*=*) func_split_equals "$_G_opt"
1738 set dummy "$func_split_equals_lhs" \
1739 "$func_split_equals_rhs" ${1+"$@"}
1740 shift
1741 ;;
1742
1743 # Separate optargs to short options:
1744 -W*)
1745 func_split_short_opt "$_G_opt"
1746 set dummy "$func_split_short_opt_name" \
1747 "$func_split_short_opt_arg" ${1+"$@"}
1748 shift
1749 ;;
1750
1751 # Separate non-argument short options:
1752 -\?*|-h*|-v*|-x*)
1753 func_split_short_opt "$_G_opt"
1754 set dummy "$func_split_short_opt_name" \
1755 "-$func_split_short_opt_arg" ${1+"$@"}
1756 shift
1757 ;;
1758
1759 --) break ;;
1760 -*) func_fatal_help "unrecognised option: '$_G_opt'" ;;
1761 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
1762 esac
1763 done
1764
1765 # save modified positional parameters for caller
1766 func_quote_for_eval ${1+"$@"}
1767 func_parse_options_result=$func_quote_for_eval_result
1768 }
1769
1770
1771 # func_validate_options [ARG]...
1772 # ------------------------------
1773 # Perform any sanity checks on option settings and/or unconsumed
1774 # arguments.
1775 func_hookable func_validate_options
1776 func_validate_options ()
1777 {
1778 $debug_cmd
1779
1780 # Display all warnings if -W was not given.
1781 test -n "$opt_warning_types" || opt_warning_types=" $warning_categories"
1782
1783 func_run_hooks func_validate_options ${1+"$@"}
1784
1785 # Bail if the options were screwed!
1786 $exit_cmd $EXIT_FAILURE
1787
1788 # save modified positional parameters for caller
1789 func_validate_options_result=$func_run_hooks_result
1790 }
1791
1792
1793
1794 ## ----------------- ##
1795 ## Helper functions. ##
1796 ## ----------------- ##
1797
1798 # This section contains the helper functions used by the rest of the
1799 # hookable option parser framework in ascii-betical order.
1800
1801
1802 # func_fatal_help ARG...
1803 # ----------------------
1804 # Echo program name prefixed message to standard error, followed by
1805 # a help hint, and exit.
1806 func_fatal_help ()
1807 {
1808 $debug_cmd
1809
1810 eval \$ECHO \""Usage: $usage"\"
1811 eval \$ECHO \""$fatal_help"\"
1812 func_error ${1+"$@"}
1813 exit $EXIT_FAILURE
1814 }
1815
1816
1817 # func_help
1818 # ---------
1819 # Echo long help message to standard output and exit.
1820 func_help ()
1821 {
1822 $debug_cmd
1823
1824 func_usage_message
1825 $ECHO "$long_help_message"
1826 exit 0
1827 }
1828
1829
1830 # func_missing_arg ARGNAME
1831 # ------------------------
1832 # Echo program name prefixed message to standard error and set global
1833 # exit_cmd.
1834 func_missing_arg ()
1835 {
1836 $debug_cmd
1837
1838 func_error "Missing argument for '$1'."
1839 exit_cmd=exit
1840 }
1841
1842
1843 # func_split_equals STRING
1844 # ------------------------
1845 # Set func_split_equals_lhs and func_split_equals_rhs shell variables after
1846 # splitting STRING at the '=' sign.
1847 test -z "$_G_HAVE_XSI_OPS" \
1848 && (eval 'x=a/b/c;
1849 test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \
1850 && _G_HAVE_XSI_OPS=yes
1851
1852 if test yes = "$_G_HAVE_XSI_OPS"
1853 then
1854 # This is an XSI compatible shell, allowing a faster implementation...
1855 eval 'func_split_equals ()
1856 {
1857 $debug_cmd
1858
1859 func_split_equals_lhs=${1%%=*}
1860 func_split_equals_rhs=${1#*=}
1861 test "x$func_split_equals_lhs" = "x$1" \
1862 && func_split_equals_rhs=
1863 }'
1864 else
1865 # ...otherwise fall back to using expr, which is often a shell builtin.
1866 func_split_equals ()
1867 {
1868 $debug_cmd
1869
1870 func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'`
1871 func_split_equals_rhs=
1872 test "x$func_split_equals_lhs" = "x$1" \
1873 || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'`
1874 }
1875 fi #func_split_equals
1876
1877
1878 # func_split_short_opt SHORTOPT
1879 # -----------------------------
1880 # Set func_split_short_opt_name and func_split_short_opt_arg shell
1881 # variables after splitting SHORTOPT after the 2nd character.
1882 if test yes = "$_G_HAVE_XSI_OPS"
1883 then
1884 # This is an XSI compatible shell, allowing a faster implementation...
1885 eval 'func_split_short_opt ()
1886 {
1887 $debug_cmd
1888
1889 func_split_short_opt_arg=${1#??}
1890 func_split_short_opt_name=${1%"$func_split_short_opt_arg"}
1891 }'
1892 else
1893 # ...otherwise fall back to using expr, which is often a shell builtin.
1894 func_split_short_opt ()
1895 {
1896 $debug_cmd
1897
1898 func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'`
1899 func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'`
1900 }
1901 fi #func_split_short_opt
1902
1903
1904 # func_usage
1905 # ----------
1906 # Echo short help message to standard output and exit.
1907 func_usage ()
1908 {
1909 $debug_cmd
1910
1911 func_usage_message
1912 $ECHO "Run '$progname --help |${PAGER-more}' for full usage"
1913 exit 0
1914 }
1915
1916
1917 # func_usage_message
1918 # ------------------
1919 # Echo short help message to standard output.
1920 func_usage_message ()
1921 {
1922 $debug_cmd
1923
1924 eval \$ECHO \""Usage: $usage"\"
1925 echo
1926 $SED -n 's|^# ||
1927 /^Written by/{
1928 x;p;x
1929 }
1930 h
1931 /^Written by/q' < "$progpath"
1932 echo
1933 eval \$ECHO \""$usage_message"\"
1934 }
1935
1936
1937 # func_version
1938 # ------------
1939 # Echo version message to standard output and exit.
1940 func_version ()
1941 {
1942 $debug_cmd
1943
1944 printf '%s\n' "$progname $scriptversion"
1945 $SED -n '
1946 /(C)/!b go
1947 :more
1948 /\./!{
1949 N
1950 s|\n# | |
1951 b more
1952 }
1953 :go
1954 /^# Written by /,/# warranty; / {
1955 s|^# ||
1956 s|^# *$||
1957 s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2|
1958 p
1959 }
1960 /^# Written by / {
1961 s|^# ||
1962 p
1963 }
1964 /^warranty; /q' < "$progpath"
1965
1966 exit $?
1967 }
1968
1969
1970 # Local variables:
1971 # mode: shell-script
1972 # sh-indentation: 2
1973 # eval: (add-hook 'before-save-hook 'time-stamp)
1974 # time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC"
1975 # time-stamp-time-zone: "UTC"
1976 # End:
1977
1978 # Set a version string.
1979 scriptversion='(GNU libtool) 2.4.6'
1980
1981
1982 # func_echo ARG...
1983 # ----------------
1984 # Libtool also displays the current mode in messages, so override
1985 # funclib.sh func_echo with this custom definition.
1986 func_echo ()
1987 {
1988 $debug_cmd
1989
1990 _G_message=$*
1991
1992 func_echo_IFS=$IFS
1993 IFS=$nl
1994 for _G_line in $_G_message; do
1995 IFS=$func_echo_IFS
1996 $ECHO "$progname${opt_mode+: $opt_mode}: $_G_line"
1997 done
1998 IFS=$func_echo_IFS
1999 }
2000
2001
2002 # func_warning ARG...
2003 # -------------------
2004 # Libtool warnings are not categorized, so override funclib.sh
2005 # func_warning with this simpler definition.
2006 func_warning ()
2007 {
2008 $debug_cmd
2009
2010 $warning_func ${1+"$@"}
2011 }
2012
2013
2014 ## ---------------- ##
2015 ## Options parsing. ##
2016 ## ---------------- ##
2017
2018 # Hook in the functions to make sure our own options are parsed during
2019 # the option parsing loop.
2020
2021 usage='$progpath [OPTION]... [MODE-ARG]...'
2022
2023 # Short help message in response to '-h'.
2024 usage_message="Options:
2025 --config show all configuration variables
2026 --debug enable verbose shell tracing
2027 -n, --dry-run display commands without modifying any files
2028 --features display basic configuration information and exit
2029 --mode=MODE use operation mode MODE
2030 --no-warnings equivalent to '-Wnone'
2031 --preserve-dup-deps don't remove duplicate dependency libraries
2032 --quiet, --silent don't print informational messages
2033 --tag=TAG use configuration variables from tag TAG
2034 -v, --verbose print more informational messages than default
2035 --version print version information
2036 -W, --warnings=CATEGORY report the warnings falling in CATEGORY [all]
2037 -h, --help, --help-all print short, long, or detailed help message
2038 "
2039
2040 # Additional text appended to 'usage_message' in response to '--help'.
2041 func_help ()
2042 {
2043 $debug_cmd
2044
2045 func_usage_message
2046 $ECHO "$long_help_message
2047
2048 MODE must be one of the following:
2049
2050 clean remove files from the build directory
2051 compile compile a source file into a libtool object
2052 execute automatically set library path, then run a program
2053 finish complete the installation of libtool libraries
2054 install install libraries or executables
2055 link create a library or an executable
2056 uninstall remove libraries from an installed directory
2057
2058 MODE-ARGS vary depending on the MODE. When passed as first option,
2059 '--mode=MODE' may be abbreviated as 'MODE' or a unique abbreviation of that.
2060 Try '$progname --help --mode=MODE' for a more detailed description of MODE.
2061
2062 When reporting a bug, please describe a test case to reproduce it and
2063 include the following information:
2064
2065 host-triplet: $host
2066 shell: $SHELL
2067 compiler: $LTCC
2068 compiler flags: $LTCFLAGS
2069 linker: $LD (gnu? $with_gnu_ld)
2070 version: $progname $scriptversion Debian-2.4.6-2
2071 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2072 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
2073
2074 Report bugs to <bug-libtool@gnu.org>.
2075 GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2076 General help using GNU software: <http://www.gnu.org/gethelp/>."
2077 exit 0
2078 }
2079
2080
2081 # func_lo2o OBJECT-NAME
2082 # ---------------------
2083 # Transform OBJECT-NAME from a '.lo' suffix to the platform specific
2084 # object suffix.
2085
2086 lo2o=s/\\.lo\$/.$objext/
2087 o2lo=s/\\.$objext\$/.lo/
2088
2089 if test yes = "$_G_HAVE_XSI_OPS"; then
2090 eval 'func_lo2o ()
2091 {
2092 case $1 in
2093 *.lo) func_lo2o_result=${1%.lo}.$objext ;;
2094 * ) func_lo2o_result=$1 ;;
2095 esac
2096 }'
2097
2098 # func_xform LIBOBJ-OR-SOURCE
2099 # ---------------------------
2100 # Transform LIBOBJ-OR-SOURCE from a '.o' or '.c' (or otherwise)
2101 # suffix to a '.lo' libtool-object suffix.
2102 eval 'func_xform ()
2103 {
2104 func_xform_result=${1%.*}.lo
2105 }'
2106 else
2107 # ...otherwise fall back to using sed.
2108 func_lo2o ()
2109 {
2110 func_lo2o_result=`$ECHO "$1" | $SED "$lo2o"`
2111 }
2112
2113 func_xform ()
2114 {
2115 func_xform_result=`$ECHO "$1" | $SED 's|\.[^.]*$|.lo|'`
2116 }
2117 fi
2118
2119
2120 # func_fatal_configuration ARG...
2121 # -------------------------------
2122 # Echo program name prefixed message to standard error, followed by
2123 # a configuration failure hint, and exit.
2124 func_fatal_configuration ()
2125 {
2126 func__fatal_error ${1+"$@"} \
2127 "See the $PACKAGE documentation for more information." \
2128 "Fatal configuration error."
2129 }
2130
2131
2132 # func_config
2133 # -----------
2134 # Display the configuration for all the tags in this script.
2135 func_config ()
2136 {
2137 re_begincf='^# ### BEGIN LIBTOOL'
2138 re_endcf='^# ### END LIBTOOL'
2139
2140 # Default configuration.
2141 $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
2142
2143 # Now print the configurations for the tags.
2144 for tagname in $taglist; do
2145 $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
2146 done
2147
2148 exit $?
2149 }
2150
2151
2152 # func_features
2153 # -------------
2154 # Display the features supported by this script.
2155 func_features ()
2156 {
2157 echo "host: $host"
2158 if test yes = "$build_libtool_libs"; then
2159 echo "enable shared libraries"
2160 else
2161 echo "disable shared libraries"
2162 fi
2163 if test yes = "$build_old_libs"; then
2164 echo "enable static libraries"
2165 else
2166 echo "disable static libraries"
2167 fi
2168
2169 exit $?
2170 }
2171
2172
2173 # func_enable_tag TAGNAME
2174 # -----------------------
2175 # Verify that TAGNAME is valid, and either flag an error and exit, or
2176 # enable the TAGNAME tag. We also add TAGNAME to the global $taglist
2177 # variable here.
2178 func_enable_tag ()
2179 {
2180 # Global variable:
2181 tagname=$1
2182
2183 re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
2184 re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
2185 sed_extractcf=/$re_begincf/,/$re_endcf/p
2186
2187 # Validate tagname.
2188 case $tagname in
2189 *[!-_A-Za-z0-9,/]*)
2190 func_fatal_error "invalid tag name: $tagname"
2191 ;;
2192 esac
2193
2194 # Don't test for the "default" C tag, as we know it's
2195 # there but not specially marked.
2196 case $tagname in
2197 CC) ;;
2198 *)
2199 if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
2200 taglist="$taglist $tagname"
2201
2202 # Evaluate the configuration. Be careful to quote the path
2203 # and the sed script, to avoid splitting on whitespace, but
2204 # also don't use non-portable quotes within backquotes within
2205 # quotes we have to do it in 2 steps:
2206 extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
2207 eval "$extractedcf"
2208 else
2209 func_error "ignoring unknown tag $tagname"
2210 fi
2211 ;;
2212 esac
2213 }
2214
2215
2216 # func_check_version_match
2217 # ------------------------
2218 # Ensure that we are using m4 macros, and libtool script from the same
2219 # release of libtool.
2220 func_check_version_match ()
2221 {
2222 if test "$package_revision" != "$macro_revision"; then
2223 if test "$VERSION" != "$macro_version"; then
2224 if test -z "$macro_version"; then
2225 cat >&2 <<_LT_EOF
2226 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
2227 $progname: definition of this LT_INIT comes from an older release.
2228 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
2229 $progname: and run autoconf again.
2230 _LT_EOF
2231 else
2232 cat >&2 <<_LT_EOF
2233 $progname: Version mismatch error. This is $PACKAGE $VERSION, but the
2234 $progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
2235 $progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
2236 $progname: and run autoconf again.
2237 _LT_EOF
2238 fi
2239 else
2240 cat >&2 <<_LT_EOF
2241 $progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
2242 $progname: but the definition of this LT_INIT comes from revision $macro_revision.
2243 $progname: You should recreate aclocal.m4 with macros from revision $package_revision
2244 $progname: of $PACKAGE $VERSION and run autoconf again.
2245 _LT_EOF
2246 fi
2247
2248 exit $EXIT_MISMATCH
2249 fi
2250 }
2251
2252
2253 # libtool_options_prep [ARG]...
2254 # -----------------------------
2255 # Preparation for options parsed by libtool.
2256 libtool_options_prep ()
2257 {
2258 $debug_mode
2259
2260 # Option defaults:
2261 opt_config=false
2262 opt_dlopen=
2263 opt_dry_run=false
2264 opt_help=false
2265 opt_mode=
2266 opt_preserve_dup_deps=false
2267 opt_quiet=false
2268
2269 nonopt=
2270 preserve_args=
2271
2272 # Shorthand for --mode=foo, only valid as the first argument
2273 case $1 in
2274 clean|clea|cle|cl)
2275 shift; set dummy --mode clean ${1+"$@"}; shift
2276 ;;
2277 compile|compil|compi|comp|com|co|c)
2278 shift; set dummy --mode compile ${1+"$@"}; shift
2279 ;;
2280 execute|execut|execu|exec|exe|ex|e)
2281 shift; set dummy --mode execute ${1+"$@"}; shift
2282 ;;
2283 finish|finis|fini|fin|fi|f)
2284 shift; set dummy --mode finish ${1+"$@"}; shift
2285 ;;
2286 install|instal|insta|inst|ins|in|i)
2287 shift; set dummy --mode install ${1+"$@"}; shift
2288 ;;
2289 link|lin|li|l)
2290 shift; set dummy --mode link ${1+"$@"}; shift
2291 ;;
2292 uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
2293 shift; set dummy --mode uninstall ${1+"$@"}; shift
2294 ;;
2295 esac
2296
2297 # Pass back the list of options.
2298 func_quote_for_eval ${1+"$@"}
2299 libtool_options_prep_result=$func_quote_for_eval_result
2300 }
2301 func_add_hook func_options_prep libtool_options_prep
2302
2303
2304 # libtool_parse_options [ARG]...
2305 # ---------------------------------
2306 # Provide handling for libtool specific options.
2307 libtool_parse_options ()
2308 {
2309 $debug_cmd
2310
2311 # Perform our own loop to consume as many options as possible in
2312 # each iteration.
2313 while test $# -gt 0; do
2314 _G_opt=$1
2315 shift
2316 case $_G_opt in
2317 --dry-run|--dryrun|-n)
2318 opt_dry_run=:
2319 ;;
2320
2321 --config) func_config ;;
2322
2323 --dlopen|-dlopen)
2324 opt_dlopen="${opt_dlopen+$opt_dlopen
2325 }$1"
2326 shift
2327 ;;
2328
2329 --preserve-dup-deps)
2330 opt_preserve_dup_deps=: ;;
2331
2332 --features) func_features ;;
2333
2334 --finish) set dummy --mode finish ${1+"$@"}; shift ;;
2335
2336 --help) opt_help=: ;;
2337
2338 --help-all) opt_help=': help-all' ;;
2339
2340 --mode) test $# = 0 && func_missing_arg $_G_opt && break
2341 opt_mode=$1
2342 case $1 in
2343 # Valid mode arguments:
2344 clean|compile|execute|finish|install|link|relink|uninstall) ;;
2345
2346 # Catch anything else as an error
2347 *) func_error "invalid argument for $_G_opt"
2348 exit_cmd=exit
2349 break
2350 ;;
2351 esac
2352 shift
2353 ;;
2354
2355 --no-silent|--no-quiet)
2356 opt_quiet=false
2357 func_append preserve_args " $_G_opt"
2358 ;;
2359
2360 --no-warnings|--no-warning|--no-warn)
2361 opt_warning=false
2362 func_append preserve_args " $_G_opt"
2363 ;;
2364
2365 --no-verbose)
2366 opt_verbose=false
2367 func_append preserve_args " $_G_opt"
2368 ;;
2369
2370 --silent|--quiet)
2371 opt_quiet=:
2372 opt_verbose=false
2373 func_append preserve_args " $_G_opt"
2374 ;;
2375
2376 --tag) test $# = 0 && func_missing_arg $_G_opt && break
2377 opt_tag=$1
2378 func_append preserve_args " $_G_opt $1"
2379 func_enable_tag "$1"
2380 shift
2381 ;;
2382
2383 --verbose|-v) opt_quiet=false
2384 opt_verbose=:
2385 func_append preserve_args " $_G_opt"
2386 ;;
2387
2388 # An option not handled by this hook function:
2389 *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;;
2390 esac
2391 done
2392
2393
2394 # save modified positional parameters for caller
2395 func_quote_for_eval ${1+"$@"}
2396 libtool_parse_options_result=$func_quote_for_eval_result
2397 }
2398 func_add_hook func_parse_options libtool_parse_options
2399
2400
2401
2402 # libtool_validate_options [ARG]...
2403 # ---------------------------------
2404 # Perform any sanity checks on option settings and/or unconsumed
2405 # arguments.
2406 libtool_validate_options ()
2407 {
2408 # save first non-option argument
2409 if test 0 -lt $#; then
2410 nonopt=$1
2411 shift
2412 fi
2413
2414 # preserve --debug
2415 test : = "$debug_cmd" || func_append preserve_args " --debug"
2416
2417 case $host in
2418 # Solaris2 added to fix http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16452
2419 # see also: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59788
2420 *cygwin* | *mingw* | *pw32* | *cegcc* | *solaris2* | *os2*)
2421 # don't eliminate duplications in $postdeps and $predeps
2422 opt_duplicate_compiler_generated_deps=:
2423 ;;
2424 *)
2425 opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps
2426 ;;
2427 esac
2428
2429 $opt_help || {
2430 # Sanity checks first:
2431 func_check_version_match
2432
2433 test yes != "$build_libtool_libs" \
2434 && test yes != "$build_old_libs" \
2435 && func_fatal_configuration "not configured to build any kind of library"
2436
2437 # Darwin sucks
2438 eval std_shrext=\"$shrext_cmds\"
2439
2440 # Only execute mode is allowed to have -dlopen flags.
2441 if test -n "$opt_dlopen" && test execute != "$opt_mode"; then
2442 func_error "unrecognized option '-dlopen'"
2443 $ECHO "$help" 1>&2
2444 exit $EXIT_FAILURE
2445 fi
2446
2447 # Change the help message to a mode-specific one.
2448 generic_help=$help
2449 help="Try '$progname --help --mode=$opt_mode' for more information."
2450 }
2451
2452 # Pass back the unparsed argument list
2453 func_quote_for_eval ${1+"$@"}
2454 libtool_validate_options_result=$func_quote_for_eval_result
2455 }
2456 func_add_hook func_validate_options libtool_validate_options
2457
2458
2459 # Process options as early as possible so that --help and --version
2460 # can return quickly.
2461 func_options ${1+"$@"}
2462 eval set dummy "$func_options_result"; shift
2463
2464
2465
2466 ## ----------- ##
2467 ## Main. ##
2468 ## ----------- ##
2469
2470 magic='%%%MAGIC variable%%%'
2471 magic_exe='%%%MAGIC EXE variable%%%'
2472
2473 # Global variables.
2474 extracted_archives=
2475 extracted_serial=0
2476
2477 # If this variable is set in any of the actions, the command in it
2478 # will be execed at the end. This prevents here-documents from being
2479 # left over by shells.
2480 exec_cmd=
2481
2482
2483 # A function that is used when there is no print builtin or printf.
2484 func_fallback_echo ()
2485 {
2486 eval 'cat <<_LTECHO_EOF
2487 $1
2488 _LTECHO_EOF'
2489 }
2490
2491 # func_generated_by_libtool
2492 # True iff stdin has been generated by Libtool. This function is only
2493 # a basic sanity check; it will hardly flush out determined imposters.
2494 func_generated_by_libtool_p ()
2495 {
2496 $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
2497 }
2498
2499 # func_lalib_p file
2500 # True iff FILE is a libtool '.la' library or '.lo' object file.
2501 # This function is only a basic sanity check; it will hardly flush out
2502 # determined imposters.
2503 func_lalib_p ()
2504 {
2505 test -f "$1" &&
2506 $SED -e 4q "$1" 2>/dev/null | func_generated_by_libtool_p
2507 }
2508
2509 # func_lalib_unsafe_p file
2510 # True iff FILE is a libtool '.la' library or '.lo' object file.
2511 # This function implements the same check as func_lalib_p without
2512 # resorting to external programs. To this end, it redirects stdin and
2513 # closes it afterwards, without saving the original file descriptor.
2514 # As a safety measure, use it only where a negative result would be
2515 # fatal anyway. Works if 'file' does not exist.
2516 func_lalib_unsafe_p ()
2517 {
2518 lalib_p=no
2519 if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
2520 for lalib_p_l in 1 2 3 4
2521 do
2522 read lalib_p_line
2523 case $lalib_p_line in
2524 \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
2525 esac
2526 done
2527 exec 0<&5 5<&-
2528 fi
2529 test yes = "$lalib_p"
2530 }
2531
2532 # func_ltwrapper_script_p file
2533 # True iff FILE is a libtool wrapper script
2534 # This function is only a basic sanity check; it will hardly flush out
2535 # determined imposters.
2536 func_ltwrapper_script_p ()
2537 {
2538 test -f "$1" &&
2539 $lt_truncate_bin < "$1" 2>/dev/null | func_generated_by_libtool_p
2540 }
2541
2542 # func_ltwrapper_executable_p file
2543 # True iff FILE is a libtool wrapper executable
2544 # This function is only a basic sanity check; it will hardly flush out
2545 # determined imposters.
2546 func_ltwrapper_executable_p ()
2547 {
2548 func_ltwrapper_exec_suffix=
2549 case $1 in
2550 *.exe) ;;
2551 *) func_ltwrapper_exec_suffix=.exe ;;
2552 esac
2553 $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
2554 }
2555
2556 # func_ltwrapper_scriptname file
2557 # Assumes file is an ltwrapper_executable
2558 # uses $file to determine the appropriate filename for a
2559 # temporary ltwrapper_script.
2560 func_ltwrapper_scriptname ()
2561 {
2562 func_dirname_and_basename "$1" "" "."
2563 func_stripname '' '.exe' "$func_basename_result"
2564 func_ltwrapper_scriptname_result=$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper
2565 }
2566
2567 # func_ltwrapper_p file
2568 # True iff FILE is a libtool wrapper script or wrapper executable
2569 # This function is only a basic sanity check; it will hardly flush out
2570 # determined imposters.
2571 func_ltwrapper_p ()
2572 {
2573 func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
2574 }
2575
2576
2577 # func_execute_cmds commands fail_cmd
2578 # Execute tilde-delimited COMMANDS.
2579 # If FAIL_CMD is given, eval that upon failure.
2580 # FAIL_CMD may read-access the current command in variable CMD!
2581 func_execute_cmds ()
2582 {
2583 $debug_cmd
2584
2585 save_ifs=$IFS; IFS='~'
2586 for cmd in $1; do
2587 IFS=$sp$nl
2588 eval cmd=\"$cmd\"
2589 IFS=$save_ifs
2590 func_show_eval "$cmd" "${2-:}"
2591 done
2592 IFS=$save_ifs
2593 }
2594
2595
2596 # func_source file
2597 # Source FILE, adding directory component if necessary.
2598 # Note that it is not necessary on cygwin/mingw to append a dot to
2599 # FILE even if both FILE and FILE.exe exist: automatic-append-.exe
2600 # behavior happens only for exec(3), not for open(2)! Also, sourcing
2601 # 'FILE.' does not work on cygwin managed mounts.
2602 func_source ()
2603 {
2604 $debug_cmd
2605
2606 case $1 in
2607 */* | *\\*) . "$1" ;;
2608 *) . "./$1" ;;
2609 esac
2610 }
2611
2612
2613 # func_resolve_sysroot PATH
2614 # Replace a leading = in PATH with a sysroot. Store the result into
2615 # func_resolve_sysroot_result
2616 func_resolve_sysroot ()
2617 {
2618 func_resolve_sysroot_result=$1
2619 case $func_resolve_sysroot_result in
2620 =*)
2621 func_stripname '=' '' "$func_resolve_sysroot_result"
2622 func_resolve_sysroot_result=$lt_sysroot$func_stripname_result
2623 ;;
2624 esac
2625 }
2626
2627 # func_replace_sysroot PATH
2628 # If PATH begins with the sysroot, replace it with = and
2629 # store the result into func_replace_sysroot_result.
2630 func_replace_sysroot ()
2631 {
2632 case $lt_sysroot:$1 in
2633 ?*:"$lt_sysroot"*)
2634 func_stripname "$lt_sysroot" '' "$1"
2635 func_replace_sysroot_result='='$func_stripname_result
2636 ;;
2637 *)
2638 # Including no sysroot.
2639 func_replace_sysroot_result=$1
2640 ;;
2641 esac
2642 }
2643
2644 # func_infer_tag arg
2645 # Infer tagged configuration to use if any are available and
2646 # if one wasn't chosen via the "--tag" command line option.
2647 # Only attempt this if the compiler in the base compile
2648 # command doesn't match the default compiler.
2649 # arg is usually of the form 'gcc ...'
2650 func_infer_tag ()
2651 {
2652 $debug_cmd
2653
2654 if test -n "$available_tags" && test -z "$tagname"; then
2655 CC_quoted=
2656 for arg in $CC; do
2657 func_append_quoted CC_quoted "$arg"
2658 done
2659 CC_expanded=`func_echo_all $CC`
2660 CC_quoted_expanded=`func_echo_all $CC_quoted`
2661 case $@ in
2662 # Blanks in the command may have been stripped by the calling shell,
2663 # but not from the CC environment variable when configure was run.
2664 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
2665 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*) ;;
2666 # Blanks at the start of $base_compile will cause this to fail
2667 # if we don't check for them as well.
2668 *)
2669 for z in $available_tags; do
2670 if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
2671 # Evaluate the configuration.
2672 eval "`$SED -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
2673 CC_quoted=
2674 for arg in $CC; do
2675 # Double-quote args containing other shell metacharacters.
2676 func_append_quoted CC_quoted "$arg"
2677 done
2678 CC_expanded=`func_echo_all $CC`
2679 CC_quoted_expanded=`func_echo_all $CC_quoted`
2680 case "$@ " in
2681 " $CC "* | "$CC "* | " $CC_expanded "* | "$CC_expanded "* | \
2682 " $CC_quoted"* | "$CC_quoted "* | " $CC_quoted_expanded "* | "$CC_quoted_expanded "*)
2683 # The compiler in the base compile command matches
2684 # the one in the tagged configuration.
2685 # Assume this is the tagged configuration we want.
2686 tagname=$z
2687 break
2688 ;;
2689 esac
2690 fi
2691 done
2692 # If $tagname still isn't set, then no tagged configuration
2693 # was found and let the user know that the "--tag" command
2694 # line option must be used.
2695 if test -z "$tagname"; then
2696 func_echo "unable to infer tagged configuration"
2697 func_fatal_error "specify a tag with '--tag'"
2698 # else
2699 # func_verbose "using $tagname tagged configuration"
2700 fi
2701 ;;
2702 esac
2703 fi
2704 }
2705
2706
2707
2708 # func_write_libtool_object output_name pic_name nonpic_name
2709 # Create a libtool object file (analogous to a ".la" file),
2710 # but don't create it if we're doing a dry run.
2711 func_write_libtool_object ()
2712 {
2713 write_libobj=$1
2714 if test yes = "$build_libtool_libs"; then
2715 write_lobj=\'$2\'
2716 else
2717 write_lobj=none
2718 fi
2719
2720 if test yes = "$build_old_libs"; then
2721 write_oldobj=\'$3\'
2722 else
2723 write_oldobj=none
2724 fi
2725
2726 $opt_dry_run || {
2727 cat >${write_libobj}T <<EOF
2728 # $write_libobj - a libtool object file
2729 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
2730 #
2731 # Please DO NOT delete this file!
2732 # It is necessary for linking the library.
2733
2734 # Name of the PIC object.
2735 pic_object=$write_lobj
2736
2737 # Name of the non-PIC object
2738 non_pic_object=$write_oldobj
2739
2740 EOF
2741 $MV "${write_libobj}T" "$write_libobj"
2742 }
2743 }
2744
2745
2746 ##################################################
2747 # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS #
2748 ##################################################
2749
2750 # func_convert_core_file_wine_to_w32 ARG
2751 # Helper function used by file name conversion functions when $build is *nix,
2752 # and $host is mingw, cygwin, or some other w32 environment. Relies on a
2753 # correctly configured wine environment available, with the winepath program
2754 # in $build's $PATH.
2755 #
2756 # ARG is the $build file name to be converted to w32 format.
2757 # Result is available in $func_convert_core_file_wine_to_w32_result, and will
2758 # be empty on error (or when ARG is empty)
2759 func_convert_core_file_wine_to_w32 ()
2760 {
2761 $debug_cmd
2762
2763 func_convert_core_file_wine_to_w32_result=$1
2764 if test -n "$1"; then
2765 # Unfortunately, winepath does not exit with a non-zero error code, so we
2766 # are forced to check the contents of stdout. On the other hand, if the
2767 # command is not found, the shell will set an exit code of 127 and print
2768 # *an error message* to stdout. So we must check for both error code of
2769 # zero AND non-empty stdout, which explains the odd construction:
2770 func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null`
2771 if test "$?" -eq 0 && test -n "$func_convert_core_file_wine_to_w32_tmp"; then
2772 func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" |
2773 $SED -e "$sed_naive_backslashify"`
2774 else
2775 func_convert_core_file_wine_to_w32_result=
2776 fi
2777 fi
2778 }
2779 # end: func_convert_core_file_wine_to_w32
2780
2781
2782 # func_convert_core_path_wine_to_w32 ARG
2783 # Helper function used by path conversion functions when $build is *nix, and
2784 # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly
2785 # configured wine environment available, with the winepath program in $build's
2786 # $PATH. Assumes ARG has no leading or trailing path separator characters.
2787 #
2788 # ARG is path to be converted from $build format to win32.
2789 # Result is available in $func_convert_core_path_wine_to_w32_result.
2790 # Unconvertible file (directory) names in ARG are skipped; if no directory names
2791 # are convertible, then the result may be empty.
2792 func_convert_core_path_wine_to_w32 ()
2793 {
2794 $debug_cmd
2795
2796 # unfortunately, winepath doesn't convert paths, only file names
2797 func_convert_core_path_wine_to_w32_result=
2798 if test -n "$1"; then
2799 oldIFS=$IFS
2800 IFS=:
2801 for func_convert_core_path_wine_to_w32_f in $1; do
2802 IFS=$oldIFS
2803 func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f"
2804 if test -n "$func_convert_core_file_wine_to_w32_result"; then
2805 if test -z "$func_convert_core_path_wine_to_w32_result"; then
2806 func_convert_core_path_wine_to_w32_result=$func_convert_core_file_wine_to_w32_result
2807 else
2808 func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result"
2809 fi
2810 fi
2811 done
2812 IFS=$oldIFS
2813 fi
2814 }
2815 # end: func_convert_core_path_wine_to_w32
2816
2817
2818 # func_cygpath ARGS...
2819 # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when
2820 # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2)
2821 # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or
2822 # (2), returns the Cygwin file name or path in func_cygpath_result (input
2823 # file name or path is assumed to be in w32 format, as previously converted
2824 # from $build's *nix or MSYS format). In case (3), returns the w32 file name
2825 # or path in func_cygpath_result (input file name or path is assumed to be in
2826 # Cygwin format). Returns an empty string on error.
2827 #
2828 # ARGS are passed to cygpath, with the last one being the file name or path to
2829 # be converted.
2830 #
2831 # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH
2832 # environment variable; do not put it in $PATH.
2833 func_cygpath ()
2834 {
2835 $debug_cmd
2836
2837 if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then
2838 func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null`
2839 if test "$?" -ne 0; then
2840 # on failure, ensure result is empty
2841 func_cygpath_result=
2842 fi
2843 else
2844 func_cygpath_result=
2845 func_error "LT_CYGPATH is empty or specifies non-existent file: '$LT_CYGPATH'"
2846 fi
2847 }
2848 #end: func_cygpath
2849
2850
2851 # func_convert_core_msys_to_w32 ARG
2852 # Convert file name or path ARG from MSYS format to w32 format. Return
2853 # result in func_convert_core_msys_to_w32_result.
2854 func_convert_core_msys_to_w32 ()
2855 {
2856 $debug_cmd
2857
2858 # awkward: cmd appends spaces to result
2859 func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null |
2860 $SED -e 's/[ ]*$//' -e "$sed_naive_backslashify"`
2861 }
2862 #end: func_convert_core_msys_to_w32
2863
2864
2865 # func_convert_file_check ARG1 ARG2
2866 # Verify that ARG1 (a file name in $build format) was converted to $host
2867 # format in ARG2. Otherwise, emit an error message, but continue (resetting
2868 # func_to_host_file_result to ARG1).
2869 func_convert_file_check ()
2870 {
2871 $debug_cmd
2872
2873 if test -z "$2" && test -n "$1"; then
2874 func_error "Could not determine host file name corresponding to"
2875 func_error " '$1'"
2876 func_error "Continuing, but uninstalled executables may not work."
2877 # Fallback:
2878 func_to_host_file_result=$1
2879 fi
2880 }
2881 # end func_convert_file_check
2882
2883
2884 # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH
2885 # Verify that FROM_PATH (a path in $build format) was converted to $host
2886 # format in TO_PATH. Otherwise, emit an error message, but continue, resetting
2887 # func_to_host_file_result to a simplistic fallback value (see below).
2888 func_convert_path_check ()
2889 {
2890 $debug_cmd
2891
2892 if test -z "$4" && test -n "$3"; then
2893 func_error "Could not determine the host path corresponding to"
2894 func_error " '$3'"
2895 func_error "Continuing, but uninstalled executables may not work."
2896 # Fallback. This is a deliberately simplistic "conversion" and
2897 # should not be "improved". See libtool.info.
2898 if test "x$1" != "x$2"; then
2899 lt_replace_pathsep_chars="s|$1|$2|g"
2900 func_to_host_path_result=`echo "$3" |
2901 $SED -e "$lt_replace_pathsep_chars"`
2902 else
2903 func_to_host_path_result=$3
2904 fi
2905 fi
2906 }
2907 # end func_convert_path_check
2908
2909
2910 # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG
2911 # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT
2912 # and appending REPL if ORIG matches BACKPAT.
2913 func_convert_path_front_back_pathsep ()
2914 {
2915 $debug_cmd
2916
2917 case $4 in
2918 $1 ) func_to_host_path_result=$3$func_to_host_path_result
2919 ;;
2920 esac
2921 case $4 in
2922 $2 ) func_append func_to_host_path_result "$3"
2923 ;;
2924 esac
2925 }
2926 # end func_convert_path_front_back_pathsep
2927
2928
2929 ##################################################
2930 # $build to $host FILE NAME CONVERSION FUNCTIONS #
2931 ##################################################
2932 # invoked via '$to_host_file_cmd ARG'
2933 #
2934 # In each case, ARG is the path to be converted from $build to $host format.
2935 # Result will be available in $func_to_host_file_result.
2936
2937
2938 # func_to_host_file ARG
2939 # Converts the file name ARG from $build format to $host format. Return result
2940 # in func_to_host_file_result.
2941 func_to_host_file ()
2942 {
2943 $debug_cmd
2944
2945 $to_host_file_cmd "$1"
2946 }
2947 # end func_to_host_file
2948
2949
2950 # func_to_tool_file ARG LAZY
2951 # converts the file name ARG from $build format to toolchain format. Return
2952 # result in func_to_tool_file_result. If the conversion in use is listed
2953 # in (the comma separated) LAZY, no conversion takes place.
2954 func_to_tool_file ()
2955 {
2956 $debug_cmd
2957
2958 case ,$2, in
2959 *,"$to_tool_file_cmd",*)
2960 func_to_tool_file_result=$1
2961 ;;
2962 *)
2963 $to_tool_file_cmd "$1"
2964 func_to_tool_file_result=$func_to_host_file_result
2965 ;;
2966 esac
2967 }
2968 # end func_to_tool_file
2969
2970
2971 # func_convert_file_noop ARG
2972 # Copy ARG to func_to_host_file_result.
2973 func_convert_file_noop ()
2974 {
2975 func_to_host_file_result=$1
2976 }
2977 # end func_convert_file_noop
2978
2979
2980 # func_convert_file_msys_to_w32 ARG
2981 # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic
2982 # conversion to w32 is not available inside the cwrapper. Returns result in
2983 # func_to_host_file_result.
2984 func_convert_file_msys_to_w32 ()
2985 {
2986 $debug_cmd
2987
2988 func_to_host_file_result=$1
2989 if test -n "$1"; then
2990 func_convert_core_msys_to_w32 "$1"
2991 func_to_host_file_result=$func_convert_core_msys_to_w32_result
2992 fi
2993 func_convert_file_check "$1" "$func_to_host_file_result"
2994 }
2995 # end func_convert_file_msys_to_w32
2996
2997
2998 # func_convert_file_cygwin_to_w32 ARG
2999 # Convert file name ARG from Cygwin to w32 format. Returns result in
3000 # func_to_host_file_result.
3001 func_convert_file_cygwin_to_w32 ()
3002 {
3003 $debug_cmd
3004
3005 func_to_host_file_result=$1
3006 if test -n "$1"; then
3007 # because $build is cygwin, we call "the" cygpath in $PATH; no need to use
3008 # LT_CYGPATH in this case.
3009 func_to_host_file_result=`cygpath -m "$1"`
3010 fi
3011 func_convert_file_check "$1" "$func_to_host_file_result"
3012 }
3013 # end func_convert_file_cygwin_to_w32
3014
3015
3016 # func_convert_file_nix_to_w32 ARG
3017 # Convert file name ARG from *nix to w32 format. Requires a wine environment
3018 # and a working winepath. Returns result in func_to_host_file_result.
3019 func_convert_file_nix_to_w32 ()
3020 {
3021 $debug_cmd
3022
3023 func_to_host_file_result=$1
3024 if test -n "$1"; then
3025 func_convert_core_file_wine_to_w32 "$1"
3026 func_to_host_file_result=$func_convert_core_file_wine_to_w32_result
3027 fi
3028 func_convert_file_check "$1" "$func_to_host_file_result"
3029 }
3030 # end func_convert_file_nix_to_w32
3031
3032
3033 # func_convert_file_msys_to_cygwin ARG
3034 # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
3035 # Returns result in func_to_host_file_result.
3036 func_convert_file_msys_to_cygwin ()
3037 {
3038 $debug_cmd
3039
3040 func_to_host_file_result=$1
3041 if test -n "$1"; then
3042 func_convert_core_msys_to_w32 "$1"
3043 func_cygpath -u "$func_convert_core_msys_to_w32_result"
3044 func_to_host_file_result=$func_cygpath_result
3045 fi
3046 func_convert_file_check "$1" "$func_to_host_file_result"
3047 }
3048 # end func_convert_file_msys_to_cygwin
3049
3050
3051 # func_convert_file_nix_to_cygwin ARG
3052 # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed
3053 # in a wine environment, working winepath, and LT_CYGPATH set. Returns result
3054 # in func_to_host_file_result.
3055 func_convert_file_nix_to_cygwin ()
3056 {
3057 $debug_cmd
3058
3059 func_to_host_file_result=$1
3060 if test -n "$1"; then
3061 # convert from *nix to w32, then use cygpath to convert from w32 to cygwin.
3062 func_convert_core_file_wine_to_w32 "$1"
3063 func_cygpath -u "$func_convert_core_file_wine_to_w32_result"
3064 func_to_host_file_result=$func_cygpath_result
3065 fi
3066 func_convert_file_check "$1" "$func_to_host_file_result"
3067 }
3068 # end func_convert_file_nix_to_cygwin
3069
3070
3071 #############################################
3072 # $build to $host PATH CONVERSION FUNCTIONS #
3073 #############################################
3074 # invoked via '$to_host_path_cmd ARG'
3075 #
3076 # In each case, ARG is the path to be converted from $build to $host format.
3077 # The result will be available in $func_to_host_path_result.
3078 #
3079 # Path separators are also converted from $build format to $host format. If
3080 # ARG begins or ends with a path separator character, it is preserved (but
3081 # converted to $host format) on output.
3082 #
3083 # All path conversion functions are named using the following convention:
3084 # file name conversion function : func_convert_file_X_to_Y ()
3085 # path conversion function : func_convert_path_X_to_Y ()
3086 # where, for any given $build/$host combination the 'X_to_Y' value is the
3087 # same. If conversion functions are added for new $build/$host combinations,
3088 # the two new functions must follow this pattern, or func_init_to_host_path_cmd
3089 # will break.
3090
3091
3092 # func_init_to_host_path_cmd
3093 # Ensures that function "pointer" variable $to_host_path_cmd is set to the
3094 # appropriate value, based on the value of $to_host_file_cmd.
3095 to_host_path_cmd=
3096 func_init_to_host_path_cmd ()
3097 {
3098 $debug_cmd
3099
3100 if test -z "$to_host_path_cmd"; then
3101 func_stripname 'func_convert_file_' '' "$to_host_file_cmd"
3102 to_host_path_cmd=func_convert_path_$func_stripname_result
3103 fi
3104 }
3105
3106
3107 # func_to_host_path ARG
3108 # Converts the path ARG from $build format to $host format. Return result
3109 # in func_to_host_path_result.
3110 func_to_host_path ()
3111 {
3112 $debug_cmd
3113
3114 func_init_to_host_path_cmd
3115 $to_host_path_cmd "$1"
3116 }
3117 # end func_to_host_path
3118
3119
3120 # func_convert_path_noop ARG
3121 # Copy ARG to func_to_host_path_result.
3122 func_convert_path_noop ()
3123 {
3124 func_to_host_path_result=$1
3125 }
3126 # end func_convert_path_noop
3127
3128
3129 # func_convert_path_msys_to_w32 ARG
3130 # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic
3131 # conversion to w32 is not available inside the cwrapper. Returns result in
3132 # func_to_host_path_result.
3133 func_convert_path_msys_to_w32 ()
3134 {
3135 $debug_cmd
3136
3137 func_to_host_path_result=$1
3138 if test -n "$1"; then
3139 # Remove leading and trailing path separator characters from ARG. MSYS
3140 # behavior is inconsistent here; cygpath turns them into '.;' and ';.';
3141 # and winepath ignores them completely.
3142 func_stripname : : "$1"
3143 func_to_host_path_tmp1=$func_stripname_result
3144 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
3145 func_to_host_path_result=$func_convert_core_msys_to_w32_result
3146 func_convert_path_check : ";" \
3147 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3148 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
3149 fi
3150 }
3151 # end func_convert_path_msys_to_w32
3152
3153
3154 # func_convert_path_cygwin_to_w32 ARG
3155 # Convert path ARG from Cygwin to w32 format. Returns result in
3156 # func_to_host_file_result.
3157 func_convert_path_cygwin_to_w32 ()
3158 {
3159 $debug_cmd
3160
3161 func_to_host_path_result=$1
3162 if test -n "$1"; then
3163 # See func_convert_path_msys_to_w32:
3164 func_stripname : : "$1"
3165 func_to_host_path_tmp1=$func_stripname_result
3166 func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"`
3167 func_convert_path_check : ";" \
3168 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3169 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
3170 fi
3171 }
3172 # end func_convert_path_cygwin_to_w32
3173
3174
3175 # func_convert_path_nix_to_w32 ARG
3176 # Convert path ARG from *nix to w32 format. Requires a wine environment and
3177 # a working winepath. Returns result in func_to_host_file_result.
3178 func_convert_path_nix_to_w32 ()
3179 {
3180 $debug_cmd
3181
3182 func_to_host_path_result=$1
3183 if test -n "$1"; then
3184 # See func_convert_path_msys_to_w32:
3185 func_stripname : : "$1"
3186 func_to_host_path_tmp1=$func_stripname_result
3187 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
3188 func_to_host_path_result=$func_convert_core_path_wine_to_w32_result
3189 func_convert_path_check : ";" \
3190 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3191 func_convert_path_front_back_pathsep ":*" "*:" ";" "$1"
3192 fi
3193 }
3194 # end func_convert_path_nix_to_w32
3195
3196
3197 # func_convert_path_msys_to_cygwin ARG
3198 # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set.
3199 # Returns result in func_to_host_file_result.
3200 func_convert_path_msys_to_cygwin ()
3201 {
3202 $debug_cmd
3203
3204 func_to_host_path_result=$1
3205 if test -n "$1"; then
3206 # See func_convert_path_msys_to_w32:
3207 func_stripname : : "$1"
3208 func_to_host_path_tmp1=$func_stripname_result
3209 func_convert_core_msys_to_w32 "$func_to_host_path_tmp1"
3210 func_cygpath -u -p "$func_convert_core_msys_to_w32_result"
3211 func_to_host_path_result=$func_cygpath_result
3212 func_convert_path_check : : \
3213 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3214 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
3215 fi
3216 }
3217 # end func_convert_path_msys_to_cygwin
3218
3219
3220 # func_convert_path_nix_to_cygwin ARG
3221 # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a
3222 # a wine environment, working winepath, and LT_CYGPATH set. Returns result in
3223 # func_to_host_file_result.
3224 func_convert_path_nix_to_cygwin ()
3225 {
3226 $debug_cmd
3227
3228 func_to_host_path_result=$1
3229 if test -n "$1"; then
3230 # Remove leading and trailing path separator characters from
3231 # ARG. msys behavior is inconsistent here, cygpath turns them
3232 # into '.;' and ';.', and winepath ignores them completely.
3233 func_stripname : : "$1"
3234 func_to_host_path_tmp1=$func_stripname_result
3235 func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1"
3236 func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result"
3237 func_to_host_path_result=$func_cygpath_result
3238 func_convert_path_check : : \
3239 "$func_to_host_path_tmp1" "$func_to_host_path_result"
3240 func_convert_path_front_back_pathsep ":*" "*:" : "$1"
3241 fi
3242 }
3243 # end func_convert_path_nix_to_cygwin
3244
3245
3246 # func_dll_def_p FILE
3247 # True iff FILE is a Windows DLL '.def' file.
3248 # Keep in sync with _LT_DLL_DEF_P in libtool.m4
3249 func_dll_def_p ()
3250 {
3251 $debug_cmd
3252
3253 func_dll_def_p_tmp=`$SED -n \
3254 -e 's/^[ ]*//' \
3255 -e '/^\(;.*\)*$/d' \
3256 -e 's/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p' \
3257 -e q \
3258 "$1"`
3259 test DEF = "$func_dll_def_p_tmp"
3260 }
3261
3262
3263 # func_mode_compile arg...
3264 func_mode_compile ()
3265 {
3266 $debug_cmd
3267
3268 # Get the compilation command and the source file.
3269 base_compile=
3270 srcfile=$nonopt # always keep a non-empty value in "srcfile"
3271 suppress_opt=yes
3272 suppress_output=
3273 arg_mode=normal
3274 libobj=
3275 later=
3276 pie_flag=
3277
3278 for arg
3279 do
3280 case $arg_mode in
3281 arg )
3282 # do not "continue". Instead, add this to base_compile
3283 lastarg=$arg
3284 arg_mode=normal
3285 ;;
3286
3287 target )
3288 libobj=$arg
3289 arg_mode=normal
3290 continue
3291 ;;
3292
3293 normal )
3294 # Accept any command-line options.
3295 case $arg in
3296 -o)
3297 test -n "$libobj" && \
3298 func_fatal_error "you cannot specify '-o' more than once"
3299 arg_mode=target
3300 continue
3301 ;;
3302
3303 -pie | -fpie | -fPIE)
3304 func_append pie_flag " $arg"
3305 continue
3306 ;;
3307
3308 -shared | -static | -prefer-pic | -prefer-non-pic)
3309 func_append later " $arg"
3310 continue
3311 ;;
3312
3313 -no-suppress)
3314 suppress_opt=no
3315 continue
3316 ;;
3317
3318 -Xcompiler)
3319 arg_mode=arg # the next one goes into the "base_compile" arg list
3320 continue # The current "srcfile" will either be retained or
3321 ;; # replaced later. I would guess that would be a bug.
3322
3323 -Wc,*)
3324 func_stripname '-Wc,' '' "$arg"
3325 args=$func_stripname_result
3326 lastarg=
3327 save_ifs=$IFS; IFS=,
3328 for arg in $args; do
3329 IFS=$save_ifs
3330 func_append_quoted lastarg "$arg"
3331 done
3332 IFS=$save_ifs
3333 func_stripname ' ' '' "$lastarg"
3334 lastarg=$func_stripname_result
3335
3336 # Add the arguments to base_compile.
3337 func_append base_compile " $lastarg"
3338 continue
3339 ;;
3340
3341 *)
3342 # Accept the current argument as the source file.
3343 # The previous "srcfile" becomes the current argument.
3344 #
3345 lastarg=$srcfile
3346 srcfile=$arg
3347 ;;
3348 esac # case $arg
3349 ;;
3350 esac # case $arg_mode
3351
3352 # Aesthetically quote the previous argument.
3353 func_append_quoted base_compile "$lastarg"
3354 done # for arg
3355
3356 case $arg_mode in
3357 arg)
3358 func_fatal_error "you must specify an argument for -Xcompile"
3359 ;;
3360 target)
3361 func_fatal_error "you must specify a target with '-o'"
3362 ;;
3363 *)
3364 # Get the name of the library object.
3365 test -z "$libobj" && {
3366 func_basename "$srcfile"
3367 libobj=$func_basename_result
3368 }
3369 ;;
3370 esac
3371
3372 # Recognize several different file suffixes.
3373 # If the user specifies -o file.o, it is replaced with file.lo
3374 case $libobj in
3375 *.[cCFSifmso] | \
3376 *.ada | *.adb | *.ads | *.asm | \
3377 *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
3378 *.[fF][09]? | *.for | *.java | *.go | *.obj | *.sx | *.cu | *.cup)
3379 func_xform "$libobj"
3380 libobj=$func_xform_result
3381 ;;
3382 esac
3383
3384 case $libobj in
3385 *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
3386 *)
3387 func_fatal_error "cannot determine name of library object from '$libobj'"
3388 ;;
3389 esac
3390
3391 func_infer_tag $base_compile
3392
3393 for arg in $later; do
3394 case $arg in
3395 -shared)
3396 test yes = "$build_libtool_libs" \
3397 || func_fatal_configuration "cannot build a shared library"
3398 build_old_libs=no
3399 continue
3400 ;;
3401
3402 -static)
3403 build_libtool_libs=no
3404 build_old_libs=yes
3405 continue
3406 ;;
3407
3408 -prefer-pic)
3409 pic_mode=yes
3410 continue
3411 ;;
3412
3413 -prefer-non-pic)
3414 pic_mode=no
3415 continue
3416 ;;
3417 esac
3418 done
3419
3420 func_quote_for_eval "$libobj"
3421 test "X$libobj" != "X$func_quote_for_eval_result" \
3422 && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
3423 && func_warning "libobj name '$libobj' may not contain shell special characters."
3424 func_dirname_and_basename "$obj" "/" ""
3425 objname=$func_basename_result
3426 xdir=$func_dirname_result
3427 lobj=$xdir$objdir/$objname
3428
3429 test -z "$base_compile" && \
3430 func_fatal_help "you must specify a compilation command"
3431
3432 # Delete any leftover library objects.
3433 if test yes = "$build_old_libs"; then
3434 removelist="$obj $lobj $libobj ${libobj}T"
3435 else
3436 removelist="$lobj $libobj ${libobj}T"
3437 fi
3438
3439 # On Cygwin there's no "real" PIC flag so we must build both object types
3440 case $host_os in
3441 cygwin* | mingw* | pw32* | os2* | cegcc*)
3442 pic_mode=default
3443 ;;
3444 esac
3445 if test no = "$pic_mode" && test pass_all != "$deplibs_check_method"; then
3446 # non-PIC code in shared libraries is not supported
3447 pic_mode=default
3448 fi
3449
3450 # Calculate the filename of the output object if compiler does
3451 # not support -o with -c
3452 if test no = "$compiler_c_o"; then
3453 output_obj=`$ECHO "$srcfile" | $SED 's%^.*/%%; s%\.[^.]*$%%'`.$objext
3454 lockfile=$output_obj.lock
3455 else
3456 output_obj=
3457 need_locks=no
3458 lockfile=
3459 fi
3460
3461 # Lock this critical section if it is needed
3462 # We use this script file to make the link, it avoids creating a new file
3463 if test yes = "$need_locks"; then
3464 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
3465 func_echo "Waiting for $lockfile to be removed"
3466 sleep 2
3467 done
3468 elif test warn = "$need_locks"; then
3469 if test -f "$lockfile"; then
3470 $ECHO "\
3471 *** ERROR, $lockfile exists and contains:
3472 `cat $lockfile 2>/dev/null`
3473
3474 This indicates that another process is trying to use the same
3475 temporary object file, and libtool could not work around it because
3476 your compiler does not support '-c' and '-o' together. If you
3477 repeat this compilation, it may succeed, by chance, but you had better
3478 avoid parallel builds (make -j) in this platform, or get a better
3479 compiler."
3480
3481 $opt_dry_run || $RM $removelist
3482 exit $EXIT_FAILURE
3483 fi
3484 func_append removelist " $output_obj"
3485 $ECHO "$srcfile" > "$lockfile"
3486 fi
3487
3488 $opt_dry_run || $RM $removelist
3489 func_append removelist " $lockfile"
3490 trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
3491
3492 func_to_tool_file "$srcfile" func_convert_file_msys_to_w32
3493 srcfile=$func_to_tool_file_result
3494 func_quote_for_eval "$srcfile"
3495 qsrcfile=$func_quote_for_eval_result
3496
3497 # Only build a PIC object if we are building libtool libraries.
3498 if test yes = "$build_libtool_libs"; then
3499 # Without this assignment, base_compile gets emptied.
3500 fbsd_hideous_sh_bug=$base_compile
3501
3502 if test no != "$pic_mode"; then
3503 command="$base_compile $qsrcfile $pic_flag"
3504 else
3505 # Don't build PIC code
3506 command="$base_compile $qsrcfile"
3507 fi
3508
3509 func_mkdir_p "$xdir$objdir"
3510
3511 if test -z "$output_obj"; then
3512 # Place PIC objects in $objdir
3513 func_append command " -o $lobj"
3514 fi
3515
3516 func_show_eval_locale "$command" \
3517 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
3518
3519 if test warn = "$need_locks" &&
3520 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3521 $ECHO "\
3522 *** ERROR, $lockfile contains:
3523 `cat $lockfile 2>/dev/null`
3524
3525 but it should contain:
3526 $srcfile
3527
3528 This indicates that another process is trying to use the same
3529 temporary object file, and libtool could not work around it because
3530 your compiler does not support '-c' and '-o' together. If you
3531 repeat this compilation, it may succeed, by chance, but you had better
3532 avoid parallel builds (make -j) in this platform, or get a better
3533 compiler."
3534
3535 $opt_dry_run || $RM $removelist
3536 exit $EXIT_FAILURE
3537 fi
3538
3539 # Just move the object if needed, then go on to compile the next one
3540 if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
3541 func_show_eval '$MV "$output_obj" "$lobj"' \
3542 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
3543 fi
3544
3545 # Allow error messages only from the first compilation.
3546 if test yes = "$suppress_opt"; then
3547 suppress_output=' >/dev/null 2>&1'
3548 fi
3549 fi
3550
3551 # Only build a position-dependent object if we build old libraries.
3552 if test yes = "$build_old_libs"; then
3553 if test yes != "$pic_mode"; then
3554 # Don't build PIC code
3555 command="$base_compile $qsrcfile$pie_flag"
3556 else
3557 command="$base_compile $qsrcfile $pic_flag"
3558 fi
3559 if test yes = "$compiler_c_o"; then
3560 func_append command " -o $obj"
3561 fi
3562
3563 # Suppress compiler output if we already did a PIC compilation.
3564 func_append command "$suppress_output"
3565 func_show_eval_locale "$command" \
3566 '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
3567
3568 if test warn = "$need_locks" &&
3569 test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
3570 $ECHO "\
3571 *** ERROR, $lockfile contains:
3572 `cat $lockfile 2>/dev/null`
3573
3574 but it should contain:
3575 $srcfile
3576
3577 This indicates that another process is trying to use the same
3578 temporary object file, and libtool could not work around it because
3579 your compiler does not support '-c' and '-o' together. If you
3580 repeat this compilation, it may succeed, by chance, but you had better
3581 avoid parallel builds (make -j) in this platform, or get a better
3582 compiler."
3583
3584 $opt_dry_run || $RM $removelist
3585 exit $EXIT_FAILURE
3586 fi
3587
3588 # Just move the object if needed
3589 if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
3590 func_show_eval '$MV "$output_obj" "$obj"' \
3591 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
3592 fi
3593 fi
3594
3595 $opt_dry_run || {
3596 func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
3597
3598 # Unlock the critical section if it was locked
3599 if test no != "$need_locks"; then
3600 removelist=$lockfile
3601 $RM "$lockfile"
3602 fi
3603 }
3604
3605 exit $EXIT_SUCCESS
3606 }
3607
3608 $opt_help || {
3609 test compile = "$opt_mode" && func_mode_compile ${1+"$@"}
3610 }
3611
3612 func_mode_help ()
3613 {
3614 # We need to display help for each of the modes.
3615 case $opt_mode in
3616 "")
3617 # Generic help is extracted from the usage comments
3618 # at the start of this file.
3619 func_help
3620 ;;
3621
3622 clean)
3623 $ECHO \
3624 "Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
3625
3626 Remove files from the build directory.
3627
3628 RM is the name of the program to use to delete files associated with each FILE
3629 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3630 to RM.
3631
3632 If FILE is a libtool library, object or program, all the files associated
3633 with it are deleted. Otherwise, only FILE itself is deleted using RM."
3634 ;;
3635
3636 compile)
3637 $ECHO \
3638 "Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
3639
3640 Compile a source file into a libtool library object.
3641
3642 This mode accepts the following additional options:
3643
3644 -o OUTPUT-FILE set the output file name to OUTPUT-FILE
3645 -no-suppress do not suppress compiler output for multiple passes
3646 -prefer-pic try to build PIC objects only
3647 -prefer-non-pic try to build non-PIC objects only
3648 -shared do not build a '.o' file suitable for static linking
3649 -static only build a '.o' file suitable for static linking
3650 -Wc,FLAG pass FLAG directly to the compiler
3651
3652 COMPILE-COMMAND is a command to be used in creating a 'standard' object file
3653 from the given SOURCEFILE.
3654
3655 The output file name is determined by removing the directory component from
3656 SOURCEFILE, then substituting the C source code suffix '.c' with the
3657 library object suffix, '.lo'."
3658 ;;
3659
3660 execute)
3661 $ECHO \
3662 "Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
3663
3664 Automatically set library path, then run a program.
3665
3666 This mode accepts the following additional options:
3667
3668 -dlopen FILE add the directory containing FILE to the library path
3669
3670 This mode sets the library path environment variable according to '-dlopen'
3671 flags.
3672
3673 If any of the ARGS are libtool executable wrappers, then they are translated
3674 into their corresponding uninstalled binary, and any of their required library
3675 directories are added to the library path.
3676
3677 Then, COMMAND is executed, with ARGS as arguments."
3678 ;;
3679
3680 finish)
3681 $ECHO \
3682 "Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
3683
3684 Complete the installation of libtool libraries.
3685
3686 Each LIBDIR is a directory that contains libtool libraries.
3687
3688 The commands that this mode executes may require superuser privileges. Use
3689 the '--dry-run' option if you just want to see what would be executed."
3690 ;;
3691
3692 install)
3693 $ECHO \
3694 "Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
3695
3696 Install executables or libraries.
3697
3698 INSTALL-COMMAND is the installation command. The first component should be
3699 either the 'install' or 'cp' program.
3700
3701 The following components of INSTALL-COMMAND are treated specially:
3702
3703 -inst-prefix-dir PREFIX-DIR Use PREFIX-DIR as a staging area for installation
3704
3705 The rest of the components are interpreted as arguments to that command (only
3706 BSD-compatible install options are recognized)."
3707 ;;
3708
3709 link)
3710 $ECHO \
3711 "Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
3712
3713 Link object files or libraries together to form another library, or to
3714 create an executable program.
3715
3716 LINK-COMMAND is a command using the C compiler that you would use to create
3717 a program from several object files.
3718
3719 The following components of LINK-COMMAND are treated specially:
3720
3721 -all-static do not do any dynamic linking at all
3722 -avoid-version do not add a version suffix if possible
3723 -bindir BINDIR specify path to binaries directory (for systems where
3724 libraries must be found in the PATH setting at runtime)
3725 -dlopen FILE '-dlpreopen' FILE if it cannot be dlopened at runtime
3726 -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
3727 -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
3728 -export-symbols SYMFILE
3729 try to export only the symbols listed in SYMFILE
3730 -export-symbols-regex REGEX
3731 try to export only the symbols matching REGEX
3732 -LLIBDIR search LIBDIR for required installed libraries
3733 -lNAME OUTPUT-FILE requires the installed library libNAME
3734 -module build a library that can dlopened
3735 -no-fast-install disable the fast-install mode
3736 -no-install link a not-installable executable
3737 -no-undefined declare that a library does not refer to external symbols
3738 -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
3739 -objectlist FILE use a list of object files found in FILE to specify objects
3740 -os2dllname NAME force a short DLL name on OS/2 (no effect on other OSes)
3741 -precious-files-regex REGEX
3742 don't remove output files matching REGEX
3743 -release RELEASE specify package release information
3744 -rpath LIBDIR the created library will eventually be installed in LIBDIR
3745 -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
3746 -shared only do dynamic linking of libtool libraries
3747 -shrext SUFFIX override the standard shared library file extension
3748 -static do not do any dynamic linking of uninstalled libtool libraries
3749 -static-libtool-libs
3750 do not do any dynamic linking of libtool libraries
3751 -version-info CURRENT[:REVISION[:AGE]]
3752 specify library version info [each variable defaults to 0]
3753 -weak LIBNAME declare that the target provides the LIBNAME interface
3754 -Wc,FLAG
3755 -Xcompiler FLAG pass linker-specific FLAG directly to the compiler
3756 -Wl,FLAG
3757 -Xlinker FLAG pass linker-specific FLAG directly to the linker
3758 -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC)
3759
3760 All other options (arguments beginning with '-') are ignored.
3761
3762 Every other argument is treated as a filename. Files ending in '.la' are
3763 treated as uninstalled libtool libraries, other files are standard or library
3764 object files.
3765
3766 If the OUTPUT-FILE ends in '.la', then a libtool library is created,
3767 only library objects ('.lo' files) may be specified, and '-rpath' is
3768 required, except when creating a convenience library.
3769
3770 If OUTPUT-FILE ends in '.a' or '.lib', then a standard library is created
3771 using 'ar' and 'ranlib', or on Windows using 'lib'.
3772
3773 If OUTPUT-FILE ends in '.lo' or '.$objext', then a reloadable object file
3774 is created, otherwise an executable program is created."
3775 ;;
3776
3777 uninstall)
3778 $ECHO \
3779 "Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
3780
3781 Remove libraries from an installation directory.
3782
3783 RM is the name of the program to use to delete files associated with each FILE
3784 (typically '/bin/rm'). RM-OPTIONS are options (such as '-f') to be passed
3785 to RM.
3786
3787 If FILE is a libtool library, all the files associated with it are deleted.
3788 Otherwise, only FILE itself is deleted using RM."
3789 ;;
3790
3791 *)
3792 func_fatal_help "invalid operation mode '$opt_mode'"
3793 ;;
3794 esac
3795
3796 echo
3797 $ECHO "Try '$progname --help' for more information about other modes."
3798 }
3799
3800 # Now that we've collected a possible --mode arg, show help if necessary
3801 if $opt_help; then
3802 if test : = "$opt_help"; then
3803 func_mode_help
3804 else
3805 {
3806 func_help noexit
3807 for opt_mode in compile link execute install finish uninstall clean; do
3808 func_mode_help
3809 done
3810 } | $SED -n '1p; 2,$s/^Usage:/ or: /p'
3811 {
3812 func_help noexit
3813 for opt_mode in compile link execute install finish uninstall clean; do
3814 echo
3815 func_mode_help
3816 done
3817 } |
3818 $SED '1d
3819 /^When reporting/,/^Report/{
3820 H
3821 d
3822 }
3823 $x
3824 /information about other modes/d
3825 /more detailed .*MODE/d
3826 s/^Usage:.*--mode=\([^ ]*\) .*/Description of \1 mode:/'
3827 fi
3828 exit $?
3829 fi
3830
3831
3832 # func_mode_execute arg...
3833 func_mode_execute ()
3834 {
3835 $debug_cmd
3836
3837 # The first argument is the command name.
3838 cmd=$nonopt
3839 test -z "$cmd" && \
3840 func_fatal_help "you must specify a COMMAND"
3841
3842 # Handle -dlopen flags immediately.
3843 for file in $opt_dlopen; do
3844 test -f "$file" \
3845 || func_fatal_help "'$file' is not a file"
3846
3847 dir=
3848 case $file in
3849 *.la)
3850 func_resolve_sysroot "$file"
3851 file=$func_resolve_sysroot_result
3852
3853 # Check to see that this really is a libtool archive.
3854 func_lalib_unsafe_p "$file" \
3855 || func_fatal_help "'$lib' is not a valid libtool archive"
3856
3857 # Read the libtool library.
3858 dlname=
3859 library_names=
3860 func_source "$file"
3861
3862 # Skip this library if it cannot be dlopened.
3863 if test -z "$dlname"; then
3864 # Warn if it was a shared library.
3865 test -n "$library_names" && \
3866 func_warning "'$file' was not linked with '-export-dynamic'"
3867 continue
3868 fi
3869
3870 func_dirname "$file" "" "."
3871 dir=$func_dirname_result
3872
3873 if test -f "$dir/$objdir/$dlname"; then
3874 func_append dir "/$objdir"
3875 else
3876 if test ! -f "$dir/$dlname"; then
3877 func_fatal_error "cannot find '$dlname' in '$dir' or '$dir/$objdir'"
3878 fi
3879 fi
3880 ;;
3881
3882 *.lo)
3883 # Just add the directory containing the .lo file.
3884 func_dirname "$file" "" "."
3885 dir=$func_dirname_result
3886 ;;
3887
3888 *)
3889 func_warning "'-dlopen' is ignored for non-libtool libraries and objects"
3890 continue
3891 ;;
3892 esac
3893
3894 # Get the absolute pathname.
3895 absdir=`cd "$dir" && pwd`
3896 test -n "$absdir" && dir=$absdir
3897
3898 # Now add the directory to shlibpath_var.
3899 if eval "test -z \"\$$shlibpath_var\""; then
3900 eval "$shlibpath_var=\"\$dir\""
3901 else
3902 eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
3903 fi
3904 done
3905
3906 # This variable tells wrapper scripts just to set shlibpath_var
3907 # rather than running their programs.
3908 libtool_execute_magic=$magic
3909
3910 # Check if any of the arguments is a wrapper script.
3911 args=
3912 for file
3913 do
3914 case $file in
3915 -* | *.la | *.lo ) ;;
3916 *)
3917 # Do a test to see if this is really a libtool program.
3918 if func_ltwrapper_script_p "$file"; then
3919 func_source "$file"
3920 # Transform arg to wrapped name.
3921 file=$progdir/$program
3922 elif func_ltwrapper_executable_p "$file"; then
3923 func_ltwrapper_scriptname "$file"
3924 func_source "$func_ltwrapper_scriptname_result"
3925 # Transform arg to wrapped name.
3926 file=$progdir/$program
3927 fi
3928 ;;
3929 esac
3930 # Quote arguments (to preserve shell metacharacters).
3931 func_append_quoted args "$file"
3932 done
3933
3934 if $opt_dry_run; then
3935 # Display what would be done.
3936 if test -n "$shlibpath_var"; then
3937 eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
3938 echo "export $shlibpath_var"
3939 fi
3940 $ECHO "$cmd$args"
3941 exit $EXIT_SUCCESS
3942 else
3943 if test -n "$shlibpath_var"; then
3944 # Export the shlibpath_var.
3945 eval "export $shlibpath_var"
3946 fi
3947
3948 # Restore saved environment variables
3949 for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
3950 do
3951 eval "if test \"\${save_$lt_var+set}\" = set; then
3952 $lt_var=\$save_$lt_var; export $lt_var
3953 else
3954 $lt_unset $lt_var
3955 fi"
3956 done
3957
3958 # Now prepare to actually exec the command.
3959 exec_cmd=\$cmd$args
3960 fi
3961 }
3962
3963 test execute = "$opt_mode" && func_mode_execute ${1+"$@"}
3964
3965
3966 # func_mode_finish arg...
3967 func_mode_finish ()
3968 {
3969 $debug_cmd
3970
3971 libs=
3972 libdirs=
3973 admincmds=
3974
3975 for opt in "$nonopt" ${1+"$@"}
3976 do
3977 if test -d "$opt"; then
3978 func_append libdirs " $opt"
3979
3980 elif test -f "$opt"; then
3981 if func_lalib_unsafe_p "$opt"; then
3982 func_append libs " $opt"
3983 else
3984 func_warning "'$opt' is not a valid libtool archive"
3985 fi
3986
3987 else
3988 func_fatal_error "invalid argument '$opt'"
3989 fi
3990 done
3991
3992 if test -n "$libs"; then
3993 if test -n "$lt_sysroot"; then
3994 sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"`
3995 sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;"
3996 else
3997 sysroot_cmd=
3998 fi
3999
4000 # Remove sysroot references
4001 if $opt_dry_run; then
4002 for lib in $libs; do
4003 echo "removing references to $lt_sysroot and '=' prefixes from $lib"
4004 done
4005 else
4006 tmpdir=`func_mktempdir`
4007 for lib in $libs; do
4008 $SED -e "$sysroot_cmd s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
4009 > $tmpdir/tmp-la
4010 mv -f $tmpdir/tmp-la $lib
4011 done
4012 ${RM}r "$tmpdir"
4013 fi
4014 fi
4015
4016 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4017 for libdir in $libdirs; do
4018 if test -n "$finish_cmds"; then
4019 # Do each command in the finish commands.
4020 func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
4021 '"$cmd"'"'
4022 fi
4023 if test -n "$finish_eval"; then
4024 # Do the single finish_eval.
4025 eval cmds=\"$finish_eval\"
4026 $opt_dry_run || eval "$cmds" || func_append admincmds "
4027 $cmds"
4028 fi
4029 done
4030 fi
4031
4032 # Exit here if they wanted silent mode.
4033 $opt_quiet && exit $EXIT_SUCCESS
4034
4035 if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
4036 echo "----------------------------------------------------------------------"
4037 echo "Libraries have been installed in:"
4038 for libdir in $libdirs; do
4039 $ECHO " $libdir"
4040 done
4041 echo
4042 echo "If you ever happen to want to link against installed libraries"
4043 echo "in a given directory, LIBDIR, you must either use libtool, and"
4044 echo "specify the full pathname of the library, or use the '-LLIBDIR'"
4045 echo "flag during linking and do at least one of the following:"
4046 if test -n "$shlibpath_var"; then
4047 echo " - add LIBDIR to the '$shlibpath_var' environment variable"
4048 echo " during execution"
4049 fi
4050 if test -n "$runpath_var"; then
4051 echo " - add LIBDIR to the '$runpath_var' environment variable"
4052 echo " during linking"
4053 fi
4054 if test -n "$hardcode_libdir_flag_spec"; then
4055 libdir=LIBDIR
4056 eval flag=\"$hardcode_libdir_flag_spec\"
4057
4058 $ECHO " - use the '$flag' linker flag"
4059 fi
4060 if test -n "$admincmds"; then
4061 $ECHO " - have your system administrator run these commands:$admincmds"
4062 fi
4063 if test -f /etc/ld.so.conf; then
4064 echo " - have your system administrator add LIBDIR to '/etc/ld.so.conf'"
4065 fi
4066 echo
4067
4068 echo "See any operating system documentation about shared libraries for"
4069 case $host in
4070 solaris2.[6789]|solaris2.1[0-9])
4071 echo "more information, such as the ld(1), crle(1) and ld.so(8) manual"
4072 echo "pages."
4073 ;;
4074 *)
4075 echo "more information, such as the ld(1) and ld.so(8) manual pages."
4076 ;;
4077 esac
4078 echo "----------------------------------------------------------------------"
4079 fi
4080 exit $EXIT_SUCCESS
4081 }
4082
4083 test finish = "$opt_mode" && func_mode_finish ${1+"$@"}
4084
4085
4086 # func_mode_install arg...
4087 func_mode_install ()
4088 {
4089 $debug_cmd
4090
4091 # There may be an optional sh(1) argument at the beginning of
4092 # install_prog (especially on Windows NT).
4093 if test "$SHELL" = "$nonopt" || test /bin/sh = "$nonopt" ||
4094 # Allow the use of GNU shtool's install command.
4095 case $nonopt in *shtool*) :;; *) false;; esac
4096 then
4097 # Aesthetically quote it.
4098 func_quote_for_eval "$nonopt"
4099 install_prog="$func_quote_for_eval_result "
4100 arg=$1
4101 shift
4102 else
4103 install_prog=
4104 arg=$nonopt
4105 fi
4106
4107 # The real first argument should be the name of the installation program.
4108 # Aesthetically quote it.
4109 func_quote_for_eval "$arg"
4110 func_append install_prog "$func_quote_for_eval_result"
4111 install_shared_prog=$install_prog
4112 case " $install_prog " in
4113 *[\\\ /]cp\ *) install_cp=: ;;
4114 *) install_cp=false ;;
4115 esac
4116
4117 # We need to accept at least all the BSD install flags.
4118 dest=
4119 files=
4120 opts=
4121 prev=
4122 install_type=
4123 isdir=false
4124 stripme=
4125 no_mode=:
4126 for arg
4127 do
4128 arg2=
4129 if test -n "$dest"; then
4130 func_append files " $dest"
4131 dest=$arg
4132 continue
4133 fi
4134
4135 case $arg in
4136 -d) isdir=: ;;
4137 -f)
4138 if $install_cp; then :; else
4139 prev=$arg
4140 fi
4141 ;;
4142 -g | -m | -o)
4143 prev=$arg
4144 ;;
4145 -s)
4146 stripme=" -s"
4147 continue
4148 ;;
4149 -*)
4150 ;;
4151 *)
4152 # If the previous option needed an argument, then skip it.
4153 if test -n "$prev"; then
4154 if test X-m = "X$prev" && test -n "$install_override_mode"; then
4155 arg2=$install_override_mode
4156 no_mode=false
4157 fi
4158 prev=
4159 else
4160 dest=$arg
4161 continue
4162 fi
4163 ;;
4164 esac
4165
4166 # Aesthetically quote the argument.
4167 func_quote_for_eval "$arg"
4168 func_append install_prog " $func_quote_for_eval_result"
4169 if test -n "$arg2"; then
4170 func_quote_for_eval "$arg2"
4171 fi
4172 func_append install_shared_prog " $func_quote_for_eval_result"
4173 done
4174
4175 test -z "$install_prog" && \
4176 func_fatal_help "you must specify an install program"
4177
4178 test -n "$prev" && \
4179 func_fatal_help "the '$prev' option requires an argument"
4180
4181 if test -n "$install_override_mode" && $no_mode; then
4182 if $install_cp; then :; else
4183 func_quote_for_eval "$install_override_mode"
4184 func_append install_shared_prog " -m $func_quote_for_eval_result"
4185 fi
4186 fi
4187
4188 if test -z "$files"; then
4189 if test -z "$dest"; then
4190 func_fatal_help "no file or destination specified"
4191 else
4192 func_fatal_help "you must specify a destination"
4193 fi
4194 fi
4195
4196 # Strip any trailing slash from the destination.
4197 func_stripname '' '/' "$dest"
4198 dest=$func_stripname_result
4199
4200 # Check to see that the destination is a directory.
4201 test -d "$dest" && isdir=:
4202 if $isdir; then
4203 destdir=$dest
4204 destname=
4205 else
4206 func_dirname_and_basename "$dest" "" "."
4207 destdir=$func_dirname_result
4208 destname=$func_basename_result
4209
4210 # Not a directory, so check to see that there is only one file specified.
4211 set dummy $files; shift
4212 test "$#" -gt 1 && \
4213 func_fatal_help "'$dest' is not a directory"
4214 fi
4215 case $destdir in
4216 [\\/]* | [A-Za-z]:[\\/]*) ;;
4217 *)
4218 for file in $files; do
4219 case $file in
4220 *.lo) ;;
4221 *)
4222 func_fatal_help "'$destdir' must be an absolute directory name"
4223 ;;
4224 esac
4225 done
4226 ;;
4227 esac
4228
4229 # This variable tells wrapper scripts just to set variables rather
4230 # than running their programs.
4231 libtool_install_magic=$magic
4232
4233 staticlibs=
4234 future_libdirs=
4235 current_libdirs=
4236 for file in $files; do
4237
4238 # Do each installation.
4239 case $file in
4240 *.$libext)
4241 # Do the static libraries later.
4242 func_append staticlibs " $file"
4243 ;;
4244
4245 *.la)
4246 func_resolve_sysroot "$file"
4247 file=$func_resolve_sysroot_result
4248
4249 # Check to see that this really is a libtool archive.
4250 func_lalib_unsafe_p "$file" \
4251 || func_fatal_help "'$file' is not a valid libtool archive"
4252
4253 library_names=
4254 old_library=
4255 relink_command=
4256 func_source "$file"
4257
4258 # Add the libdir to current_libdirs if it is the destination.
4259 if test "X$destdir" = "X$libdir"; then
4260 case "$current_libdirs " in
4261 *" $libdir "*) ;;
4262 *) func_append current_libdirs " $libdir" ;;
4263 esac
4264 else
4265 # Note the libdir as a future libdir.
4266 case "$future_libdirs " in
4267 *" $libdir "*) ;;
4268 *) func_append future_libdirs " $libdir" ;;
4269 esac
4270 fi
4271
4272 func_dirname "$file" "/" ""
4273 dir=$func_dirname_result
4274 func_append dir "$objdir"
4275
4276 if test -n "$relink_command"; then
4277 # Determine the prefix the user has applied to our future dir.
4278 inst_prefix_dir=`$ECHO "$destdir" | $SED -e "s%$libdir\$%%"`
4279
4280 # Don't allow the user to place us outside of our expected
4281 # location b/c this prevents finding dependent libraries that
4282 # are installed to the same prefix.
4283 # At present, this check doesn't affect windows .dll's that
4284 # are installed into $libdir/../bin (currently, that works fine)
4285 # but it's something to keep an eye on.
4286 test "$inst_prefix_dir" = "$destdir" && \
4287 func_fatal_error "error: cannot install '$file' to a directory not ending in $libdir"
4288
4289 if test -n "$inst_prefix_dir"; then
4290 # Stick the inst_prefix_dir data into the link command.
4291 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
4292 else
4293 relink_command=`$ECHO "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
4294 fi
4295
4296 func_warning "relinking '$file'"
4297 func_show_eval "$relink_command" \
4298 'func_fatal_error "error: relink '\''$file'\'' with the above command before installing it"'
4299 fi
4300
4301 # See the names of the shared library.
4302 set dummy $library_names; shift
4303 if test -n "$1"; then
4304 realname=$1
4305 shift
4306
4307 srcname=$realname
4308 test -n "$relink_command" && srcname=${realname}T
4309
4310 # Install the shared library and build the symlinks.
4311 func_show_eval "$install_shared_prog $dir/$srcname $destdir/$realname" \
4312 'exit $?'
4313 tstripme=$stripme
4314 case $host_os in
4315 cygwin* | mingw* | pw32* | cegcc*)
4316 case $realname in
4317 *.dll.a)
4318 tstripme=
4319 ;;
4320 esac
4321 ;;
4322 os2*)
4323 case $realname in
4324 *_dll.a)
4325 tstripme=
4326 ;;
4327 esac
4328 ;;
4329 esac
4330 if test -n "$tstripme" && test -n "$striplib"; then
4331 func_show_eval "$striplib $destdir/$realname" 'exit $?'
4332 fi
4333
4334 if test "$#" -gt 0; then
4335 # Delete the old symlinks, and create new ones.
4336 # Try 'ln -sf' first, because the 'ln' binary might depend on
4337 # the symlink we replace! Solaris /bin/ln does not understand -f,
4338 # so we also need to try rm && ln -s.
4339 for linkname
4340 do
4341 test "$linkname" != "$realname" \
4342 && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
4343 done
4344 fi
4345
4346 # Do each command in the postinstall commands.
4347 lib=$destdir/$realname
4348 func_execute_cmds "$postinstall_cmds" 'exit $?'
4349 fi
4350
4351 # Install the pseudo-library for information purposes.
4352 func_basename "$file"
4353 name=$func_basename_result
4354 instname=$dir/${name}i
4355 func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
4356
4357 # Maybe install the static library, too.
4358 test -n "$old_library" && func_append staticlibs " $dir/$old_library"
4359 ;;
4360
4361 *.lo)
4362 # Install (i.e. copy) a libtool object.
4363
4364 # Figure out destination file name, if it wasn't already specified.
4365 if test -n "$destname"; then
4366 destfile=$destdir/$destname
4367 else
4368 func_basename "$file"
4369 destfile=$func_basename_result
4370 destfile=$destdir/$destfile
4371 fi
4372
4373 # Deduce the name of the destination old-style object file.
4374 case $destfile in
4375 *.lo)
4376 func_lo2o "$destfile"
4377 staticdest=$func_lo2o_result
4378 ;;
4379 *.$objext)
4380 staticdest=$destfile
4381 destfile=
4382 ;;
4383 *)
4384 func_fatal_help "cannot copy a libtool object to '$destfile'"
4385 ;;
4386 esac
4387
4388 # Install the libtool object if requested.
4389 test -n "$destfile" && \
4390 func_show_eval "$install_prog $file $destfile" 'exit $?'
4391
4392 # Install the old object if enabled.
4393 if test yes = "$build_old_libs"; then
4394 # Deduce the name of the old-style object file.
4395 func_lo2o "$file"
4396 staticobj=$func_lo2o_result
4397 func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
4398 fi
4399 exit $EXIT_SUCCESS
4400 ;;
4401
4402 *)
4403 # Figure out destination file name, if it wasn't already specified.
4404 if test -n "$destname"; then
4405 destfile=$destdir/$destname
4406 else
4407 func_basename "$file"
4408 destfile=$func_basename_result
4409 destfile=$destdir/$destfile
4410 fi
4411
4412 # If the file is missing, and there is a .exe on the end, strip it
4413 # because it is most likely a libtool script we actually want to
4414 # install
4415 stripped_ext=
4416 case $file in
4417 *.exe)
4418 if test ! -f "$file"; then
4419 func_stripname '' '.exe' "$file"
4420 file=$func_stripname_result
4421 stripped_ext=.exe
4422 fi
4423 ;;
4424 esac
4425
4426 # Do a test to see if this is really a libtool program.
4427 case $host in
4428 *cygwin* | *mingw*)
4429 if func_ltwrapper_executable_p "$file"; then
4430 func_ltwrapper_scriptname "$file"
4431 wrapper=$func_ltwrapper_scriptname_result
4432 else
4433 func_stripname '' '.exe' "$file"
4434 wrapper=$func_stripname_result
4435 fi
4436 ;;
4437 *)
4438 wrapper=$file
4439 ;;
4440 esac
4441 if func_ltwrapper_script_p "$wrapper"; then
4442 notinst_deplibs=
4443 relink_command=
4444
4445 func_source "$wrapper"
4446
4447 # Check the variables that should have been set.
4448 test -z "$generated_by_libtool_version" && \
4449 func_fatal_error "invalid libtool wrapper script '$wrapper'"
4450
4451 finalize=:
4452 for lib in $notinst_deplibs; do
4453 # Check to see that each library is installed.
4454 libdir=
4455 if test -f "$lib"; then
4456 func_source "$lib"
4457 fi
4458 libfile=$libdir/`$ECHO "$lib" | $SED 's%^.*/%%g'`
4459 if test -n "$libdir" && test ! -f "$libfile"; then
4460 func_warning "'$lib' has not been installed in '$libdir'"
4461 finalize=false
4462 fi
4463 done
4464
4465 relink_command=
4466 func_source "$wrapper"
4467
4468 outputname=
4469 if test no = "$fast_install" && test -n "$relink_command"; then
4470 $opt_dry_run || {
4471 if $finalize; then
4472 tmpdir=`func_mktempdir`
4473 func_basename "$file$stripped_ext"
4474 file=$func_basename_result
4475 outputname=$tmpdir/$file
4476 # Replace the output file specification.
4477 relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'`
4478
4479 $opt_quiet || {
4480 func_quote_for_expand "$relink_command"
4481 eval "func_echo $func_quote_for_expand_result"
4482 }
4483 if eval "$relink_command"; then :
4484 else
4485 func_error "error: relink '$file' with the above command before installing it"
4486 $opt_dry_run || ${RM}r "$tmpdir"
4487 continue
4488 fi
4489 file=$outputname
4490 else
4491 func_warning "cannot relink '$file'"
4492 fi
4493 }
4494 else
4495 # Install the binary that we compiled earlier.
4496 file=`$ECHO "$file$stripped_ext" | $SED "s%\([^/]*\)$%$objdir/\1%"`
4497 fi
4498 fi
4499
4500 # remove .exe since cygwin /usr/bin/install will append another
4501 # one anyway
4502 case $install_prog,$host in
4503 */usr/bin/install*,*cygwin*)
4504 case $file:$destfile in
4505 *.exe:*.exe)
4506 # this is ok
4507 ;;
4508 *.exe:*)
4509 destfile=$destfile.exe
4510 ;;
4511 *:*.exe)
4512 func_stripname '' '.exe' "$destfile"
4513 destfile=$func_stripname_result
4514 ;;
4515 esac
4516 ;;
4517 esac
4518 func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
4519 $opt_dry_run || if test -n "$outputname"; then
4520 ${RM}r "$tmpdir"
4521 fi
4522 ;;
4523 esac
4524 done
4525
4526 for file in $staticlibs; do
4527 func_basename "$file"
4528 name=$func_basename_result
4529
4530 # Set up the ranlib parameters.
4531 oldlib=$destdir/$name
4532 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
4533 tool_oldlib=$func_to_tool_file_result
4534
4535 func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
4536
4537 if test -n "$stripme" && test -n "$old_striplib"; then
4538 func_show_eval "$old_striplib $tool_oldlib" 'exit $?'
4539 fi
4540
4541 # Do each command in the postinstall commands.
4542 func_execute_cmds "$old_postinstall_cmds" 'exit $?'
4543 done
4544
4545 test -n "$future_libdirs" && \
4546 func_warning "remember to run '$progname --finish$future_libdirs'"
4547
4548 if test -n "$current_libdirs"; then
4549 # Maybe just do a dry run.
4550 $opt_dry_run && current_libdirs=" -n$current_libdirs"
4551 exec_cmd='$SHELL "$progpath" $preserve_args --finish$current_libdirs'
4552 else
4553 exit $EXIT_SUCCESS
4554 fi
4555 }
4556
4557 test install = "$opt_mode" && func_mode_install ${1+"$@"}
4558
4559
4560 # func_generate_dlsyms outputname originator pic_p
4561 # Extract symbols from dlprefiles and create ${outputname}S.o with
4562 # a dlpreopen symbol table.
4563 func_generate_dlsyms ()
4564 {
4565 $debug_cmd
4566
4567 my_outputname=$1
4568 my_originator=$2
4569 my_pic_p=${3-false}
4570 my_prefix=`$ECHO "$my_originator" | $SED 's%[^a-zA-Z0-9]%_%g'`
4571 my_dlsyms=
4572
4573 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
4574 if test -n "$NM" && test -n "$global_symbol_pipe"; then
4575 my_dlsyms=${my_outputname}S.c
4576 else
4577 func_error "not configured to extract global symbols from dlpreopened files"
4578 fi
4579 fi
4580
4581 if test -n "$my_dlsyms"; then
4582 case $my_dlsyms in
4583 "") ;;
4584 *.c)
4585 # Discover the nlist of each of the dlfiles.
4586 nlist=$output_objdir/$my_outputname.nm
4587
4588 func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
4589
4590 # Parse the name list into a source file.
4591 func_verbose "creating $output_objdir/$my_dlsyms"
4592
4593 $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
4594 /* $my_dlsyms - symbol resolution table for '$my_outputname' dlsym emulation. */
4595 /* Generated by $PROGRAM (GNU $PACKAGE) $VERSION */
4596
4597 #ifdef __cplusplus
4598 extern \"C\" {
4599 #endif
4600
4601 #if defined __GNUC__ && (((__GNUC__ == 4) && (__GNUC_MINOR__ >= 4)) || (__GNUC__ > 4))
4602 #pragma GCC diagnostic ignored \"-Wstrict-prototypes\"
4603 #endif
4604
4605 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4606 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4607 /* DATA imports from DLLs on WIN32 can't be const, because runtime
4608 relocations are performed -- see ld's documentation on pseudo-relocs. */
4609 # define LT_DLSYM_CONST
4610 #elif defined __osf__
4611 /* This system does not cope well with relocations in const data. */
4612 # define LT_DLSYM_CONST
4613 #else
4614 # define LT_DLSYM_CONST const
4615 #endif
4616
4617 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
4618
4619 /* External symbol declarations for the compiler. */\
4620 "
4621
4622 if test yes = "$dlself"; then
4623 func_verbose "generating symbol list for '$output'"
4624
4625 $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
4626
4627 # Add our own program objects to the symbol list.
4628 progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP`
4629 for progfile in $progfiles; do
4630 func_to_tool_file "$progfile" func_convert_file_msys_to_w32
4631 func_verbose "extracting global C symbols from '$func_to_tool_file_result'"
4632 $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'"
4633 done
4634
4635 if test -n "$exclude_expsyms"; then
4636 $opt_dry_run || {
4637 eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
4638 eval '$MV "$nlist"T "$nlist"'
4639 }
4640 fi
4641
4642 if test -n "$export_symbols_regex"; then
4643 $opt_dry_run || {
4644 eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
4645 eval '$MV "$nlist"T "$nlist"'
4646 }
4647 fi
4648
4649 # Prepare the list of exported symbols
4650 if test -z "$export_symbols"; then
4651 export_symbols=$output_objdir/$outputname.exp
4652 $opt_dry_run || {
4653 $RM $export_symbols
4654 eval "$SED -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
4655 case $host in
4656 *cygwin* | *mingw* | *cegcc* )
4657 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4658 eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
4659 ;;
4660 esac
4661 }
4662 else
4663 $opt_dry_run || {
4664 eval "$SED -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
4665 eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
4666 eval '$MV "$nlist"T "$nlist"'
4667 case $host in
4668 *cygwin* | *mingw* | *cegcc* )
4669 eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
4670 eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
4671 ;;
4672 esac
4673 }
4674 fi
4675 fi
4676
4677 for dlprefile in $dlprefiles; do
4678 func_verbose "extracting global C symbols from '$dlprefile'"
4679 func_basename "$dlprefile"
4680 name=$func_basename_result
4681 case $host in
4682 *cygwin* | *mingw* | *cegcc* )
4683 # if an import library, we need to obtain dlname
4684 if func_win32_import_lib_p "$dlprefile"; then
4685 func_tr_sh "$dlprefile"
4686 eval "curr_lafile=\$libfile_$func_tr_sh_result"
4687 dlprefile_dlbasename=
4688 if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then
4689 # Use subshell, to avoid clobbering current variable values
4690 dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"`
4691 if test -n "$dlprefile_dlname"; then
4692 func_basename "$dlprefile_dlname"
4693 dlprefile_dlbasename=$func_basename_result
4694 else
4695 # no lafile. user explicitly requested -dlpreopen <import library>.
4696 $sharedlib_from_linklib_cmd "$dlprefile"
4697 dlprefile_dlbasename=$sharedlib_from_linklib_result
4698 fi
4699 fi
4700 $opt_dry_run || {
4701 if test -n "$dlprefile_dlbasename"; then
4702 eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"'
4703 else
4704 func_warning "Could not compute DLL name from $name"
4705 eval '$ECHO ": $name " >> "$nlist"'
4706 fi
4707 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
4708 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe |
4709 $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'"
4710 }
4711 else # not an import lib
4712 $opt_dry_run || {
4713 eval '$ECHO ": $name " >> "$nlist"'
4714 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
4715 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4716 }
4717 fi
4718 ;;
4719 *)
4720 $opt_dry_run || {
4721 eval '$ECHO ": $name " >> "$nlist"'
4722 func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32
4723 eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'"
4724 }
4725 ;;
4726 esac
4727 done
4728
4729 $opt_dry_run || {
4730 # Make sure we have at least an empty file.
4731 test -f "$nlist" || : > "$nlist"
4732
4733 if test -n "$exclude_expsyms"; then
4734 $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
4735 $MV "$nlist"T "$nlist"
4736 fi
4737
4738 # Try sorting and uniquifying the output.
4739 if $GREP -v "^: " < "$nlist" |
4740 if sort -k 3 </dev/null >/dev/null 2>&1; then
4741 sort -k 3
4742 else
4743 sort +2
4744 fi |
4745 uniq > "$nlist"S; then
4746 :
4747 else
4748 $GREP -v "^: " < "$nlist" > "$nlist"S
4749 fi
4750
4751 if test -f "$nlist"S; then
4752 eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
4753 else
4754 echo '/* NONE */' >> "$output_objdir/$my_dlsyms"
4755 fi
4756
4757 func_show_eval '$RM "${nlist}I"'
4758 if test -n "$global_symbol_to_import"; then
4759 eval "$global_symbol_to_import"' < "$nlist"S > "$nlist"I'
4760 fi
4761
4762 echo >> "$output_objdir/$my_dlsyms" "\
4763
4764 /* The mapping between symbol names and symbols. */
4765 typedef struct {
4766 const char *name;
4767 void *address;
4768 } lt_dlsymlist;
4769 extern LT_DLSYM_CONST lt_dlsymlist
4770 lt_${my_prefix}_LTX_preloaded_symbols[];\
4771 "
4772
4773 if test -s "$nlist"I; then
4774 echo >> "$output_objdir/$my_dlsyms" "\
4775 static void lt_syminit(void)
4776 {
4777 LT_DLSYM_CONST lt_dlsymlist *symbol = lt_${my_prefix}_LTX_preloaded_symbols;
4778 for (; symbol->name; ++symbol)
4779 {"
4780 $SED 's/.*/ if (STREQ (symbol->name, \"&\")) symbol->address = (void *) \&&;/' < "$nlist"I >> "$output_objdir/$my_dlsyms"
4781 echo >> "$output_objdir/$my_dlsyms" "\
4782 }
4783 }"
4784 fi
4785 echo >> "$output_objdir/$my_dlsyms" "\
4786 LT_DLSYM_CONST lt_dlsymlist
4787 lt_${my_prefix}_LTX_preloaded_symbols[] =
4788 { {\"$my_originator\", (void *) 0},"
4789
4790 if test -s "$nlist"I; then
4791 echo >> "$output_objdir/$my_dlsyms" "\
4792 {\"@INIT@\", (void *) &lt_syminit},"
4793 fi
4794
4795 case $need_lib_prefix in
4796 no)
4797 eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
4798 ;;
4799 *)
4800 eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
4801 ;;
4802 esac
4803 echo >> "$output_objdir/$my_dlsyms" "\
4804 {0, (void *) 0}
4805 };
4806
4807 /* This works around a problem in FreeBSD linker */
4808 #ifdef FREEBSD_WORKAROUND
4809 static const void *lt_preloaded_setup() {
4810 return lt_${my_prefix}_LTX_preloaded_symbols;
4811 }
4812 #endif
4813
4814 #ifdef __cplusplus
4815 }
4816 #endif\
4817 "
4818 } # !$opt_dry_run
4819
4820 pic_flag_for_symtable=
4821 case "$compile_command " in
4822 *" -static "*) ;;
4823 *)
4824 case $host in
4825 # compiling the symbol table file with pic_flag works around
4826 # a FreeBSD bug that causes programs to crash when -lm is
4827 # linked before any other PIC object. But we must not use
4828 # pic_flag when linking with -static. The problem exists in
4829 # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
4830 *-*-freebsd2.*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
4831 pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
4832 *-*-hpux*)
4833 pic_flag_for_symtable=" $pic_flag" ;;
4834 *)
4835 $my_pic_p && pic_flag_for_symtable=" $pic_flag"
4836 ;;
4837 esac
4838 ;;
4839 esac
4840 symtab_cflags=
4841 for arg in $LTCFLAGS; do
4842 case $arg in
4843 -pie | -fpie | -fPIE) ;;
4844 *) func_append symtab_cflags " $arg" ;;
4845 esac
4846 done
4847
4848 # Now compile the dynamic symbol file.
4849 func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
4850
4851 # Clean up the generated files.
4852 func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T" "${nlist}I"'
4853
4854 # Transform the symbol file into the correct name.
4855 symfileobj=$output_objdir/${my_outputname}S.$objext
4856 case $host in
4857 *cygwin* | *mingw* | *cegcc* )
4858 if test -f "$output_objdir/$my_outputname.def"; then
4859 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
4860 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
4861 else
4862 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
4863 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
4864 fi
4865 ;;
4866 *)
4867 compile_command=`$ECHO "$compile_command" | $SED "s%@SYMFILE@%$symfileobj%"`
4868 finalize_command=`$ECHO "$finalize_command" | $SED "s%@SYMFILE@%$symfileobj%"`
4869 ;;
4870 esac
4871 ;;
4872 *)
4873 func_fatal_error "unknown suffix for '$my_dlsyms'"
4874 ;;
4875 esac
4876 else
4877 # We keep going just in case the user didn't refer to
4878 # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
4879 # really was required.
4880
4881 # Nullify the symbol file.
4882 compile_command=`$ECHO "$compile_command" | $SED "s% @SYMFILE@%%"`
4883 finalize_command=`$ECHO "$finalize_command" | $SED "s% @SYMFILE@%%"`
4884 fi
4885 }
4886
4887 # func_cygming_gnu_implib_p ARG
4888 # This predicate returns with zero status (TRUE) if
4889 # ARG is a GNU/binutils-style import library. Returns
4890 # with nonzero status (FALSE) otherwise.
4891 func_cygming_gnu_implib_p ()
4892 {
4893 $debug_cmd
4894
4895 func_to_tool_file "$1" func_convert_file_msys_to_w32
4896 func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'`
4897 test -n "$func_cygming_gnu_implib_tmp"
4898 }
4899
4900 # func_cygming_ms_implib_p ARG
4901 # This predicate returns with zero status (TRUE) if
4902 # ARG is an MS-style import library. Returns
4903 # with nonzero status (FALSE) otherwise.
4904 func_cygming_ms_implib_p ()
4905 {
4906 $debug_cmd
4907
4908 func_to_tool_file "$1" func_convert_file_msys_to_w32
4909 func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'`
4910 test -n "$func_cygming_ms_implib_tmp"
4911 }
4912
4913 # func_win32_libid arg
4914 # return the library type of file 'arg'
4915 #
4916 # Need a lot of goo to handle *both* DLLs and import libs
4917 # Has to be a shell function in order to 'eat' the argument
4918 # that is supplied when $file_magic_command is called.
4919 # Despite the name, also deal with 64 bit binaries.
4920 func_win32_libid ()
4921 {
4922 $debug_cmd
4923
4924 win32_libid_type=unknown
4925 win32_fileres=`file -L $1 2>/dev/null`
4926 case $win32_fileres in
4927 *ar\ archive\ import\ library*) # definitely import
4928 win32_libid_type="x86 archive import"
4929 ;;
4930 *ar\ archive*) # could be an import, or static
4931 # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD.
4932 if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
4933 $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then
4934 case $nm_interface in
4935 "MS dumpbin")
4936 if func_cygming_ms_implib_p "$1" ||
4937 func_cygming_gnu_implib_p "$1"
4938 then
4939 win32_nmres=import
4940 else
4941 win32_nmres=
4942 fi
4943 ;;
4944 *)
4945 func_to_tool_file "$1" func_convert_file_msys_to_w32
4946 win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" |
4947 $SED -n -e '
4948 1,100{
4949 / I /{
4950 s|.*|import|
4951 p
4952 q
4953 }
4954 }'`
4955 ;;
4956 esac
4957 case $win32_nmres in
4958 import*) win32_libid_type="x86 archive import";;
4959 *) win32_libid_type="x86 archive static";;
4960 esac
4961 fi
4962 ;;
4963 *DLL*)
4964 win32_libid_type="x86 DLL"
4965 ;;
4966 *executable*) # but shell scripts are "executable" too...
4967 case $win32_fileres in
4968 *MS\ Windows\ PE\ Intel*)
4969 win32_libid_type="x86 DLL"
4970 ;;
4971 esac
4972 ;;
4973 esac
4974 $ECHO "$win32_libid_type"
4975 }
4976
4977 # func_cygming_dll_for_implib ARG
4978 #
4979 # Platform-specific function to extract the
4980 # name of the DLL associated with the specified
4981 # import library ARG.
4982 # Invoked by eval'ing the libtool variable
4983 # $sharedlib_from_linklib_cmd
4984 # Result is available in the variable
4985 # $sharedlib_from_linklib_result
4986 func_cygming_dll_for_implib ()
4987 {
4988 $debug_cmd
4989
4990 sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"`
4991 }
4992
4993 # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs
4994 #
4995 # The is the core of a fallback implementation of a
4996 # platform-specific function to extract the name of the
4997 # DLL associated with the specified import library LIBNAME.
4998 #
4999 # SECTION_NAME is either .idata$6 or .idata$7, depending
5000 # on the platform and compiler that created the implib.
5001 #
5002 # Echos the name of the DLL associated with the
5003 # specified import library.
5004 func_cygming_dll_for_implib_fallback_core ()
5005 {
5006 $debug_cmd
5007
5008 match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"`
5009 $OBJDUMP -s --section "$1" "$2" 2>/dev/null |
5010 $SED '/^Contents of section '"$match_literal"':/{
5011 # Place marker at beginning of archive member dllname section
5012 s/.*/====MARK====/
5013 p
5014 d
5015 }
5016 # These lines can sometimes be longer than 43 characters, but
5017 # are always uninteresting
5018 /:[ ]*file format pe[i]\{,1\}-/d
5019 /^In archive [^:]*:/d
5020 # Ensure marker is printed
5021 /^====MARK====/p
5022 # Remove all lines with less than 43 characters
5023 /^.\{43\}/!d
5024 # From remaining lines, remove first 43 characters
5025 s/^.\{43\}//' |
5026 $SED -n '
5027 # Join marker and all lines until next marker into a single line
5028 /^====MARK====/ b para
5029 H
5030 $ b para
5031 b
5032 :para
5033 x
5034 s/\n//g
5035 # Remove the marker
5036 s/^====MARK====//
5037 # Remove trailing dots and whitespace
5038 s/[\. \t]*$//
5039 # Print
5040 /./p' |
5041 # we now have a list, one entry per line, of the stringified
5042 # contents of the appropriate section of all members of the
5043 # archive that possess that section. Heuristic: eliminate
5044 # all those that have a first or second character that is
5045 # a '.' (that is, objdump's representation of an unprintable
5046 # character.) This should work for all archives with less than
5047 # 0x302f exports -- but will fail for DLLs whose name actually
5048 # begins with a literal '.' or a single character followed by
5049 # a '.'.
5050 #
5051 # Of those that remain, print the first one.
5052 $SED -e '/^\./d;/^.\./d;q'
5053 }
5054
5055 # func_cygming_dll_for_implib_fallback ARG
5056 # Platform-specific function to extract the
5057 # name of the DLL associated with the specified
5058 # import library ARG.
5059 #
5060 # This fallback implementation is for use when $DLLTOOL
5061 # does not support the --identify-strict option.
5062 # Invoked by eval'ing the libtool variable
5063 # $sharedlib_from_linklib_cmd
5064 # Result is available in the variable
5065 # $sharedlib_from_linklib_result
5066 func_cygming_dll_for_implib_fallback ()
5067 {
5068 $debug_cmd
5069
5070 if func_cygming_gnu_implib_p "$1"; then
5071 # binutils import library
5072 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"`
5073 elif func_cygming_ms_implib_p "$1"; then
5074 # ms-generated import library
5075 sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"`
5076 else
5077 # unknown
5078 sharedlib_from_linklib_result=
5079 fi
5080 }
5081
5082
5083 # func_extract_an_archive dir oldlib
5084 func_extract_an_archive ()
5085 {
5086 $debug_cmd
5087
5088 f_ex_an_ar_dir=$1; shift
5089 f_ex_an_ar_oldlib=$1
5090 if test yes = "$lock_old_archive_extraction"; then
5091 lockfile=$f_ex_an_ar_oldlib.lock
5092 until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
5093 func_echo "Waiting for $lockfile to be removed"
5094 sleep 2
5095 done
5096 fi
5097 func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" \
5098 'stat=$?; rm -f "$lockfile"; exit $stat'
5099 if test yes = "$lock_old_archive_extraction"; then
5100 $opt_dry_run || rm -f "$lockfile"
5101 fi
5102 if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
5103 :
5104 else
5105 func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
5106 fi
5107 }
5108
5109
5110 # func_extract_archives gentop oldlib ...
5111 func_extract_archives ()
5112 {
5113 $debug_cmd
5114
5115 my_gentop=$1; shift
5116 my_oldlibs=${1+"$@"}
5117 my_oldobjs=
5118 my_xlib=
5119 my_xabs=
5120 my_xdir=
5121
5122 for my_xlib in $my_oldlibs; do
5123 # Extract the objects.
5124 case $my_xlib in
5125 [\\/]* | [A-Za-z]:[\\/]*) my_xabs=$my_xlib ;;
5126 *) my_xabs=`pwd`"/$my_xlib" ;;
5127 esac
5128 func_basename "$my_xlib"
5129 my_xlib=$func_basename_result
5130 my_xlib_u=$my_xlib
5131 while :; do
5132 case " $extracted_archives " in
5133 *" $my_xlib_u "*)
5134 func_arith $extracted_serial + 1
5135 extracted_serial=$func_arith_result
5136 my_xlib_u=lt$extracted_serial-$my_xlib ;;
5137 *) break ;;
5138 esac
5139 done
5140 extracted_archives="$extracted_archives $my_xlib_u"
5141 my_xdir=$my_gentop/$my_xlib_u
5142
5143 func_mkdir_p "$my_xdir"
5144
5145 case $host in
5146 *-darwin*)
5147 func_verbose "Extracting $my_xabs"
5148 # Do not bother doing anything if just a dry run
5149 $opt_dry_run || {
5150 darwin_orig_dir=`pwd`
5151 cd $my_xdir || exit $?
5152 darwin_archive=$my_xabs
5153 darwin_curdir=`pwd`
5154 func_basename "$darwin_archive"
5155 darwin_base_archive=$func_basename_result
5156 darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
5157 if test -n "$darwin_arches"; then
5158 darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
5159 darwin_arch=
5160 func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
5161 for darwin_arch in $darwin_arches; do
5162 func_mkdir_p "unfat-$$/$darwin_base_archive-$darwin_arch"
5163 $LIPO -thin $darwin_arch -output "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive" "$darwin_archive"
5164 cd "unfat-$$/$darwin_base_archive-$darwin_arch"
5165 func_extract_an_archive "`pwd`" "$darwin_base_archive"
5166 cd "$darwin_curdir"
5167 $RM "unfat-$$/$darwin_base_archive-$darwin_arch/$darwin_base_archive"
5168 done # $darwin_arches
5169 ## Okay now we've a bunch of thin objects, gotta fatten them up :)
5170 darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$sed_basename" | sort -u`
5171 darwin_file=
5172 darwin_files=
5173 for darwin_file in $darwin_filelist; do
5174 darwin_files=`find unfat-$$ -name $darwin_file -print | sort | $NL2SP`
5175 $LIPO -create -output "$darwin_file" $darwin_files
5176 done # $darwin_filelist
5177 $RM -rf unfat-$$
5178 cd "$darwin_orig_dir"
5179 else
5180 cd $darwin_orig_dir
5181 func_extract_an_archive "$my_xdir" "$my_xabs"
5182 fi # $darwin_arches
5183 } # !$opt_dry_run
5184 ;;
5185 *)
5186 func_extract_an_archive "$my_xdir" "$my_xabs"
5187 ;;
5188 esac
5189 my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | sort | $NL2SP`
5190 done
5191
5192 func_extract_archives_result=$my_oldobjs
5193 }
5194
5195
5196 # func_emit_wrapper [arg=no]
5197 #
5198 # Emit a libtool wrapper script on stdout.
5199 # Don't directly open a file because we may want to
5200 # incorporate the script contents within a cygwin/mingw
5201 # wrapper executable. Must ONLY be called from within
5202 # func_mode_link because it depends on a number of variables
5203 # set therein.
5204 #
5205 # ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
5206 # variable will take. If 'yes', then the emitted script
5207 # will assume that the directory where it is stored is
5208 # the $objdir directory. This is a cygwin/mingw-specific
5209 # behavior.
5210 func_emit_wrapper ()
5211 {
5212 func_emit_wrapper_arg1=${1-no}
5213
5214 $ECHO "\
5215 #! $SHELL
5216
5217 # $output - temporary wrapper script for $objdir/$outputname
5218 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
5219 #
5220 # The $output program cannot be directly executed until all the libtool
5221 # libraries that it depends on are installed.
5222 #
5223 # This wrapper script should never be moved out of the build directory.
5224 # If it is, it will not operate correctly.
5225
5226 # Sed substitution that helps us do robust quoting. It backslashifies
5227 # metacharacters that are still active within double-quoted strings.
5228 sed_quote_subst='$sed_quote_subst'
5229
5230 # Be Bourne compatible
5231 if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
5232 emulate sh
5233 NULLCMD=:
5234 # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
5235 # is contrary to our usage. Disable this feature.
5236 alias -g '\${1+\"\$@\"}'='\"\$@\"'
5237 setopt NO_GLOB_SUBST
5238 else
5239 case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
5240 fi
5241 BIN_SH=xpg4; export BIN_SH # for Tru64
5242 DUALCASE=1; export DUALCASE # for MKS sh
5243
5244 # The HP-UX ksh and POSIX shell print the target directory to stdout
5245 # if CDPATH is set.
5246 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5247
5248 relink_command=\"$relink_command\"
5249
5250 # This environment variable determines our operation mode.
5251 if test \"\$libtool_install_magic\" = \"$magic\"; then
5252 # install mode needs the following variables:
5253 generated_by_libtool_version='$macro_version'
5254 notinst_deplibs='$notinst_deplibs'
5255 else
5256 # When we are sourced in execute mode, \$file and \$ECHO are already set.
5257 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5258 file=\"\$0\""
5259
5260 qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"`
5261 $ECHO "\
5262
5263 # A function that is used when there is no print builtin or printf.
5264 func_fallback_echo ()
5265 {
5266 eval 'cat <<_LTECHO_EOF
5267 \$1
5268 _LTECHO_EOF'
5269 }
5270 ECHO=\"$qECHO\"
5271 fi
5272
5273 # Very basic option parsing. These options are (a) specific to
5274 # the libtool wrapper, (b) are identical between the wrapper
5275 # /script/ and the wrapper /executable/ that is used only on
5276 # windows platforms, and (c) all begin with the string "--lt-"
5277 # (application programs are unlikely to have options that match
5278 # this pattern).
5279 #
5280 # There are only two supported options: --lt-debug and
5281 # --lt-dump-script. There is, deliberately, no --lt-help.
5282 #
5283 # The first argument to this parsing function should be the
5284 # script's $0 value, followed by "$@".
5285 lt_option_debug=
5286 func_parse_lt_options ()
5287 {
5288 lt_script_arg0=\$0
5289 shift
5290 for lt_opt
5291 do
5292 case \"\$lt_opt\" in
5293 --lt-debug) lt_option_debug=1 ;;
5294 --lt-dump-script)
5295 lt_dump_D=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%/[^/]*$%%'\`
5296 test \"X\$lt_dump_D\" = \"X\$lt_script_arg0\" && lt_dump_D=.
5297 lt_dump_F=\`\$ECHO \"X\$lt_script_arg0\" | $SED -e 's/^X//' -e 's%^.*/%%'\`
5298 cat \"\$lt_dump_D/\$lt_dump_F\"
5299 exit 0
5300 ;;
5301 --lt-*)
5302 \$ECHO \"Unrecognized --lt- option: '\$lt_opt'\" 1>&2
5303 exit 1
5304 ;;
5305 esac
5306 done
5307
5308 # Print the debug banner immediately:
5309 if test -n \"\$lt_option_debug\"; then
5310 echo \"$outputname:$output:\$LINENO: libtool wrapper (GNU $PACKAGE) $VERSION\" 1>&2
5311 fi
5312 }
5313
5314 # Used when --lt-debug. Prints its arguments to stdout
5315 # (redirection is the responsibility of the caller)
5316 func_lt_dump_args ()
5317 {
5318 lt_dump_args_N=1;
5319 for lt_arg
5320 do
5321 \$ECHO \"$outputname:$output:\$LINENO: newargv[\$lt_dump_args_N]: \$lt_arg\"
5322 lt_dump_args_N=\`expr \$lt_dump_args_N + 1\`
5323 done
5324 }
5325
5326 # Core function for launching the target application
5327 func_exec_program_core ()
5328 {
5329 "
5330 case $host in
5331 # Backslashes separate directories on plain windows
5332 *-*-mingw | *-*-os2* | *-cegcc*)
5333 $ECHO "\
5334 if test -n \"\$lt_option_debug\"; then
5335 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir\\\\\$program\" 1>&2
5336 func_lt_dump_args \${1+\"\$@\"} 1>&2
5337 fi
5338 exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
5339 "
5340 ;;
5341
5342 *)
5343 $ECHO "\
5344 if test -n \"\$lt_option_debug\"; then
5345 \$ECHO \"$outputname:$output:\$LINENO: newargv[0]: \$progdir/\$program\" 1>&2
5346 func_lt_dump_args \${1+\"\$@\"} 1>&2
5347 fi
5348 exec \"\$progdir/\$program\" \${1+\"\$@\"}
5349 "
5350 ;;
5351 esac
5352 $ECHO "\
5353 \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
5354 exit 1
5355 }
5356
5357 # A function to encapsulate launching the target application
5358 # Strips options in the --lt-* namespace from \$@ and
5359 # launches target application with the remaining arguments.
5360 func_exec_program ()
5361 {
5362 case \" \$* \" in
5363 *\\ --lt-*)
5364 for lt_wr_arg
5365 do
5366 case \$lt_wr_arg in
5367 --lt-*) ;;
5368 *) set x \"\$@\" \"\$lt_wr_arg\"; shift;;
5369 esac
5370 shift
5371 done ;;
5372 esac
5373 func_exec_program_core \${1+\"\$@\"}
5374 }
5375
5376 # Parse options
5377 func_parse_lt_options \"\$0\" \${1+\"\$@\"}
5378
5379 # Find the directory that this script lives in.
5380 thisdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*$%%'\`
5381 test \"x\$thisdir\" = \"x\$file\" && thisdir=.
5382
5383 # Follow symbolic links until we get to the real thisdir.
5384 file=\`ls -ld \"\$file\" | $SED -n 's/.*-> //p'\`
5385 while test -n \"\$file\"; do
5386 destdir=\`\$ECHO \"\$file\" | $SED 's%/[^/]*\$%%'\`
5387
5388 # If there was a directory component, then change thisdir.
5389 if test \"x\$destdir\" != \"x\$file\"; then
5390 case \"\$destdir\" in
5391 [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
5392 *) thisdir=\"\$thisdir/\$destdir\" ;;
5393 esac
5394 fi
5395
5396 file=\`\$ECHO \"\$file\" | $SED 's%^.*/%%'\`
5397 file=\`ls -ld \"\$thisdir/\$file\" | $SED -n 's/.*-> //p'\`
5398 done
5399
5400 # Usually 'no', except on cygwin/mingw when embedded into
5401 # the cwrapper.
5402 WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_arg1
5403 if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
5404 # special case for '.'
5405 if test \"\$thisdir\" = \".\"; then
5406 thisdir=\`pwd\`
5407 fi
5408 # remove .libs from thisdir
5409 case \"\$thisdir\" in
5410 *[\\\\/]$objdir ) thisdir=\`\$ECHO \"\$thisdir\" | $SED 's%[\\\\/][^\\\\/]*$%%'\` ;;
5411 $objdir ) thisdir=. ;;
5412 esac
5413 fi
5414
5415 # Try to get the absolute directory name.
5416 absdir=\`cd \"\$thisdir\" && pwd\`
5417 test -n \"\$absdir\" && thisdir=\"\$absdir\"
5418 "
5419
5420 if test yes = "$fast_install"; then
5421 $ECHO "\
5422 program=lt-'$outputname'$exeext
5423 progdir=\"\$thisdir/$objdir\"
5424
5425 if test ! -f \"\$progdir/\$program\" ||
5426 { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | $SED 1q\`; \\
5427 test \"X\$file\" != \"X\$progdir/\$program\"; }; then
5428
5429 file=\"\$\$-\$program\"
5430
5431 if test ! -d \"\$progdir\"; then
5432 $MKDIR \"\$progdir\"
5433 else
5434 $RM \"\$progdir/\$file\"
5435 fi"
5436
5437 $ECHO "\
5438
5439 # relink executable if necessary
5440 if test -n \"\$relink_command\"; then
5441 if relink_command_output=\`eval \$relink_command 2>&1\`; then :
5442 else
5443 \$ECHO \"\$relink_command_output\" >&2
5444 $RM \"\$progdir/\$file\"
5445 exit 1
5446 fi
5447 fi
5448
5449 $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
5450 { $RM \"\$progdir/\$program\";
5451 $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
5452 $RM \"\$progdir/\$file\"
5453 fi"
5454 else
5455 $ECHO "\
5456 program='$outputname'
5457 progdir=\"\$thisdir/$objdir\"
5458 "
5459 fi
5460
5461 $ECHO "\
5462
5463 if test -f \"\$progdir/\$program\"; then"
5464
5465 # fixup the dll searchpath if we need to.
5466 #
5467 # Fix the DLL searchpath if we need to. Do this before prepending
5468 # to shlibpath, because on Windows, both are PATH and uninstalled
5469 # libraries must come first.
5470 if test -n "$dllsearchpath"; then
5471 $ECHO "\
5472 # Add the dll search path components to the executable PATH
5473 PATH=$dllsearchpath:\$PATH
5474 "
5475 fi
5476
5477 # Export our shlibpath_var if we have one.
5478 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5479 $ECHO "\
5480 # Add our own library path to $shlibpath_var
5481 $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
5482
5483 # Some systems cannot cope with colon-terminated $shlibpath_var
5484 # The second colon is a workaround for a bug in BeOS R4 sed
5485 $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\`
5486
5487 export $shlibpath_var
5488 "
5489 fi
5490
5491 $ECHO "\
5492 if test \"\$libtool_execute_magic\" != \"$magic\"; then
5493 # Run the actual program with our arguments.
5494 func_exec_program \${1+\"\$@\"}
5495 fi
5496 else
5497 # The program doesn't exist.
5498 \$ECHO \"\$0: error: '\$progdir/\$program' does not exist\" 1>&2
5499 \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
5500 \$ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
5501 exit 1
5502 fi
5503 fi\
5504 "
5505 }
5506
5507
5508 # func_emit_cwrapperexe_src
5509 # emit the source code for a wrapper executable on stdout
5510 # Must ONLY be called from within func_mode_link because
5511 # it depends on a number of variable set therein.
5512 func_emit_cwrapperexe_src ()
5513 {
5514 cat <<EOF
5515
5516 /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
5517 Generated by $PROGRAM (GNU $PACKAGE) $VERSION
5518
5519 The $output program cannot be directly executed until all the libtool
5520 libraries that it depends on are installed.
5521
5522 This wrapper executable should never be moved out of the build directory.
5523 If it is, it will not operate correctly.
5524 */
5525 EOF
5526 cat <<"EOF"
5527 #ifdef _MSC_VER
5528 # define _CRT_SECURE_NO_DEPRECATE 1
5529 #endif
5530 #include <stdio.h>
5531 #include <stdlib.h>
5532 #ifdef _MSC_VER
5533 # include <direct.h>
5534 # include <process.h>
5535 # include <io.h>
5536 #else
5537 # include <unistd.h>
5538 # include <stdint.h>
5539 # ifdef __CYGWIN__
5540 # include <io.h>
5541 # endif
5542 #endif
5543 #include <malloc.h>
5544 #include <stdarg.h>
5545 #include <assert.h>
5546 #include <string.h>
5547 #include <ctype.h>
5548 #include <errno.h>
5549 #include <fcntl.h>
5550 #include <sys/stat.h>
5551
5552 #define STREQ(s1, s2) (strcmp ((s1), (s2)) == 0)
5553
5554 /* declarations of non-ANSI functions */
5555 #if defined __MINGW32__
5556 # ifdef __STRICT_ANSI__
5557 int _putenv (const char *);
5558 # endif
5559 #elif defined __CYGWIN__
5560 # ifdef __STRICT_ANSI__
5561 char *realpath (const char *, char *);
5562 int putenv (char *);
5563 int setenv (const char *, const char *, int);
5564 # endif
5565 /* #elif defined other_platform || defined ... */
5566 #endif
5567
5568 /* portability defines, excluding path handling macros */
5569 #if defined _MSC_VER
5570 # define setmode _setmode
5571 # define stat _stat
5572 # define chmod _chmod
5573 # define getcwd _getcwd
5574 # define putenv _putenv
5575 # define S_IXUSR _S_IEXEC
5576 #elif defined __MINGW32__
5577 # define setmode _setmode
5578 # define stat _stat
5579 # define chmod _chmod
5580 # define getcwd _getcwd
5581 # define putenv _putenv
5582 #elif defined __CYGWIN__
5583 # define HAVE_SETENV
5584 # define FOPEN_WB "wb"
5585 /* #elif defined other platforms ... */
5586 #endif
5587
5588 #if defined PATH_MAX
5589 # define LT_PATHMAX PATH_MAX
5590 #elif defined MAXPATHLEN
5591 # define LT_PATHMAX MAXPATHLEN
5592 #else
5593 # define LT_PATHMAX 1024
5594 #endif
5595
5596 #ifndef S_IXOTH
5597 # define S_IXOTH 0
5598 #endif
5599 #ifndef S_IXGRP
5600 # define S_IXGRP 0
5601 #endif
5602
5603 /* path handling portability macros */
5604 #ifndef DIR_SEPARATOR
5605 # define DIR_SEPARATOR '/'
5606 # define PATH_SEPARATOR ':'
5607 #endif
5608
5609 #if defined _WIN32 || defined __MSDOS__ || defined __DJGPP__ || \
5610 defined __OS2__
5611 # define HAVE_DOS_BASED_FILE_SYSTEM
5612 # define FOPEN_WB "wb"
5613 # ifndef DIR_SEPARATOR_2
5614 # define DIR_SEPARATOR_2 '\\'
5615 # endif
5616 # ifndef PATH_SEPARATOR_2
5617 # define PATH_SEPARATOR_2 ';'
5618 # endif
5619 #endif
5620
5621 #ifndef DIR_SEPARATOR_2
5622 # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
5623 #else /* DIR_SEPARATOR_2 */
5624 # define IS_DIR_SEPARATOR(ch) \
5625 (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
5626 #endif /* DIR_SEPARATOR_2 */
5627
5628 #ifndef PATH_SEPARATOR_2
5629 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
5630 #else /* PATH_SEPARATOR_2 */
5631 # define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
5632 #endif /* PATH_SEPARATOR_2 */
5633
5634 #ifndef FOPEN_WB
5635 # define FOPEN_WB "w"
5636 #endif
5637 #ifndef _O_BINARY
5638 # define _O_BINARY 0
5639 #endif
5640
5641 #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
5642 #define XFREE(stale) do { \
5643 if (stale) { free (stale); stale = 0; } \
5644 } while (0)
5645
5646 #if defined LT_DEBUGWRAPPER
5647 static int lt_debug = 1;
5648 #else
5649 static int lt_debug = 0;
5650 #endif
5651
5652 const char *program_name = "libtool-wrapper"; /* in case xstrdup fails */
5653
5654 void *xmalloc (size_t num);
5655 char *xstrdup (const char *string);
5656 const char *base_name (const char *name);
5657 char *find_executable (const char *wrapper);
5658 char *chase_symlinks (const char *pathspec);
5659 int make_executable (const char *path);
5660 int check_executable (const char *path);
5661 char *strendzap (char *str, const char *pat);
5662 void lt_debugprintf (const char *file, int line, const char *fmt, ...);
5663 void lt_fatal (const char *file, int line, const char *message, ...);
5664 static const char *nonnull (const char *s);
5665 static const char *nonempty (const char *s);
5666 void lt_setenv (const char *name, const char *value);
5667 char *lt_extend_str (const char *orig_value, const char *add, int to_end);
5668 void lt_update_exe_path (const char *name, const char *value);
5669 void lt_update_lib_path (const char *name, const char *value);
5670 char **prepare_spawn (char **argv);
5671 void lt_dump_script (FILE *f);
5672 EOF
5673
5674 cat <<EOF
5675 #if __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5676 # define externally_visible volatile
5677 #else
5678 # define externally_visible __attribute__((externally_visible)) volatile
5679 #endif
5680 externally_visible const char * MAGIC_EXE = "$magic_exe";
5681 const char * LIB_PATH_VARNAME = "$shlibpath_var";
5682 EOF
5683
5684 if test yes = "$shlibpath_overrides_runpath" && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
5685 func_to_host_path "$temp_rpath"
5686 cat <<EOF
5687 const char * LIB_PATH_VALUE = "$func_to_host_path_result";
5688 EOF
5689 else
5690 cat <<"EOF"
5691 const char * LIB_PATH_VALUE = "";
5692 EOF
5693 fi
5694
5695 if test -n "$dllsearchpath"; then
5696 func_to_host_path "$dllsearchpath:"
5697 cat <<EOF
5698 const char * EXE_PATH_VARNAME = "PATH";
5699 const char * EXE_PATH_VALUE = "$func_to_host_path_result";
5700 EOF
5701 else
5702 cat <<"EOF"
5703 const char * EXE_PATH_VARNAME = "";
5704 const char * EXE_PATH_VALUE = "";
5705 EOF
5706 fi
5707
5708 if test yes = "$fast_install"; then
5709 cat <<EOF
5710 const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
5711 EOF
5712 else
5713 cat <<EOF
5714 const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
5715 EOF
5716 fi
5717
5718
5719 cat <<"EOF"
5720
5721 #define LTWRAPPER_OPTION_PREFIX "--lt-"
5722
5723 static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
5724 static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
5725 static const char *debug_opt = LTWRAPPER_OPTION_PREFIX "debug";
5726
5727 int
5728 main (int argc, char *argv[])
5729 {
5730 char **newargz;
5731 int newargc;
5732 char *tmp_pathspec;
5733 char *actual_cwrapper_path;
5734 char *actual_cwrapper_name;
5735 char *target_name;
5736 char *lt_argv_zero;
5737 int rval = 127;
5738
5739 int i;
5740
5741 program_name = (char *) xstrdup (base_name (argv[0]));
5742 newargz = XMALLOC (char *, (size_t) argc + 1);
5743
5744 /* very simple arg parsing; don't want to rely on getopt
5745 * also, copy all non cwrapper options to newargz, except
5746 * argz[0], which is handled differently
5747 */
5748 newargc=0;
5749 for (i = 1; i < argc; i++)
5750 {
5751 if (STREQ (argv[i], dumpscript_opt))
5752 {
5753 EOF
5754 case $host in
5755 *mingw* | *cygwin* )
5756 # make stdout use "unix" line endings
5757 echo " setmode(1,_O_BINARY);"
5758 ;;
5759 esac
5760
5761 cat <<"EOF"
5762 lt_dump_script (stdout);
5763 return 0;
5764 }
5765 if (STREQ (argv[i], debug_opt))
5766 {
5767 lt_debug = 1;
5768 continue;
5769 }
5770 if (STREQ (argv[i], ltwrapper_option_prefix))
5771 {
5772 /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
5773 namespace, but it is not one of the ones we know about and
5774 have already dealt with, above (inluding dump-script), then
5775 report an error. Otherwise, targets might begin to believe
5776 they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
5777 namespace. The first time any user complains about this, we'll
5778 need to make LTWRAPPER_OPTION_PREFIX a configure-time option
5779 or a configure.ac-settable value.
5780 */
5781 lt_fatal (__FILE__, __LINE__,
5782 "unrecognized %s option: '%s'",
5783 ltwrapper_option_prefix, argv[i]);
5784 }
5785 /* otherwise ... */
5786 newargz[++newargc] = xstrdup (argv[i]);
5787 }
5788 newargz[++newargc] = NULL;
5789
5790 EOF
5791 cat <<EOF
5792 /* The GNU banner must be the first non-error debug message */
5793 lt_debugprintf (__FILE__, __LINE__, "libtool wrapper (GNU $PACKAGE) $VERSION\n");
5794 EOF
5795 cat <<"EOF"
5796 lt_debugprintf (__FILE__, __LINE__, "(main) argv[0]: %s\n", argv[0]);
5797 lt_debugprintf (__FILE__, __LINE__, "(main) program_name: %s\n", program_name);
5798
5799 tmp_pathspec = find_executable (argv[0]);
5800 if (tmp_pathspec == NULL)
5801 lt_fatal (__FILE__, __LINE__, "couldn't find %s", argv[0]);
5802 lt_debugprintf (__FILE__, __LINE__,
5803 "(main) found exe (before symlink chase) at: %s\n",
5804 tmp_pathspec);
5805
5806 actual_cwrapper_path = chase_symlinks (tmp_pathspec);
5807 lt_debugprintf (__FILE__, __LINE__,
5808 "(main) found exe (after symlink chase) at: %s\n",
5809 actual_cwrapper_path);
5810 XFREE (tmp_pathspec);
5811
5812 actual_cwrapper_name = xstrdup (base_name (actual_cwrapper_path));
5813 strendzap (actual_cwrapper_path, actual_cwrapper_name);
5814
5815 /* wrapper name transforms */
5816 strendzap (actual_cwrapper_name, ".exe");
5817 tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
5818 XFREE (actual_cwrapper_name);
5819 actual_cwrapper_name = tmp_pathspec;
5820 tmp_pathspec = 0;
5821
5822 /* target_name transforms -- use actual target program name; might have lt- prefix */
5823 target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
5824 strendzap (target_name, ".exe");
5825 tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
5826 XFREE (target_name);
5827 target_name = tmp_pathspec;
5828 tmp_pathspec = 0;
5829
5830 lt_debugprintf (__FILE__, __LINE__,
5831 "(main) libtool target name: %s\n",
5832 target_name);
5833 EOF
5834
5835 cat <<EOF
5836 newargz[0] =
5837 XMALLOC (char, (strlen (actual_cwrapper_path) +
5838 strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
5839 strcpy (newargz[0], actual_cwrapper_path);
5840 strcat (newargz[0], "$objdir");
5841 strcat (newargz[0], "/");
5842 EOF
5843
5844 cat <<"EOF"
5845 /* stop here, and copy so we don't have to do this twice */
5846 tmp_pathspec = xstrdup (newargz[0]);
5847
5848 /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
5849 strcat (newargz[0], actual_cwrapper_name);
5850
5851 /* DO want the lt- prefix here if it exists, so use target_name */
5852 lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
5853 XFREE (tmp_pathspec);
5854 tmp_pathspec = NULL;
5855 EOF
5856
5857 case $host_os in
5858 mingw*)
5859 cat <<"EOF"
5860 {
5861 char* p;
5862 while ((p = strchr (newargz[0], '\\')) != NULL)
5863 {
5864 *p = '/';
5865 }
5866 while ((p = strchr (lt_argv_zero, '\\')) != NULL)
5867 {
5868 *p = '/';
5869 }
5870 }
5871 EOF
5872 ;;
5873 esac
5874
5875 cat <<"EOF"
5876 XFREE (target_name);
5877 XFREE (actual_cwrapper_path);
5878 XFREE (actual_cwrapper_name);
5879
5880 lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
5881 lt_setenv ("DUALCASE", "1"); /* for MSK sh */
5882 /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must
5883 be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath)
5884 because on Windows, both *_VARNAMEs are PATH but uninstalled
5885 libraries must come first. */
5886 lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
5887 lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
5888
5889 lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n",
5890 nonnull (lt_argv_zero));
5891 for (i = 0; i < newargc; i++)
5892 {
5893 lt_debugprintf (__FILE__, __LINE__, "(main) newargz[%d]: %s\n",
5894 i, nonnull (newargz[i]));
5895 }
5896
5897 EOF
5898
5899 case $host_os in
5900 mingw*)
5901 cat <<"EOF"
5902 /* execv doesn't actually work on mingw as expected on unix */
5903 newargz = prepare_spawn (newargz);
5904 rval = (int) _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
5905 if (rval == -1)
5906 {
5907 /* failed to start process */
5908 lt_debugprintf (__FILE__, __LINE__,
5909 "(main) failed to launch target \"%s\": %s\n",
5910 lt_argv_zero, nonnull (strerror (errno)));
5911 return 127;
5912 }
5913 return rval;
5914 EOF
5915 ;;
5916 *)
5917 cat <<"EOF"
5918 execv (lt_argv_zero, newargz);
5919 return rval; /* =127, but avoids unused variable warning */
5920 EOF
5921 ;;
5922 esac
5923
5924 cat <<"EOF"
5925 }
5926
5927 void *
5928 xmalloc (size_t num)
5929 {
5930 void *p = (void *) malloc (num);
5931 if (!p)
5932 lt_fatal (__FILE__, __LINE__, "memory exhausted");
5933
5934 return p;
5935 }
5936
5937 char *
5938 xstrdup (const char *string)
5939 {
5940 return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
5941 string) : NULL;
5942 }
5943
5944 const char *
5945 base_name (const char *name)
5946 {
5947 const char *base;
5948
5949 #if defined HAVE_DOS_BASED_FILE_SYSTEM
5950 /* Skip over the disk name in MSDOS pathnames. */
5951 if (isalpha ((unsigned char) name[0]) && name[1] == ':')
5952 name += 2;
5953 #endif
5954
5955 for (base = name; *name; name++)
5956 if (IS_DIR_SEPARATOR (*name))
5957 base = name + 1;
5958 return base;
5959 }
5960
5961 int
5962 check_executable (const char *path)
5963 {
5964 struct stat st;
5965
5966 lt_debugprintf (__FILE__, __LINE__, "(check_executable): %s\n",
5967 nonempty (path));
5968 if ((!path) || (!*path))
5969 return 0;
5970
5971 if ((stat (path, &st) >= 0)
5972 && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
5973 return 1;
5974 else
5975 return 0;
5976 }
5977
5978 int
5979 make_executable (const char *path)
5980 {
5981 int rval = 0;
5982 struct stat st;
5983
5984 lt_debugprintf (__FILE__, __LINE__, "(make_executable): %s\n",
5985 nonempty (path));
5986 if ((!path) || (!*path))
5987 return 0;
5988
5989 if (stat (path, &st) >= 0)
5990 {
5991 rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
5992 }
5993 return rval;
5994 }
5995
5996 /* Searches for the full path of the wrapper. Returns
5997 newly allocated full path name if found, NULL otherwise
5998 Does not chase symlinks, even on platforms that support them.
5999 */
6000 char *
6001 find_executable (const char *wrapper)
6002 {
6003 int has_slash = 0;
6004 const char *p;
6005 const char *p_next;
6006 /* static buffer for getcwd */
6007 char tmp[LT_PATHMAX + 1];
6008 size_t tmp_len;
6009 char *concat_name;
6010
6011 lt_debugprintf (__FILE__, __LINE__, "(find_executable): %s\n",
6012 nonempty (wrapper));
6013
6014 if ((wrapper == NULL) || (*wrapper == '\0'))
6015 return NULL;
6016
6017 /* Absolute path? */
6018 #if defined HAVE_DOS_BASED_FILE_SYSTEM
6019 if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
6020 {
6021 concat_name = xstrdup (wrapper);
6022 if (check_executable (concat_name))
6023 return concat_name;
6024 XFREE (concat_name);
6025 }
6026 else
6027 {
6028 #endif
6029 if (IS_DIR_SEPARATOR (wrapper[0]))
6030 {
6031 concat_name = xstrdup (wrapper);
6032 if (check_executable (concat_name))
6033 return concat_name;
6034 XFREE (concat_name);
6035 }
6036 #if defined HAVE_DOS_BASED_FILE_SYSTEM
6037 }
6038 #endif
6039
6040 for (p = wrapper; *p; p++)
6041 if (*p == '/')
6042 {
6043 has_slash = 1;
6044 break;
6045 }
6046 if (!has_slash)
6047 {
6048 /* no slashes; search PATH */
6049 const char *path = getenv ("PATH");
6050 if (path != NULL)
6051 {
6052 for (p = path; *p; p = p_next)
6053 {
6054 const char *q;
6055 size_t p_len;
6056 for (q = p; *q; q++)
6057 if (IS_PATH_SEPARATOR (*q))
6058 break;
6059 p_len = (size_t) (q - p);
6060 p_next = (*q == '\0' ? q : q + 1);
6061 if (p_len == 0)
6062 {
6063 /* empty path: current directory */
6064 if (getcwd (tmp, LT_PATHMAX) == NULL)
6065 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
6066 nonnull (strerror (errno)));
6067 tmp_len = strlen (tmp);
6068 concat_name =
6069 XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
6070 memcpy (concat_name, tmp, tmp_len);
6071 concat_name[tmp_len] = '/';
6072 strcpy (concat_name + tmp_len + 1, wrapper);
6073 }
6074 else
6075 {
6076 concat_name =
6077 XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
6078 memcpy (concat_name, p, p_len);
6079 concat_name[p_len] = '/';
6080 strcpy (concat_name + p_len + 1, wrapper);
6081 }
6082 if (check_executable (concat_name))
6083 return concat_name;
6084 XFREE (concat_name);
6085 }
6086 }
6087 /* not found in PATH; assume curdir */
6088 }
6089 /* Relative path | not found in path: prepend cwd */
6090 if (getcwd (tmp, LT_PATHMAX) == NULL)
6091 lt_fatal (__FILE__, __LINE__, "getcwd failed: %s",
6092 nonnull (strerror (errno)));
6093 tmp_len = strlen (tmp);
6094 concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
6095 memcpy (concat_name, tmp, tmp_len);
6096 concat_name[tmp_len] = '/';
6097 strcpy (concat_name + tmp_len + 1, wrapper);
6098
6099 if (check_executable (concat_name))
6100 return concat_name;
6101 XFREE (concat_name);
6102 return NULL;
6103 }
6104
6105 char *
6106 chase_symlinks (const char *pathspec)
6107 {
6108 #ifndef S_ISLNK
6109 return xstrdup (pathspec);
6110 #else
6111 char buf[LT_PATHMAX];
6112 struct stat s;
6113 char *tmp_pathspec = xstrdup (pathspec);
6114 char *p;
6115 int has_symlinks = 0;
6116 while (strlen (tmp_pathspec) && !has_symlinks)
6117 {
6118 lt_debugprintf (__FILE__, __LINE__,
6119 "checking path component for symlinks: %s\n",
6120 tmp_pathspec);
6121 if (lstat (tmp_pathspec, &s) == 0)
6122 {
6123 if (S_ISLNK (s.st_mode) != 0)
6124 {
6125 has_symlinks = 1;
6126 break;
6127 }
6128
6129 /* search backwards for last DIR_SEPARATOR */
6130 p = tmp_pathspec + strlen (tmp_pathspec) - 1;
6131 while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
6132 p--;
6133 if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
6134 {
6135 /* no more DIR_SEPARATORS left */
6136 break;
6137 }
6138 *p = '\0';
6139 }
6140 else
6141 {
6142 lt_fatal (__FILE__, __LINE__,
6143 "error accessing file \"%s\": %s",
6144 tmp_pathspec, nonnull (strerror (errno)));
6145 }
6146 }
6147 XFREE (tmp_pathspec);
6148
6149 if (!has_symlinks)
6150 {
6151 return xstrdup (pathspec);
6152 }
6153
6154 tmp_pathspec = realpath (pathspec, buf);
6155 if (tmp_pathspec == 0)
6156 {
6157 lt_fatal (__FILE__, __LINE__,
6158 "could not follow symlinks for %s", pathspec);
6159 }
6160 return xstrdup (tmp_pathspec);
6161 #endif
6162 }
6163
6164 char *
6165 strendzap (char *str, const char *pat)
6166 {
6167 size_t len, patlen;
6168
6169 assert (str != NULL);
6170 assert (pat != NULL);
6171
6172 len = strlen (str);
6173 patlen = strlen (pat);
6174
6175 if (patlen <= len)
6176 {
6177 str += len - patlen;
6178 if (STREQ (str, pat))
6179 *str = '\0';
6180 }
6181 return str;
6182 }
6183
6184 void
6185 lt_debugprintf (const char *file, int line, const char *fmt, ...)
6186 {
6187 va_list args;
6188 if (lt_debug)
6189 {
6190 (void) fprintf (stderr, "%s:%s:%d: ", program_name, file, line);
6191 va_start (args, fmt);
6192 (void) vfprintf (stderr, fmt, args);
6193 va_end (args);
6194 }
6195 }
6196
6197 static void
6198 lt_error_core (int exit_status, const char *file,
6199 int line, const char *mode,
6200 const char *message, va_list ap)
6201 {
6202 fprintf (stderr, "%s:%s:%d: %s: ", program_name, file, line, mode);
6203 vfprintf (stderr, message, ap);
6204 fprintf (stderr, ".\n");
6205
6206 if (exit_status >= 0)
6207 exit (exit_status);
6208 }
6209
6210 void
6211 lt_fatal (const char *file, int line, const char *message, ...)
6212 {
6213 va_list ap;
6214 va_start (ap, message);
6215 lt_error_core (EXIT_FAILURE, file, line, "FATAL", message, ap);
6216 va_end (ap);
6217 }
6218
6219 static const char *
6220 nonnull (const char *s)
6221 {
6222 return s ? s : "(null)";
6223 }
6224
6225 static const char *
6226 nonempty (const char *s)
6227 {
6228 return (s && !*s) ? "(empty)" : nonnull (s);
6229 }
6230
6231 void
6232 lt_setenv (const char *name, const char *value)
6233 {
6234 lt_debugprintf (__FILE__, __LINE__,
6235 "(lt_setenv) setting '%s' to '%s'\n",
6236 nonnull (name), nonnull (value));
6237 {
6238 #ifdef HAVE_SETENV
6239 /* always make a copy, for consistency with !HAVE_SETENV */
6240 char *str = xstrdup (value);
6241 setenv (name, str, 1);
6242 #else
6243 size_t len = strlen (name) + 1 + strlen (value) + 1;
6244 char *str = XMALLOC (char, len);
6245 sprintf (str, "%s=%s", name, value);
6246 if (putenv (str) != EXIT_SUCCESS)
6247 {
6248 XFREE (str);
6249 }
6250 #endif
6251 }
6252 }
6253
6254 char *
6255 lt_extend_str (const char *orig_value, const char *add, int to_end)
6256 {
6257 char *new_value;
6258 if (orig_value && *orig_value)
6259 {
6260 size_t orig_value_len = strlen (orig_value);
6261 size_t add_len = strlen (add);
6262 new_value = XMALLOC (char, add_len + orig_value_len + 1);
6263 if (to_end)
6264 {
6265 strcpy (new_value, orig_value);
6266 strcpy (new_value + orig_value_len, add);
6267 }
6268 else
6269 {
6270 strcpy (new_value, add);
6271 strcpy (new_value + add_len, orig_value);
6272 }
6273 }
6274 else
6275 {
6276 new_value = xstrdup (add);
6277 }
6278 return new_value;
6279 }
6280
6281 void
6282 lt_update_exe_path (const char *name, const char *value)
6283 {
6284 lt_debugprintf (__FILE__, __LINE__,
6285 "(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
6286 nonnull (name), nonnull (value));
6287
6288 if (name && *name && value && *value)
6289 {
6290 char *new_value = lt_extend_str (getenv (name), value, 0);
6291 /* some systems can't cope with a ':'-terminated path #' */
6292 size_t len = strlen (new_value);
6293 while ((len > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
6294 {
6295 new_value[--len] = '\0';
6296 }
6297 lt_setenv (name, new_value);
6298 XFREE (new_value);
6299 }
6300 }
6301
6302 void
6303 lt_update_lib_path (const char *name, const char *value)
6304 {
6305 lt_debugprintf (__FILE__, __LINE__,
6306 "(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
6307 nonnull (name), nonnull (value));
6308
6309 if (name && *name && value && *value)
6310 {
6311 char *new_value = lt_extend_str (getenv (name), value, 0);
6312 lt_setenv (name, new_value);
6313 XFREE (new_value);
6314 }
6315 }
6316
6317 EOF
6318 case $host_os in
6319 mingw*)
6320 cat <<"EOF"
6321
6322 /* Prepares an argument vector before calling spawn().
6323 Note that spawn() does not by itself call the command interpreter
6324 (getenv ("COMSPEC") != NULL ? getenv ("COMSPEC") :
6325 ({ OSVERSIONINFO v; v.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
6326 GetVersionEx(&v);
6327 v.dwPlatformId == VER_PLATFORM_WIN32_NT;
6328 }) ? "cmd.exe" : "command.com").
6329 Instead it simply concatenates the arguments, separated by ' ', and calls
6330 CreateProcess(). We must quote the arguments since Win32 CreateProcess()
6331 interprets characters like ' ', '\t', '\\', '"' (but not '<' and '>') in a
6332 special way:
6333 - Space and tab are interpreted as delimiters. They are not treated as
6334 delimiters if they are surrounded by double quotes: "...".
6335 - Unescaped double quotes are removed from the input. Their only effect is
6336 that within double quotes, space and tab are treated like normal
6337 characters.
6338 - Backslashes not followed by double quotes are not special.
6339 - But 2*n+1 backslashes followed by a double quote become
6340 n backslashes followed by a double quote (n >= 0):
6341 \" -> "
6342 \\\" -> \"
6343 \\\\\" -> \\"
6344 */
6345 #define SHELL_SPECIAL_CHARS "\"\\ \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
6346 #define SHELL_SPACE_CHARS " \001\002\003\004\005\006\007\010\011\012\013\014\015\016\017\020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037"
6347 char **
6348 prepare_spawn (char **argv)
6349 {
6350 size_t argc;
6351 char **new_argv;
6352 size_t i;
6353
6354 /* Count number of arguments. */
6355 for (argc = 0; argv[argc] != NULL; argc++)
6356 ;
6357
6358 /* Allocate new argument vector. */
6359 new_argv = XMALLOC (char *, argc + 1);
6360
6361 /* Put quoted arguments into the new argument vector. */
6362 for (i = 0; i < argc; i++)
6363 {
6364 const char *string = argv[i];
6365
6366 if (string[0] == '\0')
6367 new_argv[i] = xstrdup ("\"\"");
6368 else if (strpbrk (string, SHELL_SPECIAL_CHARS) != NULL)
6369 {
6370 int quote_around = (strpbrk (string, SHELL_SPACE_CHARS) != NULL);
6371 size_t length;
6372 unsigned int backslashes;
6373 const char *s;
6374 char *quoted_string;
6375 char *p;
6376
6377 length = 0;
6378 backslashes = 0;
6379 if (quote_around)
6380 length++;
6381 for (s = string; *s != '\0'; s++)
6382 {
6383 char c = *s;
6384 if (c == '"')
6385 length += backslashes + 1;
6386 length++;
6387 if (c == '\\')
6388 backslashes++;
6389 else
6390 backslashes = 0;
6391 }
6392 if (quote_around)
6393 length += backslashes + 1;
6394
6395 quoted_string = XMALLOC (char, length + 1);
6396
6397 p = quoted_string;
6398 backslashes = 0;
6399 if (quote_around)
6400 *p++ = '"';
6401 for (s = string; *s != '\0'; s++)
6402 {
6403 char c = *s;
6404 if (c == '"')
6405 {
6406 unsigned int j;
6407 for (j = backslashes + 1; j > 0; j--)
6408 *p++ = '\\';
6409 }
6410 *p++ = c;
6411 if (c == '\\')
6412 backslashes++;
6413 else
6414 backslashes = 0;
6415 }
6416 if (quote_around)
6417 {
6418 unsigned int j;
6419 for (j = backslashes; j > 0; j--)
6420 *p++ = '\\';
6421 *p++ = '"';
6422 }
6423 *p = '\0';
6424
6425 new_argv[i] = quoted_string;
6426 }
6427 else
6428 new_argv[i] = (char *) string;
6429 }
6430 new_argv[argc] = NULL;
6431
6432 return new_argv;
6433 }
6434 EOF
6435 ;;
6436 esac
6437
6438 cat <<"EOF"
6439 void lt_dump_script (FILE* f)
6440 {
6441 EOF
6442 func_emit_wrapper yes |
6443 $SED -n -e '
6444 s/^\(.\{79\}\)\(..*\)/\1\
6445 \2/
6446 h
6447 s/\([\\"]\)/\\\1/g
6448 s/$/\\n/
6449 s/\([^\n]*\).*/ fputs ("\1", f);/p
6450 g
6451 D'
6452 cat <<"EOF"
6453 }
6454 EOF
6455 }
6456 # end: func_emit_cwrapperexe_src
6457
6458 # func_win32_import_lib_p ARG
6459 # True if ARG is an import lib, as indicated by $file_magic_cmd
6460 func_win32_import_lib_p ()
6461 {
6462 $debug_cmd
6463
6464 case `eval $file_magic_cmd \"\$1\" 2>/dev/null | $SED -e 10q` in
6465 *import*) : ;;
6466 *) false ;;
6467 esac
6468 }
6469
6470 # func_suncc_cstd_abi
6471 # !!ONLY CALL THIS FOR SUN CC AFTER $compile_command IS FULLY EXPANDED!!
6472 # Several compiler flags select an ABI that is incompatible with the
6473 # Cstd library. Avoid specifying it if any are in CXXFLAGS.
6474 func_suncc_cstd_abi ()
6475 {
6476 $debug_cmd
6477
6478 case " $compile_command " in
6479 *" -compat=g "*|*\ -std=c++[0-9][0-9]\ *|*" -library=stdcxx4 "*|*" -library=stlport4 "*)
6480 suncc_use_cstd_abi=no
6481 ;;
6482 *)
6483 suncc_use_cstd_abi=yes
6484 ;;
6485 esac
6486 }
6487
6488 # func_mode_link arg...
6489 func_mode_link ()
6490 {
6491 $debug_cmd
6492
6493 case $host in
6494 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6495 # It is impossible to link a dll without this setting, and
6496 # we shouldn't force the makefile maintainer to figure out
6497 # what system we are compiling for in order to pass an extra
6498 # flag for every libtool invocation.
6499 # allow_undefined=no
6500
6501 # FIXME: Unfortunately, there are problems with the above when trying
6502 # to make a dll that has undefined symbols, in which case not
6503 # even a static library is built. For now, we need to specify
6504 # -no-undefined on the libtool link line when we can be certain
6505 # that all symbols are satisfied, otherwise we get a static library.
6506 allow_undefined=yes
6507 ;;
6508 *)
6509 allow_undefined=yes
6510 ;;
6511 esac
6512 libtool_args=$nonopt
6513 base_compile="$nonopt $@"
6514 compile_command=$nonopt
6515 finalize_command=$nonopt
6516
6517 compile_rpath=
6518 finalize_rpath=
6519 compile_shlibpath=
6520 finalize_shlibpath=
6521 convenience=
6522 old_convenience=
6523 deplibs=
6524 old_deplibs=
6525 compiler_flags=
6526 linker_flags=
6527 dllsearchpath=
6528 lib_search_path=`pwd`
6529 inst_prefix_dir=
6530 new_inherited_linker_flags=
6531
6532 avoid_version=no
6533 bindir=
6534 dlfiles=
6535 dlprefiles=
6536 dlself=no
6537 export_dynamic=no
6538 export_symbols=
6539 export_symbols_regex=
6540 generated=
6541 libobjs=
6542 ltlibs=
6543 module=no
6544 no_install=no
6545 objs=
6546 os2dllname=
6547 non_pic_objects=
6548 precious_files_regex=
6549 prefer_static_libs=no
6550 preload=false
6551 prev=
6552 prevarg=
6553 release=
6554 rpath=
6555 xrpath=
6556 perm_rpath=
6557 temp_rpath=
6558 thread_safe=no
6559 vinfo=
6560 vinfo_number=no
6561 weak_libs=
6562 single_module=$wl-single_module
6563 func_infer_tag $base_compile
6564
6565 # We need to know -static, to get the right output filenames.
6566 for arg
6567 do
6568 case $arg in
6569 -shared)
6570 test yes != "$build_libtool_libs" \
6571 && func_fatal_configuration "cannot build a shared library"
6572 build_old_libs=no
6573 break
6574 ;;
6575 -all-static | -static | -static-libtool-libs)
6576 case $arg in
6577 -all-static)
6578 if test yes = "$build_libtool_libs" && test -z "$link_static_flag"; then
6579 func_warning "complete static linking is impossible in this configuration"
6580 fi
6581 if test -n "$link_static_flag"; then
6582 dlopen_self=$dlopen_self_static
6583 fi
6584 prefer_static_libs=yes
6585 ;;
6586 -static)
6587 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6588 dlopen_self=$dlopen_self_static
6589 fi
6590 prefer_static_libs=built
6591 ;;
6592 -static-libtool-libs)
6593 if test -z "$pic_flag" && test -n "$link_static_flag"; then
6594 dlopen_self=$dlopen_self_static
6595 fi
6596 prefer_static_libs=yes
6597 ;;
6598 esac
6599 build_libtool_libs=no
6600 build_old_libs=yes
6601 break
6602 ;;
6603 esac
6604 done
6605
6606 # See if our shared archives depend on static archives.
6607 test -n "$old_archive_from_new_cmds" && build_old_libs=yes
6608
6609 # Go through the arguments, transforming them on the way.
6610 while test "$#" -gt 0; do
6611 arg=$1
6612 shift
6613 func_quote_for_eval "$arg"
6614 qarg=$func_quote_for_eval_unquoted_result
6615 func_append libtool_args " $func_quote_for_eval_result"
6616
6617 # If the previous option needs an argument, assign it.
6618 if test -n "$prev"; then
6619 case $prev in
6620 output)
6621 func_append compile_command " @OUTPUT@"
6622 func_append finalize_command " @OUTPUT@"
6623 ;;
6624 esac
6625
6626 case $prev in
6627 bindir)
6628 bindir=$arg
6629 prev=
6630 continue
6631 ;;
6632 dlfiles|dlprefiles)
6633 $preload || {
6634 # Add the symbol object into the linking commands.
6635 func_append compile_command " @SYMFILE@"
6636 func_append finalize_command " @SYMFILE@"
6637 preload=:
6638 }
6639 case $arg in
6640 *.la | *.lo) ;; # We handle these cases below.
6641 force)
6642 if test no = "$dlself"; then
6643 dlself=needless
6644 export_dynamic=yes
6645 fi
6646 prev=
6647 continue
6648 ;;
6649 self)
6650 if test dlprefiles = "$prev"; then
6651 dlself=yes
6652 elif test dlfiles = "$prev" && test yes != "$dlopen_self"; then
6653 dlself=yes
6654 else
6655 dlself=needless
6656 export_dynamic=yes
6657 fi
6658 prev=
6659 continue
6660 ;;
6661 *)
6662 if test dlfiles = "$prev"; then
6663 func_append dlfiles " $arg"
6664 else
6665 func_append dlprefiles " $arg"
6666 fi
6667 prev=
6668 continue
6669 ;;
6670 esac
6671 ;;
6672 expsyms)
6673 export_symbols=$arg
6674 test -f "$arg" \
6675 || func_fatal_error "symbol file '$arg' does not exist"
6676 prev=
6677 continue
6678 ;;
6679 expsyms_regex)
6680 export_symbols_regex=$arg
6681 prev=
6682 continue
6683 ;;
6684 framework)
6685 case $host in
6686 *-*-darwin*)
6687 case "$deplibs " in
6688 *" $qarg.ltframework "*) ;;
6689 *) func_append deplibs " $qarg.ltframework" # this is fixed later
6690 ;;
6691 esac
6692 ;;
6693 esac
6694 prev=
6695 continue
6696 ;;
6697 inst_prefix)
6698 inst_prefix_dir=$arg
6699 prev=
6700 continue
6701 ;;
6702 mllvm)
6703 # Clang does not use LLVM to link, so we can simply discard any
6704 # '-mllvm $arg' options when doing the link step.
6705 prev=
6706 continue
6707 ;;
6708 objectlist)
6709 if test -f "$arg"; then
6710 save_arg=$arg
6711 moreargs=
6712 for fil in `cat "$save_arg"`
6713 do
6714 # func_append moreargs " $fil"
6715 arg=$fil
6716 # A libtool-controlled object.
6717
6718 # Check to see that this really is a libtool object.
6719 if func_lalib_unsafe_p "$arg"; then
6720 pic_object=
6721 non_pic_object=
6722
6723 # Read the .lo file
6724 func_source "$arg"
6725
6726 if test -z "$pic_object" ||
6727 test -z "$non_pic_object" ||
6728 test none = "$pic_object" &&
6729 test none = "$non_pic_object"; then
6730 func_fatal_error "cannot find name of object for '$arg'"
6731 fi
6732
6733 # Extract subdirectory from the argument.
6734 func_dirname "$arg" "/" ""
6735 xdir=$func_dirname_result
6736
6737 if test none != "$pic_object"; then
6738 # Prepend the subdirectory the object is found in.
6739 pic_object=$xdir$pic_object
6740
6741 if test dlfiles = "$prev"; then
6742 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
6743 func_append dlfiles " $pic_object"
6744 prev=
6745 continue
6746 else
6747 # If libtool objects are unsupported, then we need to preload.
6748 prev=dlprefiles
6749 fi
6750 fi
6751
6752 # CHECK ME: I think I busted this. -Ossama
6753 if test dlprefiles = "$prev"; then
6754 # Preload the old-style object.
6755 func_append dlprefiles " $pic_object"
6756 prev=
6757 fi
6758
6759 # A PIC object.
6760 func_append libobjs " $pic_object"
6761 arg=$pic_object
6762 fi
6763
6764 # Non-PIC object.
6765 if test none != "$non_pic_object"; then
6766 # Prepend the subdirectory the object is found in.
6767 non_pic_object=$xdir$non_pic_object
6768
6769 # A standard non-PIC object
6770 func_append non_pic_objects " $non_pic_object"
6771 if test -z "$pic_object" || test none = "$pic_object"; then
6772 arg=$non_pic_object
6773 fi
6774 else
6775 # If the PIC object exists, use it instead.
6776 # $xdir was prepended to $pic_object above.
6777 non_pic_object=$pic_object
6778 func_append non_pic_objects " $non_pic_object"
6779 fi
6780 else
6781 # Only an error if not doing a dry-run.
6782 if $opt_dry_run; then
6783 # Extract subdirectory from the argument.
6784 func_dirname "$arg" "/" ""
6785 xdir=$func_dirname_result
6786
6787 func_lo2o "$arg"
6788 pic_object=$xdir$objdir/$func_lo2o_result
6789 non_pic_object=$xdir$func_lo2o_result
6790 func_append libobjs " $pic_object"
6791 func_append non_pic_objects " $non_pic_object"
6792 else
6793 func_fatal_error "'$arg' is not a valid libtool object"
6794 fi
6795 fi
6796 done
6797 else
6798 func_fatal_error "link input file '$arg' does not exist"
6799 fi
6800 arg=$save_arg
6801 prev=
6802 continue
6803 ;;
6804 os2dllname)
6805 os2dllname=$arg
6806 prev=
6807 continue
6808 ;;
6809 precious_regex)
6810 precious_files_regex=$arg
6811 prev=
6812 continue
6813 ;;
6814 release)
6815 release=-$arg
6816 prev=
6817 continue
6818 ;;
6819 rpath | xrpath)
6820 # We need an absolute path.
6821 case $arg in
6822 [\\/]* | [A-Za-z]:[\\/]*) ;;
6823 *)
6824 func_fatal_error "only absolute run-paths are allowed"
6825 ;;
6826 esac
6827 if test rpath = "$prev"; then
6828 case "$rpath " in
6829 *" $arg "*) ;;
6830 *) func_append rpath " $arg" ;;
6831 esac
6832 else
6833 case "$xrpath " in
6834 *" $arg "*) ;;
6835 *) func_append xrpath " $arg" ;;
6836 esac
6837 fi
6838 prev=
6839 continue
6840 ;;
6841 shrext)
6842 shrext_cmds=$arg
6843 prev=
6844 continue
6845 ;;
6846 weak)
6847 func_append weak_libs " $arg"
6848 prev=
6849 continue
6850 ;;
6851 xcclinker)
6852 func_append linker_flags " $qarg"
6853 func_append compiler_flags " $qarg"
6854 prev=
6855 func_append compile_command " $qarg"
6856 func_append finalize_command " $qarg"
6857 continue
6858 ;;
6859 xcompiler)
6860 func_append compiler_flags " $qarg"
6861 prev=
6862 func_append compile_command " $qarg"
6863 func_append finalize_command " $qarg"
6864 continue
6865 ;;
6866 xlinker)
6867 func_append linker_flags " $qarg"
6868 func_append compiler_flags " $wl$qarg"
6869 prev=
6870 func_append compile_command " $wl$qarg"
6871 func_append finalize_command " $wl$qarg"
6872 continue
6873 ;;
6874 *)
6875 eval "$prev=\"\$arg\""
6876 prev=
6877 continue
6878 ;;
6879 esac
6880 fi # test -n "$prev"
6881
6882 prevarg=$arg
6883
6884 case $arg in
6885 -all-static)
6886 if test -n "$link_static_flag"; then
6887 # See comment for -static flag below, for more details.
6888 func_append compile_command " $link_static_flag"
6889 func_append finalize_command " $link_static_flag"
6890 fi
6891 continue
6892 ;;
6893
6894 -allow-undefined)
6895 # FIXME: remove this flag sometime in the future.
6896 func_fatal_error "'-allow-undefined' must not be used because it is the default"
6897 ;;
6898
6899 -avoid-version)
6900 avoid_version=yes
6901 continue
6902 ;;
6903
6904 -bindir)
6905 prev=bindir
6906 continue
6907 ;;
6908
6909 -dlopen)
6910 prev=dlfiles
6911 continue
6912 ;;
6913
6914 -dlpreopen)
6915 prev=dlprefiles
6916 continue
6917 ;;
6918
6919 -export-dynamic)
6920 export_dynamic=yes
6921 continue
6922 ;;
6923
6924 -export-symbols | -export-symbols-regex)
6925 if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
6926 func_fatal_error "more than one -exported-symbols argument is not allowed"
6927 fi
6928 if test X-export-symbols = "X$arg"; then
6929 prev=expsyms
6930 else
6931 prev=expsyms_regex
6932 fi
6933 continue
6934 ;;
6935
6936 -framework)
6937 prev=framework
6938 continue
6939 ;;
6940
6941 -inst-prefix-dir)
6942 prev=inst_prefix
6943 continue
6944 ;;
6945
6946 # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
6947 # so, if we see these flags be careful not to treat them like -L
6948 -L[A-Z][A-Z]*:*)
6949 case $with_gcc/$host in
6950 no/*-*-irix* | /*-*-irix*)
6951 func_append compile_command " $arg"
6952 func_append finalize_command " $arg"
6953 ;;
6954 esac
6955 continue
6956 ;;
6957
6958 -L*)
6959 func_stripname "-L" '' "$arg"
6960 if test -z "$func_stripname_result"; then
6961 if test "$#" -gt 0; then
6962 func_fatal_error "require no space between '-L' and '$1'"
6963 else
6964 func_fatal_error "need path for '-L' option"
6965 fi
6966 fi
6967 func_resolve_sysroot "$func_stripname_result"
6968 dir=$func_resolve_sysroot_result
6969 # We need an absolute path.
6970 case $dir in
6971 [\\/]* | [A-Za-z]:[\\/]*) ;;
6972 *)
6973 absdir=`cd "$dir" && pwd`
6974 test -z "$absdir" && \
6975 func_fatal_error "cannot determine absolute directory name of '$dir'"
6976 dir=$absdir
6977 ;;
6978 esac
6979 case "$deplibs " in
6980 *" -L$dir "* | *" $arg "*)
6981 # Will only happen for absolute or sysroot arguments
6982 ;;
6983 *)
6984 # Preserve sysroot, but never include relative directories
6985 case $dir in
6986 [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;;
6987 *) func_append deplibs " -L$dir" ;;
6988 esac
6989 func_append lib_search_path " $dir"
6990 ;;
6991 esac
6992 case $host in
6993 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
6994 testbindir=`$ECHO "$dir" | $SED 's*/lib$*/bin*'`
6995 case :$dllsearchpath: in
6996 *":$dir:"*) ;;
6997 ::) dllsearchpath=$dir;;
6998 *) func_append dllsearchpath ":$dir";;
6999 esac
7000 case :$dllsearchpath: in
7001 *":$testbindir:"*) ;;
7002 ::) dllsearchpath=$testbindir;;
7003 *) func_append dllsearchpath ":$testbindir";;
7004 esac
7005 ;;
7006 esac
7007 continue
7008 ;;
7009
7010 -l*)
7011 if test X-lc = "X$arg" || test X-lm = "X$arg"; then
7012 case $host in
7013 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc* | *-*-haiku*)
7014 # These systems don't actually have a C or math library (as such)
7015 continue
7016 ;;
7017 *-*-os2*)
7018 # These systems don't actually have a C library (as such)
7019 test X-lc = "X$arg" && continue
7020 ;;
7021 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7022 # Do not include libc due to us having libc/libc_r.
7023 test X-lc = "X$arg" && continue
7024 ;;
7025 *-*-rhapsody* | *-*-darwin1.[012])
7026 # Rhapsody C and math libraries are in the System framework
7027 func_append deplibs " System.ltframework"
7028 continue
7029 ;;
7030 *-*-sco3.2v5* | *-*-sco5v6*)
7031 # Causes problems with __ctype
7032 test X-lc = "X$arg" && continue
7033 ;;
7034 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
7035 # Compiler inserts libc in the correct place for threads to work
7036 test X-lc = "X$arg" && continue
7037 ;;
7038 esac
7039 elif test X-lc_r = "X$arg"; then
7040 case $host in
7041 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*)
7042 # Do not include libc_r directly, use -pthread flag.
7043 continue
7044 ;;
7045 esac
7046 fi
7047 func_append deplibs " $arg"
7048 continue
7049 ;;
7050
7051 -mllvm)
7052 prev=mllvm
7053 continue
7054 ;;
7055
7056 -module)
7057 module=yes
7058 continue
7059 ;;
7060
7061 # Tru64 UNIX uses -model [arg] to determine the layout of C++
7062 # classes, name mangling, and exception handling.
7063 # Darwin uses the -arch flag to determine output architecture.
7064 -model|-arch|-isysroot|--sysroot)
7065 func_append compiler_flags " $arg"
7066 func_append compile_command " $arg"
7067 func_append finalize_command " $arg"
7068 prev=xcompiler
7069 continue
7070 ;;
7071
7072 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7073 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7074 func_append compiler_flags " $arg"
7075 func_append compile_command " $arg"
7076 func_append finalize_command " $arg"
7077 case "$new_inherited_linker_flags " in
7078 *" $arg "*) ;;
7079 * ) func_append new_inherited_linker_flags " $arg" ;;
7080 esac
7081 continue
7082 ;;
7083
7084 -multi_module)
7085 single_module=$wl-multi_module
7086 continue
7087 ;;
7088
7089 -no-fast-install)
7090 fast_install=no
7091 continue
7092 ;;
7093
7094 -no-install)
7095 case $host in
7096 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
7097 # The PATH hackery in wrapper scripts is required on Windows
7098 # and Darwin in order for the loader to find any dlls it needs.
7099 func_warning "'-no-install' is ignored for $host"
7100 func_warning "assuming '-no-fast-install' instead"
7101 fast_install=no
7102 ;;
7103 *) no_install=yes ;;
7104 esac
7105 continue
7106 ;;
7107
7108 -no-undefined)
7109 allow_undefined=no
7110 continue
7111 ;;
7112
7113 -objectlist)
7114 prev=objectlist
7115 continue
7116 ;;
7117
7118 -os2dllname)
7119 prev=os2dllname
7120 continue
7121 ;;
7122
7123 -o) prev=output ;;
7124
7125 -precious-files-regex)
7126 prev=precious_regex
7127 continue
7128 ;;
7129
7130 -release)
7131 prev=release
7132 continue
7133 ;;
7134
7135 -rpath)
7136 prev=rpath
7137 continue
7138 ;;
7139
7140 -R)
7141 prev=xrpath
7142 continue
7143 ;;
7144
7145 -R*)
7146 func_stripname '-R' '' "$arg"
7147 dir=$func_stripname_result
7148 # We need an absolute path.
7149 case $dir in
7150 [\\/]* | [A-Za-z]:[\\/]*) ;;
7151 =*)
7152 func_stripname '=' '' "$dir"
7153 dir=$lt_sysroot$func_stripname_result
7154 ;;
7155 *)
7156 func_fatal_error "only absolute run-paths are allowed"
7157 ;;
7158 esac
7159 case "$xrpath " in
7160 *" $dir "*) ;;
7161 *) func_append xrpath " $dir" ;;
7162 esac
7163 continue
7164 ;;
7165
7166 -shared)
7167 # The effects of -shared are defined in a previous loop.
7168 continue
7169 ;;
7170
7171 -shrext)
7172 prev=shrext
7173 continue
7174 ;;
7175
7176 -static | -static-libtool-libs)
7177 # The effects of -static are defined in a previous loop.
7178 # We used to do the same as -all-static on platforms that
7179 # didn't have a PIC flag, but the assumption that the effects
7180 # would be equivalent was wrong. It would break on at least
7181 # Digital Unix and AIX.
7182 continue
7183 ;;
7184
7185 -thread-safe)
7186 thread_safe=yes
7187 continue
7188 ;;
7189
7190 -version-info)
7191 prev=vinfo
7192 continue
7193 ;;
7194
7195 -version-number)
7196 prev=vinfo
7197 vinfo_number=yes
7198 continue
7199 ;;
7200
7201 -weak)
7202 prev=weak
7203 continue
7204 ;;
7205
7206 -Wc,*)
7207 func_stripname '-Wc,' '' "$arg"
7208 args=$func_stripname_result
7209 arg=
7210 save_ifs=$IFS; IFS=,
7211 for flag in $args; do
7212 IFS=$save_ifs
7213 func_quote_for_eval "$flag"
7214 func_append arg " $func_quote_for_eval_result"
7215 func_append compiler_flags " $func_quote_for_eval_result"
7216 done
7217 IFS=$save_ifs
7218 func_stripname ' ' '' "$arg"
7219 arg=$func_stripname_result
7220 ;;
7221
7222 -Wl,*)
7223 func_stripname '-Wl,' '' "$arg"
7224 args=$func_stripname_result
7225 arg=
7226 save_ifs=$IFS; IFS=,
7227 for flag in $args; do
7228 IFS=$save_ifs
7229 func_quote_for_eval "$flag"
7230 func_append arg " $wl$func_quote_for_eval_result"
7231 func_append compiler_flags " $wl$func_quote_for_eval_result"
7232 func_append linker_flags " $func_quote_for_eval_result"
7233 done
7234 IFS=$save_ifs
7235 func_stripname ' ' '' "$arg"
7236 arg=$func_stripname_result
7237 ;;
7238
7239 -Xcompiler)
7240 prev=xcompiler
7241 continue
7242 ;;
7243
7244 -Xlinker)
7245 prev=xlinker
7246 continue
7247 ;;
7248
7249 -XCClinker)
7250 prev=xcclinker
7251 continue
7252 ;;
7253
7254 # -msg_* for osf cc
7255 -msg_*)
7256 func_quote_for_eval "$arg"
7257 arg=$func_quote_for_eval_result
7258 ;;
7259
7260 # Flags to be passed through unchanged, with rationale:
7261 # -64, -mips[0-9] enable 64-bit mode for the SGI compiler
7262 # -r[0-9][0-9]* specify processor for the SGI compiler
7263 # -xarch=*, -xtarget=* enable 64-bit mode for the Sun compiler
7264 # +DA*, +DD* enable 64-bit mode for the HP compiler
7265 # -q* compiler args for the IBM compiler
7266 # -m*, -t[45]*, -txscale* architecture-specific flags for GCC
7267 # -F/path path to uninstalled frameworks, gcc on darwin
7268 # -p, -pg, --coverage, -fprofile-* profiling flags for GCC
7269 # -fstack-protector* stack protector flags for GCC
7270 # @file GCC response files
7271 # -tp=* Portland pgcc target processor selection
7272 # --sysroot=* for sysroot support
7273 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7274 # -specs=* GCC specs files
7275 # -stdlib=* select c++ std lib with clang
7276 # -fsanitize=* Clang/GCC memory and address sanitizer
7277 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7278 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7279 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7280 -specs=*|-fsanitize=*)
7281 func_quote_for_eval "$arg"
7282 arg=$func_quote_for_eval_result
7283 func_append compile_command " $arg"
7284 func_append finalize_command " $arg"
7285 func_append compiler_flags " $arg"
7286 continue
7287 ;;
7288
7289 -Z*)
7290 if test os2 = "`expr $host : '.*\(os2\)'`"; then
7291 # OS/2 uses -Zxxx to specify OS/2-specific options
7292 compiler_flags="$compiler_flags $arg"
7293 func_append compile_command " $arg"
7294 func_append finalize_command " $arg"
7295 case $arg in
7296 -Zlinker | -Zstack)
7297 prev=xcompiler
7298 ;;
7299 esac
7300 continue
7301 else
7302 # Otherwise treat like 'Some other compiler flag' below
7303 func_quote_for_eval "$arg"
7304 arg=$func_quote_for_eval_result
7305 fi
7306 ;;
7307
7308 # Some other compiler flag.
7309 -* | +*)
7310 func_quote_for_eval "$arg"
7311 arg=$func_quote_for_eval_result
7312 ;;
7313
7314 *.$objext)
7315 # A standard object.
7316 func_append objs " $arg"
7317 ;;
7318
7319 *.lo)
7320 # A libtool-controlled object.
7321
7322 # Check to see that this really is a libtool object.
7323 if func_lalib_unsafe_p "$arg"; then
7324 pic_object=
7325 non_pic_object=
7326
7327 # Read the .lo file
7328 func_source "$arg"
7329
7330 if test -z "$pic_object" ||
7331 test -z "$non_pic_object" ||
7332 test none = "$pic_object" &&
7333 test none = "$non_pic_object"; then
7334 func_fatal_error "cannot find name of object for '$arg'"
7335 fi
7336
7337 # Extract subdirectory from the argument.
7338 func_dirname "$arg" "/" ""
7339 xdir=$func_dirname_result
7340
7341 test none = "$pic_object" || {
7342 # Prepend the subdirectory the object is found in.
7343 pic_object=$xdir$pic_object
7344
7345 if test dlfiles = "$prev"; then
7346 if test yes = "$build_libtool_libs" && test yes = "$dlopen_support"; then
7347 func_append dlfiles " $pic_object"
7348 prev=
7349 continue
7350 else
7351 # If libtool objects are unsupported, then we need to preload.
7352 prev=dlprefiles
7353 fi
7354 fi
7355
7356 # CHECK ME: I think I busted this. -Ossama
7357 if test dlprefiles = "$prev"; then
7358 # Preload the old-style object.
7359 func_append dlprefiles " $pic_object"
7360 prev=
7361 fi
7362
7363 # A PIC object.
7364 func_append libobjs " $pic_object"
7365 arg=$pic_object
7366 }
7367
7368 # Non-PIC object.
7369 if test none != "$non_pic_object"; then
7370 # Prepend the subdirectory the object is found in.
7371 non_pic_object=$xdir$non_pic_object
7372
7373 # A standard non-PIC object
7374 func_append non_pic_objects " $non_pic_object"
7375 if test -z "$pic_object" || test none = "$pic_object"; then
7376 arg=$non_pic_object
7377 fi
7378 else
7379 # If the PIC object exists, use it instead.
7380 # $xdir was prepended to $pic_object above.
7381 non_pic_object=$pic_object
7382 func_append non_pic_objects " $non_pic_object"
7383 fi
7384 else
7385 # Only an error if not doing a dry-run.
7386 if $opt_dry_run; then
7387 # Extract subdirectory from the argument.
7388 func_dirname "$arg" "/" ""
7389 xdir=$func_dirname_result
7390
7391 func_lo2o "$arg"
7392 pic_object=$xdir$objdir/$func_lo2o_result
7393 non_pic_object=$xdir$func_lo2o_result
7394 func_append libobjs " $pic_object"
7395 func_append non_pic_objects " $non_pic_object"
7396 else
7397 func_fatal_error "'$arg' is not a valid libtool object"
7398 fi
7399 fi
7400 ;;
7401
7402 *.$libext)
7403 # An archive.
7404 func_append deplibs " $arg"
7405 func_append old_deplibs " $arg"
7406 continue
7407 ;;
7408
7409 *.la)
7410 # A libtool-controlled library.
7411
7412 func_resolve_sysroot "$arg"
7413 if test dlfiles = "$prev"; then
7414 # This library was specified with -dlopen.
7415 func_append dlfiles " $func_resolve_sysroot_result"
7416 prev=
7417 elif test dlprefiles = "$prev"; then
7418 # The library was specified with -dlpreopen.
7419 func_append dlprefiles " $func_resolve_sysroot_result"
7420 prev=
7421 else
7422 func_append deplibs " $func_resolve_sysroot_result"
7423 fi
7424 continue
7425 ;;
7426
7427 # Some other compiler argument.
7428 *)
7429 # Unknown arguments in both finalize_command and compile_command need
7430 # to be aesthetically quoted because they are evaled later.
7431 func_quote_for_eval "$arg"
7432 arg=$func_quote_for_eval_result
7433 ;;
7434 esac # arg
7435
7436 # Now actually substitute the argument into the commands.
7437 if test -n "$arg"; then
7438 func_append compile_command " $arg"
7439 func_append finalize_command " $arg"
7440 fi
7441 done # argument parsing loop
7442
7443 test -n "$prev" && \
7444 func_fatal_help "the '$prevarg' option requires an argument"
7445
7446 if test yes = "$export_dynamic" && test -n "$export_dynamic_flag_spec"; then
7447 eval arg=\"$export_dynamic_flag_spec\"
7448 func_append compile_command " $arg"
7449 func_append finalize_command " $arg"
7450 fi
7451
7452 oldlibs=
7453 # calculate the name of the file, without its directory
7454 func_basename "$output"
7455 outputname=$func_basename_result
7456 libobjs_save=$libobjs
7457
7458 if test -n "$shlibpath_var"; then
7459 # get the directories listed in $shlibpath_var
7460 eval shlib_search_path=\`\$ECHO \"\$$shlibpath_var\" \| \$SED \'s/:/ /g\'\`
7461 else
7462 shlib_search_path=
7463 fi
7464 eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
7465 eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
7466
7467 # Definition is injected by LT_CONFIG during libtool generation.
7468 func_munge_path_list sys_lib_dlsearch_path "$LT_SYS_LIBRARY_PATH"
7469
7470 func_dirname "$output" "/" ""
7471 output_objdir=$func_dirname_result$objdir
7472 func_to_tool_file "$output_objdir/"
7473 tool_output_objdir=$func_to_tool_file_result
7474 # Create the object directory.
7475 func_mkdir_p "$output_objdir"
7476
7477 # Determine the type of output
7478 case $output in
7479 "")
7480 func_fatal_help "you must specify an output file"
7481 ;;
7482 *.$libext) linkmode=oldlib ;;
7483 *.lo | *.$objext) linkmode=obj ;;
7484 *.la) linkmode=lib ;;
7485 *) linkmode=prog ;; # Anything else should be a program.
7486 esac
7487
7488 specialdeplibs=
7489
7490 libs=
7491 # Find all interdependent deplibs by searching for libraries
7492 # that are linked more than once (e.g. -la -lb -la)
7493 for deplib in $deplibs; do
7494 if $opt_preserve_dup_deps; then
7495 case "$libs " in
7496 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
7497 esac
7498 fi
7499 func_append libs " $deplib"
7500 done
7501
7502 if test lib = "$linkmode"; then
7503 libs="$predeps $libs $compiler_lib_search_path $postdeps"
7504
7505 # Compute libraries that are listed more than once in $predeps
7506 # $postdeps and mark them as special (i.e., whose duplicates are
7507 # not to be eliminated).
7508 pre_post_deps=
7509 if $opt_duplicate_compiler_generated_deps; then
7510 for pre_post_dep in $predeps $postdeps; do
7511 case "$pre_post_deps " in
7512 *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;;
7513 esac
7514 func_append pre_post_deps " $pre_post_dep"
7515 done
7516 fi
7517 pre_post_deps=
7518 fi
7519
7520 deplibs=
7521 newdependency_libs=
7522 newlib_search_path=
7523 need_relink=no # whether we're linking any uninstalled libtool libraries
7524 notinst_deplibs= # not-installed libtool libraries
7525 notinst_path= # paths that contain not-installed libtool libraries
7526
7527 case $linkmode in
7528 lib)
7529 passes="conv dlpreopen link"
7530 for file in $dlfiles $dlprefiles; do
7531 case $file in
7532 *.la) ;;
7533 *)
7534 func_fatal_help "libraries can '-dlopen' only libtool libraries: $file"
7535 ;;
7536 esac
7537 done
7538 ;;
7539 prog)
7540 compile_deplibs=
7541 finalize_deplibs=
7542 alldeplibs=false
7543 newdlfiles=
7544 newdlprefiles=
7545 passes="conv scan dlopen dlpreopen link"
7546 ;;
7547 *) passes="conv"
7548 ;;
7549 esac
7550
7551 for pass in $passes; do
7552 # The preopen pass in lib mode reverses $deplibs; put it back here
7553 # so that -L comes before libs that need it for instance...
7554 if test lib,link = "$linkmode,$pass"; then
7555 ## FIXME: Find the place where the list is rebuilt in the wrong
7556 ## order, and fix it there properly
7557 tmp_deplibs=
7558 for deplib in $deplibs; do
7559 tmp_deplibs="$deplib $tmp_deplibs"
7560 done
7561 deplibs=$tmp_deplibs
7562 fi
7563
7564 if test lib,link = "$linkmode,$pass" ||
7565 test prog,scan = "$linkmode,$pass"; then
7566 libs=$deplibs
7567 deplibs=
7568 fi
7569 if test prog = "$linkmode"; then
7570 case $pass in
7571 dlopen) libs=$dlfiles ;;
7572 dlpreopen) libs=$dlprefiles ;;
7573 link)
7574 libs="$deplibs %DEPLIBS%"
7575 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7576 ;;
7577 esac
7578 fi
7579 if test lib,dlpreopen = "$linkmode,$pass"; then
7580 # Collect and forward deplibs of preopened libtool libs
7581 for lib in $dlprefiles; do
7582 # Ignore non-libtool-libs
7583 dependency_libs=
7584 func_resolve_sysroot "$lib"
7585 case $lib in
7586 *.la) func_source "$func_resolve_sysroot_result" ;;
7587 esac
7588
7589 # Collect preopened libtool deplibs, except any this library
7590 # has declared as weak libs
7591 for deplib in $dependency_libs; do
7592 func_basename "$deplib"
7593 deplib_base=$func_basename_result
7594 case " $weak_libs " in
7595 *" $deplib_base "*) ;;
7596 *) func_append deplibs " $deplib" ;;
7597 esac
7598 done
7599 done
7600 libs=$dlprefiles
7601 fi
7602 if test dlopen = "$pass"; then
7603 # Collect dlpreopened libraries
7604 save_deplibs=$deplibs
7605 deplibs=
7606 fi
7607
7608 for deplib in $libs; do
7609 lib=
7610 found=false
7611 case $deplib in
7612 -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \
7613 |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*)
7614 if test prog,link = "$linkmode,$pass"; then
7615 compile_deplibs="$deplib $compile_deplibs"
7616 finalize_deplibs="$deplib $finalize_deplibs"
7617 else
7618 func_append compiler_flags " $deplib"
7619 if test lib = "$linkmode"; then
7620 case "$new_inherited_linker_flags " in
7621 *" $deplib "*) ;;
7622 * ) func_append new_inherited_linker_flags " $deplib" ;;
7623 esac
7624 fi
7625 fi
7626 continue
7627 ;;
7628 -l*)
7629 if test lib != "$linkmode" && test prog != "$linkmode"; then
7630 func_warning "'-l' is ignored for archives/objects"
7631 continue
7632 fi
7633 func_stripname '-l' '' "$deplib"
7634 name=$func_stripname_result
7635 if test lib = "$linkmode"; then
7636 searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
7637 else
7638 searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
7639 fi
7640 for searchdir in $searchdirs; do
7641 for search_ext in .la $std_shrext .so .a; do
7642 # Search the libtool library
7643 lib=$searchdir/lib$name$search_ext
7644 if test -f "$lib"; then
7645 if test .la = "$search_ext"; then
7646 found=:
7647 else
7648 found=false
7649 fi
7650 break 2
7651 fi
7652 done
7653 done
7654 if $found; then
7655 # deplib is a libtool library
7656 # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
7657 # We need to do some special things here, and not later.
7658 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
7659 case " $predeps $postdeps " in
7660 *" $deplib "*)
7661 if func_lalib_p "$lib"; then
7662 library_names=
7663 old_library=
7664 func_source "$lib"
7665 for l in $old_library $library_names; do
7666 ll=$l
7667 done
7668 if test "X$ll" = "X$old_library"; then # only static version available
7669 found=false
7670 func_dirname "$lib" "" "."
7671 ladir=$func_dirname_result
7672 lib=$ladir/$old_library
7673 if test prog,link = "$linkmode,$pass"; then
7674 compile_deplibs="$deplib $compile_deplibs"
7675 finalize_deplibs="$deplib $finalize_deplibs"
7676 else
7677 deplibs="$deplib $deplibs"
7678 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7679 fi
7680 continue
7681 fi
7682 fi
7683 ;;
7684 *) ;;
7685 esac
7686 fi
7687 else
7688 # deplib doesn't seem to be a libtool library
7689 if test prog,link = "$linkmode,$pass"; then
7690 compile_deplibs="$deplib $compile_deplibs"
7691 finalize_deplibs="$deplib $finalize_deplibs"
7692 else
7693 deplibs="$deplib $deplibs"
7694 test lib = "$linkmode" && newdependency_libs="$deplib $newdependency_libs"
7695 fi
7696 continue
7697 fi
7698 ;; # -l
7699 *.ltframework)
7700 if test prog,link = "$linkmode,$pass"; then
7701 compile_deplibs="$deplib $compile_deplibs"
7702 finalize_deplibs="$deplib $finalize_deplibs"
7703 else
7704 deplibs="$deplib $deplibs"
7705 if test lib = "$linkmode"; then
7706 case "$new_inherited_linker_flags " in
7707 *" $deplib "*) ;;
7708 * ) func_append new_inherited_linker_flags " $deplib" ;;
7709 esac
7710 fi
7711 fi
7712 continue
7713 ;;
7714 -L*)
7715 case $linkmode in
7716 lib)
7717 deplibs="$deplib $deplibs"
7718 test conv = "$pass" && continue
7719 newdependency_libs="$deplib $newdependency_libs"
7720 func_stripname '-L' '' "$deplib"
7721 func_resolve_sysroot "$func_stripname_result"
7722 func_append newlib_search_path " $func_resolve_sysroot_result"
7723 ;;
7724 prog)
7725 if test conv = "$pass"; then
7726 deplibs="$deplib $deplibs"
7727 continue
7728 fi
7729 if test scan = "$pass"; then
7730 deplibs="$deplib $deplibs"
7731 else
7732 compile_deplibs="$deplib $compile_deplibs"
7733 finalize_deplibs="$deplib $finalize_deplibs"
7734 fi
7735 func_stripname '-L' '' "$deplib"
7736 func_resolve_sysroot "$func_stripname_result"
7737 func_append newlib_search_path " $func_resolve_sysroot_result"
7738 ;;
7739 *)
7740 func_warning "'-L' is ignored for archives/objects"
7741 ;;
7742 esac # linkmode
7743 continue
7744 ;; # -L
7745 -R*)
7746 if test link = "$pass"; then
7747 func_stripname '-R' '' "$deplib"
7748 func_resolve_sysroot "$func_stripname_result"
7749 dir=$func_resolve_sysroot_result
7750 # Make sure the xrpath contains only unique directories.
7751 case "$xrpath " in
7752 *" $dir "*) ;;
7753 *) func_append xrpath " $dir" ;;
7754 esac
7755 fi
7756 deplibs="$deplib $deplibs"
7757 continue
7758 ;;
7759 *.la)
7760 func_resolve_sysroot "$deplib"
7761 lib=$func_resolve_sysroot_result
7762 ;;
7763 *.$libext)
7764 if test conv = "$pass"; then
7765 deplibs="$deplib $deplibs"
7766 continue
7767 fi
7768 case $linkmode in
7769 lib)
7770 # Linking convenience modules into shared libraries is allowed,
7771 # but linking other static libraries is non-portable.
7772 case " $dlpreconveniencelibs " in
7773 *" $deplib "*) ;;
7774 *)
7775 valid_a_lib=false
7776 case $deplibs_check_method in
7777 match_pattern*)
7778 set dummy $deplibs_check_method; shift
7779 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
7780 if eval "\$ECHO \"$deplib\"" 2>/dev/null | $SED 10q \
7781 | $EGREP "$match_pattern_regex" > /dev/null; then
7782 valid_a_lib=:
7783 fi
7784 ;;
7785 pass_all)
7786 valid_a_lib=:
7787 ;;
7788 esac
7789 if $valid_a_lib; then
7790 echo
7791 $ECHO "*** Warning: Linking the shared library $output against the"
7792 $ECHO "*** static library $deplib is not portable!"
7793 deplibs="$deplib $deplibs"
7794 else
7795 echo
7796 $ECHO "*** Warning: Trying to link with static lib archive $deplib."
7797 echo "*** I have the capability to make that library automatically link in when"
7798 echo "*** you link to this library. But I can only do this if you have a"
7799 echo "*** shared version of the library, which you do not appear to have"
7800 echo "*** because the file extensions .$libext of this argument makes me believe"
7801 echo "*** that it is just a static archive that I should not use here."
7802 fi
7803 ;;
7804 esac
7805 continue
7806 ;;
7807 prog)
7808 if test link != "$pass"; then
7809 deplibs="$deplib $deplibs"
7810 else
7811 compile_deplibs="$deplib $compile_deplibs"
7812 finalize_deplibs="$deplib $finalize_deplibs"
7813 fi
7814 continue
7815 ;;
7816 esac # linkmode
7817 ;; # *.$libext
7818 *.lo | *.$objext)
7819 if test conv = "$pass"; then
7820 deplibs="$deplib $deplibs"
7821 elif test prog = "$linkmode"; then
7822 if test dlpreopen = "$pass" || test yes != "$dlopen_support" || test no = "$build_libtool_libs"; then
7823 # If there is no dlopen support or we're linking statically,
7824 # we need to preload.
7825 func_append newdlprefiles " $deplib"
7826 compile_deplibs="$deplib $compile_deplibs"
7827 finalize_deplibs="$deplib $finalize_deplibs"
7828 else
7829 func_append newdlfiles " $deplib"
7830 fi
7831 fi
7832 continue
7833 ;;
7834 %DEPLIBS%)
7835 alldeplibs=:
7836 continue
7837 ;;
7838 esac # case $deplib
7839
7840 $found || test -f "$lib" \
7841 || func_fatal_error "cannot find the library '$lib' or unhandled argument '$deplib'"
7842
7843 # Check to see that this really is a libtool archive.
7844 func_lalib_unsafe_p "$lib" \
7845 || func_fatal_error "'$lib' is not a valid libtool archive"
7846
7847 func_dirname "$lib" "" "."
7848 ladir=$func_dirname_result
7849
7850 dlname=
7851 dlopen=
7852 dlpreopen=
7853 libdir=
7854 library_names=
7855 old_library=
7856 inherited_linker_flags=
7857 # If the library was installed with an old release of libtool,
7858 # it will not redefine variables installed, or shouldnotlink
7859 installed=yes
7860 shouldnotlink=no
7861 avoidtemprpath=
7862
7863
7864 # Read the .la file
7865 func_source "$lib"
7866
7867 # Convert "-framework foo" to "foo.ltframework"
7868 if test -n "$inherited_linker_flags"; then
7869 tmp_inherited_linker_flags=`$ECHO "$inherited_linker_flags" | $SED 's/-framework \([^ $]*\)/\1.ltframework/g'`
7870 for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
7871 case " $new_inherited_linker_flags " in
7872 *" $tmp_inherited_linker_flag "*) ;;
7873 *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";;
7874 esac
7875 done
7876 fi
7877 dependency_libs=`$ECHO " $dependency_libs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
7878 if test lib,link = "$linkmode,$pass" ||
7879 test prog,scan = "$linkmode,$pass" ||
7880 { test prog != "$linkmode" && test lib != "$linkmode"; }; then
7881 test -n "$dlopen" && func_append dlfiles " $dlopen"
7882 test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen"
7883 fi
7884
7885 if test conv = "$pass"; then
7886 # Only check for convenience libraries
7887 deplibs="$lib $deplibs"
7888 if test -z "$libdir"; then
7889 if test -z "$old_library"; then
7890 func_fatal_error "cannot find name of link library for '$lib'"
7891 fi
7892 # It is a libtool convenience library, so add in its objects.
7893 func_append convenience " $ladir/$objdir/$old_library"
7894 func_append old_convenience " $ladir/$objdir/$old_library"
7895 tmp_libs=
7896 for deplib in $dependency_libs; do
7897 deplibs="$deplib $deplibs"
7898 if $opt_preserve_dup_deps; then
7899 case "$tmp_libs " in
7900 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
7901 esac
7902 fi
7903 func_append tmp_libs " $deplib"
7904 done
7905 elif test prog != "$linkmode" && test lib != "$linkmode"; then
7906 func_fatal_error "'$lib' is not a convenience library"
7907 fi
7908 continue
7909 fi # $pass = conv
7910
7911
7912 # Get the name of the library we link against.
7913 linklib=
7914 if test -n "$old_library" &&
7915 { test yes = "$prefer_static_libs" ||
7916 test built,no = "$prefer_static_libs,$installed"; }; then
7917 linklib=$old_library
7918 else
7919 for l in $old_library $library_names; do
7920 linklib=$l
7921 done
7922 fi
7923 if test -z "$linklib"; then
7924 func_fatal_error "cannot find name of link library for '$lib'"
7925 fi
7926
7927 # This library was specified with -dlopen.
7928 if test dlopen = "$pass"; then
7929 test -z "$libdir" \
7930 && func_fatal_error "cannot -dlopen a convenience library: '$lib'"
7931 if test -z "$dlname" ||
7932 test yes != "$dlopen_support" ||
7933 test no = "$build_libtool_libs"
7934 then
7935 # If there is no dlname, no dlopen support or we're linking
7936 # statically, we need to preload. We also need to preload any
7937 # dependent libraries so libltdl's deplib preloader doesn't
7938 # bomb out in the load deplibs phase.
7939 func_append dlprefiles " $lib $dependency_libs"
7940 else
7941 func_append newdlfiles " $lib"
7942 fi
7943 continue
7944 fi # $pass = dlopen
7945
7946 # We need an absolute path.
7947 case $ladir in
7948 [\\/]* | [A-Za-z]:[\\/]*) abs_ladir=$ladir ;;
7949 *)
7950 abs_ladir=`cd "$ladir" && pwd`
7951 if test -z "$abs_ladir"; then
7952 func_warning "cannot determine absolute directory name of '$ladir'"
7953 func_warning "passing it literally to the linker, although it might fail"
7954 abs_ladir=$ladir
7955 fi
7956 ;;
7957 esac
7958 func_basename "$lib"
7959 laname=$func_basename_result
7960
7961 # Find the relevant object directory and library name.
7962 if test yes = "$installed"; then
7963 if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
7964 func_warning "library '$lib' was moved."
7965 dir=$ladir
7966 absdir=$abs_ladir
7967 libdir=$abs_ladir
7968 else
7969 dir=$lt_sysroot$libdir
7970 absdir=$lt_sysroot$libdir
7971 fi
7972 test yes = "$hardcode_automatic" && avoidtemprpath=yes
7973 else
7974 if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
7975 dir=$ladir
7976 absdir=$abs_ladir
7977 # Remove this search path later
7978 func_append notinst_path " $abs_ladir"
7979 else
7980 dir=$ladir/$objdir
7981 absdir=$abs_ladir/$objdir
7982 # Remove this search path later
7983 func_append notinst_path " $abs_ladir"
7984 fi
7985 fi # $installed = yes
7986 func_stripname 'lib' '.la' "$laname"
7987 name=$func_stripname_result
7988
7989 # This library was specified with -dlpreopen.
7990 if test dlpreopen = "$pass"; then
7991 if test -z "$libdir" && test prog = "$linkmode"; then
7992 func_fatal_error "only libraries may -dlpreopen a convenience library: '$lib'"
7993 fi
7994 case $host in
7995 # special handling for platforms with PE-DLLs.
7996 *cygwin* | *mingw* | *cegcc* )
7997 # Linker will automatically link against shared library if both
7998 # static and shared are present. Therefore, ensure we extract
7999 # symbols from the import library if a shared library is present
8000 # (otherwise, the dlopen module name will be incorrect). We do
8001 # this by putting the import library name into $newdlprefiles.
8002 # We recover the dlopen module name by 'saving' the la file
8003 # name in a special purpose variable, and (later) extracting the
8004 # dlname from the la file.
8005 if test -n "$dlname"; then
8006 func_tr_sh "$dir/$linklib"
8007 eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname"
8008 func_append newdlprefiles " $dir/$linklib"
8009 else
8010 func_append newdlprefiles " $dir/$old_library"
8011 # Keep a list of preopened convenience libraries to check
8012 # that they are being used correctly in the link pass.
8013 test -z "$libdir" && \
8014 func_append dlpreconveniencelibs " $dir/$old_library"
8015 fi
8016 ;;
8017 * )
8018 # Prefer using a static library (so that no silly _DYNAMIC symbols
8019 # are required to link).
8020 if test -n "$old_library"; then
8021 func_append newdlprefiles " $dir/$old_library"
8022 # Keep a list of preopened convenience libraries to check
8023 # that they are being used correctly in the link pass.
8024 test -z "$libdir" && \
8025 func_append dlpreconveniencelibs " $dir/$old_library"
8026 # Otherwise, use the dlname, so that lt_dlopen finds it.
8027 elif test -n "$dlname"; then
8028 func_append newdlprefiles " $dir/$dlname"
8029 else
8030 func_append newdlprefiles " $dir/$linklib"
8031 fi
8032 ;;
8033 esac
8034 fi # $pass = dlpreopen
8035
8036 if test -z "$libdir"; then
8037 # Link the convenience library
8038 if test lib = "$linkmode"; then
8039 deplibs="$dir/$old_library $deplibs"
8040 elif test prog,link = "$linkmode,$pass"; then
8041 compile_deplibs="$dir/$old_library $compile_deplibs"
8042 finalize_deplibs="$dir/$old_library $finalize_deplibs"
8043 else
8044 deplibs="$lib $deplibs" # used for prog,scan pass
8045 fi
8046 continue
8047 fi
8048
8049
8050 if test prog = "$linkmode" && test link != "$pass"; then
8051 func_append newlib_search_path " $ladir"
8052 deplibs="$lib $deplibs"
8053
8054 linkalldeplibs=false
8055 if test no != "$link_all_deplibs" || test -z "$library_names" ||
8056 test no = "$build_libtool_libs"; then
8057 linkalldeplibs=:
8058 fi
8059
8060 tmp_libs=
8061 for deplib in $dependency_libs; do
8062 case $deplib in
8063 -L*) func_stripname '-L' '' "$deplib"
8064 func_resolve_sysroot "$func_stripname_result"
8065 func_append newlib_search_path " $func_resolve_sysroot_result"
8066 ;;
8067 esac
8068 # Need to link against all dependency_libs?
8069 if $linkalldeplibs; then
8070 deplibs="$deplib $deplibs"
8071 else
8072 # Need to hardcode shared library paths
8073 # or/and link against static libraries
8074 newdependency_libs="$deplib $newdependency_libs"
8075 fi
8076 if $opt_preserve_dup_deps; then
8077 case "$tmp_libs " in
8078 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
8079 esac
8080 fi
8081 func_append tmp_libs " $deplib"
8082 done # for deplib
8083 continue
8084 fi # $linkmode = prog...
8085
8086 if test prog,link = "$linkmode,$pass"; then
8087 if test -n "$library_names" &&
8088 { { test no = "$prefer_static_libs" ||
8089 test built,yes = "$prefer_static_libs,$installed"; } ||
8090 test -z "$old_library"; }; then
8091 # We need to hardcode the library path
8092 if test -n "$shlibpath_var" && test -z "$avoidtemprpath"; then
8093 # Make sure the rpath contains only unique directories.
8094 case $temp_rpath: in
8095 *"$absdir:"*) ;;
8096 *) func_append temp_rpath "$absdir:" ;;
8097 esac
8098 fi
8099
8100 # Hardcode the library path.
8101 # Skip directories that are in the system default run-time
8102 # search path.
8103 case " $sys_lib_dlsearch_path " in
8104 *" $absdir "*) ;;
8105 *)
8106 case "$compile_rpath " in
8107 *" $absdir "*) ;;
8108 *) func_append compile_rpath " $absdir" ;;
8109 esac
8110 ;;
8111 esac
8112 case " $sys_lib_dlsearch_path " in
8113 *" $libdir "*) ;;
8114 *)
8115 case "$finalize_rpath " in
8116 *" $libdir "*) ;;
8117 *) func_append finalize_rpath " $libdir" ;;
8118 esac
8119 ;;
8120 esac
8121 fi # $linkmode,$pass = prog,link...
8122
8123 if $alldeplibs &&
8124 { test pass_all = "$deplibs_check_method" ||
8125 { test yes = "$build_libtool_libs" &&
8126 test -n "$library_names"; }; }; then
8127 # We only need to search for static libraries
8128 continue
8129 fi
8130 fi
8131
8132 link_static=no # Whether the deplib will be linked statically
8133 use_static_libs=$prefer_static_libs
8134 if test built = "$use_static_libs" && test yes = "$installed"; then
8135 use_static_libs=no
8136 fi
8137 if test -n "$library_names" &&
8138 { test no = "$use_static_libs" || test -z "$old_library"; }; then
8139 case $host in
8140 *cygwin* | *mingw* | *cegcc* | *os2*)
8141 # No point in relinking DLLs because paths are not encoded
8142 func_append notinst_deplibs " $lib"
8143 need_relink=no
8144 ;;
8145 *)
8146 if test no = "$installed"; then
8147 func_append notinst_deplibs " $lib"
8148 need_relink=yes
8149 fi
8150 ;;
8151 esac
8152 # This is a shared library
8153
8154 # Warn about portability, can't link against -module's on some
8155 # systems (darwin). Don't bleat about dlopened modules though!
8156 dlopenmodule=
8157 for dlpremoduletest in $dlprefiles; do
8158 if test "X$dlpremoduletest" = "X$lib"; then
8159 dlopenmodule=$dlpremoduletest
8160 break
8161 fi
8162 done
8163 if test -z "$dlopenmodule" && test yes = "$shouldnotlink" && test link = "$pass"; then
8164 echo
8165 if test prog = "$linkmode"; then
8166 $ECHO "*** Warning: Linking the executable $output against the loadable module"
8167 else
8168 $ECHO "*** Warning: Linking the shared library $output against the loadable module"
8169 fi
8170 $ECHO "*** $linklib is not portable!"
8171 fi
8172 if test lib = "$linkmode" &&
8173 test yes = "$hardcode_into_libs"; then
8174 # Hardcode the library path.
8175 # Skip directories that are in the system default run-time
8176 # search path.
8177 case " $sys_lib_dlsearch_path " in
8178 *" $absdir "*) ;;
8179 *)
8180 case "$compile_rpath " in
8181 *" $absdir "*) ;;
8182 *) func_append compile_rpath " $absdir" ;;
8183 esac
8184 ;;
8185 esac
8186 case " $sys_lib_dlsearch_path " in
8187 *" $libdir "*) ;;
8188 *)
8189 case "$finalize_rpath " in
8190 *" $libdir "*) ;;
8191 *) func_append finalize_rpath " $libdir" ;;
8192 esac
8193 ;;
8194 esac
8195 fi
8196
8197 if test -n "$old_archive_from_expsyms_cmds"; then
8198 # figure out the soname
8199 set dummy $library_names
8200 shift
8201 realname=$1
8202 shift
8203 libname=`eval "\\$ECHO \"$libname_spec\""`
8204 # use dlname if we got it. it's perfectly good, no?
8205 if test -n "$dlname"; then
8206 soname=$dlname
8207 elif test -n "$soname_spec"; then
8208 # bleh windows
8209 case $host in
8210 *cygwin* | mingw* | *cegcc* | *os2*)
8211 func_arith $current - $age
8212 major=$func_arith_result
8213 versuffix=-$major
8214 ;;
8215 esac
8216 eval soname=\"$soname_spec\"
8217 else
8218 soname=$realname
8219 fi
8220
8221 # Make a new name for the extract_expsyms_cmds to use
8222 soroot=$soname
8223 func_basename "$soroot"
8224 soname=$func_basename_result
8225 func_stripname 'lib' '.dll' "$soname"
8226 newlib=libimp-$func_stripname_result.a
8227
8228 # If the library has no export list, then create one now
8229 if test -f "$output_objdir/$soname-def"; then :
8230 else
8231 func_verbose "extracting exported symbol list from '$soname'"
8232 func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
8233 fi
8234
8235 # Create $newlib
8236 if test -f "$output_objdir/$newlib"; then :; else
8237 func_verbose "generating import library for '$soname'"
8238 func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
8239 fi
8240 # make sure the library variables are pointing to the new library
8241 dir=$output_objdir
8242 linklib=$newlib
8243 fi # test -n "$old_archive_from_expsyms_cmds"
8244
8245 if test prog = "$linkmode" || test relink != "$opt_mode"; then
8246 add_shlibpath=
8247 add_dir=
8248 add=
8249 lib_linked=yes
8250 case $hardcode_action in
8251 immediate | unsupported)
8252 if test no = "$hardcode_direct"; then
8253 add=$dir/$linklib
8254 case $host in
8255 *-*-sco3.2v5.0.[024]*) add_dir=-L$dir ;;
8256 *-*-sysv4*uw2*) add_dir=-L$dir ;;
8257 *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
8258 *-*-unixware7*) add_dir=-L$dir ;;
8259 *-*-darwin* )
8260 # if the lib is a (non-dlopened) module then we cannot
8261 # link against it, someone is ignoring the earlier warnings
8262 if /usr/bin/file -L $add 2> /dev/null |
8263 $GREP ": [^:]* bundle" >/dev/null; then
8264 if test "X$dlopenmodule" != "X$lib"; then
8265 $ECHO "*** Warning: lib $linklib is a module, not a shared library"
8266 if test -z "$old_library"; then
8267 echo
8268 echo "*** And there doesn't seem to be a static archive available"
8269 echo "*** The link will probably fail, sorry"
8270 else
8271 add=$dir/$old_library
8272 fi
8273 elif test -n "$old_library"; then
8274 add=$dir/$old_library
8275 fi
8276 fi
8277 esac
8278 elif test no = "$hardcode_minus_L"; then
8279 case $host in
8280 *-*-sunos*) add_shlibpath=$dir ;;
8281 esac
8282 add_dir=-L$dir
8283 add=-l$name
8284 elif test no = "$hardcode_shlibpath_var"; then
8285 add_shlibpath=$dir
8286 add=-l$name
8287 else
8288 lib_linked=no
8289 fi
8290 ;;
8291 relink)
8292 if test yes = "$hardcode_direct" &&
8293 test no = "$hardcode_direct_absolute"; then
8294 add=$dir/$linklib
8295 elif test yes = "$hardcode_minus_L"; then
8296 add_dir=-L$absdir
8297 # Try looking first in the location we're being installed to.
8298 if test -n "$inst_prefix_dir"; then
8299 case $libdir in
8300 [\\/]*)
8301 func_append add_dir " -L$inst_prefix_dir$libdir"
8302 ;;
8303 esac
8304 fi
8305 add=-l$name
8306 elif test yes = "$hardcode_shlibpath_var"; then
8307 add_shlibpath=$dir
8308 add=-l$name
8309 else
8310 lib_linked=no
8311 fi
8312 ;;
8313 *) lib_linked=no ;;
8314 esac
8315
8316 if test yes != "$lib_linked"; then
8317 func_fatal_configuration "unsupported hardcode properties"
8318 fi
8319
8320 if test -n "$add_shlibpath"; then
8321 case :$compile_shlibpath: in
8322 *":$add_shlibpath:"*) ;;
8323 *) func_append compile_shlibpath "$add_shlibpath:" ;;
8324 esac
8325 fi
8326 if test prog = "$linkmode"; then
8327 test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
8328 test -n "$add" && compile_deplibs="$add $compile_deplibs"
8329 else
8330 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8331 test -n "$add" && deplibs="$add $deplibs"
8332 if test yes != "$hardcode_direct" &&
8333 test yes != "$hardcode_minus_L" &&
8334 test yes = "$hardcode_shlibpath_var"; then
8335 case :$finalize_shlibpath: in
8336 *":$libdir:"*) ;;
8337 *) func_append finalize_shlibpath "$libdir:" ;;
8338 esac
8339 fi
8340 fi
8341 fi
8342
8343 if test prog = "$linkmode" || test relink = "$opt_mode"; then
8344 add_shlibpath=
8345 add_dir=
8346 add=
8347 # Finalize command for both is simple: just hardcode it.
8348 if test yes = "$hardcode_direct" &&
8349 test no = "$hardcode_direct_absolute"; then
8350 add=$libdir/$linklib
8351 elif test yes = "$hardcode_minus_L"; then
8352 add_dir=-L$libdir
8353 add=-l$name
8354 elif test yes = "$hardcode_shlibpath_var"; then
8355 case :$finalize_shlibpath: in
8356 *":$libdir:"*) ;;
8357 *) func_append finalize_shlibpath "$libdir:" ;;
8358 esac
8359 add=-l$name
8360 elif test yes = "$hardcode_automatic"; then
8361 if test -n "$inst_prefix_dir" &&
8362 test -f "$inst_prefix_dir$libdir/$linklib"; then
8363 add=$inst_prefix_dir$libdir/$linklib
8364 else
8365 add=$libdir/$linklib
8366 fi
8367 else
8368 # We cannot seem to hardcode it, guess we'll fake it.
8369 add_dir=-L$libdir
8370 # Try looking first in the location we're being installed to.
8371 if test -n "$inst_prefix_dir"; then
8372 case $libdir in
8373 [\\/]*)
8374 func_append add_dir " -L$inst_prefix_dir$libdir"
8375 ;;
8376 esac
8377 fi
8378 add=-l$name
8379 fi
8380
8381 if test prog = "$linkmode"; then
8382 test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
8383 test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
8384 else
8385 test -n "$add_dir" && deplibs="$add_dir $deplibs"
8386 test -n "$add" && deplibs="$add $deplibs"
8387 fi
8388 fi
8389 elif test prog = "$linkmode"; then
8390 # Here we assume that one of hardcode_direct or hardcode_minus_L
8391 # is not unsupported. This is valid on all known static and
8392 # shared platforms.
8393 if test unsupported != "$hardcode_direct"; then
8394 test -n "$old_library" && linklib=$old_library
8395 compile_deplibs="$dir/$linklib $compile_deplibs"
8396 finalize_deplibs="$dir/$linklib $finalize_deplibs"
8397 else
8398 compile_deplibs="-l$name -L$dir $compile_deplibs"
8399 finalize_deplibs="-l$name -L$dir $finalize_deplibs"
8400 fi
8401 elif test yes = "$build_libtool_libs"; then
8402 # Not a shared library
8403 if test pass_all != "$deplibs_check_method"; then
8404 # We're trying link a shared library against a static one
8405 # but the system doesn't support it.
8406
8407 # Just print a warning and add the library to dependency_libs so
8408 # that the program can be linked against the static library.
8409 echo
8410 $ECHO "*** Warning: This system cannot link to static lib archive $lib."
8411 echo "*** I have the capability to make that library automatically link in when"
8412 echo "*** you link to this library. But I can only do this if you have a"
8413 echo "*** shared version of the library, which you do not appear to have."
8414 if test yes = "$module"; then
8415 echo "*** But as you try to build a module library, libtool will still create "
8416 echo "*** a static module, that should work as long as the dlopening application"
8417 echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
8418 if test -z "$global_symbol_pipe"; then
8419 echo
8420 echo "*** However, this would only work if libtool was able to extract symbol"
8421 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
8422 echo "*** not find such a program. So, this module is probably useless."
8423 echo "*** 'nm' from GNU binutils and a full rebuild may help."
8424 fi
8425 if test no = "$build_old_libs"; then
8426 build_libtool_libs=module
8427 build_old_libs=yes
8428 else
8429 build_libtool_libs=no
8430 fi
8431 fi
8432 else
8433 deplibs="$dir/$old_library $deplibs"
8434 link_static=yes
8435 fi
8436 fi # link shared/static library?
8437
8438 if test lib = "$linkmode"; then
8439 if test -n "$dependency_libs" &&
8440 { test yes != "$hardcode_into_libs" ||
8441 test yes = "$build_old_libs" ||
8442 test yes = "$link_static"; }; then
8443 # Extract -R from dependency_libs
8444 temp_deplibs=
8445 for libdir in $dependency_libs; do
8446 case $libdir in
8447 -R*) func_stripname '-R' '' "$libdir"
8448 temp_xrpath=$func_stripname_result
8449 case " $xrpath " in
8450 *" $temp_xrpath "*) ;;
8451 *) func_append xrpath " $temp_xrpath";;
8452 esac;;
8453 *) func_append temp_deplibs " $libdir";;
8454 esac
8455 done
8456 dependency_libs=$temp_deplibs
8457 fi
8458
8459 func_append newlib_search_path " $absdir"
8460 # Link against this library
8461 test no = "$link_static" && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
8462 # ... and its dependency_libs
8463 tmp_libs=
8464 for deplib in $dependency_libs; do
8465 newdependency_libs="$deplib $newdependency_libs"
8466 case $deplib in
8467 -L*) func_stripname '-L' '' "$deplib"
8468 func_resolve_sysroot "$func_stripname_result";;
8469 *) func_resolve_sysroot "$deplib" ;;
8470 esac
8471 if $opt_preserve_dup_deps; then
8472 case "$tmp_libs " in
8473 *" $func_resolve_sysroot_result "*)
8474 func_append specialdeplibs " $func_resolve_sysroot_result" ;;
8475 esac
8476 fi
8477 func_append tmp_libs " $func_resolve_sysroot_result"
8478 done
8479
8480 if test no != "$link_all_deplibs"; then
8481 # Add the search paths of all dependency libraries
8482 for deplib in $dependency_libs; do
8483 path=
8484 case $deplib in
8485 -L*) path=$deplib ;;
8486 *.la)
8487 func_resolve_sysroot "$deplib"
8488 deplib=$func_resolve_sysroot_result
8489 func_dirname "$deplib" "" "."
8490 dir=$func_dirname_result
8491 # We need an absolute path.
8492 case $dir in
8493 [\\/]* | [A-Za-z]:[\\/]*) absdir=$dir ;;
8494 *)
8495 absdir=`cd "$dir" && pwd`
8496 if test -z "$absdir"; then
8497 func_warning "cannot determine absolute directory name of '$dir'"
8498 absdir=$dir
8499 fi
8500 ;;
8501 esac
8502 if $GREP "^installed=no" $deplib > /dev/null; then
8503 case $host in
8504 *-*-darwin*)
8505 depdepl=
8506 eval deplibrary_names=`$SED -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
8507 if test -n "$deplibrary_names"; then
8508 for tmp in $deplibrary_names; do
8509 depdepl=$tmp
8510 done
8511 if test -f "$absdir/$objdir/$depdepl"; then
8512 depdepl=$absdir/$objdir/$depdepl
8513 darwin_install_name=`$OTOOL -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8514 if test -z "$darwin_install_name"; then
8515 darwin_install_name=`$OTOOL64 -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
8516 fi
8517 func_append compiler_flags " $wl-dylib_file $wl$darwin_install_name:$depdepl"
8518 func_append linker_flags " -dylib_file $darwin_install_name:$depdepl"
8519 path=
8520 fi
8521 fi
8522 ;;
8523 *)
8524 path=-L$absdir/$objdir
8525 ;;
8526 esac
8527 else
8528 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
8529 test -z "$libdir" && \
8530 func_fatal_error "'$deplib' is not a valid libtool archive"
8531 test "$absdir" != "$libdir" && \
8532 func_warning "'$deplib' seems to be moved"
8533
8534 path=-L$absdir
8535 fi
8536 ;;
8537 esac
8538 case " $deplibs " in
8539 *" $path "*) ;;
8540 *) deplibs="$path $deplibs" ;;
8541 esac
8542 done
8543 fi # link_all_deplibs != no
8544 fi # linkmode = lib
8545 done # for deplib in $libs
8546 if test link = "$pass"; then
8547 if test prog = "$linkmode"; then
8548 compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
8549 finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
8550 else
8551 compiler_flags="$compiler_flags "`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
8552 fi
8553 fi
8554 dependency_libs=$newdependency_libs
8555 if test dlpreopen = "$pass"; then
8556 # Link the dlpreopened libraries before other libraries
8557 for deplib in $save_deplibs; do
8558 deplibs="$deplib $deplibs"
8559 done
8560 fi
8561 if test dlopen != "$pass"; then
8562 test conv = "$pass" || {
8563 # Make sure lib_search_path contains only unique directories.
8564 lib_search_path=
8565 for dir in $newlib_search_path; do
8566 case "$lib_search_path " in
8567 *" $dir "*) ;;
8568 *) func_append lib_search_path " $dir" ;;
8569 esac
8570 done
8571 newlib_search_path=
8572 }
8573
8574 if test prog,link = "$linkmode,$pass"; then
8575 vars="compile_deplibs finalize_deplibs"
8576 else
8577 vars=deplibs
8578 fi
8579 for var in $vars dependency_libs; do
8580 # Add libraries to $var in reverse order
8581 eval tmp_libs=\"\$$var\"
8582 new_libs=
8583 for deplib in $tmp_libs; do
8584 # FIXME: Pedantically, this is the right thing to do, so
8585 # that some nasty dependency loop isn't accidentally
8586 # broken:
8587 #new_libs="$deplib $new_libs"
8588 # Pragmatically, this seems to cause very few problems in
8589 # practice:
8590 case $deplib in
8591 -L*) new_libs="$deplib $new_libs" ;;
8592 -R*) ;;
8593 *)
8594 # And here is the reason: when a library appears more
8595 # than once as an explicit dependence of a library, or
8596 # is implicitly linked in more than once by the
8597 # compiler, it is considered special, and multiple
8598 # occurrences thereof are not removed. Compare this
8599 # with having the same library being listed as a
8600 # dependency of multiple other libraries: in this case,
8601 # we know (pedantically, we assume) the library does not
8602 # need to be listed more than once, so we keep only the
8603 # last copy. This is not always right, but it is rare
8604 # enough that we require users that really mean to play
8605 # such unportable linking tricks to link the library
8606 # using -Wl,-lname, so that libtool does not consider it
8607 # for duplicate removal.
8608 case " $specialdeplibs " in
8609 *" $deplib "*) new_libs="$deplib $new_libs" ;;
8610 *)
8611 case " $new_libs " in
8612 *" $deplib "*) ;;
8613 *) new_libs="$deplib $new_libs" ;;
8614 esac
8615 ;;
8616 esac
8617 ;;
8618 esac
8619 done
8620 tmp_libs=
8621 for deplib in $new_libs; do
8622 case $deplib in
8623 -L*)
8624 case " $tmp_libs " in
8625 *" $deplib "*) ;;
8626 *) func_append tmp_libs " $deplib" ;;
8627 esac
8628 ;;
8629 *) func_append tmp_libs " $deplib" ;;
8630 esac
8631 done
8632 eval $var=\"$tmp_libs\"
8633 done # for var
8634 fi
8635
8636 # Add Sun CC postdeps if required:
8637 test CXX = "$tagname" && {
8638 case $host_os in
8639 linux*)
8640 case `$CC -V 2>&1 | sed 5q` in
8641 *Sun\ C*) # Sun C++ 5.9
8642 func_suncc_cstd_abi
8643
8644 if test no != "$suncc_use_cstd_abi"; then
8645 func_append postdeps ' -library=Cstd -library=Crun'
8646 fi
8647 ;;
8648 esac
8649 ;;
8650
8651 solaris*)
8652 func_cc_basename "$CC"
8653 case $func_cc_basename_result in
8654 CC* | sunCC*)
8655 func_suncc_cstd_abi
8656
8657 if test no != "$suncc_use_cstd_abi"; then
8658 func_append postdeps ' -library=Cstd -library=Crun'
8659 fi
8660 ;;
8661 esac
8662 ;;
8663 esac
8664 }
8665
8666 # Last step: remove runtime libs from dependency_libs
8667 # (they stay in deplibs)
8668 tmp_libs=
8669 for i in $dependency_libs; do
8670 case " $predeps $postdeps $compiler_lib_search_path " in
8671 *" $i "*)
8672 i=
8673 ;;
8674 esac
8675 if test -n "$i"; then
8676 func_append tmp_libs " $i"
8677 fi
8678 done
8679 dependency_libs=$tmp_libs
8680 done # for pass
8681 if test prog = "$linkmode"; then
8682 dlfiles=$newdlfiles
8683 fi
8684 if test prog = "$linkmode" || test lib = "$linkmode"; then
8685 dlprefiles=$newdlprefiles
8686 fi
8687
8688 case $linkmode in
8689 oldlib)
8690 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
8691 func_warning "'-dlopen' is ignored for archives"
8692 fi
8693
8694 case " $deplibs" in
8695 *\ -l* | *\ -L*)
8696 func_warning "'-l' and '-L' are ignored for archives" ;;
8697 esac
8698
8699 test -n "$rpath" && \
8700 func_warning "'-rpath' is ignored for archives"
8701
8702 test -n "$xrpath" && \
8703 func_warning "'-R' is ignored for archives"
8704
8705 test -n "$vinfo" && \
8706 func_warning "'-version-info/-version-number' is ignored for archives"
8707
8708 test -n "$release" && \
8709 func_warning "'-release' is ignored for archives"
8710
8711 test -n "$export_symbols$export_symbols_regex" && \
8712 func_warning "'-export-symbols' is ignored for archives"
8713
8714 # Now set the variables for building old libraries.
8715 build_libtool_libs=no
8716 oldlibs=$output
8717 func_append objs "$old_deplibs"
8718 ;;
8719
8720 lib)
8721 # Make sure we only generate libraries of the form 'libNAME.la'.
8722 case $outputname in
8723 lib*)
8724 func_stripname 'lib' '.la' "$outputname"
8725 name=$func_stripname_result
8726 eval shared_ext=\"$shrext_cmds\"
8727 eval libname=\"$libname_spec\"
8728 ;;
8729 *)
8730 test no = "$module" \
8731 && func_fatal_help "libtool library '$output' must begin with 'lib'"
8732
8733 if test no != "$need_lib_prefix"; then
8734 # Add the "lib" prefix for modules if required
8735 func_stripname '' '.la' "$outputname"
8736 name=$func_stripname_result
8737 eval shared_ext=\"$shrext_cmds\"
8738 eval libname=\"$libname_spec\"
8739 else
8740 func_stripname '' '.la' "$outputname"
8741 libname=$func_stripname_result
8742 fi
8743 ;;
8744 esac
8745
8746 if test -n "$objs"; then
8747 if test pass_all != "$deplibs_check_method"; then
8748 func_fatal_error "cannot build libtool library '$output' from non-libtool objects on this host:$objs"
8749 else
8750 echo
8751 $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
8752 $ECHO "*** objects $objs is not portable!"
8753 func_append libobjs " $objs"
8754 fi
8755 fi
8756
8757 test no = "$dlself" \
8758 || func_warning "'-dlopen self' is ignored for libtool libraries"
8759
8760 set dummy $rpath
8761 shift
8762 test 1 -lt "$#" \
8763 && func_warning "ignoring multiple '-rpath's for a libtool library"
8764
8765 install_libdir=$1
8766
8767 oldlibs=
8768 if test -z "$rpath"; then
8769 if test yes = "$build_libtool_libs"; then
8770 # Building a libtool convenience library.
8771 # Some compilers have problems with a '.al' extension so
8772 # convenience libraries should have the same extension an
8773 # archive normally would.
8774 oldlibs="$output_objdir/$libname.$libext $oldlibs"
8775 build_libtool_libs=convenience
8776 build_old_libs=yes
8777 fi
8778
8779 test -n "$vinfo" && \
8780 func_warning "'-version-info/-version-number' is ignored for convenience libraries"
8781
8782 test -n "$release" && \
8783 func_warning "'-release' is ignored for convenience libraries"
8784 else
8785
8786 # Parse the version information argument.
8787 save_ifs=$IFS; IFS=:
8788 set dummy $vinfo 0 0 0
8789 shift
8790 IFS=$save_ifs
8791
8792 test -n "$7" && \
8793 func_fatal_help "too many parameters to '-version-info'"
8794
8795 # convert absolute version numbers to libtool ages
8796 # this retains compatibility with .la files and attempts
8797 # to make the code below a bit more comprehensible
8798
8799 case $vinfo_number in
8800 yes)
8801 number_major=$1
8802 number_minor=$2
8803 number_revision=$3
8804 #
8805 # There are really only two kinds -- those that
8806 # use the current revision as the major version
8807 # and those that subtract age and use age as
8808 # a minor version. But, then there is irix
8809 # that has an extra 1 added just for fun
8810 #
8811 case $version_type in
8812 # correct linux to gnu/linux during the next big refactor
8813 darwin|freebsd-elf|linux|osf|windows|none)
8814 func_arith $number_major + $number_minor
8815 current=$func_arith_result
8816 age=$number_minor
8817 revision=$number_revision
8818 ;;
8819 freebsd-aout|qnx|sunos)
8820 current=$number_major
8821 revision=$number_minor
8822 age=0
8823 ;;
8824 irix|nonstopux)
8825 func_arith $number_major + $number_minor
8826 current=$func_arith_result
8827 age=$number_minor
8828 revision=$number_minor
8829 lt_irix_increment=no
8830 ;;
8831 *)
8832 func_fatal_configuration "$modename: unknown library version type '$version_type'"
8833 ;;
8834 esac
8835 ;;
8836 no)
8837 current=$1
8838 revision=$2
8839 age=$3
8840 ;;
8841 esac
8842
8843 # Check that each of the things are valid numbers.
8844 case $current in
8845 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]) ;;
8846 *)
8847 func_error "CURRENT '$current' must be a nonnegative integer"
8848 func_fatal_error "'$vinfo' is not valid version information"
8849 ;;
8850 esac
8851
8852 case $revision in
8853 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]) ;;
8854 *)
8855 func_error "REVISION '$revision' must be a nonnegative integer"
8856 func_fatal_error "'$vinfo' is not valid version information"
8857 ;;
8858 esac
8859
8860 case $age in
8861 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]) ;;
8862 *)
8863 func_error "AGE '$age' must be a nonnegative integer"
8864 func_fatal_error "'$vinfo' is not valid version information"
8865 ;;
8866 esac
8867
8868 if test "$age" -gt "$current"; then
8869 func_error "AGE '$age' is greater than the current interface number '$current'"
8870 func_fatal_error "'$vinfo' is not valid version information"
8871 fi
8872
8873 # Calculate the version variables.
8874 major=
8875 versuffix=
8876 verstring=
8877 case $version_type in
8878 none) ;;
8879
8880 darwin)
8881 # Like Linux, but with the current version available in
8882 # verstring for coding it into the library header
8883 func_arith $current - $age
8884 major=.$func_arith_result
8885 versuffix=$major.$age.$revision
8886 # Darwin ld doesn't like 0 for these options...
8887 func_arith $current + 1
8888 minor_current=$func_arith_result
8889 xlcverstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8890 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8891 # On Darwin other compilers
8892 case $CC in
8893 nagfor*)
8894 verstring="$wl-compatibility_version $wl$minor_current $wl-current_version $wl$minor_current.$revision"
8895 ;;
8896 *)
8897 verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
8898 ;;
8899 esac
8900 ;;
8901
8902 freebsd-aout)
8903 major=.$current
8904 versuffix=.$current.$revision
8905 ;;
8906
8907 freebsd-elf)
8908 func_arith $current - $age
8909 major=.$func_arith_result
8910 versuffix=$major.$age.$revision
8911 ;;
8912
8913 irix | nonstopux)
8914 if test no = "$lt_irix_increment"; then
8915 func_arith $current - $age
8916 else
8917 func_arith $current - $age + 1
8918 fi
8919 major=$func_arith_result
8920
8921 case $version_type in
8922 nonstopux) verstring_prefix=nonstopux ;;
8923 *) verstring_prefix=sgi ;;
8924 esac
8925 verstring=$verstring_prefix$major.$revision
8926
8927 # Add in all the interfaces that we are compatible with.
8928 loop=$revision
8929 while test 0 -ne "$loop"; do
8930 func_arith $revision - $loop
8931 iface=$func_arith_result
8932 func_arith $loop - 1
8933 loop=$func_arith_result
8934 verstring=$verstring_prefix$major.$iface:$verstring
8935 done
8936
8937 # Before this point, $major must not contain '.'.
8938 major=.$major
8939 versuffix=$major.$revision
8940 ;;
8941
8942 linux) # correct to gnu/linux during the next big refactor
8943 func_arith $current - $age
8944 major=.$func_arith_result
8945 versuffix=$major.$age.$revision
8946 ;;
8947
8948 osf)
8949 func_arith $current - $age
8950 major=.$func_arith_result
8951 versuffix=.$current.$age.$revision
8952 verstring=$current.$age.$revision
8953
8954 # Add in all the interfaces that we are compatible with.
8955 loop=$age
8956 while test 0 -ne "$loop"; do
8957 func_arith $current - $loop
8958 iface=$func_arith_result
8959 func_arith $loop - 1
8960 loop=$func_arith_result
8961 verstring=$verstring:$iface.0
8962 done
8963
8964 # Make executables depend on our current version.
8965 func_append verstring ":$current.0"
8966 ;;
8967
8968 qnx)
8969 major=.$current
8970 versuffix=.$current
8971 ;;
8972
8973 sco)
8974 major=.$current
8975 versuffix=.$current
8976 ;;
8977
8978 sunos)
8979 major=.$current
8980 versuffix=.$current.$revision
8981 ;;
8982
8983 windows)
8984 # Use '-' rather than '.', since we only want one
8985 # extension on DOS 8.3 file systems.
8986 func_arith $current - $age
8987 major=$func_arith_result
8988 versuffix=-$major
8989 ;;
8990
8991 *)
8992 func_fatal_configuration "unknown library version type '$version_type'"
8993 ;;
8994 esac
8995
8996 # Clear the version info if we defaulted, and they specified a release.
8997 if test -z "$vinfo" && test -n "$release"; then
8998 major=
8999 case $version_type in
9000 darwin)
9001 # we can't check for "0.0" in archive_cmds due to quoting
9002 # problems, so we reset it completely
9003 verstring=
9004 ;;
9005 *)
9006 verstring=0.0
9007 ;;
9008 esac
9009 if test no = "$need_version"; then
9010 versuffix=
9011 else
9012 versuffix=.0.0
9013 fi
9014 fi
9015
9016 # Remove version info from name if versioning should be avoided
9017 if test yes,no = "$avoid_version,$need_version"; then
9018 major=
9019 versuffix=
9020 verstring=
9021 fi
9022
9023 # Check to see if the archive will have undefined symbols.
9024 if test yes = "$allow_undefined"; then
9025 if test unsupported = "$allow_undefined_flag"; then
9026 if test yes = "$build_old_libs"; then
9027 func_warning "undefined symbols not allowed in $host shared libraries; building static only"
9028 build_libtool_libs=no
9029 else
9030 func_fatal_error "can't build $host shared library unless -no-undefined is specified"
9031 fi
9032 fi
9033 else
9034 # Don't allow undefined symbols.
9035 allow_undefined_flag=$no_undefined_flag
9036 fi
9037
9038 fi
9039
9040 func_generate_dlsyms "$libname" "$libname" :
9041 func_append libobjs " $symfileobj"
9042 test " " = "$libobjs" && libobjs=
9043
9044 if test relink != "$opt_mode"; then
9045 # Remove our outputs, but don't remove object files since they
9046 # may have been created when compiling PIC objects.
9047 removelist=
9048 tempremovelist=`$ECHO "$output_objdir/*"`
9049 for p in $tempremovelist; do
9050 case $p in
9051 *.$objext | *.gcno)
9052 ;;
9053 $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/$libname$release.*)
9054 if test -n "$precious_files_regex"; then
9055 if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
9056 then
9057 continue
9058 fi
9059 fi
9060 func_append removelist " $p"
9061 ;;
9062 *) ;;
9063 esac
9064 done
9065 test -n "$removelist" && \
9066 func_show_eval "${RM}r \$removelist"
9067 fi
9068
9069 # Now set the variables for building old libraries.
9070 if test yes = "$build_old_libs" && test convenience != "$build_libtool_libs"; then
9071 func_append oldlibs " $output_objdir/$libname.$libext"
9072
9073 # Transform .lo files to .o files.
9074 oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; $lo2o" | $NL2SP`
9075 fi
9076
9077 # Eliminate all temporary directories.
9078 #for path in $notinst_path; do
9079 # lib_search_path=`$ECHO "$lib_search_path " | $SED "s% $path % %g"`
9080 # deplibs=`$ECHO "$deplibs " | $SED "s% -L$path % %g"`
9081 # dependency_libs=`$ECHO "$dependency_libs " | $SED "s% -L$path % %g"`
9082 #done
9083
9084 if test -n "$xrpath"; then
9085 # If the user specified any rpath flags, then add them.
9086 temp_xrpath=
9087 for libdir in $xrpath; do
9088 func_replace_sysroot "$libdir"
9089 func_append temp_xrpath " -R$func_replace_sysroot_result"
9090 case "$finalize_rpath " in
9091 *" $libdir "*) ;;
9092 *) func_append finalize_rpath " $libdir" ;;
9093 esac
9094 done
9095 if test yes != "$hardcode_into_libs" || test yes = "$build_old_libs"; then
9096 dependency_libs="$temp_xrpath $dependency_libs"
9097 fi
9098 fi
9099
9100 # Make sure dlfiles contains only unique files that won't be dlpreopened
9101 old_dlfiles=$dlfiles
9102 dlfiles=
9103 for lib in $old_dlfiles; do
9104 case " $dlprefiles $dlfiles " in
9105 *" $lib "*) ;;
9106 *) func_append dlfiles " $lib" ;;
9107 esac
9108 done
9109
9110 # Make sure dlprefiles contains only unique files
9111 old_dlprefiles=$dlprefiles
9112 dlprefiles=
9113 for lib in $old_dlprefiles; do
9114 case "$dlprefiles " in
9115 *" $lib "*) ;;
9116 *) func_append dlprefiles " $lib" ;;
9117 esac
9118 done
9119
9120 if test yes = "$build_libtool_libs"; then
9121 if test -n "$rpath"; then
9122 case $host in
9123 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc* | *-*-haiku*)
9124 # these systems don't actually have a c library (as such)!
9125 ;;
9126 *-*-rhapsody* | *-*-darwin1.[012])
9127 # Rhapsody C library is in the System framework
9128 func_append deplibs " System.ltframework"
9129 ;;
9130 *-*-netbsd*)
9131 # Don't link with libc until the a.out ld.so is fixed.
9132 ;;
9133 *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
9134 # Do not include libc due to us having libc/libc_r.
9135 ;;
9136 *-*-sco3.2v5* | *-*-sco5v6*)
9137 # Causes problems with __ctype
9138 ;;
9139 *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
9140 # Compiler inserts libc in the correct place for threads to work
9141 ;;
9142 *)
9143 # Add libc to deplibs on all other systems if necessary.
9144 if test yes = "$build_libtool_need_lc"; then
9145 func_append deplibs " -lc"
9146 fi
9147 ;;
9148 esac
9149 fi
9150
9151 # Transform deplibs into only deplibs that can be linked in shared.
9152 name_save=$name
9153 libname_save=$libname
9154 release_save=$release
9155 versuffix_save=$versuffix
9156 major_save=$major
9157 # I'm not sure if I'm treating the release correctly. I think
9158 # release should show up in the -l (ie -lgmp5) so we don't want to
9159 # add it in twice. Is that correct?
9160 release=
9161 versuffix=
9162 major=
9163 newdeplibs=
9164 droppeddeps=no
9165 case $deplibs_check_method in
9166 pass_all)
9167 # Don't check for shared/static. Everything works.
9168 # This might be a little naive. We might want to check
9169 # whether the library exists or not. But this is on
9170 # osf3 & osf4 and I'm not really sure... Just
9171 # implementing what was already the behavior.
9172 newdeplibs=$deplibs
9173 ;;
9174 test_compile)
9175 # This code stresses the "libraries are programs" paradigm to its
9176 # limits. Maybe even breaks it. We compile a program, linking it
9177 # against the deplibs as a proxy for the library. Then we can check
9178 # whether they linked in statically or dynamically with ldd.
9179 $opt_dry_run || $RM conftest.c
9180 cat > conftest.c <<EOF
9181 int main() { return 0; }
9182 EOF
9183 $opt_dry_run || $RM conftest
9184 if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
9185 ldd_output=`ldd conftest`
9186 for i in $deplibs; do
9187 case $i in
9188 -l*)
9189 func_stripname -l '' "$i"
9190 name=$func_stripname_result
9191 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9192 case " $predeps $postdeps " in
9193 *" $i "*)
9194 func_append newdeplibs " $i"
9195 i=
9196 ;;
9197 esac
9198 fi
9199 if test -n "$i"; then
9200 libname=`eval "\\$ECHO \"$libname_spec\""`
9201 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
9202 set dummy $deplib_matches; shift
9203 deplib_match=$1
9204 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9205 func_append newdeplibs " $i"
9206 else
9207 droppeddeps=yes
9208 echo
9209 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
9210 echo "*** I have the capability to make that library automatically link in when"
9211 echo "*** you link to this library. But I can only do this if you have a"
9212 echo "*** shared version of the library, which I believe you do not have"
9213 echo "*** because a test_compile did reveal that the linker did not use it for"
9214 echo "*** its dynamic dependency list that programs get resolved with at runtime."
9215 fi
9216 fi
9217 ;;
9218 *)
9219 func_append newdeplibs " $i"
9220 ;;
9221 esac
9222 done
9223 else
9224 # Error occurred in the first compile. Let's try to salvage
9225 # the situation: Compile a separate program for each library.
9226 for i in $deplibs; do
9227 case $i in
9228 -l*)
9229 func_stripname -l '' "$i"
9230 name=$func_stripname_result
9231 $opt_dry_run || $RM conftest
9232 if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
9233 ldd_output=`ldd conftest`
9234 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9235 case " $predeps $postdeps " in
9236 *" $i "*)
9237 func_append newdeplibs " $i"
9238 i=
9239 ;;
9240 esac
9241 fi
9242 if test -n "$i"; then
9243 libname=`eval "\\$ECHO \"$libname_spec\""`
9244 deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
9245 set dummy $deplib_matches; shift
9246 deplib_match=$1
9247 if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0; then
9248 func_append newdeplibs " $i"
9249 else
9250 droppeddeps=yes
9251 echo
9252 $ECHO "*** Warning: dynamic linker does not accept needed library $i."
9253 echo "*** I have the capability to make that library automatically link in when"
9254 echo "*** you link to this library. But I can only do this if you have a"
9255 echo "*** shared version of the library, which you do not appear to have"
9256 echo "*** because a test_compile did reveal that the linker did not use this one"
9257 echo "*** as a dynamic dependency that programs can get resolved with at runtime."
9258 fi
9259 fi
9260 else
9261 droppeddeps=yes
9262 echo
9263 $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
9264 echo "*** make it link in! You will probably need to install it or some"
9265 echo "*** library that it depends on before this library will be fully"
9266 echo "*** functional. Installing it before continuing would be even better."
9267 fi
9268 ;;
9269 *)
9270 func_append newdeplibs " $i"
9271 ;;
9272 esac
9273 done
9274 fi
9275 ;;
9276 file_magic*)
9277 set dummy $deplibs_check_method; shift
9278 file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
9279 for a_deplib in $deplibs; do
9280 case $a_deplib in
9281 -l*)
9282 func_stripname -l '' "$a_deplib"
9283 name=$func_stripname_result
9284 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9285 case " $predeps $postdeps " in
9286 *" $a_deplib "*)
9287 func_append newdeplibs " $a_deplib"
9288 a_deplib=
9289 ;;
9290 esac
9291 fi
9292 if test -n "$a_deplib"; then
9293 libname=`eval "\\$ECHO \"$libname_spec\""`
9294 if test -n "$file_magic_glob"; then
9295 libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob`
9296 else
9297 libnameglob=$libname
9298 fi
9299 test yes = "$want_nocaseglob" && nocaseglob=`shopt -p nocaseglob`
9300 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
9301 if test yes = "$want_nocaseglob"; then
9302 shopt -s nocaseglob
9303 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9304 $nocaseglob
9305 else
9306 potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null`
9307 fi
9308 for potent_lib in $potential_libs; do
9309 # Follow soft links.
9310 if ls -lLd "$potent_lib" 2>/dev/null |
9311 $GREP " -> " >/dev/null; then
9312 continue
9313 fi
9314 # The statement above tries to avoid entering an
9315 # endless loop below, in case of cyclic links.
9316 # We might still enter an endless loop, since a link
9317 # loop can be closed while we follow links,
9318 # but so what?
9319 potlib=$potent_lib
9320 while test -h "$potlib" 2>/dev/null; do
9321 potliblink=`ls -ld $potlib | $SED 's/.* -> //'`
9322 case $potliblink in
9323 [\\/]* | [A-Za-z]:[\\/]*) potlib=$potliblink;;
9324 *) potlib=`$ECHO "$potlib" | $SED 's|[^/]*$||'`"$potliblink";;
9325 esac
9326 done
9327 if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
9328 $SED -e 10q |
9329 $EGREP "$file_magic_regex" > /dev/null; then
9330 func_append newdeplibs " $a_deplib"
9331 a_deplib=
9332 break 2
9333 fi
9334 done
9335 done
9336 fi
9337 if test -n "$a_deplib"; then
9338 droppeddeps=yes
9339 echo
9340 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
9341 echo "*** I have the capability to make that library automatically link in when"
9342 echo "*** you link to this library. But I can only do this if you have a"
9343 echo "*** shared version of the library, which you do not appear to have"
9344 echo "*** because I did check the linker path looking for a file starting"
9345 if test -z "$potlib"; then
9346 $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
9347 else
9348 $ECHO "*** with $libname and none of the candidates passed a file format test"
9349 $ECHO "*** using a file magic. Last file checked: $potlib"
9350 fi
9351 fi
9352 ;;
9353 *)
9354 # Add a -L argument.
9355 func_append newdeplibs " $a_deplib"
9356 ;;
9357 esac
9358 done # Gone through all deplibs.
9359 ;;
9360 match_pattern*)
9361 set dummy $deplibs_check_method; shift
9362 match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
9363 for a_deplib in $deplibs; do
9364 case $a_deplib in
9365 -l*)
9366 func_stripname -l '' "$a_deplib"
9367 name=$func_stripname_result
9368 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9369 case " $predeps $postdeps " in
9370 *" $a_deplib "*)
9371 func_append newdeplibs " $a_deplib"
9372 a_deplib=
9373 ;;
9374 esac
9375 fi
9376 if test -n "$a_deplib"; then
9377 libname=`eval "\\$ECHO \"$libname_spec\""`
9378 for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
9379 potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
9380 for potent_lib in $potential_libs; do
9381 potlib=$potent_lib # see symlink-check above in file_magic test
9382 if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \
9383 $EGREP "$match_pattern_regex" > /dev/null; then
9384 func_append newdeplibs " $a_deplib"
9385 a_deplib=
9386 break 2
9387 fi
9388 done
9389 done
9390 fi
9391 if test -n "$a_deplib"; then
9392 droppeddeps=yes
9393 echo
9394 $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
9395 echo "*** I have the capability to make that library automatically link in when"
9396 echo "*** you link to this library. But I can only do this if you have a"
9397 echo "*** shared version of the library, which you do not appear to have"
9398 echo "*** because I did check the linker path looking for a file starting"
9399 if test -z "$potlib"; then
9400 $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
9401 else
9402 $ECHO "*** with $libname and none of the candidates passed a file format test"
9403 $ECHO "*** using a regex pattern. Last file checked: $potlib"
9404 fi
9405 fi
9406 ;;
9407 *)
9408 # Add a -L argument.
9409 func_append newdeplibs " $a_deplib"
9410 ;;
9411 esac
9412 done # Gone through all deplibs.
9413 ;;
9414 none | unknown | *)
9415 newdeplibs=
9416 tmp_deplibs=`$ECHO " $deplibs" | $SED 's/ -lc$//; s/ -[LR][^ ]*//g'`
9417 if test yes = "$allow_libtool_libs_with_static_runtimes"; then
9418 for i in $predeps $postdeps; do
9419 # can't use Xsed below, because $i might contain '/'
9420 tmp_deplibs=`$ECHO " $tmp_deplibs" | $SED "s|$i||"`
9421 done
9422 fi
9423 case $tmp_deplibs in
9424 *[!\ \ ]*)
9425 echo
9426 if test none = "$deplibs_check_method"; then
9427 echo "*** Warning: inter-library dependencies are not supported in this platform."
9428 else
9429 echo "*** Warning: inter-library dependencies are not known to be supported."
9430 fi
9431 echo "*** All declared inter-library dependencies are being dropped."
9432 droppeddeps=yes
9433 ;;
9434 esac
9435 ;;
9436 esac
9437 versuffix=$versuffix_save
9438 major=$major_save
9439 release=$release_save
9440 libname=$libname_save
9441 name=$name_save
9442
9443 case $host in
9444 *-*-rhapsody* | *-*-darwin1.[012])
9445 # On Rhapsody replace the C library with the System framework
9446 newdeplibs=`$ECHO " $newdeplibs" | $SED 's/ -lc / System.ltframework /'`
9447 ;;
9448 esac
9449
9450 if test yes = "$droppeddeps"; then
9451 if test yes = "$module"; then
9452 echo
9453 echo "*** Warning: libtool could not satisfy all declared inter-library"
9454 $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
9455 echo "*** a static module, that should work as long as the dlopening"
9456 echo "*** application is linked with the -dlopen flag."
9457 if test -z "$global_symbol_pipe"; then
9458 echo
9459 echo "*** However, this would only work if libtool was able to extract symbol"
9460 echo "*** lists from a program, using 'nm' or equivalent, but libtool could"
9461 echo "*** not find such a program. So, this module is probably useless."
9462 echo "*** 'nm' from GNU binutils and a full rebuild may help."
9463 fi
9464 if test no = "$build_old_libs"; then
9465 oldlibs=$output_objdir/$libname.$libext
9466 build_libtool_libs=module
9467 build_old_libs=yes
9468 else
9469 build_libtool_libs=no
9470 fi
9471 else
9472 echo "*** The inter-library dependencies that have been dropped here will be"
9473 echo "*** automatically added whenever a program is linked with this library"
9474 echo "*** or is declared to -dlopen it."
9475
9476 if test no = "$allow_undefined"; then
9477 echo
9478 echo "*** Since this library must not contain undefined symbols,"
9479 echo "*** because either the platform does not support them or"
9480 echo "*** it was explicitly requested with -no-undefined,"
9481 echo "*** libtool will only create a static version of it."
9482 if test no = "$build_old_libs"; then
9483 oldlibs=$output_objdir/$libname.$libext
9484 build_libtool_libs=module
9485 build_old_libs=yes
9486 else
9487 build_libtool_libs=no
9488 fi
9489 fi
9490 fi
9491 fi
9492 # Done checking deplibs!
9493 deplibs=$newdeplibs
9494 fi
9495 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
9496 case $host in
9497 *-*-darwin*)
9498 newdeplibs=`$ECHO " $newdeplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9499 new_inherited_linker_flags=`$ECHO " $new_inherited_linker_flags" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9500 deplibs=`$ECHO " $deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
9501 ;;
9502 esac
9503
9504 # move library search paths that coincide with paths to not yet
9505 # installed libraries to the beginning of the library search list
9506 new_libs=
9507 for path in $notinst_path; do
9508 case " $new_libs " in
9509 *" -L$path/$objdir "*) ;;
9510 *)
9511 case " $deplibs " in
9512 *" -L$path/$objdir "*)
9513 func_append new_libs " -L$path/$objdir" ;;
9514 esac
9515 ;;
9516 esac
9517 done
9518 for deplib in $deplibs; do
9519 case $deplib in
9520 -L*)
9521 case " $new_libs " in
9522 *" $deplib "*) ;;
9523 *) func_append new_libs " $deplib" ;;
9524 esac
9525 ;;
9526 *) func_append new_libs " $deplib" ;;
9527 esac
9528 done
9529 deplibs=$new_libs
9530
9531 # All the library-specific variables (install_libdir is set above).
9532 library_names=
9533 old_library=
9534 dlname=
9535
9536 # Test again, we may have decided not to build it any more
9537 if test yes = "$build_libtool_libs"; then
9538 # Remove $wl instances when linking with ld.
9539 # FIXME: should test the right _cmds variable.
9540 case $archive_cmds in
9541 *\$LD\ *) wl= ;;
9542 esac
9543 if test yes = "$hardcode_into_libs"; then
9544 # Hardcode the library paths
9545 hardcode_libdirs=
9546 dep_rpath=
9547 rpath=$finalize_rpath
9548 test relink = "$opt_mode" || rpath=$compile_rpath$rpath
9549 for libdir in $rpath; do
9550 if test -n "$hardcode_libdir_flag_spec"; then
9551 if test -n "$hardcode_libdir_separator"; then
9552 func_replace_sysroot "$libdir"
9553 libdir=$func_replace_sysroot_result
9554 if test -z "$hardcode_libdirs"; then
9555 hardcode_libdirs=$libdir
9556 else
9557 # Just accumulate the unique libdirs.
9558 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
9559 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
9560 ;;
9561 *)
9562 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
9563 ;;
9564 esac
9565 fi
9566 else
9567 eval flag=\"$hardcode_libdir_flag_spec\"
9568 func_append dep_rpath " $flag"
9569 fi
9570 elif test -n "$runpath_var"; then
9571 case "$perm_rpath " in
9572 *" $libdir "*) ;;
9573 *) func_append perm_rpath " $libdir" ;;
9574 esac
9575 fi
9576 done
9577 # Substitute the hardcoded libdirs into the rpath.
9578 if test -n "$hardcode_libdir_separator" &&
9579 test -n "$hardcode_libdirs"; then
9580 libdir=$hardcode_libdirs
9581 eval "dep_rpath=\"$hardcode_libdir_flag_spec\""
9582 fi
9583 if test -n "$runpath_var" && test -n "$perm_rpath"; then
9584 # We should set the runpath_var.
9585 rpath=
9586 for dir in $perm_rpath; do
9587 func_append rpath "$dir:"
9588 done
9589 eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
9590 fi
9591 test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
9592 fi
9593
9594 shlibpath=$finalize_shlibpath
9595 test relink = "$opt_mode" || shlibpath=$compile_shlibpath$shlibpath
9596 if test -n "$shlibpath"; then
9597 eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
9598 fi
9599
9600 # Get the real and link names of the library.
9601 eval shared_ext=\"$shrext_cmds\"
9602 eval library_names=\"$library_names_spec\"
9603 set dummy $library_names
9604 shift
9605 realname=$1
9606 shift
9607
9608 if test -n "$soname_spec"; then
9609 eval soname=\"$soname_spec\"
9610 else
9611 soname=$realname
9612 fi
9613 if test -z "$dlname"; then
9614 dlname=$soname
9615 fi
9616
9617 lib=$output_objdir/$realname
9618 linknames=
9619 for link
9620 do
9621 func_append linknames " $link"
9622 done
9623
9624 # Use standard objects if they are pic
9625 test -z "$pic_flag" && libobjs=`$ECHO "$libobjs" | $SP2NL | $SED "$lo2o" | $NL2SP`
9626 test "X$libobjs" = "X " && libobjs=
9627
9628 delfiles=
9629 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9630 $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
9631 export_symbols=$output_objdir/$libname.uexp
9632 func_append delfiles " $export_symbols"
9633 fi
9634
9635 orig_export_symbols=
9636 case $host_os in
9637 cygwin* | mingw* | cegcc*)
9638 if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
9639 # exporting using user supplied symfile
9640 func_dll_def_p "$export_symbols" || {
9641 # and it's NOT already a .def file. Must figure out
9642 # which of the given symbols are data symbols and tag
9643 # them as such. So, trigger use of export_symbols_cmds.
9644 # export_symbols gets reassigned inside the "prepare
9645 # the list of exported symbols" if statement, so the
9646 # include_expsyms logic still works.
9647 orig_export_symbols=$export_symbols
9648 export_symbols=
9649 always_export_symbols=yes
9650 }
9651 fi
9652 ;;
9653 esac
9654
9655 # Prepare the list of exported symbols
9656 if test -z "$export_symbols"; then
9657 if test yes = "$always_export_symbols" || test -n "$export_symbols_regex"; then
9658 func_verbose "generating symbol list for '$libname.la'"
9659 export_symbols=$output_objdir/$libname.exp
9660 $opt_dry_run || $RM $export_symbols
9661 cmds=$export_symbols_cmds
9662 save_ifs=$IFS; IFS='~'
9663 for cmd1 in $cmds; do
9664 IFS=$save_ifs
9665 # Take the normal branch if the nm_file_list_spec branch
9666 # doesn't work or if tool conversion is not needed.
9667 case $nm_file_list_spec~$to_tool_file_cmd in
9668 *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*)
9669 try_normal_branch=yes
9670 eval cmd=\"$cmd1\"
9671 func_len " $cmd"
9672 len=$func_len_result
9673 ;;
9674 *)
9675 try_normal_branch=no
9676 ;;
9677 esac
9678 if test yes = "$try_normal_branch" \
9679 && { test "$len" -lt "$max_cmd_len" \
9680 || test "$max_cmd_len" -le -1; }
9681 then
9682 func_show_eval "$cmd" 'exit $?'
9683 skipped_export=false
9684 elif test -n "$nm_file_list_spec"; then
9685 func_basename "$output"
9686 output_la=$func_basename_result
9687 save_libobjs=$libobjs
9688 save_output=$output
9689 output=$output_objdir/$output_la.nm
9690 func_to_tool_file "$output"
9691 libobjs=$nm_file_list_spec$func_to_tool_file_result
9692 func_append delfiles " $output"
9693 func_verbose "creating $NM input file list: $output"
9694 for obj in $save_libobjs; do
9695 func_to_tool_file "$obj"
9696 $ECHO "$func_to_tool_file_result"
9697 done > "$output"
9698 eval cmd=\"$cmd1\"
9699 func_show_eval "$cmd" 'exit $?'
9700 output=$save_output
9701 libobjs=$save_libobjs
9702 skipped_export=false
9703 else
9704 # The command line is too long to execute in one step.
9705 func_verbose "using reloadable object file for export list..."
9706 skipped_export=:
9707 # Break out early, otherwise skipped_export may be
9708 # set to false by a later but shorter cmd.
9709 break
9710 fi
9711 done
9712 IFS=$save_ifs
9713 if test -n "$export_symbols_regex" && test : != "$skipped_export"; then
9714 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9715 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
9716 fi
9717 fi
9718 fi
9719
9720 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9721 tmp_export_symbols=$export_symbols
9722 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9723 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
9724 fi
9725
9726 if test : != "$skipped_export" && test -n "$orig_export_symbols"; then
9727 # The given exports_symbols file has to be filtered, so filter it.
9728 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
9729 # FIXME: $output_objdir/$libname.filter potentially contains lots of
9730 # 's' commands, which not all seds can handle. GNU sed should be fine
9731 # though. Also, the filter scales superlinearly with the number of
9732 # global variables. join(1) would be nice here, but unfortunately
9733 # isn't a blessed tool.
9734 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
9735 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
9736 export_symbols=$output_objdir/$libname.def
9737 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
9738 fi
9739
9740 tmp_deplibs=
9741 for test_deplib in $deplibs; do
9742 case " $convenience " in
9743 *" $test_deplib "*) ;;
9744 *)
9745 func_append tmp_deplibs " $test_deplib"
9746 ;;
9747 esac
9748 done
9749 deplibs=$tmp_deplibs
9750
9751 if test -n "$convenience"; then
9752 if test -n "$whole_archive_flag_spec" &&
9753 test yes = "$compiler_needs_object" &&
9754 test -z "$libobjs"; then
9755 # extract the archives, so we have objects to list.
9756 # TODO: could optimize this to just extract one archive.
9757 whole_archive_flag_spec=
9758 fi
9759 if test -n "$whole_archive_flag_spec"; then
9760 save_libobjs=$libobjs
9761 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
9762 test "X$libobjs" = "X " && libobjs=
9763 else
9764 gentop=$output_objdir/${outputname}x
9765 func_append generated " $gentop"
9766
9767 func_extract_archives $gentop $convenience
9768 func_append libobjs " $func_extract_archives_result"
9769 test "X$libobjs" = "X " && libobjs=
9770 fi
9771 fi
9772
9773 if test yes = "$thread_safe" && test -n "$thread_safe_flag_spec"; then
9774 eval flag=\"$thread_safe_flag_spec\"
9775 func_append linker_flags " $flag"
9776 fi
9777
9778 # Make a backup of the uninstalled library when relinking
9779 if test relink = "$opt_mode"; then
9780 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
9781 fi
9782
9783 # Do each of the archive commands.
9784 if test yes = "$module" && test -n "$module_cmds"; then
9785 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
9786 eval test_cmds=\"$module_expsym_cmds\"
9787 cmds=$module_expsym_cmds
9788 else
9789 eval test_cmds=\"$module_cmds\"
9790 cmds=$module_cmds
9791 fi
9792 else
9793 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
9794 eval test_cmds=\"$archive_expsym_cmds\"
9795 cmds=$archive_expsym_cmds
9796 else
9797 eval test_cmds=\"$archive_cmds\"
9798 cmds=$archive_cmds
9799 fi
9800 fi
9801
9802 if test : != "$skipped_export" &&
9803 func_len " $test_cmds" &&
9804 len=$func_len_result &&
9805 test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
9806 :
9807 else
9808 # The command line is too long to link in one step, link piecewise
9809 # or, if using GNU ld and skipped_export is not :, use a linker
9810 # script.
9811
9812 # Save the value of $output and $libobjs because we want to
9813 # use them later. If we have whole_archive_flag_spec, we
9814 # want to use save_libobjs as it was before
9815 # whole_archive_flag_spec was expanded, because we can't
9816 # assume the linker understands whole_archive_flag_spec.
9817 # This may have to be revisited, in case too many
9818 # convenience libraries get linked in and end up exceeding
9819 # the spec.
9820 if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
9821 save_libobjs=$libobjs
9822 fi
9823 save_output=$output
9824 func_basename "$output"
9825 output_la=$func_basename_result
9826
9827 # Clear the reloadable object creation command queue and
9828 # initialize k to one.
9829 test_cmds=
9830 concat_cmds=
9831 objlist=
9832 last_robj=
9833 k=1
9834
9835 if test -n "$save_libobjs" && test : != "$skipped_export" && test yes = "$with_gnu_ld"; then
9836 output=$output_objdir/$output_la.lnkscript
9837 func_verbose "creating GNU ld script: $output"
9838 echo 'INPUT (' > $output
9839 for obj in $save_libobjs
9840 do
9841 func_to_tool_file "$obj"
9842 $ECHO "$func_to_tool_file_result" >> $output
9843 done
9844 echo ')' >> $output
9845 func_append delfiles " $output"
9846 func_to_tool_file "$output"
9847 output=$func_to_tool_file_result
9848 elif test -n "$save_libobjs" && test : != "$skipped_export" && test -n "$file_list_spec"; then
9849 output=$output_objdir/$output_la.lnk
9850 func_verbose "creating linker input file list: $output"
9851 : > $output
9852 set x $save_libobjs
9853 shift
9854 firstobj=
9855 if test yes = "$compiler_needs_object"; then
9856 firstobj="$1 "
9857 shift
9858 fi
9859 for obj
9860 do
9861 func_to_tool_file "$obj"
9862 $ECHO "$func_to_tool_file_result" >> $output
9863 done
9864 func_append delfiles " $output"
9865 func_to_tool_file "$output"
9866 output=$firstobj\"$file_list_spec$func_to_tool_file_result\"
9867 else
9868 if test -n "$save_libobjs"; then
9869 func_verbose "creating reloadable object files..."
9870 output=$output_objdir/$output_la-$k.$objext
9871 eval test_cmds=\"$reload_cmds\"
9872 func_len " $test_cmds"
9873 len0=$func_len_result
9874 len=$len0
9875
9876 # Loop over the list of objects to be linked.
9877 for obj in $save_libobjs
9878 do
9879 func_len " $obj"
9880 func_arith $len + $func_len_result
9881 len=$func_arith_result
9882 if test -z "$objlist" ||
9883 test "$len" -lt "$max_cmd_len"; then
9884 func_append objlist " $obj"
9885 else
9886 # The command $test_cmds is almost too long, add a
9887 # command to the queue.
9888 if test 1 -eq "$k"; then
9889 # The first file doesn't have a previous command to add.
9890 reload_objs=$objlist
9891 eval concat_cmds=\"$reload_cmds\"
9892 else
9893 # All subsequent reloadable object files will link in
9894 # the last one created.
9895 reload_objs="$objlist $last_robj"
9896 eval concat_cmds=\"\$concat_cmds~$reload_cmds~\$RM $last_robj\"
9897 fi
9898 last_robj=$output_objdir/$output_la-$k.$objext
9899 func_arith $k + 1
9900 k=$func_arith_result
9901 output=$output_objdir/$output_la-$k.$objext
9902 objlist=" $obj"
9903 func_len " $last_robj"
9904 func_arith $len0 + $func_len_result
9905 len=$func_arith_result
9906 fi
9907 done
9908 # Handle the remaining objects by creating one last
9909 # reloadable object file. All subsequent reloadable object
9910 # files will link in the last one created.
9911 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9912 reload_objs="$objlist $last_robj"
9913 eval concat_cmds=\"\$concat_cmds$reload_cmds\"
9914 if test -n "$last_robj"; then
9915 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
9916 fi
9917 func_append delfiles " $output"
9918
9919 else
9920 output=
9921 fi
9922
9923 ${skipped_export-false} && {
9924 func_verbose "generating symbol list for '$libname.la'"
9925 export_symbols=$output_objdir/$libname.exp
9926 $opt_dry_run || $RM $export_symbols
9927 libobjs=$output
9928 # Append the command to create the export file.
9929 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
9930 eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
9931 if test -n "$last_robj"; then
9932 eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
9933 fi
9934 }
9935
9936 test -n "$save_libobjs" &&
9937 func_verbose "creating a temporary reloadable object file: $output"
9938
9939 # Loop through the commands generated above and execute them.
9940 save_ifs=$IFS; IFS='~'
9941 for cmd in $concat_cmds; do
9942 IFS=$save_ifs
9943 $opt_quiet || {
9944 func_quote_for_expand "$cmd"
9945 eval "func_echo $func_quote_for_expand_result"
9946 }
9947 $opt_dry_run || eval "$cmd" || {
9948 lt_exit=$?
9949
9950 # Restore the uninstalled library and exit
9951 if test relink = "$opt_mode"; then
9952 ( cd "$output_objdir" && \
9953 $RM "${realname}T" && \
9954 $MV "${realname}U" "$realname" )
9955 fi
9956
9957 exit $lt_exit
9958 }
9959 done
9960 IFS=$save_ifs
9961
9962 if test -n "$export_symbols_regex" && ${skipped_export-false}; then
9963 func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
9964 func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
9965 fi
9966 fi
9967
9968 ${skipped_export-false} && {
9969 if test -n "$export_symbols" && test -n "$include_expsyms"; then
9970 tmp_export_symbols=$export_symbols
9971 test -n "$orig_export_symbols" && tmp_export_symbols=$orig_export_symbols
9972 $opt_dry_run || eval '$ECHO "$include_expsyms" | $SP2NL >> "$tmp_export_symbols"'
9973 fi
9974
9975 if test -n "$orig_export_symbols"; then
9976 # The given exports_symbols file has to be filtered, so filter it.
9977 func_verbose "filter symbol list for '$libname.la' to tag DATA exports"
9978 # FIXME: $output_objdir/$libname.filter potentially contains lots of
9979 # 's' commands, which not all seds can handle. GNU sed should be fine
9980 # though. Also, the filter scales superlinearly with the number of
9981 # global variables. join(1) would be nice here, but unfortunately
9982 # isn't a blessed tool.
9983 $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
9984 func_append delfiles " $export_symbols $output_objdir/$libname.filter"
9985 export_symbols=$output_objdir/$libname.def
9986 $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
9987 fi
9988 }
9989
9990 libobjs=$output
9991 # Restore the value of output.
9992 output=$save_output
9993
9994 if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
9995 eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
9996 test "X$libobjs" = "X " && libobjs=
9997 fi
9998 # Expand the library linking commands again to reset the
9999 # value of $libobjs for piecewise linking.
10000
10001 # Do each of the archive commands.
10002 if test yes = "$module" && test -n "$module_cmds"; then
10003 if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
10004 cmds=$module_expsym_cmds
10005 else
10006 cmds=$module_cmds
10007 fi
10008 else
10009 if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
10010 cmds=$archive_expsym_cmds
10011 else
10012 cmds=$archive_cmds
10013 fi
10014 fi
10015 fi
10016
10017 if test -n "$delfiles"; then
10018 # Append the command to remove temporary files to $cmds.
10019 eval cmds=\"\$cmds~\$RM $delfiles\"
10020 fi
10021
10022 # Add any objects from preloaded convenience libraries
10023 if test -n "$dlprefiles"; then
10024 gentop=$output_objdir/${outputname}x
10025 func_append generated " $gentop"
10026
10027 func_extract_archives $gentop $dlprefiles
10028 func_append libobjs " $func_extract_archives_result"
10029 test "X$libobjs" = "X " && libobjs=
10030 fi
10031
10032 save_ifs=$IFS; IFS='~'
10033 for cmd in $cmds; do
10034 IFS=$sp$nl
10035 eval cmd=\"$cmd\"
10036 IFS=$save_ifs
10037 $opt_quiet || {
10038 func_quote_for_expand "$cmd"
10039 eval "func_echo $func_quote_for_expand_result"
10040 }
10041 $opt_dry_run || eval "$cmd" || {
10042 lt_exit=$?
10043
10044 # Restore the uninstalled library and exit
10045 if test relink = "$opt_mode"; then
10046 ( cd "$output_objdir" && \
10047 $RM "${realname}T" && \
10048 $MV "${realname}U" "$realname" )
10049 fi
10050
10051 exit $lt_exit
10052 }
10053 done
10054 IFS=$save_ifs
10055
10056 # Restore the uninstalled library and exit
10057 if test relink = "$opt_mode"; then
10058 $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
10059
10060 if test -n "$convenience"; then
10061 if test -z "$whole_archive_flag_spec"; then
10062 func_show_eval '${RM}r "$gentop"'
10063 fi
10064 fi
10065
10066 exit $EXIT_SUCCESS
10067 fi
10068
10069 # Create links to the real library.
10070 for linkname in $linknames; do
10071 if test "$realname" != "$linkname"; then
10072 func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
10073 fi
10074 done
10075
10076 # If -module or -export-dynamic was specified, set the dlname.
10077 if test yes = "$module" || test yes = "$export_dynamic"; then
10078 # On all known operating systems, these are identical.
10079 dlname=$soname
10080 fi
10081 fi
10082 ;;
10083
10084 obj)
10085 if test -n "$dlfiles$dlprefiles" || test no != "$dlself"; then
10086 func_warning "'-dlopen' is ignored for objects"
10087 fi
10088
10089 case " $deplibs" in
10090 *\ -l* | *\ -L*)
10091 func_warning "'-l' and '-L' are ignored for objects" ;;
10092 esac
10093
10094 test -n "$rpath" && \
10095 func_warning "'-rpath' is ignored for objects"
10096
10097 test -n "$xrpath" && \
10098 func_warning "'-R' is ignored for objects"
10099
10100 test -n "$vinfo" && \
10101 func_warning "'-version-info' is ignored for objects"
10102
10103 test -n "$release" && \
10104 func_warning "'-release' is ignored for objects"
10105
10106 case $output in
10107 *.lo)
10108 test -n "$objs$old_deplibs" && \
10109 func_fatal_error "cannot build library object '$output' from non-libtool objects"
10110
10111 libobj=$output
10112 func_lo2o "$libobj"
10113 obj=$func_lo2o_result
10114 ;;
10115 *)
10116 libobj=
10117 obj=$output
10118 ;;
10119 esac
10120
10121 # Delete the old objects.
10122 $opt_dry_run || $RM $obj $libobj
10123
10124 # Objects from convenience libraries. This assumes
10125 # single-version convenience libraries. Whenever we create
10126 # different ones for PIC/non-PIC, this we'll have to duplicate
10127 # the extraction.
10128 reload_conv_objs=
10129 gentop=
10130 # if reload_cmds runs $LD directly, get rid of -Wl from
10131 # whole_archive_flag_spec and hope we can get by with turning comma
10132 # into space.
10133 case $reload_cmds in
10134 *\$LD[\ \$]*) wl= ;;
10135 esac
10136 if test -n "$convenience"; then
10137 if test -n "$whole_archive_flag_spec"; then
10138 eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
10139 test -n "$wl" || tmp_whole_archive_flags=`$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'`
10140 reload_conv_objs=$reload_objs\ $tmp_whole_archive_flags
10141 else
10142 gentop=$output_objdir/${obj}x
10143 func_append generated " $gentop"
10144
10145 func_extract_archives $gentop $convenience
10146 reload_conv_objs="$reload_objs $func_extract_archives_result"
10147 fi
10148 fi
10149
10150 # If we're not building shared, we need to use non_pic_objs
10151 test yes = "$build_libtool_libs" || libobjs=$non_pic_objects
10152
10153 # Create the old-style object.
10154 reload_objs=$objs$old_deplibs' '`$ECHO "$libobjs" | $SP2NL | $SED "/\.$libext$/d; /\.lib$/d; $lo2o" | $NL2SP`' '$reload_conv_objs
10155
10156 output=$obj
10157 func_execute_cmds "$reload_cmds" 'exit $?'
10158
10159 # Exit if we aren't doing a library object file.
10160 if test -z "$libobj"; then
10161 if test -n "$gentop"; then
10162 func_show_eval '${RM}r "$gentop"'
10163 fi
10164
10165 exit $EXIT_SUCCESS
10166 fi
10167
10168 test yes = "$build_libtool_libs" || {
10169 if test -n "$gentop"; then
10170 func_show_eval '${RM}r "$gentop"'
10171 fi
10172
10173 # Create an invalid libtool object if no PIC, so that we don't
10174 # accidentally link it into a program.
10175 # $show "echo timestamp > $libobj"
10176 # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
10177 exit $EXIT_SUCCESS
10178 }
10179
10180 if test -n "$pic_flag" || test default != "$pic_mode"; then
10181 # Only do commands if we really have different PIC objects.
10182 reload_objs="$libobjs $reload_conv_objs"
10183 output=$libobj
10184 func_execute_cmds "$reload_cmds" 'exit $?'
10185 fi
10186
10187 if test -n "$gentop"; then
10188 func_show_eval '${RM}r "$gentop"'
10189 fi
10190
10191 exit $EXIT_SUCCESS
10192 ;;
10193
10194 prog)
10195 case $host in
10196 *cygwin*) func_stripname '' '.exe' "$output"
10197 output=$func_stripname_result.exe;;
10198 esac
10199 test -n "$vinfo" && \
10200 func_warning "'-version-info' is ignored for programs"
10201
10202 test -n "$release" && \
10203 func_warning "'-release' is ignored for programs"
10204
10205 $preload \
10206 && test unknown,unknown,unknown = "$dlopen_support,$dlopen_self,$dlopen_self_static" \
10207 && func_warning "'LT_INIT([dlopen])' not used. Assuming no dlopen support."
10208
10209 case $host in
10210 *-*-rhapsody* | *-*-darwin1.[012])
10211 # On Rhapsody replace the C library is the System framework
10212 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's/ -lc / System.ltframework /'`
10213 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's/ -lc / System.ltframework /'`
10214 ;;
10215 esac
10216
10217 case $host in
10218 *-*-darwin*)
10219 # Don't allow lazy linking, it breaks C++ global constructors
10220 # But is supposedly fixed on 10.4 or later (yay!).
10221 if test CXX = "$tagname"; then
10222 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
10223 10.[0123])
10224 func_append compile_command " $wl-bind_at_load"
10225 func_append finalize_command " $wl-bind_at_load"
10226 ;;
10227 esac
10228 fi
10229 # Time to change all our "foo.ltframework" stuff back to "-framework foo"
10230 compile_deplibs=`$ECHO " $compile_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10231 finalize_deplibs=`$ECHO " $finalize_deplibs" | $SED 's% \([^ $]*\).ltframework% -framework \1%g'`
10232 ;;
10233 esac
10234
10235
10236 # move library search paths that coincide with paths to not yet
10237 # installed libraries to the beginning of the library search list
10238 new_libs=
10239 for path in $notinst_path; do
10240 case " $new_libs " in
10241 *" -L$path/$objdir "*) ;;
10242 *)
10243 case " $compile_deplibs " in
10244 *" -L$path/$objdir "*)
10245 func_append new_libs " -L$path/$objdir" ;;
10246 esac
10247 ;;
10248 esac
10249 done
10250 for deplib in $compile_deplibs; do
10251 case $deplib in
10252 -L*)
10253 case " $new_libs " in
10254 *" $deplib "*) ;;
10255 *) func_append new_libs " $deplib" ;;
10256 esac
10257 ;;
10258 *) func_append new_libs " $deplib" ;;
10259 esac
10260 done
10261 compile_deplibs=$new_libs
10262
10263
10264 func_append compile_command " $compile_deplibs"
10265 func_append finalize_command " $finalize_deplibs"
10266
10267 if test -n "$rpath$xrpath"; then
10268 # If the user specified any rpath flags, then add them.
10269 for libdir in $rpath $xrpath; do
10270 # This is the magic to use -rpath.
10271 case "$finalize_rpath " in
10272 *" $libdir "*) ;;
10273 *) func_append finalize_rpath " $libdir" ;;
10274 esac
10275 done
10276 fi
10277
10278 # Now hardcode the library paths
10279 rpath=
10280 hardcode_libdirs=
10281 for libdir in $compile_rpath $finalize_rpath; do
10282 if test -n "$hardcode_libdir_flag_spec"; then
10283 if test -n "$hardcode_libdir_separator"; then
10284 if test -z "$hardcode_libdirs"; then
10285 hardcode_libdirs=$libdir
10286 else
10287 # Just accumulate the unique libdirs.
10288 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
10289 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
10290 ;;
10291 *)
10292 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
10293 ;;
10294 esac
10295 fi
10296 else
10297 eval flag=\"$hardcode_libdir_flag_spec\"
10298 func_append rpath " $flag"
10299 fi
10300 elif test -n "$runpath_var"; then
10301 case "$perm_rpath " in
10302 *" $libdir "*) ;;
10303 *) func_append perm_rpath " $libdir" ;;
10304 esac
10305 fi
10306 case $host in
10307 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
10308 testbindir=`$ECHO "$libdir" | $SED -e 's*/lib$*/bin*'`
10309 case :$dllsearchpath: in
10310 *":$libdir:"*) ;;
10311 ::) dllsearchpath=$libdir;;
10312 *) func_append dllsearchpath ":$libdir";;
10313 esac
10314 case :$dllsearchpath: in
10315 *":$testbindir:"*) ;;
10316 ::) dllsearchpath=$testbindir;;
10317 *) func_append dllsearchpath ":$testbindir";;
10318 esac
10319 ;;
10320 esac
10321 done
10322 # Substitute the hardcoded libdirs into the rpath.
10323 if test -n "$hardcode_libdir_separator" &&
10324 test -n "$hardcode_libdirs"; then
10325 libdir=$hardcode_libdirs
10326 eval rpath=\" $hardcode_libdir_flag_spec\"
10327 fi
10328 compile_rpath=$rpath
10329
10330 rpath=
10331 hardcode_libdirs=
10332 for libdir in $finalize_rpath; do
10333 if test -n "$hardcode_libdir_flag_spec"; then
10334 if test -n "$hardcode_libdir_separator"; then
10335 if test -z "$hardcode_libdirs"; then
10336 hardcode_libdirs=$libdir
10337 else
10338 # Just accumulate the unique libdirs.
10339 case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
10340 *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
10341 ;;
10342 *)
10343 func_append hardcode_libdirs "$hardcode_libdir_separator$libdir"
10344 ;;
10345 esac
10346 fi
10347 else
10348 eval flag=\"$hardcode_libdir_flag_spec\"
10349 func_append rpath " $flag"
10350 fi
10351 elif test -n "$runpath_var"; then
10352 case "$finalize_perm_rpath " in
10353 *" $libdir "*) ;;
10354 *) func_append finalize_perm_rpath " $libdir" ;;
10355 esac
10356 fi
10357 done
10358 # Substitute the hardcoded libdirs into the rpath.
10359 if test -n "$hardcode_libdir_separator" &&
10360 test -n "$hardcode_libdirs"; then
10361 libdir=$hardcode_libdirs
10362 eval rpath=\" $hardcode_libdir_flag_spec\"
10363 fi
10364 finalize_rpath=$rpath
10365
10366 if test -n "$libobjs" && test yes = "$build_old_libs"; then
10367 # Transform all the library objects into standard objects.
10368 compile_command=`$ECHO "$compile_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
10369 finalize_command=`$ECHO "$finalize_command" | $SP2NL | $SED "$lo2o" | $NL2SP`
10370 fi
10371
10372 func_generate_dlsyms "$outputname" "@PROGRAM@" false
10373
10374 # template prelinking step
10375 if test -n "$prelink_cmds"; then
10376 func_execute_cmds "$prelink_cmds" 'exit $?'
10377 fi
10378
10379 wrappers_required=:
10380 case $host in
10381 *cegcc* | *mingw32ce*)
10382 # Disable wrappers for cegcc and mingw32ce hosts, we are cross compiling anyway.
10383 wrappers_required=false
10384 ;;
10385 *cygwin* | *mingw* )
10386 test yes = "$build_libtool_libs" || wrappers_required=false
10387 ;;
10388 *)
10389 if test no = "$need_relink" || test yes != "$build_libtool_libs"; then
10390 wrappers_required=false
10391 fi
10392 ;;
10393 esac
10394 $wrappers_required || {
10395 # Replace the output file specification.
10396 compile_command=`$ECHO "$compile_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
10397 link_command=$compile_command$compile_rpath
10398
10399 # We have no uninstalled library dependencies, so finalize right now.
10400 exit_status=0
10401 func_show_eval "$link_command" 'exit_status=$?'
10402
10403 if test -n "$postlink_cmds"; then
10404 func_to_tool_file "$output"
10405 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
10406 func_execute_cmds "$postlink_cmds" 'exit $?'
10407 fi
10408
10409 # Delete the generated files.
10410 if test -f "$output_objdir/${outputname}S.$objext"; then
10411 func_show_eval '$RM "$output_objdir/${outputname}S.$objext"'
10412 fi
10413
10414 exit $exit_status
10415 }
10416
10417 if test -n "$compile_shlibpath$finalize_shlibpath"; then
10418 compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
10419 fi
10420 if test -n "$finalize_shlibpath"; then
10421 finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
10422 fi
10423
10424 compile_var=
10425 finalize_var=
10426 if test -n "$runpath_var"; then
10427 if test -n "$perm_rpath"; then
10428 # We should set the runpath_var.
10429 rpath=
10430 for dir in $perm_rpath; do
10431 func_append rpath "$dir:"
10432 done
10433 compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
10434 fi
10435 if test -n "$finalize_perm_rpath"; then
10436 # We should set the runpath_var.
10437 rpath=
10438 for dir in $finalize_perm_rpath; do
10439 func_append rpath "$dir:"
10440 done
10441 finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
10442 fi
10443 fi
10444
10445 if test yes = "$no_install"; then
10446 # We don't need to create a wrapper script.
10447 link_command=$compile_var$compile_command$compile_rpath
10448 # Replace the output file specification.
10449 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output"'%g'`
10450 # Delete the old output file.
10451 $opt_dry_run || $RM $output
10452 # Link the executable and exit
10453 func_show_eval "$link_command" 'exit $?'
10454
10455 if test -n "$postlink_cmds"; then
10456 func_to_tool_file "$output"
10457 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
10458 func_execute_cmds "$postlink_cmds" 'exit $?'
10459 fi
10460
10461 exit $EXIT_SUCCESS
10462 fi
10463
10464 case $hardcode_action,$fast_install in
10465 relink,*)
10466 # Fast installation is not supported
10467 link_command=$compile_var$compile_command$compile_rpath
10468 relink_command=$finalize_var$finalize_command$finalize_rpath
10469
10470 func_warning "this platform does not like uninstalled shared libraries"
10471 func_warning "'$output' will be relinked during installation"
10472 ;;
10473 *,yes)
10474 link_command=$finalize_var$compile_command$finalize_rpath
10475 relink_command=`$ECHO "$compile_var$compile_command$compile_rpath" | $SED 's%@OUTPUT@%\$progdir/\$file%g'`
10476 ;;
10477 *,no)
10478 link_command=$compile_var$compile_command$compile_rpath
10479 relink_command=$finalize_var$finalize_command$finalize_rpath
10480 ;;
10481 *,needless)
10482 link_command=$finalize_var$compile_command$finalize_rpath
10483 relink_command=
10484 ;;
10485 esac
10486
10487 # Replace the output file specification.
10488 link_command=`$ECHO "$link_command" | $SED 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
10489
10490 # Delete the old output files.
10491 $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
10492
10493 func_show_eval "$link_command" 'exit $?'
10494
10495 if test -n "$postlink_cmds"; then
10496 func_to_tool_file "$output_objdir/$outputname"
10497 postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'`
10498 func_execute_cmds "$postlink_cmds" 'exit $?'
10499 fi
10500
10501 # Now create the wrapper script.
10502 func_verbose "creating $output"
10503
10504 # Quote the relink command for shipping.
10505 if test -n "$relink_command"; then
10506 # Preserve any variables that may affect compiler behavior
10507 for var in $variables_saved_for_relink; do
10508 if eval test -z \"\${$var+set}\"; then
10509 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
10510 elif eval var_value=\$$var; test -z "$var_value"; then
10511 relink_command="$var=; export $var; $relink_command"
10512 else
10513 func_quote_for_eval "$var_value"
10514 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
10515 fi
10516 done
10517 relink_command="(cd `pwd`; $relink_command)"
10518 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10519 fi
10520
10521 # Only actually do things if not in dry run mode.
10522 $opt_dry_run || {
10523 # win32 will think the script is a binary if it has
10524 # a .exe suffix, so we strip it off here.
10525 case $output in
10526 *.exe) func_stripname '' '.exe' "$output"
10527 output=$func_stripname_result ;;
10528 esac
10529 # test for cygwin because mv fails w/o .exe extensions
10530 case $host in
10531 *cygwin*)
10532 exeext=.exe
10533 func_stripname '' '.exe' "$outputname"
10534 outputname=$func_stripname_result ;;
10535 *) exeext= ;;
10536 esac
10537 case $host in
10538 *cygwin* | *mingw* )
10539 func_dirname_and_basename "$output" "" "."
10540 output_name=$func_basename_result
10541 output_path=$func_dirname_result
10542 cwrappersource=$output_path/$objdir/lt-$output_name.c
10543 cwrapper=$output_path/$output_name.exe
10544 $RM $cwrappersource $cwrapper
10545 trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
10546
10547 func_emit_cwrapperexe_src > $cwrappersource
10548
10549 # The wrapper executable is built using the $host compiler,
10550 # because it contains $host paths and files. If cross-
10551 # compiling, it, like the target executable, must be
10552 # executed on the $host or under an emulation environment.
10553 $opt_dry_run || {
10554 $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
10555 $STRIP $cwrapper
10556 }
10557
10558 # Now, create the wrapper script for func_source use:
10559 func_ltwrapper_scriptname $cwrapper
10560 $RM $func_ltwrapper_scriptname_result
10561 trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
10562 $opt_dry_run || {
10563 # note: this script will not be executed, so do not chmod.
10564 if test "x$build" = "x$host"; then
10565 $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
10566 else
10567 func_emit_wrapper no > $func_ltwrapper_scriptname_result
10568 fi
10569 }
10570 ;;
10571 * )
10572 $RM $output
10573 trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
10574
10575 func_emit_wrapper no > $output
10576 chmod +x $output
10577 ;;
10578 esac
10579 }
10580 exit $EXIT_SUCCESS
10581 ;;
10582 esac
10583
10584 # See if we need to build an old-fashioned archive.
10585 for oldlib in $oldlibs; do
10586
10587 case $build_libtool_libs in
10588 convenience)
10589 oldobjs="$libobjs_save $symfileobj"
10590 addlibs=$convenience
10591 build_libtool_libs=no
10592 ;;
10593 module)
10594 oldobjs=$libobjs_save
10595 addlibs=$old_convenience
10596 build_libtool_libs=no
10597 ;;
10598 *)
10599 oldobjs="$old_deplibs $non_pic_objects"
10600 $preload && test -f "$symfileobj" \
10601 && func_append oldobjs " $symfileobj"
10602 addlibs=$old_convenience
10603 ;;
10604 esac
10605
10606 if test -n "$addlibs"; then
10607 gentop=$output_objdir/${outputname}x
10608 func_append generated " $gentop"
10609
10610 func_extract_archives $gentop $addlibs
10611 func_append oldobjs " $func_extract_archives_result"
10612 fi
10613
10614 # Do each command in the archive commands.
10615 if test -n "$old_archive_from_new_cmds" && test yes = "$build_libtool_libs"; then
10616 cmds=$old_archive_from_new_cmds
10617 else
10618
10619 # Add any objects from preloaded convenience libraries
10620 if test -n "$dlprefiles"; then
10621 gentop=$output_objdir/${outputname}x
10622 func_append generated " $gentop"
10623
10624 func_extract_archives $gentop $dlprefiles
10625 func_append oldobjs " $func_extract_archives_result"
10626 fi
10627
10628 # POSIX demands no paths to be encoded in archives. We have
10629 # to avoid creating archives with duplicate basenames if we
10630 # might have to extract them afterwards, e.g., when creating a
10631 # static archive out of a convenience library, or when linking
10632 # the entirety of a libtool archive into another (currently
10633 # not supported by libtool).
10634 if (for obj in $oldobjs
10635 do
10636 func_basename "$obj"
10637 $ECHO "$func_basename_result"
10638 done | sort | sort -uc >/dev/null 2>&1); then
10639 :
10640 else
10641 echo "copying selected object files to avoid basename conflicts..."
10642 gentop=$output_objdir/${outputname}x
10643 func_append generated " $gentop"
10644 func_mkdir_p "$gentop"
10645 save_oldobjs=$oldobjs
10646 oldobjs=
10647 counter=1
10648 for obj in $save_oldobjs
10649 do
10650 func_basename "$obj"
10651 objbase=$func_basename_result
10652 case " $oldobjs " in
10653 " ") oldobjs=$obj ;;
10654 *[\ /]"$objbase "*)
10655 while :; do
10656 # Make sure we don't pick an alternate name that also
10657 # overlaps.
10658 newobj=lt$counter-$objbase
10659 func_arith $counter + 1
10660 counter=$func_arith_result
10661 case " $oldobjs " in
10662 *[\ /]"$newobj "*) ;;
10663 *) if test ! -f "$gentop/$newobj"; then break; fi ;;
10664 esac
10665 done
10666 func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
10667 func_append oldobjs " $gentop/$newobj"
10668 ;;
10669 *) func_append oldobjs " $obj" ;;
10670 esac
10671 done
10672 fi
10673 func_to_tool_file "$oldlib" func_convert_file_msys_to_w32
10674 tool_oldlib=$func_to_tool_file_result
10675 eval cmds=\"$old_archive_cmds\"
10676
10677 func_len " $cmds"
10678 len=$func_len_result
10679 if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
10680 cmds=$old_archive_cmds
10681 elif test -n "$archiver_list_spec"; then
10682 func_verbose "using command file archive linking..."
10683 for obj in $oldobjs
10684 do
10685 func_to_tool_file "$obj"
10686 $ECHO "$func_to_tool_file_result"
10687 done > $output_objdir/$libname.libcmd
10688 func_to_tool_file "$output_objdir/$libname.libcmd"
10689 oldobjs=" $archiver_list_spec$func_to_tool_file_result"
10690 cmds=$old_archive_cmds
10691 else
10692 # the command line is too long to link in one step, link in parts
10693 func_verbose "using piecewise archive linking..."
10694 save_RANLIB=$RANLIB
10695 RANLIB=:
10696 objlist=
10697 concat_cmds=
10698 save_oldobjs=$oldobjs
10699 oldobjs=
10700 # Is there a better way of finding the last object in the list?
10701 for obj in $save_oldobjs
10702 do
10703 last_oldobj=$obj
10704 done
10705 eval test_cmds=\"$old_archive_cmds\"
10706 func_len " $test_cmds"
10707 len0=$func_len_result
10708 len=$len0
10709 for obj in $save_oldobjs
10710 do
10711 func_len " $obj"
10712 func_arith $len + $func_len_result
10713 len=$func_arith_result
10714 func_append objlist " $obj"
10715 if test "$len" -lt "$max_cmd_len"; then
10716 :
10717 else
10718 # the above command should be used before it gets too long
10719 oldobjs=$objlist
10720 if test "$obj" = "$last_oldobj"; then
10721 RANLIB=$save_RANLIB
10722 fi
10723 test -z "$concat_cmds" || concat_cmds=$concat_cmds~
10724 eval concat_cmds=\"\$concat_cmds$old_archive_cmds\"
10725 objlist=
10726 len=$len0
10727 fi
10728 done
10729 RANLIB=$save_RANLIB
10730 oldobjs=$objlist
10731 if test -z "$oldobjs"; then
10732 eval cmds=\"\$concat_cmds\"
10733 else
10734 eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
10735 fi
10736 fi
10737 fi
10738 func_execute_cmds "$cmds" 'exit $?'
10739 done
10740
10741 test -n "$generated" && \
10742 func_show_eval "${RM}r$generated"
10743
10744 # Now create the libtool archive.
10745 case $output in
10746 *.la)
10747 old_library=
10748 test yes = "$build_old_libs" && old_library=$libname.$libext
10749 func_verbose "creating $output"
10750
10751 # Preserve any variables that may affect compiler behavior
10752 for var in $variables_saved_for_relink; do
10753 if eval test -z \"\${$var+set}\"; then
10754 relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
10755 elif eval var_value=\$$var; test -z "$var_value"; then
10756 relink_command="$var=; export $var; $relink_command"
10757 else
10758 func_quote_for_eval "$var_value"
10759 relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
10760 fi
10761 done
10762 # Quote the link command for shipping.
10763 relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
10764 relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"`
10765 if test yes = "$hardcode_automatic"; then
10766 relink_command=
10767 fi
10768
10769 # Only create the output if not a dry run.
10770 $opt_dry_run || {
10771 for installed in no yes; do
10772 if test yes = "$installed"; then
10773 if test -z "$install_libdir"; then
10774 break
10775 fi
10776 output=$output_objdir/${outputname}i
10777 # Replace all uninstalled libtool libraries with the installed ones
10778 newdependency_libs=
10779 for deplib in $dependency_libs; do
10780 case $deplib in
10781 *.la)
10782 func_basename "$deplib"
10783 name=$func_basename_result
10784 func_resolve_sysroot "$deplib"
10785 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $func_resolve_sysroot_result`
10786 test -z "$libdir" && \
10787 func_fatal_error "'$deplib' is not a valid libtool archive"
10788 func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
10789 ;;
10790 -L*)
10791 func_stripname -L '' "$deplib"
10792 func_replace_sysroot "$func_stripname_result"
10793 func_append newdependency_libs " -L$func_replace_sysroot_result"
10794 ;;
10795 -R*)
10796 func_stripname -R '' "$deplib"
10797 func_replace_sysroot "$func_stripname_result"
10798 func_append newdependency_libs " -R$func_replace_sysroot_result"
10799 ;;
10800 *) func_append newdependency_libs " $deplib" ;;
10801 esac
10802 done
10803 dependency_libs=$newdependency_libs
10804 newdlfiles=
10805
10806 for lib in $dlfiles; do
10807 case $lib in
10808 *.la)
10809 func_basename "$lib"
10810 name=$func_basename_result
10811 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10812 test -z "$libdir" && \
10813 func_fatal_error "'$lib' is not a valid libtool archive"
10814 func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name"
10815 ;;
10816 *) func_append newdlfiles " $lib" ;;
10817 esac
10818 done
10819 dlfiles=$newdlfiles
10820 newdlprefiles=
10821 for lib in $dlprefiles; do
10822 case $lib in
10823 *.la)
10824 # Only pass preopened files to the pseudo-archive (for
10825 # eventual linking with the app. that links it) if we
10826 # didn't already link the preopened objects directly into
10827 # the library:
10828 func_basename "$lib"
10829 name=$func_basename_result
10830 eval libdir=`$SED -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
10831 test -z "$libdir" && \
10832 func_fatal_error "'$lib' is not a valid libtool archive"
10833 func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name"
10834 ;;
10835 esac
10836 done
10837 dlprefiles=$newdlprefiles
10838 else
10839 newdlfiles=
10840 for lib in $dlfiles; do
10841 case $lib in
10842 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10843 *) abs=`pwd`"/$lib" ;;
10844 esac
10845 func_append newdlfiles " $abs"
10846 done
10847 dlfiles=$newdlfiles
10848 newdlprefiles=
10849 for lib in $dlprefiles; do
10850 case $lib in
10851 [\\/]* | [A-Za-z]:[\\/]*) abs=$lib ;;
10852 *) abs=`pwd`"/$lib" ;;
10853 esac
10854 func_append newdlprefiles " $abs"
10855 done
10856 dlprefiles=$newdlprefiles
10857 fi
10858 $RM $output
10859 # place dlname in correct position for cygwin
10860 # In fact, it would be nice if we could use this code for all target
10861 # systems that can't hard-code library paths into their executables
10862 # and that have no shared library path variable independent of PATH,
10863 # but it turns out we can't easily determine that from inspecting
10864 # libtool variables, so we have to hard-code the OSs to which it
10865 # applies here; at the moment, that means platforms that use the PE
10866 # object format with DLL files. See the long comment at the top of
10867 # tests/bindir.at for full details.
10868 tdlname=$dlname
10869 case $host,$output,$installed,$module,$dlname in
10870 *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll)
10871 # If a -bindir argument was supplied, place the dll there.
10872 if test -n "$bindir"; then
10873 func_relative_path "$install_libdir" "$bindir"
10874 tdlname=$func_relative_path_result/$dlname
10875 else
10876 # Otherwise fall back on heuristic.
10877 tdlname=../bin/$dlname
10878 fi
10879 ;;
10880 esac
10881 $ECHO > $output "\
10882 # $outputname - a libtool library file
10883 # Generated by $PROGRAM (GNU $PACKAGE) $VERSION
10884 #
10885 # Please DO NOT delete this file!
10886 # It is necessary for linking the library.
10887
10888 # The name that we can dlopen(3).
10889 dlname='$tdlname'
10890
10891 # Names of this library.
10892 library_names='$library_names'
10893
10894 # The name of the static archive.
10895 old_library='$old_library'
10896
10897 # Linker flags that cannot go in dependency_libs.
10898 inherited_linker_flags='$new_inherited_linker_flags'
10899
10900 # Libraries that this one depends upon.
10901 dependency_libs='$dependency_libs'
10902
10903 # Names of additional weak libraries provided by this library
10904 weak_library_names='$weak_libs'
10905
10906 # Version information for $libname.
10907 current=$current
10908 age=$age
10909 revision=$revision
10910
10911 # Is this an already installed library?
10912 installed=$installed
10913
10914 # Should we warn about portability when linking against -modules?
10915 shouldnotlink=$module
10916
10917 # Files to dlopen/dlpreopen
10918 dlopen='$dlfiles'
10919 dlpreopen='$dlprefiles'
10920
10921 # Directory that this library needs to be installed in:
10922 libdir='$install_libdir'"
10923 if test no,yes = "$installed,$need_relink"; then
10924 $ECHO >> $output "\
10925 relink_command=\"$relink_command\""
10926 fi
10927 done
10928 }
10929
10930 # Do a symbolic link so that the libtool archive can be found in
10931 # LD_LIBRARY_PATH before the program is installed.
10932 func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
10933 ;;
10934 esac
10935 exit $EXIT_SUCCESS
10936 }
10937
10938 if test link = "$opt_mode" || test relink = "$opt_mode"; then
10939 func_mode_link ${1+"$@"}
10940 fi
10941
10942
10943 # func_mode_uninstall arg...
10944 func_mode_uninstall ()
10945 {
10946 $debug_cmd
10947
10948 RM=$nonopt
10949 files=
10950 rmforce=false
10951 exit_status=0
10952
10953 # This variable tells wrapper scripts just to set variables rather
10954 # than running their programs.
10955 libtool_install_magic=$magic
10956
10957 for arg
10958 do
10959 case $arg in
10960 -f) func_append RM " $arg"; rmforce=: ;;
10961 -*) func_append RM " $arg" ;;
10962 *) func_append files " $arg" ;;
10963 esac
10964 done
10965
10966 test -z "$RM" && \
10967 func_fatal_help "you must specify an RM program"
10968
10969 rmdirs=
10970
10971 for file in $files; do
10972 func_dirname "$file" "" "."
10973 dir=$func_dirname_result
10974 if test . = "$dir"; then
10975 odir=$objdir
10976 else
10977 odir=$dir/$objdir
10978 fi
10979 func_basename "$file"
10980 name=$func_basename_result
10981 test uninstall = "$opt_mode" && odir=$dir
10982
10983 # Remember odir for removal later, being careful to avoid duplicates
10984 if test clean = "$opt_mode"; then
10985 case " $rmdirs " in
10986 *" $odir "*) ;;
10987 *) func_append rmdirs " $odir" ;;
10988 esac
10989 fi
10990
10991 # Don't error if the file doesn't exist and rm -f was used.
10992 if { test -L "$file"; } >/dev/null 2>&1 ||
10993 { test -h "$file"; } >/dev/null 2>&1 ||
10994 test -f "$file"; then
10995 :
10996 elif test -d "$file"; then
10997 exit_status=1
10998 continue
10999 elif $rmforce; then
11000 continue
11001 fi
11002
11003 rmfiles=$file
11004
11005 case $name in
11006 *.la)
11007 # Possibly a libtool archive, so verify it.
11008 if func_lalib_p "$file"; then
11009 func_source $dir/$name
11010
11011 # Delete the libtool libraries and symlinks.
11012 for n in $library_names; do
11013 func_append rmfiles " $odir/$n"
11014 done
11015 test -n "$old_library" && func_append rmfiles " $odir/$old_library"
11016
11017 case $opt_mode in
11018 clean)
11019 case " $library_names " in
11020 *" $dlname "*) ;;
11021 *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;;
11022 esac
11023 test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i"
11024 ;;
11025 uninstall)
11026 if test -n "$library_names"; then
11027 # Do each command in the postuninstall commands.
11028 func_execute_cmds "$postuninstall_cmds" '$rmforce || exit_status=1'
11029 fi
11030
11031 if test -n "$old_library"; then
11032 # Do each command in the old_postuninstall commands.
11033 func_execute_cmds "$old_postuninstall_cmds" '$rmforce || exit_status=1'
11034 fi
11035 # FIXME: should reinstall the best remaining shared library.
11036 ;;
11037 esac
11038 fi
11039 ;;
11040
11041 *.lo)
11042 # Possibly a libtool object, so verify it.
11043 if func_lalib_p "$file"; then
11044
11045 # Read the .lo file
11046 func_source $dir/$name
11047
11048 # Add PIC object to the list of files to remove.
11049 if test -n "$pic_object" && test none != "$pic_object"; then
11050 func_append rmfiles " $dir/$pic_object"
11051 fi
11052
11053 # Add non-PIC object to the list of files to remove.
11054 if test -n "$non_pic_object" && test none != "$non_pic_object"; then
11055 func_append rmfiles " $dir/$non_pic_object"
11056 fi
11057 fi
11058 ;;
11059
11060 *)
11061 if test clean = "$opt_mode"; then
11062 noexename=$name
11063 case $file in
11064 *.exe)
11065 func_stripname '' '.exe' "$file"
11066 file=$func_stripname_result
11067 func_stripname '' '.exe' "$name"
11068 noexename=$func_stripname_result
11069 # $file with .exe has already been added to rmfiles,
11070 # add $file without .exe
11071 func_append rmfiles " $file"
11072 ;;
11073 esac
11074 # Do a test to see if this is a libtool program.
11075 if func_ltwrapper_p "$file"; then
11076 if func_ltwrapper_executable_p "$file"; then
11077 func_ltwrapper_scriptname "$file"
11078 relink_command=
11079 func_source $func_ltwrapper_scriptname_result
11080 func_append rmfiles " $func_ltwrapper_scriptname_result"
11081 else
11082 relink_command=
11083 func_source $dir/$noexename
11084 fi
11085
11086 # note $name still contains .exe if it was in $file originally
11087 # as does the version of $file that was added into $rmfiles
11088 func_append rmfiles " $odir/$name $odir/${name}S.$objext"
11089 if test yes = "$fast_install" && test -n "$relink_command"; then
11090 func_append rmfiles " $odir/lt-$name"
11091 fi
11092 if test "X$noexename" != "X$name"; then
11093 func_append rmfiles " $odir/lt-$noexename.c"
11094 fi
11095 fi
11096 fi
11097 ;;
11098 esac
11099 func_show_eval "$RM $rmfiles" 'exit_status=1'
11100 done
11101
11102 # Try to remove the $objdir's in the directories where we deleted files
11103 for dir in $rmdirs; do
11104 if test -d "$dir"; then
11105 func_show_eval "rmdir $dir >/dev/null 2>&1"
11106 fi
11107 done
11108
11109 exit $exit_status
11110 }
11111
11112 if test uninstall = "$opt_mode" || test clean = "$opt_mode"; then
11113 func_mode_uninstall ${1+"$@"}
11114 fi
11115
11116 test -z "$opt_mode" && {
11117 help=$generic_help
11118 func_fatal_help "you must specify a MODE"
11119 }
11120
11121 test -z "$exec_cmd" && \
11122 func_fatal_help "invalid operation mode '$opt_mode'"
11123
11124 if test -n "$exec_cmd"; then
11125 eval exec "$exec_cmd"
11126 exit $EXIT_FAILURE
11127 fi
11128
11129 exit $exit_status
11130
11131
11132 # The TAGs below are defined such that we never get into a situation
11133 # where we disable both kinds of libraries. Given conflicting
11134 # choices, we go for a static library, that is the most portable,
11135 # since we can't tell whether shared libraries were disabled because
11136 # the user asked for that or because the platform doesn't support
11137 # them. This is particularly important on AIX, because we don't
11138 # support having both static and shared libraries enabled at the same
11139 # time on that platform, so we default to a shared-only configuration.
11140 # If a disable-shared tag is given, we'll fallback to a static-only
11141 # configuration. But we'll never go from static-only to shared-only.
11142
11143 # ### BEGIN LIBTOOL TAG CONFIG: disable-shared
11144 build_libtool_libs=no
11145 build_old_libs=yes
11146 # ### END LIBTOOL TAG CONFIG: disable-shared
11147
11148 # ### BEGIN LIBTOOL TAG CONFIG: disable-static
11149 build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
11150 # ### END LIBTOOL TAG CONFIG: disable-static
11151
11152 # Local Variables:
11153 # mode:shell-script
11154 # sh-indentation:2
11155 # End:
+0
-8387
m4/libtool.m4 less more
0 # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
1 #
2 # Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc.
3 # Written by Gordon Matzigkeit, 1996
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 m4_define([_LT_COPYING], [dnl
10 # Copyright (C) 2014 Free Software Foundation, Inc.
11 # This is free software; see the source for copying conditions. There is NO
12 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
14 # GNU Libtool is free software; you can redistribute it and/or modify
15 # it under the terms of the GNU General Public License as published by
16 # the Free Software Foundation; either version 2 of of the License, or
17 # (at your option) any later version.
18 #
19 # As a special exception to the GNU General Public License, if you
20 # distribute this file as part of a program or library that is built
21 # using GNU Libtool, you may include this file under the same
22 # distribution terms that you use for the rest of that program.
23 #
24 # GNU Libtool is distributed in the hope that it will be useful, but
25 # WITHOUT ANY WARRANTY; without even the implied warranty of
26 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27 # GNU General Public License for more details.
28 #
29 # You should have received a copy of the GNU General Public License
30 # along with this program. If not, see <http://www.gnu.org/licenses/>.
31 ])
32
33 # serial 58 LT_INIT
34
35
36 # LT_PREREQ(VERSION)
37 # ------------------
38 # Complain and exit if this libtool version is less that VERSION.
39 m4_defun([LT_PREREQ],
40 [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
41 [m4_default([$3],
42 [m4_fatal([Libtool version $1 or higher is required],
43 63)])],
44 [$2])])
45
46
47 # _LT_CHECK_BUILDDIR
48 # ------------------
49 # Complain if the absolute build directory name contains unusual characters
50 m4_defun([_LT_CHECK_BUILDDIR],
51 [case `pwd` in
52 *\ * | *\ *)
53 AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
54 esac
55 ])
56
57
58 # LT_INIT([OPTIONS])
59 # ------------------
60 AC_DEFUN([LT_INIT],
61 [AC_PREREQ([2.62])dnl We use AC_PATH_PROGS_FEATURE_CHECK
62 AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
63 AC_BEFORE([$0], [LT_LANG])dnl
64 AC_BEFORE([$0], [LT_OUTPUT])dnl
65 AC_BEFORE([$0], [LTDL_INIT])dnl
66 m4_require([_LT_CHECK_BUILDDIR])dnl
67
68 dnl Autoconf doesn't catch unexpanded LT_ macros by default:
69 m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
70 m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
71 dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
72 dnl unless we require an AC_DEFUNed macro:
73 AC_REQUIRE([LTOPTIONS_VERSION])dnl
74 AC_REQUIRE([LTSUGAR_VERSION])dnl
75 AC_REQUIRE([LTVERSION_VERSION])dnl
76 AC_REQUIRE([LTOBSOLETE_VERSION])dnl
77 m4_require([_LT_PROG_LTMAIN])dnl
78
79 _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}])
80
81 dnl Parse OPTIONS
82 _LT_SET_OPTIONS([$0], [$1])
83
84 # This can be used to rebuild libtool when needed
85 LIBTOOL_DEPS=$ltmain
86
87 # Always use our own libtool.
88 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
89 AC_SUBST(LIBTOOL)dnl
90
91 _LT_SETUP
92
93 # Only expand once:
94 m4_define([LT_INIT])
95 ])# LT_INIT
96
97 # Old names:
98 AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
99 AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
100 dnl aclocal-1.4 backwards compatibility:
101 dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
102 dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
103
104
105 # _LT_PREPARE_CC_BASENAME
106 # -----------------------
107 m4_defun([_LT_PREPARE_CC_BASENAME], [
108 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
109 func_cc_basename ()
110 {
111 for cc_temp in @S|@*""; do
112 case $cc_temp in
113 compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
114 distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
115 \-*) ;;
116 *) break;;
117 esac
118 done
119 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
120 }
121 ])# _LT_PREPARE_CC_BASENAME
122
123
124 # _LT_CC_BASENAME(CC)
125 # -------------------
126 # It would be clearer to call AC_REQUIREs from _LT_PREPARE_CC_BASENAME,
127 # but that macro is also expanded into generated libtool script, which
128 # arranges for $SED and $ECHO to be set by different means.
129 m4_defun([_LT_CC_BASENAME],
130 [m4_require([_LT_PREPARE_CC_BASENAME])dnl
131 AC_REQUIRE([_LT_DECL_SED])dnl
132 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
133 func_cc_basename $1
134 cc_basename=$func_cc_basename_result
135 ])
136
137
138 # _LT_FILEUTILS_DEFAULTS
139 # ----------------------
140 # It is okay to use these file commands and assume they have been set
141 # sensibly after 'm4_require([_LT_FILEUTILS_DEFAULTS])'.
142 m4_defun([_LT_FILEUTILS_DEFAULTS],
143 [: ${CP="cp -f"}
144 : ${MV="mv -f"}
145 : ${RM="rm -f"}
146 ])# _LT_FILEUTILS_DEFAULTS
147
148
149 # _LT_SETUP
150 # ---------
151 m4_defun([_LT_SETUP],
152 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
153 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
154 AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl
155 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl
156
157 _LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl
158 dnl
159 _LT_DECL([], [host_alias], [0], [The host system])dnl
160 _LT_DECL([], [host], [0])dnl
161 _LT_DECL([], [host_os], [0])dnl
162 dnl
163 _LT_DECL([], [build_alias], [0], [The build system])dnl
164 _LT_DECL([], [build], [0])dnl
165 _LT_DECL([], [build_os], [0])dnl
166 dnl
167 AC_REQUIRE([AC_PROG_CC])dnl
168 AC_REQUIRE([LT_PATH_LD])dnl
169 AC_REQUIRE([LT_PATH_NM])dnl
170 dnl
171 AC_REQUIRE([AC_PROG_LN_S])dnl
172 test -z "$LN_S" && LN_S="ln -s"
173 _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
174 dnl
175 AC_REQUIRE([LT_CMD_MAX_LEN])dnl
176 _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
177 _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
178 dnl
179 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
180 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
181 m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl
182 m4_require([_LT_CMD_RELOAD])dnl
183 m4_require([_LT_CHECK_MAGIC_METHOD])dnl
184 m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl
185 m4_require([_LT_CMD_OLD_ARCHIVE])dnl
186 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
187 m4_require([_LT_WITH_SYSROOT])dnl
188 m4_require([_LT_CMD_TRUNCATE])dnl
189
190 _LT_CONFIG_LIBTOOL_INIT([
191 # See if we are running on zsh, and set the options that allow our
192 # commands through without removal of \ escapes INIT.
193 if test -n "\${ZSH_VERSION+set}"; then
194 setopt NO_GLOB_SUBST
195 fi
196 ])
197 if test -n "${ZSH_VERSION+set}"; then
198 setopt NO_GLOB_SUBST
199 fi
200
201 _LT_CHECK_OBJDIR
202
203 m4_require([_LT_TAG_COMPILER])dnl
204
205 case $host_os in
206 aix3*)
207 # AIX sometimes has problems with the GCC collect2 program. For some
208 # reason, if we set the COLLECT_NAMES environment variable, the problems
209 # vanish in a puff of smoke.
210 if test set != "${COLLECT_NAMES+set}"; then
211 COLLECT_NAMES=
212 export COLLECT_NAMES
213 fi
214 ;;
215 esac
216
217 # Global variables:
218 ofile=libtool
219 can_build_shared=yes
220
221 # All known linkers require a '.a' archive for static linking (except MSVC,
222 # which needs '.lib').
223 libext=a
224
225 with_gnu_ld=$lt_cv_prog_gnu_ld
226
227 old_CC=$CC
228 old_CFLAGS=$CFLAGS
229
230 # Set sane defaults for various variables
231 test -z "$CC" && CC=cc
232 test -z "$LTCC" && LTCC=$CC
233 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
234 test -z "$LD" && LD=ld
235 test -z "$ac_objext" && ac_objext=o
236
237 _LT_CC_BASENAME([$compiler])
238
239 # Only perform the check for file, if the check method requires it
240 test -z "$MAGIC_CMD" && MAGIC_CMD=file
241 case $deplibs_check_method in
242 file_magic*)
243 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
244 _LT_PATH_MAGIC
245 fi
246 ;;
247 esac
248
249 # Use C for the default configuration in the libtool script
250 LT_SUPPORTED_TAG([CC])
251 _LT_LANG_C_CONFIG
252 _LT_LANG_DEFAULT_CONFIG
253 _LT_CONFIG_COMMANDS
254 ])# _LT_SETUP
255
256
257 # _LT_PREPARE_SED_QUOTE_VARS
258 # --------------------------
259 # Define a few sed substitution that help us do robust quoting.
260 m4_defun([_LT_PREPARE_SED_QUOTE_VARS],
261 [# Backslashify metacharacters that are still active within
262 # double-quoted strings.
263 sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
264
265 # Same as above, but do not quote variable references.
266 double_quote_subst='s/\([["`\\]]\)/\\\1/g'
267
268 # Sed substitution to delay expansion of an escaped shell variable in a
269 # double_quote_subst'ed string.
270 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
271
272 # Sed substitution to delay expansion of an escaped single quote.
273 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
274
275 # Sed substitution to avoid accidental globbing in evaled expressions
276 no_glob_subst='s/\*/\\\*/g'
277 ])
278
279 # _LT_PROG_LTMAIN
280 # ---------------
281 # Note that this code is called both from 'configure', and 'config.status'
282 # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
283 # 'config.status' has no value for ac_aux_dir unless we are using Automake,
284 # so we pass a copy along to make sure it has a sensible value anyway.
285 m4_defun([_LT_PROG_LTMAIN],
286 [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
287 _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
288 ltmain=$ac_aux_dir/ltmain.sh
289 ])# _LT_PROG_LTMAIN
290
291
292 ## ------------------------------------- ##
293 ## Accumulate code for creating libtool. ##
294 ## ------------------------------------- ##
295
296 # So that we can recreate a full libtool script including additional
297 # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
298 # in macros and then make a single call at the end using the 'libtool'
299 # label.
300
301
302 # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
303 # ----------------------------------------
304 # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
305 m4_define([_LT_CONFIG_LIBTOOL_INIT],
306 [m4_ifval([$1],
307 [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
308 [$1
309 ])])])
310
311 # Initialize.
312 m4_define([_LT_OUTPUT_LIBTOOL_INIT])
313
314
315 # _LT_CONFIG_LIBTOOL([COMMANDS])
316 # ------------------------------
317 # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
318 m4_define([_LT_CONFIG_LIBTOOL],
319 [m4_ifval([$1],
320 [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
321 [$1
322 ])])])
323
324 # Initialize.
325 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
326
327
328 # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
329 # -----------------------------------------------------
330 m4_defun([_LT_CONFIG_SAVE_COMMANDS],
331 [_LT_CONFIG_LIBTOOL([$1])
332 _LT_CONFIG_LIBTOOL_INIT([$2])
333 ])
334
335
336 # _LT_FORMAT_COMMENT([COMMENT])
337 # -----------------------------
338 # Add leading comment marks to the start of each line, and a trailing
339 # full-stop to the whole comment if one is not present already.
340 m4_define([_LT_FORMAT_COMMENT],
341 [m4_ifval([$1], [
342 m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
343 [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
344 )])
345
346
347
348 ## ------------------------ ##
349 ## FIXME: Eliminate VARNAME ##
350 ## ------------------------ ##
351
352
353 # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
354 # -------------------------------------------------------------------
355 # CONFIGNAME is the name given to the value in the libtool script.
356 # VARNAME is the (base) name used in the configure script.
357 # VALUE may be 0, 1 or 2 for a computed quote escaped value based on
358 # VARNAME. Any other value will be used directly.
359 m4_define([_LT_DECL],
360 [lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
361 [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
362 [m4_ifval([$1], [$1], [$2])])
363 lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
364 m4_ifval([$4],
365 [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
366 lt_dict_add_subkey([lt_decl_dict], [$2],
367 [tagged?], [m4_ifval([$5], [yes], [no])])])
368 ])
369
370
371 # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
372 # --------------------------------------------------------
373 m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
374
375
376 # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
377 # ------------------------------------------------
378 m4_define([lt_decl_tag_varnames],
379 [_lt_decl_filter([tagged?], [yes], $@)])
380
381
382 # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
383 # ---------------------------------------------------------
384 m4_define([_lt_decl_filter],
385 [m4_case([$#],
386 [0], [m4_fatal([$0: too few arguments: $#])],
387 [1], [m4_fatal([$0: too few arguments: $#: $1])],
388 [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
389 [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
390 [lt_dict_filter([lt_decl_dict], $@)])[]dnl
391 ])
392
393
394 # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
395 # --------------------------------------------------
396 m4_define([lt_decl_quote_varnames],
397 [_lt_decl_filter([value], [1], $@)])
398
399
400 # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
401 # ---------------------------------------------------
402 m4_define([lt_decl_dquote_varnames],
403 [_lt_decl_filter([value], [2], $@)])
404
405
406 # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
407 # ---------------------------------------------------
408 m4_define([lt_decl_varnames_tagged],
409 [m4_assert([$# <= 2])dnl
410 _$0(m4_quote(m4_default([$1], [[, ]])),
411 m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
412 m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
413 m4_define([_lt_decl_varnames_tagged],
414 [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
415
416
417 # lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
418 # ------------------------------------------------
419 m4_define([lt_decl_all_varnames],
420 [_$0(m4_quote(m4_default([$1], [[, ]])),
421 m4_if([$2], [],
422 m4_quote(lt_decl_varnames),
423 m4_quote(m4_shift($@))))[]dnl
424 ])
425 m4_define([_lt_decl_all_varnames],
426 [lt_join($@, lt_decl_varnames_tagged([$1],
427 lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
428 ])
429
430
431 # _LT_CONFIG_STATUS_DECLARE([VARNAME])
432 # ------------------------------------
433 # Quote a variable value, and forward it to 'config.status' so that its
434 # declaration there will have the same value as in 'configure'. VARNAME
435 # must have a single quote delimited value for this to work.
436 m4_define([_LT_CONFIG_STATUS_DECLARE],
437 [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`'])
438
439
440 # _LT_CONFIG_STATUS_DECLARATIONS
441 # ------------------------------
442 # We delimit libtool config variables with single quotes, so when
443 # we write them to config.status, we have to be sure to quote all
444 # embedded single quotes properly. In configure, this macro expands
445 # each variable declared with _LT_DECL (and _LT_TAGDECL) into:
446 #
447 # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`'
448 m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
449 [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
450 [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
451
452
453 # _LT_LIBTOOL_TAGS
454 # ----------------
455 # Output comment and list of tags supported by the script
456 m4_defun([_LT_LIBTOOL_TAGS],
457 [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
458 available_tags='_LT_TAGS'dnl
459 ])
460
461
462 # _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
463 # -----------------------------------
464 # Extract the dictionary values for VARNAME (optionally with TAG) and
465 # expand to a commented shell variable setting:
466 #
467 # # Some comment about what VAR is for.
468 # visible_name=$lt_internal_name
469 m4_define([_LT_LIBTOOL_DECLARE],
470 [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
471 [description])))[]dnl
472 m4_pushdef([_libtool_name],
473 m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
474 m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
475 [0], [_libtool_name=[$]$1],
476 [1], [_libtool_name=$lt_[]$1],
477 [2], [_libtool_name=$lt_[]$1],
478 [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
479 m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
480 ])
481
482
483 # _LT_LIBTOOL_CONFIG_VARS
484 # -----------------------
485 # Produce commented declarations of non-tagged libtool config variables
486 # suitable for insertion in the LIBTOOL CONFIG section of the 'libtool'
487 # script. Tagged libtool config variables (even for the LIBTOOL CONFIG
488 # section) are produced by _LT_LIBTOOL_TAG_VARS.
489 m4_defun([_LT_LIBTOOL_CONFIG_VARS],
490 [m4_foreach([_lt_var],
491 m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
492 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
493
494
495 # _LT_LIBTOOL_TAG_VARS(TAG)
496 # -------------------------
497 m4_define([_LT_LIBTOOL_TAG_VARS],
498 [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
499 [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
500
501
502 # _LT_TAGVAR(VARNAME, [TAGNAME])
503 # ------------------------------
504 m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
505
506
507 # _LT_CONFIG_COMMANDS
508 # -------------------
509 # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
510 # variables for single and double quote escaping we saved from calls
511 # to _LT_DECL, we can put quote escaped variables declarations
512 # into 'config.status', and then the shell code to quote escape them in
513 # for loops in 'config.status'. Finally, any additional code accumulated
514 # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
515 m4_defun([_LT_CONFIG_COMMANDS],
516 [AC_PROVIDE_IFELSE([LT_OUTPUT],
517 dnl If the libtool generation code has been placed in $CONFIG_LT,
518 dnl instead of duplicating it all over again into config.status,
519 dnl then we will have config.status run $CONFIG_LT later, so it
520 dnl needs to know what name is stored there:
521 [AC_CONFIG_COMMANDS([libtool],
522 [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
523 dnl If the libtool generation code is destined for config.status,
524 dnl expand the accumulated commands and init code now:
525 [AC_CONFIG_COMMANDS([libtool],
526 [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
527 ])#_LT_CONFIG_COMMANDS
528
529
530 # Initialize.
531 m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
532 [
533
534 # The HP-UX ksh and POSIX shell print the target directory to stdout
535 # if CDPATH is set.
536 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
537
538 sed_quote_subst='$sed_quote_subst'
539 double_quote_subst='$double_quote_subst'
540 delay_variable_subst='$delay_variable_subst'
541 _LT_CONFIG_STATUS_DECLARATIONS
542 LTCC='$LTCC'
543 LTCFLAGS='$LTCFLAGS'
544 compiler='$compiler_DEFAULT'
545
546 # A function that is used when there is no print builtin or printf.
547 func_fallback_echo ()
548 {
549 eval 'cat <<_LTECHO_EOF
550 \$[]1
551 _LTECHO_EOF'
552 }
553
554 # Quote evaled strings.
555 for var in lt_decl_all_varnames([[ \
556 ]], lt_decl_quote_varnames); do
557 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
558 *[[\\\\\\\`\\"\\\$]]*)
559 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
560 ;;
561 *)
562 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
563 ;;
564 esac
565 done
566
567 # Double-quote double-evaled strings.
568 for var in lt_decl_all_varnames([[ \
569 ]], lt_decl_dquote_varnames); do
570 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
571 *[[\\\\\\\`\\"\\\$]]*)
572 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
573 ;;
574 *)
575 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
576 ;;
577 esac
578 done
579
580 _LT_OUTPUT_LIBTOOL_INIT
581 ])
582
583 # _LT_GENERATED_FILE_INIT(FILE, [COMMENT])
584 # ------------------------------------
585 # Generate a child script FILE with all initialization necessary to
586 # reuse the environment learned by the parent script, and make the
587 # file executable. If COMMENT is supplied, it is inserted after the
588 # '#!' sequence but before initialization text begins. After this
589 # macro, additional text can be appended to FILE to form the body of
590 # the child script. The macro ends with non-zero status if the
591 # file could not be fully written (such as if the disk is full).
592 m4_ifdef([AS_INIT_GENERATED],
593 [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])],
594 [m4_defun([_LT_GENERATED_FILE_INIT],
595 [m4_require([AS_PREPARE])]dnl
596 [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl
597 [lt_write_fail=0
598 cat >$1 <<_ASEOF || lt_write_fail=1
599 #! $SHELL
600 # Generated by $as_me.
601 $2
602 SHELL=\${CONFIG_SHELL-$SHELL}
603 export SHELL
604 _ASEOF
605 cat >>$1 <<\_ASEOF || lt_write_fail=1
606 AS_SHELL_SANITIZE
607 _AS_PREPARE
608 exec AS_MESSAGE_FD>&1
609 _ASEOF
610 test 0 = "$lt_write_fail" && chmod +x $1[]dnl
611 m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT
612
613 # LT_OUTPUT
614 # ---------
615 # This macro allows early generation of the libtool script (before
616 # AC_OUTPUT is called), incase it is used in configure for compilation
617 # tests.
618 AC_DEFUN([LT_OUTPUT],
619 [: ${CONFIG_LT=./config.lt}
620 AC_MSG_NOTICE([creating $CONFIG_LT])
621 _LT_GENERATED_FILE_INIT(["$CONFIG_LT"],
622 [# Run this file to recreate a libtool stub with the current configuration.])
623
624 cat >>"$CONFIG_LT" <<\_LTEOF
625 lt_cl_silent=false
626 exec AS_MESSAGE_LOG_FD>>config.log
627 {
628 echo
629 AS_BOX([Running $as_me.])
630 } >&AS_MESSAGE_LOG_FD
631
632 lt_cl_help="\
633 '$as_me' creates a local libtool stub from the current configuration,
634 for use in further configure time tests before the real libtool is
635 generated.
636
637 Usage: $[0] [[OPTIONS]]
638
639 -h, --help print this help, then exit
640 -V, --version print version number, then exit
641 -q, --quiet do not print progress messages
642 -d, --debug don't remove temporary files
643
644 Report bugs to <bug-libtool@gnu.org>."
645
646 lt_cl_version="\
647 m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
648 m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
649 configured by $[0], generated by m4_PACKAGE_STRING.
650
651 Copyright (C) 2011 Free Software Foundation, Inc.
652 This config.lt script is free software; the Free Software Foundation
653 gives unlimited permision to copy, distribute and modify it."
654
655 while test 0 != $[#]
656 do
657 case $[1] in
658 --version | --v* | -V )
659 echo "$lt_cl_version"; exit 0 ;;
660 --help | --h* | -h )
661 echo "$lt_cl_help"; exit 0 ;;
662 --debug | --d* | -d )
663 debug=: ;;
664 --quiet | --q* | --silent | --s* | -q )
665 lt_cl_silent=: ;;
666
667 -*) AC_MSG_ERROR([unrecognized option: $[1]
668 Try '$[0] --help' for more information.]) ;;
669
670 *) AC_MSG_ERROR([unrecognized argument: $[1]
671 Try '$[0] --help' for more information.]) ;;
672 esac
673 shift
674 done
675
676 if $lt_cl_silent; then
677 exec AS_MESSAGE_FD>/dev/null
678 fi
679 _LTEOF
680
681 cat >>"$CONFIG_LT" <<_LTEOF
682 _LT_OUTPUT_LIBTOOL_COMMANDS_INIT
683 _LTEOF
684
685 cat >>"$CONFIG_LT" <<\_LTEOF
686 AC_MSG_NOTICE([creating $ofile])
687 _LT_OUTPUT_LIBTOOL_COMMANDS
688 AS_EXIT(0)
689 _LTEOF
690 chmod +x "$CONFIG_LT"
691
692 # configure is writing to config.log, but config.lt does its own redirection,
693 # appending to config.log, which fails on DOS, as config.log is still kept
694 # open by configure. Here we exec the FD to /dev/null, effectively closing
695 # config.log, so it can be properly (re)opened and appended to by config.lt.
696 lt_cl_success=:
697 test yes = "$silent" &&
698 lt_config_lt_args="$lt_config_lt_args --quiet"
699 exec AS_MESSAGE_LOG_FD>/dev/null
700 $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
701 exec AS_MESSAGE_LOG_FD>>config.log
702 $lt_cl_success || AS_EXIT(1)
703 ])# LT_OUTPUT
704
705
706 # _LT_CONFIG(TAG)
707 # ---------------
708 # If TAG is the built-in tag, create an initial libtool script with a
709 # default configuration from the untagged config vars. Otherwise add code
710 # to config.status for appending the configuration named by TAG from the
711 # matching tagged config vars.
712 m4_defun([_LT_CONFIG],
713 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
714 _LT_CONFIG_SAVE_COMMANDS([
715 m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
716 m4_if(_LT_TAG, [C], [
717 # See if we are running on zsh, and set the options that allow our
718 # commands through without removal of \ escapes.
719 if test -n "${ZSH_VERSION+set}"; then
720 setopt NO_GLOB_SUBST
721 fi
722
723 cfgfile=${ofile}T
724 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
725 $RM "$cfgfile"
726
727 cat <<_LT_EOF >> "$cfgfile"
728 #! $SHELL
729 # Generated automatically by $as_me ($PACKAGE) $VERSION
730 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
731
732 # Provide generalized library-building support services.
733 # Written by Gordon Matzigkeit, 1996
734
735 _LT_COPYING
736 _LT_LIBTOOL_TAGS
737
738 # Configured defaults for sys_lib_dlsearch_path munging.
739 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
740
741 # ### BEGIN LIBTOOL CONFIG
742 _LT_LIBTOOL_CONFIG_VARS
743 _LT_LIBTOOL_TAG_VARS
744 # ### END LIBTOOL CONFIG
745
746 _LT_EOF
747
748 cat <<'_LT_EOF' >> "$cfgfile"
749
750 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
751
752 _LT_PREPARE_MUNGE_PATH_LIST
753 _LT_PREPARE_CC_BASENAME
754
755 # ### END FUNCTIONS SHARED WITH CONFIGURE
756
757 _LT_EOF
758
759 case $host_os in
760 aix3*)
761 cat <<\_LT_EOF >> "$cfgfile"
762 # AIX sometimes has problems with the GCC collect2 program. For some
763 # reason, if we set the COLLECT_NAMES environment variable, the problems
764 # vanish in a puff of smoke.
765 if test set != "${COLLECT_NAMES+set}"; then
766 COLLECT_NAMES=
767 export COLLECT_NAMES
768 fi
769 _LT_EOF
770 ;;
771 esac
772
773 _LT_PROG_LTMAIN
774
775 # We use sed instead of cat because bash on DJGPP gets confused if
776 # if finds mixed CR/LF and LF-only lines. Since sed operates in
777 # text mode, it properly converts lines to CR/LF. This bash problem
778 # is reportedly fixed, but why not run on old versions too?
779 sed '$q' "$ltmain" >> "$cfgfile" \
780 || (rm -f "$cfgfile"; exit 1)
781
782 mv -f "$cfgfile" "$ofile" ||
783 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
784 chmod +x "$ofile"
785 ],
786 [cat <<_LT_EOF >> "$ofile"
787
788 dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
789 dnl in a comment (ie after a #).
790 # ### BEGIN LIBTOOL TAG CONFIG: $1
791 _LT_LIBTOOL_TAG_VARS(_LT_TAG)
792 # ### END LIBTOOL TAG CONFIG: $1
793 _LT_EOF
794 ])dnl /m4_if
795 ],
796 [m4_if([$1], [], [
797 PACKAGE='$PACKAGE'
798 VERSION='$VERSION'
799 RM='$RM'
800 ofile='$ofile'], [])
801 ])dnl /_LT_CONFIG_SAVE_COMMANDS
802 ])# _LT_CONFIG
803
804
805 # LT_SUPPORTED_TAG(TAG)
806 # ---------------------
807 # Trace this macro to discover what tags are supported by the libtool
808 # --tag option, using:
809 # autoconf --trace 'LT_SUPPORTED_TAG:$1'
810 AC_DEFUN([LT_SUPPORTED_TAG], [])
811
812
813 # C support is built-in for now
814 m4_define([_LT_LANG_C_enabled], [])
815 m4_define([_LT_TAGS], [])
816
817
818 # LT_LANG(LANG)
819 # -------------
820 # Enable libtool support for the given language if not already enabled.
821 AC_DEFUN([LT_LANG],
822 [AC_BEFORE([$0], [LT_OUTPUT])dnl
823 m4_case([$1],
824 [C], [_LT_LANG(C)],
825 [C++], [_LT_LANG(CXX)],
826 [Go], [_LT_LANG(GO)],
827 [Java], [_LT_LANG(GCJ)],
828 [Fortran 77], [_LT_LANG(F77)],
829 [Fortran], [_LT_LANG(FC)],
830 [Windows Resource], [_LT_LANG(RC)],
831 [m4_ifdef([_LT_LANG_]$1[_CONFIG],
832 [_LT_LANG($1)],
833 [m4_fatal([$0: unsupported language: "$1"])])])dnl
834 ])# LT_LANG
835
836
837 # _LT_LANG(LANGNAME)
838 # ------------------
839 m4_defun([_LT_LANG],
840 [m4_ifdef([_LT_LANG_]$1[_enabled], [],
841 [LT_SUPPORTED_TAG([$1])dnl
842 m4_append([_LT_TAGS], [$1 ])dnl
843 m4_define([_LT_LANG_]$1[_enabled], [])dnl
844 _LT_LANG_$1_CONFIG($1)])dnl
845 ])# _LT_LANG
846
847
848 m4_ifndef([AC_PROG_GO], [
849 ############################################################
850 # NOTE: This macro has been submitted for inclusion into #
851 # GNU Autoconf as AC_PROG_GO. When it is available in #
852 # a released version of Autoconf we should remove this #
853 # macro and use it instead. #
854 ############################################################
855 m4_defun([AC_PROG_GO],
856 [AC_LANG_PUSH(Go)dnl
857 AC_ARG_VAR([GOC], [Go compiler command])dnl
858 AC_ARG_VAR([GOFLAGS], [Go compiler flags])dnl
859 _AC_ARG_VAR_LDFLAGS()dnl
860 AC_CHECK_TOOL(GOC, gccgo)
861 if test -z "$GOC"; then
862 if test -n "$ac_tool_prefix"; then
863 AC_CHECK_PROG(GOC, [${ac_tool_prefix}gccgo], [${ac_tool_prefix}gccgo])
864 fi
865 fi
866 if test -z "$GOC"; then
867 AC_CHECK_PROG(GOC, gccgo, gccgo, false)
868 fi
869 ])#m4_defun
870 ])#m4_ifndef
871
872
873 # _LT_LANG_DEFAULT_CONFIG
874 # -----------------------
875 m4_defun([_LT_LANG_DEFAULT_CONFIG],
876 [AC_PROVIDE_IFELSE([AC_PROG_CXX],
877 [LT_LANG(CXX)],
878 [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
879
880 AC_PROVIDE_IFELSE([AC_PROG_F77],
881 [LT_LANG(F77)],
882 [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
883
884 AC_PROVIDE_IFELSE([AC_PROG_FC],
885 [LT_LANG(FC)],
886 [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
887
888 dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
889 dnl pulling things in needlessly.
890 AC_PROVIDE_IFELSE([AC_PROG_GCJ],
891 [LT_LANG(GCJ)],
892 [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
893 [LT_LANG(GCJ)],
894 [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
895 [LT_LANG(GCJ)],
896 [m4_ifdef([AC_PROG_GCJ],
897 [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
898 m4_ifdef([A][M_PROG_GCJ],
899 [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
900 m4_ifdef([LT_PROG_GCJ],
901 [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
902
903 AC_PROVIDE_IFELSE([AC_PROG_GO],
904 [LT_LANG(GO)],
905 [m4_define([AC_PROG_GO], defn([AC_PROG_GO])[LT_LANG(GO)])])
906
907 AC_PROVIDE_IFELSE([LT_PROG_RC],
908 [LT_LANG(RC)],
909 [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
910 ])# _LT_LANG_DEFAULT_CONFIG
911
912 # Obsolete macros:
913 AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
914 AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
915 AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
916 AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
917 AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)])
918 dnl aclocal-1.4 backwards compatibility:
919 dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
920 dnl AC_DEFUN([AC_LIBTOOL_F77], [])
921 dnl AC_DEFUN([AC_LIBTOOL_FC], [])
922 dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
923 dnl AC_DEFUN([AC_LIBTOOL_RC], [])
924
925
926 # _LT_TAG_COMPILER
927 # ----------------
928 m4_defun([_LT_TAG_COMPILER],
929 [AC_REQUIRE([AC_PROG_CC])dnl
930
931 _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
932 _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
933 _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
934 _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
935
936 # If no C compiler was specified, use CC.
937 LTCC=${LTCC-"$CC"}
938
939 # If no C compiler flags were specified, use CFLAGS.
940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
941
942 # Allow CC to be a program name with arguments.
943 compiler=$CC
944 ])# _LT_TAG_COMPILER
945
946
947 # _LT_COMPILER_BOILERPLATE
948 # ------------------------
949 # Check for compiler boilerplate output or warnings with
950 # the simple compiler test code.
951 m4_defun([_LT_COMPILER_BOILERPLATE],
952 [m4_require([_LT_DECL_SED])dnl
953 ac_outfile=conftest.$ac_objext
954 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
955 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
956 _lt_compiler_boilerplate=`cat conftest.err`
957 $RM conftest*
958 ])# _LT_COMPILER_BOILERPLATE
959
960
961 # _LT_LINKER_BOILERPLATE
962 # ----------------------
963 # Check for linker boilerplate output or warnings with
964 # the simple link test code.
965 m4_defun([_LT_LINKER_BOILERPLATE],
966 [m4_require([_LT_DECL_SED])dnl
967 ac_outfile=conftest.$ac_objext
968 echo "$lt_simple_link_test_code" >conftest.$ac_ext
969 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
970 _lt_linker_boilerplate=`cat conftest.err`
971 $RM -r conftest*
972 ])# _LT_LINKER_BOILERPLATE
973
974 # _LT_REQUIRED_DARWIN_CHECKS
975 # -------------------------
976 m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
977 case $host_os in
978 rhapsody* | darwin*)
979 AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
980 AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
981 AC_CHECK_TOOL([LIPO], [lipo], [:])
982 AC_CHECK_TOOL([OTOOL], [otool], [:])
983 AC_CHECK_TOOL([OTOOL64], [otool64], [:])
984 _LT_DECL([], [DSYMUTIL], [1],
985 [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
986 _LT_DECL([], [NMEDIT], [1],
987 [Tool to change global to local symbols on Mac OS X])
988 _LT_DECL([], [LIPO], [1],
989 [Tool to manipulate fat objects and archives on Mac OS X])
990 _LT_DECL([], [OTOOL], [1],
991 [ldd/readelf like tool for Mach-O binaries on Mac OS X])
992 _LT_DECL([], [OTOOL64], [1],
993 [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
994
995 AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
996 [lt_cv_apple_cc_single_mod=no
997 if test -z "$LT_MULTI_MODULE"; then
998 # By default we will add the -single_module flag. You can override
999 # by either setting the environment variable LT_MULTI_MODULE
1000 # non-empty at configure time, or by adding -multi_module to the
1001 # link flags.
1002 rm -rf libconftest.dylib*
1003 echo "int foo(void){return 1;}" > conftest.c
1004 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1005 -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
1006 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
1007 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
1008 _lt_result=$?
1009 # If there is a non-empty error log, and "single_module"
1010 # appears in it, assume the flag caused a linker warning
1011 if test -s conftest.err && $GREP single_module conftest.err; then
1012 cat conftest.err >&AS_MESSAGE_LOG_FD
1013 # Otherwise, if the output was created with a 0 exit code from
1014 # the compiler, it worked.
1015 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
1016 lt_cv_apple_cc_single_mod=yes
1017 else
1018 cat conftest.err >&AS_MESSAGE_LOG_FD
1019 fi
1020 rm -rf libconftest.dylib*
1021 rm -f conftest.*
1022 fi])
1023
1024 AC_CACHE_CHECK([for -exported_symbols_list linker flag],
1025 [lt_cv_ld_exported_symbols_list],
1026 [lt_cv_ld_exported_symbols_list=no
1027 save_LDFLAGS=$LDFLAGS
1028 echo "_main" > conftest.sym
1029 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
1030 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
1031 [lt_cv_ld_exported_symbols_list=yes],
1032 [lt_cv_ld_exported_symbols_list=no])
1033 LDFLAGS=$save_LDFLAGS
1034 ])
1035
1036 AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load],
1037 [lt_cv_ld_force_load=no
1038 cat > conftest.c << _LT_EOF
1039 int forced_loaded() { return 2;}
1040 _LT_EOF
1041 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD
1042 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD
1043 echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD
1044 $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD
1045 echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD
1046 $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD
1047 cat > conftest.c << _LT_EOF
1048 int main() { return 0;}
1049 _LT_EOF
1050 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD
1051 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
1052 _lt_result=$?
1053 if test -s conftest.err && $GREP force_load conftest.err; then
1054 cat conftest.err >&AS_MESSAGE_LOG_FD
1055 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
1056 lt_cv_ld_force_load=yes
1057 else
1058 cat conftest.err >&AS_MESSAGE_LOG_FD
1059 fi
1060 rm -f conftest.err libconftest.a conftest conftest.c
1061 rm -rf conftest.dSYM
1062 ])
1063 case $host_os in
1064 rhapsody* | darwin1.[[012]])
1065 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
1066 darwin1.*)
1067 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1068 darwin*) # darwin 5.x on
1069 # if running on 10.5 or later, the deployment target defaults
1070 # to the OS version, if on x86, and 10.4, the deployment
1071 # target defaults to 10.4. Don't you love it?
1072 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
1073 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
1074 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1075 10.[[012]][[,.]]*)
1076 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
1077 10.*)
1078 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
1079 esac
1080 ;;
1081 esac
1082 if test yes = "$lt_cv_apple_cc_single_mod"; then
1083 _lt_dar_single_mod='$single_module'
1084 fi
1085 if test yes = "$lt_cv_ld_exported_symbols_list"; then
1086 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
1087 else
1088 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
1089 fi
1090 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
1091 _lt_dsymutil='~$DSYMUTIL $lib || :'
1092 else
1093 _lt_dsymutil=
1094 fi
1095 ;;
1096 esac
1097 ])
1098
1099
1100 # _LT_DARWIN_LINKER_FEATURES([TAG])
1101 # ---------------------------------
1102 # Checks for linker and compiler features on darwin
1103 m4_defun([_LT_DARWIN_LINKER_FEATURES],
1104 [
1105 m4_require([_LT_REQUIRED_DARWIN_CHECKS])
1106 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
1107 _LT_TAGVAR(hardcode_direct, $1)=no
1108 _LT_TAGVAR(hardcode_automatic, $1)=yes
1109 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
1110 if test yes = "$lt_cv_ld_force_load"; then
1111 _LT_TAGVAR(whole_archive_flag_spec, $1)='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
1112 m4_case([$1], [F77], [_LT_TAGVAR(compiler_needs_object, $1)=yes],
1113 [FC], [_LT_TAGVAR(compiler_needs_object, $1)=yes])
1114 else
1115 _LT_TAGVAR(whole_archive_flag_spec, $1)=''
1116 fi
1117 _LT_TAGVAR(link_all_deplibs, $1)=yes
1118 _LT_TAGVAR(allow_undefined_flag, $1)=$_lt_dar_allow_undefined
1119 case $cc_basename in
1120 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
1121 *) _lt_dar_can_shared=$GCC ;;
1122 esac
1123 if test yes = "$_lt_dar_can_shared"; then
1124 output_verbose_link_cmd=func_echo_all
1125 _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
1126 _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
1127 _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil"
1128 _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil"
1129 m4_if([$1], [CXX],
1130 [ if test yes != "$lt_cv_apple_cc_single_mod"; then
1131 _LT_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$_lt_dsymutil"
1132 _LT_TAGVAR(archive_expsym_cmds, $1)="sed '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$_lt_dar_export_syms$_lt_dsymutil"
1133 fi
1134 ],[])
1135 else
1136 _LT_TAGVAR(ld_shlibs, $1)=no
1137 fi
1138 ])
1139
1140 # _LT_SYS_MODULE_PATH_AIX([TAGNAME])
1141 # ----------------------------------
1142 # Links a minimal program and checks the executable
1143 # for the system default hardcoded library path. In most cases,
1144 # this is /usr/lib:/lib, but when the MPI compilers are used
1145 # the location of the communication and MPI libs are included too.
1146 # If we don't find anything, use the default library path according
1147 # to the aix ld manual.
1148 # Store the results from the different compilers for each TAGNAME.
1149 # Allow to override them for all tags through lt_cv_aix_libpath.
1150 m4_defun([_LT_SYS_MODULE_PATH_AIX],
1151 [m4_require([_LT_DECL_SED])dnl
1152 if test set = "${lt_cv_aix_libpath+set}"; then
1153 aix_libpath=$lt_cv_aix_libpath
1154 else
1155 AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])],
1156 [AC_LINK_IFELSE([AC_LANG_PROGRAM],[
1157 lt_aix_libpath_sed='[
1158 /Import File Strings/,/^$/ {
1159 /^0/ {
1160 s/^0 *\([^ ]*\) *$/\1/
1161 p
1162 }
1163 }]'
1164 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1165 # Check for a 64-bit object if we didn't find anything.
1166 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1167 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
1168 fi],[])
1169 if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then
1170 _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=/usr/lib:/lib
1171 fi
1172 ])
1173 aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])
1174 fi
1175 ])# _LT_SYS_MODULE_PATH_AIX
1176
1177
1178 # _LT_SHELL_INIT(ARG)
1179 # -------------------
1180 m4_define([_LT_SHELL_INIT],
1181 [m4_divert_text([M4SH-INIT], [$1
1182 ])])# _LT_SHELL_INIT
1183
1184
1185
1186 # _LT_PROG_ECHO_BACKSLASH
1187 # -----------------------
1188 # Find how we can fake an echo command that does not interpret backslash.
1189 # In particular, with Autoconf 2.60 or later we add some code to the start
1190 # of the generated configure script that will find a shell with a builtin
1191 # printf (that we can use as an echo command).
1192 m4_defun([_LT_PROG_ECHO_BACKSLASH],
1193 [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1194 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1195 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1196
1197 AC_MSG_CHECKING([how to print strings])
1198 # Test print first, because it will be a builtin if present.
1199 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
1200 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
1201 ECHO='print -r --'
1202 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
1203 ECHO='printf %s\n'
1204 else
1205 # Use this function as a fallback that always works.
1206 func_fallback_echo ()
1207 {
1208 eval 'cat <<_LTECHO_EOF
1209 $[]1
1210 _LTECHO_EOF'
1211 }
1212 ECHO='func_fallback_echo'
1213 fi
1214
1215 # func_echo_all arg...
1216 # Invoke $ECHO with all args, space-separated.
1217 func_echo_all ()
1218 {
1219 $ECHO "$*"
1220 }
1221
1222 case $ECHO in
1223 printf*) AC_MSG_RESULT([printf]) ;;
1224 print*) AC_MSG_RESULT([print -r]) ;;
1225 *) AC_MSG_RESULT([cat]) ;;
1226 esac
1227
1228 m4_ifdef([_AS_DETECT_SUGGESTED],
1229 [_AS_DETECT_SUGGESTED([
1230 test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || (
1231 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
1232 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
1233 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
1234 PATH=/empty FPATH=/empty; export PATH FPATH
1235 test "X`printf %s $ECHO`" = "X$ECHO" \
1236 || test "X`print -r -- $ECHO`" = "X$ECHO" )])])
1237
1238 _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
1239 _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes])
1240 ])# _LT_PROG_ECHO_BACKSLASH
1241
1242
1243 # _LT_WITH_SYSROOT
1244 # ----------------
1245 AC_DEFUN([_LT_WITH_SYSROOT],
1246 [AC_MSG_CHECKING([for sysroot])
1247 AC_ARG_WITH([sysroot],
1248 [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@],
1249 [Search for dependent libraries within DIR (or the compiler's sysroot
1250 if not specified).])],
1251 [], [with_sysroot=no])
1252
1253 dnl lt_sysroot will always be passed unquoted. We quote it here
1254 dnl in case the user passed a directory name.
1255 lt_sysroot=
1256 case $with_sysroot in #(
1257 yes)
1258 if test yes = "$GCC"; then
1259 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
1260 fi
1261 ;; #(
1262 /*)
1263 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
1264 ;; #(
1265 no|'')
1266 ;; #(
1267 *)
1268 AC_MSG_RESULT([$with_sysroot])
1269 AC_MSG_ERROR([The sysroot must be an absolute path.])
1270 ;;
1271 esac
1272
1273 AC_MSG_RESULT([${lt_sysroot:-no}])
1274 _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl
1275 [dependent libraries, and where our libraries should be installed.])])
1276
1277 # _LT_ENABLE_LOCK
1278 # ---------------
1279 m4_defun([_LT_ENABLE_LOCK],
1280 [AC_ARG_ENABLE([libtool-lock],
1281 [AS_HELP_STRING([--disable-libtool-lock],
1282 [avoid locking (might break parallel builds)])])
1283 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
1284
1285 # Some flags need to be propagated to the compiler or linker for good
1286 # libtool support.
1287 case $host in
1288 ia64-*-hpux*)
1289 # Find out what ABI is being produced by ac_compile, and set mode
1290 # options accordingly.
1291 echo 'int i;' > conftest.$ac_ext
1292 if AC_TRY_EVAL(ac_compile); then
1293 case `/usr/bin/file conftest.$ac_objext` in
1294 *ELF-32*)
1295 HPUX_IA64_MODE=32
1296 ;;
1297 *ELF-64*)
1298 HPUX_IA64_MODE=64
1299 ;;
1300 esac
1301 fi
1302 rm -rf conftest*
1303 ;;
1304 *-*-irix6*)
1305 # Find out what ABI is being produced by ac_compile, and set linker
1306 # options accordingly.
1307 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1308 if AC_TRY_EVAL(ac_compile); then
1309 if test yes = "$lt_cv_prog_gnu_ld"; then
1310 case `/usr/bin/file conftest.$ac_objext` in
1311 *32-bit*)
1312 LD="${LD-ld} -melf32bsmip"
1313 ;;
1314 *N32*)
1315 LD="${LD-ld} -melf32bmipn32"
1316 ;;
1317 *64-bit*)
1318 LD="${LD-ld} -melf64bmip"
1319 ;;
1320 esac
1321 else
1322 case `/usr/bin/file conftest.$ac_objext` in
1323 *32-bit*)
1324 LD="${LD-ld} -32"
1325 ;;
1326 *N32*)
1327 LD="${LD-ld} -n32"
1328 ;;
1329 *64-bit*)
1330 LD="${LD-ld} -64"
1331 ;;
1332 esac
1333 fi
1334 fi
1335 rm -rf conftest*
1336 ;;
1337
1338 mips64*-*linux*)
1339 # Find out what ABI is being produced by ac_compile, and set linker
1340 # options accordingly.
1341 echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext
1342 if AC_TRY_EVAL(ac_compile); then
1343 emul=elf
1344 case `/usr/bin/file conftest.$ac_objext` in
1345 *32-bit*)
1346 emul="${emul}32"
1347 ;;
1348 *64-bit*)
1349 emul="${emul}64"
1350 ;;
1351 esac
1352 case `/usr/bin/file conftest.$ac_objext` in
1353 *MSB*)
1354 emul="${emul}btsmip"
1355 ;;
1356 *LSB*)
1357 emul="${emul}ltsmip"
1358 ;;
1359 esac
1360 case `/usr/bin/file conftest.$ac_objext` in
1361 *N32*)
1362 emul="${emul}n32"
1363 ;;
1364 esac
1365 LD="${LD-ld} -m $emul"
1366 fi
1367 rm -rf conftest*
1368 ;;
1369
1370 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
1371 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
1372 # Find out what ABI is being produced by ac_compile, and set linker
1373 # options accordingly. Note that the listed cases only cover the
1374 # situations where additional linker options are needed (such as when
1375 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
1376 # vice versa); the common cases where no linker options are needed do
1377 # not appear in the list.
1378 echo 'int i;' > conftest.$ac_ext
1379 if AC_TRY_EVAL(ac_compile); then
1380 case `/usr/bin/file conftest.o` in
1381 *32-bit*)
1382 case $host in
1383 x86_64-*kfreebsd*-gnu)
1384 LD="${LD-ld} -m elf_i386_fbsd"
1385 ;;
1386 x86_64-*linux*)
1387 case `/usr/bin/file conftest.o` in
1388 *x86-64*)
1389 LD="${LD-ld} -m elf32_x86_64"
1390 ;;
1391 *)
1392 LD="${LD-ld} -m elf_i386"
1393 ;;
1394 esac
1395 ;;
1396 powerpc64le-*linux*)
1397 LD="${LD-ld} -m elf32lppclinux"
1398 ;;
1399 powerpc64-*linux*)
1400 LD="${LD-ld} -m elf32ppclinux"
1401 ;;
1402 s390x-*linux*)
1403 LD="${LD-ld} -m elf_s390"
1404 ;;
1405 sparc64-*linux*)
1406 LD="${LD-ld} -m elf32_sparc"
1407 ;;
1408 esac
1409 ;;
1410 *64-bit*)
1411 case $host in
1412 x86_64-*kfreebsd*-gnu)
1413 LD="${LD-ld} -m elf_x86_64_fbsd"
1414 ;;
1415 x86_64-*linux*)
1416 LD="${LD-ld} -m elf_x86_64"
1417 ;;
1418 powerpcle-*linux*)
1419 LD="${LD-ld} -m elf64lppc"
1420 ;;
1421 powerpc-*linux*)
1422 LD="${LD-ld} -m elf64ppc"
1423 ;;
1424 s390*-*linux*|s390*-*tpf*)
1425 LD="${LD-ld} -m elf64_s390"
1426 ;;
1427 sparc*-*linux*)
1428 LD="${LD-ld} -m elf64_sparc"
1429 ;;
1430 esac
1431 ;;
1432 esac
1433 fi
1434 rm -rf conftest*
1435 ;;
1436
1437 *-*-sco3.2v5*)
1438 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1439 SAVE_CFLAGS=$CFLAGS
1440 CFLAGS="$CFLAGS -belf"
1441 AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
1442 [AC_LANG_PUSH(C)
1443 AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
1444 AC_LANG_POP])
1445 if test yes != "$lt_cv_cc_needs_belf"; then
1446 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1447 CFLAGS=$SAVE_CFLAGS
1448 fi
1449 ;;
1450 *-*solaris*)
1451 # Find out what ABI is being produced by ac_compile, and set linker
1452 # options accordingly.
1453 echo 'int i;' > conftest.$ac_ext
1454 if AC_TRY_EVAL(ac_compile); then
1455 case `/usr/bin/file conftest.o` in
1456 *64-bit*)
1457 case $lt_cv_prog_gnu_ld in
1458 yes*)
1459 case $host in
1460 i?86-*-solaris*|x86_64-*-solaris*)
1461 LD="${LD-ld} -m elf_x86_64"
1462 ;;
1463 sparc*-*-solaris*)
1464 LD="${LD-ld} -m elf64_sparc"
1465 ;;
1466 esac
1467 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
1468 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
1469 LD=${LD-ld}_sol2
1470 fi
1471 ;;
1472 *)
1473 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
1474 LD="${LD-ld} -64"
1475 fi
1476 ;;
1477 esac
1478 ;;
1479 esac
1480 fi
1481 rm -rf conftest*
1482 ;;
1483 esac
1484
1485 need_locks=$enable_libtool_lock
1486 ])# _LT_ENABLE_LOCK
1487
1488
1489 # _LT_PROG_AR
1490 # -----------
1491 m4_defun([_LT_PROG_AR],
1492 [AC_CHECK_TOOLS(AR, [ar], false)
1493 : ${AR=ar}
1494 : ${AR_FLAGS=cru}
1495 _LT_DECL([], [AR], [1], [The archiver])
1496 _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive])
1497
1498 AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file],
1499 [lt_cv_ar_at_file=no
1500 AC_COMPILE_IFELSE([AC_LANG_PROGRAM],
1501 [echo conftest.$ac_objext > conftest.lst
1502 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD'
1503 AC_TRY_EVAL([lt_ar_try])
1504 if test 0 -eq "$ac_status"; then
1505 # Ensure the archiver fails upon bogus file names.
1506 rm -f conftest.$ac_objext libconftest.a
1507 AC_TRY_EVAL([lt_ar_try])
1508 if test 0 -ne "$ac_status"; then
1509 lt_cv_ar_at_file=@
1510 fi
1511 fi
1512 rm -f conftest.* libconftest.a
1513 ])
1514 ])
1515
1516 if test no = "$lt_cv_ar_at_file"; then
1517 archiver_list_spec=
1518 else
1519 archiver_list_spec=$lt_cv_ar_at_file
1520 fi
1521 _LT_DECL([], [archiver_list_spec], [1],
1522 [How to feed a file listing to the archiver])
1523 ])# _LT_PROG_AR
1524
1525
1526 # _LT_CMD_OLD_ARCHIVE
1527 # -------------------
1528 m4_defun([_LT_CMD_OLD_ARCHIVE],
1529 [_LT_PROG_AR
1530
1531 AC_CHECK_TOOL(STRIP, strip, :)
1532 test -z "$STRIP" && STRIP=:
1533 _LT_DECL([], [STRIP], [1], [A symbol stripping program])
1534
1535 AC_CHECK_TOOL(RANLIB, ranlib, :)
1536 test -z "$RANLIB" && RANLIB=:
1537 _LT_DECL([], [RANLIB], [1],
1538 [Commands used to install an old-style archive])
1539
1540 # Determine commands to create old-style static archives.
1541 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
1542 old_postinstall_cmds='chmod 644 $oldlib'
1543 old_postuninstall_cmds=
1544
1545 if test -n "$RANLIB"; then
1546 case $host_os in
1547 bitrig* | openbsd*)
1548 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
1549 ;;
1550 *)
1551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
1552 ;;
1553 esac
1554 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
1555 fi
1556
1557 case $host_os in
1558 darwin*)
1559 lock_old_archive_extraction=yes ;;
1560 *)
1561 lock_old_archive_extraction=no ;;
1562 esac
1563 _LT_DECL([], [old_postinstall_cmds], [2])
1564 _LT_DECL([], [old_postuninstall_cmds], [2])
1565 _LT_TAGDECL([], [old_archive_cmds], [2],
1566 [Commands used to build an old-style archive])
1567 _LT_DECL([], [lock_old_archive_extraction], [0],
1568 [Whether to use a lock for old archive extraction])
1569 ])# _LT_CMD_OLD_ARCHIVE
1570
1571
1572 # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1573 # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
1574 # ----------------------------------------------------------------
1575 # Check whether the given compiler option works
1576 AC_DEFUN([_LT_COMPILER_OPTION],
1577 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1578 m4_require([_LT_DECL_SED])dnl
1579 AC_CACHE_CHECK([$1], [$2],
1580 [$2=no
1581 m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
1582 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
1583 lt_compiler_flag="$3" ## exclude from sc_useless_quotes_in_assignment
1584 # Insert the option either (1) after the last *FLAGS variable, or
1585 # (2) before a word containing "conftest.", or (3) at the end.
1586 # Note that $ac_compile itself does not contain backslashes and begins
1587 # with a dollar sign (not a hyphen), so the echo should work correctly.
1588 # The option is referenced via a variable to avoid confusing sed.
1589 lt_compile=`echo "$ac_compile" | $SED \
1590 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
1591 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
1592 -e 's:$: $lt_compiler_flag:'`
1593 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
1594 (eval "$lt_compile" 2>conftest.err)
1595 ac_status=$?
1596 cat conftest.err >&AS_MESSAGE_LOG_FD
1597 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
1598 if (exit $ac_status) && test -s "$ac_outfile"; then
1599 # The compiler can only warn and ignore the option if not recognized
1600 # So say no if there are warnings other than the usual output.
1601 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
1602 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1603 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
1604 $2=yes
1605 fi
1606 fi
1607 $RM conftest*
1608 ])
1609
1610 if test yes = "[$]$2"; then
1611 m4_if([$5], , :, [$5])
1612 else
1613 m4_if([$6], , :, [$6])
1614 fi
1615 ])# _LT_COMPILER_OPTION
1616
1617 # Old name:
1618 AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
1619 dnl aclocal-1.4 backwards compatibility:
1620 dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
1621
1622
1623 # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
1624 # [ACTION-SUCCESS], [ACTION-FAILURE])
1625 # ----------------------------------------------------
1626 # Check whether the given linker option works
1627 AC_DEFUN([_LT_LINKER_OPTION],
1628 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
1629 m4_require([_LT_DECL_SED])dnl
1630 AC_CACHE_CHECK([$1], [$2],
1631 [$2=no
1632 save_LDFLAGS=$LDFLAGS
1633 LDFLAGS="$LDFLAGS $3"
1634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
1635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
1636 # The linker can only warn and ignore the option if not recognized
1637 # So say no if there are warnings
1638 if test -s conftest.err; then
1639 # Append any errors to the config.log.
1640 cat conftest.err 1>&AS_MESSAGE_LOG_FD
1641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
1642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
1643 if diff conftest.exp conftest.er2 >/dev/null; then
1644 $2=yes
1645 fi
1646 else
1647 $2=yes
1648 fi
1649 fi
1650 $RM -r conftest*
1651 LDFLAGS=$save_LDFLAGS
1652 ])
1653
1654 if test yes = "[$]$2"; then
1655 m4_if([$4], , :, [$4])
1656 else
1657 m4_if([$5], , :, [$5])
1658 fi
1659 ])# _LT_LINKER_OPTION
1660
1661 # Old name:
1662 AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
1663 dnl aclocal-1.4 backwards compatibility:
1664 dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
1665
1666
1667 # LT_CMD_MAX_LEN
1668 #---------------
1669 AC_DEFUN([LT_CMD_MAX_LEN],
1670 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
1671 # find the maximum length of command line arguments
1672 AC_MSG_CHECKING([the maximum length of command line arguments])
1673 AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
1674 i=0
1675 teststring=ABCD
1676
1677 case $build_os in
1678 msdosdjgpp*)
1679 # On DJGPP, this test can blow up pretty badly due to problems in libc
1680 # (any single argument exceeding 2000 bytes causes a buffer overrun
1681 # during glob expansion). Even if it were fixed, the result of this
1682 # check would be larger than it should be.
1683 lt_cv_sys_max_cmd_len=12288; # 12K is about right
1684 ;;
1685
1686 gnu*)
1687 # Under GNU Hurd, this test is not required because there is
1688 # no limit to the length of command line arguments.
1689 # Libtool will interpret -1 as no limit whatsoever
1690 lt_cv_sys_max_cmd_len=-1;
1691 ;;
1692
1693 cygwin* | mingw* | cegcc*)
1694 # On Win9x/ME, this test blows up -- it succeeds, but takes
1695 # about 5 minutes as the teststring grows exponentially.
1696 # Worse, since 9x/ME are not pre-emptively multitasking,
1697 # you end up with a "frozen" computer, even though with patience
1698 # the test eventually succeeds (with a max line length of 256k).
1699 # Instead, let's just punt: use the minimum linelength reported by
1700 # all of the supported platforms: 8192 (on NT/2K/XP).
1701 lt_cv_sys_max_cmd_len=8192;
1702 ;;
1703
1704 mint*)
1705 # On MiNT this can take a long time and run out of memory.
1706 lt_cv_sys_max_cmd_len=8192;
1707 ;;
1708
1709 amigaos*)
1710 # On AmigaOS with pdksh, this test takes hours, literally.
1711 # So we just punt and use a minimum line length of 8192.
1712 lt_cv_sys_max_cmd_len=8192;
1713 ;;
1714
1715 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
1716 # This has been around since 386BSD, at least. Likely further.
1717 if test -x /sbin/sysctl; then
1718 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
1719 elif test -x /usr/sbin/sysctl; then
1720 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
1721 else
1722 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
1723 fi
1724 # And add a safety zone
1725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1726 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1727 ;;
1728
1729 interix*)
1730 # We know the value 262144 and hardcode it with a safety zone (like BSD)
1731 lt_cv_sys_max_cmd_len=196608
1732 ;;
1733
1734 os2*)
1735 # The test takes a long time on OS/2.
1736 lt_cv_sys_max_cmd_len=8192
1737 ;;
1738
1739 osf*)
1740 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
1741 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
1742 # nice to cause kernel panics so lets avoid the loop below.
1743 # First set a reasonable default.
1744 lt_cv_sys_max_cmd_len=16384
1745 #
1746 if test -x /sbin/sysconfig; then
1747 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
1748 *1*) lt_cv_sys_max_cmd_len=-1 ;;
1749 esac
1750 fi
1751 ;;
1752 sco3.2v5*)
1753 lt_cv_sys_max_cmd_len=102400
1754 ;;
1755 sysv5* | sco5v6* | sysv4.2uw2*)
1756 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
1757 if test -n "$kargmax"; then
1758 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
1759 else
1760 lt_cv_sys_max_cmd_len=32768
1761 fi
1762 ;;
1763 *)
1764 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
1765 if test -n "$lt_cv_sys_max_cmd_len" && \
1766 test undefined != "$lt_cv_sys_max_cmd_len"; then
1767 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
1768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
1769 else
1770 # Make teststring a little bigger before we do anything with it.
1771 # a 1K string should be a reasonable start.
1772 for i in 1 2 3 4 5 6 7 8; do
1773 teststring=$teststring$teststring
1774 done
1775 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
1776 # If test is not a shell built-in, we'll probably end up computing a
1777 # maximum length that is only half of the actual maximum length, but
1778 # we can't tell.
1779 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
1780 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
1781 test 17 != "$i" # 1/2 MB should be enough
1782 do
1783 i=`expr $i + 1`
1784 teststring=$teststring$teststring
1785 done
1786 # Only check the string length outside the loop.
1787 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
1788 teststring=
1789 # Add a significant safety factor because C++ compilers can tack on
1790 # massive amounts of additional arguments before passing them to the
1791 # linker. It appears as though 1/2 is a usable value.
1792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
1793 fi
1794 ;;
1795 esac
1796 ])
1797 if test -n "$lt_cv_sys_max_cmd_len"; then
1798 AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
1799 else
1800 AC_MSG_RESULT(none)
1801 fi
1802 max_cmd_len=$lt_cv_sys_max_cmd_len
1803 _LT_DECL([], [max_cmd_len], [0],
1804 [What is the maximum length of a command?])
1805 ])# LT_CMD_MAX_LEN
1806
1807 # Old name:
1808 AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
1809 dnl aclocal-1.4 backwards compatibility:
1810 dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
1811
1812
1813 # _LT_HEADER_DLFCN
1814 # ----------------
1815 m4_defun([_LT_HEADER_DLFCN],
1816 [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
1817 ])# _LT_HEADER_DLFCN
1818
1819
1820 # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
1821 # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
1822 # ----------------------------------------------------------------
1823 m4_defun([_LT_TRY_DLOPEN_SELF],
1824 [m4_require([_LT_HEADER_DLFCN])dnl
1825 if test yes = "$cross_compiling"; then :
1826 [$4]
1827 else
1828 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1829 lt_status=$lt_dlunknown
1830 cat > conftest.$ac_ext <<_LT_EOF
1831 [#line $LINENO "configure"
1832 #include "confdefs.h"
1833
1834 #if HAVE_DLFCN_H
1835 #include <dlfcn.h>
1836 #endif
1837
1838 #include <stdio.h>
1839
1840 #ifdef RTLD_GLOBAL
1841 # define LT_DLGLOBAL RTLD_GLOBAL
1842 #else
1843 # ifdef DL_GLOBAL
1844 # define LT_DLGLOBAL DL_GLOBAL
1845 # else
1846 # define LT_DLGLOBAL 0
1847 # endif
1848 #endif
1849
1850 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
1851 find out it does not work in some platform. */
1852 #ifndef LT_DLLAZY_OR_NOW
1853 # ifdef RTLD_LAZY
1854 # define LT_DLLAZY_OR_NOW RTLD_LAZY
1855 # else
1856 # ifdef DL_LAZY
1857 # define LT_DLLAZY_OR_NOW DL_LAZY
1858 # else
1859 # ifdef RTLD_NOW
1860 # define LT_DLLAZY_OR_NOW RTLD_NOW
1861 # else
1862 # ifdef DL_NOW
1863 # define LT_DLLAZY_OR_NOW DL_NOW
1864 # else
1865 # define LT_DLLAZY_OR_NOW 0
1866 # endif
1867 # endif
1868 # endif
1869 # endif
1870 #endif
1871
1872 /* When -fvisibility=hidden is used, assume the code has been annotated
1873 correspondingly for the symbols needed. */
1874 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
1875 int fnord () __attribute__((visibility("default")));
1876 #endif
1877
1878 int fnord () { return 42; }
1879 int main ()
1880 {
1881 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
1882 int status = $lt_dlunknown;
1883
1884 if (self)
1885 {
1886 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
1887 else
1888 {
1889 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
1890 else puts (dlerror ());
1891 }
1892 /* dlclose (self); */
1893 }
1894 else
1895 puts (dlerror ());
1896
1897 return status;
1898 }]
1899 _LT_EOF
1900 if AC_TRY_EVAL(ac_link) && test -s "conftest$ac_exeext" 2>/dev/null; then
1901 (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
1902 lt_status=$?
1903 case x$lt_status in
1904 x$lt_dlno_uscore) $1 ;;
1905 x$lt_dlneed_uscore) $2 ;;
1906 x$lt_dlunknown|x*) $3 ;;
1907 esac
1908 else :
1909 # compilation failed
1910 $3
1911 fi
1912 fi
1913 rm -fr conftest*
1914 ])# _LT_TRY_DLOPEN_SELF
1915
1916
1917 # LT_SYS_DLOPEN_SELF
1918 # ------------------
1919 AC_DEFUN([LT_SYS_DLOPEN_SELF],
1920 [m4_require([_LT_HEADER_DLFCN])dnl
1921 if test yes != "$enable_dlopen"; then
1922 enable_dlopen=unknown
1923 enable_dlopen_self=unknown
1924 enable_dlopen_self_static=unknown
1925 else
1926 lt_cv_dlopen=no
1927 lt_cv_dlopen_libs=
1928
1929 case $host_os in
1930 beos*)
1931 lt_cv_dlopen=load_add_on
1932 lt_cv_dlopen_libs=
1933 lt_cv_dlopen_self=yes
1934 ;;
1935
1936 mingw* | pw32* | cegcc*)
1937 lt_cv_dlopen=LoadLibrary
1938 lt_cv_dlopen_libs=
1939 ;;
1940
1941 cygwin*)
1942 lt_cv_dlopen=dlopen
1943 lt_cv_dlopen_libs=
1944 ;;
1945
1946 darwin*)
1947 # if libdl is installed we need to link against it
1948 AC_CHECK_LIB([dl], [dlopen],
1949 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],[
1950 lt_cv_dlopen=dyld
1951 lt_cv_dlopen_libs=
1952 lt_cv_dlopen_self=yes
1953 ])
1954 ;;
1955
1956 tpf*)
1957 # Don't try to run any link tests for TPF. We know it's impossible
1958 # because TPF is a cross-compiler, and we know how we open DSOs.
1959 lt_cv_dlopen=dlopen
1960 lt_cv_dlopen_libs=
1961 lt_cv_dlopen_self=no
1962 ;;
1963
1964 *)
1965 AC_CHECK_FUNC([shl_load],
1966 [lt_cv_dlopen=shl_load],
1967 [AC_CHECK_LIB([dld], [shl_load],
1968 [lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld],
1969 [AC_CHECK_FUNC([dlopen],
1970 [lt_cv_dlopen=dlopen],
1971 [AC_CHECK_LIB([dl], [dlopen],
1972 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl],
1973 [AC_CHECK_LIB([svld], [dlopen],
1974 [lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld],
1975 [AC_CHECK_LIB([dld], [dld_link],
1976 [lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld])
1977 ])
1978 ])
1979 ])
1980 ])
1981 ])
1982 ;;
1983 esac
1984
1985 if test no = "$lt_cv_dlopen"; then
1986 enable_dlopen=no
1987 else
1988 enable_dlopen=yes
1989 fi
1990
1991 case $lt_cv_dlopen in
1992 dlopen)
1993 save_CPPFLAGS=$CPPFLAGS
1994 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
1995
1996 save_LDFLAGS=$LDFLAGS
1997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
1998
1999 save_LIBS=$LIBS
2000 LIBS="$lt_cv_dlopen_libs $LIBS"
2001
2002 AC_CACHE_CHECK([whether a program can dlopen itself],
2003 lt_cv_dlopen_self, [dnl
2004 _LT_TRY_DLOPEN_SELF(
2005 lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
2006 lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
2007 ])
2008
2009 if test yes = "$lt_cv_dlopen_self"; then
2010 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
2011 AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
2012 lt_cv_dlopen_self_static, [dnl
2013 _LT_TRY_DLOPEN_SELF(
2014 lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
2015 lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
2016 ])
2017 fi
2018
2019 CPPFLAGS=$save_CPPFLAGS
2020 LDFLAGS=$save_LDFLAGS
2021 LIBS=$save_LIBS
2022 ;;
2023 esac
2024
2025 case $lt_cv_dlopen_self in
2026 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
2027 *) enable_dlopen_self=unknown ;;
2028 esac
2029
2030 case $lt_cv_dlopen_self_static in
2031 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
2032 *) enable_dlopen_self_static=unknown ;;
2033 esac
2034 fi
2035 _LT_DECL([dlopen_support], [enable_dlopen], [0],
2036 [Whether dlopen is supported])
2037 _LT_DECL([dlopen_self], [enable_dlopen_self], [0],
2038 [Whether dlopen of programs is supported])
2039 _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
2040 [Whether dlopen of statically linked programs is supported])
2041 ])# LT_SYS_DLOPEN_SELF
2042
2043 # Old name:
2044 AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
2045 dnl aclocal-1.4 backwards compatibility:
2046 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
2047
2048
2049 # _LT_COMPILER_C_O([TAGNAME])
2050 # ---------------------------
2051 # Check to see if options -c and -o are simultaneously supported by compiler.
2052 # This macro does not hard code the compiler like AC_PROG_CC_C_O.
2053 m4_defun([_LT_COMPILER_C_O],
2054 [m4_require([_LT_DECL_SED])dnl
2055 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2056 m4_require([_LT_TAG_COMPILER])dnl
2057 AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
2058 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
2059 [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
2060 $RM -r conftest 2>/dev/null
2061 mkdir conftest
2062 cd conftest
2063 mkdir out
2064 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
2065
2066 lt_compiler_flag="-o out/conftest2.$ac_objext"
2067 # Insert the option either (1) after the last *FLAGS variable, or
2068 # (2) before a word containing "conftest.", or (3) at the end.
2069 # Note that $ac_compile itself does not contain backslashes and begins
2070 # with a dollar sign (not a hyphen), so the echo should work correctly.
2071 lt_compile=`echo "$ac_compile" | $SED \
2072 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
2073 -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
2074 -e 's:$: $lt_compiler_flag:'`
2075 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
2076 (eval "$lt_compile" 2>out/conftest.err)
2077 ac_status=$?
2078 cat out/conftest.err >&AS_MESSAGE_LOG_FD
2079 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
2080 if (exit $ac_status) && test -s out/conftest2.$ac_objext
2081 then
2082 # The compiler can only warn and ignore the option if not recognized
2083 # So say no if there are warnings
2084 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
2085 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
2086 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
2087 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
2088 fi
2089 fi
2090 chmod u+w . 2>&AS_MESSAGE_LOG_FD
2091 $RM conftest*
2092 # SGI C++ compiler will create directory out/ii_files/ for
2093 # template instantiation
2094 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
2095 $RM out/* && rmdir out
2096 cd ..
2097 $RM -r conftest
2098 $RM conftest*
2099 ])
2100 _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
2101 [Does compiler simultaneously support -c and -o options?])
2102 ])# _LT_COMPILER_C_O
2103
2104
2105 # _LT_COMPILER_FILE_LOCKS([TAGNAME])
2106 # ----------------------------------
2107 # Check to see if we can do hard links to lock some files if needed
2108 m4_defun([_LT_COMPILER_FILE_LOCKS],
2109 [m4_require([_LT_ENABLE_LOCK])dnl
2110 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2111 _LT_COMPILER_C_O([$1])
2112
2113 hard_links=nottested
2114 if test no = "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" && test no != "$need_locks"; then
2115 # do not overwrite the value of need_locks provided by the user
2116 AC_MSG_CHECKING([if we can lock with hard links])
2117 hard_links=yes
2118 $RM conftest*
2119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2120 touch conftest.a
2121 ln conftest.a conftest.b 2>&5 || hard_links=no
2122 ln conftest.a conftest.b 2>/dev/null && hard_links=no
2123 AC_MSG_RESULT([$hard_links])
2124 if test no = "$hard_links"; then
2125 AC_MSG_WARN(['$CC' does not support '-c -o', so 'make -j' may be unsafe])
2126 need_locks=warn
2127 fi
2128 else
2129 need_locks=no
2130 fi
2131 _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
2132 ])# _LT_COMPILER_FILE_LOCKS
2133
2134
2135 # _LT_CHECK_OBJDIR
2136 # ----------------
2137 m4_defun([_LT_CHECK_OBJDIR],
2138 [AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
2139 [rm -f .libs 2>/dev/null
2140 mkdir .libs 2>/dev/null
2141 if test -d .libs; then
2142 lt_cv_objdir=.libs
2143 else
2144 # MS-DOS does not allow filenames that begin with a dot.
2145 lt_cv_objdir=_libs
2146 fi
2147 rmdir .libs 2>/dev/null])
2148 objdir=$lt_cv_objdir
2149 _LT_DECL([], [objdir], [0],
2150 [The name of the directory that contains temporary libtool files])dnl
2151 m4_pattern_allow([LT_OBJDIR])dnl
2152 AC_DEFINE_UNQUOTED([LT_OBJDIR], "$lt_cv_objdir/",
2153 [Define to the sub-directory where libtool stores uninstalled libraries.])
2154 ])# _LT_CHECK_OBJDIR
2155
2156
2157 # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
2158 # --------------------------------------
2159 # Check hardcoding attributes.
2160 m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
2161 [AC_MSG_CHECKING([how to hardcode library paths into programs])
2162 _LT_TAGVAR(hardcode_action, $1)=
2163 if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
2164 test -n "$_LT_TAGVAR(runpath_var, $1)" ||
2165 test yes = "$_LT_TAGVAR(hardcode_automatic, $1)"; then
2166
2167 # We can hardcode non-existent directories.
2168 if test no != "$_LT_TAGVAR(hardcode_direct, $1)" &&
2169 # If the only mechanism to avoid hardcoding is shlibpath_var, we
2170 # have to relink, otherwise we might link with an installed library
2171 # when we should be linking with a yet-to-be-installed one
2172 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" &&
2173 test no != "$_LT_TAGVAR(hardcode_minus_L, $1)"; then
2174 # Linking always hardcodes the temporary library directory.
2175 _LT_TAGVAR(hardcode_action, $1)=relink
2176 else
2177 # We can link without hardcoding, and we can hardcode nonexisting dirs.
2178 _LT_TAGVAR(hardcode_action, $1)=immediate
2179 fi
2180 else
2181 # We cannot hardcode anything, or else we can only hardcode existing
2182 # directories.
2183 _LT_TAGVAR(hardcode_action, $1)=unsupported
2184 fi
2185 AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
2186
2187 if test relink = "$_LT_TAGVAR(hardcode_action, $1)" ||
2188 test yes = "$_LT_TAGVAR(inherit_rpath, $1)"; then
2189 # Fast installation is not supported
2190 enable_fast_install=no
2191 elif test yes = "$shlibpath_overrides_runpath" ||
2192 test no = "$enable_shared"; then
2193 # Fast installation is not necessary
2194 enable_fast_install=needless
2195 fi
2196 _LT_TAGDECL([], [hardcode_action], [0],
2197 [How to hardcode a shared library path into an executable])
2198 ])# _LT_LINKER_HARDCODE_LIBPATH
2199
2200
2201 # _LT_CMD_STRIPLIB
2202 # ----------------
2203 m4_defun([_LT_CMD_STRIPLIB],
2204 [m4_require([_LT_DECL_EGREP])
2205 striplib=
2206 old_striplib=
2207 AC_MSG_CHECKING([whether stripping libraries is possible])
2208 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
2209 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
2210 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
2211 AC_MSG_RESULT([yes])
2212 else
2213 # FIXME - insert some real tests, host_os isn't really good enough
2214 case $host_os in
2215 darwin*)
2216 if test -n "$STRIP"; then
2217 striplib="$STRIP -x"
2218 old_striplib="$STRIP -S"
2219 AC_MSG_RESULT([yes])
2220 else
2221 AC_MSG_RESULT([no])
2222 fi
2223 ;;
2224 *)
2225 AC_MSG_RESULT([no])
2226 ;;
2227 esac
2228 fi
2229 _LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
2230 _LT_DECL([], [striplib], [1])
2231 ])# _LT_CMD_STRIPLIB
2232
2233
2234 # _LT_PREPARE_MUNGE_PATH_LIST
2235 # ---------------------------
2236 # Make sure func_munge_path_list() is defined correctly.
2237 m4_defun([_LT_PREPARE_MUNGE_PATH_LIST],
2238 [[# func_munge_path_list VARIABLE PATH
2239 # -----------------------------------
2240 # VARIABLE is name of variable containing _space_ separated list of
2241 # directories to be munged by the contents of PATH, which is string
2242 # having a format:
2243 # "DIR[:DIR]:"
2244 # string "DIR[ DIR]" will be prepended to VARIABLE
2245 # ":DIR[:DIR]"
2246 # string "DIR[ DIR]" will be appended to VARIABLE
2247 # "DIRP[:DIRP]::[DIRA:]DIRA"
2248 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
2249 # "DIRA[ DIRA]" will be appended to VARIABLE
2250 # "DIR[:DIR]"
2251 # VARIABLE will be replaced by "DIR[ DIR]"
2252 func_munge_path_list ()
2253 {
2254 case x@S|@2 in
2255 x)
2256 ;;
2257 *:)
2258 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'` \@S|@@S|@1\"
2259 ;;
2260 x:*)
2261 eval @S|@1=\"\@S|@@S|@1 `$ECHO @S|@2 | $SED 's/:/ /g'`\"
2262 ;;
2263 *::*)
2264 eval @S|@1=\"\@S|@@S|@1\ `$ECHO @S|@2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
2265 eval @S|@1=\"`$ECHO @S|@2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \@S|@@S|@1\"
2266 ;;
2267 *)
2268 eval @S|@1=\"`$ECHO @S|@2 | $SED 's/:/ /g'`\"
2269 ;;
2270 esac
2271 }
2272 ]])# _LT_PREPARE_PATH_LIST
2273
2274
2275 # _LT_SYS_DYNAMIC_LINKER([TAG])
2276 # -----------------------------
2277 # PORTME Fill in your ld.so characteristics
2278 m4_defun([_LT_SYS_DYNAMIC_LINKER],
2279 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
2280 m4_require([_LT_DECL_EGREP])dnl
2281 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
2282 m4_require([_LT_DECL_OBJDUMP])dnl
2283 m4_require([_LT_DECL_SED])dnl
2284 m4_require([_LT_CHECK_SHELL_FEATURES])dnl
2285 m4_require([_LT_PREPARE_MUNGE_PATH_LIST])dnl
2286 AC_MSG_CHECKING([dynamic linker characteristics])
2287 m4_if([$1],
2288 [], [
2289 if test yes = "$GCC"; then
2290 case $host_os in
2291 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
2292 *) lt_awk_arg='/^libraries:/' ;;
2293 esac
2294 case $host_os in
2295 mingw* | cegcc*) lt_sed_strip_eq='s|=\([[A-Za-z]]:\)|\1|g' ;;
2296 *) lt_sed_strip_eq='s|=/|/|g' ;;
2297 esac
2298 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
2299 case $lt_search_path_spec in
2300 *\;*)
2301 # if the path contains ";" then we assume it to be the separator
2302 # otherwise default to the standard path separator (i.e. ":") - it is
2303 # assumed that no part of a normal pathname contains ";" but that should
2304 # okay in the real world where ";" in dirpaths is itself problematic.
2305 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
2306 ;;
2307 *)
2308 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
2309 ;;
2310 esac
2311 # Ok, now we have the path, separated by spaces, we can step through it
2312 # and add multilib dir if necessary...
2313 lt_tmp_lt_search_path_spec=
2314 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
2315 # ...but if some path component already ends with the multilib dir we assume
2316 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
2317 case "$lt_multi_os_dir; $lt_search_path_spec " in
2318 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
2319 lt_multi_os_dir=
2320 ;;
2321 esac
2322 for lt_sys_path in $lt_search_path_spec; do
2323 if test -d "$lt_sys_path$lt_multi_os_dir"; then
2324 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
2325 elif test -n "$lt_multi_os_dir"; then
2326 test -d "$lt_sys_path" && \
2327 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
2328 fi
2329 done
2330 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
2331 BEGIN {RS = " "; FS = "/|\n";} {
2332 lt_foo = "";
2333 lt_count = 0;
2334 for (lt_i = NF; lt_i > 0; lt_i--) {
2335 if ($lt_i != "" && $lt_i != ".") {
2336 if ($lt_i == "..") {
2337 lt_count++;
2338 } else {
2339 if (lt_count == 0) {
2340 lt_foo = "/" $lt_i lt_foo;
2341 } else {
2342 lt_count--;
2343 }
2344 }
2345 }
2346 }
2347 if (lt_foo != "") { lt_freq[[lt_foo]]++; }
2348 if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
2349 }'`
2350 # AWK program above erroneously prepends '/' to C:/dos/paths
2351 # for these hosts.
2352 case $host_os in
2353 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
2354 $SED 's|/\([[A-Za-z]]:\)|\1|g'` ;;
2355 esac
2356 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
2357 else
2358 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2359 fi])
2360 library_names_spec=
2361 libname_spec='lib$name'
2362 soname_spec=
2363 shrext_cmds=.so
2364 postinstall_cmds=
2365 postuninstall_cmds=
2366 finish_cmds=
2367 finish_eval=
2368 shlibpath_var=
2369 shlibpath_overrides_runpath=unknown
2370 version_type=none
2371 dynamic_linker="$host_os ld.so"
2372 sys_lib_dlsearch_path_spec="/lib /usr/lib"
2373 need_lib_prefix=unknown
2374 hardcode_into_libs=no
2375
2376 # when you set need_version to no, make sure it does not cause -set_version
2377 # flags to be left without arguments
2378 need_version=unknown
2379
2380 AC_ARG_VAR([LT_SYS_LIBRARY_PATH],
2381 [User-defined run-time library search path.])
2382
2383 case $host_os in
2384 aix3*)
2385 version_type=linux # correct to gnu/linux during the next big refactor
2386 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
2387 shlibpath_var=LIBPATH
2388
2389 # AIX 3 has no versioning support, so we append a major version to the name.
2390 soname_spec='$libname$release$shared_ext$major'
2391 ;;
2392
2393 aix[[4-9]]*)
2394 version_type=linux # correct to gnu/linux during the next big refactor
2395 need_lib_prefix=no
2396 need_version=no
2397 hardcode_into_libs=yes
2398 if test ia64 = "$host_cpu"; then
2399 # AIX 5 supports IA64
2400 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
2401 shlibpath_var=LD_LIBRARY_PATH
2402 else
2403 # With GCC up to 2.95.x, collect2 would create an import file
2404 # for dependence libraries. The import file would start with
2405 # the line '#! .'. This would cause the generated library to
2406 # depend on '.', always an invalid library. This was fixed in
2407 # development snapshots of GCC prior to 3.0.
2408 case $host_os in
2409 aix4 | aix4.[[01]] | aix4.[[01]].*)
2410 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
2411 echo ' yes '
2412 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
2413 :
2414 else
2415 can_build_shared=no
2416 fi
2417 ;;
2418 esac
2419 # Using Import Files as archive members, it is possible to support
2420 # filename-based versioning of shared library archives on AIX. While
2421 # this would work for both with and without runtime linking, it will
2422 # prevent static linking of such archives. So we do filename-based
2423 # shared library versioning with .so extension only, which is used
2424 # when both runtime linking and shared linking is enabled.
2425 # Unfortunately, runtime linking may impact performance, so we do
2426 # not want this to be the default eventually. Also, we use the
2427 # versioned .so libs for executables only if there is the -brtl
2428 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
2429 # To allow for filename-based versioning support, we need to create
2430 # libNAME.so.V as an archive file, containing:
2431 # *) an Import File, referring to the versioned filename of the
2432 # archive as well as the shared archive member, telling the
2433 # bitwidth (32 or 64) of that shared object, and providing the
2434 # list of exported symbols of that shared object, eventually
2435 # decorated with the 'weak' keyword
2436 # *) the shared object with the F_LOADONLY flag set, to really avoid
2437 # it being seen by the linker.
2438 # At run time we better use the real file rather than another symlink,
2439 # but for link time we create the symlink libNAME.so -> libNAME.so.V
2440
2441 case $with_aix_soname,$aix_use_runtimelinking in
2442 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
2443 # soname into executable. Probably we can add versioning support to
2444 # collect2, so additional links can be useful in future.
2445 aix,yes) # traditional libtool
2446 dynamic_linker='AIX unversionable lib.so'
2447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
2448 # instead of lib<name>.a to let people know that these are not
2449 # typical AIX shared libraries.
2450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2451 ;;
2452 aix,no) # traditional AIX only
2453 dynamic_linker='AIX lib.a[(]lib.so.V[)]'
2454 # We preserve .a as extension for shared libraries through AIX4.2
2455 # and later when we are not doing run time linking.
2456 library_names_spec='$libname$release.a $libname.a'
2457 soname_spec='$libname$release$shared_ext$major'
2458 ;;
2459 svr4,*) # full svr4 only
2460 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)]"
2461 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2462 # We do not specify a path in Import Files, so LIBPATH fires.
2463 shlibpath_overrides_runpath=yes
2464 ;;
2465 *,yes) # both, prefer svr4
2466 dynamic_linker="AIX lib.so.V[(]$shared_archive_member_spec.o[)], lib.a[(]lib.so.V[)]"
2467 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
2468 # unpreferred sharedlib libNAME.a needs extra handling
2469 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
2470 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
2471 # We do not specify a path in Import Files, so LIBPATH fires.
2472 shlibpath_overrides_runpath=yes
2473 ;;
2474 *,no) # both, prefer aix
2475 dynamic_linker="AIX lib.a[(]lib.so.V[)], lib.so.V[(]$shared_archive_member_spec.o[)]"
2476 library_names_spec='$libname$release.a $libname.a'
2477 soname_spec='$libname$release$shared_ext$major'
2478 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
2479 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
2480 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
2481 ;;
2482 esac
2483 shlibpath_var=LIBPATH
2484 fi
2485 ;;
2486
2487 amigaos*)
2488 case $host_cpu in
2489 powerpc)
2490 # Since July 2007 AmigaOS4 officially supports .so libraries.
2491 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
2492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2493 ;;
2494 m68k)
2495 library_names_spec='$libname.ixlibrary $libname.a'
2496 # Create ${libname}_ixlibrary.a entries in /sys/libs.
2497 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; $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'
2498 ;;
2499 esac
2500 ;;
2501
2502 beos*)
2503 library_names_spec='$libname$shared_ext'
2504 dynamic_linker="$host_os ld.so"
2505 shlibpath_var=LIBRARY_PATH
2506 ;;
2507
2508 bsdi[[45]]*)
2509 version_type=linux # correct to gnu/linux during the next big refactor
2510 need_version=no
2511 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2512 soname_spec='$libname$release$shared_ext$major'
2513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
2514 shlibpath_var=LD_LIBRARY_PATH
2515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
2516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
2517 # the default ld.so.conf also contains /usr/contrib/lib and
2518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
2519 # libtool to hard-code these into programs
2520 ;;
2521
2522 cygwin* | mingw* | pw32* | cegcc*)
2523 version_type=windows
2524 shrext_cmds=.dll
2525 need_version=no
2526 need_lib_prefix=no
2527
2528 case $GCC,$cc_basename in
2529 yes,*)
2530 # gcc
2531 library_names_spec='$libname.dll.a'
2532 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2533 postinstall_cmds='base_file=`basename \$file`~
2534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2535 dldir=$destdir/`dirname \$dlpath`~
2536 test -d \$dldir || mkdir -p \$dldir~
2537 $install_prog $dir/$dlname \$dldir/$dlname~
2538 chmod a+x \$dldir/$dlname~
2539 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2540 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2541 fi'
2542 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2543 dlpath=$dir/\$dldll~
2544 $RM \$dlpath'
2545 shlibpath_overrides_runpath=yes
2546
2547 case $host_os in
2548 cygwin*)
2549 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
2550 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2551 m4_if([$1], [],[
2552 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"])
2553 ;;
2554 mingw* | cegcc*)
2555 # MinGW DLLs use traditional 'lib' prefix
2556 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2557 ;;
2558 pw32*)
2559 # pw32 DLLs use 'pw' prefix rather than 'lib'
2560 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2561 ;;
2562 esac
2563 dynamic_linker='Win32 ld.exe'
2564 ;;
2565
2566 *,cl*)
2567 # Native MSVC
2568 libname_spec='$name'
2569 soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext'
2570 library_names_spec='$libname.dll.lib'
2571
2572 case $build_os in
2573 mingw*)
2574 sys_lib_search_path_spec=
2575 lt_save_ifs=$IFS
2576 IFS=';'
2577 for lt_path in $LIB
2578 do
2579 IFS=$lt_save_ifs
2580 # Let DOS variable expansion print the short 8.3 style file name.
2581 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
2582 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
2583 done
2584 IFS=$lt_save_ifs
2585 # Convert to MSYS style.
2586 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'`
2587 ;;
2588 cygwin*)
2589 # Convert to unix form, then to dos form, then back to unix form
2590 # but this time dos style (no spaces!) so that the unix form looks
2591 # like /cygdrive/c/PROGRA~1:/cygdr...
2592 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
2593 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
2594 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2595 ;;
2596 *)
2597 sys_lib_search_path_spec=$LIB
2598 if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
2599 # It is most probably a Windows format PATH.
2600 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
2601 else
2602 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
2603 fi
2604 # FIXME: find the short name or the path components, as spaces are
2605 # common. (e.g. "Program Files" -> "PROGRA~1")
2606 ;;
2607 esac
2608
2609 # DLL is installed to $(libdir)/../bin by postinstall_cmds
2610 postinstall_cmds='base_file=`basename \$file`~
2611 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
2612 dldir=$destdir/`dirname \$dlpath`~
2613 test -d \$dldir || mkdir -p \$dldir~
2614 $install_prog $dir/$dlname \$dldir/$dlname'
2615 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
2616 dlpath=$dir/\$dldll~
2617 $RM \$dlpath'
2618 shlibpath_overrides_runpath=yes
2619 dynamic_linker='Win32 link.exe'
2620 ;;
2621
2622 *)
2623 # Assume MSVC wrapper
2624 library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib'
2625 dynamic_linker='Win32 ld.exe'
2626 ;;
2627 esac
2628 # FIXME: first we should search . and the directory the executable is in
2629 shlibpath_var=PATH
2630 ;;
2631
2632 darwin* | rhapsody*)
2633 dynamic_linker="$host_os dyld"
2634 version_type=darwin
2635 need_lib_prefix=no
2636 need_version=no
2637 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
2638 soname_spec='$libname$release$major$shared_ext'
2639 shlibpath_overrides_runpath=yes
2640 shlibpath_var=DYLD_LIBRARY_PATH
2641 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
2642 m4_if([$1], [],[
2643 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
2644 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
2645 ;;
2646
2647 dgux*)
2648 version_type=linux # correct to gnu/linux during the next big refactor
2649 need_lib_prefix=no
2650 need_version=no
2651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2652 soname_spec='$libname$release$shared_ext$major'
2653 shlibpath_var=LD_LIBRARY_PATH
2654 ;;
2655
2656 freebsd* | dragonfly*)
2657 # DragonFly does not have aout. When/if they implement a new
2658 # versioning mechanism, adjust this.
2659 if test -x /usr/bin/objformat; then
2660 objformat=`/usr/bin/objformat`
2661 else
2662 case $host_os in
2663 freebsd[[23]].*) objformat=aout ;;
2664 *) objformat=elf ;;
2665 esac
2666 fi
2667 version_type=freebsd-$objformat
2668 case $version_type in
2669 freebsd-elf*)
2670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2671 soname_spec='$libname$release$shared_ext$major'
2672 need_version=no
2673 need_lib_prefix=no
2674 ;;
2675 freebsd-*)
2676 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2677 need_version=yes
2678 ;;
2679 esac
2680 shlibpath_var=LD_LIBRARY_PATH
2681 case $host_os in
2682 freebsd2.*)
2683 shlibpath_overrides_runpath=yes
2684 ;;
2685 freebsd3.[[01]]* | freebsdelf3.[[01]]*)
2686 shlibpath_overrides_runpath=yes
2687 hardcode_into_libs=yes
2688 ;;
2689 freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
2690 freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
2691 shlibpath_overrides_runpath=no
2692 hardcode_into_libs=yes
2693 ;;
2694 *) # from 4.6 on, and DragonFly
2695 shlibpath_overrides_runpath=yes
2696 hardcode_into_libs=yes
2697 ;;
2698 esac
2699 ;;
2700
2701 haiku*)
2702 version_type=linux # correct to gnu/linux during the next big refactor
2703 need_lib_prefix=no
2704 need_version=no
2705 dynamic_linker="$host_os runtime_loader"
2706 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2707 soname_spec='$libname$release$shared_ext$major'
2708 shlibpath_var=LIBRARY_PATH
2709 shlibpath_overrides_runpath=no
2710 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
2711 hardcode_into_libs=yes
2712 ;;
2713
2714 hpux9* | hpux10* | hpux11*)
2715 # Give a soname corresponding to the major version so that dld.sl refuses to
2716 # link against other versions.
2717 version_type=sunos
2718 need_lib_prefix=no
2719 need_version=no
2720 case $host_cpu in
2721 ia64*)
2722 shrext_cmds='.so'
2723 hardcode_into_libs=yes
2724 dynamic_linker="$host_os dld.so"
2725 shlibpath_var=LD_LIBRARY_PATH
2726 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2727 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2728 soname_spec='$libname$release$shared_ext$major'
2729 if test 32 = "$HPUX_IA64_MODE"; then
2730 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
2731 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
2732 else
2733 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
2734 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
2735 fi
2736 ;;
2737 hppa*64*)
2738 shrext_cmds='.sl'
2739 hardcode_into_libs=yes
2740 dynamic_linker="$host_os dld.sl"
2741 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
2742 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
2743 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2744 soname_spec='$libname$release$shared_ext$major'
2745 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
2746 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2747 ;;
2748 *)
2749 shrext_cmds='.sl'
2750 dynamic_linker="$host_os dld.sl"
2751 shlibpath_var=SHLIB_PATH
2752 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
2753 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2754 soname_spec='$libname$release$shared_ext$major'
2755 ;;
2756 esac
2757 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
2758 postinstall_cmds='chmod 555 $lib'
2759 # or fails outright, so override atomically:
2760 install_override_mode=555
2761 ;;
2762
2763 interix[[3-9]]*)
2764 version_type=linux # correct to gnu/linux during the next big refactor
2765 need_lib_prefix=no
2766 need_version=no
2767 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2768 soname_spec='$libname$release$shared_ext$major'
2769 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
2770 shlibpath_var=LD_LIBRARY_PATH
2771 shlibpath_overrides_runpath=no
2772 hardcode_into_libs=yes
2773 ;;
2774
2775 irix5* | irix6* | nonstopux*)
2776 case $host_os in
2777 nonstopux*) version_type=nonstopux ;;
2778 *)
2779 if test yes = "$lt_cv_prog_gnu_ld"; then
2780 version_type=linux # correct to gnu/linux during the next big refactor
2781 else
2782 version_type=irix
2783 fi ;;
2784 esac
2785 need_lib_prefix=no
2786 need_version=no
2787 soname_spec='$libname$release$shared_ext$major'
2788 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
2789 case $host_os in
2790 irix5* | nonstopux*)
2791 libsuff= shlibsuff=
2792 ;;
2793 *)
2794 case $LD in # libtool.m4 will add one of these switches to LD
2795 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
2796 libsuff= shlibsuff= libmagic=32-bit;;
2797 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
2798 libsuff=32 shlibsuff=N32 libmagic=N32;;
2799 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
2800 libsuff=64 shlibsuff=64 libmagic=64-bit;;
2801 *) libsuff= shlibsuff= libmagic=never-match;;
2802 esac
2803 ;;
2804 esac
2805 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
2806 shlibpath_overrides_runpath=no
2807 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
2808 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
2809 hardcode_into_libs=yes
2810 ;;
2811
2812 # No shared lib support for Linux oldld, aout, or coff.
2813 linux*oldld* | linux*aout* | linux*coff*)
2814 dynamic_linker=no
2815 ;;
2816
2817 linux*android*)
2818 version_type=none # Android doesn't support versioned libraries.
2819 need_lib_prefix=no
2820 need_version=no
2821 library_names_spec='$libname$release$shared_ext'
2822 soname_spec='$libname$release$shared_ext'
2823 finish_cmds=
2824 shlibpath_var=LD_LIBRARY_PATH
2825 shlibpath_overrides_runpath=yes
2826
2827 # This implies no fast_install, which is unacceptable.
2828 # Some rework will be needed to allow for fast_install
2829 # before this can be enabled.
2830 hardcode_into_libs=yes
2831
2832 dynamic_linker='Android linker'
2833 # Don't embed -rpath directories since the linker doesn't support them.
2834 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
2835 ;;
2836
2837 # This must be glibc/ELF.
2838 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2839 version_type=linux # correct to gnu/linux during the next big refactor
2840 need_lib_prefix=no
2841 need_version=no
2842 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2843 soname_spec='$libname$release$shared_ext$major'
2844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
2845 shlibpath_var=LD_LIBRARY_PATH
2846 shlibpath_overrides_runpath=no
2847
2848 # Some binutils ld are patched to set DT_RUNPATH
2849 AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath],
2850 [lt_cv_shlibpath_overrides_runpath=no
2851 save_LDFLAGS=$LDFLAGS
2852 save_libdir=$libdir
2853 eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
2854 LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
2855 AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
2856 [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
2857 [lt_cv_shlibpath_overrides_runpath=yes])])
2858 LDFLAGS=$save_LDFLAGS
2859 libdir=$save_libdir
2860 ])
2861 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
2862
2863 # This implies no fast_install, which is unacceptable.
2864 # Some rework will be needed to allow for fast_install
2865 # before this can be enabled.
2866 hardcode_into_libs=yes
2867
2868 # Ideally, we could use ldconfig to report *all* directores which are
2869 # searched for libraries, however this is still not possible. Aside from not
2870 # being certain /sbin/ldconfig is available, command
2871 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
2872 # even though it is searched at run-time. Try to do the best guess by
2873 # appending ld.so.conf contents (and includes) to the search path.
2874 if test -f /etc/ld.so.conf; then
2875 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
2876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2877 fi
2878
2879 # We used to test for /lib/ld.so.1 and disable shared libraries on
2880 # powerpc, because MkLinux only supported shared libraries with the
2881 # GNU dynamic linker. Since this was broken with cross compilers,
2882 # most powerpc-linux boxes support dynamic linking these days and
2883 # people can always --disable-shared, the test was removed, and we
2884 # assume the GNU/Linux dynamic linker is in use.
2885 dynamic_linker='GNU/Linux ld.so'
2886 ;;
2887
2888 netbsdelf*-gnu)
2889 version_type=linux
2890 need_lib_prefix=no
2891 need_version=no
2892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2893 soname_spec='${libname}${release}${shared_ext}$major'
2894 shlibpath_var=LD_LIBRARY_PATH
2895 shlibpath_overrides_runpath=no
2896 hardcode_into_libs=yes
2897 dynamic_linker='NetBSD ld.elf_so'
2898 ;;
2899
2900 netbsd*)
2901 version_type=sunos
2902 need_lib_prefix=no
2903 need_version=no
2904 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
2905 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2906 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2907 dynamic_linker='NetBSD (a.out) ld.so'
2908 else
2909 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2910 soname_spec='$libname$release$shared_ext$major'
2911 dynamic_linker='NetBSD ld.elf_so'
2912 fi
2913 shlibpath_var=LD_LIBRARY_PATH
2914 shlibpath_overrides_runpath=yes
2915 hardcode_into_libs=yes
2916 ;;
2917
2918 newsos6)
2919 version_type=linux # correct to gnu/linux during the next big refactor
2920 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2921 shlibpath_var=LD_LIBRARY_PATH
2922 shlibpath_overrides_runpath=yes
2923 ;;
2924
2925 *nto* | *qnx*)
2926 version_type=qnx
2927 need_lib_prefix=no
2928 need_version=no
2929 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2930 soname_spec='$libname$release$shared_ext$major'
2931 shlibpath_var=LD_LIBRARY_PATH
2932 shlibpath_overrides_runpath=no
2933 hardcode_into_libs=yes
2934 dynamic_linker='ldqnx.so'
2935 ;;
2936
2937 openbsd* | bitrig*)
2938 version_type=sunos
2939 sys_lib_dlsearch_path_spec=/usr/lib
2940 need_lib_prefix=no
2941 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
2942 need_version=no
2943 else
2944 need_version=yes
2945 fi
2946 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
2947 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
2948 shlibpath_var=LD_LIBRARY_PATH
2949 shlibpath_overrides_runpath=yes
2950 ;;
2951
2952 os2*)
2953 libname_spec='$name'
2954 version_type=windows
2955 shrext_cmds=.dll
2956 need_version=no
2957 need_lib_prefix=no
2958 # OS/2 can only load a DLL with a base name of 8 characters or less.
2959 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
2960 v=$($ECHO $release$versuffix | tr -d .-);
2961 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
2962 $ECHO $n$v`$shared_ext'
2963 library_names_spec='${libname}_dll.$libext'
2964 dynamic_linker='OS/2 ld.exe'
2965 shlibpath_var=BEGINLIBPATH
2966 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
2967 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2968 postinstall_cmds='base_file=`basename \$file`~
2969 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
2970 dldir=$destdir/`dirname \$dlpath`~
2971 test -d \$dldir || mkdir -p \$dldir~
2972 $install_prog $dir/$dlname \$dldir/$dlname~
2973 chmod a+x \$dldir/$dlname~
2974 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
2975 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
2976 fi'
2977 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
2978 dlpath=$dir/\$dldll~
2979 $RM \$dlpath'
2980 ;;
2981
2982 osf3* | osf4* | osf5*)
2983 version_type=osf
2984 need_lib_prefix=no
2985 need_version=no
2986 soname_spec='$libname$release$shared_ext$major'
2987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
2988 shlibpath_var=LD_LIBRARY_PATH
2989 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
2990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
2991 ;;
2992
2993 rdos*)
2994 dynamic_linker=no
2995 ;;
2996
2997 solaris*)
2998 version_type=linux # correct to gnu/linux during the next big refactor
2999 need_lib_prefix=no
3000 need_version=no
3001 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3002 soname_spec='$libname$release$shared_ext$major'
3003 shlibpath_var=LD_LIBRARY_PATH
3004 shlibpath_overrides_runpath=yes
3005 hardcode_into_libs=yes
3006 # ldd complains unless libraries are executable
3007 postinstall_cmds='chmod +x $lib'
3008 ;;
3009
3010 sunos4*)
3011 version_type=sunos
3012 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
3013 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
3014 shlibpath_var=LD_LIBRARY_PATH
3015 shlibpath_overrides_runpath=yes
3016 if test yes = "$with_gnu_ld"; then
3017 need_lib_prefix=no
3018 fi
3019 need_version=yes
3020 ;;
3021
3022 sysv4 | sysv4.3*)
3023 version_type=linux # correct to gnu/linux during the next big refactor
3024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3025 soname_spec='$libname$release$shared_ext$major'
3026 shlibpath_var=LD_LIBRARY_PATH
3027 case $host_vendor in
3028 sni)
3029 shlibpath_overrides_runpath=no
3030 need_lib_prefix=no
3031 runpath_var=LD_RUN_PATH
3032 ;;
3033 siemens)
3034 need_lib_prefix=no
3035 ;;
3036 motorola)
3037 need_lib_prefix=no
3038 need_version=no
3039 shlibpath_overrides_runpath=no
3040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
3041 ;;
3042 esac
3043 ;;
3044
3045 sysv4*MP*)
3046 if test -d /usr/nec; then
3047 version_type=linux # correct to gnu/linux during the next big refactor
3048 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
3049 soname_spec='$libname$shared_ext.$major'
3050 shlibpath_var=LD_LIBRARY_PATH
3051 fi
3052 ;;
3053
3054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3055 version_type=sco
3056 need_lib_prefix=no
3057 need_version=no
3058 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
3059 soname_spec='$libname$release$shared_ext$major'
3060 shlibpath_var=LD_LIBRARY_PATH
3061 shlibpath_overrides_runpath=yes
3062 hardcode_into_libs=yes
3063 if test yes = "$with_gnu_ld"; then
3064 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
3065 else
3066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
3067 case $host_os in
3068 sco3.2v5*)
3069 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
3070 ;;
3071 esac
3072 fi
3073 sys_lib_dlsearch_path_spec='/usr/lib'
3074 ;;
3075
3076 tpf*)
3077 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
3078 version_type=linux # correct to gnu/linux during the next big refactor
3079 need_lib_prefix=no
3080 need_version=no
3081 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3082 shlibpath_var=LD_LIBRARY_PATH
3083 shlibpath_overrides_runpath=no
3084 hardcode_into_libs=yes
3085 ;;
3086
3087 uts4*)
3088 version_type=linux # correct to gnu/linux during the next big refactor
3089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
3090 soname_spec='$libname$release$shared_ext$major'
3091 shlibpath_var=LD_LIBRARY_PATH
3092 ;;
3093
3094 *)
3095 dynamic_linker=no
3096 ;;
3097 esac
3098 AC_MSG_RESULT([$dynamic_linker])
3099 test no = "$dynamic_linker" && can_build_shared=no
3100
3101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
3102 if test yes = "$GCC"; then
3103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
3104 fi
3105
3106 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
3107 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
3108 fi
3109
3110 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
3111 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
3112 fi
3113
3114 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
3115 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
3116
3117 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
3118 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
3119
3120 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
3121 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
3122
3123 _LT_DECL([], [variables_saved_for_relink], [1],
3124 [Variables whose values should be saved in libtool wrapper scripts and
3125 restored at link time])
3126 _LT_DECL([], [need_lib_prefix], [0],
3127 [Do we need the "lib" prefix for modules?])
3128 _LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
3129 _LT_DECL([], [version_type], [0], [Library versioning type])
3130 _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
3131 _LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
3132 _LT_DECL([], [shlibpath_overrides_runpath], [0],
3133 [Is shlibpath searched before the hard-coded library search path?])
3134 _LT_DECL([], [libname_spec], [1], [Format of library name prefix])
3135 _LT_DECL([], [library_names_spec], [1],
3136 [[List of archive names. First name is the real one, the rest are links.
3137 The last name is the one that the linker finds with -lNAME]])
3138 _LT_DECL([], [soname_spec], [1],
3139 [[The coded name of the library, if different from the real name]])
3140 _LT_DECL([], [install_override_mode], [1],
3141 [Permission mode override for installation of shared libraries])
3142 _LT_DECL([], [postinstall_cmds], [2],
3143 [Command to use after installation of a shared archive])
3144 _LT_DECL([], [postuninstall_cmds], [2],
3145 [Command to use after uninstallation of a shared archive])
3146 _LT_DECL([], [finish_cmds], [2],
3147 [Commands used to finish a libtool library installation in a directory])
3148 _LT_DECL([], [finish_eval], [1],
3149 [[As "finish_cmds", except a single script fragment to be evaled but
3150 not shown]])
3151 _LT_DECL([], [hardcode_into_libs], [0],
3152 [Whether we should hardcode library paths into libraries])
3153 _LT_DECL([], [sys_lib_search_path_spec], [2],
3154 [Compile-time system search path for libraries])
3155 _LT_DECL([sys_lib_dlsearch_path_spec], [configure_time_dlsearch_path], [2],
3156 [Detected run-time system search path for libraries])
3157 _LT_DECL([], [configure_time_lt_sys_library_path], [2],
3158 [Explicit LT_SYS_LIBRARY_PATH set during ./configure time])
3159 ])# _LT_SYS_DYNAMIC_LINKER
3160
3161
3162 # _LT_PATH_TOOL_PREFIX(TOOL)
3163 # --------------------------
3164 # find a file program that can recognize shared library
3165 AC_DEFUN([_LT_PATH_TOOL_PREFIX],
3166 [m4_require([_LT_DECL_EGREP])dnl
3167 AC_MSG_CHECKING([for $1])
3168 AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
3169 [case $MAGIC_CMD in
3170 [[\\/*] | ?:[\\/]*])
3171 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
3172 ;;
3173 *)
3174 lt_save_MAGIC_CMD=$MAGIC_CMD
3175 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3176 dnl $ac_dummy forces splitting on constant user-supplied paths.
3177 dnl POSIX.2 word splitting is done only on the output of word expansions,
3178 dnl not every word. This closes a longstanding sh security hole.
3179 ac_dummy="m4_if([$2], , $PATH, [$2])"
3180 for ac_dir in $ac_dummy; do
3181 IFS=$lt_save_ifs
3182 test -z "$ac_dir" && ac_dir=.
3183 if test -f "$ac_dir/$1"; then
3184 lt_cv_path_MAGIC_CMD=$ac_dir/"$1"
3185 if test -n "$file_magic_test_file"; then
3186 case $deplibs_check_method in
3187 "file_magic "*)
3188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
3189 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
3191 $EGREP "$file_magic_regex" > /dev/null; then
3192 :
3193 else
3194 cat <<_LT_EOF 1>&2
3195
3196 *** Warning: the command libtool uses to detect shared libraries,
3197 *** $file_magic_cmd, produces output that libtool cannot recognize.
3198 *** The result is that libtool may fail to recognize shared libraries
3199 *** as such. This will affect the creation of libtool libraries that
3200 *** depend on shared libraries, but programs linked with such libtool
3201 *** libraries will work regardless of this problem. Nevertheless, you
3202 *** may want to report the problem to your system manager and/or to
3203 *** bug-libtool@gnu.org
3204
3205 _LT_EOF
3206 fi ;;
3207 esac
3208 fi
3209 break
3210 fi
3211 done
3212 IFS=$lt_save_ifs
3213 MAGIC_CMD=$lt_save_MAGIC_CMD
3214 ;;
3215 esac])
3216 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
3217 if test -n "$MAGIC_CMD"; then
3218 AC_MSG_RESULT($MAGIC_CMD)
3219 else
3220 AC_MSG_RESULT(no)
3221 fi
3222 _LT_DECL([], [MAGIC_CMD], [0],
3223 [Used to examine libraries when file_magic_cmd begins with "file"])dnl
3224 ])# _LT_PATH_TOOL_PREFIX
3225
3226 # Old name:
3227 AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
3228 dnl aclocal-1.4 backwards compatibility:
3229 dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
3230
3231
3232 # _LT_PATH_MAGIC
3233 # --------------
3234 # find a file program that can recognize a shared library
3235 m4_defun([_LT_PATH_MAGIC],
3236 [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
3237 if test -z "$lt_cv_path_MAGIC_CMD"; then
3238 if test -n "$ac_tool_prefix"; then
3239 _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
3240 else
3241 MAGIC_CMD=:
3242 fi
3243 fi
3244 ])# _LT_PATH_MAGIC
3245
3246
3247 # LT_PATH_LD
3248 # ----------
3249 # find the pathname to the GNU or non-GNU linker
3250 AC_DEFUN([LT_PATH_LD],
3251 [AC_REQUIRE([AC_PROG_CC])dnl
3252 AC_REQUIRE([AC_CANONICAL_HOST])dnl
3253 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
3254 m4_require([_LT_DECL_SED])dnl
3255 m4_require([_LT_DECL_EGREP])dnl
3256 m4_require([_LT_PROG_ECHO_BACKSLASH])dnl
3257
3258 AC_ARG_WITH([gnu-ld],
3259 [AS_HELP_STRING([--with-gnu-ld],
3260 [assume the C compiler uses GNU ld @<:@default=no@:>@])],
3261 [test no = "$withval" || with_gnu_ld=yes],
3262 [with_gnu_ld=no])dnl
3263
3264 ac_prog=ld
3265 if test yes = "$GCC"; then
3266 # Check if gcc -print-prog-name=ld gives a path.
3267 AC_MSG_CHECKING([for ld used by $CC])
3268 case $host in
3269 *-*-mingw*)
3270 # gcc leaves a trailing carriage return, which upsets mingw
3271 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3272 *)
3273 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3274 esac
3275 case $ac_prog in
3276 # Accept absolute paths.
3277 [[\\/]]* | ?:[[\\/]]*)
3278 re_direlt='/[[^/]][[^/]]*/\.\./'
3279 # Canonicalize the pathname of ld
3280 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3281 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3282 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3283 done
3284 test -z "$LD" && LD=$ac_prog
3285 ;;
3286 "")
3287 # If it fails, then pretend we aren't using GCC.
3288 ac_prog=ld
3289 ;;
3290 *)
3291 # If it is relative, then search for the first ld in PATH.
3292 with_gnu_ld=unknown
3293 ;;
3294 esac
3295 elif test yes = "$with_gnu_ld"; then
3296 AC_MSG_CHECKING([for GNU ld])
3297 else
3298 AC_MSG_CHECKING([for non-GNU ld])
3299 fi
3300 AC_CACHE_VAL(lt_cv_path_LD,
3301 [if test -z "$LD"; then
3302 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3303 for ac_dir in $PATH; do
3304 IFS=$lt_save_ifs
3305 test -z "$ac_dir" && ac_dir=.
3306 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3307 lt_cv_path_LD=$ac_dir/$ac_prog
3308 # Check to see if the program is GNU ld. I'd rather use --version,
3309 # but apparently some variants of GNU ld only accept -v.
3310 # Break only if it was the GNU/non-GNU ld that we prefer.
3311 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3312 *GNU* | *'with BFD'*)
3313 test no != "$with_gnu_ld" && break
3314 ;;
3315 *)
3316 test yes != "$with_gnu_ld" && break
3317 ;;
3318 esac
3319 fi
3320 done
3321 IFS=$lt_save_ifs
3322 else
3323 lt_cv_path_LD=$LD # Let the user override the test with a path.
3324 fi])
3325 LD=$lt_cv_path_LD
3326 if test -n "$LD"; then
3327 AC_MSG_RESULT($LD)
3328 else
3329 AC_MSG_RESULT(no)
3330 fi
3331 test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
3332 _LT_PATH_LD_GNU
3333 AC_SUBST([LD])
3334
3335 _LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
3336 ])# LT_PATH_LD
3337
3338 # Old names:
3339 AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
3340 AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
3341 dnl aclocal-1.4 backwards compatibility:
3342 dnl AC_DEFUN([AM_PROG_LD], [])
3343 dnl AC_DEFUN([AC_PROG_LD], [])
3344
3345
3346 # _LT_PATH_LD_GNU
3347 #- --------------
3348 m4_defun([_LT_PATH_LD_GNU],
3349 [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
3350 [# I'd rather use --version here, but apparently some GNU lds only accept -v.
3351 case `$LD -v 2>&1 </dev/null` in
3352 *GNU* | *'with BFD'*)
3353 lt_cv_prog_gnu_ld=yes
3354 ;;
3355 *)
3356 lt_cv_prog_gnu_ld=no
3357 ;;
3358 esac])
3359 with_gnu_ld=$lt_cv_prog_gnu_ld
3360 ])# _LT_PATH_LD_GNU
3361
3362
3363 # _LT_CMD_RELOAD
3364 # --------------
3365 # find reload flag for linker
3366 # -- PORTME Some linkers may need a different reload flag.
3367 m4_defun([_LT_CMD_RELOAD],
3368 [AC_CACHE_CHECK([for $LD option to reload object files],
3369 lt_cv_ld_reload_flag,
3370 [lt_cv_ld_reload_flag='-r'])
3371 reload_flag=$lt_cv_ld_reload_flag
3372 case $reload_flag in
3373 "" | " "*) ;;
3374 *) reload_flag=" $reload_flag" ;;
3375 esac
3376 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3377 case $host_os in
3378 cygwin* | mingw* | pw32* | cegcc*)
3379 if test yes != "$GCC"; then
3380 reload_cmds=false
3381 fi
3382 ;;
3383 darwin*)
3384 if test yes = "$GCC"; then
3385 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
3386 else
3387 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3388 fi
3389 ;;
3390 esac
3391 _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl
3392 _LT_TAGDECL([], [reload_cmds], [2])dnl
3393 ])# _LT_CMD_RELOAD
3394
3395
3396 # _LT_PATH_DD
3397 # -----------
3398 # find a working dd
3399 m4_defun([_LT_PATH_DD],
3400 [AC_CACHE_CHECK([for a working dd], [ac_cv_path_lt_DD],
3401 [printf 0123456789abcdef0123456789abcdef >conftest.i
3402 cat conftest.i conftest.i >conftest2.i
3403 : ${lt_DD:=$DD}
3404 AC_PATH_PROGS_FEATURE_CHECK([lt_DD], [dd],
3405 [if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3406 cmp -s conftest.i conftest.out \
3407 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
3408 fi])
3409 rm -f conftest.i conftest2.i conftest.out])
3410 ])# _LT_PATH_DD
3411
3412
3413 # _LT_CMD_TRUNCATE
3414 # ----------------
3415 # find command to truncate a binary pipe
3416 m4_defun([_LT_CMD_TRUNCATE],
3417 [m4_require([_LT_PATH_DD])
3418 AC_CACHE_CHECK([how to truncate binary pipes], [lt_cv_truncate_bin],
3419 [printf 0123456789abcdef0123456789abcdef >conftest.i
3420 cat conftest.i conftest.i >conftest2.i
3421 lt_cv_truncate_bin=
3422 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
3423 cmp -s conftest.i conftest.out \
3424 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
3425 fi
3426 rm -f conftest.i conftest2.i conftest.out
3427 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"])
3428 _LT_DECL([lt_truncate_bin], [lt_cv_truncate_bin], [1],
3429 [Command to truncate a binary pipe])
3430 ])# _LT_CMD_TRUNCATE
3431
3432
3433 # _LT_CHECK_MAGIC_METHOD
3434 # ----------------------
3435 # how to check for library dependencies
3436 # -- PORTME fill in with the dynamic library characteristics
3437 m4_defun([_LT_CHECK_MAGIC_METHOD],
3438 [m4_require([_LT_DECL_EGREP])
3439 m4_require([_LT_DECL_OBJDUMP])
3440 AC_CACHE_CHECK([how to recognize dependent libraries],
3441 lt_cv_deplibs_check_method,
3442 [lt_cv_file_magic_cmd='$MAGIC_CMD'
3443 lt_cv_file_magic_test_file=
3444 lt_cv_deplibs_check_method='unknown'
3445 # Need to set the preceding variable on all platforms that support
3446 # interlibrary dependencies.
3447 # 'none' -- dependencies not supported.
3448 # 'unknown' -- same as none, but documents that we really don't know.
3449 # 'pass_all' -- all dependencies passed with no checks.
3450 # 'test_compile' -- check by making test program.
3451 # 'file_magic [[regex]]' -- check by looking for files in library path
3452 # that responds to the $file_magic_cmd with a given extended regex.
3453 # If you have 'file' or equivalent on your system and you're not sure
3454 # whether 'pass_all' will *always* work, you probably want this one.
3455
3456 case $host_os in
3457 aix[[4-9]]*)
3458 lt_cv_deplibs_check_method=pass_all
3459 ;;
3460
3461 beos*)
3462 lt_cv_deplibs_check_method=pass_all
3463 ;;
3464
3465 bsdi[[45]]*)
3466 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
3467 lt_cv_file_magic_cmd='/usr/bin/file -L'
3468 lt_cv_file_magic_test_file=/shlib/libc.so
3469 ;;
3470
3471 cygwin*)
3472 # func_win32_libid is a shell function defined in ltmain.sh
3473 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3474 lt_cv_file_magic_cmd='func_win32_libid'
3475 ;;
3476
3477 mingw* | pw32*)
3478 # Base MSYS/MinGW do not provide the 'file' command needed by
3479 # func_win32_libid shell function, so use a weaker test based on 'objdump',
3480 # unless we find 'file', for example because we are cross-compiling.
3481 if ( file / ) >/dev/null 2>&1; then
3482 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3483 lt_cv_file_magic_cmd='func_win32_libid'
3484 else
3485 # Keep this pattern in sync with the one in func_win32_libid.
3486 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
3487 lt_cv_file_magic_cmd='$OBJDUMP -f'
3488 fi
3489 ;;
3490
3491 cegcc*)
3492 # use the weaker test based on 'objdump'. See mingw*.
3493 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
3494 lt_cv_file_magic_cmd='$OBJDUMP -f'
3495 ;;
3496
3497 darwin* | rhapsody*)
3498 lt_cv_deplibs_check_method=pass_all
3499 ;;
3500
3501 freebsd* | dragonfly*)
3502 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3503 case $host_cpu in
3504 i*86 )
3505 # Not sure whether the presence of OpenBSD here was a mistake.
3506 # Let's accept both of them until this is cleared up.
3507 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
3508 lt_cv_file_magic_cmd=/usr/bin/file
3509 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3510 ;;
3511 esac
3512 else
3513 lt_cv_deplibs_check_method=pass_all
3514 fi
3515 ;;
3516
3517 haiku*)
3518 lt_cv_deplibs_check_method=pass_all
3519 ;;
3520
3521 hpux10.20* | hpux11*)
3522 lt_cv_file_magic_cmd=/usr/bin/file
3523 case $host_cpu in
3524 ia64*)
3525 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
3526 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3527 ;;
3528 hppa*64*)
3529 [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]']
3530 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3531 ;;
3532 *)
3533 lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library'
3534 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3535 ;;
3536 esac
3537 ;;
3538
3539 interix[[3-9]]*)
3540 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3541 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
3542 ;;
3543
3544 irix5* | irix6* | nonstopux*)
3545 case $LD in
3546 *-32|*"-32 ") libmagic=32-bit;;
3547 *-n32|*"-n32 ") libmagic=N32;;
3548 *-64|*"-64 ") libmagic=64-bit;;
3549 *) libmagic=never-match;;
3550 esac
3551 lt_cv_deplibs_check_method=pass_all
3552 ;;
3553
3554 # This must be glibc/ELF.
3555 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3556 lt_cv_deplibs_check_method=pass_all
3557 ;;
3558
3559 netbsd* | netbsdelf*-gnu)
3560 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3561 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3562 else
3563 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
3564 fi
3565 ;;
3566
3567 newos6*)
3568 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
3569 lt_cv_file_magic_cmd=/usr/bin/file
3570 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3571 ;;
3572
3573 *nto* | *qnx*)
3574 lt_cv_deplibs_check_method=pass_all
3575 ;;
3576
3577 openbsd* | bitrig*)
3578 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
3579 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
3580 else
3581 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3582 fi
3583 ;;
3584
3585 osf3* | osf4* | osf5*)
3586 lt_cv_deplibs_check_method=pass_all
3587 ;;
3588
3589 rdos*)
3590 lt_cv_deplibs_check_method=pass_all
3591 ;;
3592
3593 solaris*)
3594 lt_cv_deplibs_check_method=pass_all
3595 ;;
3596
3597 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3598 lt_cv_deplibs_check_method=pass_all
3599 ;;
3600
3601 sysv4 | sysv4.3*)
3602 case $host_vendor in
3603 motorola)
3604 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]]'
3605 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3606 ;;
3607 ncr)
3608 lt_cv_deplibs_check_method=pass_all
3609 ;;
3610 sequent)
3611 lt_cv_file_magic_cmd='/bin/file'
3612 lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
3613 ;;
3614 sni)
3615 lt_cv_file_magic_cmd='/bin/file'
3616 lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
3617 lt_cv_file_magic_test_file=/lib/libc.so
3618 ;;
3619 siemens)
3620 lt_cv_deplibs_check_method=pass_all
3621 ;;
3622 pc)
3623 lt_cv_deplibs_check_method=pass_all
3624 ;;
3625 esac
3626 ;;
3627
3628 tpf*)
3629 lt_cv_deplibs_check_method=pass_all
3630 ;;
3631 os2*)
3632 lt_cv_deplibs_check_method=pass_all
3633 ;;
3634 esac
3635 ])
3636
3637 file_magic_glob=
3638 want_nocaseglob=no
3639 if test "$build" = "$host"; then
3640 case $host_os in
3641 mingw* | pw32*)
3642 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
3643 want_nocaseglob=yes
3644 else
3645 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"`
3646 fi
3647 ;;
3648 esac
3649 fi
3650
3651 file_magic_cmd=$lt_cv_file_magic_cmd
3652 deplibs_check_method=$lt_cv_deplibs_check_method
3653 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3654
3655 _LT_DECL([], [deplibs_check_method], [1],
3656 [Method to check whether dependent libraries are shared objects])
3657 _LT_DECL([], [file_magic_cmd], [1],
3658 [Command to use when deplibs_check_method = "file_magic"])
3659 _LT_DECL([], [file_magic_glob], [1],
3660 [How to find potential files when deplibs_check_method = "file_magic"])
3661 _LT_DECL([], [want_nocaseglob], [1],
3662 [Find potential files using nocaseglob when deplibs_check_method = "file_magic"])
3663 ])# _LT_CHECK_MAGIC_METHOD
3664
3665
3666 # LT_PATH_NM
3667 # ----------
3668 # find the pathname to a BSD- or MS-compatible name lister
3669 AC_DEFUN([LT_PATH_NM],
3670 [AC_REQUIRE([AC_PROG_CC])dnl
3671 AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
3672 [if test -n "$NM"; then
3673 # Let the user override the test.
3674 lt_cv_path_NM=$NM
3675 else
3676 lt_nm_to_check=${ac_tool_prefix}nm
3677 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3678 lt_nm_to_check="$lt_nm_to_check nm"
3679 fi
3680 for lt_tmp_nm in $lt_nm_to_check; do
3681 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
3682 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3683 IFS=$lt_save_ifs
3684 test -z "$ac_dir" && ac_dir=.
3685 tmp_nm=$ac_dir/$lt_tmp_nm
3686 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
3687 # Check to see if the nm accepts a BSD-compat flag.
3688 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
3689 # nm: unknown option "B" ignored
3690 # Tru64's nm complains that /dev/null is an invalid object file
3691 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
3692 case $build_os in
3693 mingw*) lt_bad_file=conftest.nm/nofile ;;
3694 *) lt_bad_file=/dev/null ;;
3695 esac
3696 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
3697 *$lt_bad_file* | *'Invalid file or object type'*)
3698 lt_cv_path_NM="$tmp_nm -B"
3699 break 2
3700 ;;
3701 *)
3702 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3703 */dev/null*)
3704 lt_cv_path_NM="$tmp_nm -p"
3705 break 2
3706 ;;
3707 *)
3708 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3709 continue # so that we can try to find one that supports BSD flags
3710 ;;
3711 esac
3712 ;;
3713 esac
3714 fi
3715 done
3716 IFS=$lt_save_ifs
3717 done
3718 : ${lt_cv_path_NM=no}
3719 fi])
3720 if test no != "$lt_cv_path_NM"; then
3721 NM=$lt_cv_path_NM
3722 else
3723 # Didn't find any BSD compatible name lister, look for dumpbin.
3724 if test -n "$DUMPBIN"; then :
3725 # Let the user override the test.
3726 else
3727 AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :)
3728 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
3729 *COFF*)
3730 DUMPBIN="$DUMPBIN -symbols -headers"
3731 ;;
3732 *)
3733 DUMPBIN=:
3734 ;;
3735 esac
3736 fi
3737 AC_SUBST([DUMPBIN])
3738 if test : != "$DUMPBIN"; then
3739 NM=$DUMPBIN
3740 fi
3741 fi
3742 test -z "$NM" && NM=nm
3743 AC_SUBST([NM])
3744 _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
3745
3746 AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
3747 [lt_cv_nm_interface="BSD nm"
3748 echo "int some_variable = 0;" > conftest.$ac_ext
3749 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
3750 (eval "$ac_compile" 2>conftest.err)
3751 cat conftest.err >&AS_MESSAGE_LOG_FD
3752 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
3753 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
3754 cat conftest.err >&AS_MESSAGE_LOG_FD
3755 (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD)
3756 cat conftest.out >&AS_MESSAGE_LOG_FD
3757 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
3758 lt_cv_nm_interface="MS dumpbin"
3759 fi
3760 rm -f conftest*])
3761 ])# LT_PATH_NM
3762
3763 # Old names:
3764 AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
3765 AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
3766 dnl aclocal-1.4 backwards compatibility:
3767 dnl AC_DEFUN([AM_PROG_NM], [])
3768 dnl AC_DEFUN([AC_PROG_NM], [])
3769
3770 # _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3771 # --------------------------------
3772 # how to determine the name of the shared library
3773 # associated with a specific link library.
3774 # -- PORTME fill in with the dynamic library characteristics
3775 m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB],
3776 [m4_require([_LT_DECL_EGREP])
3777 m4_require([_LT_DECL_OBJDUMP])
3778 m4_require([_LT_DECL_DLLTOOL])
3779 AC_CACHE_CHECK([how to associate runtime and link libraries],
3780 lt_cv_sharedlib_from_linklib_cmd,
3781 [lt_cv_sharedlib_from_linklib_cmd='unknown'
3782
3783 case $host_os in
3784 cygwin* | mingw* | pw32* | cegcc*)
3785 # two different shell functions defined in ltmain.sh;
3786 # decide which one to use based on capabilities of $DLLTOOL
3787 case `$DLLTOOL --help 2>&1` in
3788 *--identify-strict*)
3789 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
3790 ;;
3791 *)
3792 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
3793 ;;
3794 esac
3795 ;;
3796 *)
3797 # fallback: assume linklib IS sharedlib
3798 lt_cv_sharedlib_from_linklib_cmd=$ECHO
3799 ;;
3800 esac
3801 ])
3802 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
3803 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
3804
3805 _LT_DECL([], [sharedlib_from_linklib_cmd], [1],
3806 [Command to associate shared and link libraries])
3807 ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB
3808
3809
3810 # _LT_PATH_MANIFEST_TOOL
3811 # ----------------------
3812 # locate the manifest tool
3813 m4_defun([_LT_PATH_MANIFEST_TOOL],
3814 [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :)
3815 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
3816 AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool],
3817 [lt_cv_path_mainfest_tool=no
3818 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD
3819 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
3820 cat conftest.err >&AS_MESSAGE_LOG_FD
3821 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
3822 lt_cv_path_mainfest_tool=yes
3823 fi
3824 rm -f conftest*])
3825 if test yes != "$lt_cv_path_mainfest_tool"; then
3826 MANIFEST_TOOL=:
3827 fi
3828 _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl
3829 ])# _LT_PATH_MANIFEST_TOOL
3830
3831
3832 # _LT_DLL_DEF_P([FILE])
3833 # ---------------------
3834 # True iff FILE is a Windows DLL '.def' file.
3835 # Keep in sync with func_dll_def_p in the libtool script
3836 AC_DEFUN([_LT_DLL_DEF_P],
3837 [dnl
3838 test DEF = "`$SED -n dnl
3839 -e '\''s/^[[ ]]*//'\'' dnl Strip leading whitespace
3840 -e '\''/^\(;.*\)*$/d'\'' dnl Delete empty lines and comments
3841 -e '\''s/^\(EXPORTS\|LIBRARY\)\([[ ]].*\)*$/DEF/p'\'' dnl
3842 -e q dnl Only consider the first "real" line
3843 $1`" dnl
3844 ])# _LT_DLL_DEF_P
3845
3846
3847 # LT_LIB_M
3848 # --------
3849 # check for math library
3850 AC_DEFUN([LT_LIB_M],
3851 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3852 LIBM=
3853 case $host in
3854 *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*)
3855 # These system don't have libm, or don't need it
3856 ;;
3857 *-ncr-sysv4.3*)
3858 AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM=-lmw)
3859 AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
3860 ;;
3861 *)
3862 AC_CHECK_LIB(m, cos, LIBM=-lm)
3863 ;;
3864 esac
3865 AC_SUBST([LIBM])
3866 ])# LT_LIB_M
3867
3868 # Old name:
3869 AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
3870 dnl aclocal-1.4 backwards compatibility:
3871 dnl AC_DEFUN([AC_CHECK_LIBM], [])
3872
3873
3874 # _LT_COMPILER_NO_RTTI([TAGNAME])
3875 # -------------------------------
3876 m4_defun([_LT_COMPILER_NO_RTTI],
3877 [m4_require([_LT_TAG_COMPILER])dnl
3878
3879 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
3880
3881 if test yes = "$GCC"; then
3882 case $cc_basename in
3883 nvcc*)
3884 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;;
3885 *)
3886 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;;
3887 esac
3888
3889 _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
3890 lt_cv_prog_compiler_rtti_exceptions,
3891 [-fno-rtti -fno-exceptions], [],
3892 [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
3893 fi
3894 _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
3895 [Compiler flag to turn off builtin functions])
3896 ])# _LT_COMPILER_NO_RTTI
3897
3898
3899 # _LT_CMD_GLOBAL_SYMBOLS
3900 # ----------------------
3901 m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
3902 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
3903 AC_REQUIRE([AC_PROG_CC])dnl
3904 AC_REQUIRE([AC_PROG_AWK])dnl
3905 AC_REQUIRE([LT_PATH_NM])dnl
3906 AC_REQUIRE([LT_PATH_LD])dnl
3907 m4_require([_LT_DECL_SED])dnl
3908 m4_require([_LT_DECL_EGREP])dnl
3909 m4_require([_LT_TAG_COMPILER])dnl
3910
3911 # Check for command to grab the raw symbol name followed by C symbol from nm.
3912 AC_MSG_CHECKING([command to parse $NM output from $compiler object])
3913 AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
3914 [
3915 # These are sane defaults that work on at least a few old systems.
3916 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
3917
3918 # Character class describing NM global symbol codes.
3919 symcode='[[BCDEGRST]]'
3920
3921 # Regexp to match symbols that can be accessed directly from C.
3922 sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
3923
3924 # Define system-specific variables.
3925 case $host_os in
3926 aix*)
3927 symcode='[[BCDT]]'
3928 ;;
3929 cygwin* | mingw* | pw32* | cegcc*)
3930 symcode='[[ABCDGISTW]]'
3931 ;;
3932 hpux*)
3933 if test ia64 = "$host_cpu"; then
3934 symcode='[[ABCDEGRST]]'
3935 fi
3936 ;;
3937 irix* | nonstopux*)
3938 symcode='[[BCDEGRST]]'
3939 ;;
3940 osf*)
3941 symcode='[[BCDEGQRST]]'
3942 ;;
3943 solaris*)
3944 symcode='[[BDRT]]'
3945 ;;
3946 sco3.2v5*)
3947 symcode='[[DT]]'
3948 ;;
3949 sysv4.2uw2*)
3950 symcode='[[DT]]'
3951 ;;
3952 sysv5* | sco5v6* | unixware* | OpenUNIX*)
3953 symcode='[[ABDT]]'
3954 ;;
3955 sysv4)
3956 symcode='[[DFNSTU]]'
3957 ;;
3958 esac
3959
3960 # If we're using GNU nm, then use its standard symbol codes.
3961 case `$NM -V 2>&1` in
3962 *GNU* | *'with BFD'*)
3963 symcode='[[ABCDGIRSTW]]' ;;
3964 esac
3965
3966 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
3967 # Gets list of data symbols to import.
3968 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
3969 # Adjust the below global symbol transforms to fixup imported variables.
3970 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
3971 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
3972 lt_c_name_lib_hook="\
3973 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
3974 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
3975 else
3976 # Disable hooks by default.
3977 lt_cv_sys_global_symbol_to_import=
3978 lt_cdecl_hook=
3979 lt_c_name_hook=
3980 lt_c_name_lib_hook=
3981 fi
3982
3983 # Transform an extracted symbol line into a proper C declaration.
3984 # Some systems (esp. on ia64) link data and code symbols differently,
3985 # so use this general approach.
3986 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
3987 $lt_cdecl_hook\
3988 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
3989 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
3990
3991 # Transform an extracted symbol line into symbol name and symbol address
3992 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
3993 $lt_c_name_hook\
3994 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
3995 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
3996
3997 # Transform an extracted symbol line into symbol name with lib prefix and
3998 # symbol address.
3999 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
4000 $lt_c_name_lib_hook\
4001 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
4002 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
4003 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
4004
4005 # Handle CRLF in mingw tool chain
4006 opt_cr=
4007 case $build_os in
4008 mingw*)
4009 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4010 ;;
4011 esac
4012
4013 # Try without a prefix underscore, then with it.
4014 for ac_symprfx in "" "_"; do
4015
4016 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
4017 symxfrm="\\1 $ac_symprfx\\2 \\2"
4018
4019 # Write the raw and C identifiers.
4020 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4021 # Fake it for dumpbin and say T for any non-static function,
4022 # D for any global variable and I for any imported variable.
4023 # Also find C++ and __fastcall symbols from MSVC++,
4024 # which start with @ or ?.
4025 lt_cv_sys_global_symbol_pipe="$AWK ['"\
4026 " {last_section=section; section=\$ 3};"\
4027 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
4028 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
4029 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
4030 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
4031 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
4032 " \$ 0!~/External *\|/{next};"\
4033 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
4034 " {if(hide[section]) next};"\
4035 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
4036 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
4037 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
4038 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
4039 " ' prfx=^$ac_symprfx]"
4040 else
4041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
4042 fi
4043 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
4044
4045 # Check to see that the pipe works correctly.
4046 pipe_works=no
4047
4048 rm -f conftest*
4049 cat > conftest.$ac_ext <<_LT_EOF
4050 #ifdef __cplusplus
4051 extern "C" {
4052 #endif
4053 char nm_test_var;
4054 void nm_test_func(void);
4055 void nm_test_func(void){}
4056 #ifdef __cplusplus
4057 }
4058 #endif
4059 int main(){nm_test_var='a';nm_test_func();return(0);}
4060 _LT_EOF
4061
4062 if AC_TRY_EVAL(ac_compile); then
4063 # Now try to grab the symbols.
4064 nlist=conftest.nm
4065 if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then
4066 # Try sorting and uniquifying the output.
4067 if sort "$nlist" | uniq > "$nlist"T; then
4068 mv -f "$nlist"T "$nlist"
4069 else
4070 rm -f "$nlist"T
4071 fi
4072
4073 # Make sure that we snagged all the symbols we need.
4074 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
4075 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
4076 cat <<_LT_EOF > conftest.$ac_ext
4077 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
4078 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
4079 /* DATA imports from DLLs on WIN32 can't be const, because runtime
4080 relocations are performed -- see ld's documentation on pseudo-relocs. */
4081 # define LT@&t@_DLSYM_CONST
4082 #elif defined __osf__
4083 /* This system does not cope well with relocations in const data. */
4084 # define LT@&t@_DLSYM_CONST
4085 #else
4086 # define LT@&t@_DLSYM_CONST const
4087 #endif
4088
4089 #ifdef __cplusplus
4090 extern "C" {
4091 #endif
4092
4093 _LT_EOF
4094 # Now generate the symbol file.
4095 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
4096
4097 cat <<_LT_EOF >> conftest.$ac_ext
4098
4099 /* The mapping between symbol names and symbols. */
4100 LT@&t@_DLSYM_CONST struct {
4101 const char *name;
4102 void *address;
4103 }
4104 lt__PROGRAM__LTX_preloaded_symbols[[]] =
4105 {
4106 { "@PROGRAM@", (void *) 0 },
4107 _LT_EOF
4108 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
4109 cat <<\_LT_EOF >> conftest.$ac_ext
4110 {0, (void *) 0}
4111 };
4112
4113 /* This works around a problem in FreeBSD linker */
4114 #ifdef FREEBSD_WORKAROUND
4115 static const void *lt_preloaded_setup() {
4116 return lt__PROGRAM__LTX_preloaded_symbols;
4117 }
4118 #endif
4119
4120 #ifdef __cplusplus
4121 }
4122 #endif
4123 _LT_EOF
4124 # Now try linking the two files.
4125 mv conftest.$ac_objext conftstm.$ac_objext
4126 lt_globsym_save_LIBS=$LIBS
4127 lt_globsym_save_CFLAGS=$CFLAGS
4128 LIBS=conftstm.$ac_objext
4129 CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
4130 if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
4131 pipe_works=yes
4132 fi
4133 LIBS=$lt_globsym_save_LIBS
4134 CFLAGS=$lt_globsym_save_CFLAGS
4135 else
4136 echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
4137 fi
4138 else
4139 echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
4140 fi
4141 else
4142 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
4143 fi
4144 else
4145 echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
4146 cat conftest.$ac_ext >&5
4147 fi
4148 rm -rf conftest* conftst*
4149
4150 # Do not use the global_symbol_pipe unless it works.
4151 if test yes = "$pipe_works"; then
4152 break
4153 else
4154 lt_cv_sys_global_symbol_pipe=
4155 fi
4156 done
4157 ])
4158 if test -z "$lt_cv_sys_global_symbol_pipe"; then
4159 lt_cv_sys_global_symbol_to_cdecl=
4160 fi
4161 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
4162 AC_MSG_RESULT(failed)
4163 else
4164 AC_MSG_RESULT(ok)
4165 fi
4166
4167 # Response file support.
4168 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
4169 nm_file_list_spec='@'
4170 elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then
4171 nm_file_list_spec='@'
4172 fi
4173
4174 _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
4175 [Take the output of nm and produce a listing of raw symbols and C names])
4176 _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
4177 [Transform the output of nm in a proper C declaration])
4178 _LT_DECL([global_symbol_to_import], [lt_cv_sys_global_symbol_to_import], [1],
4179 [Transform the output of nm into a list of symbols to manually relocate])
4180 _LT_DECL([global_symbol_to_c_name_address],
4181 [lt_cv_sys_global_symbol_to_c_name_address], [1],
4182 [Transform the output of nm in a C name address pair])
4183 _LT_DECL([global_symbol_to_c_name_address_lib_prefix],
4184 [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
4185 [Transform the output of nm in a C name address pair when lib prefix is needed])
4186 _LT_DECL([nm_interface], [lt_cv_nm_interface], [1],
4187 [The name lister interface])
4188 _LT_DECL([], [nm_file_list_spec], [1],
4189 [Specify filename containing input files for $NM])
4190 ]) # _LT_CMD_GLOBAL_SYMBOLS
4191
4192
4193 # _LT_COMPILER_PIC([TAGNAME])
4194 # ---------------------------
4195 m4_defun([_LT_COMPILER_PIC],
4196 [m4_require([_LT_TAG_COMPILER])dnl
4197 _LT_TAGVAR(lt_prog_compiler_wl, $1)=
4198 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4199 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4200
4201 m4_if([$1], [CXX], [
4202 # C++ specific cases for pic, static, wl, etc.
4203 if test yes = "$GXX"; then
4204 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4205 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4206
4207 case $host_os in
4208 aix*)
4209 # All AIX code is PIC.
4210 if test ia64 = "$host_cpu"; then
4211 # AIX 5 now supports IA64 processor
4212 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4213 fi
4214 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4215 ;;
4216
4217 amigaos*)
4218 case $host_cpu in
4219 powerpc)
4220 # see comment about AmigaOS4 .so support
4221 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4222 ;;
4223 m68k)
4224 # FIXME: we need at least 68020 code to build shared libraries, but
4225 # adding the '-m68020' flag to GCC prevents building anything better,
4226 # like '-m68040'.
4227 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4228 ;;
4229 esac
4230 ;;
4231
4232 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4233 # PIC is the default for these OSes.
4234 ;;
4235 mingw* | cygwin* | os2* | pw32* | cegcc*)
4236 # This hack is so that the source file can tell whether it is being
4237 # built for inclusion in a dll (and should export symbols for example).
4238 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4239 # (--disable-auto-import) libraries
4240 m4_if([$1], [GCJ], [],
4241 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4242 case $host_os in
4243 os2*)
4244 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4245 ;;
4246 esac
4247 ;;
4248 darwin* | rhapsody*)
4249 # PIC is the default on this platform
4250 # Common symbols not allowed in MH_DYLIB files
4251 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4252 ;;
4253 *djgpp*)
4254 # DJGPP does not support shared libraries at all
4255 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4256 ;;
4257 haiku*)
4258 # PIC is the default for Haiku.
4259 # The "-static" flag exists, but is broken.
4260 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4261 ;;
4262 interix[[3-9]]*)
4263 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4264 # Instead, we relocate shared libraries at runtime.
4265 ;;
4266 sysv4*MP*)
4267 if test -d /usr/nec; then
4268 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4269 fi
4270 ;;
4271 hpux*)
4272 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4273 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4274 # sets the default TLS model and affects inlining.
4275 case $host_cpu in
4276 hppa*64*)
4277 ;;
4278 *)
4279 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4280 ;;
4281 esac
4282 ;;
4283 *qnx* | *nto*)
4284 # QNX uses GNU C++, but need to define -shared option too, otherwise
4285 # it will coredump.
4286 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4287 ;;
4288 *)
4289 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4290 ;;
4291 esac
4292 else
4293 case $host_os in
4294 aix[[4-9]]*)
4295 # All AIX code is PIC.
4296 if test ia64 = "$host_cpu"; then
4297 # AIX 5 now supports IA64 processor
4298 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4299 else
4300 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4301 fi
4302 ;;
4303 chorus*)
4304 case $cc_basename in
4305 cxch68*)
4306 # Green Hills C++ Compiler
4307 # _LT_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"
4308 ;;
4309 esac
4310 ;;
4311 mingw* | cygwin* | os2* | pw32* | cegcc*)
4312 # This hack is so that the source file can tell whether it is being
4313 # built for inclusion in a dll (and should export symbols for example).
4314 m4_if([$1], [GCJ], [],
4315 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4316 ;;
4317 dgux*)
4318 case $cc_basename in
4319 ec++*)
4320 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4321 ;;
4322 ghcx*)
4323 # Green Hills C++ Compiler
4324 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4325 ;;
4326 *)
4327 ;;
4328 esac
4329 ;;
4330 freebsd* | dragonfly*)
4331 # FreeBSD uses GNU C++
4332 ;;
4333 hpux9* | hpux10* | hpux11*)
4334 case $cc_basename in
4335 CC*)
4336 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4337 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4338 if test ia64 != "$host_cpu"; then
4339 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4340 fi
4341 ;;
4342 aCC*)
4343 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4344 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4345 case $host_cpu in
4346 hppa*64*|ia64*)
4347 # +Z the default
4348 ;;
4349 *)
4350 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4351 ;;
4352 esac
4353 ;;
4354 *)
4355 ;;
4356 esac
4357 ;;
4358 interix*)
4359 # This is c89, which is MS Visual C++ (no shared libs)
4360 # Anyone wants to do a port?
4361 ;;
4362 irix5* | irix6* | nonstopux*)
4363 case $cc_basename in
4364 CC*)
4365 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4366 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4367 # CC pic flag -KPIC is the default.
4368 ;;
4369 *)
4370 ;;
4371 esac
4372 ;;
4373 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4374 case $cc_basename in
4375 KCC*)
4376 # KAI C++ Compiler
4377 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4378 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4379 ;;
4380 ecpc* )
4381 # old Intel C++ for x86_64, which still supported -KPIC.
4382 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4383 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4384 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4385 ;;
4386 icpc* )
4387 # Intel C++, used to be incompatible with GCC.
4388 # ICC 10 doesn't accept -KPIC any more.
4389 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4390 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4391 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4392 ;;
4393 pgCC* | pgcpp*)
4394 # Portland Group C++ compiler
4395 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4396 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4397 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4398 ;;
4399 cxx*)
4400 # Compaq C++
4401 # Make sure the PIC flag is empty. It appears that all Alpha
4402 # Linux and Compaq Tru64 Unix objects are PIC.
4403 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4404 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4405 ;;
4406 xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*)
4407 # IBM XL 8.0, 9.0 on PPC and BlueGene
4408 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4409 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4410 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4411 ;;
4412 *)
4413 case `$CC -V 2>&1 | sed 5q` in
4414 *Sun\ C*)
4415 # Sun C++ 5.9
4416 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4417 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4418 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4419 ;;
4420 esac
4421 ;;
4422 esac
4423 ;;
4424 lynxos*)
4425 ;;
4426 m88k*)
4427 ;;
4428 mvs*)
4429 case $cc_basename in
4430 cxx*)
4431 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
4432 ;;
4433 *)
4434 ;;
4435 esac
4436 ;;
4437 netbsd* | netbsdelf*-gnu)
4438 ;;
4439 *qnx* | *nto*)
4440 # QNX uses GNU C++, but need to define -shared option too, otherwise
4441 # it will coredump.
4442 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4443 ;;
4444 osf3* | osf4* | osf5*)
4445 case $cc_basename in
4446 KCC*)
4447 _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
4448 ;;
4449 RCC*)
4450 # Rational C++ 2.4.1
4451 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4452 ;;
4453 cxx*)
4454 # Digital/Compaq C++
4455 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4456 # Make sure the PIC flag is empty. It appears that all Alpha
4457 # Linux and Compaq Tru64 Unix objects are PIC.
4458 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4459 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4460 ;;
4461 *)
4462 ;;
4463 esac
4464 ;;
4465 psos*)
4466 ;;
4467 solaris*)
4468 case $cc_basename in
4469 CC* | sunCC*)
4470 # Sun C++ 4.2, 5.x and Centerline C++
4471 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4472 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4473 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4474 ;;
4475 gcx*)
4476 # Green Hills C++ Compiler
4477 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4478 ;;
4479 *)
4480 ;;
4481 esac
4482 ;;
4483 sunos4*)
4484 case $cc_basename in
4485 CC*)
4486 # Sun C++ 4.x
4487 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4488 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4489 ;;
4490 lcc*)
4491 # Lucid
4492 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4493 ;;
4494 *)
4495 ;;
4496 esac
4497 ;;
4498 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4499 case $cc_basename in
4500 CC*)
4501 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4502 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4503 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4504 ;;
4505 esac
4506 ;;
4507 tandem*)
4508 case $cc_basename in
4509 NCC*)
4510 # NonStop-UX NCC 3.20
4511 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4512 ;;
4513 *)
4514 ;;
4515 esac
4516 ;;
4517 vxworks*)
4518 ;;
4519 *)
4520 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4521 ;;
4522 esac
4523 fi
4524 ],
4525 [
4526 if test yes = "$GCC"; then
4527 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4528 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4529
4530 case $host_os in
4531 aix*)
4532 # All AIX code is PIC.
4533 if test ia64 = "$host_cpu"; then
4534 # AIX 5 now supports IA64 processor
4535 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4536 fi
4537 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4538 ;;
4539
4540 amigaos*)
4541 case $host_cpu in
4542 powerpc)
4543 # see comment about AmigaOS4 .so support
4544 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4545 ;;
4546 m68k)
4547 # FIXME: we need at least 68020 code to build shared libraries, but
4548 # adding the '-m68020' flag to GCC prevents building anything better,
4549 # like '-m68040'.
4550 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
4551 ;;
4552 esac
4553 ;;
4554
4555 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
4556 # PIC is the default for these OSes.
4557 ;;
4558
4559 mingw* | cygwin* | pw32* | os2* | cegcc*)
4560 # This hack is so that the source file can tell whether it is being
4561 # built for inclusion in a dll (and should export symbols for example).
4562 # Although the cygwin gcc ignores -fPIC, still need this for old-style
4563 # (--disable-auto-import) libraries
4564 m4_if([$1], [GCJ], [],
4565 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4566 case $host_os in
4567 os2*)
4568 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4569 ;;
4570 esac
4571 ;;
4572
4573 darwin* | rhapsody*)
4574 # PIC is the default on this platform
4575 # Common symbols not allowed in MH_DYLIB files
4576 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4577 ;;
4578
4579 haiku*)
4580 # PIC is the default for Haiku.
4581 # The "-static" flag exists, but is broken.
4582 _LT_TAGVAR(lt_prog_compiler_static, $1)=
4583 ;;
4584
4585 hpux*)
4586 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
4587 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
4588 # sets the default TLS model and affects inlining.
4589 case $host_cpu in
4590 hppa*64*)
4591 # +Z the default
4592 ;;
4593 *)
4594 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4595 ;;
4596 esac
4597 ;;
4598
4599 interix[[3-9]]*)
4600 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
4601 # Instead, we relocate shared libraries at runtime.
4602 ;;
4603
4604 msdosdjgpp*)
4605 # Just because we use GCC doesn't mean we suddenly get shared libraries
4606 # on systems that don't support them.
4607 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4608 enable_shared=no
4609 ;;
4610
4611 *nto* | *qnx*)
4612 # QNX uses GNU C++, but need to define -shared option too, otherwise
4613 # it will coredump.
4614 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4615 ;;
4616
4617 sysv4*MP*)
4618 if test -d /usr/nec; then
4619 _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
4620 fi
4621 ;;
4622
4623 *)
4624 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4625 ;;
4626 esac
4627
4628 case $cc_basename in
4629 nvcc*) # Cuda Compiler Driver 2.2
4630 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker '
4631 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4632 _LT_TAGVAR(lt_prog_compiler_pic, $1)="-Xcompiler $_LT_TAGVAR(lt_prog_compiler_pic, $1)"
4633 fi
4634 ;;
4635 esac
4636 else
4637 # PORTME Check for flag to pass linker flags through the system compiler.
4638 case $host_os in
4639 aix*)
4640 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4641 if test ia64 = "$host_cpu"; then
4642 # AIX 5 now supports IA64 processor
4643 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4644 else
4645 _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
4646 fi
4647 ;;
4648
4649 darwin* | rhapsody*)
4650 # PIC is the default on this platform
4651 # Common symbols not allowed in MH_DYLIB files
4652 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
4653 case $cc_basename in
4654 nagfor*)
4655 # NAG Fortran compiler
4656 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4657 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4658 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4659 ;;
4660 esac
4661 ;;
4662
4663 mingw* | cygwin* | pw32* | os2* | cegcc*)
4664 # This hack is so that the source file can tell whether it is being
4665 # built for inclusion in a dll (and should export symbols for example).
4666 m4_if([$1], [GCJ], [],
4667 [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
4668 case $host_os in
4669 os2*)
4670 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-static'
4671 ;;
4672 esac
4673 ;;
4674
4675 hpux9* | hpux10* | hpux11*)
4676 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
4678 # not for PA HP-UX.
4679 case $host_cpu in
4680 hppa*64*|ia64*)
4681 # +Z the default
4682 ;;
4683 *)
4684 _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
4685 ;;
4686 esac
4687 # Is there a better lt_prog_compiler_static that works with the bundled CC?
4688 _LT_TAGVAR(lt_prog_compiler_static, $1)='$wl-a ${wl}archive'
4689 ;;
4690
4691 irix5* | irix6* | nonstopux*)
4692 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4693 # PIC (with -KPIC) is the default.
4694 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4695 ;;
4696
4697 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
4698 case $cc_basename in
4699 # old Intel for x86_64, which still supported -KPIC.
4700 ecc*)
4701 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4702 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4703 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4704 ;;
4705 # icc used to be incompatible with GCC.
4706 # ICC 10 doesn't accept -KPIC any more.
4707 icc* | ifort*)
4708 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4709 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4710 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4711 ;;
4712 # Lahey Fortran 8.1.
4713 lf95*)
4714 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4715 _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
4716 _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
4717 ;;
4718 nagfor*)
4719 # NAG Fortran compiler
4720 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,'
4721 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4722 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4723 ;;
4724 tcc*)
4725 # Fabrice Bellard et al's Tiny C Compiler
4726 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4727 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4728 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4729 ;;
4730 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
4731 # Portland Group compilers (*not* the Pentium gcc compiler,
4732 # which looks to be a dead project)
4733 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4734 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4735 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4736 ;;
4737 ccc*)
4738 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4739 # All Alpha code is PIC.
4740 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4741 ;;
4742 xl* | bgxl* | bgf* | mpixl*)
4743 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
4744 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4745 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
4746 _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
4747 ;;
4748 *)
4749 case `$CC -V 2>&1 | sed 5q` in
4750 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*)
4751 # Sun Fortran 8.3 passes all unrecognized flags to the linker
4752 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4753 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4754 _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
4755 ;;
4756 *Sun\ F* | *Sun*Fortran*)
4757 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4758 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4759 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4760 ;;
4761 *Sun\ C*)
4762 # Sun C 5.9
4763 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4764 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4765 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4766 ;;
4767 *Intel*\ [[CF]]*Compiler*)
4768 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4769 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
4770 _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
4771 ;;
4772 *Portland\ Group*)
4773 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4774 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
4775 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4776 ;;
4777 esac
4778 ;;
4779 esac
4780 ;;
4781
4782 newsos6)
4783 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4784 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4785 ;;
4786
4787 *nto* | *qnx*)
4788 # QNX uses GNU C++, but need to define -shared option too, otherwise
4789 # it will coredump.
4790 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
4791 ;;
4792
4793 osf3* | osf4* | osf5*)
4794 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4795 # All OSF/1 code is PIC.
4796 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4797 ;;
4798
4799 rdos*)
4800 _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
4801 ;;
4802
4803 solaris*)
4804 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4805 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4806 case $cc_basename in
4807 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
4808 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
4809 *)
4810 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
4811 esac
4812 ;;
4813
4814 sunos4*)
4815 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
4816 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
4817 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4818 ;;
4819
4820 sysv4 | sysv4.2uw2* | sysv4.3*)
4821 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4822 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4823 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4824 ;;
4825
4826 sysv4*MP*)
4827 if test -d /usr/nec; then
4828 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
4829 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4830 fi
4831 ;;
4832
4833 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
4834 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4835 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
4836 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4837 ;;
4838
4839 unicos*)
4840 _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
4841 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4842 ;;
4843
4844 uts4*)
4845 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
4846 _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
4847 ;;
4848
4849 *)
4850 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
4851 ;;
4852 esac
4853 fi
4854 ])
4855 case $host_os in
4856 # For platforms that do not support PIC, -DPIC is meaningless:
4857 *djgpp*)
4858 _LT_TAGVAR(lt_prog_compiler_pic, $1)=
4859 ;;
4860 *)
4861 _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
4862 ;;
4863 esac
4864
4865 AC_CACHE_CHECK([for $compiler option to produce PIC],
4866 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)],
4867 [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
4868 _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)
4869
4870 #
4871 # Check to make sure the PIC flag actually works.
4872 #
4873 if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
4874 _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
4875 [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
4876 [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
4877 [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
4878 "" | " "*) ;;
4879 *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
4880 esac],
4881 [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
4882 _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
4883 fi
4884 _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
4885 [Additional compiler flags for building library objects])
4886
4887 _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
4888 [How to pass a linker flag through the compiler])
4889 #
4890 # Check to make sure the static flag actually works.
4891 #
4892 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
4893 _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
4894 _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
4895 $lt_tmp_static_flag,
4896 [],
4897 [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
4898 _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
4899 [Compiler flag to prevent dynamic linking])
4900 ])# _LT_COMPILER_PIC
4901
4902
4903 # _LT_LINKER_SHLIBS([TAGNAME])
4904 # ----------------------------
4905 # See if the linker supports building shared libraries.
4906 m4_defun([_LT_LINKER_SHLIBS],
4907 [AC_REQUIRE([LT_PATH_LD])dnl
4908 AC_REQUIRE([LT_PATH_NM])dnl
4909 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
4910 m4_require([_LT_FILEUTILS_DEFAULTS])dnl
4911 m4_require([_LT_DECL_EGREP])dnl
4912 m4_require([_LT_DECL_SED])dnl
4913 m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
4914 m4_require([_LT_TAG_COMPILER])dnl
4915 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
4916 m4_if([$1], [CXX], [
4917 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4918 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4919 case $host_os in
4920 aix[[4-9]]*)
4921 # If we're using GNU nm, then we don't want the "-C" option.
4922 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
4923 # Without the "-l" option, or with the "-B" option, AIX nm treats
4924 # weak defined symbols like other global defined symbols, whereas
4925 # GNU nm marks them as "W".
4926 # While the 'weak' keyword is ignored in the Export File, we need
4927 # it in the Import File for the 'aix-soname' feature, so we have
4928 # to replace the "-B" option with "-P" for AIX nm.
4929 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
4930 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
4931 else
4932 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
4933 fi
4934 ;;
4935 pw32*)
4936 _LT_TAGVAR(export_symbols_cmds, $1)=$ltdll_cmds
4937 ;;
4938 cygwin* | mingw* | cegcc*)
4939 case $cc_basename in
4940 cl*)
4941 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
4942 ;;
4943 *)
4944 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
4945 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
4946 ;;
4947 esac
4948 ;;
4949 linux* | k*bsd*-gnu | gnu*)
4950 _LT_TAGVAR(link_all_deplibs, $1)=no
4951 ;;
4952 *)
4953 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4954 ;;
4955 esac
4956 ], [
4957 runpath_var=
4958 _LT_TAGVAR(allow_undefined_flag, $1)=
4959 _LT_TAGVAR(always_export_symbols, $1)=no
4960 _LT_TAGVAR(archive_cmds, $1)=
4961 _LT_TAGVAR(archive_expsym_cmds, $1)=
4962 _LT_TAGVAR(compiler_needs_object, $1)=no
4963 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
4964 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
4965 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4966 _LT_TAGVAR(hardcode_automatic, $1)=no
4967 _LT_TAGVAR(hardcode_direct, $1)=no
4968 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
4969 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
4970 _LT_TAGVAR(hardcode_libdir_separator, $1)=
4971 _LT_TAGVAR(hardcode_minus_L, $1)=no
4972 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
4973 _LT_TAGVAR(inherit_rpath, $1)=no
4974 _LT_TAGVAR(link_all_deplibs, $1)=unknown
4975 _LT_TAGVAR(module_cmds, $1)=
4976 _LT_TAGVAR(module_expsym_cmds, $1)=
4977 _LT_TAGVAR(old_archive_from_new_cmds, $1)=
4978 _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
4979 _LT_TAGVAR(thread_safe_flag_spec, $1)=
4980 _LT_TAGVAR(whole_archive_flag_spec, $1)=
4981 # include_expsyms should be a list of space-separated symbols to be *always*
4982 # included in the symbol list
4983 _LT_TAGVAR(include_expsyms, $1)=
4984 # exclude_expsyms can be an extended regexp of symbols to exclude
4985 # it will be wrapped by ' (' and ')$', so one must not match beginning or
4986 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
4987 # as well as any symbol that contains 'd'.
4988 _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
4989 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
4990 # platforms (ab)use it in PIC code, but their linkers get confused if
4991 # the symbol is explicitly referenced. Since portable code cannot
4992 # rely on this symbol name, it's probably fine to never include it in
4993 # preloaded symbol tables.
4994 # Exclude shared library initialization/finalization symbols.
4995 dnl Note also adjust exclude_expsyms for C++ above.
4996 extract_expsyms_cmds=
4997
4998 case $host_os in
4999 cygwin* | mingw* | pw32* | cegcc*)
5000 # FIXME: the MSVC++ port hasn't been tested in a loooong time
5001 # When not using gcc, we currently assume that we are using
5002 # Microsoft Visual C++.
5003 if test yes != "$GCC"; then
5004 with_gnu_ld=no
5005 fi
5006 ;;
5007 interix*)
5008 # we just hope/assume this is gcc and not c89 (= MSVC++)
5009 with_gnu_ld=yes
5010 ;;
5011 openbsd* | bitrig*)
5012 with_gnu_ld=no
5013 ;;
5014 linux* | k*bsd*-gnu | gnu*)
5015 _LT_TAGVAR(link_all_deplibs, $1)=no
5016 ;;
5017 esac
5018
5019 _LT_TAGVAR(ld_shlibs, $1)=yes
5020
5021 # On some targets, GNU ld is compatible enough with the native linker
5022 # that we're better off using the native interface for both.
5023 lt_use_gnu_ld_interface=no
5024 if test yes = "$with_gnu_ld"; then
5025 case $host_os in
5026 aix*)
5027 # The AIX port of GNU ld has always aspired to compatibility
5028 # with the native linker. However, as the warning in the GNU ld
5029 # block says, versions before 2.19.5* couldn't really create working
5030 # shared libraries, regardless of the interface used.
5031 case `$LD -v 2>&1` in
5032 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
5033 *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;;
5034 *\ \(GNU\ Binutils\)\ [[3-9]]*) ;;
5035 *)
5036 lt_use_gnu_ld_interface=yes
5037 ;;
5038 esac
5039 ;;
5040 *)
5041 lt_use_gnu_ld_interface=yes
5042 ;;
5043 esac
5044 fi
5045
5046 if test yes = "$lt_use_gnu_ld_interface"; then
5047 # If archive_cmds runs LD, not CC, wlarc should be empty
5048 wlarc='$wl'
5049
5050 # Set some defaults for GNU ld with shared library support. These
5051 # are reset later if shared libraries are not supported. Putting them
5052 # here allows them to be overridden if necessary.
5053 runpath_var=LD_RUN_PATH
5054 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5055 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
5056 # ancient GNU ld didn't support --whole-archive et. al.
5057 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
5058 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
5059 else
5060 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5061 fi
5062 supports_anon_versioning=no
5063 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
5064 *GNU\ gold*) supports_anon_versioning=yes ;;
5065 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
5066 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
5067 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
5068 *\ 2.11.*) ;; # other 2.11 versions
5069 *) supports_anon_versioning=yes ;;
5070 esac
5071
5072 # See if GNU ld supports shared libraries.
5073 case $host_os in
5074 aix[[3-9]]*)
5075 # On AIX/PPC, the GNU linker is very broken
5076 if test ia64 != "$host_cpu"; then
5077 _LT_TAGVAR(ld_shlibs, $1)=no
5078 cat <<_LT_EOF 1>&2
5079
5080 *** Warning: the GNU linker, at least up to release 2.19, is reported
5081 *** to be unable to reliably create shared libraries on AIX.
5082 *** Therefore, libtool is disabling shared libraries support. If you
5083 *** really care for shared libraries, you may want to install binutils
5084 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
5085 *** You will then need to restart the configuration process.
5086
5087 _LT_EOF
5088 fi
5089 ;;
5090
5091 amigaos*)
5092 case $host_cpu in
5093 powerpc)
5094 # see comment about AmigaOS4 .so support
5095 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5096 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5097 ;;
5098 m68k)
5099 _LT_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)'
5100 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5101 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5102 ;;
5103 esac
5104 ;;
5105
5106 beos*)
5107 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5108 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5109 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
5110 # support --undefined. This deserves some investigation. FIXME
5111 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5112 else
5113 _LT_TAGVAR(ld_shlibs, $1)=no
5114 fi
5115 ;;
5116
5117 cygwin* | mingw* | pw32* | cegcc*)
5118 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
5119 # as there is no search path for DLLs.
5120 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5121 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
5122 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5123 _LT_TAGVAR(always_export_symbols, $1)=no
5124 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5125 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
5126 _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname']
5127
5128 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
5129 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5130 # If the export-symbols file already is a .def file, use it as
5131 # is; otherwise, prepend EXPORTS...
5132 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5133 cp $export_symbols $output_objdir/$soname.def;
5134 else
5135 echo EXPORTS > $output_objdir/$soname.def;
5136 cat $export_symbols >> $output_objdir/$soname.def;
5137 fi~
5138 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
5139 else
5140 _LT_TAGVAR(ld_shlibs, $1)=no
5141 fi
5142 ;;
5143
5144 haiku*)
5145 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5146 _LT_TAGVAR(link_all_deplibs, $1)=yes
5147 ;;
5148
5149 os2*)
5150 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5151 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5152 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5153 shrext_cmds=.dll
5154 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5155 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5156 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5157 $ECHO EXPORTS >> $output_objdir/$libname.def~
5158 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5159 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5160 emximp -o $lib $output_objdir/$libname.def'
5161 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5162 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5163 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5164 $ECHO EXPORTS >> $output_objdir/$libname.def~
5165 prefix_cmds="$SED"~
5166 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5167 prefix_cmds="$prefix_cmds -e 1d";
5168 fi~
5169 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5170 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5171 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5172 emximp -o $lib $output_objdir/$libname.def'
5173 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5174 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5175 ;;
5176
5177 interix[[3-9]]*)
5178 _LT_TAGVAR(hardcode_direct, $1)=no
5179 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5180 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5181 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5182 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
5183 # Instead, shared libraries are loaded at an image base (0x10000000 by
5184 # default) and relocated if they conflict, which is a slow very memory
5185 # consuming and fragmenting process. To avoid this, we pick a random,
5186 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
5187 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
5188 _LT_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'
5189 _LT_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'
5190 ;;
5191
5192 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
5193 tmp_diet=no
5194 if test linux-dietlibc = "$host_os"; then
5195 case $cc_basename in
5196 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
5197 esac
5198 fi
5199 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
5200 && test no = "$tmp_diet"
5201 then
5202 tmp_addflag=' $pic_flag'
5203 tmp_sharedflag='-shared'
5204 case $cc_basename,$host_cpu in
5205 pgcc*) # Portland Group C compiler
5206 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5207 tmp_addflag=' $pic_flag'
5208 ;;
5209 pgf77* | pgf90* | pgf95* | pgfortran*)
5210 # Portland Group f77 and f90 compilers
5211 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5212 tmp_addflag=' $pic_flag -Mnomain' ;;
5213 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
5214 tmp_addflag=' -i_dynamic' ;;
5215 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
5216 tmp_addflag=' -i_dynamic -nofor_main' ;;
5217 ifc* | ifort*) # Intel Fortran compiler
5218 tmp_addflag=' -nofor_main' ;;
5219 lf95*) # Lahey Fortran 8.1
5220 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5221 tmp_sharedflag='--shared' ;;
5222 nagfor*) # NAGFOR 5.3
5223 tmp_sharedflag='-Wl,-shared' ;;
5224 xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
5225 tmp_sharedflag='-qmkshrobj'
5226 tmp_addflag= ;;
5227 nvcc*) # Cuda Compiler Driver 2.2
5228 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5229 _LT_TAGVAR(compiler_needs_object, $1)=yes
5230 ;;
5231 esac
5232 case `$CC -V 2>&1 | sed 5q` in
5233 *Sun\ C*) # Sun C 5.9
5234 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
5235 _LT_TAGVAR(compiler_needs_object, $1)=yes
5236 tmp_sharedflag='-G' ;;
5237 *Sun\ F*) # Sun Fortran 8.3
5238 tmp_sharedflag='-G' ;;
5239 esac
5240 _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5241
5242 if test yes = "$supports_anon_versioning"; then
5243 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5244 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5245 echo "local: *; };" >> $output_objdir/$libname.ver~
5246 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
5247 fi
5248
5249 case $cc_basename in
5250 tcc*)
5251 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-rdynamic'
5252 ;;
5253 xlf* | bgf* | bgxlf* | mpixlf*)
5254 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
5255 _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
5256 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5257 _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
5258 if test yes = "$supports_anon_versioning"; then
5259 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
5260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
5261 echo "local: *; };" >> $output_objdir/$libname.ver~
5262 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
5263 fi
5264 ;;
5265 esac
5266 else
5267 _LT_TAGVAR(ld_shlibs, $1)=no
5268 fi
5269 ;;
5270
5271 netbsd* | netbsdelf*-gnu)
5272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5273 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5274 wlarc=
5275 else
5276 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5277 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5278 fi
5279 ;;
5280
5281 solaris*)
5282 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
5283 _LT_TAGVAR(ld_shlibs, $1)=no
5284 cat <<_LT_EOF 1>&2
5285
5286 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
5287 *** create shared libraries on Solaris systems. Therefore, libtool
5288 *** is disabling shared libraries support. We urge you to upgrade GNU
5289 *** binutils to release 2.9.1 or newer. Another option is to modify
5290 *** your PATH or compiler configuration so that the native linker is
5291 *** used, and then restart.
5292
5293 _LT_EOF
5294 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5295 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5296 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5297 else
5298 _LT_TAGVAR(ld_shlibs, $1)=no
5299 fi
5300 ;;
5301
5302 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
5303 case `$LD -v 2>&1` in
5304 *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
5305 _LT_TAGVAR(ld_shlibs, $1)=no
5306 cat <<_LT_EOF 1>&2
5307
5308 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
5309 *** reliably create shared libraries on SCO systems. Therefore, libtool
5310 *** is disabling shared libraries support. We urge you to upgrade GNU
5311 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
5312 *** your PATH or compiler configuration so that the native linker is
5313 *** used, and then restart.
5314
5315 _LT_EOF
5316 ;;
5317 *)
5318 # For security reasons, it is highly recommended that you always
5319 # use absolute paths for naming shared libraries, and exclude the
5320 # DT_RUNPATH tag from executables and libraries. But doing so
5321 # requires that you compile everything twice, which is a pain.
5322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5323 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5324 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5325 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5326 else
5327 _LT_TAGVAR(ld_shlibs, $1)=no
5328 fi
5329 ;;
5330 esac
5331 ;;
5332
5333 sunos4*)
5334 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5335 wlarc=
5336 _LT_TAGVAR(hardcode_direct, $1)=yes
5337 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5338 ;;
5339
5340 *)
5341 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
5342 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5343 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
5344 else
5345 _LT_TAGVAR(ld_shlibs, $1)=no
5346 fi
5347 ;;
5348 esac
5349
5350 if test no = "$_LT_TAGVAR(ld_shlibs, $1)"; then
5351 runpath_var=
5352 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
5353 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
5354 _LT_TAGVAR(whole_archive_flag_spec, $1)=
5355 fi
5356 else
5357 # PORTME fill in a description of your system's linker (not GNU ld)
5358 case $host_os in
5359 aix3*)
5360 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5361 _LT_TAGVAR(always_export_symbols, $1)=yes
5362 _LT_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'
5363 # Note: this linker hardcodes the directories in LIBPATH if there
5364 # are no directories specified by -L.
5365 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5366 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
5367 # Neither direct hardcoding nor static linking is supported with a
5368 # broken collect2.
5369 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5370 fi
5371 ;;
5372
5373 aix[[4-9]]*)
5374 if test ia64 = "$host_cpu"; then
5375 # On IA64, the linker does run time linking by default, so we don't
5376 # have to do anything special.
5377 aix_use_runtimelinking=no
5378 exp_sym_flag='-Bexport'
5379 no_entry_flag=
5380 else
5381 # If we're using GNU nm, then we don't want the "-C" option.
5382 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
5383 # Without the "-l" option, or with the "-B" option, AIX nm treats
5384 # weak defined symbols like other global defined symbols, whereas
5385 # GNU nm marks them as "W".
5386 # While the 'weak' keyword is ignored in the Export File, we need
5387 # it in the Import File for the 'aix-soname' feature, so we have
5388 # to replace the "-B" option with "-P" for AIX nm.
5389 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
5390 _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
5391 else
5392 _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
5393 fi
5394 aix_use_runtimelinking=no
5395
5396 # Test if we are trying to use run time linking or normal
5397 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
5398 # have runtime linking enabled, and use it for executables.
5399 # For shared libraries, we enable/disable runtime linking
5400 # depending on the kind of the shared library created -
5401 # when "with_aix_soname,aix_use_runtimelinking" is:
5402 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
5403 # "aix,yes" lib.so shared, rtl:yes, for executables
5404 # lib.a static archive
5405 # "both,no" lib.so.V(shr.o) shared, rtl:yes
5406 # lib.a(lib.so.V) shared, rtl:no, for executables
5407 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
5408 # lib.a(lib.so.V) shared, rtl:no
5409 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
5410 # lib.a static archive
5411 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
5412 for ld_flag in $LDFLAGS; do
5413 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
5414 aix_use_runtimelinking=yes
5415 break
5416 fi
5417 done
5418 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
5419 # With aix-soname=svr4, we create the lib.so.V shared archives only,
5420 # so we don't have lib.a shared libs to link our executables.
5421 # We have to force runtime linking in this case.
5422 aix_use_runtimelinking=yes
5423 LDFLAGS="$LDFLAGS -Wl,-brtl"
5424 fi
5425 ;;
5426 esac
5427
5428 exp_sym_flag='-bexport'
5429 no_entry_flag='-bnoentry'
5430 fi
5431
5432 # When large executables or shared objects are built, AIX ld can
5433 # have problems creating the table of contents. If linking a library
5434 # or program results in "error TOC overflow" add -mminimal-toc to
5435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
5436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
5437
5438 _LT_TAGVAR(archive_cmds, $1)=''
5439 _LT_TAGVAR(hardcode_direct, $1)=yes
5440 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5441 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
5442 _LT_TAGVAR(link_all_deplibs, $1)=yes
5443 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
5444 case $with_aix_soname,$aix_use_runtimelinking in
5445 aix,*) ;; # traditional, no import file
5446 svr4,* | *,yes) # use import file
5447 # The Import File defines what to hardcode.
5448 _LT_TAGVAR(hardcode_direct, $1)=no
5449 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
5450 ;;
5451 esac
5452
5453 if test yes = "$GCC"; then
5454 case $host_os in aix4.[[012]]|aix4.[[012]].*)
5455 # We only want to do this on AIX 4.2 and lower, the check
5456 # below for broken collect2 doesn't work under 4.3+
5457 collect2name=`$CC -print-prog-name=collect2`
5458 if test -f "$collect2name" &&
5459 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
5460 then
5461 # We have reworked collect2
5462 :
5463 else
5464 # We have old collect2
5465 _LT_TAGVAR(hardcode_direct, $1)=unsupported
5466 # It fails to find uninstalled libraries when the uninstalled
5467 # path is not listed in the libpath. Setting hardcode_minus_L
5468 # to unsupported forces relinking
5469 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5470 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5471 _LT_TAGVAR(hardcode_libdir_separator, $1)=
5472 fi
5473 ;;
5474 esac
5475 shared_flag='-shared'
5476 if test yes = "$aix_use_runtimelinking"; then
5477 shared_flag="$shared_flag "'$wl-G'
5478 fi
5479 # Need to ensure runtime linking is disabled for the traditional
5480 # shared library, or the linker may eventually find shared libraries
5481 # /with/ Import File - we do not want to mix them.
5482 shared_flag_aix='-shared'
5483 shared_flag_svr4='-shared $wl-G'
5484 else
5485 # not using gcc
5486 if test ia64 = "$host_cpu"; then
5487 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
5488 # chokes on -Wl,-G. The following line is correct:
5489 shared_flag='-G'
5490 else
5491 if test yes = "$aix_use_runtimelinking"; then
5492 shared_flag='$wl-G'
5493 else
5494 shared_flag='$wl-bM:SRE'
5495 fi
5496 shared_flag_aix='$wl-bM:SRE'
5497 shared_flag_svr4='$wl-G'
5498 fi
5499 fi
5500
5501 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
5502 # It seems that -bexpall does not export symbols beginning with
5503 # underscore (_), so it is better to generate a list of symbols to export.
5504 _LT_TAGVAR(always_export_symbols, $1)=yes
5505 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
5506 # Warning - without using the other runtime loading flags (-brtl),
5507 # -berok will link without error, but may produce a broken library.
5508 _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
5509 # Determine the default libpath from the value encoded in an
5510 # empty executable.
5511 _LT_SYS_MODULE_PATH_AIX([$1])
5512 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5513 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
5514 else
5515 if test ia64 = "$host_cpu"; then
5516 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
5517 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
5518 _LT_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"
5519 else
5520 # Determine the default libpath from the value encoded in an
5521 # empty executable.
5522 _LT_SYS_MODULE_PATH_AIX([$1])
5523 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
5524 # Warning - without using the other run time loading flags,
5525 # -berok will link without error, but may produce a broken library.
5526 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
5527 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
5528 if test yes = "$with_gnu_ld"; then
5529 # We only use this code for GNU lds that support --whole-archive.
5530 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
5531 else
5532 # Exported symbols can be pulled into shared objects from archives
5533 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
5534 fi
5535 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
5536 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
5537 # -brtl affects multiple linker settings, -berok does not and is overridden later
5538 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
5539 if test svr4 != "$with_aix_soname"; then
5540 # This is similar to how AIX traditionally builds its shared libraries.
5541 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
5542 fi
5543 if test aix != "$with_aix_soname"; then
5544 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
5545 else
5546 # used by -dlpreopen to get the symbols
5547 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
5548 fi
5549 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
5550 fi
5551 fi
5552 ;;
5553
5554 amigaos*)
5555 case $host_cpu in
5556 powerpc)
5557 # see comment about AmigaOS4 .so support
5558 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
5559 _LT_TAGVAR(archive_expsym_cmds, $1)=''
5560 ;;
5561 m68k)
5562 _LT_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)'
5563 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5564 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5565 ;;
5566 esac
5567 ;;
5568
5569 bsdi[[45]]*)
5570 _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
5571 ;;
5572
5573 cygwin* | mingw* | pw32* | cegcc*)
5574 # When not using gcc, we currently assume that we are using
5575 # Microsoft Visual C++.
5576 # hardcode_libdir_flag_spec is actually meaningless, as there is
5577 # no search path for DLLs.
5578 case $cc_basename in
5579 cl*)
5580 # Native MSVC
5581 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5582 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5583 _LT_TAGVAR(always_export_symbols, $1)=yes
5584 _LT_TAGVAR(file_list_spec, $1)='@'
5585 # Tell ltmain to make .lib files, not .a files.
5586 libext=lib
5587 # Tell ltmain to make .dll files, not .so files.
5588 shrext_cmds=.dll
5589 # FIXME: Setting linknames here is a bad hack.
5590 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
5591 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
5592 cp "$export_symbols" "$output_objdir/$soname.def";
5593 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
5594 else
5595 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
5596 fi~
5597 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
5598 linknames='
5599 # The linker will not automatically build a static lib if we build a DLL.
5600 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5601 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5602 _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
5603 _LT_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'
5604 # Don't use ranlib
5605 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
5606 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
5607 lt_tool_outputfile="@TOOL_OUTPUT@"~
5608 case $lt_outputfile in
5609 *.exe|*.EXE) ;;
5610 *)
5611 lt_outputfile=$lt_outputfile.exe
5612 lt_tool_outputfile=$lt_tool_outputfile.exe
5613 ;;
5614 esac~
5615 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
5616 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
5617 $RM "$lt_outputfile.manifest";
5618 fi'
5619 ;;
5620 *)
5621 # Assume MSVC wrapper
5622 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
5623 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5624 # Tell ltmain to make .lib files, not .a files.
5625 libext=lib
5626 # Tell ltmain to make .dll files, not .so files.
5627 shrext_cmds=.dll
5628 # FIXME: Setting linknames here is a bad hack.
5629 _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
5630 # The linker will automatically build a .lib file if we build a DLL.
5631 _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
5632 # FIXME: Should let the user specify the lib program.
5633 _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
5634 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5635 ;;
5636 esac
5637 ;;
5638
5639 darwin* | rhapsody*)
5640 _LT_DARWIN_LINKER_FEATURES($1)
5641 ;;
5642
5643 dgux*)
5644 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5645 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5646 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5647 ;;
5648
5649 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
5650 # support. Future versions do this automatically, but an explicit c++rt0.o
5651 # does not break anything, and helps significantly (at the cost of a little
5652 # extra space).
5653 freebsd2.2*)
5654 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
5655 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5656 _LT_TAGVAR(hardcode_direct, $1)=yes
5657 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5658 ;;
5659
5660 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
5661 freebsd2.*)
5662 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
5663 _LT_TAGVAR(hardcode_direct, $1)=yes
5664 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5665 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5666 ;;
5667
5668 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
5669 freebsd* | dragonfly*)
5670 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5671 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5672 _LT_TAGVAR(hardcode_direct, $1)=yes
5673 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5674 ;;
5675
5676 hpux9*)
5677 if test yes = "$GCC"; then
5678 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5679 else
5680 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
5681 fi
5682 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5683 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5684 _LT_TAGVAR(hardcode_direct, $1)=yes
5685
5686 # hardcode_minus_L: Not really in the search PATH,
5687 # but as the default location of the library.
5688 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5689 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5690 ;;
5691
5692 hpux10*)
5693 if test yes,no = "$GCC,$with_gnu_ld"; then
5694 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5695 else
5696 _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
5697 fi
5698 if test no = "$with_gnu_ld"; then
5699 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5700 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5701 _LT_TAGVAR(hardcode_direct, $1)=yes
5702 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5703 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5704 # hardcode_minus_L: Not really in the search PATH,
5705 # but as the default location of the library.
5706 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5707 fi
5708 ;;
5709
5710 hpux11*)
5711 if test yes,no = "$GCC,$with_gnu_ld"; then
5712 case $host_cpu in
5713 hppa*64*)
5714 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5715 ;;
5716 ia64*)
5717 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5718 ;;
5719 *)
5720 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
5721 ;;
5722 esac
5723 else
5724 case $host_cpu in
5725 hppa*64*)
5726 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5727 ;;
5728 ia64*)
5729 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
5730 ;;
5731 *)
5732 m4_if($1, [], [
5733 # Older versions of the 11.00 compiler do not understand -b yet
5734 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
5735 _LT_LINKER_OPTION([if $CC understands -b],
5736 _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b],
5737 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'],
5738 [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])],
5739 [_LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'])
5740 ;;
5741 esac
5742 fi
5743 if test no = "$with_gnu_ld"; then
5744 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
5745 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5746
5747 case $host_cpu in
5748 hppa*64*|ia64*)
5749 _LT_TAGVAR(hardcode_direct, $1)=no
5750 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5751 ;;
5752 *)
5753 _LT_TAGVAR(hardcode_direct, $1)=yes
5754 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5755 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5756
5757 # hardcode_minus_L: Not really in the search PATH,
5758 # but as the default location of the library.
5759 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5760 ;;
5761 esac
5762 fi
5763 ;;
5764
5765 irix5* | irix6* | nonstopux*)
5766 if test yes = "$GCC"; then
5767 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5768 # Try to use the -exported_symbol ld option, if it does not
5769 # work, assume that -exports_file does not work either and
5770 # implicitly export all symbols.
5771 # This should be the same for all languages, so no per-tag cache variable.
5772 AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol],
5773 [lt_cv_irix_exported_symbol],
5774 [save_LDFLAGS=$LDFLAGS
5775 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
5776 AC_LINK_IFELSE(
5777 [AC_LANG_SOURCE(
5778 [AC_LANG_CASE([C], [[int foo (void) { return 0; }]],
5779 [C++], [[int foo (void) { return 0; }]],
5780 [Fortran 77], [[
5781 subroutine foo
5782 end]],
5783 [Fortran], [[
5784 subroutine foo
5785 end]])])],
5786 [lt_cv_irix_exported_symbol=yes],
5787 [lt_cv_irix_exported_symbol=no])
5788 LDFLAGS=$save_LDFLAGS])
5789 if test yes = "$lt_cv_irix_exported_symbol"; then
5790 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
5791 fi
5792 _LT_TAGVAR(link_all_deplibs, $1)=no
5793 else
5794 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5795 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
5796 fi
5797 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5798 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5799 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5800 _LT_TAGVAR(inherit_rpath, $1)=yes
5801 _LT_TAGVAR(link_all_deplibs, $1)=yes
5802 ;;
5803
5804 linux*)
5805 case $cc_basename in
5806 tcc*)
5807 # Fabrice Bellard et al's Tiny C Compiler
5808 _LT_TAGVAR(ld_shlibs, $1)=yes
5809 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5810 ;;
5811 esac
5812 ;;
5813
5814 netbsd* | netbsdelf*-gnu)
5815 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5816 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5817 else
5818 _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
5819 fi
5820 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5821 _LT_TAGVAR(hardcode_direct, $1)=yes
5822 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5823 ;;
5824
5825 newsos6)
5826 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5827 _LT_TAGVAR(hardcode_direct, $1)=yes
5828 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5829 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5830 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5831 ;;
5832
5833 *nto* | *qnx*)
5834 ;;
5835
5836 openbsd* | bitrig*)
5837 if test -f /usr/libexec/ld.so; then
5838 _LT_TAGVAR(hardcode_direct, $1)=yes
5839 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5840 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
5841 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5842 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5843 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
5844 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5845 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
5846 else
5847 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
5848 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
5849 fi
5850 else
5851 _LT_TAGVAR(ld_shlibs, $1)=no
5852 fi
5853 ;;
5854
5855 os2*)
5856 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5857 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5858 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
5859 shrext_cmds=.dll
5860 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5861 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5862 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5863 $ECHO EXPORTS >> $output_objdir/$libname.def~
5864 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
5865 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5866 emximp -o $lib $output_objdir/$libname.def'
5867 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
5868 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
5869 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
5870 $ECHO EXPORTS >> $output_objdir/$libname.def~
5871 prefix_cmds="$SED"~
5872 if test EXPORTS = "`$SED 1q $export_symbols`"; then
5873 prefix_cmds="$prefix_cmds -e 1d";
5874 fi~
5875 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
5876 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
5877 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
5878 emximp -o $lib $output_objdir/$libname.def'
5879 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
5880 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
5881 ;;
5882
5883 osf3*)
5884 if test yes = "$GCC"; then
5885 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5886 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5887 else
5888 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5889 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5890 fi
5891 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5892 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5893 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5894 ;;
5895
5896 osf4* | osf5*) # as osf3* with the addition of -msym flag
5897 if test yes = "$GCC"; then
5898 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
5899 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
5900 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
5901 else
5902 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
5903 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5904 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
5905 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
5906
5907 # Both c and cxx compiler support -rpath directly
5908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
5909 fi
5910 _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
5911 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
5912 ;;
5913
5914 solaris*)
5915 _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
5916 if test yes = "$GCC"; then
5917 wlarc='$wl'
5918 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
5919 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5920 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5921 else
5922 case `$CC -V 2>&1` in
5923 *"Compilers 5.0"*)
5924 wlarc=''
5925 _LT_TAGVAR(archive_cmds, $1)='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
5926 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5927 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
5928 ;;
5929 *)
5930 wlarc='$wl'
5931 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
5932 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
5933 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
5934 ;;
5935 esac
5936 fi
5937 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
5938 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5939 case $host_os in
5940 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
5941 *)
5942 # The compiler driver will combine and reorder linker options,
5943 # but understands '-z linker_flag'. GCC discards it without '$wl',
5944 # but is careful enough not to reorder.
5945 # Supported since Solaris 2.6 (maybe 2.5.1?)
5946 if test yes = "$GCC"; then
5947 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
5948 else
5949 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
5950 fi
5951 ;;
5952 esac
5953 _LT_TAGVAR(link_all_deplibs, $1)=yes
5954 ;;
5955
5956 sunos4*)
5957 if test sequent = "$host_vendor"; then
5958 # Use $CC to link under sequent, because it throws in some extra .o
5959 # files that make .init and .fini sections work.
5960 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
5961 else
5962 _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
5963 fi
5964 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
5965 _LT_TAGVAR(hardcode_direct, $1)=yes
5966 _LT_TAGVAR(hardcode_minus_L, $1)=yes
5967 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5968 ;;
5969
5970 sysv4)
5971 case $host_vendor in
5972 sni)
5973 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5974 _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
5975 ;;
5976 siemens)
5977 ## LD is ld it makes a PLAMLIB
5978 ## CC just makes a GrossModule.
5979 _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
5980 _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
5981 _LT_TAGVAR(hardcode_direct, $1)=no
5982 ;;
5983 motorola)
5984 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5985 _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
5986 ;;
5987 esac
5988 runpath_var='LD_RUN_PATH'
5989 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5990 ;;
5991
5992 sysv4.3*)
5993 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
5994 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
5995 _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
5996 ;;
5997
5998 sysv4*MP*)
5999 if test -d /usr/nec; then
6000 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6001 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6002 runpath_var=LD_RUN_PATH
6003 hardcode_runpath_var=yes
6004 _LT_TAGVAR(ld_shlibs, $1)=yes
6005 fi
6006 ;;
6007
6008 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
6009 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6010 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6011 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6012 runpath_var='LD_RUN_PATH'
6013
6014 if test yes = "$GCC"; then
6015 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6016 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6017 else
6018 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6019 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6020 fi
6021 ;;
6022
6023 sysv5* | sco3.2v5* | sco5v6*)
6024 # Note: We CANNOT use -z defs as we might desire, because we do not
6025 # link with -lc, and that would cause any symbols used from libc to
6026 # always be unresolved, which means just about no library would
6027 # ever link correctly. If we're not using GNU ld we use -z text
6028 # though, which does catch some bad symbols but isn't as heavy-handed
6029 # as -z defs.
6030 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
6031 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
6032 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6033 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6034 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
6035 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6036 _LT_TAGVAR(link_all_deplibs, $1)=yes
6037 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
6038 runpath_var='LD_RUN_PATH'
6039
6040 if test yes = "$GCC"; then
6041 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6042 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6043 else
6044 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6045 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
6046 fi
6047 ;;
6048
6049 uts4*)
6050 _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6051 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6052 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6053 ;;
6054
6055 *)
6056 _LT_TAGVAR(ld_shlibs, $1)=no
6057 ;;
6058 esac
6059
6060 if test sni = "$host_vendor"; then
6061 case $host in
6062 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6063 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Blargedynsym'
6064 ;;
6065 esac
6066 fi
6067 fi
6068 ])
6069 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
6070 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
6071
6072 _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
6073
6074 _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
6075 _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
6076 _LT_DECL([], [extract_expsyms_cmds], [2],
6077 [The commands to extract the exported symbol list from a shared archive])
6078
6079 #
6080 # Do we need to explicitly link libc?
6081 #
6082 case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
6083 x|xyes)
6084 # Assume -lc should be added
6085 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6086
6087 if test yes,yes = "$GCC,$enable_shared"; then
6088 case $_LT_TAGVAR(archive_cmds, $1) in
6089 *'~'*)
6090 # FIXME: we may have to deal with multi-command sequences.
6091 ;;
6092 '$CC '*)
6093 # Test whether the compiler implicitly links with -lc since on some
6094 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6095 # to ld, don't add -lc before -lgcc.
6096 AC_CACHE_CHECK([whether -lc should be explicitly linked in],
6097 [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1),
6098 [$RM conftest*
6099 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6100
6101 if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
6102 soname=conftest
6103 lib=conftest
6104 libobjs=conftest.$ac_objext
6105 deplibs=
6106 wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
6107 pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
6108 compiler_flags=-v
6109 linker_flags=-v
6110 verstring=
6111 output_objdir=.
6112 libname=conftest
6113 lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
6114 _LT_TAGVAR(allow_undefined_flag, $1)=
6115 if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
6116 then
6117 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no
6118 else
6119 lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6120 fi
6121 _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
6122 else
6123 cat conftest.err 1>&5
6124 fi
6125 $RM conftest*
6126 ])
6127 _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)
6128 ;;
6129 esac
6130 fi
6131 ;;
6132 esac
6133
6134 _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
6135 [Whether or not to add -lc for building shared libraries])
6136 _LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
6137 [enable_shared_with_static_runtimes], [0],
6138 [Whether or not to disallow shared libs when runtime libs are static])
6139 _LT_TAGDECL([], [export_dynamic_flag_spec], [1],
6140 [Compiler flag to allow reflexive dlopens])
6141 _LT_TAGDECL([], [whole_archive_flag_spec], [1],
6142 [Compiler flag to generate shared objects directly from archives])
6143 _LT_TAGDECL([], [compiler_needs_object], [1],
6144 [Whether the compiler copes with passing no objects directly])
6145 _LT_TAGDECL([], [old_archive_from_new_cmds], [2],
6146 [Create an old-style archive from a shared archive])
6147 _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
6148 [Create a temporary old-style archive to link instead of a shared archive])
6149 _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
6150 _LT_TAGDECL([], [archive_expsym_cmds], [2])
6151 _LT_TAGDECL([], [module_cmds], [2],
6152 [Commands used to build a loadable module if different from building
6153 a shared archive.])
6154 _LT_TAGDECL([], [module_expsym_cmds], [2])
6155 _LT_TAGDECL([], [with_gnu_ld], [1],
6156 [Whether we are building with GNU ld or not])
6157 _LT_TAGDECL([], [allow_undefined_flag], [1],
6158 [Flag that allows shared libraries with undefined symbols to be built])
6159 _LT_TAGDECL([], [no_undefined_flag], [1],
6160 [Flag that enforces no undefined symbols])
6161 _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
6162 [Flag to hardcode $libdir into a binary during linking.
6163 This must work even if $libdir does not exist])
6164 _LT_TAGDECL([], [hardcode_libdir_separator], [1],
6165 [Whether we need a single "-rpath" flag with a separated argument])
6166 _LT_TAGDECL([], [hardcode_direct], [0],
6167 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6168 DIR into the resulting binary])
6169 _LT_TAGDECL([], [hardcode_direct_absolute], [0],
6170 [Set to "yes" if using DIR/libNAME$shared_ext during linking hardcodes
6171 DIR into the resulting binary and the resulting library dependency is
6172 "absolute", i.e impossible to change by setting $shlibpath_var if the
6173 library is relocated])
6174 _LT_TAGDECL([], [hardcode_minus_L], [0],
6175 [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
6176 into the resulting binary])
6177 _LT_TAGDECL([], [hardcode_shlibpath_var], [0],
6178 [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
6179 into the resulting binary])
6180 _LT_TAGDECL([], [hardcode_automatic], [0],
6181 [Set to "yes" if building a shared library automatically hardcodes DIR
6182 into the library and all subsequent libraries and executables linked
6183 against it])
6184 _LT_TAGDECL([], [inherit_rpath], [0],
6185 [Set to yes if linker adds runtime paths of dependent libraries
6186 to runtime path list])
6187 _LT_TAGDECL([], [link_all_deplibs], [0],
6188 [Whether libtool must link a program against all its dependency libraries])
6189 _LT_TAGDECL([], [always_export_symbols], [0],
6190 [Set to "yes" if exported symbols are required])
6191 _LT_TAGDECL([], [export_symbols_cmds], [2],
6192 [The commands to list exported symbols])
6193 _LT_TAGDECL([], [exclude_expsyms], [1],
6194 [Symbols that should not be listed in the preloaded symbols])
6195 _LT_TAGDECL([], [include_expsyms], [1],
6196 [Symbols that must always be exported])
6197 _LT_TAGDECL([], [prelink_cmds], [2],
6198 [Commands necessary for linking programs (against libraries) with templates])
6199 _LT_TAGDECL([], [postlink_cmds], [2],
6200 [Commands necessary for finishing linking programs])
6201 _LT_TAGDECL([], [file_list_spec], [1],
6202 [Specify filename containing input files])
6203 dnl FIXME: Not yet implemented
6204 dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
6205 dnl [Compiler flag to generate thread safe objects])
6206 ])# _LT_LINKER_SHLIBS
6207
6208
6209 # _LT_LANG_C_CONFIG([TAG])
6210 # ------------------------
6211 # Ensure that the configuration variables for a C compiler are suitably
6212 # defined. These variables are subsequently used by _LT_CONFIG to write
6213 # the compiler configuration to 'libtool'.
6214 m4_defun([_LT_LANG_C_CONFIG],
6215 [m4_require([_LT_DECL_EGREP])dnl
6216 lt_save_CC=$CC
6217 AC_LANG_PUSH(C)
6218
6219 # Source file extension for C test sources.
6220 ac_ext=c
6221
6222 # Object file extension for compiled C test sources.
6223 objext=o
6224 _LT_TAGVAR(objext, $1)=$objext
6225
6226 # Code to be used in simple compile tests
6227 lt_simple_compile_test_code="int some_variable = 0;"
6228
6229 # Code to be used in simple link tests
6230 lt_simple_link_test_code='int main(){return(0);}'
6231
6232 _LT_TAG_COMPILER
6233 # Save the default compiler, since it gets overwritten when the other
6234 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
6235 compiler_DEFAULT=$CC
6236
6237 # save warnings/boilerplate of simple test code
6238 _LT_COMPILER_BOILERPLATE
6239 _LT_LINKER_BOILERPLATE
6240
6241 ## CAVEAT EMPTOR:
6242 ## There is no encapsulation within the following macros, do not change
6243 ## the running order or otherwise move them around unless you know exactly
6244 ## what you are doing...
6245 if test -n "$compiler"; then
6246 _LT_COMPILER_NO_RTTI($1)
6247 _LT_COMPILER_PIC($1)
6248 _LT_COMPILER_C_O($1)
6249 _LT_COMPILER_FILE_LOCKS($1)
6250 _LT_LINKER_SHLIBS($1)
6251 _LT_SYS_DYNAMIC_LINKER($1)
6252 _LT_LINKER_HARDCODE_LIBPATH($1)
6253 LT_SYS_DLOPEN_SELF
6254 _LT_CMD_STRIPLIB
6255
6256 # Report what library types will actually be built
6257 AC_MSG_CHECKING([if libtool supports shared libraries])
6258 AC_MSG_RESULT([$can_build_shared])
6259
6260 AC_MSG_CHECKING([whether to build shared libraries])
6261 test no = "$can_build_shared" && enable_shared=no
6262
6263 # On AIX, shared libraries and static libraries use the same namespace, and
6264 # are all built from PIC.
6265 case $host_os in
6266 aix3*)
6267 test yes = "$enable_shared" && enable_static=no
6268 if test -n "$RANLIB"; then
6269 archive_cmds="$archive_cmds~\$RANLIB \$lib"
6270 postinstall_cmds='$RANLIB $lib'
6271 fi
6272 ;;
6273
6274 aix[[4-9]]*)
6275 if test ia64 != "$host_cpu"; then
6276 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
6277 yes,aix,yes) ;; # shared object as lib.so file only
6278 yes,svr4,*) ;; # shared object as lib.so archive member only
6279 yes,*) enable_static=no ;; # shared object in lib.a archive as well
6280 esac
6281 fi
6282 ;;
6283 esac
6284 AC_MSG_RESULT([$enable_shared])
6285
6286 AC_MSG_CHECKING([whether to build static libraries])
6287 # Make sure either enable_shared or enable_static is yes.
6288 test yes = "$enable_shared" || enable_static=yes
6289 AC_MSG_RESULT([$enable_static])
6290
6291 _LT_CONFIG($1)
6292 fi
6293 AC_LANG_POP
6294 CC=$lt_save_CC
6295 ])# _LT_LANG_C_CONFIG
6296
6297
6298 # _LT_LANG_CXX_CONFIG([TAG])
6299 # --------------------------
6300 # Ensure that the configuration variables for a C++ compiler are suitably
6301 # defined. These variables are subsequently used by _LT_CONFIG to write
6302 # the compiler configuration to 'libtool'.
6303 m4_defun([_LT_LANG_CXX_CONFIG],
6304 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
6305 m4_require([_LT_DECL_EGREP])dnl
6306 m4_require([_LT_PATH_MANIFEST_TOOL])dnl
6307 if test -n "$CXX" && ( test no != "$CXX" &&
6308 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
6309 (test g++ != "$CXX"))); then
6310 AC_PROG_CXXCPP
6311 else
6312 _lt_caught_CXX_error=yes
6313 fi
6314
6315 AC_LANG_PUSH(C++)
6316 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6317 _LT_TAGVAR(allow_undefined_flag, $1)=
6318 _LT_TAGVAR(always_export_symbols, $1)=no
6319 _LT_TAGVAR(archive_expsym_cmds, $1)=
6320 _LT_TAGVAR(compiler_needs_object, $1)=no
6321 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
6322 _LT_TAGVAR(hardcode_direct, $1)=no
6323 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6324 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
6325 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6326 _LT_TAGVAR(hardcode_minus_L, $1)=no
6327 _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
6328 _LT_TAGVAR(hardcode_automatic, $1)=no
6329 _LT_TAGVAR(inherit_rpath, $1)=no
6330 _LT_TAGVAR(module_cmds, $1)=
6331 _LT_TAGVAR(module_expsym_cmds, $1)=
6332 _LT_TAGVAR(link_all_deplibs, $1)=unknown
6333 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
6334 _LT_TAGVAR(reload_flag, $1)=$reload_flag
6335 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
6336 _LT_TAGVAR(no_undefined_flag, $1)=
6337 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6338 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
6339
6340 # Source file extension for C++ test sources.
6341 ac_ext=cpp
6342
6343 # Object file extension for compiled C++ test sources.
6344 objext=o
6345 _LT_TAGVAR(objext, $1)=$objext
6346
6347 # No sense in running all these tests if we already determined that
6348 # the CXX compiler isn't working. Some variables (like enable_shared)
6349 # are currently assumed to apply to all compilers on this platform,
6350 # and will be corrupted by setting them based on a non-working compiler.
6351 if test yes != "$_lt_caught_CXX_error"; then
6352 # Code to be used in simple compile tests
6353 lt_simple_compile_test_code="int some_variable = 0;"
6354
6355 # Code to be used in simple link tests
6356 lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
6357
6358 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
6359 _LT_TAG_COMPILER
6360
6361 # save warnings/boilerplate of simple test code
6362 _LT_COMPILER_BOILERPLATE
6363 _LT_LINKER_BOILERPLATE
6364
6365 # Allow CC to be a program name with arguments.
6366 lt_save_CC=$CC
6367 lt_save_CFLAGS=$CFLAGS
6368 lt_save_LD=$LD
6369 lt_save_GCC=$GCC
6370 GCC=$GXX
6371 lt_save_with_gnu_ld=$with_gnu_ld
6372 lt_save_path_LD=$lt_cv_path_LD
6373 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
6374 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
6375 else
6376 $as_unset lt_cv_prog_gnu_ld
6377 fi
6378 if test -n "${lt_cv_path_LDCXX+set}"; then
6379 lt_cv_path_LD=$lt_cv_path_LDCXX
6380 else
6381 $as_unset lt_cv_path_LD
6382 fi
6383 test -z "${LDCXX+set}" || LD=$LDCXX
6384 CC=${CXX-"c++"}
6385 CFLAGS=$CXXFLAGS
6386 compiler=$CC
6387 _LT_TAGVAR(compiler, $1)=$CC
6388 _LT_CC_BASENAME([$compiler])
6389
6390 if test -n "$compiler"; then
6391 # We don't want -fno-exception when compiling C++ code, so set the
6392 # no_builtin_flag separately
6393 if test yes = "$GXX"; then
6394 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
6395 else
6396 _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
6397 fi
6398
6399 if test yes = "$GXX"; then
6400 # Set up default GNU C++ configuration
6401
6402 LT_PATH_LD
6403
6404 # Check if GNU C++ uses GNU ld as the underlying linker, since the
6405 # archiving commands below assume that GNU ld is being used.
6406 if test yes = "$with_gnu_ld"; then
6407 _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6408 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
6409
6410 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6411 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6412
6413 # If archive_cmds runs LD, not CC, wlarc should be empty
6414 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
6415 # investigate it a little bit more. (MM)
6416 wlarc='$wl'
6417
6418 # ancient GNU ld didn't support --whole-archive et. al.
6419 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
6420 $GREP 'no-whole-archive' > /dev/null; then
6421 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
6422 else
6423 _LT_TAGVAR(whole_archive_flag_spec, $1)=
6424 fi
6425 else
6426 with_gnu_ld=no
6427 wlarc=
6428
6429 # A generic and very simple default shared library creation
6430 # command for GNU C++ for the case where it uses the native
6431 # linker, instead of GNU ld. If possible, this setting should
6432 # overridden to take advantage of the native linker features on
6433 # the platform it is being used on.
6434 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
6435 fi
6436
6437 # Commands to make compiler produce verbose output that lists
6438 # what "hidden" libraries, object files and flags are used when
6439 # linking a shared library.
6440 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
6441
6442 else
6443 GXX=no
6444 with_gnu_ld=no
6445 wlarc=
6446 fi
6447
6448 # PORTME: fill in a description of your system's C++ link characteristics
6449 AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
6450 _LT_TAGVAR(ld_shlibs, $1)=yes
6451 case $host_os in
6452 aix3*)
6453 # FIXME: insert proper C++ library support
6454 _LT_TAGVAR(ld_shlibs, $1)=no
6455 ;;
6456 aix[[4-9]]*)
6457 if test ia64 = "$host_cpu"; then
6458 # On IA64, the linker does run time linking by default, so we don't
6459 # have to do anything special.
6460 aix_use_runtimelinking=no
6461 exp_sym_flag='-Bexport'
6462 no_entry_flag=
6463 else
6464 aix_use_runtimelinking=no
6465
6466 # Test if we are trying to use run time linking or normal
6467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6468 # have runtime linking enabled, and use it for executables.
6469 # For shared libraries, we enable/disable runtime linking
6470 # depending on the kind of the shared library created -
6471 # when "with_aix_soname,aix_use_runtimelinking" is:
6472 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
6473 # "aix,yes" lib.so shared, rtl:yes, for executables
6474 # lib.a static archive
6475 # "both,no" lib.so.V(shr.o) shared, rtl:yes
6476 # lib.a(lib.so.V) shared, rtl:no, for executables
6477 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
6478 # lib.a(lib.so.V) shared, rtl:no
6479 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
6480 # lib.a static archive
6481 case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
6482 for ld_flag in $LDFLAGS; do
6483 case $ld_flag in
6484 *-brtl*)
6485 aix_use_runtimelinking=yes
6486 break
6487 ;;
6488 esac
6489 done
6490 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
6491 # With aix-soname=svr4, we create the lib.so.V shared archives only,
6492 # so we don't have lib.a shared libs to link our executables.
6493 # We have to force runtime linking in this case.
6494 aix_use_runtimelinking=yes
6495 LDFLAGS="$LDFLAGS -Wl,-brtl"
6496 fi
6497 ;;
6498 esac
6499
6500 exp_sym_flag='-bexport'
6501 no_entry_flag='-bnoentry'
6502 fi
6503
6504 # When large executables or shared objects are built, AIX ld can
6505 # have problems creating the table of contents. If linking a library
6506 # or program results in "error TOC overflow" add -mminimal-toc to
6507 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6508 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6509
6510 _LT_TAGVAR(archive_cmds, $1)=''
6511 _LT_TAGVAR(hardcode_direct, $1)=yes
6512 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6513 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
6514 _LT_TAGVAR(link_all_deplibs, $1)=yes
6515 _LT_TAGVAR(file_list_spec, $1)='$wl-f,'
6516 case $with_aix_soname,$aix_use_runtimelinking in
6517 aix,*) ;; # no import file
6518 svr4,* | *,yes) # use import file
6519 # The Import File defines what to hardcode.
6520 _LT_TAGVAR(hardcode_direct, $1)=no
6521 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
6522 ;;
6523 esac
6524
6525 if test yes = "$GXX"; then
6526 case $host_os in aix4.[[012]]|aix4.[[012]].*)
6527 # We only want to do this on AIX 4.2 and lower, the check
6528 # below for broken collect2 doesn't work under 4.3+
6529 collect2name=`$CC -print-prog-name=collect2`
6530 if test -f "$collect2name" &&
6531 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
6532 then
6533 # We have reworked collect2
6534 :
6535 else
6536 # We have old collect2
6537 _LT_TAGVAR(hardcode_direct, $1)=unsupported
6538 # It fails to find uninstalled libraries when the uninstalled
6539 # path is not listed in the libpath. Setting hardcode_minus_L
6540 # to unsupported forces relinking
6541 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6542 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6543 _LT_TAGVAR(hardcode_libdir_separator, $1)=
6544 fi
6545 esac
6546 shared_flag='-shared'
6547 if test yes = "$aix_use_runtimelinking"; then
6548 shared_flag=$shared_flag' $wl-G'
6549 fi
6550 # Need to ensure runtime linking is disabled for the traditional
6551 # shared library, or the linker may eventually find shared libraries
6552 # /with/ Import File - we do not want to mix them.
6553 shared_flag_aix='-shared'
6554 shared_flag_svr4='-shared $wl-G'
6555 else
6556 # not using gcc
6557 if test ia64 = "$host_cpu"; then
6558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6559 # chokes on -Wl,-G. The following line is correct:
6560 shared_flag='-G'
6561 else
6562 if test yes = "$aix_use_runtimelinking"; then
6563 shared_flag='$wl-G'
6564 else
6565 shared_flag='$wl-bM:SRE'
6566 fi
6567 shared_flag_aix='$wl-bM:SRE'
6568 shared_flag_svr4='$wl-G'
6569 fi
6570 fi
6571
6572 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-bexpall'
6573 # It seems that -bexpall does not export symbols beginning with
6574 # underscore (_), so it is better to generate a list of symbols to
6575 # export.
6576 _LT_TAGVAR(always_export_symbols, $1)=yes
6577 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
6578 # Warning - without using the other runtime loading flags (-brtl),
6579 # -berok will link without error, but may produce a broken library.
6580 # The "-G" linker flag allows undefined symbols.
6581 _LT_TAGVAR(no_undefined_flag, $1)='-bernotok'
6582 # Determine the default libpath from the value encoded in an empty
6583 # executable.
6584 _LT_SYS_MODULE_PATH_AIX([$1])
6585 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6586
6587 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
6588 else
6589 if test ia64 = "$host_cpu"; then
6590 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $libdir:/usr/lib:/lib'
6591 _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
6592 _LT_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"
6593 else
6594 # Determine the default libpath from the value encoded in an
6595 # empty executable.
6596 _LT_SYS_MODULE_PATH_AIX([$1])
6597 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-blibpath:$libdir:'"$aix_libpath"
6598 # Warning - without using the other run time loading flags,
6599 # -berok will link without error, but may produce a broken library.
6600 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-bernotok'
6601 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-berok'
6602 if test yes = "$with_gnu_ld"; then
6603 # We only use this code for GNU lds that support --whole-archive.
6604 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6605 else
6606 # Exported symbols can be pulled into shared objects from archives
6607 _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
6608 fi
6609 _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
6610 _LT_TAGVAR(archive_expsym_cmds, $1)='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
6611 # -brtl affects multiple linker settings, -berok does not and is overridden later
6612 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([[, ]]\\)%-berok\\1%g"`'
6613 if test svr4 != "$with_aix_soname"; then
6614 # This is similar to how AIX traditionally builds its shared
6615 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
6616 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
6617 fi
6618 if test aix != "$with_aix_soname"; then
6619 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
6620 else
6621 # used by -dlpreopen to get the symbols
6622 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
6623 fi
6624 _LT_TAGVAR(archive_expsym_cmds, $1)="$_LT_TAGVAR(archive_expsym_cmds, $1)"'~$RM -r $output_objdir/$realname.d'
6625 fi
6626 fi
6627 ;;
6628
6629 beos*)
6630 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
6631 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6632 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6633 # support --undefined. This deserves some investigation. FIXME
6634 _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6635 else
6636 _LT_TAGVAR(ld_shlibs, $1)=no
6637 fi
6638 ;;
6639
6640 chorus*)
6641 case $cc_basename in
6642 *)
6643 # FIXME: insert proper C++ library support
6644 _LT_TAGVAR(ld_shlibs, $1)=no
6645 ;;
6646 esac
6647 ;;
6648
6649 cygwin* | mingw* | pw32* | cegcc*)
6650 case $GXX,$cc_basename in
6651 ,cl* | no,cl*)
6652 # Native MSVC
6653 # hardcode_libdir_flag_spec is actually meaningless, as there is
6654 # no search path for DLLs.
6655 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
6656 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6657 _LT_TAGVAR(always_export_symbols, $1)=yes
6658 _LT_TAGVAR(file_list_spec, $1)='@'
6659 # Tell ltmain to make .lib files, not .a files.
6660 libext=lib
6661 # Tell ltmain to make .dll files, not .so files.
6662 shrext_cmds=.dll
6663 # FIXME: Setting linknames here is a bad hack.
6664 _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
6665 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6666 cp "$export_symbols" "$output_objdir/$soname.def";
6667 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
6668 else
6669 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
6670 fi~
6671 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
6672 linknames='
6673 # The linker will not automatically build a static lib if we build a DLL.
6674 # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
6675 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6676 # Don't use ranlib
6677 _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib'
6678 _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~
6679 lt_tool_outputfile="@TOOL_OUTPUT@"~
6680 case $lt_outputfile in
6681 *.exe|*.EXE) ;;
6682 *)
6683 lt_outputfile=$lt_outputfile.exe
6684 lt_tool_outputfile=$lt_tool_outputfile.exe
6685 ;;
6686 esac~
6687 func_to_tool_file "$lt_outputfile"~
6688 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
6689 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
6690 $RM "$lt_outputfile.manifest";
6691 fi'
6692 ;;
6693 *)
6694 # g++
6695 # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
6696 # as there is no search path for DLLs.
6697 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6698 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-all-symbols'
6699 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6700 _LT_TAGVAR(always_export_symbols, $1)=no
6701 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6702
6703 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
6704 _LT_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'
6705 # If the export-symbols file already is a .def file, use it as
6706 # is; otherwise, prepend EXPORTS...
6707 _LT_TAGVAR(archive_expsym_cmds, $1)='if _LT_DLL_DEF_P([$export_symbols]); then
6708 cp $export_symbols $output_objdir/$soname.def;
6709 else
6710 echo EXPORTS > $output_objdir/$soname.def;
6711 cat $export_symbols >> $output_objdir/$soname.def;
6712 fi~
6713 $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'
6714 else
6715 _LT_TAGVAR(ld_shlibs, $1)=no
6716 fi
6717 ;;
6718 esac
6719 ;;
6720 darwin* | rhapsody*)
6721 _LT_DARWIN_LINKER_FEATURES($1)
6722 ;;
6723
6724 os2*)
6725 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
6726 _LT_TAGVAR(hardcode_minus_L, $1)=yes
6727 _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
6728 shrext_cmds=.dll
6729 _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6730 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6731 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6732 $ECHO EXPORTS >> $output_objdir/$libname.def~
6733 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
6734 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6735 emximp -o $lib $output_objdir/$libname.def'
6736 _LT_TAGVAR(archive_expsym_cmds, $1)='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
6737 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
6738 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
6739 $ECHO EXPORTS >> $output_objdir/$libname.def~
6740 prefix_cmds="$SED"~
6741 if test EXPORTS = "`$SED 1q $export_symbols`"; then
6742 prefix_cmds="$prefix_cmds -e 1d";
6743 fi~
6744 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
6745 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
6746 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
6747 emximp -o $lib $output_objdir/$libname.def'
6748 _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
6749 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
6750 ;;
6751
6752 dgux*)
6753 case $cc_basename in
6754 ec++*)
6755 # FIXME: insert proper C++ library support
6756 _LT_TAGVAR(ld_shlibs, $1)=no
6757 ;;
6758 ghcx*)
6759 # Green Hills C++ Compiler
6760 # FIXME: insert proper C++ library support
6761 _LT_TAGVAR(ld_shlibs, $1)=no
6762 ;;
6763 *)
6764 # FIXME: insert proper C++ library support
6765 _LT_TAGVAR(ld_shlibs, $1)=no
6766 ;;
6767 esac
6768 ;;
6769
6770 freebsd2.*)
6771 # C++ shared libraries reported to be fairly broken before
6772 # switch to ELF
6773 _LT_TAGVAR(ld_shlibs, $1)=no
6774 ;;
6775
6776 freebsd-elf*)
6777 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6778 ;;
6779
6780 freebsd* | dragonfly*)
6781 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
6782 # conventions
6783 _LT_TAGVAR(ld_shlibs, $1)=yes
6784 ;;
6785
6786 haiku*)
6787 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6788 _LT_TAGVAR(link_all_deplibs, $1)=yes
6789 ;;
6790
6791 hpux9*)
6792 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6793 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6794 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6795 _LT_TAGVAR(hardcode_direct, $1)=yes
6796 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6797 # but as the default
6798 # location of the library.
6799
6800 case $cc_basename in
6801 CC*)
6802 # FIXME: insert proper C++ library support
6803 _LT_TAGVAR(ld_shlibs, $1)=no
6804 ;;
6805 aCC*)
6806 _LT_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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6807 # Commands to make compiler produce verbose output that lists
6808 # what "hidden" libraries, object files and flags are used when
6809 # linking a shared library.
6810 #
6811 # There doesn't appear to be a way to prevent this compiler from
6812 # explicitly linking system object files so we need to strip them
6813 # from the output so that they don't get included in the library
6814 # dependencies.
6815 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
6816 ;;
6817 *)
6818 if test yes = "$GXX"; then
6819 _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
6820 else
6821 # FIXME: insert proper C++ library support
6822 _LT_TAGVAR(ld_shlibs, $1)=no
6823 fi
6824 ;;
6825 esac
6826 ;;
6827
6828 hpux10*|hpux11*)
6829 if test no = "$with_gnu_ld"; then
6830 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl+b $wl$libdir'
6831 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6832
6833 case $host_cpu in
6834 hppa*64*|ia64*)
6835 ;;
6836 *)
6837 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6838 ;;
6839 esac
6840 fi
6841 case $host_cpu in
6842 hppa*64*|ia64*)
6843 _LT_TAGVAR(hardcode_direct, $1)=no
6844 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6845 ;;
6846 *)
6847 _LT_TAGVAR(hardcode_direct, $1)=yes
6848 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
6849 _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
6850 # but as the default
6851 # location of the library.
6852 ;;
6853 esac
6854
6855 case $cc_basename in
6856 CC*)
6857 # FIXME: insert proper C++ library support
6858 _LT_TAGVAR(ld_shlibs, $1)=no
6859 ;;
6860 aCC*)
6861 case $host_cpu in
6862 hppa*64*)
6863 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6864 ;;
6865 ia64*)
6866 _LT_TAGVAR(archive_cmds, $1)='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6867 ;;
6868 *)
6869 _LT_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'
6870 ;;
6871 esac
6872 # Commands to make compiler produce verbose output that lists
6873 # what "hidden" libraries, object files and flags are used when
6874 # linking a shared library.
6875 #
6876 # There doesn't appear to be a way to prevent this compiler from
6877 # explicitly linking system object files so we need to strip them
6878 # from the output so that they don't get included in the library
6879 # dependencies.
6880 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; func_echo_all "$list"'
6881 ;;
6882 *)
6883 if test yes = "$GXX"; then
6884 if test no = "$with_gnu_ld"; then
6885 case $host_cpu in
6886 hppa*64*)
6887 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6888 ;;
6889 ia64*)
6890 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6891 ;;
6892 *)
6893 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
6894 ;;
6895 esac
6896 fi
6897 else
6898 # FIXME: insert proper C++ library support
6899 _LT_TAGVAR(ld_shlibs, $1)=no
6900 fi
6901 ;;
6902 esac
6903 ;;
6904
6905 interix[[3-9]]*)
6906 _LT_TAGVAR(hardcode_direct, $1)=no
6907 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
6908 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6909 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
6910 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6911 # Instead, shared libraries are loaded at an image base (0x10000000 by
6912 # default) and relocated if they conflict, which is a slow very memory
6913 # consuming and fragmenting process. To avoid this, we pick a random,
6914 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6915 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6916 _LT_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'
6917 _LT_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'
6918 ;;
6919 irix5* | irix6*)
6920 case $cc_basename in
6921 CC*)
6922 # SGI C++
6923 _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
6924
6925 # Archives containing C++ object files must be created using
6926 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
6927 # necessary to make sure instantiated templates are included
6928 # in the archive.
6929 _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
6930 ;;
6931 *)
6932 if test yes = "$GXX"; then
6933 if test no = "$with_gnu_ld"; then
6934 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
6935 else
6936 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib'
6937 fi
6938 fi
6939 _LT_TAGVAR(link_all_deplibs, $1)=yes
6940 ;;
6941 esac
6942 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
6943 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
6944 _LT_TAGVAR(inherit_rpath, $1)=yes
6945 ;;
6946
6947 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6948 case $cc_basename in
6949 KCC*)
6950 # Kuck and Associates, Inc. (KAI) C++ Compiler
6951
6952 # KCC will only create a shared library if the output file
6953 # ends with ".so" (or ".sl" for HP-UX), so rename the library
6954 # to its proper name (with version) after linking.
6955 _LT_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'
6956 _LT_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'
6957 # Commands to make compiler produce verbose output that lists
6958 # what "hidden" libraries, object files and flags are used when
6959 # linking a shared library.
6960 #
6961 # There doesn't appear to be a way to prevent this compiler from
6962 # explicitly linking system object files so we need to strip them
6963 # from the output so that they don't get included in the library
6964 # dependencies.
6965 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; func_echo_all "$list"'
6966
6967 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6968 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6969
6970 # Archives containing C++ object files must be created using
6971 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
6972 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
6973 ;;
6974 icpc* | ecpc* )
6975 # Intel C++
6976 with_gnu_ld=yes
6977 # version 8.0 and above of icpc choke on multiply defined symbols
6978 # if we add $predep_objects and $postdep_objects, however 7.1 and
6979 # earlier do not add the objects themselves.
6980 case `$CC -V 2>&1` in
6981 *"Version 7."*)
6982 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
6983 _LT_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'
6984 ;;
6985 *) # Version 8.0 or newer
6986 tmp_idyn=
6987 case $host_cpu in
6988 ia64*) tmp_idyn=' -i_dynamic';;
6989 esac
6990 _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
6991 _LT_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'
6992 ;;
6993 esac
6994 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
6995 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
6996 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
6997 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive$convenience $wl--no-whole-archive'
6998 ;;
6999 pgCC* | pgcpp*)
7000 # Portland Group C++ compiler
7001 case `$CC -V` in
7002 *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*)
7003 _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
7004 rm -rf $tpldir~
7005 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
7006 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
7007 _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
7008 rm -rf $tpldir~
7009 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
7010 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
7011 $RANLIB $oldlib'
7012 _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
7013 rm -rf $tpldir~
7014 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7015 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7016 _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
7017 rm -rf $tpldir~
7018 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
7019 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
7020 ;;
7021 *) # Version 6 and above use weak symbols
7022 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7023 _LT_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'
7024 ;;
7025 esac
7026
7027 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl--rpath $wl$libdir'
7028 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7029 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7030 ;;
7031 cxx*)
7032 # Compaq C++
7033 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
7034 _LT_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'
7035
7036 runpath_var=LD_RUN_PATH
7037 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7038 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7039
7040 # Commands to make compiler produce verbose output that lists
7041 # what "hidden" libraries, object files and flags are used when
7042 # linking a shared library.
7043 #
7044 # There doesn't appear to be a way to prevent this compiler from
7045 # explicitly linking system object files so we need to strip them
7046 # from the output so that they don't get included in the library
7047 # dependencies.
7048 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
7049 ;;
7050 xl* | mpixl* | bgxl*)
7051 # IBM XL 8.0 on PPC, with GNU ld
7052 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7053 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl--export-dynamic'
7054 _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
7055 if test yes = "$supports_anon_versioning"; then
7056 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
7057 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7058 echo "local: *; };" >> $output_objdir/$libname.ver~
7059 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
7060 fi
7061 ;;
7062 *)
7063 case `$CC -V 2>&1 | sed 5q` in
7064 *Sun\ C*)
7065 # Sun C++ 5.9
7066 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7067 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7068 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols'
7069 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7070 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
7071 _LT_TAGVAR(compiler_needs_object, $1)=yes
7072
7073 # Not sure whether something based on
7074 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
7075 # would be better.
7076 output_verbose_link_cmd='func_echo_all'
7077
7078 # Archives containing C++ object files must be created using
7079 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7080 # necessary to make sure instantiated templates are included
7081 # in the archive.
7082 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7083 ;;
7084 esac
7085 ;;
7086 esac
7087 ;;
7088
7089 lynxos*)
7090 # FIXME: insert proper C++ library support
7091 _LT_TAGVAR(ld_shlibs, $1)=no
7092 ;;
7093
7094 m88k*)
7095 # FIXME: insert proper C++ library support
7096 _LT_TAGVAR(ld_shlibs, $1)=no
7097 ;;
7098
7099 mvs*)
7100 case $cc_basename in
7101 cxx*)
7102 # FIXME: insert proper C++ library support
7103 _LT_TAGVAR(ld_shlibs, $1)=no
7104 ;;
7105 *)
7106 # FIXME: insert proper C++ library support
7107 _LT_TAGVAR(ld_shlibs, $1)=no
7108 ;;
7109 esac
7110 ;;
7111
7112 netbsd*)
7113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
7114 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
7115 wlarc=
7116 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7117 _LT_TAGVAR(hardcode_direct, $1)=yes
7118 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7119 fi
7120 # Workaround some broken pre-1.5 toolchains
7121 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
7122 ;;
7123
7124 *nto* | *qnx*)
7125 _LT_TAGVAR(ld_shlibs, $1)=yes
7126 ;;
7127
7128 openbsd* | bitrig*)
7129 if test -f /usr/libexec/ld.so; then
7130 _LT_TAGVAR(hardcode_direct, $1)=yes
7131 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7132 _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
7133 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
7134 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
7136 _LT_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'
7137 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-E'
7138 _LT_TAGVAR(whole_archive_flag_spec, $1)=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
7139 fi
7140 output_verbose_link_cmd=func_echo_all
7141 else
7142 _LT_TAGVAR(ld_shlibs, $1)=no
7143 fi
7144 ;;
7145
7146 osf3* | osf4* | osf5*)
7147 case $cc_basename in
7148 KCC*)
7149 # Kuck and Associates, Inc. (KAI) C++ Compiler
7150
7151 # KCC will only create a shared library if the output file
7152 # ends with ".so" (or ".sl" for HP-UX), so rename the library
7153 # to its proper name (with version) after linking.
7154 _LT_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'
7155
7156 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath,$libdir'
7157 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7158
7159 # Archives containing C++ object files must be created using
7160 # the KAI C++ compiler.
7161 case $host in
7162 osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
7163 *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
7164 esac
7165 ;;
7166 RCC*)
7167 # Rational C++ 2.4.1
7168 # FIXME: insert proper C++ library support
7169 _LT_TAGVAR(ld_shlibs, $1)=no
7170 ;;
7171 cxx*)
7172 case $host in
7173 osf3*)
7174 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7175 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7176 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7177 ;;
7178 *)
7179 _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
7180 _LT_TAGVAR(archive_cmds, $1)='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
7181 _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
7182 echo "-hidden">> $lib.exp~
7183 $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~
7184 $RM $lib.exp'
7185 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
7186 ;;
7187 esac
7188
7189 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7190
7191 # Commands to make compiler produce verbose output that lists
7192 # what "hidden" libraries, object files and flags are used when
7193 # linking a shared library.
7194 #
7195 # There doesn't appear to be a way to prevent this compiler from
7196 # explicitly linking system object files so we need to strip them
7197 # from the output so that they don't get included in the library
7198 # dependencies.
7199 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
7200 ;;
7201 *)
7202 if test yes,no = "$GXX,$with_gnu_ld"; then
7203 _LT_TAGVAR(allow_undefined_flag, $1)=' $wl-expect_unresolved $wl\*'
7204 case $host in
7205 osf3*)
7206 _LT_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" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7207 ;;
7208 *)
7209 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
7210 ;;
7211 esac
7212
7213 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-rpath $wl$libdir'
7214 _LT_TAGVAR(hardcode_libdir_separator, $1)=:
7215
7216 # Commands to make compiler produce verbose output that lists
7217 # what "hidden" libraries, object files and flags are used when
7218 # linking a shared library.
7219 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7220
7221 else
7222 # FIXME: insert proper C++ library support
7223 _LT_TAGVAR(ld_shlibs, $1)=no
7224 fi
7225 ;;
7226 esac
7227 ;;
7228
7229 psos*)
7230 # FIXME: insert proper C++ library support
7231 _LT_TAGVAR(ld_shlibs, $1)=no
7232 ;;
7233
7234 sunos4*)
7235 case $cc_basename in
7236 CC*)
7237 # Sun C++ 4.x
7238 # FIXME: insert proper C++ library support
7239 _LT_TAGVAR(ld_shlibs, $1)=no
7240 ;;
7241 lcc*)
7242 # Lucid
7243 # FIXME: insert proper C++ library support
7244 _LT_TAGVAR(ld_shlibs, $1)=no
7245 ;;
7246 *)
7247 # FIXME: insert proper C++ library support
7248 _LT_TAGVAR(ld_shlibs, $1)=no
7249 ;;
7250 esac
7251 ;;
7252
7253 solaris*)
7254 case $cc_basename in
7255 CC* | sunCC*)
7256 # Sun C++ 4.2, 5.x and Centerline C++
7257 _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
7258 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
7259 _LT_TAGVAR(archive_cmds, $1)='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
7260 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7261 $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'
7262
7263 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
7264 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7265 case $host_os in
7266 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7267 *)
7268 # The compiler driver will combine and reorder linker options,
7269 # but understands '-z linker_flag'.
7270 # Supported since Solaris 2.6 (maybe 2.5.1?)
7271 _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
7272 ;;
7273 esac
7274 _LT_TAGVAR(link_all_deplibs, $1)=yes
7275
7276 output_verbose_link_cmd='func_echo_all'
7277
7278 # Archives containing C++ object files must be created using
7279 # "CC -xar", where "CC" is the Sun C++ compiler. This is
7280 # necessary to make sure instantiated templates are included
7281 # in the archive.
7282 _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
7283 ;;
7284 gcx*)
7285 # Green Hills C++ Compiler
7286 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7287
7288 # The C++ compiler must be used to create the archive.
7289 _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
7290 ;;
7291 *)
7292 # GNU C++ compiler with Solaris linker
7293 if test yes,no = "$GXX,$with_gnu_ld"; then
7294 _LT_TAGVAR(no_undefined_flag, $1)=' $wl-z ${wl}defs'
7295 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
7296 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7297 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7298 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7299
7300 # Commands to make compiler produce verbose output that lists
7301 # what "hidden" libraries, object files and flags are used when
7302 # linking a shared library.
7303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7304 else
7305 # g++ 2.7 appears to require '-G' NOT '-shared' on this
7306 # platform.
7307 _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
7308 _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
7309 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
7310
7311 # Commands to make compiler produce verbose output that lists
7312 # what "hidden" libraries, object files and flags are used when
7313 # linking a shared library.
7314 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
7315 fi
7316
7317 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R $wl$libdir'
7318 case $host_os in
7319 solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
7320 *)
7321 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
7322 ;;
7323 esac
7324 fi
7325 ;;
7326 esac
7327 ;;
7328
7329 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
7330 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7331 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7332 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7333 runpath_var='LD_RUN_PATH'
7334
7335 case $cc_basename in
7336 CC*)
7337 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7338 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7339 ;;
7340 *)
7341 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7342 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7343 ;;
7344 esac
7345 ;;
7346
7347 sysv5* | sco3.2v5* | sco5v6*)
7348 # Note: We CANNOT use -z defs as we might desire, because we do not
7349 # link with -lc, and that would cause any symbols used from libc to
7350 # always be unresolved, which means just about no library would
7351 # ever link correctly. If we're not using GNU ld we use -z text
7352 # though, which does catch some bad symbols but isn't as heavy-handed
7353 # as -z defs.
7354 _LT_TAGVAR(no_undefined_flag, $1)='$wl-z,text'
7355 _LT_TAGVAR(allow_undefined_flag, $1)='$wl-z,nodefs'
7356 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7357 _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
7358 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='$wl-R,$libdir'
7359 _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
7360 _LT_TAGVAR(link_all_deplibs, $1)=yes
7361 _LT_TAGVAR(export_dynamic_flag_spec, $1)='$wl-Bexport'
7362 runpath_var='LD_RUN_PATH'
7363
7364 case $cc_basename in
7365 CC*)
7366 _LT_TAGVAR(archive_cmds, $1)='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7367 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7368 _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~
7369 '"$_LT_TAGVAR(old_archive_cmds, $1)"
7370 _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~
7371 '"$_LT_TAGVAR(reload_cmds, $1)"
7372 ;;
7373 *)
7374 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7375 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7376 ;;
7377 esac
7378 ;;
7379
7380 tandem*)
7381 case $cc_basename in
7382 NCC*)
7383 # NonStop-UX NCC 3.20
7384 # FIXME: insert proper C++ library support
7385 _LT_TAGVAR(ld_shlibs, $1)=no
7386 ;;
7387 *)
7388 # FIXME: insert proper C++ library support
7389 _LT_TAGVAR(ld_shlibs, $1)=no
7390 ;;
7391 esac
7392 ;;
7393
7394 vxworks*)
7395 # FIXME: insert proper C++ library support
7396 _LT_TAGVAR(ld_shlibs, $1)=no
7397 ;;
7398
7399 *)
7400 # FIXME: insert proper C++ library support
7401 _LT_TAGVAR(ld_shlibs, $1)=no
7402 ;;
7403 esac
7404
7405 AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
7406 test no = "$_LT_TAGVAR(ld_shlibs, $1)" && can_build_shared=no
7407
7408 _LT_TAGVAR(GCC, $1)=$GXX
7409 _LT_TAGVAR(LD, $1)=$LD
7410
7411 ## CAVEAT EMPTOR:
7412 ## There is no encapsulation within the following macros, do not change
7413 ## the running order or otherwise move them around unless you know exactly
7414 ## what you are doing...
7415 _LT_SYS_HIDDEN_LIBDEPS($1)
7416 _LT_COMPILER_PIC($1)
7417 _LT_COMPILER_C_O($1)
7418 _LT_COMPILER_FILE_LOCKS($1)
7419 _LT_LINKER_SHLIBS($1)
7420 _LT_SYS_DYNAMIC_LINKER($1)
7421 _LT_LINKER_HARDCODE_LIBPATH($1)
7422
7423 _LT_CONFIG($1)
7424 fi # test -n "$compiler"
7425
7426 CC=$lt_save_CC
7427 CFLAGS=$lt_save_CFLAGS
7428 LDCXX=$LD
7429 LD=$lt_save_LD
7430 GCC=$lt_save_GCC
7431 with_gnu_ld=$lt_save_with_gnu_ld
7432 lt_cv_path_LDCXX=$lt_cv_path_LD
7433 lt_cv_path_LD=$lt_save_path_LD
7434 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
7435 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
7436 fi # test yes != "$_lt_caught_CXX_error"
7437
7438 AC_LANG_POP
7439 ])# _LT_LANG_CXX_CONFIG
7440
7441
7442 # _LT_FUNC_STRIPNAME_CNF
7443 # ----------------------
7444 # func_stripname_cnf prefix suffix name
7445 # strip PREFIX and SUFFIX off of NAME.
7446 # PREFIX and SUFFIX must not contain globbing or regex special
7447 # characters, hashes, percent signs, but SUFFIX may contain a leading
7448 # dot (in which case that matches only a dot).
7449 #
7450 # This function is identical to the (non-XSI) version of func_stripname,
7451 # except this one can be used by m4 code that may be executed by configure,
7452 # rather than the libtool script.
7453 m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl
7454 AC_REQUIRE([_LT_DECL_SED])
7455 AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])
7456 func_stripname_cnf ()
7457 {
7458 case @S|@2 in
7459 .*) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%\\\\@S|@2\$%%"`;;
7460 *) func_stripname_result=`$ECHO "@S|@3" | $SED "s%^@S|@1%%; s%@S|@2\$%%"`;;
7461 esac
7462 } # func_stripname_cnf
7463 ])# _LT_FUNC_STRIPNAME_CNF
7464
7465
7466 # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
7467 # ---------------------------------
7468 # Figure out "hidden" library dependencies from verbose
7469 # compiler output when linking a shared library.
7470 # Parse the compiler output and extract the necessary
7471 # objects, libraries and library flags.
7472 m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
7473 [m4_require([_LT_FILEUTILS_DEFAULTS])dnl
7474 AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl
7475 # Dependencies to place before and after the object being linked:
7476 _LT_TAGVAR(predep_objects, $1)=
7477 _LT_TAGVAR(postdep_objects, $1)=
7478 _LT_TAGVAR(predeps, $1)=
7479 _LT_TAGVAR(postdeps, $1)=
7480 _LT_TAGVAR(compiler_lib_search_path, $1)=
7481
7482 dnl we can't use the lt_simple_compile_test_code here,
7483 dnl because it contains code intended for an executable,
7484 dnl not a library. It's possible we should let each
7485 dnl tag define a new lt_????_link_test_code variable,
7486 dnl but it's only used here...
7487 m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
7488 int a;
7489 void foo (void) { a = 0; }
7490 _LT_EOF
7491 ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
7492 class Foo
7493 {
7494 public:
7495 Foo (void) { a = 0; }
7496 private:
7497 int a;
7498 };
7499 _LT_EOF
7500 ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
7501 subroutine foo
7502 implicit none
7503 integer*4 a
7504 a=0
7505 return
7506 end
7507 _LT_EOF
7508 ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
7509 subroutine foo
7510 implicit none
7511 integer a
7512 a=0
7513 return
7514 end
7515 _LT_EOF
7516 ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
7517 public class foo {
7518 private int a;
7519 public void bar (void) {
7520 a = 0;
7521 }
7522 };
7523 _LT_EOF
7524 ], [$1], [GO], [cat > conftest.$ac_ext <<_LT_EOF
7525 package foo
7526 func foo() {
7527 }
7528 _LT_EOF
7529 ])
7530
7531 _lt_libdeps_save_CFLAGS=$CFLAGS
7532 case "$CC $CFLAGS " in #(
7533 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
7534 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
7535 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
7536 esac
7537
7538 dnl Parse the compiler output and extract the necessary
7539 dnl objects, libraries and library flags.
7540 if AC_TRY_EVAL(ac_compile); then
7541 # Parse the compiler output and extract the necessary
7542 # objects, libraries and library flags.
7543
7544 # Sentinel used to keep track of whether or not we are before
7545 # the conftest object file.
7546 pre_test_object_deps_done=no
7547
7548 for p in `eval "$output_verbose_link_cmd"`; do
7549 case $prev$p in
7550
7551 -L* | -R* | -l*)
7552 # Some compilers place space between "-{L,R}" and the path.
7553 # Remove the space.
7554 if test x-L = "$p" ||
7555 test x-R = "$p"; then
7556 prev=$p
7557 continue
7558 fi
7559
7560 # Expand the sysroot to ease extracting the directories later.
7561 if test -z "$prev"; then
7562 case $p in
7563 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
7564 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
7565 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
7566 esac
7567 fi
7568 case $p in
7569 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
7570 esac
7571 if test no = "$pre_test_object_deps_done"; then
7572 case $prev in
7573 -L | -R)
7574 # Internal compiler library paths should come after those
7575 # provided the user. The postdeps already come after the
7576 # user supplied libs so there is no need to process them.
7577 if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
7578 _LT_TAGVAR(compiler_lib_search_path, $1)=$prev$p
7579 else
7580 _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} $prev$p"
7581 fi
7582 ;;
7583 # The "-l" case would never come before the object being
7584 # linked, so don't bother handling this case.
7585 esac
7586 else
7587 if test -z "$_LT_TAGVAR(postdeps, $1)"; then
7588 _LT_TAGVAR(postdeps, $1)=$prev$p
7589 else
7590 _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} $prev$p"
7591 fi
7592 fi
7593 prev=
7594 ;;
7595
7596 *.lto.$objext) ;; # Ignore GCC LTO objects
7597 *.$objext)
7598 # This assumes that the test object file only shows up
7599 # once in the compiler output.
7600 if test "$p" = "conftest.$objext"; then
7601 pre_test_object_deps_done=yes
7602 continue
7603 fi
7604
7605 if test no = "$pre_test_object_deps_done"; then
7606 if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
7607 _LT_TAGVAR(predep_objects, $1)=$p
7608 else
7609 _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
7610 fi
7611 else
7612 if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
7613 _LT_TAGVAR(postdep_objects, $1)=$p
7614 else
7615 _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
7616 fi
7617 fi
7618 ;;
7619
7620 *) ;; # Ignore the rest.
7621
7622 esac
7623 done
7624
7625 # Clean up.
7626 rm -f a.out a.exe
7627 else
7628 echo "libtool.m4: error: problem compiling $1 test program"
7629 fi
7630
7631 $RM -f confest.$objext
7632 CFLAGS=$_lt_libdeps_save_CFLAGS
7633
7634 # PORTME: override above test on systems where it is broken
7635 m4_if([$1], [CXX],
7636 [case $host_os in
7637 interix[[3-9]]*)
7638 # Interix 3.5 installs completely hosed .la files for C++, so rather than
7639 # hack all around it, let's just trust "g++" to DTRT.
7640 _LT_TAGVAR(predep_objects,$1)=
7641 _LT_TAGVAR(postdep_objects,$1)=
7642 _LT_TAGVAR(postdeps,$1)=
7643 ;;
7644 esac
7645 ])
7646
7647 case " $_LT_TAGVAR(postdeps, $1) " in
7648 *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
7649 esac
7650 _LT_TAGVAR(compiler_lib_search_dirs, $1)=
7651 if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
7652 _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | $SED -e 's! -L! !g' -e 's!^ !!'`
7653 fi
7654 _LT_TAGDECL([], [compiler_lib_search_dirs], [1],
7655 [The directories searched by this compiler when creating a shared library])
7656 _LT_TAGDECL([], [predep_objects], [1],
7657 [Dependencies to place before and after the objects being linked to
7658 create a shared library])
7659 _LT_TAGDECL([], [postdep_objects], [1])
7660 _LT_TAGDECL([], [predeps], [1])
7661 _LT_TAGDECL([], [postdeps], [1])
7662 _LT_TAGDECL([], [compiler_lib_search_path], [1],
7663 [The library search path used internally by the compiler when linking
7664 a shared library])
7665 ])# _LT_SYS_HIDDEN_LIBDEPS
7666
7667
7668 # _LT_LANG_F77_CONFIG([TAG])
7669 # --------------------------
7670 # Ensure that the configuration variables for a Fortran 77 compiler are
7671 # suitably defined. These variables are subsequently used by _LT_CONFIG
7672 # to write the compiler configuration to 'libtool'.
7673 m4_defun([_LT_LANG_F77_CONFIG],
7674 [AC_LANG_PUSH(Fortran 77)
7675 if test -z "$F77" || test no = "$F77"; then
7676 _lt_disable_F77=yes
7677 fi
7678
7679 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7680 _LT_TAGVAR(allow_undefined_flag, $1)=
7681 _LT_TAGVAR(always_export_symbols, $1)=no
7682 _LT_TAGVAR(archive_expsym_cmds, $1)=
7683 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7684 _LT_TAGVAR(hardcode_direct, $1)=no
7685 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7686 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7687 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7688 _LT_TAGVAR(hardcode_minus_L, $1)=no
7689 _LT_TAGVAR(hardcode_automatic, $1)=no
7690 _LT_TAGVAR(inherit_rpath, $1)=no
7691 _LT_TAGVAR(module_cmds, $1)=
7692 _LT_TAGVAR(module_expsym_cmds, $1)=
7693 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7694 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7695 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7696 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7697 _LT_TAGVAR(no_undefined_flag, $1)=
7698 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7699 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7700
7701 # Source file extension for f77 test sources.
7702 ac_ext=f
7703
7704 # Object file extension for compiled f77 test sources.
7705 objext=o
7706 _LT_TAGVAR(objext, $1)=$objext
7707
7708 # No sense in running all these tests if we already determined that
7709 # the F77 compiler isn't working. Some variables (like enable_shared)
7710 # are currently assumed to apply to all compilers on this platform,
7711 # and will be corrupted by setting them based on a non-working compiler.
7712 if test yes != "$_lt_disable_F77"; then
7713 # Code to be used in simple compile tests
7714 lt_simple_compile_test_code="\
7715 subroutine t
7716 return
7717 end
7718 "
7719
7720 # Code to be used in simple link tests
7721 lt_simple_link_test_code="\
7722 program t
7723 end
7724 "
7725
7726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7727 _LT_TAG_COMPILER
7728
7729 # save warnings/boilerplate of simple test code
7730 _LT_COMPILER_BOILERPLATE
7731 _LT_LINKER_BOILERPLATE
7732
7733 # Allow CC to be a program name with arguments.
7734 lt_save_CC=$CC
7735 lt_save_GCC=$GCC
7736 lt_save_CFLAGS=$CFLAGS
7737 CC=${F77-"f77"}
7738 CFLAGS=$FFLAGS
7739 compiler=$CC
7740 _LT_TAGVAR(compiler, $1)=$CC
7741 _LT_CC_BASENAME([$compiler])
7742 GCC=$G77
7743 if test -n "$compiler"; then
7744 AC_MSG_CHECKING([if libtool supports shared libraries])
7745 AC_MSG_RESULT([$can_build_shared])
7746
7747 AC_MSG_CHECKING([whether to build shared libraries])
7748 test no = "$can_build_shared" && enable_shared=no
7749
7750 # On AIX, shared libraries and static libraries use the same namespace, and
7751 # are all built from PIC.
7752 case $host_os in
7753 aix3*)
7754 test yes = "$enable_shared" && enable_static=no
7755 if test -n "$RANLIB"; then
7756 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7757 postinstall_cmds='$RANLIB $lib'
7758 fi
7759 ;;
7760 aix[[4-9]]*)
7761 if test ia64 != "$host_cpu"; then
7762 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7763 yes,aix,yes) ;; # shared object as lib.so file only
7764 yes,svr4,*) ;; # shared object as lib.so archive member only
7765 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7766 esac
7767 fi
7768 ;;
7769 esac
7770 AC_MSG_RESULT([$enable_shared])
7771
7772 AC_MSG_CHECKING([whether to build static libraries])
7773 # Make sure either enable_shared or enable_static is yes.
7774 test yes = "$enable_shared" || enable_static=yes
7775 AC_MSG_RESULT([$enable_static])
7776
7777 _LT_TAGVAR(GCC, $1)=$G77
7778 _LT_TAGVAR(LD, $1)=$LD
7779
7780 ## CAVEAT EMPTOR:
7781 ## There is no encapsulation within the following macros, do not change
7782 ## the running order or otherwise move them around unless you know exactly
7783 ## what you are doing...
7784 _LT_COMPILER_PIC($1)
7785 _LT_COMPILER_C_O($1)
7786 _LT_COMPILER_FILE_LOCKS($1)
7787 _LT_LINKER_SHLIBS($1)
7788 _LT_SYS_DYNAMIC_LINKER($1)
7789 _LT_LINKER_HARDCODE_LIBPATH($1)
7790
7791 _LT_CONFIG($1)
7792 fi # test -n "$compiler"
7793
7794 GCC=$lt_save_GCC
7795 CC=$lt_save_CC
7796 CFLAGS=$lt_save_CFLAGS
7797 fi # test yes != "$_lt_disable_F77"
7798
7799 AC_LANG_POP
7800 ])# _LT_LANG_F77_CONFIG
7801
7802
7803 # _LT_LANG_FC_CONFIG([TAG])
7804 # -------------------------
7805 # Ensure that the configuration variables for a Fortran compiler are
7806 # suitably defined. These variables are subsequently used by _LT_CONFIG
7807 # to write the compiler configuration to 'libtool'.
7808 m4_defun([_LT_LANG_FC_CONFIG],
7809 [AC_LANG_PUSH(Fortran)
7810
7811 if test -z "$FC" || test no = "$FC"; then
7812 _lt_disable_FC=yes
7813 fi
7814
7815 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7816 _LT_TAGVAR(allow_undefined_flag, $1)=
7817 _LT_TAGVAR(always_export_symbols, $1)=no
7818 _LT_TAGVAR(archive_expsym_cmds, $1)=
7819 _LT_TAGVAR(export_dynamic_flag_spec, $1)=
7820 _LT_TAGVAR(hardcode_direct, $1)=no
7821 _LT_TAGVAR(hardcode_direct_absolute, $1)=no
7822 _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
7823 _LT_TAGVAR(hardcode_libdir_separator, $1)=
7824 _LT_TAGVAR(hardcode_minus_L, $1)=no
7825 _LT_TAGVAR(hardcode_automatic, $1)=no
7826 _LT_TAGVAR(inherit_rpath, $1)=no
7827 _LT_TAGVAR(module_cmds, $1)=
7828 _LT_TAGVAR(module_expsym_cmds, $1)=
7829 _LT_TAGVAR(link_all_deplibs, $1)=unknown
7830 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7831 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7832 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7833 _LT_TAGVAR(no_undefined_flag, $1)=
7834 _LT_TAGVAR(whole_archive_flag_spec, $1)=
7835 _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
7836
7837 # Source file extension for fc test sources.
7838 ac_ext=${ac_fc_srcext-f}
7839
7840 # Object file extension for compiled fc test sources.
7841 objext=o
7842 _LT_TAGVAR(objext, $1)=$objext
7843
7844 # No sense in running all these tests if we already determined that
7845 # the FC compiler isn't working. Some variables (like enable_shared)
7846 # are currently assumed to apply to all compilers on this platform,
7847 # and will be corrupted by setting them based on a non-working compiler.
7848 if test yes != "$_lt_disable_FC"; then
7849 # Code to be used in simple compile tests
7850 lt_simple_compile_test_code="\
7851 subroutine t
7852 return
7853 end
7854 "
7855
7856 # Code to be used in simple link tests
7857 lt_simple_link_test_code="\
7858 program t
7859 end
7860 "
7861
7862 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7863 _LT_TAG_COMPILER
7864
7865 # save warnings/boilerplate of simple test code
7866 _LT_COMPILER_BOILERPLATE
7867 _LT_LINKER_BOILERPLATE
7868
7869 # Allow CC to be a program name with arguments.
7870 lt_save_CC=$CC
7871 lt_save_GCC=$GCC
7872 lt_save_CFLAGS=$CFLAGS
7873 CC=${FC-"f95"}
7874 CFLAGS=$FCFLAGS
7875 compiler=$CC
7876 GCC=$ac_cv_fc_compiler_gnu
7877
7878 _LT_TAGVAR(compiler, $1)=$CC
7879 _LT_CC_BASENAME([$compiler])
7880
7881 if test -n "$compiler"; then
7882 AC_MSG_CHECKING([if libtool supports shared libraries])
7883 AC_MSG_RESULT([$can_build_shared])
7884
7885 AC_MSG_CHECKING([whether to build shared libraries])
7886 test no = "$can_build_shared" && enable_shared=no
7887
7888 # On AIX, shared libraries and static libraries use the same namespace, and
7889 # are all built from PIC.
7890 case $host_os in
7891 aix3*)
7892 test yes = "$enable_shared" && enable_static=no
7893 if test -n "$RANLIB"; then
7894 archive_cmds="$archive_cmds~\$RANLIB \$lib"
7895 postinstall_cmds='$RANLIB $lib'
7896 fi
7897 ;;
7898 aix[[4-9]]*)
7899 if test ia64 != "$host_cpu"; then
7900 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
7901 yes,aix,yes) ;; # shared object as lib.so file only
7902 yes,svr4,*) ;; # shared object as lib.so archive member only
7903 yes,*) enable_static=no ;; # shared object in lib.a archive as well
7904 esac
7905 fi
7906 ;;
7907 esac
7908 AC_MSG_RESULT([$enable_shared])
7909
7910 AC_MSG_CHECKING([whether to build static libraries])
7911 # Make sure either enable_shared or enable_static is yes.
7912 test yes = "$enable_shared" || enable_static=yes
7913 AC_MSG_RESULT([$enable_static])
7914
7915 _LT_TAGVAR(GCC, $1)=$ac_cv_fc_compiler_gnu
7916 _LT_TAGVAR(LD, $1)=$LD
7917
7918 ## CAVEAT EMPTOR:
7919 ## There is no encapsulation within the following macros, do not change
7920 ## the running order or otherwise move them around unless you know exactly
7921 ## what you are doing...
7922 _LT_SYS_HIDDEN_LIBDEPS($1)
7923 _LT_COMPILER_PIC($1)
7924 _LT_COMPILER_C_O($1)
7925 _LT_COMPILER_FILE_LOCKS($1)
7926 _LT_LINKER_SHLIBS($1)
7927 _LT_SYS_DYNAMIC_LINKER($1)
7928 _LT_LINKER_HARDCODE_LIBPATH($1)
7929
7930 _LT_CONFIG($1)
7931 fi # test -n "$compiler"
7932
7933 GCC=$lt_save_GCC
7934 CC=$lt_save_CC
7935 CFLAGS=$lt_save_CFLAGS
7936 fi # test yes != "$_lt_disable_FC"
7937
7938 AC_LANG_POP
7939 ])# _LT_LANG_FC_CONFIG
7940
7941
7942 # _LT_LANG_GCJ_CONFIG([TAG])
7943 # --------------------------
7944 # Ensure that the configuration variables for the GNU Java Compiler compiler
7945 # are suitably defined. These variables are subsequently used by _LT_CONFIG
7946 # to write the compiler configuration to 'libtool'.
7947 m4_defun([_LT_LANG_GCJ_CONFIG],
7948 [AC_REQUIRE([LT_PROG_GCJ])dnl
7949 AC_LANG_SAVE
7950
7951 # Source file extension for Java test sources.
7952 ac_ext=java
7953
7954 # Object file extension for compiled Java test sources.
7955 objext=o
7956 _LT_TAGVAR(objext, $1)=$objext
7957
7958 # Code to be used in simple compile tests
7959 lt_simple_compile_test_code="class foo {}"
7960
7961 # Code to be used in simple link tests
7962 lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
7963
7964 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
7965 _LT_TAG_COMPILER
7966
7967 # save warnings/boilerplate of simple test code
7968 _LT_COMPILER_BOILERPLATE
7969 _LT_LINKER_BOILERPLATE
7970
7971 # Allow CC to be a program name with arguments.
7972 lt_save_CC=$CC
7973 lt_save_CFLAGS=$CFLAGS
7974 lt_save_GCC=$GCC
7975 GCC=yes
7976 CC=${GCJ-"gcj"}
7977 CFLAGS=$GCJFLAGS
7978 compiler=$CC
7979 _LT_TAGVAR(compiler, $1)=$CC
7980 _LT_TAGVAR(LD, $1)=$LD
7981 _LT_CC_BASENAME([$compiler])
7982
7983 # GCJ did not exist at the time GCC didn't implicitly link libc in.
7984 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
7985
7986 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
7987 _LT_TAGVAR(reload_flag, $1)=$reload_flag
7988 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
7989
7990 ## CAVEAT EMPTOR:
7991 ## There is no encapsulation within the following macros, do not change
7992 ## the running order or otherwise move them around unless you know exactly
7993 ## what you are doing...
7994 if test -n "$compiler"; then
7995 _LT_COMPILER_NO_RTTI($1)
7996 _LT_COMPILER_PIC($1)
7997 _LT_COMPILER_C_O($1)
7998 _LT_COMPILER_FILE_LOCKS($1)
7999 _LT_LINKER_SHLIBS($1)
8000 _LT_LINKER_HARDCODE_LIBPATH($1)
8001
8002 _LT_CONFIG($1)
8003 fi
8004
8005 AC_LANG_RESTORE
8006
8007 GCC=$lt_save_GCC
8008 CC=$lt_save_CC
8009 CFLAGS=$lt_save_CFLAGS
8010 ])# _LT_LANG_GCJ_CONFIG
8011
8012
8013 # _LT_LANG_GO_CONFIG([TAG])
8014 # --------------------------
8015 # Ensure that the configuration variables for the GNU Go compiler
8016 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8017 # to write the compiler configuration to 'libtool'.
8018 m4_defun([_LT_LANG_GO_CONFIG],
8019 [AC_REQUIRE([LT_PROG_GO])dnl
8020 AC_LANG_SAVE
8021
8022 # Source file extension for Go test sources.
8023 ac_ext=go
8024
8025 # Object file extension for compiled Go test sources.
8026 objext=o
8027 _LT_TAGVAR(objext, $1)=$objext
8028
8029 # Code to be used in simple compile tests
8030 lt_simple_compile_test_code="package main; func main() { }"
8031
8032 # Code to be used in simple link tests
8033 lt_simple_link_test_code='package main; func main() { }'
8034
8035 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8036 _LT_TAG_COMPILER
8037
8038 # save warnings/boilerplate of simple test code
8039 _LT_COMPILER_BOILERPLATE
8040 _LT_LINKER_BOILERPLATE
8041
8042 # Allow CC to be a program name with arguments.
8043 lt_save_CC=$CC
8044 lt_save_CFLAGS=$CFLAGS
8045 lt_save_GCC=$GCC
8046 GCC=yes
8047 CC=${GOC-"gccgo"}
8048 CFLAGS=$GOFLAGS
8049 compiler=$CC
8050 _LT_TAGVAR(compiler, $1)=$CC
8051 _LT_TAGVAR(LD, $1)=$LD
8052 _LT_CC_BASENAME([$compiler])
8053
8054 # Go did not exist at the time GCC didn't implicitly link libc in.
8055 _LT_TAGVAR(archive_cmds_need_lc, $1)=no
8056
8057 _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
8058 _LT_TAGVAR(reload_flag, $1)=$reload_flag
8059 _LT_TAGVAR(reload_cmds, $1)=$reload_cmds
8060
8061 ## CAVEAT EMPTOR:
8062 ## There is no encapsulation within the following macros, do not change
8063 ## the running order or otherwise move them around unless you know exactly
8064 ## what you are doing...
8065 if test -n "$compiler"; then
8066 _LT_COMPILER_NO_RTTI($1)
8067 _LT_COMPILER_PIC($1)
8068 _LT_COMPILER_C_O($1)
8069 _LT_COMPILER_FILE_LOCKS($1)
8070 _LT_LINKER_SHLIBS($1)
8071 _LT_LINKER_HARDCODE_LIBPATH($1)
8072
8073 _LT_CONFIG($1)
8074 fi
8075
8076 AC_LANG_RESTORE
8077
8078 GCC=$lt_save_GCC
8079 CC=$lt_save_CC
8080 CFLAGS=$lt_save_CFLAGS
8081 ])# _LT_LANG_GO_CONFIG
8082
8083
8084 # _LT_LANG_RC_CONFIG([TAG])
8085 # -------------------------
8086 # Ensure that the configuration variables for the Windows resource compiler
8087 # are suitably defined. These variables are subsequently used by _LT_CONFIG
8088 # to write the compiler configuration to 'libtool'.
8089 m4_defun([_LT_LANG_RC_CONFIG],
8090 [AC_REQUIRE([LT_PROG_RC])dnl
8091 AC_LANG_SAVE
8092
8093 # Source file extension for RC test sources.
8094 ac_ext=rc
8095
8096 # Object file extension for compiled RC test sources.
8097 objext=o
8098 _LT_TAGVAR(objext, $1)=$objext
8099
8100 # Code to be used in simple compile tests
8101 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
8102
8103 # Code to be used in simple link tests
8104 lt_simple_link_test_code=$lt_simple_compile_test_code
8105
8106 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8107 _LT_TAG_COMPILER
8108
8109 # save warnings/boilerplate of simple test code
8110 _LT_COMPILER_BOILERPLATE
8111 _LT_LINKER_BOILERPLATE
8112
8113 # Allow CC to be a program name with arguments.
8114 lt_save_CC=$CC
8115 lt_save_CFLAGS=$CFLAGS
8116 lt_save_GCC=$GCC
8117 GCC=
8118 CC=${RC-"windres"}
8119 CFLAGS=
8120 compiler=$CC
8121 _LT_TAGVAR(compiler, $1)=$CC
8122 _LT_CC_BASENAME([$compiler])
8123 _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
8124
8125 if test -n "$compiler"; then
8126 :
8127 _LT_CONFIG($1)
8128 fi
8129
8130 GCC=$lt_save_GCC
8131 AC_LANG_RESTORE
8132 CC=$lt_save_CC
8133 CFLAGS=$lt_save_CFLAGS
8134 ])# _LT_LANG_RC_CONFIG
8135
8136
8137 # LT_PROG_GCJ
8138 # -----------
8139 AC_DEFUN([LT_PROG_GCJ],
8140 [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
8141 [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
8142 [AC_CHECK_TOOL(GCJ, gcj,)
8143 test set = "${GCJFLAGS+set}" || GCJFLAGS="-g -O2"
8144 AC_SUBST(GCJFLAGS)])])[]dnl
8145 ])
8146
8147 # Old name:
8148 AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
8149 dnl aclocal-1.4 backwards compatibility:
8150 dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
8151
8152
8153 # LT_PROG_GO
8154 # ----------
8155 AC_DEFUN([LT_PROG_GO],
8156 [AC_CHECK_TOOL(GOC, gccgo,)
8157 ])
8158
8159
8160 # LT_PROG_RC
8161 # ----------
8162 AC_DEFUN([LT_PROG_RC],
8163 [AC_CHECK_TOOL(RC, windres,)
8164 ])
8165
8166 # Old name:
8167 AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
8168 dnl aclocal-1.4 backwards compatibility:
8169 dnl AC_DEFUN([LT_AC_PROG_RC], [])
8170
8171
8172 # _LT_DECL_EGREP
8173 # --------------
8174 # If we don't have a new enough Autoconf to choose the best grep
8175 # available, choose the one first in the user's PATH.
8176 m4_defun([_LT_DECL_EGREP],
8177 [AC_REQUIRE([AC_PROG_EGREP])dnl
8178 AC_REQUIRE([AC_PROG_FGREP])dnl
8179 test -z "$GREP" && GREP=grep
8180 _LT_DECL([], [GREP], [1], [A grep program that handles long lines])
8181 _LT_DECL([], [EGREP], [1], [An ERE matcher])
8182 _LT_DECL([], [FGREP], [1], [A literal string matcher])
8183 dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
8184 AC_SUBST([GREP])
8185 ])
8186
8187
8188 # _LT_DECL_OBJDUMP
8189 # --------------
8190 # If we don't have a new enough Autoconf to choose the best objdump
8191 # available, choose the one first in the user's PATH.
8192 m4_defun([_LT_DECL_OBJDUMP],
8193 [AC_CHECK_TOOL(OBJDUMP, objdump, false)
8194 test -z "$OBJDUMP" && OBJDUMP=objdump
8195 _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
8196 AC_SUBST([OBJDUMP])
8197 ])
8198
8199 # _LT_DECL_DLLTOOL
8200 # ----------------
8201 # Ensure DLLTOOL variable is set.
8202 m4_defun([_LT_DECL_DLLTOOL],
8203 [AC_CHECK_TOOL(DLLTOOL, dlltool, false)
8204 test -z "$DLLTOOL" && DLLTOOL=dlltool
8205 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])
8206 AC_SUBST([DLLTOOL])
8207 ])
8208
8209 # _LT_DECL_SED
8210 # ------------
8211 # Check for a fully-functional sed program, that truncates
8212 # as few characters as possible. Prefer GNU sed if found.
8213 m4_defun([_LT_DECL_SED],
8214 [AC_PROG_SED
8215 test -z "$SED" && SED=sed
8216 Xsed="$SED -e 1s/^X//"
8217 _LT_DECL([], [SED], [1], [A sed program that does not truncate output])
8218 _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
8219 [Sed that helps us avoid accidentally triggering echo(1) options like -n])
8220 ])# _LT_DECL_SED
8221
8222 m4_ifndef([AC_PROG_SED], [
8223 ############################################################
8224 # NOTE: This macro has been submitted for inclusion into #
8225 # GNU Autoconf as AC_PROG_SED. When it is available in #
8226 # a released version of Autoconf we should remove this #
8227 # macro and use it instead. #
8228 ############################################################
8229
8230 m4_defun([AC_PROG_SED],
8231 [AC_MSG_CHECKING([for a sed that does not truncate output])
8232 AC_CACHE_VAL(lt_cv_path_SED,
8233 [# Loop through the user's path and test for sed and gsed.
8234 # Then use that list of sed's as ones to test for truncation.
8235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238 IFS=$as_save_IFS
8239 test -z "$as_dir" && as_dir=.
8240 for lt_ac_prog in sed gsed; do
8241 for ac_exec_ext in '' $ac_executable_extensions; do
8242 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
8243 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
8244 fi
8245 done
8246 done
8247 done
8248 IFS=$as_save_IFS
8249 lt_ac_max=0
8250 lt_ac_count=0
8251 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
8252 # along with /bin/sed that truncates output.
8253 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
8254 test ! -f "$lt_ac_sed" && continue
8255 cat /dev/null > conftest.in
8256 lt_ac_count=0
8257 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
8258 # Check for GNU sed and select it if it is found.
8259 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
8260 lt_cv_path_SED=$lt_ac_sed
8261 break
8262 fi
8263 while true; do
8264 cat conftest.in conftest.in >conftest.tmp
8265 mv conftest.tmp conftest.in
8266 cp conftest.in conftest.nl
8267 echo >>conftest.nl
8268 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
8269 cmp -s conftest.out conftest.nl || break
8270 # 10000 chars as input seems more than enough
8271 test 10 -lt "$lt_ac_count" && break
8272 lt_ac_count=`expr $lt_ac_count + 1`
8273 if test "$lt_ac_count" -gt "$lt_ac_max"; then
8274 lt_ac_max=$lt_ac_count
8275 lt_cv_path_SED=$lt_ac_sed
8276 fi
8277 done
8278 done
8279 ])
8280 SED=$lt_cv_path_SED
8281 AC_SUBST([SED])
8282 AC_MSG_RESULT([$SED])
8283 ])#AC_PROG_SED
8284 ])#m4_ifndef
8285
8286 # Old name:
8287 AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
8288 dnl aclocal-1.4 backwards compatibility:
8289 dnl AC_DEFUN([LT_AC_PROG_SED], [])
8290
8291
8292 # _LT_CHECK_SHELL_FEATURES
8293 # ------------------------
8294 # Find out whether the shell is Bourne or XSI compatible,
8295 # or has some other useful features.
8296 m4_defun([_LT_CHECK_SHELL_FEATURES],
8297 [if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8298 lt_unset=unset
8299 else
8300 lt_unset=false
8301 fi
8302 _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
8303
8304 # test EBCDIC or ASCII
8305 case `echo X|tr X '\101'` in
8306 A) # ASCII based system
8307 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8308 lt_SP2NL='tr \040 \012'
8309 lt_NL2SP='tr \015\012 \040\040'
8310 ;;
8311 *) # EBCDIC based system
8312 lt_SP2NL='tr \100 \n'
8313 lt_NL2SP='tr \r\n \100\100'
8314 ;;
8315 esac
8316 _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
8317 _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
8318 ])# _LT_CHECK_SHELL_FEATURES
8319
8320
8321 # _LT_PATH_CONVERSION_FUNCTIONS
8322 # -----------------------------
8323 # Determine what file name conversion functions should be used by
8324 # func_to_host_file (and, implicitly, by func_to_host_path). These are needed
8325 # for certain cross-compile configurations and native mingw.
8326 m4_defun([_LT_PATH_CONVERSION_FUNCTIONS],
8327 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
8328 AC_REQUIRE([AC_CANONICAL_BUILD])dnl
8329 AC_MSG_CHECKING([how to convert $build file names to $host format])
8330 AC_CACHE_VAL(lt_cv_to_host_file_cmd,
8331 [case $host in
8332 *-*-mingw* )
8333 case $build in
8334 *-*-mingw* ) # actually msys
8335 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8336 ;;
8337 *-*-cygwin* )
8338 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8339 ;;
8340 * ) # otherwise, assume *nix
8341 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8342 ;;
8343 esac
8344 ;;
8345 *-*-cygwin* )
8346 case $build in
8347 *-*-mingw* ) # actually msys
8348 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8349 ;;
8350 *-*-cygwin* )
8351 lt_cv_to_host_file_cmd=func_convert_file_noop
8352 ;;
8353 * ) # otherwise, assume *nix
8354 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8355 ;;
8356 esac
8357 ;;
8358 * ) # unhandled hosts (and "normal" native builds)
8359 lt_cv_to_host_file_cmd=func_convert_file_noop
8360 ;;
8361 esac
8362 ])
8363 to_host_file_cmd=$lt_cv_to_host_file_cmd
8364 AC_MSG_RESULT([$lt_cv_to_host_file_cmd])
8365 _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd],
8366 [0], [convert $build file names to $host format])dnl
8367
8368 AC_MSG_CHECKING([how to convert $build file names to toolchain format])
8369 AC_CACHE_VAL(lt_cv_to_tool_file_cmd,
8370 [#assume ordinary cross tools, or native build.
8371 lt_cv_to_tool_file_cmd=func_convert_file_noop
8372 case $host in
8373 *-*-mingw* )
8374 case $build in
8375 *-*-mingw* ) # actually msys
8376 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8377 ;;
8378 esac
8379 ;;
8380 esac
8381 ])
8382 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8383 AC_MSG_RESULT([$lt_cv_to_tool_file_cmd])
8384 _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd],
8385 [0], [convert $build files to toolchain format])dnl
8386 ])# _LT_PATH_CONVERSION_FUNCTIONS
+0
-437
m4/ltoptions.m4 less more
0 # Helper functions for option handling. -*- Autoconf -*-
1 #
2 # Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software
3 # Foundation, Inc.
4 # Written by Gary V. Vaughan, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 8 ltoptions.m4
11
12 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
14
15
16 # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
17 # ------------------------------------------
18 m4_define([_LT_MANGLE_OPTION],
19 [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
20
21
22 # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
23 # ---------------------------------------
24 # Set option OPTION-NAME for macro MACRO-NAME, and if there is a
25 # matching handler defined, dispatch to it. Other OPTION-NAMEs are
26 # saved as a flag.
27 m4_define([_LT_SET_OPTION],
28 [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
29 m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
30 _LT_MANGLE_DEFUN([$1], [$2]),
31 [m4_warning([Unknown $1 option '$2'])])[]dnl
32 ])
33
34
35 # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
36 # ------------------------------------------------------------
37 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
38 m4_define([_LT_IF_OPTION],
39 [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
40
41
42 # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
43 # -------------------------------------------------------
44 # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
45 # are set.
46 m4_define([_LT_UNLESS_OPTIONS],
47 [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
48 [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
49 [m4_define([$0_found])])])[]dnl
50 m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
51 ])[]dnl
52 ])
53
54
55 # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
56 # ----------------------------------------
57 # OPTION-LIST is a space-separated list of Libtool options associated
58 # with MACRO-NAME. If any OPTION has a matching handler declared with
59 # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
60 # the unknown option and exit.
61 m4_defun([_LT_SET_OPTIONS],
62 [# Set options
63 m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
64 [_LT_SET_OPTION([$1], _LT_Option)])
65
66 m4_if([$1],[LT_INIT],[
67 dnl
68 dnl Simply set some default values (i.e off) if boolean options were not
69 dnl specified:
70 _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
71 ])
72 _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
73 ])
74 dnl
75 dnl If no reference was made to various pairs of opposing options, then
76 dnl we run the default mode handler for the pair. For example, if neither
77 dnl 'shared' nor 'disable-shared' was passed, we enable building of shared
78 dnl archives by default:
79 _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
80 _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
81 _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
82 _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
83 [_LT_ENABLE_FAST_INSTALL])
84 _LT_UNLESS_OPTIONS([LT_INIT], [aix-soname=aix aix-soname=both aix-soname=svr4],
85 [_LT_WITH_AIX_SONAME([aix])])
86 ])
87 ])# _LT_SET_OPTIONS
88
89
90 ## --------------------------------- ##
91 ## Macros to handle LT_INIT options. ##
92 ## --------------------------------- ##
93
94 # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
95 # -----------------------------------------
96 m4_define([_LT_MANGLE_DEFUN],
97 [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
98
99
100 # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
101 # -----------------------------------------------
102 m4_define([LT_OPTION_DEFINE],
103 [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
104 ])# LT_OPTION_DEFINE
105
106
107 # dlopen
108 # ------
109 LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
110 ])
111
112 AU_DEFUN([AC_LIBTOOL_DLOPEN],
113 [_LT_SET_OPTION([LT_INIT], [dlopen])
114 AC_DIAGNOSE([obsolete],
115 [$0: Remove this warning and the call to _LT_SET_OPTION when you
116 put the 'dlopen' option into LT_INIT's first parameter.])
117 ])
118
119 dnl aclocal-1.4 backwards compatibility:
120 dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
121
122
123 # win32-dll
124 # ---------
125 # Declare package support for building win32 dll's.
126 LT_OPTION_DEFINE([LT_INIT], [win32-dll],
127 [enable_win32_dll=yes
128
129 case $host in
130 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
131 AC_CHECK_TOOL(AS, as, false)
132 AC_CHECK_TOOL(DLLTOOL, dlltool, false)
133 AC_CHECK_TOOL(OBJDUMP, objdump, false)
134 ;;
135 esac
136
137 test -z "$AS" && AS=as
138 _LT_DECL([], [AS], [1], [Assembler program])dnl
139
140 test -z "$DLLTOOL" && DLLTOOL=dlltool
141 _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl
142
143 test -z "$OBJDUMP" && OBJDUMP=objdump
144 _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl
145 ])# win32-dll
146
147 AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
148 [AC_REQUIRE([AC_CANONICAL_HOST])dnl
149 _LT_SET_OPTION([LT_INIT], [win32-dll])
150 AC_DIAGNOSE([obsolete],
151 [$0: Remove this warning and the call to _LT_SET_OPTION when you
152 put the 'win32-dll' option into LT_INIT's first parameter.])
153 ])
154
155 dnl aclocal-1.4 backwards compatibility:
156 dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
157
158
159 # _LT_ENABLE_SHARED([DEFAULT])
160 # ----------------------------
161 # implement the --enable-shared flag, and supports the 'shared' and
162 # 'disable-shared' LT_INIT options.
163 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
164 m4_define([_LT_ENABLE_SHARED],
165 [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
166 AC_ARG_ENABLE([shared],
167 [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
168 [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
169 [p=${PACKAGE-default}
170 case $enableval in
171 yes) enable_shared=yes ;;
172 no) enable_shared=no ;;
173 *)
174 enable_shared=no
175 # Look at the argument we got. We use all the common list separators.
176 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
177 for pkg in $enableval; do
178 IFS=$lt_save_ifs
179 if test "X$pkg" = "X$p"; then
180 enable_shared=yes
181 fi
182 done
183 IFS=$lt_save_ifs
184 ;;
185 esac],
186 [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
187
188 _LT_DECL([build_libtool_libs], [enable_shared], [0],
189 [Whether or not to build shared libraries])
190 ])# _LT_ENABLE_SHARED
191
192 LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
193 LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
194
195 # Old names:
196 AC_DEFUN([AC_ENABLE_SHARED],
197 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
198 ])
199
200 AC_DEFUN([AC_DISABLE_SHARED],
201 [_LT_SET_OPTION([LT_INIT], [disable-shared])
202 ])
203
204 AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
205 AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
206
207 dnl aclocal-1.4 backwards compatibility:
208 dnl AC_DEFUN([AM_ENABLE_SHARED], [])
209 dnl AC_DEFUN([AM_DISABLE_SHARED], [])
210
211
212
213 # _LT_ENABLE_STATIC([DEFAULT])
214 # ----------------------------
215 # implement the --enable-static flag, and support the 'static' and
216 # 'disable-static' LT_INIT options.
217 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
218 m4_define([_LT_ENABLE_STATIC],
219 [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
220 AC_ARG_ENABLE([static],
221 [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
222 [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
223 [p=${PACKAGE-default}
224 case $enableval in
225 yes) enable_static=yes ;;
226 no) enable_static=no ;;
227 *)
228 enable_static=no
229 # Look at the argument we got. We use all the common list separators.
230 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
231 for pkg in $enableval; do
232 IFS=$lt_save_ifs
233 if test "X$pkg" = "X$p"; then
234 enable_static=yes
235 fi
236 done
237 IFS=$lt_save_ifs
238 ;;
239 esac],
240 [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
241
242 _LT_DECL([build_old_libs], [enable_static], [0],
243 [Whether or not to build static libraries])
244 ])# _LT_ENABLE_STATIC
245
246 LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
247 LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
248
249 # Old names:
250 AC_DEFUN([AC_ENABLE_STATIC],
251 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
252 ])
253
254 AC_DEFUN([AC_DISABLE_STATIC],
255 [_LT_SET_OPTION([LT_INIT], [disable-static])
256 ])
257
258 AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
259 AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
260
261 dnl aclocal-1.4 backwards compatibility:
262 dnl AC_DEFUN([AM_ENABLE_STATIC], [])
263 dnl AC_DEFUN([AM_DISABLE_STATIC], [])
264
265
266
267 # _LT_ENABLE_FAST_INSTALL([DEFAULT])
268 # ----------------------------------
269 # implement the --enable-fast-install flag, and support the 'fast-install'
270 # and 'disable-fast-install' LT_INIT options.
271 # DEFAULT is either 'yes' or 'no'. If omitted, it defaults to 'yes'.
272 m4_define([_LT_ENABLE_FAST_INSTALL],
273 [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
274 AC_ARG_ENABLE([fast-install],
275 [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
276 [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
277 [p=${PACKAGE-default}
278 case $enableval in
279 yes) enable_fast_install=yes ;;
280 no) enable_fast_install=no ;;
281 *)
282 enable_fast_install=no
283 # Look at the argument we got. We use all the common list separators.
284 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
285 for pkg in $enableval; do
286 IFS=$lt_save_ifs
287 if test "X$pkg" = "X$p"; then
288 enable_fast_install=yes
289 fi
290 done
291 IFS=$lt_save_ifs
292 ;;
293 esac],
294 [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
295
296 _LT_DECL([fast_install], [enable_fast_install], [0],
297 [Whether or not to optimize for fast installation])dnl
298 ])# _LT_ENABLE_FAST_INSTALL
299
300 LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
301 LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
302
303 # Old names:
304 AU_DEFUN([AC_ENABLE_FAST_INSTALL],
305 [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
306 AC_DIAGNOSE([obsolete],
307 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
308 the 'fast-install' option into LT_INIT's first parameter.])
309 ])
310
311 AU_DEFUN([AC_DISABLE_FAST_INSTALL],
312 [_LT_SET_OPTION([LT_INIT], [disable-fast-install])
313 AC_DIAGNOSE([obsolete],
314 [$0: Remove this warning and the call to _LT_SET_OPTION when you put
315 the 'disable-fast-install' option into LT_INIT's first parameter.])
316 ])
317
318 dnl aclocal-1.4 backwards compatibility:
319 dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
320 dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
321
322
323 # _LT_WITH_AIX_SONAME([DEFAULT])
324 # ----------------------------------
325 # implement the --with-aix-soname flag, and support the `aix-soname=aix'
326 # and `aix-soname=both' and `aix-soname=svr4' LT_INIT options. DEFAULT
327 # is either `aix', `both' or `svr4'. If omitted, it defaults to `aix'.
328 m4_define([_LT_WITH_AIX_SONAME],
329 [m4_define([_LT_WITH_AIX_SONAME_DEFAULT], [m4_if($1, svr4, svr4, m4_if($1, both, both, aix))])dnl
330 shared_archive_member_spec=
331 case $host,$enable_shared in
332 power*-*-aix[[5-9]]*,yes)
333 AC_MSG_CHECKING([which variant of shared library versioning to provide])
334 AC_ARG_WITH([aix-soname],
335 [AS_HELP_STRING([--with-aix-soname=aix|svr4|both],
336 [shared library versioning (aka "SONAME") variant to provide on AIX, @<:@default=]_LT_WITH_AIX_SONAME_DEFAULT[@:>@.])],
337 [case $withval in
338 aix|svr4|both)
339 ;;
340 *)
341 AC_MSG_ERROR([Unknown argument to --with-aix-soname])
342 ;;
343 esac
344 lt_cv_with_aix_soname=$with_aix_soname],
345 [AC_CACHE_VAL([lt_cv_with_aix_soname],
346 [lt_cv_with_aix_soname=]_LT_WITH_AIX_SONAME_DEFAULT)
347 with_aix_soname=$lt_cv_with_aix_soname])
348 AC_MSG_RESULT([$with_aix_soname])
349 if test aix != "$with_aix_soname"; then
350 # For the AIX way of multilib, we name the shared archive member
351 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
352 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
353 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
354 # the AIX toolchain works better with OBJECT_MODE set (default 32).
355 if test 64 = "${OBJECT_MODE-32}"; then
356 shared_archive_member_spec=shr_64
357 else
358 shared_archive_member_spec=shr
359 fi
360 fi
361 ;;
362 *)
363 with_aix_soname=aix
364 ;;
365 esac
366
367 _LT_DECL([], [shared_archive_member_spec], [0],
368 [Shared archive member basename, for filename based shared library versioning on AIX])dnl
369 ])# _LT_WITH_AIX_SONAME
370
371 LT_OPTION_DEFINE([LT_INIT], [aix-soname=aix], [_LT_WITH_AIX_SONAME([aix])])
372 LT_OPTION_DEFINE([LT_INIT], [aix-soname=both], [_LT_WITH_AIX_SONAME([both])])
373 LT_OPTION_DEFINE([LT_INIT], [aix-soname=svr4], [_LT_WITH_AIX_SONAME([svr4])])
374
375
376 # _LT_WITH_PIC([MODE])
377 # --------------------
378 # implement the --with-pic flag, and support the 'pic-only' and 'no-pic'
379 # LT_INIT options.
380 # MODE is either 'yes' or 'no'. If omitted, it defaults to 'both'.
381 m4_define([_LT_WITH_PIC],
382 [AC_ARG_WITH([pic],
383 [AS_HELP_STRING([--with-pic@<:@=PKGS@:>@],
384 [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
385 [lt_p=${PACKAGE-default}
386 case $withval in
387 yes|no) pic_mode=$withval ;;
388 *)
389 pic_mode=default
390 # Look at the argument we got. We use all the common list separators.
391 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
392 for lt_pkg in $withval; do
393 IFS=$lt_save_ifs
394 if test "X$lt_pkg" = "X$lt_p"; then
395 pic_mode=yes
396 fi
397 done
398 IFS=$lt_save_ifs
399 ;;
400 esac],
401 [pic_mode=m4_default([$1], [default])])
402
403 _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
404 ])# _LT_WITH_PIC
405
406 LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
407 LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
408
409 # Old name:
410 AU_DEFUN([AC_LIBTOOL_PICMODE],
411 [_LT_SET_OPTION([LT_INIT], [pic-only])
412 AC_DIAGNOSE([obsolete],
413 [$0: Remove this warning and the call to _LT_SET_OPTION when you
414 put the 'pic-only' option into LT_INIT's first parameter.])
415 ])
416
417 dnl aclocal-1.4 backwards compatibility:
418 dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
419
420 ## ----------------- ##
421 ## LTDL_INIT Options ##
422 ## ----------------- ##
423
424 m4_define([_LTDL_MODE], [])
425 LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
426 [m4_define([_LTDL_MODE], [nonrecursive])])
427 LT_OPTION_DEFINE([LTDL_INIT], [recursive],
428 [m4_define([_LTDL_MODE], [recursive])])
429 LT_OPTION_DEFINE([LTDL_INIT], [subproject],
430 [m4_define([_LTDL_MODE], [subproject])])
431
432 m4_define([_LTDL_TYPE], [])
433 LT_OPTION_DEFINE([LTDL_INIT], [installable],
434 [m4_define([_LTDL_TYPE], [installable])])
435 LT_OPTION_DEFINE([LTDL_INIT], [convenience],
436 [m4_define([_LTDL_TYPE], [convenience])])
+0
-124
m4/ltsugar.m4 less more
0 # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software
3 # Foundation, Inc.
4 # Written by Gary V. Vaughan, 2004
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 6 ltsugar.m4
11
12 # This is to help aclocal find these macros, as it can't see m4_define.
13 AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
14
15
16 # lt_join(SEP, ARG1, [ARG2...])
17 # -----------------------------
18 # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
19 # associated separator.
20 # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
21 # versions in m4sugar had bugs.
22 m4_define([lt_join],
23 [m4_if([$#], [1], [],
24 [$#], [2], [[$2]],
25 [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
26 m4_define([_lt_join],
27 [m4_if([$#$2], [2], [],
28 [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
29
30
31 # lt_car(LIST)
32 # lt_cdr(LIST)
33 # ------------
34 # Manipulate m4 lists.
35 # These macros are necessary as long as will still need to support
36 # Autoconf-2.59, which quotes differently.
37 m4_define([lt_car], [[$1]])
38 m4_define([lt_cdr],
39 [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
40 [$#], 1, [],
41 [m4_dquote(m4_shift($@))])])
42 m4_define([lt_unquote], $1)
43
44
45 # lt_append(MACRO-NAME, STRING, [SEPARATOR])
46 # ------------------------------------------
47 # Redefine MACRO-NAME to hold its former content plus 'SEPARATOR''STRING'.
48 # Note that neither SEPARATOR nor STRING are expanded; they are appended
49 # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
50 # No SEPARATOR is output if MACRO-NAME was previously undefined (different
51 # than defined and empty).
52 #
53 # This macro is needed until we can rely on Autoconf 2.62, since earlier
54 # versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
55 m4_define([lt_append],
56 [m4_define([$1],
57 m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
58
59
60
61 # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
62 # ----------------------------------------------------------
63 # Produce a SEP delimited list of all paired combinations of elements of
64 # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
65 # has the form PREFIXmINFIXSUFFIXn.
66 # Needed until we can rely on m4_combine added in Autoconf 2.62.
67 m4_define([lt_combine],
68 [m4_if(m4_eval([$# > 3]), [1],
69 [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
70 [[m4_foreach([_Lt_prefix], [$2],
71 [m4_foreach([_Lt_suffix],
72 ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
73 [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
74
75
76 # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
77 # -----------------------------------------------------------------------
78 # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
79 # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
80 m4_define([lt_if_append_uniq],
81 [m4_ifdef([$1],
82 [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
83 [lt_append([$1], [$2], [$3])$4],
84 [$5])],
85 [lt_append([$1], [$2], [$3])$4])])
86
87
88 # lt_dict_add(DICT, KEY, VALUE)
89 # -----------------------------
90 m4_define([lt_dict_add],
91 [m4_define([$1($2)], [$3])])
92
93
94 # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
95 # --------------------------------------------
96 m4_define([lt_dict_add_subkey],
97 [m4_define([$1($2:$3)], [$4])])
98
99
100 # lt_dict_fetch(DICT, KEY, [SUBKEY])
101 # ----------------------------------
102 m4_define([lt_dict_fetch],
103 [m4_ifval([$3],
104 m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
105 m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
106
107
108 # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
109 # -----------------------------------------------------------------
110 m4_define([lt_if_dict_fetch],
111 [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
112 [$5],
113 [$6])])
114
115
116 # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
117 # --------------------------------------------------------------
118 m4_define([lt_dict_filter],
119 [m4_if([$5], [], [],
120 [lt_join(m4_quote(m4_default([$4], [[, ]])),
121 lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
122 [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
123 ])
+0
-23
m4/ltversion.m4 less more
0 # ltversion.m4 -- version numbers -*- Autoconf -*-
1 #
2 # Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc.
3 # Written by Scott James Remnant, 2004
4 #
5 # This file is free software; the Free Software Foundation gives
6 # unlimited permission to copy and/or distribute it, with or without
7 # modifications, as long as this notice is preserved.
8
9 # @configure_input@
10
11 # serial 4179 ltversion.m4
12 # This file is part of GNU Libtool
13
14 m4_define([LT_PACKAGE_VERSION], [2.4.6])
15 m4_define([LT_PACKAGE_REVISION], [2.4.6])
16
17 AC_DEFUN([LTVERSION_VERSION],
18 [macro_version='2.4.6'
19 macro_revision='2.4.6'
20 _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
21 _LT_DECL(, macro_revision, 0)
22 ])
+0
-99
m4/lt~obsolete.m4 less more
0 # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
1 #
2 # Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software
3 # Foundation, Inc.
4 # Written by Scott James Remnant, 2004.
5 #
6 # This file is free software; the Free Software Foundation gives
7 # unlimited permission to copy and/or distribute it, with or without
8 # modifications, as long as this notice is preserved.
9
10 # serial 5 lt~obsolete.m4
11
12 # These exist entirely to fool aclocal when bootstrapping libtool.
13 #
14 # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN),
15 # which have later been changed to m4_define as they aren't part of the
16 # exported API, or moved to Autoconf or Automake where they belong.
17 #
18 # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
19 # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
20 # using a macro with the same name in our local m4/libtool.m4 it'll
21 # pull the old libtool.m4 in (it doesn't see our shiny new m4_define
22 # and doesn't know about Autoconf macros at all.)
23 #
24 # So we provide this file, which has a silly filename so it's always
25 # included after everything else. This provides aclocal with the
26 # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
27 # because those macros already exist, or will be overwritten later.
28 # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
29 #
30 # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
31 # Yes, that means every name once taken will need to remain here until
32 # we give up compatibility with versions before 1.7, at which point
33 # we need to keep only those names which we still refer to.
34
35 # This is to help aclocal find these macros, as it can't see m4_define.
36 AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
37
38 m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
39 m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
40 m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
41 m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
42 m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
43 m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
44 m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
45 m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
46 m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
47 m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
48 m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
49 m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
50 m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
51 m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
52 m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
53 m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
54 m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
55 m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
56 m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
57 m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
58 m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
59 m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
60 m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
61 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
62 m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
63 m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
64 m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
65 m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
66 m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
67 m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
68 m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
69 m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
70 m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
71 m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
72 m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
73 m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
74 m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
75 m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
76 m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
77 m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
78 m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
79 m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
80 m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
81 m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
82 m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
83 m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
84 m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
85 m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
86 m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
87 m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
88 m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
89 m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
90 m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
91 m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
92 m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])])
93 m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])])
94 m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])])
95 m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])])
96 m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])])
97 m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])])
98 m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
0 # visibility.m4 serial 1 (gettext-0.15)
1 dnl Copyright (C) 2005 Free Software Foundation, Inc.
2 dnl This file is free software; the Free Software Foundation
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5
6 dnl From Bruno Haible.
7
8 dnl Tests whether the compiler supports the command-line option
9 dnl -fvisibility=hidden and the function and variable attributes
10 dnl __attribute__((__visibility__("hidden"))) and
11 dnl __attribute__((__visibility__("default"))).
12 dnl Does *not* test for __visibility__("protected") - which has tricky
13 dnl semantics (see the 'vismain' test in glibc) and does not exist e.g. on
14 dnl MacOS X.
15 dnl Does *not* test for __visibility__("internal") - which has processor
16 dnl dependent semantics.
17 dnl Does *not* test for #pragma GCC visibility push(hidden) - which is
18 dnl "really only recommended for legacy code".
19 dnl Set the variable CFLAG_VISIBILITY.
20 dnl Defines and sets the variable HAVE_VISIBILITY.
21
22 AC_DEFUN([gl_VISIBILITY],
23 [
24 AC_REQUIRE([AC_PROG_CC])
25 CFLAG_VISIBILITY=
26 HAVE_VISIBILITY=0
27 if test -n "$GCC"; then
28 AC_MSG_CHECKING([for simple visibility declarations])
29 AC_CACHE_VAL(gl_cv_cc_visibility, [
30 gl_save_CFLAGS="$CFLAGS"
31 CFLAGS="$CFLAGS -fvisibility=hidden"
32 AC_TRY_COMPILE(
33 [extern __attribute__((__visibility__("hidden"))) int hiddenvar;
34 extern __attribute__((__visibility__("default"))) int exportedvar;
35 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
36 extern __attribute__((__visibility__("default"))) int exportedfunc (void);],
37 [],
38 gl_cv_cc_visibility=yes,
39 gl_cv_cc_visibility=no)
40 CFLAGS="$gl_save_CFLAGS"])
41 AC_MSG_RESULT([$gl_cv_cc_visibility])
42 if test $gl_cv_cc_visibility = yes; then
43 CFLAG_VISIBILITY="-fvisibility=hidden"
44 HAVE_VISIBILITY=1
45 fi
46 fi
47 AC_SUBST([CFLAG_VISIBILITY])
48 AC_SUBST([HAVE_VISIBILITY])
49 AC_DEFINE_UNQUOTED([HAVE_VISIBILITY], [$HAVE_VISIBILITY],
50 [Define to 1 or 0, depending whether the compiler supports simple visibility declarations.])
51 ])
+0
-215
missing less more
0 #! /bin/sh
1 # Common wrapper for a few potentially missing GNU programs.
2
3 scriptversion=2013-10-28.13; # UTC
4
5 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
6 # Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
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, see <http://www.gnu.org/licenses/>.
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 if test $# -eq 0; then
27 echo 1>&2 "Try '$0 --help' for more information"
28 exit 1
29 fi
30
31 case $1 in
32
33 --is-lightweight)
34 # Used by our autoconf macros to check whether the available missing
35 # script is modern enough.
36 exit 0
37 ;;
38
39 --run)
40 # Back-compat with the calling convention used by older automake.
41 shift
42 ;;
43
44 -h|--h|--he|--hel|--help)
45 echo "\
46 $0 [OPTION]... PROGRAM [ARGUMENT]...
47
48 Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due
49 to PROGRAM being missing or too old.
50
51 Options:
52 -h, --help display this help and exit
53 -v, --version output version information and exit
54
55 Supported PROGRAM values:
56 aclocal autoconf autoheader autom4te automake makeinfo
57 bison yacc flex lex help2man
58
59 Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and
60 'g' are ignored when checking the name.
61
62 Send bug reports to <bug-automake@gnu.org>."
63 exit $?
64 ;;
65
66 -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
67 echo "missing $scriptversion (GNU Automake)"
68 exit $?
69 ;;
70
71 -*)
72 echo 1>&2 "$0: unknown '$1' option"
73 echo 1>&2 "Try '$0 --help' for more information"
74 exit 1
75 ;;
76
77 esac
78
79 # Run the given program, remember its exit status.
80 "$@"; st=$?
81
82 # If it succeeded, we are done.
83 test $st -eq 0 && exit 0
84
85 # Also exit now if we it failed (or wasn't found), and '--version' was
86 # passed; such an option is passed most likely to detect whether the
87 # program is present and works.
88 case $2 in --version|--help) exit $st;; esac
89
90 # Exit code 63 means version mismatch. This often happens when the user
91 # tries to use an ancient version of a tool on a file that requires a
92 # minimum version.
93 if test $st -eq 63; then
94 msg="probably too old"
95 elif test $st -eq 127; then
96 # Program was missing.
97 msg="missing on your system"
98 else
99 # Program was found and executed, but failed. Give up.
100 exit $st
101 fi
102
103 perl_URL=http://www.perl.org/
104 flex_URL=http://flex.sourceforge.net/
105 gnu_software_URL=http://www.gnu.org/software
106
107 program_details ()
108 {
109 case $1 in
110 aclocal|automake)
111 echo "The '$1' program is part of the GNU Automake package:"
112 echo "<$gnu_software_URL/automake>"
113 echo "It also requires GNU Autoconf, GNU m4 and Perl in order to run:"
114 echo "<$gnu_software_URL/autoconf>"
115 echo "<$gnu_software_URL/m4/>"
116 echo "<$perl_URL>"
117 ;;
118 autoconf|autom4te|autoheader)
119 echo "The '$1' program is part of the GNU Autoconf package:"
120 echo "<$gnu_software_URL/autoconf/>"
121 echo "It also requires GNU m4 and Perl in order to run:"
122 echo "<$gnu_software_URL/m4/>"
123 echo "<$perl_URL>"
124 ;;
125 esac
126 }
127
128 give_advice ()
129 {
130 # Normalize program name to check for.
131 normalized_program=`echo "$1" | sed '
132 s/^gnu-//; t
133 s/^gnu//; t
134 s/^g//; t'`
135
136 printf '%s\n' "'$1' is $msg."
137
138 configure_deps="'configure.ac' or m4 files included by 'configure.ac'"
139 case $normalized_program in
140 autoconf*)
141 echo "You should only need it if you modified 'configure.ac',"
142 echo "or m4 files included by it."
143 program_details 'autoconf'
144 ;;
145 autoheader*)
146 echo "You should only need it if you modified 'acconfig.h' or"
147 echo "$configure_deps."
148 program_details 'autoheader'
149 ;;
150 automake*)
151 echo "You should only need it if you modified 'Makefile.am' or"
152 echo "$configure_deps."
153 program_details 'automake'
154 ;;
155 aclocal*)
156 echo "You should only need it if you modified 'acinclude.m4' or"
157 echo "$configure_deps."
158 program_details 'aclocal'
159 ;;
160 autom4te*)
161 echo "You might have modified some maintainer files that require"
162 echo "the 'autom4te' program to be rebuilt."
163 program_details 'autom4te'
164 ;;
165 bison*|yacc*)
166 echo "You should only need it if you modified a '.y' file."
167 echo "You may want to install the GNU Bison package:"
168 echo "<$gnu_software_URL/bison/>"
169 ;;
170 lex*|flex*)
171 echo "You should only need it if you modified a '.l' file."
172 echo "You may want to install the Fast Lexical Analyzer package:"
173 echo "<$flex_URL>"
174 ;;
175 help2man*)
176 echo "You should only need it if you modified a dependency" \
177 "of a man page."
178 echo "You may want to install the GNU Help2man package:"
179 echo "<$gnu_software_URL/help2man/>"
180 ;;
181 makeinfo*)
182 echo "You should only need it if you modified a '.texi' file, or"
183 echo "any other file indirectly affecting the aspect of the manual."
184 echo "You might want to install the Texinfo package:"
185 echo "<$gnu_software_URL/texinfo/>"
186 echo "The spurious makeinfo call might also be the consequence of"
187 echo "using a buggy 'make' (AIX, DU, IRIX), in which case you might"
188 echo "want to install GNU make:"
189 echo "<$gnu_software_URL/make/>"
190 ;;
191 *)
192 echo "You might have modified some files without having the proper"
193 echo "tools for further handling them. Check the 'README' file, it"
194 echo "often tells you about the needed prerequisites for installing"
195 echo "this package. You may also peek at any GNU archive site, in"
196 echo "case some other package contains this missing '$1' program."
197 ;;
198 esac
199 }
200
201 give_advice "$1" | sed -e '1s/^/WARNING: /' \
202 -e '2,$s/^/ /' >&2
203
204 # Propagate the correct exit status (expected to be 127 for a program
205 # not found, 63 for a program that failed due to version mismatch).
206 exit $st
207
208 # Local variables:
209 # eval: (add-hook 'write-file-hooks 'time-stamp)
210 # time-stamp-start: "scriptversion="
211 # time-stamp-format: "%:y-%02m-%02d.%02H"
212 # time-stamp-time-zone: "UTC"
213 # time-stamp-end: "; # UTC"
214 # End:
0 #!/bin/bash
1 set -eu
2 #
3 # H.265 video codec.
4 # Copyright (c) 2015 struktur AG, Joachim Bauch <bauch@struktur.de>
5 #
6 # This file is part of libde265.
7 #
8 # libde265 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 3 of the License, or
11 # (at your option) any later version.
12 #
13 # libde265 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 libde265. If not, see <http://www.gnu.org/licenses/>.
20 #
21
22 echo "Checking licenses..."
23 CHECK_RESULT=`/usr/bin/licensecheck --recursive --ignore 'nacl_sdk' .`
24
25 # Files that are public domain or have other known-good license headers which licensecheck doesn't detect.
26 KNOWN_GOOD_FILES=(
27 './extra/stdint.h',
28 './extra/win32cond.c',
29 './extra/win32cond.h',
30 './libde265/md5.cc',
31 './libde265/md5.h',
32 )
33
34 FOUND=
35 while read -r line; do
36 if ( echo $line | grep -q "GENERATED FILE" ); then
37 # We don't care about generated files
38 echo "OK: $line"
39 continue
40 fi
41
42 if ( echo "$line" | grep -q "No copyright" ) || ( echo "$line" | grep -q "UNKNOWN" ); then
43 FILENAME=`echo "$line" | awk '{split($0,a,":");print a[1]}'`
44 if echo "${KNOWN_GOOD_FILES[@]}" | fgrep -q --word-regexp "${FILENAME}"; then
45 echo "OK: $line (known-good)"
46 else
47 echo "ERROR: $line" >& 2
48 FOUND=1
49 fi
50 continue
51 fi
52
53 echo "OK: $line"
54 done <<< "${CHECK_RESULT}"
55
56 if [ ! -z ${FOUND} ]; then
57 echo "ERROR: Found files without licenses" >& 2
58 exit 1
59 fi
0 #!/bin/bash
1 set -eu
2 #
3 # H.265 video codec.
4 # Copyright (c) 2018 struktur AG, Joachim Bauch <bauch@struktur.de>
5 #
6 # This file is part of libde265.
7 #
8 # libde265 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 3 of the License, or
11 # (at your option) any later version.
12 #
13 # libde265 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 libde265. If not, see <http://www.gnu.org/licenses/>.
20 #
21
22 INSTALL_PACKAGES=
23 UPDATE_APT=
24
25 # Output something once per minute to avoid being killed for inactivity.
26 while true; do echo "Still alive at $(date) ..."; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
27
28 if [ -z "$HOST" ]; then
29 INSTALL_PACKAGES="$INSTALL_PACKAGES \
30 valgrind \
31 libsdl-dev \
32 libqt4-dev \
33 libswscale-dev \
34 "
35 fi
36
37 if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then
38 INSTALL_PACKAGES="$INSTALL_PACKAGES \
39 devscripts \
40 "
41 fi
42
43 if [ ! -z "$WINE" ]; then
44 INSTALL_PACKAGES="$INSTALL_PACKAGES \
45 wine \
46 "
47 fi
48 if [ "$WINE" = "wine" ]; then
49 INSTALL_PACKAGES="$INSTALL_PACKAGES \
50 gcc-mingw-w64-i686 \
51 g++-mingw-w64-i686 \
52 binutils-mingw-w64-i686 \
53 mingw-w64-i686-dev \
54 "
55 elif [ "$WINE" = "wine64" ]; then
56 INSTALL_PACKAGES="$INSTALL_PACKAGES \
57 gcc-mingw-w64-x86-64 \
58 g++-mingw-w64-x86-64 \
59 binutils-mingw-w64-x86-64 \
60 mingw-w64-x86-64-dev \
61 "
62 fi
63
64 if ( echo "$HOST" | grep -q "^arm" ); then
65 INSTALL_PACKAGES="$INSTALL_PACKAGES \
66 g++-arm-linux-gnueabihf \
67 gcc-arm-linux-gnueabihf \
68 qemu-user \
69 "
70 fi
71
72 if [ ! -z "$DECODESTREAMS" ]; then
73 sudo add-apt-repository -y ppa:strukturag/libde265
74 UPDATE_APT=1
75 INSTALL_PACKAGES="$INSTALL_PACKAGES \
76 $DECODESTREAMS \
77 "
78 fi
79
80 if [ "$HOST" = "cmake" ]; then
81 INSTALL_PACKAGES="$INSTALL_PACKAGES \
82 cmake \
83 "
84 fi
85
86 if [ ! -z "$UPDATE_APT" ]; then
87 echo "Updating package lists ..."
88 sudo apt-get update -qq
89 fi
90
91 if [ ! -z "$INSTALL_PACKAGES" ]; then
92 echo "Installing packages $INSTALL_PACKAGES ..."
93 sudo apt-get install -qq $INSTALL_PACKAGES
94 fi
0 #!/bin/bash
1 set -eu
2 #
3 # H.265 video codec.
4 # Copyright (c) 2018 struktur AG, Joachim Bauch <bauch@struktur.de>
5 #
6 # This file is part of libde265.
7 #
8 # libde265 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 3 of the License, or
11 # (at your option) any later version.
12 #
13 # libde265 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 libde265. If not, see <http://www.gnu.org/licenses/>.
20 #
21
22 INSTALL_PACKAGES=
23
24 # Output something once per minute to avoid being killed for inactivity.
25 while true; do echo "Still alive at $(date) ..."; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
26
27 if [ -z "$HOST" ]; then
28 INSTALL_PACKAGES="$INSTALL_PACKAGES \
29 ffmpeg \
30 qt5 \
31 sdl \
32 "
33 fi
34
35 if [ ! -z "$INSTALL_PACKAGES" ]; then
36 echo "Remove python@2 ..."
37 brew unlink python@2 || true
38
39 echo "Installing packages $INSTALL_PACKAGES ..."
40 for package in $INSTALL_PACKAGES; do
41 brew list $package &>/dev/null || brew install $package
42 done
43 fi
0 #!/bin/bash
1 set -eu
2 #
3 # H.265 video codec.
4 # Copyright (c) 2018 struktur AG, Joachim Bauch <bauch@struktur.de>
5 #
6 # This file is part of libde265.
7 #
8 # libde265 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 3 of the License, or
11 # (at your option) any later version.
12 #
13 # libde265 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 libde265. If not, see <http://www.gnu.org/licenses/>.
20 #
21
22 if [ ! -z "$HOST" ] && [ "$HOST" != "cmake" ]; then
23 # Make sure the correct compiler will be used.
24 unset CC
25 unset CXX
26 fi
27
28 if [ "$TRAVIS_OS_NAME" = "osx" ]; then
29 export PATH="/usr/local/opt/qt/bin:$PATH"
30 export PKG_CONFIG_PATH=/usr/local/opt/qt/lib/pkgconfig
31 fi
32
33 if [ "$HOST" != "cmake" ]; then
34 ./autogen.sh
35 ./configure --host=$HOST
36 fi
37
38 if [ "$HOST" = "cmake" ]; then
39 cmake .
40 fi
0 #!/bin/bash
1 set -eu
2 #
3 # H.265 video codec.
4 # Copyright (c) 2018 struktur AG, Joachim Bauch <bauch@struktur.de>
5 #
6 # This file is part of libde265.
7 #
8 # libde265 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 3 of the License, or
11 # (at your option) any later version.
12 #
13 # libde265 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 libde265. If not, see <http://www.gnu.org/licenses/>.
20 #
21 BUILD_ROOT=$TRAVIS_BUILD_DIR
22
23 if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ] && [ "$TRAVIS_OS_NAME" != "osx" ]; then
24 ./scripts/check_licenses.sh
25 fi
26
27 if [ ! -z "$HOST" ] && [ "$HOST" != "cmake" ]; then
28 # Make sure the correct compiler will be used.
29 unset CC
30 unset CXX
31 fi
32
33 make
34
35 if [ -z "$HOST" ] && [ -z "$DECODESTREAMS" ]; then
36 if [ "$TRAVIS_OS_NAME" != "osx" ]; then
37 make dist
38
39 mkdir dist-test
40 (cd dist-test && tar xzf ../libde265-*.tar.gz && cd libde265-* && ./configure && make)
41
42 mkdir dist-cmake-test
43 (cd dist-cmake-test && tar xzf ../libde265-*.tar.gz && cd libde265-* && cmake . && make)
44
45 VALGRIND="valgrind --tool=memcheck --quiet --error-exitcode=1 --gen-suppressions=all --suppressions=$BUILD_ROOT/valgrind.supp"
46 DEC265="$BUILD_ROOT/dec265/.libs/dec265"
47 else
48 VALGRIND=
49 DEC265="$BUILD_ROOT/dec265/dec265"
50 fi
51 export LD_LIBRARY_PATH=$BUILD_ROOT/libde265/.libs/
52 # inter-streams are valgrinded without SSE, because it gives too many false positives in put_hevc_qpel()
53 # intra-streams use SSE, because they run fine in valgrind
54 $VALGRIND $DEC265 -q -c -f 100 ./libde265-data/IDR-only/paris-352x288-intra.bin
55 $VALGRIND $DEC265 -t 4 -q -c -f 100 ./libde265-data/IDR-only/paris-352x288-intra.bin
56 $VALGRIND $DEC265 -0 -q -c -f 100 ./libde265-data/RandomAccess/paris-ra-wpp.bin
57 $VALGRIND $DEC265 -0 -t 4 -q -c -f 100 ./libde265-data/RandomAccess/paris-ra-wpp.bin
58 fi
59
60 if [ ! -z "$WINE" ]; then
61 export WINEPREFIX=$BUILD_ROOT/$WINE
62 export WINEPATH="/usr/lib/gcc/$HOST/4.8/;/usr/$HOST/lib"
63 $WINE ./dec265/dec265.exe -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin
64 $WINE ./dec265/dec265.exe -t 4 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin
65 $WINE ./dec265/dec265.exe -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin
66 $WINE ./dec265/dec265.exe -t 4 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin
67 fi
68
69 if ( echo "$HOST" | grep -q "^arm" ); then
70 export LD_LIBRARY_PATH=$BUILD_ROOT/libde265/.libs/
71 qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin
72 #qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -t 4 -q -c ./libde265-data/IDR-only/paris-352x288-intra.bin
73 qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin
74 #qemu-arm -L /usr/$HOST ./dec265/.libs/dec265 -t 4 -q -c ./libde265-data/RandomAccess/paris-ra-wpp.bin
75 fi
76
77 if [ ! -z "$DECODESTREAMS" ]; then
78 python scripts/decodestreams.py $THREADING /var/lib/libde265-teststreams
79 fi
0 #!/usr/bin/python
1 """
2 H.265 video codec.
3 Copyright (c) 2014 struktur AG, Joachim Bauch <bauch@struktur.de>
4
5 This file is part of libde265.
6
7 libde265 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 3 of the License, or
10 (at your option) any later version.
11
12 libde265 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 libde265. If not, see <http://www.gnu.org/licenses/>.
19 """
20 import glob
21 try:
22 import multiprocessing
23 except ImportError:
24 multiprocessing = None
25 import os
26 import subprocess
27 import sys
28 import threading
29 import time
30
31 CPU_COUNT = multiprocessing is not None and multiprocessing.cpu_count() or 2
32 if CPU_COUNT > 2:
33 THREAD_COUNT = CPU_COUNT / 2
34 else:
35 THREAD_COUNT = 2
36
37 PROCESS_COUNT = min(4, CPU_COUNT)
38
39 # print a status every 10 seconds while waiting for pending tasks
40 STATUS_INTERVAL = 10
41
42 # cancel waiting if no more tasks completed for 120 seconds
43 CANCEL_TIMEOUT = 120
44
45 DEFAULT_ROOT = '/var/lib/libde265-teststreams'
46
47 def decode_file(filename, threads=None):
48 cmd = ['./dec265/dec265', '-q', '-c']
49 if threads and threads > 0:
50 cmd.append('-t')
51 cmd.append(str(threads))
52 cmd.append(filename)
53 p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
54 try:
55 (stdoutdata, stderrdata) = p.communicate()
56 except KeyboardInterrupt:
57 return (True, filename)
58
59 if p.returncode < 0:
60 print '\rERROR: %s failed with signal %d (%r)' % (filename, -p.returncode, stdoutdata)
61 return (False, filename)
62 elif p.returncode > 0:
63 basename = os.path.basename(filename)
64 if basename[:3] == 'id:':
65 # fuzzing files may be invalid
66 print '\rWARNING: %s failed with returncode %d' % (filename, p.returncode)
67 return (True, filename)
68 else:
69 print '\rERROR: %s failed with returncode %d (%r)' % (filename, p.returncode, stdoutdata)
70 return (False, filename)
71 else:
72 print 'OK: %s' % (filename)
73 return (True, filename)
74
75 class BaseProcessor(object):
76
77 def __init__(self, filenames, threads=None):
78 self.filenames = filenames
79 self.threads = threads
80 self.errors = []
81
82 def process(self, filename):
83 ok = decode_file(filename, threads=self.threads)
84 return (ok, filename)
85
86 def run(self):
87 self.errors = []
88 for filename in sorted(self.filenames):
89 ok, _ = self.process(filename)
90 if not ok:
91 self.errors.append(filename)
92
93 def cancel(self):
94 pass
95
96 if multiprocessing is not None:
97
98 class MultiprocessingProcessor(BaseProcessor):
99
100 def __init__(self, *args, **kw):
101 super(MultiprocessingProcessor, self).__init__(*args, **kw)
102 self.pool = multiprocessing.Pool(PROCESS_COUNT)
103 self.pending_jobs = []
104 self.errors = []
105 self.lock = threading.RLock()
106
107 def process(self, *args, **kw):
108 kw.setdefault('threads', self.threads)
109 with self.lock:
110 job = self.pool.apply_async(decode_file, args, kw, self._callback)
111 self.pending_jobs.append(job)
112
113 return (True, None)
114
115 def _check_pending_jobs(self, timeout=0.1):
116 with self.lock:
117 self.pending_jobs = [x for x in self.pending_jobs if not x.ready()]
118
119 try:
120 job = self.pending_jobs[0]
121 except IndexError:
122 return
123
124 try:
125 result = job.get(timeout=timeout)
126 except multiprocessing.TimeoutError:
127 # result not available yet
128 return
129 except:
130 self.pending_jobs.pop(0)
131 raise
132 else:
133 self.pending_jobs.pop(0)
134
135 def _callback(self, result):
136 ok, filename = result
137 if not ok:
138 self.errors.append(filename)
139
140 def run(self):
141 self.errors = []
142 try:
143 super(MultiprocessingProcessor, self).run()
144 except KeyboardInterrupt:
145 self.pool.terminate()
146 else:
147 self.pool.close()
148 now = time.time()
149 next_status = now
150 cancel_time = now + CANCEL_TIMEOUT
151 prev_remaining = len(self.pending_jobs)
152 while self.pending_jobs:
153 self._check_pending_jobs()
154 now = time.time()
155 remaining = len(self.pending_jobs)
156 if remaining != prev_remaining:
157 cancel_time = now + CANCEL_TIMEOUT
158 prev_remaining = remaining
159
160 if now >= cancel_time:
161 print 'Timeout while waiting for pending jobs, cancelling...'
162 self.errors.append('Cancelled due to timeout, %d jobs were still pending' % (remaining))
163 self.pool.terminate()
164 break
165 elif remaining and now >= next_status:
166 print 'Wait for %d pending jobs...' % (remaining)
167 next_status = now + STATUS_INTERVAL
168
169 self.pool.join()
170
171 def cancel(self):
172 super(MultiprocessingProcessor, self).cancel()
173 self.pool.terminate()
174 self.pool.join()
175
176 ProcessorClass = MultiprocessingProcessor
177 else:
178 ProcessorClass = BaseProcessor
179
180 def main():
181 argv = sys.argv[:]
182 try:
183 argv.remove('--single-threaded')
184 except ValueError:
185 threads = THREAD_COUNT
186 else:
187 threads = None
188
189 if len(argv) > 1:
190 root = argv[1]
191 if not os.path.isdir(root):
192 root = DEFAULT_ROOT
193 else:
194 root = DEFAULT_ROOT
195
196 filenames = glob.glob(os.path.join(root, '*.bin'))
197 print 'Processing %d streams in %s' % (len(filenames), root)
198 if threads:
199 print 'Using %d processes with %s threads each' % (PROCESS_COUNT, threads)
200 else:
201 print 'Using %d processes' % (PROCESS_COUNT)
202
203 processor = ProcessorClass(filenames, threads)
204 try:
205 processor.run()
206 except KeyboardInterrupt:
207 processor.cancel()
208 print 'Cancelled...'
209
210 if processor.errors:
211 print 'Found %d files with errors:' % (len(processor.errors))
212 print '\n'.join(sorted(processor.errors))
213 sys.exit(1)
214
215 if __name__ == '__main__':
216 main()
+0
-854
sherlock265/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91 bin_PROGRAMS = sherlock265$(EXEEXT)
92 @HAVE_VIDEOGFX_TRUE@am__append_1 = $(VIDEOGFX_CFLAGS)
93 @HAVE_VIDEOGFX_TRUE@am__append_2 = $(VIDEOGFX_LIBS)
94 @HAVE_SWSCALE_TRUE@am__append_3 = $(SWSCALE_CFLAGS)
95 @HAVE_SWSCALE_TRUE@am__append_4 = $(SWSCALE_LIBS)
96 subdir = sherlock265
97 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
98 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
99 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
100 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
101 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
102 $(top_srcdir)/m4/lt~obsolete.m4 \
103 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
104 $(top_srcdir)/configure.ac
105 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
106 $(ACLOCAL_M4)
107 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
108 mkinstalldirs = $(install_sh) -d
109 CONFIG_HEADER = $(top_builddir)/config.h
110 CONFIG_CLEAN_FILES =
111 CONFIG_CLEAN_VPATH_FILES =
112 am__installdirs = "$(DESTDIR)$(bindir)"
113 PROGRAMS = $(bin_PROGRAMS)
114 am_sherlock265_OBJECTS = sherlock265-sherlock265.$(OBJEXT) \
115 sherlock265-VideoPlayer.$(OBJEXT) \
116 sherlock265-VideoDecoder.$(OBJEXT) \
117 sherlock265-VideoWidget.$(OBJEXT)
118 nodist_sherlock265_OBJECTS = sherlock265-moc_VideoPlayer.$(OBJEXT) \
119 sherlock265-moc_VideoDecoder.$(OBJEXT) \
120 sherlock265-moc_VideoWidget.$(OBJEXT)
121 sherlock265_OBJECTS = $(am_sherlock265_OBJECTS) \
122 $(nodist_sherlock265_OBJECTS)
123 AM_V_lt = $(am__v_lt_@AM_V@)
124 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
125 am__v_lt_0 = --silent
126 am__v_lt_1 =
127 sherlock265_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
128 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(sherlock265_CXXFLAGS) \
129 $(CXXFLAGS) $(sherlock265_LDFLAGS) $(LDFLAGS) -o $@
130 AM_V_P = $(am__v_P_@AM_V@)
131 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
132 am__v_P_0 = false
133 am__v_P_1 = :
134 AM_V_GEN = $(am__v_GEN_@AM_V@)
135 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
136 am__v_GEN_0 = @echo " GEN " $@;
137 am__v_GEN_1 =
138 AM_V_at = $(am__v_at_@AM_V@)
139 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
140 am__v_at_0 = @
141 am__v_at_1 =
142 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
143 depcomp = $(SHELL) $(top_srcdir)/depcomp
144 am__depfiles_maybe = depfiles
145 am__mv = mv -f
146 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
147 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
148 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
149 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
150 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
151 $(AM_CXXFLAGS) $(CXXFLAGS)
152 AM_V_CXX = $(am__v_CXX_@AM_V@)
153 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
154 am__v_CXX_0 = @echo " CXX " $@;
155 am__v_CXX_1 =
156 CXXLD = $(CXX)
157 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
158 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
159 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
160 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
161 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
162 am__v_CXXLD_0 = @echo " CXXLD " $@;
163 am__v_CXXLD_1 =
164 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
165 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
166 LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
167 $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
168 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
169 $(AM_CFLAGS) $(CFLAGS)
170 AM_V_CC = $(am__v_CC_@AM_V@)
171 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
172 am__v_CC_0 = @echo " CC " $@;
173 am__v_CC_1 =
174 CCLD = $(CC)
175 LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
176 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
177 $(AM_LDFLAGS) $(LDFLAGS) -o $@
178 AM_V_CCLD = $(am__v_CCLD_@AM_V@)
179 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
180 am__v_CCLD_0 = @echo " CCLD " $@;
181 am__v_CCLD_1 =
182 SOURCES = $(sherlock265_SOURCES) $(nodist_sherlock265_SOURCES)
183 DIST_SOURCES = $(sherlock265_SOURCES)
184 am__can_run_installinfo = \
185 case $$AM_UPDATE_INFO_DIR in \
186 n|no|NO) false;; \
187 *) (install-info --version) >/dev/null 2>&1;; \
188 esac
189 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
190 # Read a list of newline-separated strings from the standard input,
191 # and print each of them once, without duplicates. Input order is
192 # *not* preserved.
193 am__uniquify_input = $(AWK) '\
194 BEGIN { nonempty = 0; } \
195 { items[$$0] = 1; nonempty = 1; } \
196 END { if (nonempty) { for (i in items) print i; }; } \
197 '
198 # Make sure the list of sources is unique. This is necessary because,
199 # e.g., the same source file might be shared among _SOURCES variables
200 # for different programs/libraries.
201 am__define_uniq_tagged_files = \
202 list='$(am__tagged_files)'; \
203 unique=`for i in $$list; do \
204 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
205 done | $(am__uniquify_input)`
206 ETAGS = etags
207 CTAGS = ctags
208 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp COPYING \
209 README
210 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
211 ACLOCAL = @ACLOCAL@
212 ALLOCA = @ALLOCA@
213 AMTAR = @AMTAR@
214 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
215 AR = @AR@
216 AUTOCONF = @AUTOCONF@
217 AUTOHEADER = @AUTOHEADER@
218 AUTOMAKE = @AUTOMAKE@
219 AWK = @AWK@
220 CC = @CC@
221 CCAS = @CCAS@
222 CCASDEPMODE = @CCASDEPMODE@
223 CCASFLAGS = @CCASFLAGS@
224 CCDEPMODE = @CCDEPMODE@
225 CFLAGS = @CFLAGS@
226 CPP = @CPP@
227 CPPFLAGS = @CPPFLAGS@
228 CXX = @CXX@
229 CXXCPP = @CXXCPP@
230 CXXDEPMODE = @CXXDEPMODE@
231 CXXFLAGS = @CXXFLAGS@
232 CYGPATH_W = @CYGPATH_W@
233 DEFS = @DEFS@
234 DEPDIR = @DEPDIR@
235 DLLTOOL = @DLLTOOL@
236 DSYMUTIL = @DSYMUTIL@
237 DUMPBIN = @DUMPBIN@
238 ECHO_C = @ECHO_C@
239 ECHO_N = @ECHO_N@
240 ECHO_T = @ECHO_T@
241 EGREP = @EGREP@
242 EXEEXT = @EXEEXT@
243 FGREP = @FGREP@
244 GREP = @GREP@
245 HAVE_CXX11 = @HAVE_CXX11@
246 INSTALL = @INSTALL@
247 INSTALL_DATA = @INSTALL_DATA@
248 INSTALL_PROGRAM = @INSTALL_PROGRAM@
249 INSTALL_SCRIPT = @INSTALL_SCRIPT@
250 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
251 LD = @LD@
252 LDFLAGS = @LDFLAGS@
253 LIBDE265_AGE = @LIBDE265_AGE@
254 LIBDE265_CURRENT = @LIBDE265_CURRENT@
255 LIBDE265_REVISION = @LIBDE265_REVISION@
256 LIBOBJS = @LIBOBJS@
257 LIBS = @LIBS@
258 LIBTOOL = @LIBTOOL@
259 LIPO = @LIPO@
260 LN_S = @LN_S@
261 LTLIBOBJS = @LTLIBOBJS@
262 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
263 MAKEINFO = @MAKEINFO@
264 MANIFEST_TOOL = @MANIFEST_TOOL@
265 MKDIR_P = @MKDIR_P@
266 NM = @NM@
267 NMEDIT = @NMEDIT@
268 NUMERIC_VERSION = @NUMERIC_VERSION@
269 OBJDUMP = @OBJDUMP@
270 OBJEXT = @OBJEXT@
271 OTOOL = @OTOOL@
272 OTOOL64 = @OTOOL64@
273 PACKAGE = @PACKAGE@
274 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
275 PACKAGE_NAME = @PACKAGE_NAME@
276 PACKAGE_STRING = @PACKAGE_STRING@
277 PACKAGE_TARNAME = @PACKAGE_TARNAME@
278 PACKAGE_URL = @PACKAGE_URL@
279 PACKAGE_VERSION = @PACKAGE_VERSION@
280 PATH_SEPARATOR = @PATH_SEPARATOR@
281 PKG_CONFIG = @PKG_CONFIG@
282 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
283 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
284 QTCHOOSER = @QTCHOOSER@
285 QTMOC = @QTMOC@
286 QT_CFLAGS = @QT_CFLAGS@
287 QT_LIBS = @QT_LIBS@
288 RANLIB = @RANLIB@
289 SDL_CFLAGS = @SDL_CFLAGS@
290 SDL_LIBS = @SDL_LIBS@
291 SED = @SED@
292 SET_MAKE = @SET_MAKE@
293 SHELL = @SHELL@
294 STRIP = @STRIP@
295 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
296 SWSCALE_LIBS = @SWSCALE_LIBS@
297 VERSION = @VERSION@
298 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
299 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
300 abs_builddir = @abs_builddir@
301 abs_srcdir = @abs_srcdir@
302 abs_top_builddir = @abs_top_builddir@
303 abs_top_srcdir = @abs_top_srcdir@
304 ac_ct_AR = @ac_ct_AR@
305 ac_ct_CC = @ac_ct_CC@
306 ac_ct_CXX = @ac_ct_CXX@
307 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
308 am__include = @am__include@
309 am__leading_dot = @am__leading_dot@
310 am__quote = @am__quote@
311 am__tar = @am__tar@
312 am__untar = @am__untar@
313 bindir = @bindir@
314 build = @build@
315 build_alias = @build_alias@
316 build_cpu = @build_cpu@
317 build_os = @build_os@
318 build_vendor = @build_vendor@
319 builddir = @builddir@
320 datadir = @datadir@
321 datarootdir = @datarootdir@
322 docdir = @docdir@
323 dvidir = @dvidir@
324 exec_prefix = @exec_prefix@
325 host = @host@
326 host_alias = @host_alias@
327 host_cpu = @host_cpu@
328 host_os = @host_os@
329 host_vendor = @host_vendor@
330 htmldir = @htmldir@
331 includedir = @includedir@
332 infodir = @infodir@
333 install_sh = @install_sh@
334 libdir = @libdir@
335 libexecdir = @libexecdir@
336 localedir = @localedir@
337 localstatedir = @localstatedir@
338 mandir = @mandir@
339 mkdir_p = @mkdir_p@
340 oldincludedir = @oldincludedir@
341 pdfdir = @pdfdir@
342 prefix = @prefix@
343 program_transform_name = @program_transform_name@
344 psdir = @psdir@
345 runstatedir = @runstatedir@
346 sbindir = @sbindir@
347 sharedstatedir = @sharedstatedir@
348 srcdir = @srcdir@
349 sysconfdir = @sysconfdir@
350 target = @target@
351 target_alias = @target_alias@
352 target_cpu = @target_cpu@
353 target_os = @target_os@
354 target_vendor = @target_vendor@
355 top_build_prefix = @top_build_prefix@
356 top_builddir = @top_builddir@
357 top_srcdir = @top_srcdir@
358 AM_CPPFLAGS = -I../libde265
359 sherlock265_DEPENDENCIES = ../libde265/libde265.la
360 sherlock265_CXXFLAGS = $(QT_CFLAGS) -std=c++0x -fPIC $(am__append_1) \
361 $(am__append_3)
362 sherlock265_LDFLAGS = $(QT_LIBS) $(am__append_2) $(am__append_4)
363 sherlock265_LDADD = ../libde265/libde265.la -lstdc++ -lpthread
364 sherlock265_SOURCES = \
365 sherlock265.cc \
366 VideoPlayer.cc \
367 VideoDecoder.cc \
368 VideoWidget.cc \
369 VideoPlayer.hh \
370 VideoDecoder.hh \
371 VideoWidget.hh
372
373 nodist_sherlock265_SOURCES = \
374 moc_VideoPlayer.cpp \
375 moc_VideoDecoder.cpp \
376 moc_VideoWidget.cpp
377
378 CLEANFILES = \
379 moc_VideoPlayer.cpp \
380 moc_VideoDecoder.cpp \
381 moc_VideoWidget.cpp
382
383 EXTRA_DIST = \
384 README
385
386 all: all-am
387
388 .SUFFIXES:
389 .SUFFIXES: .cc .cpp .lo .o .obj
390 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
391 @for dep in $?; do \
392 case '$(am__configure_deps)' in \
393 *$$dep*) \
394 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
395 && { if test -f $@; then exit 0; else break; fi; }; \
396 exit 1;; \
397 esac; \
398 done; \
399 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu sherlock265/Makefile'; \
400 $(am__cd) $(top_srcdir) && \
401 $(AUTOMAKE) --gnu sherlock265/Makefile
402 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
403 @case '$?' in \
404 *config.status*) \
405 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
406 *) \
407 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
408 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
409 esac;
410
411 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
412 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
413
414 $(top_srcdir)/configure: $(am__configure_deps)
415 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
416 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
417 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
418 $(am__aclocal_m4_deps):
419 install-binPROGRAMS: $(bin_PROGRAMS)
420 @$(NORMAL_INSTALL)
421 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
422 if test -n "$$list"; then \
423 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
424 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
425 fi; \
426 for p in $$list; do echo "$$p $$p"; done | \
427 sed 's/$(EXEEXT)$$//' | \
428 while read p p1; do if test -f $$p \
429 || test -f $$p1 \
430 ; then echo "$$p"; echo "$$p"; else :; fi; \
431 done | \
432 sed -e 'p;s,.*/,,;n;h' \
433 -e 's|.*|.|' \
434 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
435 sed 'N;N;N;s,\n, ,g' | \
436 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
437 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
438 if ($$2 == $$4) files[d] = files[d] " " $$1; \
439 else { print "f", $$3 "/" $$4, $$1; } } \
440 END { for (d in files) print "f", d, files[d] }' | \
441 while read type dir files; do \
442 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
443 test -z "$$files" || { \
444 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
445 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
446 } \
447 ; done
448
449 uninstall-binPROGRAMS:
450 @$(NORMAL_UNINSTALL)
451 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
452 files=`for p in $$list; do echo "$$p"; done | \
453 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
454 -e 's/$$/$(EXEEXT)/' \
455 `; \
456 test -n "$$list" || exit 0; \
457 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
458 cd "$(DESTDIR)$(bindir)" && rm -f $$files
459
460 clean-binPROGRAMS:
461 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
462 echo " rm -f" $$list; \
463 rm -f $$list || exit $$?; \
464 test -n "$(EXEEXT)" || exit 0; \
465 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
466 echo " rm -f" $$list; \
467 rm -f $$list
468
469 sherlock265$(EXEEXT): $(sherlock265_OBJECTS) $(sherlock265_DEPENDENCIES) $(EXTRA_sherlock265_DEPENDENCIES)
470 @rm -f sherlock265$(EXEEXT)
471 $(AM_V_CXXLD)$(sherlock265_LINK) $(sherlock265_OBJECTS) $(sherlock265_LDADD) $(LIBS)
472
473 mostlyclean-compile:
474 -rm -f *.$(OBJEXT)
475
476 distclean-compile:
477 -rm -f *.tab.c
478
479 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sherlock265-VideoDecoder.Po@am__quote@
480 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sherlock265-VideoPlayer.Po@am__quote@
481 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sherlock265-VideoWidget.Po@am__quote@
482 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sherlock265-moc_VideoDecoder.Po@am__quote@
483 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sherlock265-moc_VideoPlayer.Po@am__quote@
484 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sherlock265-moc_VideoWidget.Po@am__quote@
485 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sherlock265-sherlock265.Po@am__quote@
486
487 .cc.o:
488 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
489 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
490 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
491 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
492 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
493
494 .cc.obj:
495 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
496 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
497 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
498 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
499 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
500
501 .cc.lo:
502 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
503 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
504 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
505 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
506 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
507
508 sherlock265-sherlock265.o: sherlock265.cc
509 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-sherlock265.o -MD -MP -MF $(DEPDIR)/sherlock265-sherlock265.Tpo -c -o sherlock265-sherlock265.o `test -f 'sherlock265.cc' || echo '$(srcdir)/'`sherlock265.cc
510 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-sherlock265.Tpo $(DEPDIR)/sherlock265-sherlock265.Po
511 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sherlock265.cc' object='sherlock265-sherlock265.o' libtool=no @AMDEPBACKSLASH@
512 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
513 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-sherlock265.o `test -f 'sherlock265.cc' || echo '$(srcdir)/'`sherlock265.cc
514
515 sherlock265-sherlock265.obj: sherlock265.cc
516 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-sherlock265.obj -MD -MP -MF $(DEPDIR)/sherlock265-sherlock265.Tpo -c -o sherlock265-sherlock265.obj `if test -f 'sherlock265.cc'; then $(CYGPATH_W) 'sherlock265.cc'; else $(CYGPATH_W) '$(srcdir)/sherlock265.cc'; fi`
517 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-sherlock265.Tpo $(DEPDIR)/sherlock265-sherlock265.Po
518 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='sherlock265.cc' object='sherlock265-sherlock265.obj' libtool=no @AMDEPBACKSLASH@
519 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
520 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-sherlock265.obj `if test -f 'sherlock265.cc'; then $(CYGPATH_W) 'sherlock265.cc'; else $(CYGPATH_W) '$(srcdir)/sherlock265.cc'; fi`
521
522 sherlock265-VideoPlayer.o: VideoPlayer.cc
523 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-VideoPlayer.o -MD -MP -MF $(DEPDIR)/sherlock265-VideoPlayer.Tpo -c -o sherlock265-VideoPlayer.o `test -f 'VideoPlayer.cc' || echo '$(srcdir)/'`VideoPlayer.cc
524 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-VideoPlayer.Tpo $(DEPDIR)/sherlock265-VideoPlayer.Po
525 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='VideoPlayer.cc' object='sherlock265-VideoPlayer.o' libtool=no @AMDEPBACKSLASH@
526 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
527 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-VideoPlayer.o `test -f 'VideoPlayer.cc' || echo '$(srcdir)/'`VideoPlayer.cc
528
529 sherlock265-VideoPlayer.obj: VideoPlayer.cc
530 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-VideoPlayer.obj -MD -MP -MF $(DEPDIR)/sherlock265-VideoPlayer.Tpo -c -o sherlock265-VideoPlayer.obj `if test -f 'VideoPlayer.cc'; then $(CYGPATH_W) 'VideoPlayer.cc'; else $(CYGPATH_W) '$(srcdir)/VideoPlayer.cc'; fi`
531 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-VideoPlayer.Tpo $(DEPDIR)/sherlock265-VideoPlayer.Po
532 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='VideoPlayer.cc' object='sherlock265-VideoPlayer.obj' libtool=no @AMDEPBACKSLASH@
533 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
534 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-VideoPlayer.obj `if test -f 'VideoPlayer.cc'; then $(CYGPATH_W) 'VideoPlayer.cc'; else $(CYGPATH_W) '$(srcdir)/VideoPlayer.cc'; fi`
535
536 sherlock265-VideoDecoder.o: VideoDecoder.cc
537 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-VideoDecoder.o -MD -MP -MF $(DEPDIR)/sherlock265-VideoDecoder.Tpo -c -o sherlock265-VideoDecoder.o `test -f 'VideoDecoder.cc' || echo '$(srcdir)/'`VideoDecoder.cc
538 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-VideoDecoder.Tpo $(DEPDIR)/sherlock265-VideoDecoder.Po
539 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='VideoDecoder.cc' object='sherlock265-VideoDecoder.o' libtool=no @AMDEPBACKSLASH@
540 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
541 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-VideoDecoder.o `test -f 'VideoDecoder.cc' || echo '$(srcdir)/'`VideoDecoder.cc
542
543 sherlock265-VideoDecoder.obj: VideoDecoder.cc
544 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-VideoDecoder.obj -MD -MP -MF $(DEPDIR)/sherlock265-VideoDecoder.Tpo -c -o sherlock265-VideoDecoder.obj `if test -f 'VideoDecoder.cc'; then $(CYGPATH_W) 'VideoDecoder.cc'; else $(CYGPATH_W) '$(srcdir)/VideoDecoder.cc'; fi`
545 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-VideoDecoder.Tpo $(DEPDIR)/sherlock265-VideoDecoder.Po
546 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='VideoDecoder.cc' object='sherlock265-VideoDecoder.obj' libtool=no @AMDEPBACKSLASH@
547 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
548 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-VideoDecoder.obj `if test -f 'VideoDecoder.cc'; then $(CYGPATH_W) 'VideoDecoder.cc'; else $(CYGPATH_W) '$(srcdir)/VideoDecoder.cc'; fi`
549
550 sherlock265-VideoWidget.o: VideoWidget.cc
551 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-VideoWidget.o -MD -MP -MF $(DEPDIR)/sherlock265-VideoWidget.Tpo -c -o sherlock265-VideoWidget.o `test -f 'VideoWidget.cc' || echo '$(srcdir)/'`VideoWidget.cc
552 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-VideoWidget.Tpo $(DEPDIR)/sherlock265-VideoWidget.Po
553 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='VideoWidget.cc' object='sherlock265-VideoWidget.o' libtool=no @AMDEPBACKSLASH@
554 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
555 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-VideoWidget.o `test -f 'VideoWidget.cc' || echo '$(srcdir)/'`VideoWidget.cc
556
557 sherlock265-VideoWidget.obj: VideoWidget.cc
558 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-VideoWidget.obj -MD -MP -MF $(DEPDIR)/sherlock265-VideoWidget.Tpo -c -o sherlock265-VideoWidget.obj `if test -f 'VideoWidget.cc'; then $(CYGPATH_W) 'VideoWidget.cc'; else $(CYGPATH_W) '$(srcdir)/VideoWidget.cc'; fi`
559 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-VideoWidget.Tpo $(DEPDIR)/sherlock265-VideoWidget.Po
560 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='VideoWidget.cc' object='sherlock265-VideoWidget.obj' libtool=no @AMDEPBACKSLASH@
561 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
562 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-VideoWidget.obj `if test -f 'VideoWidget.cc'; then $(CYGPATH_W) 'VideoWidget.cc'; else $(CYGPATH_W) '$(srcdir)/VideoWidget.cc'; fi`
563
564 sherlock265-moc_VideoPlayer.o: moc_VideoPlayer.cpp
565 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-moc_VideoPlayer.o -MD -MP -MF $(DEPDIR)/sherlock265-moc_VideoPlayer.Tpo -c -o sherlock265-moc_VideoPlayer.o `test -f 'moc_VideoPlayer.cpp' || echo '$(srcdir)/'`moc_VideoPlayer.cpp
566 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-moc_VideoPlayer.Tpo $(DEPDIR)/sherlock265-moc_VideoPlayer.Po
567 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='moc_VideoPlayer.cpp' object='sherlock265-moc_VideoPlayer.o' libtool=no @AMDEPBACKSLASH@
568 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
569 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-moc_VideoPlayer.o `test -f 'moc_VideoPlayer.cpp' || echo '$(srcdir)/'`moc_VideoPlayer.cpp
570
571 sherlock265-moc_VideoPlayer.obj: moc_VideoPlayer.cpp
572 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-moc_VideoPlayer.obj -MD -MP -MF $(DEPDIR)/sherlock265-moc_VideoPlayer.Tpo -c -o sherlock265-moc_VideoPlayer.obj `if test -f 'moc_VideoPlayer.cpp'; then $(CYGPATH_W) 'moc_VideoPlayer.cpp'; else $(CYGPATH_W) '$(srcdir)/moc_VideoPlayer.cpp'; fi`
573 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-moc_VideoPlayer.Tpo $(DEPDIR)/sherlock265-moc_VideoPlayer.Po
574 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='moc_VideoPlayer.cpp' object='sherlock265-moc_VideoPlayer.obj' libtool=no @AMDEPBACKSLASH@
575 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
576 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-moc_VideoPlayer.obj `if test -f 'moc_VideoPlayer.cpp'; then $(CYGPATH_W) 'moc_VideoPlayer.cpp'; else $(CYGPATH_W) '$(srcdir)/moc_VideoPlayer.cpp'; fi`
577
578 sherlock265-moc_VideoDecoder.o: moc_VideoDecoder.cpp
579 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-moc_VideoDecoder.o -MD -MP -MF $(DEPDIR)/sherlock265-moc_VideoDecoder.Tpo -c -o sherlock265-moc_VideoDecoder.o `test -f 'moc_VideoDecoder.cpp' || echo '$(srcdir)/'`moc_VideoDecoder.cpp
580 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-moc_VideoDecoder.Tpo $(DEPDIR)/sherlock265-moc_VideoDecoder.Po
581 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='moc_VideoDecoder.cpp' object='sherlock265-moc_VideoDecoder.o' libtool=no @AMDEPBACKSLASH@
582 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
583 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-moc_VideoDecoder.o `test -f 'moc_VideoDecoder.cpp' || echo '$(srcdir)/'`moc_VideoDecoder.cpp
584
585 sherlock265-moc_VideoDecoder.obj: moc_VideoDecoder.cpp
586 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-moc_VideoDecoder.obj -MD -MP -MF $(DEPDIR)/sherlock265-moc_VideoDecoder.Tpo -c -o sherlock265-moc_VideoDecoder.obj `if test -f 'moc_VideoDecoder.cpp'; then $(CYGPATH_W) 'moc_VideoDecoder.cpp'; else $(CYGPATH_W) '$(srcdir)/moc_VideoDecoder.cpp'; fi`
587 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-moc_VideoDecoder.Tpo $(DEPDIR)/sherlock265-moc_VideoDecoder.Po
588 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='moc_VideoDecoder.cpp' object='sherlock265-moc_VideoDecoder.obj' libtool=no @AMDEPBACKSLASH@
589 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
590 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-moc_VideoDecoder.obj `if test -f 'moc_VideoDecoder.cpp'; then $(CYGPATH_W) 'moc_VideoDecoder.cpp'; else $(CYGPATH_W) '$(srcdir)/moc_VideoDecoder.cpp'; fi`
591
592 sherlock265-moc_VideoWidget.o: moc_VideoWidget.cpp
593 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-moc_VideoWidget.o -MD -MP -MF $(DEPDIR)/sherlock265-moc_VideoWidget.Tpo -c -o sherlock265-moc_VideoWidget.o `test -f 'moc_VideoWidget.cpp' || echo '$(srcdir)/'`moc_VideoWidget.cpp
594 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-moc_VideoWidget.Tpo $(DEPDIR)/sherlock265-moc_VideoWidget.Po
595 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='moc_VideoWidget.cpp' object='sherlock265-moc_VideoWidget.o' libtool=no @AMDEPBACKSLASH@
596 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
597 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-moc_VideoWidget.o `test -f 'moc_VideoWidget.cpp' || echo '$(srcdir)/'`moc_VideoWidget.cpp
598
599 sherlock265-moc_VideoWidget.obj: moc_VideoWidget.cpp
600 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -MT sherlock265-moc_VideoWidget.obj -MD -MP -MF $(DEPDIR)/sherlock265-moc_VideoWidget.Tpo -c -o sherlock265-moc_VideoWidget.obj `if test -f 'moc_VideoWidget.cpp'; then $(CYGPATH_W) 'moc_VideoWidget.cpp'; else $(CYGPATH_W) '$(srcdir)/moc_VideoWidget.cpp'; fi`
601 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/sherlock265-moc_VideoWidget.Tpo $(DEPDIR)/sherlock265-moc_VideoWidget.Po
602 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='moc_VideoWidget.cpp' object='sherlock265-moc_VideoWidget.obj' libtool=no @AMDEPBACKSLASH@
603 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
604 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sherlock265_CXXFLAGS) $(CXXFLAGS) -c -o sherlock265-moc_VideoWidget.obj `if test -f 'moc_VideoWidget.cpp'; then $(CYGPATH_W) 'moc_VideoWidget.cpp'; else $(CYGPATH_W) '$(srcdir)/moc_VideoWidget.cpp'; fi`
605
606 .cpp.o:
607 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
608 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
609 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
610 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
611 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
612
613 .cpp.obj:
614 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
615 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
616 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
617 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
618 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
619
620 .cpp.lo:
621 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
622 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
623 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
624 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
625 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
626
627 mostlyclean-libtool:
628 -rm -f *.lo
629
630 clean-libtool:
631 -rm -rf .libs _libs
632
633 ID: $(am__tagged_files)
634 $(am__define_uniq_tagged_files); mkid -fID $$unique
635 tags: tags-am
636 TAGS: tags
637
638 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
639 set x; \
640 here=`pwd`; \
641 $(am__define_uniq_tagged_files); \
642 shift; \
643 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
644 test -n "$$unique" || unique=$$empty_fix; \
645 if test $$# -gt 0; then \
646 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
647 "$$@" $$unique; \
648 else \
649 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
650 $$unique; \
651 fi; \
652 fi
653 ctags: ctags-am
654
655 CTAGS: ctags
656 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
657 $(am__define_uniq_tagged_files); \
658 test -z "$(CTAGS_ARGS)$$unique" \
659 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
660 $$unique
661
662 GTAGS:
663 here=`$(am__cd) $(top_builddir) && pwd` \
664 && $(am__cd) $(top_srcdir) \
665 && gtags -i $(GTAGS_ARGS) "$$here"
666 cscopelist: cscopelist-am
667
668 cscopelist-am: $(am__tagged_files)
669 list='$(am__tagged_files)'; \
670 case "$(srcdir)" in \
671 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
672 *) sdir=$(subdir)/$(srcdir) ;; \
673 esac; \
674 for i in $$list; do \
675 if test -f "$$i"; then \
676 echo "$(subdir)/$$i"; \
677 else \
678 echo "$$sdir/$$i"; \
679 fi; \
680 done >> $(top_builddir)/cscope.files
681
682 distclean-tags:
683 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
684
685 distdir: $(DISTFILES)
686 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
687 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
688 list='$(DISTFILES)'; \
689 dist_files=`for file in $$list; do echo $$file; done | \
690 sed -e "s|^$$srcdirstrip/||;t" \
691 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
692 case $$dist_files in \
693 */*) $(MKDIR_P) `echo "$$dist_files" | \
694 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
695 sort -u` ;; \
696 esac; \
697 for file in $$dist_files; do \
698 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
699 if test -d $$d/$$file; then \
700 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
701 if test -d "$(distdir)/$$file"; then \
702 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
703 fi; \
704 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
705 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
706 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
707 fi; \
708 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
709 else \
710 test -f "$(distdir)/$$file" \
711 || cp -p $$d/$$file "$(distdir)/$$file" \
712 || exit 1; \
713 fi; \
714 done
715 check-am: all-am
716 check: check-am
717 all-am: Makefile $(PROGRAMS)
718 installdirs:
719 for dir in "$(DESTDIR)$(bindir)"; do \
720 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
721 done
722 install: install-am
723 install-exec: install-exec-am
724 install-data: install-data-am
725 uninstall: uninstall-am
726
727 install-am: all-am
728 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
729
730 installcheck: installcheck-am
731 install-strip:
732 if test -z '$(STRIP)'; then \
733 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
734 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
735 install; \
736 else \
737 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
738 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
739 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
740 fi
741 mostlyclean-generic:
742
743 clean-generic:
744 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
745
746 distclean-generic:
747 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
748 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
749
750 maintainer-clean-generic:
751 @echo "This command is intended for maintainers to use"
752 @echo "it deletes files that may require special tools to rebuild."
753 clean: clean-am
754
755 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
756
757 distclean: distclean-am
758 -rm -rf ./$(DEPDIR)
759 -rm -f Makefile
760 distclean-am: clean-am distclean-compile distclean-generic \
761 distclean-tags
762
763 dvi: dvi-am
764
765 dvi-am:
766
767 html: html-am
768
769 html-am:
770
771 info: info-am
772
773 info-am:
774
775 install-data-am:
776
777 install-dvi: install-dvi-am
778
779 install-dvi-am:
780
781 install-exec-am: install-binPROGRAMS
782
783 install-html: install-html-am
784
785 install-html-am:
786
787 install-info: install-info-am
788
789 install-info-am:
790
791 install-man:
792
793 install-pdf: install-pdf-am
794
795 install-pdf-am:
796
797 install-ps: install-ps-am
798
799 install-ps-am:
800
801 installcheck-am:
802
803 maintainer-clean: maintainer-clean-am
804 -rm -rf ./$(DEPDIR)
805 -rm -f Makefile
806 maintainer-clean-am: distclean-am maintainer-clean-generic
807
808 mostlyclean: mostlyclean-am
809
810 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
811 mostlyclean-libtool
812
813 pdf: pdf-am
814
815 pdf-am:
816
817 ps: ps-am
818
819 ps-am:
820
821 uninstall-am: uninstall-binPROGRAMS
822
823 .MAKE: install-am install-strip
824
825 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
826 clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
827 ctags ctags-am distclean distclean-compile distclean-generic \
828 distclean-libtool distclean-tags distdir dvi dvi-am html \
829 html-am info info-am install install-am install-binPROGRAMS \
830 install-data install-data-am install-dvi install-dvi-am \
831 install-exec install-exec-am install-html install-html-am \
832 install-info install-info-am install-man install-pdf \
833 install-pdf-am install-ps install-ps-am install-strip \
834 installcheck installcheck-am installdirs maintainer-clean \
835 maintainer-clean-generic mostlyclean mostlyclean-compile \
836 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
837 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
838
839 .PRECIOUS: Makefile
840
841
842 moc_VideoWidget.cpp: VideoWidget.hh
843 $(QTMOC) $(DEFINES) $(INCPATH) VideoWidget.hh -o moc_VideoWidget.cpp
844
845 moc_VideoPlayer.cpp: VideoPlayer.hh
846 $(QTMOC) $(DEFINES) $(INCPATH) VideoPlayer.hh -o moc_VideoPlayer.cpp
847
848 moc_VideoDecoder.cpp: VideoDecoder.hh
849 $(QTMOC) $(DEFINES) $(INCPATH) VideoDecoder.hh -o moc_VideoDecoder.cpp
850
851 # Tell versions [3.59,3.63) of GNU make to not export all variables.
852 # Otherwise a system limit (for SysV at least) may be exceeded.
853 .NOEXPORT:
+0
-838
tools/Makefile.in less more
0 # Makefile.in generated by automake 1.15.1 from Makefile.am.
1 # @configure_input@
2
3 # Copyright (C) 1994-2017 Free Software Foundation, Inc.
4
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 @SET_MAKE@
15
16 VPATH = @srcdir@
17 am__is_gnu_make = { \
18 if test -z '$(MAKELEVEL)'; then \
19 false; \
20 elif test -n '$(MAKE_HOST)'; then \
21 true; \
22 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
23 true; \
24 else \
25 false; \
26 fi; \
27 }
28 am__make_running_with_option = \
29 case $${target_option-} in \
30 ?) ;; \
31 *) echo "am__make_running_with_option: internal error: invalid" \
32 "target option '$${target_option-}' specified" >&2; \
33 exit 1;; \
34 esac; \
35 has_opt=no; \
36 sane_makeflags=$$MAKEFLAGS; \
37 if $(am__is_gnu_make); then \
38 sane_makeflags=$$MFLAGS; \
39 else \
40 case $$MAKEFLAGS in \
41 *\\[\ \ ]*) \
42 bs=\\; \
43 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
44 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
45 esac; \
46 fi; \
47 skip_next=no; \
48 strip_trailopt () \
49 { \
50 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
51 }; \
52 for flg in $$sane_makeflags; do \
53 test $$skip_next = yes && { skip_next=no; continue; }; \
54 case $$flg in \
55 *=*|--*) continue;; \
56 -*I) strip_trailopt 'I'; skip_next=yes;; \
57 -*I?*) strip_trailopt 'I';; \
58 -*O) strip_trailopt 'O'; skip_next=yes;; \
59 -*O?*) strip_trailopt 'O';; \
60 -*l) strip_trailopt 'l'; skip_next=yes;; \
61 -*l?*) strip_trailopt 'l';; \
62 -[dEDm]) skip_next=yes;; \
63 -[JT]) skip_next=yes;; \
64 esac; \
65 case $$flg in \
66 *$$target_option*) has_opt=yes; break;; \
67 esac; \
68 done; \
69 test $$has_opt = yes
70 am__make_dryrun = (target_option=n; $(am__make_running_with_option))
71 am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
82 NORMAL_INSTALL = :
83 PRE_INSTALL = :
84 POST_INSTALL = :
85 NORMAL_UNINSTALL = :
86 PRE_UNINSTALL = :
87 POST_UNINSTALL = :
88 build_triplet = @build@
89 host_triplet = @host@
90 target_triplet = @target@
91 bin_PROGRAMS = gen-enc-table$(EXEEXT) yuv-distortion$(EXEEXT) \
92 rd-curves$(EXEEXT) block-rate-estim$(EXEEXT) tests$(EXEEXT) \
93 bjoentegaard$(EXEEXT)
94 @HAVE_VIDEOGFX_TRUE@am__append_1 = $(VIDEOGFX_CFLAGS)
95 @HAVE_VIDEOGFX_TRUE@am__append_2 = $(VIDEOGFX_LIBS)
96 subdir = tools
97 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
98 am__aclocal_m4_deps = $(top_srcdir)/m4/ax_compare_version.m4 \
99 $(top_srcdir)/m4/ax_cxx_compile_stdcxx_11.m4 \
100 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
101 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
102 $(top_srcdir)/m4/lt~obsolete.m4 \
103 $(top_srcdir)/m4/m4_ax_check_compile_flag.m4 \
104 $(top_srcdir)/configure.ac
105 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
106 $(ACLOCAL_M4)
107 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
108 mkinstalldirs = $(install_sh) -d
109 CONFIG_HEADER = $(top_builddir)/config.h
110 CONFIG_CLEAN_FILES =
111 CONFIG_CLEAN_VPATH_FILES =
112 am__installdirs = "$(DESTDIR)$(bindir)"
113 PROGRAMS = $(bin_PROGRAMS)
114 am_bjoentegaard_OBJECTS = bjoentegaard-bjoentegaard.$(OBJEXT)
115 bjoentegaard_OBJECTS = $(am_bjoentegaard_OBJECTS)
116 AM_V_lt = $(am__v_lt_@AM_V@)
117 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
118 am__v_lt_0 = --silent
119 am__v_lt_1 =
120 bjoentegaard_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
121 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(bjoentegaard_CXXFLAGS) \
122 $(CXXFLAGS) $(bjoentegaard_LDFLAGS) $(LDFLAGS) -o $@
123 am_block_rate_estim_OBJECTS = \
124 block_rate_estim-block-rate-estim.$(OBJEXT)
125 block_rate_estim_OBJECTS = $(am_block_rate_estim_OBJECTS)
126 block_rate_estim_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
127 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
128 $(block_rate_estim_CXXFLAGS) $(CXXFLAGS) \
129 $(block_rate_estim_LDFLAGS) $(LDFLAGS) -o $@
130 am_gen_enc_table_OBJECTS = gen_enc_table-gen-entropy-table.$(OBJEXT)
131 gen_enc_table_OBJECTS = $(am_gen_enc_table_OBJECTS)
132 gen_enc_table_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
133 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
134 $(gen_enc_table_CXXFLAGS) $(CXXFLAGS) $(gen_enc_table_LDFLAGS) \
135 $(LDFLAGS) -o $@
136 am_rd_curves_OBJECTS = rd_curves-rd-curves.$(OBJEXT)
137 rd_curves_OBJECTS = $(am_rd_curves_OBJECTS)
138 rd_curves_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
139 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(rd_curves_CXXFLAGS) \
140 $(CXXFLAGS) $(rd_curves_LDFLAGS) $(LDFLAGS) -o $@
141 am_tests_OBJECTS = tests-tests.$(OBJEXT)
142 tests_OBJECTS = $(am_tests_OBJECTS)
143 tests_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
144 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(tests_CXXFLAGS) \
145 $(CXXFLAGS) $(tests_LDFLAGS) $(LDFLAGS) -o $@
146 am_yuv_distortion_OBJECTS = yuv_distortion-yuv-distortion.$(OBJEXT)
147 yuv_distortion_OBJECTS = $(am_yuv_distortion_OBJECTS)
148 yuv_distortion_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX \
149 $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CXXLD) \
150 $(yuv_distortion_CXXFLAGS) $(CXXFLAGS) \
151 $(yuv_distortion_LDFLAGS) $(LDFLAGS) -o $@
152 AM_V_P = $(am__v_P_@AM_V@)
153 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
154 am__v_P_0 = false
155 am__v_P_1 = :
156 AM_V_GEN = $(am__v_GEN_@AM_V@)
157 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
158 am__v_GEN_0 = @echo " GEN " $@;
159 am__v_GEN_1 =
160 AM_V_at = $(am__v_at_@AM_V@)
161 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
162 am__v_at_0 = @
163 am__v_at_1 =
164 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
165 depcomp = $(SHELL) $(top_srcdir)/depcomp
166 am__depfiles_maybe = depfiles
167 am__mv = mv -f
168 CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
169 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
170 LTCXXCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
171 $(LIBTOOLFLAGS) --mode=compile $(CXX) $(DEFS) \
172 $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
173 $(AM_CXXFLAGS) $(CXXFLAGS)
174 AM_V_CXX = $(am__v_CXX_@AM_V@)
175 am__v_CXX_ = $(am__v_CXX_@AM_DEFAULT_V@)
176 am__v_CXX_0 = @echo " CXX " $@;
177 am__v_CXX_1 =
178 CXXLD = $(CXX)
179 CXXLINK = $(LIBTOOL) $(AM_V_lt) --tag=CXX $(AM_LIBTOOLFLAGS) \
180 $(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) \
181 $(CXXFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
182 AM_V_CXXLD = $(am__v_CXXLD_@AM_V@)
183 am__v_CXXLD_ = $(am__v_CXXLD_@AM_DEFAULT_V@)
184 am__v_CXXLD_0 = @echo " CXXLD " $@;
185 am__v_CXXLD_1 =
186 SOURCES = $(bjoentegaard_SOURCES) $(block_rate_estim_SOURCES) \
187 $(gen_enc_table_SOURCES) $(rd_curves_SOURCES) $(tests_SOURCES) \
188 $(yuv_distortion_SOURCES)
189 DIST_SOURCES = $(bjoentegaard_SOURCES) $(block_rate_estim_SOURCES) \
190 $(gen_enc_table_SOURCES) $(rd_curves_SOURCES) $(tests_SOURCES) \
191 $(yuv_distortion_SOURCES)
192 am__can_run_installinfo = \
193 case $$AM_UPDATE_INFO_DIR in \
194 n|no|NO) false;; \
195 *) (install-info --version) >/dev/null 2>&1;; \
196 esac
197 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
198 # Read a list of newline-separated strings from the standard input,
199 # and print each of them once, without duplicates. Input order is
200 # *not* preserved.
201 am__uniquify_input = $(AWK) '\
202 BEGIN { nonempty = 0; } \
203 { items[$$0] = 1; nonempty = 1; } \
204 END { if (nonempty) { for (i in items) print i; }; } \
205 '
206 # Make sure the list of sources is unique. This is necessary because,
207 # e.g., the same source file might be shared among _SOURCES variables
208 # for different programs/libraries.
209 am__define_uniq_tagged_files = \
210 list='$(am__tagged_files)'; \
211 unique=`for i in $$list; do \
212 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
213 done | $(am__uniquify_input)`
214 ETAGS = etags
215 CTAGS = ctags
216 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp
217 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
218 ACLOCAL = @ACLOCAL@
219 ALLOCA = @ALLOCA@
220 AMTAR = @AMTAR@
221 AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
222 AR = @AR@
223 AUTOCONF = @AUTOCONF@
224 AUTOHEADER = @AUTOHEADER@
225 AUTOMAKE = @AUTOMAKE@
226 AWK = @AWK@
227 CC = @CC@
228 CCAS = @CCAS@
229 CCASDEPMODE = @CCASDEPMODE@
230 CCASFLAGS = @CCASFLAGS@
231 CCDEPMODE = @CCDEPMODE@
232 CFLAGS = @CFLAGS@
233 CPP = @CPP@
234 CPPFLAGS = @CPPFLAGS@
235 CXX = @CXX@
236 CXXCPP = @CXXCPP@
237 CXXDEPMODE = @CXXDEPMODE@
238 CXXFLAGS = @CXXFLAGS@
239 CYGPATH_W = @CYGPATH_W@
240 DEFS = @DEFS@
241 DEPDIR = @DEPDIR@
242 DLLTOOL = @DLLTOOL@
243 DSYMUTIL = @DSYMUTIL@
244 DUMPBIN = @DUMPBIN@
245 ECHO_C = @ECHO_C@
246 ECHO_N = @ECHO_N@
247 ECHO_T = @ECHO_T@
248 EGREP = @EGREP@
249 EXEEXT = @EXEEXT@
250 FGREP = @FGREP@
251 GREP = @GREP@
252 HAVE_CXX11 = @HAVE_CXX11@
253 INSTALL = @INSTALL@
254 INSTALL_DATA = @INSTALL_DATA@
255 INSTALL_PROGRAM = @INSTALL_PROGRAM@
256 INSTALL_SCRIPT = @INSTALL_SCRIPT@
257 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
258 LD = @LD@
259 LDFLAGS = @LDFLAGS@
260 LIBDE265_AGE = @LIBDE265_AGE@
261 LIBDE265_CURRENT = @LIBDE265_CURRENT@
262 LIBDE265_REVISION = @LIBDE265_REVISION@
263 LIBOBJS = @LIBOBJS@
264 LIBS = @LIBS@
265 LIBTOOL = @LIBTOOL@
266 LIPO = @LIPO@
267 LN_S = @LN_S@
268 LTLIBOBJS = @LTLIBOBJS@
269 LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
270 MAKEINFO = @MAKEINFO@
271 MANIFEST_TOOL = @MANIFEST_TOOL@
272 MKDIR_P = @MKDIR_P@
273 NM = @NM@
274 NMEDIT = @NMEDIT@
275 NUMERIC_VERSION = @NUMERIC_VERSION@
276 OBJDUMP = @OBJDUMP@
277 OBJEXT = @OBJEXT@
278 OTOOL = @OTOOL@
279 OTOOL64 = @OTOOL64@
280 PACKAGE = @PACKAGE@
281 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
282 PACKAGE_NAME = @PACKAGE_NAME@
283 PACKAGE_STRING = @PACKAGE_STRING@
284 PACKAGE_TARNAME = @PACKAGE_TARNAME@
285 PACKAGE_URL = @PACKAGE_URL@
286 PACKAGE_VERSION = @PACKAGE_VERSION@
287 PATH_SEPARATOR = @PATH_SEPARATOR@
288 PKG_CONFIG = @PKG_CONFIG@
289 PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
290 PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
291 QTCHOOSER = @QTCHOOSER@
292 QTMOC = @QTMOC@
293 QT_CFLAGS = @QT_CFLAGS@
294 QT_LIBS = @QT_LIBS@
295 RANLIB = @RANLIB@
296 SDL_CFLAGS = @SDL_CFLAGS@
297 SDL_LIBS = @SDL_LIBS@
298 SED = @SED@
299 SET_MAKE = @SET_MAKE@
300 SHELL = @SHELL@
301 STRIP = @STRIP@
302 SWSCALE_CFLAGS = @SWSCALE_CFLAGS@
303 SWSCALE_LIBS = @SWSCALE_LIBS@
304 VERSION = @VERSION@
305 VIDEOGFX_CFLAGS = @VIDEOGFX_CFLAGS@
306 VIDEOGFX_LIBS = @VIDEOGFX_LIBS@
307 abs_builddir = @abs_builddir@
308 abs_srcdir = @abs_srcdir@
309 abs_top_builddir = @abs_top_builddir@
310 abs_top_srcdir = @abs_top_srcdir@
311 ac_ct_AR = @ac_ct_AR@
312 ac_ct_CC = @ac_ct_CC@
313 ac_ct_CXX = @ac_ct_CXX@
314 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
315 am__include = @am__include@
316 am__leading_dot = @am__leading_dot@
317 am__quote = @am__quote@
318 am__tar = @am__tar@
319 am__untar = @am__untar@
320 bindir = @bindir@
321 build = @build@
322 build_alias = @build_alias@
323 build_cpu = @build_cpu@
324 build_os = @build_os@
325 build_vendor = @build_vendor@
326 builddir = @builddir@
327 datadir = @datadir@
328 datarootdir = @datarootdir@
329 docdir = @docdir@
330 dvidir = @dvidir@
331 exec_prefix = @exec_prefix@
332 host = @host@
333 host_alias = @host_alias@
334 host_cpu = @host_cpu@
335 host_os = @host_os@
336 host_vendor = @host_vendor@
337 htmldir = @htmldir@
338 includedir = @includedir@
339 infodir = @infodir@
340 install_sh = @install_sh@
341 libdir = @libdir@
342 libexecdir = @libexecdir@
343 localedir = @localedir@
344 localstatedir = @localstatedir@
345 mandir = @mandir@
346 mkdir_p = @mkdir_p@
347 oldincludedir = @oldincludedir@
348 pdfdir = @pdfdir@
349 prefix = @prefix@
350 program_transform_name = @program_transform_name@
351 psdir = @psdir@
352 runstatedir = @runstatedir@
353 sbindir = @sbindir@
354 sharedstatedir = @sharedstatedir@
355 srcdir = @srcdir@
356 sysconfdir = @sysconfdir@
357 target = @target@
358 target_alias = @target_alias@
359 target_cpu = @target_cpu@
360 target_os = @target_os@
361 target_vendor = @target_vendor@
362 top_build_prefix = @top_build_prefix@
363 top_builddir = @top_builddir@
364 top_srcdir = @top_srcdir@
365 AM_CPPFLAGS = -I$(top_srcdir)/libde265 -I$(top_srcdir)
366 gen_enc_table_DEPENDENCIES = ../libde265/libde265.la
367 gen_enc_table_CXXFLAGS =
368 gen_enc_table_LDFLAGS =
369 gen_enc_table_LDADD = ../libde265/libde265.la -lstdc++
370 gen_enc_table_SOURCES = gen-entropy-table.cc
371 yuv_distortion_DEPENDENCIES = ../libde265/libde265.la
372 yuv_distortion_CXXFLAGS = $(am__append_1)
373 yuv_distortion_LDFLAGS = $(am__append_2)
374 yuv_distortion_LDADD = ../libde265/libde265.la -lstdc++
375 yuv_distortion_SOURCES = yuv-distortion.cc
376 rd_curves_DEPENDENCIES = ../libde265/libde265.la
377 rd_curves_CXXFLAGS =
378 rd_curves_LDFLAGS =
379 rd_curves_LDADD = ../libde265/libde265.la -lstdc++
380 rd_curves_SOURCES = rd-curves.cc
381 block_rate_estim_DEPENDENCIES = ../libde265/libde265.la
382 block_rate_estim_CXXFLAGS =
383 block_rate_estim_LDFLAGS =
384 block_rate_estim_LDADD = ../libde265/libde265.la -lstdc++
385 block_rate_estim_SOURCES = block-rate-estim.cc
386 tests_DEPENDENCIES = ../libde265/libde265.la
387 tests_CXXFLAGS =
388 tests_LDFLAGS =
389 tests_LDADD = ../libde265/libde265.la -lstdc++
390 tests_SOURCES = tests.cc
391 bjoentegaard_DEPENDENCIES = ../libde265/libde265.la
392 bjoentegaard_CXXFLAGS =
393 bjoentegaard_LDFLAGS =
394 bjoentegaard_LDADD = ../libde265/libde265.la -lstdc++
395 bjoentegaard_SOURCES = bjoentegaard.cc
396 all: all-am
397
398 .SUFFIXES:
399 .SUFFIXES: .cc .lo .o .obj
400 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
401 @for dep in $?; do \
402 case '$(am__configure_deps)' in \
403 *$$dep*) \
404 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
405 && { if test -f $@; then exit 0; else break; fi; }; \
406 exit 1;; \
407 esac; \
408 done; \
409 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu tools/Makefile'; \
410 $(am__cd) $(top_srcdir) && \
411 $(AUTOMAKE) --gnu tools/Makefile
412 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
413 @case '$?' in \
414 *config.status*) \
415 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
416 *) \
417 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
418 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
419 esac;
420
421 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
422 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
423
424 $(top_srcdir)/configure: $(am__configure_deps)
425 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
426 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
427 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
428 $(am__aclocal_m4_deps):
429 install-binPROGRAMS: $(bin_PROGRAMS)
430 @$(NORMAL_INSTALL)
431 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
432 if test -n "$$list"; then \
433 echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
434 $(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
435 fi; \
436 for p in $$list; do echo "$$p $$p"; done | \
437 sed 's/$(EXEEXT)$$//' | \
438 while read p p1; do if test -f $$p \
439 || test -f $$p1 \
440 ; then echo "$$p"; echo "$$p"; else :; fi; \
441 done | \
442 sed -e 'p;s,.*/,,;n;h' \
443 -e 's|.*|.|' \
444 -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
445 sed 'N;N;N;s,\n, ,g' | \
446 $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
447 { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
448 if ($$2 == $$4) files[d] = files[d] " " $$1; \
449 else { print "f", $$3 "/" $$4, $$1; } } \
450 END { for (d in files) print "f", d, files[d] }' | \
451 while read type dir files; do \
452 if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
453 test -z "$$files" || { \
454 echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
455 $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
456 } \
457 ; done
458
459 uninstall-binPROGRAMS:
460 @$(NORMAL_UNINSTALL)
461 @list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
462 files=`for p in $$list; do echo "$$p"; done | \
463 sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
464 -e 's/$$/$(EXEEXT)/' \
465 `; \
466 test -n "$$list" || exit 0; \
467 echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
468 cd "$(DESTDIR)$(bindir)" && rm -f $$files
469
470 clean-binPROGRAMS:
471 @list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
472 echo " rm -f" $$list; \
473 rm -f $$list || exit $$?; \
474 test -n "$(EXEEXT)" || exit 0; \
475 list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
476 echo " rm -f" $$list; \
477 rm -f $$list
478
479 bjoentegaard$(EXEEXT): $(bjoentegaard_OBJECTS) $(bjoentegaard_DEPENDENCIES) $(EXTRA_bjoentegaard_DEPENDENCIES)
480 @rm -f bjoentegaard$(EXEEXT)
481 $(AM_V_CXXLD)$(bjoentegaard_LINK) $(bjoentegaard_OBJECTS) $(bjoentegaard_LDADD) $(LIBS)
482
483 block-rate-estim$(EXEEXT): $(block_rate_estim_OBJECTS) $(block_rate_estim_DEPENDENCIES) $(EXTRA_block_rate_estim_DEPENDENCIES)
484 @rm -f block-rate-estim$(EXEEXT)
485 $(AM_V_CXXLD)$(block_rate_estim_LINK) $(block_rate_estim_OBJECTS) $(block_rate_estim_LDADD) $(LIBS)
486
487 gen-enc-table$(EXEEXT): $(gen_enc_table_OBJECTS) $(gen_enc_table_DEPENDENCIES) $(EXTRA_gen_enc_table_DEPENDENCIES)
488 @rm -f gen-enc-table$(EXEEXT)
489 $(AM_V_CXXLD)$(gen_enc_table_LINK) $(gen_enc_table_OBJECTS) $(gen_enc_table_LDADD) $(LIBS)
490
491 rd-curves$(EXEEXT): $(rd_curves_OBJECTS) $(rd_curves_DEPENDENCIES) $(EXTRA_rd_curves_DEPENDENCIES)
492 @rm -f rd-curves$(EXEEXT)
493 $(AM_V_CXXLD)$(rd_curves_LINK) $(rd_curves_OBJECTS) $(rd_curves_LDADD) $(LIBS)
494
495 tests$(EXEEXT): $(tests_OBJECTS) $(tests_DEPENDENCIES) $(EXTRA_tests_DEPENDENCIES)
496 @rm -f tests$(EXEEXT)
497 $(AM_V_CXXLD)$(tests_LINK) $(tests_OBJECTS) $(tests_LDADD) $(LIBS)
498
499 yuv-distortion$(EXEEXT): $(yuv_distortion_OBJECTS) $(yuv_distortion_DEPENDENCIES) $(EXTRA_yuv_distortion_DEPENDENCIES)
500 @rm -f yuv-distortion$(EXEEXT)
501 $(AM_V_CXXLD)$(yuv_distortion_LINK) $(yuv_distortion_OBJECTS) $(yuv_distortion_LDADD) $(LIBS)
502
503 mostlyclean-compile:
504 -rm -f *.$(OBJEXT)
505
506 distclean-compile:
507 -rm -f *.tab.c
508
509 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/bjoentegaard-bjoentegaard.Po@am__quote@
510 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/block_rate_estim-block-rate-estim.Po@am__quote@
511 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/gen_enc_table-gen-entropy-table.Po@am__quote@
512 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rd_curves-rd-curves.Po@am__quote@
513 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tests-tests.Po@am__quote@
514 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/yuv_distortion-yuv-distortion.Po@am__quote@
515
516 .cc.o:
517 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
518 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
519 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
520 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
521 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $<
522
523 .cc.obj:
524 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
525 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
526 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
527 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
528 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
529
530 .cc.lo:
531 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(LTCXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
532 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
533 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
534 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
535 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(LTCXXCOMPILE) -c -o $@ $<
536
537 bjoentegaard-bjoentegaard.o: bjoentegaard.cc
538 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bjoentegaard_CXXFLAGS) $(CXXFLAGS) -MT bjoentegaard-bjoentegaard.o -MD -MP -MF $(DEPDIR)/bjoentegaard-bjoentegaard.Tpo -c -o bjoentegaard-bjoentegaard.o `test -f 'bjoentegaard.cc' || echo '$(srcdir)/'`bjoentegaard.cc
539 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bjoentegaard-bjoentegaard.Tpo $(DEPDIR)/bjoentegaard-bjoentegaard.Po
540 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bjoentegaard.cc' object='bjoentegaard-bjoentegaard.o' libtool=no @AMDEPBACKSLASH@
541 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
542 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bjoentegaard_CXXFLAGS) $(CXXFLAGS) -c -o bjoentegaard-bjoentegaard.o `test -f 'bjoentegaard.cc' || echo '$(srcdir)/'`bjoentegaard.cc
543
544 bjoentegaard-bjoentegaard.obj: bjoentegaard.cc
545 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bjoentegaard_CXXFLAGS) $(CXXFLAGS) -MT bjoentegaard-bjoentegaard.obj -MD -MP -MF $(DEPDIR)/bjoentegaard-bjoentegaard.Tpo -c -o bjoentegaard-bjoentegaard.obj `if test -f 'bjoentegaard.cc'; then $(CYGPATH_W) 'bjoentegaard.cc'; else $(CYGPATH_W) '$(srcdir)/bjoentegaard.cc'; fi`
546 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/bjoentegaard-bjoentegaard.Tpo $(DEPDIR)/bjoentegaard-bjoentegaard.Po
547 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='bjoentegaard.cc' object='bjoentegaard-bjoentegaard.obj' libtool=no @AMDEPBACKSLASH@
548 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
549 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(bjoentegaard_CXXFLAGS) $(CXXFLAGS) -c -o bjoentegaard-bjoentegaard.obj `if test -f 'bjoentegaard.cc'; then $(CYGPATH_W) 'bjoentegaard.cc'; else $(CYGPATH_W) '$(srcdir)/bjoentegaard.cc'; fi`
550
551 block_rate_estim-block-rate-estim.o: block-rate-estim.cc
552 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(block_rate_estim_CXXFLAGS) $(CXXFLAGS) -MT block_rate_estim-block-rate-estim.o -MD -MP -MF $(DEPDIR)/block_rate_estim-block-rate-estim.Tpo -c -o block_rate_estim-block-rate-estim.o `test -f 'block-rate-estim.cc' || echo '$(srcdir)/'`block-rate-estim.cc
553 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/block_rate_estim-block-rate-estim.Tpo $(DEPDIR)/block_rate_estim-block-rate-estim.Po
554 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='block-rate-estim.cc' object='block_rate_estim-block-rate-estim.o' libtool=no @AMDEPBACKSLASH@
555 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
556 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(block_rate_estim_CXXFLAGS) $(CXXFLAGS) -c -o block_rate_estim-block-rate-estim.o `test -f 'block-rate-estim.cc' || echo '$(srcdir)/'`block-rate-estim.cc
557
558 block_rate_estim-block-rate-estim.obj: block-rate-estim.cc
559 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(block_rate_estim_CXXFLAGS) $(CXXFLAGS) -MT block_rate_estim-block-rate-estim.obj -MD -MP -MF $(DEPDIR)/block_rate_estim-block-rate-estim.Tpo -c -o block_rate_estim-block-rate-estim.obj `if test -f 'block-rate-estim.cc'; then $(CYGPATH_W) 'block-rate-estim.cc'; else $(CYGPATH_W) '$(srcdir)/block-rate-estim.cc'; fi`
560 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/block_rate_estim-block-rate-estim.Tpo $(DEPDIR)/block_rate_estim-block-rate-estim.Po
561 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='block-rate-estim.cc' object='block_rate_estim-block-rate-estim.obj' libtool=no @AMDEPBACKSLASH@
562 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
563 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(block_rate_estim_CXXFLAGS) $(CXXFLAGS) -c -o block_rate_estim-block-rate-estim.obj `if test -f 'block-rate-estim.cc'; then $(CYGPATH_W) 'block-rate-estim.cc'; else $(CYGPATH_W) '$(srcdir)/block-rate-estim.cc'; fi`
564
565 gen_enc_table-gen-entropy-table.o: gen-entropy-table.cc
566 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gen_enc_table_CXXFLAGS) $(CXXFLAGS) -MT gen_enc_table-gen-entropy-table.o -MD -MP -MF $(DEPDIR)/gen_enc_table-gen-entropy-table.Tpo -c -o gen_enc_table-gen-entropy-table.o `test -f 'gen-entropy-table.cc' || echo '$(srcdir)/'`gen-entropy-table.cc
567 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/gen_enc_table-gen-entropy-table.Tpo $(DEPDIR)/gen_enc_table-gen-entropy-table.Po
568 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='gen-entropy-table.cc' object='gen_enc_table-gen-entropy-table.o' libtool=no @AMDEPBACKSLASH@
569 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
570 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gen_enc_table_CXXFLAGS) $(CXXFLAGS) -c -o gen_enc_table-gen-entropy-table.o `test -f 'gen-entropy-table.cc' || echo '$(srcdir)/'`gen-entropy-table.cc
571
572 gen_enc_table-gen-entropy-table.obj: gen-entropy-table.cc
573 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gen_enc_table_CXXFLAGS) $(CXXFLAGS) -MT gen_enc_table-gen-entropy-table.obj -MD -MP -MF $(DEPDIR)/gen_enc_table-gen-entropy-table.Tpo -c -o gen_enc_table-gen-entropy-table.obj `if test -f 'gen-entropy-table.cc'; then $(CYGPATH_W) 'gen-entropy-table.cc'; else $(CYGPATH_W) '$(srcdir)/gen-entropy-table.cc'; fi`
574 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/gen_enc_table-gen-entropy-table.Tpo $(DEPDIR)/gen_enc_table-gen-entropy-table.Po
575 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='gen-entropy-table.cc' object='gen_enc_table-gen-entropy-table.obj' libtool=no @AMDEPBACKSLASH@
576 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
577 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(gen_enc_table_CXXFLAGS) $(CXXFLAGS) -c -o gen_enc_table-gen-entropy-table.obj `if test -f 'gen-entropy-table.cc'; then $(CYGPATH_W) 'gen-entropy-table.cc'; else $(CYGPATH_W) '$(srcdir)/gen-entropy-table.cc'; fi`
578
579 rd_curves-rd-curves.o: rd-curves.cc
580 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rd_curves_CXXFLAGS) $(CXXFLAGS) -MT rd_curves-rd-curves.o -MD -MP -MF $(DEPDIR)/rd_curves-rd-curves.Tpo -c -o rd_curves-rd-curves.o `test -f 'rd-curves.cc' || echo '$(srcdir)/'`rd-curves.cc
581 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/rd_curves-rd-curves.Tpo $(DEPDIR)/rd_curves-rd-curves.Po
582 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='rd-curves.cc' object='rd_curves-rd-curves.o' libtool=no @AMDEPBACKSLASH@
583 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
584 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rd_curves_CXXFLAGS) $(CXXFLAGS) -c -o rd_curves-rd-curves.o `test -f 'rd-curves.cc' || echo '$(srcdir)/'`rd-curves.cc
585
586 rd_curves-rd-curves.obj: rd-curves.cc
587 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rd_curves_CXXFLAGS) $(CXXFLAGS) -MT rd_curves-rd-curves.obj -MD -MP -MF $(DEPDIR)/rd_curves-rd-curves.Tpo -c -o rd_curves-rd-curves.obj `if test -f 'rd-curves.cc'; then $(CYGPATH_W) 'rd-curves.cc'; else $(CYGPATH_W) '$(srcdir)/rd-curves.cc'; fi`
588 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/rd_curves-rd-curves.Tpo $(DEPDIR)/rd_curves-rd-curves.Po
589 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='rd-curves.cc' object='rd_curves-rd-curves.obj' libtool=no @AMDEPBACKSLASH@
590 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
591 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(rd_curves_CXXFLAGS) $(CXXFLAGS) -c -o rd_curves-rd-curves.obj `if test -f 'rd-curves.cc'; then $(CYGPATH_W) 'rd-curves.cc'; else $(CYGPATH_W) '$(srcdir)/rd-curves.cc'; fi`
592
593 tests-tests.o: tests.cc
594 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tests_CXXFLAGS) $(CXXFLAGS) -MT tests-tests.o -MD -MP -MF $(DEPDIR)/tests-tests.Tpo -c -o tests-tests.o `test -f 'tests.cc' || echo '$(srcdir)/'`tests.cc
595 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/tests-tests.Tpo $(DEPDIR)/tests-tests.Po
596 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tests.cc' object='tests-tests.o' libtool=no @AMDEPBACKSLASH@
597 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
598 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tests_CXXFLAGS) $(CXXFLAGS) -c -o tests-tests.o `test -f 'tests.cc' || echo '$(srcdir)/'`tests.cc
599
600 tests-tests.obj: tests.cc
601 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tests_CXXFLAGS) $(CXXFLAGS) -MT tests-tests.obj -MD -MP -MF $(DEPDIR)/tests-tests.Tpo -c -o tests-tests.obj `if test -f 'tests.cc'; then $(CYGPATH_W) 'tests.cc'; else $(CYGPATH_W) '$(srcdir)/tests.cc'; fi`
602 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/tests-tests.Tpo $(DEPDIR)/tests-tests.Po
603 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='tests.cc' object='tests-tests.obj' libtool=no @AMDEPBACKSLASH@
604 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
605 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(tests_CXXFLAGS) $(CXXFLAGS) -c -o tests-tests.obj `if test -f 'tests.cc'; then $(CYGPATH_W) 'tests.cc'; else $(CYGPATH_W) '$(srcdir)/tests.cc'; fi`
606
607 yuv_distortion-yuv-distortion.o: yuv-distortion.cc
608 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yuv_distortion_CXXFLAGS) $(CXXFLAGS) -MT yuv_distortion-yuv-distortion.o -MD -MP -MF $(DEPDIR)/yuv_distortion-yuv-distortion.Tpo -c -o yuv_distortion-yuv-distortion.o `test -f 'yuv-distortion.cc' || echo '$(srcdir)/'`yuv-distortion.cc
609 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yuv_distortion-yuv-distortion.Tpo $(DEPDIR)/yuv_distortion-yuv-distortion.Po
610 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='yuv-distortion.cc' object='yuv_distortion-yuv-distortion.o' libtool=no @AMDEPBACKSLASH@
611 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
612 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yuv_distortion_CXXFLAGS) $(CXXFLAGS) -c -o yuv_distortion-yuv-distortion.o `test -f 'yuv-distortion.cc' || echo '$(srcdir)/'`yuv-distortion.cc
613
614 yuv_distortion-yuv-distortion.obj: yuv-distortion.cc
615 @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yuv_distortion_CXXFLAGS) $(CXXFLAGS) -MT yuv_distortion-yuv-distortion.obj -MD -MP -MF $(DEPDIR)/yuv_distortion-yuv-distortion.Tpo -c -o yuv_distortion-yuv-distortion.obj `if test -f 'yuv-distortion.cc'; then $(CYGPATH_W) 'yuv-distortion.cc'; else $(CYGPATH_W) '$(srcdir)/yuv-distortion.cc'; fi`
616 @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/yuv_distortion-yuv-distortion.Tpo $(DEPDIR)/yuv_distortion-yuv-distortion.Po
617 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='yuv-distortion.cc' object='yuv_distortion-yuv-distortion.obj' libtool=no @AMDEPBACKSLASH@
618 @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@
619 @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(yuv_distortion_CXXFLAGS) $(CXXFLAGS) -c -o yuv_distortion-yuv-distortion.obj `if test -f 'yuv-distortion.cc'; then $(CYGPATH_W) 'yuv-distortion.cc'; else $(CYGPATH_W) '$(srcdir)/yuv-distortion.cc'; fi`
620
621 mostlyclean-libtool:
622 -rm -f *.lo
623
624 clean-libtool:
625 -rm -rf .libs _libs
626
627 ID: $(am__tagged_files)
628 $(am__define_uniq_tagged_files); mkid -fID $$unique
629 tags: tags-am
630 TAGS: tags
631
632 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
633 set x; \
634 here=`pwd`; \
635 $(am__define_uniq_tagged_files); \
636 shift; \
637 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
638 test -n "$$unique" || unique=$$empty_fix; \
639 if test $$# -gt 0; then \
640 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
641 "$$@" $$unique; \
642 else \
643 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
644 $$unique; \
645 fi; \
646 fi
647 ctags: ctags-am
648
649 CTAGS: ctags
650 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
651 $(am__define_uniq_tagged_files); \
652 test -z "$(CTAGS_ARGS)$$unique" \
653 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
654 $$unique
655
656 GTAGS:
657 here=`$(am__cd) $(top_builddir) && pwd` \
658 && $(am__cd) $(top_srcdir) \
659 && gtags -i $(GTAGS_ARGS) "$$here"
660 cscopelist: cscopelist-am
661
662 cscopelist-am: $(am__tagged_files)
663 list='$(am__tagged_files)'; \
664 case "$(srcdir)" in \
665 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
666 *) sdir=$(subdir)/$(srcdir) ;; \
667 esac; \
668 for i in $$list; do \
669 if test -f "$$i"; then \
670 echo "$(subdir)/$$i"; \
671 else \
672 echo "$$sdir/$$i"; \
673 fi; \
674 done >> $(top_builddir)/cscope.files
675
676 distclean-tags:
677 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
678
679 distdir: $(DISTFILES)
680 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
681 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
682 list='$(DISTFILES)'; \
683 dist_files=`for file in $$list; do echo $$file; done | \
684 sed -e "s|^$$srcdirstrip/||;t" \
685 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
686 case $$dist_files in \
687 */*) $(MKDIR_P) `echo "$$dist_files" | \
688 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
689 sort -u` ;; \
690 esac; \
691 for file in $$dist_files; do \
692 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
693 if test -d $$d/$$file; then \
694 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
695 if test -d "$(distdir)/$$file"; then \
696 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
697 fi; \
698 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
699 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
700 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
701 fi; \
702 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
703 else \
704 test -f "$(distdir)/$$file" \
705 || cp -p $$d/$$file "$(distdir)/$$file" \
706 || exit 1; \
707 fi; \
708 done
709 check-am: all-am
710 check: check-am
711 all-am: Makefile $(PROGRAMS)
712 installdirs:
713 for dir in "$(DESTDIR)$(bindir)"; do \
714 test -z "$$dir" || $(MKDIR_P) "$$dir"; \
715 done
716 install: install-am
717 install-exec: install-exec-am
718 install-data: install-data-am
719 uninstall: uninstall-am
720
721 install-am: all-am
722 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
723
724 installcheck: installcheck-am
725 install-strip:
726 if test -z '$(STRIP)'; then \
727 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
728 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
729 install; \
730 else \
731 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
732 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
733 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
734 fi
735 mostlyclean-generic:
736
737 clean-generic:
738
739 distclean-generic:
740 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
741 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
742
743 maintainer-clean-generic:
744 @echo "This command is intended for maintainers to use"
745 @echo "it deletes files that may require special tools to rebuild."
746 clean: clean-am
747
748 clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
749
750 distclean: distclean-am
751 -rm -rf ./$(DEPDIR)
752 -rm -f Makefile
753 distclean-am: clean-am distclean-compile distclean-generic \
754 distclean-tags
755
756 dvi: dvi-am
757
758 dvi-am:
759
760 html: html-am
761
762 html-am:
763
764 info: info-am
765
766 info-am:
767
768 install-data-am:
769
770 install-dvi: install-dvi-am
771
772 install-dvi-am:
773
774 install-exec-am: install-binPROGRAMS
775
776 install-html: install-html-am
777
778 install-html-am:
779
780 install-info: install-info-am
781
782 install-info-am:
783
784 install-man:
785
786 install-pdf: install-pdf-am
787
788 install-pdf-am:
789
790 install-ps: install-ps-am
791
792 install-ps-am:
793
794 installcheck-am:
795
796 maintainer-clean: maintainer-clean-am
797 -rm -rf ./$(DEPDIR)
798 -rm -f Makefile
799 maintainer-clean-am: distclean-am maintainer-clean-generic
800
801 mostlyclean: mostlyclean-am
802
803 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
804 mostlyclean-libtool
805
806 pdf: pdf-am
807
808 pdf-am:
809
810 ps: ps-am
811
812 ps-am:
813
814 uninstall-am: uninstall-binPROGRAMS
815
816 .MAKE: install-am install-strip
817
818 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean \
819 clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
820 ctags ctags-am distclean distclean-compile distclean-generic \
821 distclean-libtool distclean-tags distdir dvi dvi-am html \
822 html-am info info-am install install-am install-binPROGRAMS \
823 install-data install-data-am install-dvi install-dvi-am \
824 install-exec install-exec-am install-html install-html-am \
825 install-info install-info-am install-man install-pdf \
826 install-pdf-am install-ps install-ps-am install-strip \
827 installcheck installcheck-am installdirs maintainer-clean \
828 maintainer-clean-generic mostlyclean mostlyclean-compile \
829 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
830 tags tags-am uninstall uninstall-am uninstall-binPROGRAMS
831
832 .PRECIOUS: Makefile
833
834
835 # Tell versions [3.59,3.63) of GNU make to not export all variables.
836 # Otherwise a system limit (for SysV at least) may be exceeded.
837 .NOEXPORT:
0 # Add valgrind suppressions here.