Merge commit 'upstream/0.105'
Michael Biebl
12 years ago
0 | 0 | SUBDIRS = src po |
1 | ||
2 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | |
1 | 3 | |
2 | 4 | EXTRA_DIST = \ |
3 | 5 | autogen.sh \ |
38 | 38 | $(top_srcdir)/configure AUTHORS COPYING NEWS TODO config.guess \ |
39 | 39 | config.sub depcomp install-sh ltmain.sh missing mkinstalldirs |
40 | 40 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
41 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
41 | am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ | |
42 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | |
43 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | |
44 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac | |
42 | 45 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
43 | 46 | $(ACLOCAL_M4) |
44 | 47 | am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ |
107 | 110 | distuninstallcheck_listfiles = find . -type f -print |
108 | 111 | distcleancheck_listfiles = find . -type f -print |
109 | 112 | ACLOCAL = @ACLOCAL@ |
110 | ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ | |
111 | 113 | ALL_LINGUAS = @ALL_LINGUAS@ |
112 | 114 | AMTAR = @AMTAR@ |
113 | 115 | AM_CFLAGS = @AM_CFLAGS@ |
131 | 133 | DATADIRNAME = @DATADIRNAME@ |
132 | 134 | DEFS = @DEFS@ |
133 | 135 | DEPDIR = @DEPDIR@ |
134 | DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ | |
135 | 136 | DLLTOOL = @DLLTOOL@ |
136 | 137 | DSYMUTIL = @DSYMUTIL@ |
137 | 138 | DUMPBIN = @DUMPBIN@ |
142 | 143 | EXEEXT = @EXEEXT@ |
143 | 144 | FGREP = @FGREP@ |
144 | 145 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
145 | GIRDIR = @GIRDIR@ | |
146 | GIRTYPELIBDIR = @GIRTYPELIBDIR@ | |
146 | GLIB_CFLAGS = @GLIB_CFLAGS@ | |
147 | GLIB_LIBS = @GLIB_LIBS@ | |
147 | 148 | GMOFILES = @GMOFILES@ |
148 | 149 | GMSGFMT = @GMSGFMT@ |
149 | 150 | GREP = @GREP@ |
150 | GTKDOC_CHECK = @GTKDOC_CHECK@ | |
151 | GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ | |
152 | GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ | |
153 | GTKDOC_MKPDF = @GTKDOC_MKPDF@ | |
154 | GTKDOC_REBASE = @GTKDOC_REBASE@ | |
155 | 151 | GTK_CFLAGS = @GTK_CFLAGS@ |
156 | 152 | GTK_LIBS = @GTK_LIBS@ |
157 | G_IR_COMPILER = @G_IR_COMPILER@ | |
158 | G_IR_GENERATE = @G_IR_GENERATE@ | |
159 | G_IR_SCANNER = @G_IR_SCANNER@ | |
160 | HTML_DIR = @HTML_DIR@ | |
161 | 153 | INSTALL = @INSTALL@ |
162 | 154 | INSTALL_DATA = @INSTALL_DATA@ |
163 | 155 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
169 | 161 | INTLTOOL_MERGE = @INTLTOOL_MERGE@ |
170 | 162 | INTLTOOL_PERL = @INTLTOOL_PERL@ |
171 | 163 | INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ |
172 | INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ | |
173 | INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ | |
174 | 164 | LD = @LD@ |
175 | 165 | LDFLAGS = @LDFLAGS@ |
176 | 166 | LIBOBJS = @LIBOBJS@ |
277 | 267 | top_builddir = @top_builddir@ |
278 | 268 | top_srcdir = @top_srcdir@ |
279 | 269 | SUBDIRS = src po |
270 | ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS} | |
280 | 271 | EXTRA_DIST = \ |
281 | 272 | autogen.sh \ |
282 | 273 | TODO \ |
0 | 0 | ========== |
1 | polkit-gnome 0.104 | |
2 | ========== | |
3 | ||
4 | This is polkit-gnome version 0.104. | |
1 | polkit-gnome 0.105 | |
2 | ========== | |
3 | ||
4 | This is polkit-gnome version 0.105. | |
5 | 5 | |
6 | 6 | Build requirements |
7 | 7 | |
8 | 8 | polkit >= 0.96 |
9 | 9 | gtk+-3.0 >= 3.0 |
10 | 10 | |
11 | Changes since 0.104: | |
12 | ||
13 | Andika Triwidada (1): | |
14 | Added Indonesian translation | |
15 | ||
16 | Daniel Nylander (1): | |
17 | Updated Swedish translation | |
18 | ||
19 | David Zeuthen (1): | |
20 | Update NEWS for release | |
21 | ||
22 | Javier Jardón (5): | |
23 | build: Do not use GNOME_COMMON_INIT | |
24 | configure.ac: Use maintainer mode by default | |
25 | configure.ac: Do not use GNOME_MAINTAINER_MODE_DEFINES macro | |
26 | configure.ac: Do not use deprecated macros | |
27 | configure.ac: Use new libtool syntax | |
28 | ||
29 | Matthias Clasen (3): | |
30 | Updates | |
31 | Bump version to 0.105 | |
32 | Updates | |
33 | ||
34 | Michael Biebl (3): | |
35 | Remove obsolete configure checks | |
36 | Using the generic marshaller from GLib requires GLib >= 2.30 | |
37 | Fix typo in glib-2.0 configure check | |
38 | ||
39 | Seong-ho, Cho (1): | |
40 | Added Korean translation | |
41 | ||
42 | ||
43 | Thanks to our contributors. | |
44 | ||
45 | David Zeuthen, | |
46 | October 27, 2011 | |
47 | ||
48 | ========== | |
49 | polkit-gnome 0.104 | |
50 | ========== | |
51 | ||
52 | This is polkit-gnome version 0.104. | |
53 | ||
54 | Build requirements | |
55 | ||
56 | polkit >= 0.96 | |
57 | gtk+-3.0 >= 3.0 | |
58 | ||
11 | 59 | Changes since 0.103: |
60 | ||
61 | Andika Triwidada (1): | |
62 | Added Indonesian translation | |
12 | 63 | |
13 | 64 | Carles Ferrando (1): |
14 | 65 | [l10n]Updated Catalan (Valencian) translation |
66 | ||
67 | Daniel Nylander (1): | |
68 | Updated Swedish translation | |
15 | 69 | |
16 | 70 | David Zeuthen (1): |
17 | 71 | Post-release version bump to 0.104 |
17 | 17 | You have another version of autoconf. It may work, but is not guaranteed to. |
18 | 18 | If you have problems, you may need to regenerate the build system entirely. |
19 | 19 | To do so, use the procedure documented by the package, typically `autoreconf'.])]) |
20 | ||
21 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
22 | # | |
23 | # This file is free software; the Free Software Foundation | |
24 | # gives unlimited permission to copy and/or distribute it, | |
25 | # with or without modifications, as long as this notice is preserved. | |
26 | ||
27 | # AM_AUTOMAKE_VERSION(VERSION) | |
28 | # ---------------------------- | |
29 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
30 | # generated from the m4 files accompanying Automake X.Y. | |
31 | # (This private macro should not be called outside this file.) | |
32 | AC_DEFUN([AM_AUTOMAKE_VERSION], | |
33 | [am__api_version='1.11' | |
34 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
35 | dnl require some minimum version. Point them to the right macro. | |
36 | m4_if([$1], [1.11.1], [], | |
37 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
38 | ]) | |
39 | ||
40 | # _AM_AUTOCONF_VERSION(VERSION) | |
41 | # ----------------------------- | |
42 | # aclocal traces this macro to find the Autoconf version. | |
43 | # This is a private macro too. Using m4_define simplifies | |
44 | # the logic in aclocal, which can simply ignore this definition. | |
45 | m4_define([_AM_AUTOCONF_VERSION], []) | |
46 | ||
47 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
48 | # ------------------------------- | |
49 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
50 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
51 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
52 | [AM_AUTOMAKE_VERSION([1.11.1])dnl | |
53 | m4_ifndef([AC_AUTOCONF_VERSION], | |
54 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
55 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
56 | ||
57 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
58 | ||
59 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
60 | # | |
61 | # This file is free software; the Free Software Foundation | |
62 | # gives unlimited permission to copy and/or distribute it, | |
63 | # with or without modifications, as long as this notice is preserved. | |
64 | ||
65 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
66 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
67 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
68 | # | |
69 | # Of course, Automake must honor this variable whenever it calls a | |
70 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
71 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
72 | # depending on how configure is run. This is pretty annoying, since | |
73 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
74 | # source directory, any form will work fine, but in subdirectories a | |
75 | # relative path needs to be adjusted first. | |
76 | # | |
77 | # $ac_aux_dir/missing | |
78 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
79 | # $top_srcdir/$ac_aux_dir/missing | |
80 | # fails if $ac_aux_dir is absolute, | |
81 | # fails when called from a subdirectory in a VPATH build with | |
82 | # a relative $ac_aux_dir | |
83 | # | |
84 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
85 | # are both prefixed by $srcdir. In an in-source build this is usually | |
86 | # harmless because $srcdir is `.', but things will broke when you | |
87 | # start a VPATH build or use an absolute $srcdir. | |
88 | # | |
89 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
90 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
91 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
92 | # and then we would define $MISSING as | |
93 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
94 | # This will work as long as MISSING is not called from configure, because | |
95 | # unfortunately $(top_srcdir) has no meaning in configure. | |
96 | # However there are other variables, like CC, which are often used in | |
97 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
98 | # | |
99 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
100 | # absolute PATH. The drawback is that using absolute paths prevent a | |
101 | # configured tree to be moved without reconfiguration. | |
102 | ||
103 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
104 | [dnl Rely on autoconf to set up CDPATH properly. | |
105 | AC_PREREQ([2.50])dnl | |
106 | # expand $ac_aux_dir to an absolute path | |
107 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
108 | ]) | |
109 | ||
110 | # AM_CONDITIONAL -*- Autoconf -*- | |
111 | ||
112 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |
113 | # Free Software Foundation, Inc. | |
114 | # | |
115 | # This file is free software; the Free Software Foundation | |
116 | # gives unlimited permission to copy and/or distribute it, | |
117 | # with or without modifications, as long as this notice is preserved. | |
118 | ||
119 | # serial 9 | |
120 | ||
121 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
122 | # ------------------------------------- | |
123 | # Define a conditional. | |
124 | AC_DEFUN([AM_CONDITIONAL], | |
125 | [AC_PREREQ(2.52)dnl | |
126 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
127 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
128 | AC_SUBST([$1_TRUE])dnl | |
129 | AC_SUBST([$1_FALSE])dnl | |
130 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
131 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
132 | m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
133 | if $2; then | |
134 | $1_TRUE= | |
135 | $1_FALSE='#' | |
136 | else | |
137 | $1_TRUE='#' | |
138 | $1_FALSE= | |
139 | fi | |
140 | AC_CONFIG_COMMANDS_PRE( | |
141 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
142 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
143 | Usually this means the macro was only invoked conditionally.]]) | |
144 | fi])]) | |
145 | ||
146 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 | |
147 | # Free Software Foundation, Inc. | |
148 | # | |
149 | # This file is free software; the Free Software Foundation | |
150 | # gives unlimited permission to copy and/or distribute it, | |
151 | # with or without modifications, as long as this notice is preserved. | |
152 | ||
153 | # serial 10 | |
154 | ||
155 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
156 | # written in clear, in which case automake, when reading aclocal.m4, | |
157 | # will think it sees a *use*, and therefore will trigger all it's | |
158 | # C support machinery. Also note that it means that autoscan, seeing | |
159 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
160 | ||
161 | ||
162 | # _AM_DEPENDENCIES(NAME) | |
163 | # ---------------------- | |
164 | # See how the compiler implements dependency checking. | |
165 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
166 | # We try a few techniques and use that to set a single cache variable. | |
167 | # | |
168 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
169 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
170 | # dependency, and given that the user is not expected to run this macro, | |
171 | # just rely on AC_PROG_CC. | |
172 | AC_DEFUN([_AM_DEPENDENCIES], | |
173 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
174 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
175 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
176 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
177 | ||
178 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
179 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
180 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
181 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
182 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
183 | [depcc="$$1" am_compiler_list=]) | |
184 | ||
185 | AC_CACHE_CHECK([dependency style of $depcc], | |
186 | [am_cv_$1_dependencies_compiler_type], | |
187 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
188 | # We make a subdir and do the tests there. Otherwise we can end up | |
189 | # making bogus files that we don't know about and never remove. For | |
190 | # instance it was reported that on HP-UX the gcc test will end up | |
191 | # making a dummy file named `D' -- because `-MD' means `put the output | |
192 | # in D'. | |
193 | mkdir conftest.dir | |
194 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
195 | # using a relative directory. | |
196 | cp "$am_depcomp" conftest.dir | |
197 | cd conftest.dir | |
198 | # We will build objects and dependencies in a subdirectory because | |
199 | # it helps to detect inapplicable dependency modes. For instance | |
200 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
201 | # side effect of compilation, but ICC will put the dependencies in | |
202 | # the current directory while Tru64 will put them in the object | |
203 | # directory. | |
204 | mkdir sub | |
205 | ||
206 | am_cv_$1_dependencies_compiler_type=none | |
207 | if test "$am_compiler_list" = ""; then | |
208 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
209 | fi | |
210 | am__universal=false | |
211 | m4_case([$1], [CC], | |
212 | [case " $depcc " in #( | |
213 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
214 | esac], | |
215 | [CXX], | |
216 | [case " $depcc " in #( | |
217 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
218 | esac]) | |
219 | ||
220 | for depmode in $am_compiler_list; do | |
221 | # Setup a source with many dependencies, because some compilers | |
222 | # like to wrap large dependency lists on column 80 (with \), and | |
223 | # we should not choose a depcomp mode which is confused by this. | |
224 | # | |
225 | # We need to recreate these files for each test, as the compiler may | |
226 | # overwrite some of them when testing with obscure command lines. | |
227 | # This happens at least with the AIX C compiler. | |
228 | : > sub/conftest.c | |
229 | for i in 1 2 3 4 5 6; do | |
230 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
231 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
232 | # Solaris 8's {/usr,}/bin/sh. | |
233 | touch sub/conftst$i.h | |
234 | done | |
235 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
236 | ||
237 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
238 | # mode. It turns out that the SunPro C++ compiler does not properly | |
239 | # handle `-M -o', and we need to detect this. Also, some Intel | |
240 | # versions had trouble with output in subdirs | |
241 | am__obj=sub/conftest.${OBJEXT-o} | |
242 | am__minus_obj="-o $am__obj" | |
243 | case $depmode in | |
244 | gcc) | |
245 | # This depmode causes a compiler race in universal mode. | |
246 | test "$am__universal" = false || continue | |
247 | ;; | |
248 | nosideeffect) | |
249 | # after this tag, mechanisms are not by side-effect, so they'll | |
250 | # only be used when explicitly requested | |
251 | if test "x$enable_dependency_tracking" = xyes; then | |
252 | continue | |
253 | else | |
254 | break | |
255 | fi | |
256 | ;; | |
257 | msvisualcpp | msvcmsys) | |
258 | # This compiler won't grok `-c -o', but also, the minuso test has | |
259 | # not run yet. These depmodes are late enough in the game, and | |
260 | # so weak that their functioning should not be impacted. | |
261 | am__obj=conftest.${OBJEXT-o} | |
262 | am__minus_obj= | |
263 | ;; | |
264 | none) break ;; | |
265 | esac | |
266 | if depmode=$depmode \ | |
267 | source=sub/conftest.c object=$am__obj \ | |
268 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
269 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
270 | >/dev/null 2>conftest.err && | |
271 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
272 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
273 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
274 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
275 | # icc doesn't choke on unknown options, it will just issue warnings | |
276 | # or remarks (even with -Werror). So we grep stderr for any message | |
277 | # that says an option was ignored or not supported. | |
278 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
279 | # icc: Command line warning: ignoring option '-M'; no argument required | |
280 | # The diagnosis changed in icc 8.0: | |
281 | # icc: Command line remark: option '-MP' not supported | |
282 | if (grep 'ignoring option' conftest.err || | |
283 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
284 | am_cv_$1_dependencies_compiler_type=$depmode | |
285 | break | |
286 | fi | |
287 | fi | |
288 | done | |
289 | ||
290 | cd .. | |
291 | rm -rf conftest.dir | |
292 | else | |
293 | am_cv_$1_dependencies_compiler_type=none | |
294 | fi | |
295 | ]) | |
296 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
297 | AM_CONDITIONAL([am__fastdep$1], [ | |
298 | test "x$enable_dependency_tracking" != xno \ | |
299 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
300 | ]) | |
301 | ||
302 | ||
303 | # AM_SET_DEPDIR | |
304 | # ------------- | |
305 | # Choose a directory name for dependency files. | |
306 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
307 | AC_DEFUN([AM_SET_DEPDIR], | |
308 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
309 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
310 | ]) | |
311 | ||
312 | ||
313 | # AM_DEP_TRACK | |
314 | # ------------ | |
315 | AC_DEFUN([AM_DEP_TRACK], | |
316 | [AC_ARG_ENABLE(dependency-tracking, | |
317 | [ --disable-dependency-tracking speeds up one-time build | |
318 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
319 | if test "x$enable_dependency_tracking" != xno; then | |
320 | am_depcomp="$ac_aux_dir/depcomp" | |
321 | AMDEPBACKSLASH='\' | |
322 | fi | |
323 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
324 | AC_SUBST([AMDEPBACKSLASH])dnl | |
325 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
326 | ]) | |
327 | ||
328 | # Generate code to set up dependency tracking. -*- Autoconf -*- | |
329 | ||
330 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
331 | # Free Software Foundation, Inc. | |
332 | # | |
333 | # This file is free software; the Free Software Foundation | |
334 | # gives unlimited permission to copy and/or distribute it, | |
335 | # with or without modifications, as long as this notice is preserved. | |
336 | ||
337 | #serial 5 | |
338 | ||
339 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
340 | # ------------------------------ | |
341 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
342 | [{ | |
343 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
344 | # are listed without --file. Let's play safe and only enable the eval | |
345 | # if we detect the quoting. | |
346 | case $CONFIG_FILES in | |
347 | *\'*) eval set x "$CONFIG_FILES" ;; | |
348 | *) set x $CONFIG_FILES ;; | |
349 | esac | |
350 | shift | |
351 | for mf | |
352 | do | |
353 | # Strip MF so we end up with the name of the file. | |
354 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
355 | # Check whether this is an Automake generated Makefile or not. | |
356 | # We used to match only the files named `Makefile.in', but | |
357 | # some people rename them; so instead we look at the file content. | |
358 | # Grep'ing the first line is not enough: some people post-process | |
359 | # each Makefile.in and add a new line on top of each file to say so. | |
360 | # Grep'ing the whole file is not good either: AIX grep has a line | |
361 | # limit of 2048, but all sed's we know have understand at least 4000. | |
362 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
363 | dirpart=`AS_DIRNAME("$mf")` | |
364 | else | |
365 | continue | |
366 | fi | |
367 | # Extract the definition of DEPDIR, am__include, and am__quote | |
368 | # from the Makefile without running `make'. | |
369 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
370 | test -z "$DEPDIR" && continue | |
371 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
372 | test -z "am__include" && continue | |
373 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
374 | # When using ansi2knr, U may be empty or an underscore; expand it | |
375 | U=`sed -n 's/^U = //p' < "$mf"` | |
376 | # Find all dependency output files, they are included files with | |
377 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
378 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
379 | # expansion. | |
380 | for file in `sed -n " | |
381 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
382 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
383 | # Make sure the directory exists. | |
384 | test -f "$dirpart/$file" && continue | |
385 | fdir=`AS_DIRNAME(["$file"])` | |
386 | AS_MKDIR_P([$dirpart/$fdir]) | |
387 | # echo "creating $dirpart/$file" | |
388 | echo '# dummy' > "$dirpart/$file" | |
389 | done | |
390 | done | |
391 | } | |
392 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
393 | ||
394 | ||
395 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
396 | # ----------------------------- | |
397 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
398 | # | |
399 | # This code is only required when automatic dependency tracking | |
400 | # is enabled. FIXME. This creates each `.P' file that we will | |
401 | # need in order to bootstrap the dependency handling code. | |
402 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
403 | [AC_CONFIG_COMMANDS([depfiles], | |
404 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
405 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
406 | ]) | |
407 | ||
408 | # Do all the work for Automake. -*- Autoconf -*- | |
409 | ||
410 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
411 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |
412 | # | |
413 | # This file is free software; the Free Software Foundation | |
414 | # gives unlimited permission to copy and/or distribute it, | |
415 | # with or without modifications, as long as this notice is preserved. | |
416 | ||
417 | # serial 16 | |
418 | ||
419 | # This macro actually does too much. Some checks are only needed if | |
420 | # your package does certain things. But this isn't really a big deal. | |
421 | ||
422 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
423 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
424 | # ----------------------------------------------- | |
425 | # The call with PACKAGE and VERSION arguments is the old style | |
426 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
427 | # and VERSION should now be passed to AC_INIT and removed from | |
428 | # the call to AM_INIT_AUTOMAKE. | |
429 | # We support both call styles for the transition. After | |
430 | # the next Automake release, Autoconf can make the AC_INIT | |
431 | # arguments mandatory, and then we can depend on a new Autoconf | |
432 | # release and drop the old call support. | |
433 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
434 | [AC_PREREQ([2.62])dnl | |
435 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
436 | dnl the ones we care about. | |
437 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
438 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
439 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
440 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
441 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
442 | # is not polluted with repeated "-I." | |
443 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
444 | # test to see if srcdir already configured | |
445 | if test -f $srcdir/config.status; then | |
446 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
447 | fi | |
448 | fi | |
449 | ||
450 | # test whether we have cygpath | |
451 | if test -z "$CYGPATH_W"; then | |
452 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
453 | CYGPATH_W='cygpath -w' | |
454 | else | |
455 | CYGPATH_W=echo | |
456 | fi | |
457 | fi | |
458 | AC_SUBST([CYGPATH_W]) | |
459 | ||
460 | # Define the identity of the package. | |
461 | dnl Distinguish between old-style and new-style calls. | |
462 | m4_ifval([$2], | |
463 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
464 | AC_SUBST([PACKAGE], [$1])dnl | |
465 | AC_SUBST([VERSION], [$2])], | |
466 | [_AM_SET_OPTIONS([$1])dnl | |
467 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
468 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
469 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
470 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
471 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
472 | ||
473 | _AM_IF_OPTION([no-define],, | |
474 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
475 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
476 | ||
477 | # Some tools Automake needs. | |
478 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
479 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
480 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
481 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
482 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
483 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
484 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
485 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
486 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
487 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
488 | # We need awk for the "check" target. The system "awk" is bad on | |
489 | # some platforms. | |
490 | AC_REQUIRE([AC_PROG_AWK])dnl | |
491 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
492 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
493 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
494 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
495 | [_AM_PROG_TAR([v7])])]) | |
496 | _AM_IF_OPTION([no-dependencies],, | |
497 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
498 | [_AM_DEPENDENCIES(CC)], | |
499 | [define([AC_PROG_CC], | |
500 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
501 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
502 | [_AM_DEPENDENCIES(CXX)], | |
503 | [define([AC_PROG_CXX], | |
504 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
505 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
506 | [_AM_DEPENDENCIES(OBJC)], | |
507 | [define([AC_PROG_OBJC], | |
508 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
509 | ]) | |
510 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
511 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
512 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
513 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
514 | AC_CONFIG_COMMANDS_PRE(dnl | |
515 | [m4_provide_if([_AM_COMPILER_EXEEXT], | |
516 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
517 | ]) | |
518 | ||
519 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
520 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
521 | dnl mangled by Autoconf and run in a shell conditional statement. | |
522 | m4_define([_AC_COMPILER_EXEEXT], | |
523 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
524 | ||
525 | ||
526 | # When config.status generates a header, we must update the stamp-h file. | |
527 | # This file resides in the same directory as the config header | |
528 | # that is generated. The stamp files are numbered to have different names. | |
529 | ||
530 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
531 | # loop where config.status creates the headers, so we can generate | |
532 | # our stamp files there. | |
533 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
534 | [# Compute $1's index in $config_headers. | |
535 | _am_arg=$1 | |
536 | _am_stamp_count=1 | |
537 | for _am_header in $config_headers :; do | |
538 | case $_am_header in | |
539 | $_am_arg | $_am_arg:* ) | |
540 | break ;; | |
541 | * ) | |
542 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
543 | esac | |
544 | done | |
545 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
546 | ||
547 | # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | |
548 | # | |
549 | # This file is free software; the Free Software Foundation | |
550 | # gives unlimited permission to copy and/or distribute it, | |
551 | # with or without modifications, as long as this notice is preserved. | |
552 | ||
553 | # AM_PROG_INSTALL_SH | |
554 | # ------------------ | |
555 | # Define $install_sh. | |
556 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
557 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
558 | if test x"${install_sh}" != xset; then | |
559 | case $am_aux_dir in | |
560 | *\ * | *\ *) | |
561 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
562 | *) | |
563 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
564 | esac | |
565 | fi | |
566 | AC_SUBST(install_sh)]) | |
567 | ||
568 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
569 | # | |
570 | # This file is free software; the Free Software Foundation | |
571 | # gives unlimited permission to copy and/or distribute it, | |
572 | # with or without modifications, as long as this notice is preserved. | |
573 | ||
574 | # serial 2 | |
575 | ||
576 | # Check whether the underlying file-system supports filenames | |
577 | # with a leading dot. For instance MS-DOS doesn't. | |
578 | AC_DEFUN([AM_SET_LEADING_DOT], | |
579 | [rm -rf .tst 2>/dev/null | |
580 | mkdir .tst 2>/dev/null | |
581 | if test -d .tst; then | |
582 | am__leading_dot=. | |
583 | else | |
584 | am__leading_dot=_ | |
585 | fi | |
586 | rmdir .tst 2>/dev/null | |
587 | AC_SUBST([am__leading_dot])]) | |
588 | ||
589 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | |
590 | # From Jim Meyering | |
591 | ||
592 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
593 | # Free Software Foundation, Inc. | |
594 | # | |
595 | # This file is free software; the Free Software Foundation | |
596 | # gives unlimited permission to copy and/or distribute it, | |
597 | # with or without modifications, as long as this notice is preserved. | |
598 | ||
599 | # serial 5 | |
600 | ||
601 | # AM_MAINTAINER_MODE([DEFAULT-MODE]) | |
602 | # ---------------------------------- | |
603 | # Control maintainer-specific portions of Makefiles. | |
604 | # Default is to disable them, unless `enable' is passed literally. | |
605 | # For symmetry, `disable' may be passed as well. Anyway, the user | |
606 | # can override the default with the --enable/--disable switch. | |
607 | AC_DEFUN([AM_MAINTAINER_MODE], | |
608 | [m4_case(m4_default([$1], [disable]), | |
609 | [enable], [m4_define([am_maintainer_other], [disable])], | |
610 | [disable], [m4_define([am_maintainer_other], [enable])], | |
611 | [m4_define([am_maintainer_other], [enable]) | |
612 | m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | |
613 | AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) | |
614 | dnl maintainer-mode's default is 'disable' unless 'enable' is passed | |
615 | AC_ARG_ENABLE([maintainer-mode], | |
616 | [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | |
617 | (and sometimes confusing) to the casual installer], | |
618 | [USE_MAINTAINER_MODE=$enableval], | |
619 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
620 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | |
621 | AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) | |
622 | MAINT=$MAINTAINER_MODE_TRUE | |
623 | AC_SUBST([MAINT])dnl | |
624 | ] | |
625 | ) | |
626 | ||
627 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
628 | ||
629 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
630 | ||
631 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
632 | # | |
633 | # This file is free software; the Free Software Foundation | |
634 | # gives unlimited permission to copy and/or distribute it, | |
635 | # with or without modifications, as long as this notice is preserved. | |
636 | ||
637 | # serial 4 | |
638 | ||
639 | # AM_MAKE_INCLUDE() | |
640 | # ----------------- | |
641 | # Check to see how make treats includes. | |
642 | AC_DEFUN([AM_MAKE_INCLUDE], | |
643 | [am_make=${MAKE-make} | |
644 | cat > confinc << 'END' | |
645 | am__doit: | |
646 | @echo this is the am__doit target | |
647 | .PHONY: am__doit | |
648 | END | |
649 | # If we don't find an include directive, just comment out the code. | |
650 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
651 | am__include="#" | |
652 | am__quote= | |
653 | _am_result=none | |
654 | # First try GNU make style include. | |
655 | echo "include confinc" > confmf | |
656 | # Ignore all kinds of additional output from `make'. | |
657 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
658 | *the\ am__doit\ target*) | |
659 | am__include=include | |
660 | am__quote= | |
661 | _am_result=GNU | |
662 | ;; | |
663 | esac | |
664 | # Now try BSD make style include. | |
665 | if test "$am__include" = "#"; then | |
666 | echo '.include "confinc"' > confmf | |
667 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
668 | *the\ am__doit\ target*) | |
669 | am__include=.include | |
670 | am__quote="\"" | |
671 | _am_result=BSD | |
672 | ;; | |
673 | esac | |
674 | fi | |
675 | AC_SUBST([am__include]) | |
676 | AC_SUBST([am__quote]) | |
677 | AC_MSG_RESULT([$_am_result]) | |
678 | rm -f confinc confmf | |
679 | ]) | |
680 | ||
681 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
682 | ||
683 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
684 | # Free Software Foundation, Inc. | |
685 | # | |
686 | # This file is free software; the Free Software Foundation | |
687 | # gives unlimited permission to copy and/or distribute it, | |
688 | # with or without modifications, as long as this notice is preserved. | |
689 | ||
690 | # serial 6 | |
691 | ||
692 | # AM_MISSING_PROG(NAME, PROGRAM) | |
693 | # ------------------------------ | |
694 | AC_DEFUN([AM_MISSING_PROG], | |
695 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
696 | $1=${$1-"${am_missing_run}$2"} | |
697 | AC_SUBST($1)]) | |
698 | ||
699 | ||
700 | # AM_MISSING_HAS_RUN | |
701 | # ------------------ | |
702 | # Define MISSING if not defined so far and test if it supports --run. | |
703 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
704 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
705 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
706 | AC_REQUIRE_AUX_FILE([missing])dnl | |
707 | if test x"${MISSING+set}" != xset; then | |
708 | case $am_aux_dir in | |
709 | *\ * | *\ *) | |
710 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
711 | *) | |
712 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
713 | esac | |
714 | fi | |
715 | # Use eval to expand $SHELL | |
716 | if eval "$MISSING --run true"; then | |
717 | am_missing_run="$MISSING --run " | |
718 | else | |
719 | am_missing_run= | |
720 | AC_MSG_WARN([`missing' script is too old or missing]) | |
721 | fi | |
722 | ]) | |
723 | ||
724 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
725 | # | |
726 | # This file is free software; the Free Software Foundation | |
727 | # gives unlimited permission to copy and/or distribute it, | |
728 | # with or without modifications, as long as this notice is preserved. | |
729 | ||
730 | # AM_PROG_MKDIR_P | |
731 | # --------------- | |
732 | # Check for `mkdir -p'. | |
733 | AC_DEFUN([AM_PROG_MKDIR_P], | |
734 | [AC_PREREQ([2.60])dnl | |
735 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
736 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
737 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
738 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
739 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
740 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
741 | dnl adjustment using top_builddir (which is defined more often than | |
742 | dnl MKDIR_P). | |
743 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
744 | case $mkdir_p in | |
745 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
746 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
747 | esac | |
748 | ]) | |
749 | ||
750 | # Helper functions for option handling. -*- Autoconf -*- | |
751 | ||
752 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
753 | # | |
754 | # This file is free software; the Free Software Foundation | |
755 | # gives unlimited permission to copy and/or distribute it, | |
756 | # with or without modifications, as long as this notice is preserved. | |
757 | ||
758 | # serial 4 | |
759 | ||
760 | # _AM_MANGLE_OPTION(NAME) | |
761 | # ----------------------- | |
762 | AC_DEFUN([_AM_MANGLE_OPTION], | |
763 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
764 | ||
765 | # _AM_SET_OPTION(NAME) | |
766 | # ------------------------------ | |
767 | # Set option NAME. Presently that only means defining a flag for this option. | |
768 | AC_DEFUN([_AM_SET_OPTION], | |
769 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
770 | ||
771 | # _AM_SET_OPTIONS(OPTIONS) | |
772 | # ---------------------------------- | |
773 | # OPTIONS is a space-separated list of Automake options. | |
774 | AC_DEFUN([_AM_SET_OPTIONS], | |
775 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
776 | ||
777 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
778 | # ------------------------------------------- | |
779 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
780 | AC_DEFUN([_AM_IF_OPTION], | |
781 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
782 | ||
783 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
784 | ||
785 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
786 | # Free Software Foundation, Inc. | |
787 | # | |
788 | # This file is free software; the Free Software Foundation | |
789 | # gives unlimited permission to copy and/or distribute it, | |
790 | # with or without modifications, as long as this notice is preserved. | |
791 | ||
792 | # serial 5 | |
793 | ||
794 | # AM_SANITY_CHECK | |
795 | # --------------- | |
796 | AC_DEFUN([AM_SANITY_CHECK], | |
797 | [AC_MSG_CHECKING([whether build environment is sane]) | |
798 | # Just in case | |
799 | sleep 1 | |
800 | echo timestamp > conftest.file | |
801 | # Reject unsafe characters in $srcdir or the absolute working directory | |
802 | # name. Accept space and tab only in the latter. | |
803 | am_lf=' | |
804 | ' | |
805 | case `pwd` in | |
806 | *[[\\\"\#\$\&\'\`$am_lf]]*) | |
807 | AC_MSG_ERROR([unsafe absolute working directory name]);; | |
808 | esac | |
809 | case $srcdir in | |
810 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
811 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
812 | esac | |
813 | ||
814 | # Do `set' in a subshell so we don't clobber the current shell's | |
815 | # arguments. Must try -L first in case configure is actually a | |
816 | # symlink; some systems play weird games with the mod time of symlinks | |
817 | # (eg FreeBSD returns the mod time of the symlink's containing | |
818 | # directory). | |
819 | if ( | |
820 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
821 | if test "$[*]" = "X"; then | |
822 | # -L didn't work. | |
823 | set X `ls -t "$srcdir/configure" conftest.file` | |
824 | fi | |
825 | rm -f conftest.file | |
826 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
827 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
828 | ||
829 | # If neither matched, then we have a broken ls. This can happen | |
830 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
831 | # broken ls alias from the environment. This has actually | |
832 | # happened. Such a system could not be considered "sane". | |
833 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
834 | alias in your environment]) | |
835 | fi | |
836 | ||
837 | test "$[2]" = conftest.file | |
838 | ) | |
839 | then | |
840 | # Ok. | |
841 | : | |
842 | else | |
843 | AC_MSG_ERROR([newly created file is older than distributed files! | |
844 | Check your system clock]) | |
845 | fi | |
846 | AC_MSG_RESULT(yes)]) | |
847 | ||
848 | # Copyright (C) 2009 Free Software Foundation, Inc. | |
849 | # | |
850 | # This file is free software; the Free Software Foundation | |
851 | # gives unlimited permission to copy and/or distribute it, | |
852 | # with or without modifications, as long as this notice is preserved. | |
853 | ||
854 | # serial 1 | |
855 | ||
856 | # AM_SILENT_RULES([DEFAULT]) | |
857 | # -------------------------- | |
858 | # Enable less verbose build rules; with the default set to DEFAULT | |
859 | # (`yes' being less verbose, `no' or empty being verbose). | |
860 | AC_DEFUN([AM_SILENT_RULES], | |
861 | [AC_ARG_ENABLE([silent-rules], | |
862 | [ --enable-silent-rules less verbose build output (undo: `make V=1') | |
863 | --disable-silent-rules verbose build output (undo: `make V=0')]) | |
864 | case $enable_silent_rules in | |
865 | yes) AM_DEFAULT_VERBOSITY=0;; | |
866 | no) AM_DEFAULT_VERBOSITY=1;; | |
867 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
868 | esac | |
869 | AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
870 | AM_BACKSLASH='\' | |
871 | AC_SUBST([AM_BACKSLASH])dnl | |
872 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
873 | ]) | |
874 | ||
875 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
876 | # | |
877 | # This file is free software; the Free Software Foundation | |
878 | # gives unlimited permission to copy and/or distribute it, | |
879 | # with or without modifications, as long as this notice is preserved. | |
880 | ||
881 | # AM_PROG_INSTALL_STRIP | |
882 | # --------------------- | |
883 | # One issue with vendor `install' (even GNU) is that you can't | |
884 | # specify the program used to strip binaries. This is especially | |
885 | # annoying in cross-compiling environments, where the build's strip | |
886 | # is unlikely to handle the host's binaries. | |
887 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
888 | # always use install-sh in `make install-strip', and initialize | |
889 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
890 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
891 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
892 | # Installed binaries are usually stripped using `strip' when the user | |
893 | # run `make install-strip'. However `strip' might not be the right | |
894 | # tool to use in cross-compilation environments, therefore Automake | |
895 | # will honor the `STRIP' environment variable to overrule this program. | |
896 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
897 | if test "$cross_compiling" != no; then | |
898 | AC_CHECK_TOOL([STRIP], [strip], :) | |
899 | fi | |
900 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
901 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
902 | ||
903 | # Copyright (C) 2006, 2008 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 | # serial 2 | |
910 | ||
911 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
912 | # --------------------------- | |
913 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
914 | # This macro is traced by Automake. | |
915 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
916 | ||
917 | # AM_SUBST_NOTMAKE(VARIABLE) | |
918 | # --------------------------- | |
919 | # Public sister of _AM_SUBST_NOTMAKE. | |
920 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
921 | ||
922 | # Check how to create a tarball. -*- Autoconf -*- | |
923 | ||
924 | # Copyright (C) 2004, 2005 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 | # serial 2 | |
931 | ||
932 | # _AM_PROG_TAR(FORMAT) | |
933 | # -------------------- | |
934 | # Check how to create a tarball in format FORMAT. | |
935 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
936 | # | |
937 | # Substitute a variable $(am__tar) that is a command | |
938 | # writing to stdout a FORMAT-tarball containing the directory | |
939 | # $tardir. | |
940 | # tardir=directory && $(am__tar) > result.tar | |
941 | # | |
942 | # Substitute a variable $(am__untar) that extract such | |
943 | # a tarball read from stdin. | |
944 | # $(am__untar) < result.tar | |
945 | AC_DEFUN([_AM_PROG_TAR], | |
946 | [# Always define AMTAR for backward compatibility. | |
947 | AM_MISSING_PROG([AMTAR], [tar]) | |
948 | m4_if([$1], [v7], | |
949 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
950 | [m4_case([$1], [ustar],, [pax],, | |
951 | [m4_fatal([Unknown tar format])]) | |
952 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
953 | # Loop over all known methods to create a tar archive until one works. | |
954 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
955 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
956 | # Do not fold the above two line into one, because Tru64 sh and | |
957 | # Solaris sh will not grok spaces in the rhs of `-'. | |
958 | for _am_tool in $_am_tools | |
959 | do | |
960 | case $_am_tool in | |
961 | gnutar) | |
962 | for _am_tar in tar gnutar gtar; | |
963 | do | |
964 | AM_RUN_LOG([$_am_tar --version]) && break | |
965 | done | |
966 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
967 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
968 | am__untar="$_am_tar -xf -" | |
969 | ;; | |
970 | plaintar) | |
971 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
972 | # ustar tarball either. | |
973 | (tar --version) >/dev/null 2>&1 && continue | |
974 | am__tar='tar chf - "$$tardir"' | |
975 | am__tar_='tar chf - "$tardir"' | |
976 | am__untar='tar xf -' | |
977 | ;; | |
978 | pax) | |
979 | am__tar='pax -L -x $1 -w "$$tardir"' | |
980 | am__tar_='pax -L -x $1 -w "$tardir"' | |
981 | am__untar='pax -r' | |
982 | ;; | |
983 | cpio) | |
984 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
985 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
986 | am__untar='cpio -i -H $1 -d' | |
987 | ;; | |
988 | none) | |
989 | am__tar=false | |
990 | am__tar_=false | |
991 | am__untar=false | |
992 | ;; | |
993 | esac | |
994 | ||
995 | # If the value was cached, stop now. We just wanted to have am__tar | |
996 | # and am__untar set. | |
997 | test -n "${am_cv_prog_tar_$1}" && break | |
998 | ||
999 | # tar/untar a dummy directory, and stop if the command works | |
1000 | rm -rf conftest.dir | |
1001 | mkdir conftest.dir | |
1002 | echo GrepMe > conftest.dir/file | |
1003 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1004 | rm -rf conftest.dir | |
1005 | if test -s conftest.tar; then | |
1006 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1007 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1008 | fi | |
1009 | done | |
1010 | rm -rf conftest.dir | |
1011 | ||
1012 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1013 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1014 | AC_SUBST([am__tar]) | |
1015 | AC_SUBST([am__untar]) | |
1016 | ]) # _AM_PROG_TAR | |
1017 | ||
1018 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | |
1019 | # | |
1020 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
1021 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
1022 | # Inc. | |
1023 | # Written by Gordon Matzigkeit, 1996 | |
1024 | # | |
1025 | # This file is free software; the Free Software Foundation gives | |
1026 | # unlimited permission to copy and/or distribute it, with or without | |
1027 | # modifications, as long as this notice is preserved. | |
1028 | ||
1029 | m4_define([_LT_COPYING], [dnl | |
1030 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
1031 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
1032 | # Inc. | |
1033 | # Written by Gordon Matzigkeit, 1996 | |
1034 | # | |
1035 | # This file is part of GNU Libtool. | |
1036 | # | |
1037 | # GNU Libtool is free software; you can redistribute it and/or | |
1038 | # modify it under the terms of the GNU General Public License as | |
1039 | # published by the Free Software Foundation; either version 2 of | |
1040 | # the License, or (at your option) any later version. | |
1041 | # | |
1042 | # As a special exception to the GNU General Public License, | |
1043 | # if you distribute this file as part of a program or library that | |
1044 | # is built using GNU Libtool, you may include this file under the | |
1045 | # same distribution terms that you use for the rest of that program. | |
1046 | # | |
1047 | # GNU Libtool is distributed in the hope that it will be useful, | |
1048 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
1049 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
1050 | # GNU General Public License for more details. | |
1051 | # | |
1052 | # You should have received a copy of the GNU General Public License | |
1053 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
1054 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
1055 | # obtained by writing to the Free Software Foundation, Inc., | |
1056 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
1057 | ]) | |
1058 | ||
1059 | # serial 57 LT_INIT | |
1060 | ||
1061 | ||
1062 | # LT_PREREQ(VERSION) | |
1063 | # ------------------ | |
1064 | # Complain and exit if this libtool version is less that VERSION. | |
1065 | m4_defun([LT_PREREQ], | |
1066 | [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, | |
1067 | [m4_default([$3], | |
1068 | [m4_fatal([Libtool version $1 or higher is required], | |
1069 | 63)])], | |
1070 | [$2])]) | |
1071 | ||
1072 | ||
1073 | # _LT_CHECK_BUILDDIR | |
1074 | # ------------------ | |
1075 | # Complain if the absolute build directory name contains unusual characters | |
1076 | m4_defun([_LT_CHECK_BUILDDIR], | |
1077 | [case `pwd` in | |
1078 | *\ * | *\ *) | |
1079 | AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | |
1080 | esac | |
1081 | ]) | |
1082 | ||
1083 | ||
1084 | # LT_INIT([OPTIONS]) | |
1085 | # ------------------ | |
1086 | AC_DEFUN([LT_INIT], | |
1087 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | |
1088 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
1089 | AC_BEFORE([$0], [LT_LANG])dnl | |
1090 | AC_BEFORE([$0], [LT_OUTPUT])dnl | |
1091 | AC_BEFORE([$0], [LTDL_INIT])dnl | |
1092 | m4_require([_LT_CHECK_BUILDDIR])dnl | |
1093 | ||
1094 | dnl Autoconf doesn't catch unexpanded LT_ macros by default: | |
1095 | m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl | |
1096 | m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl | |
1097 | dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 | |
1098 | dnl unless we require an AC_DEFUNed macro: | |
1099 | AC_REQUIRE([LTOPTIONS_VERSION])dnl | |
1100 | AC_REQUIRE([LTSUGAR_VERSION])dnl | |
1101 | AC_REQUIRE([LTVERSION_VERSION])dnl | |
1102 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl | |
1103 | m4_require([_LT_PROG_LTMAIN])dnl | |
1104 | ||
1105 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | |
1106 | ||
1107 | dnl Parse OPTIONS | |
1108 | _LT_SET_OPTIONS([$0], [$1]) | |
1109 | ||
1110 | # This can be used to rebuild libtool when needed | |
1111 | LIBTOOL_DEPS="$ltmain" | |
1112 | ||
1113 | # Always use our own libtool. | |
1114 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
1115 | AC_SUBST(LIBTOOL)dnl | |
1116 | ||
1117 | _LT_SETUP | |
1118 | ||
1119 | # Only expand once: | |
1120 | m4_define([LT_INIT]) | |
1121 | ])# LT_INIT | |
1122 | ||
1123 | # Old names: | |
1124 | AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) | |
1125 | AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) | |
1126 | dnl aclocal-1.4 backwards compatibility: | |
1127 | dnl AC_DEFUN([AC_PROG_LIBTOOL], []) | |
1128 | dnl AC_DEFUN([AM_PROG_LIBTOOL], []) | |
1129 | ||
1130 | ||
1131 | # _LT_CC_BASENAME(CC) | |
1132 | # ------------------- | |
1133 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
1134 | m4_defun([_LT_CC_BASENAME], | |
1135 | [for cc_temp in $1""; do | |
1136 | case $cc_temp in | |
1137 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | |
1138 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | |
1139 | \-*) ;; | |
1140 | *) break;; | |
1141 | esac | |
1142 | done | |
1143 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
1144 | ]) | |
1145 | ||
1146 | ||
1147 | # _LT_FILEUTILS_DEFAULTS | |
1148 | # ---------------------- | |
1149 | # It is okay to use these file commands and assume they have been set | |
1150 | # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | |
1151 | m4_defun([_LT_FILEUTILS_DEFAULTS], | |
1152 | [: ${CP="cp -f"} | |
1153 | : ${MV="mv -f"} | |
1154 | : ${RM="rm -f"} | |
1155 | ])# _LT_FILEUTILS_DEFAULTS | |
1156 | ||
1157 | ||
1158 | # _LT_SETUP | |
1159 | # --------- | |
1160 | m4_defun([_LT_SETUP], | |
1161 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
1162 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
1163 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | |
1164 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | |
1165 | ||
1166 | _LT_DECL([], [host_alias], [0], [The host system])dnl | |
1167 | _LT_DECL([], [host], [0])dnl | |
1168 | _LT_DECL([], [host_os], [0])dnl | |
1169 | dnl | |
1170 | _LT_DECL([], [build_alias], [0], [The build system])dnl | |
1171 | _LT_DECL([], [build], [0])dnl | |
1172 | _LT_DECL([], [build_os], [0])dnl | |
1173 | dnl | |
1174 | AC_REQUIRE([AC_PROG_CC])dnl | |
1175 | AC_REQUIRE([LT_PATH_LD])dnl | |
1176 | AC_REQUIRE([LT_PATH_NM])dnl | |
1177 | dnl | |
1178 | AC_REQUIRE([AC_PROG_LN_S])dnl | |
1179 | test -z "$LN_S" && LN_S="ln -s" | |
1180 | _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl | |
1181 | dnl | |
1182 | AC_REQUIRE([LT_CMD_MAX_LEN])dnl | |
1183 | _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | |
1184 | _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | |
1185 | dnl | |
1186 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
1187 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
1188 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | |
1189 | m4_require([_LT_CMD_RELOAD])dnl | |
1190 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl | |
1191 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | |
1192 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl | |
1193 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
1194 | m4_require([_LT_WITH_SYSROOT])dnl | |
1195 | ||
1196 | _LT_CONFIG_LIBTOOL_INIT([ | |
1197 | # See if we are running on zsh, and set the options which allow our | |
1198 | # commands through without removal of \ escapes INIT. | |
1199 | if test -n "\${ZSH_VERSION+set}" ; then | |
1200 | setopt NO_GLOB_SUBST | |
1201 | fi | |
1202 | ]) | |
1203 | if test -n "${ZSH_VERSION+set}" ; then | |
1204 | setopt NO_GLOB_SUBST | |
1205 | fi | |
1206 | ||
1207 | _LT_CHECK_OBJDIR | |
1208 | ||
1209 | m4_require([_LT_TAG_COMPILER])dnl | |
1210 | ||
1211 | case $host_os in | |
1212 | aix3*) | |
1213 | # AIX sometimes has problems with the GCC collect2 program. For some | |
1214 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
1215 | # vanish in a puff of smoke. | |
1216 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
1217 | COLLECT_NAMES= | |
1218 | export COLLECT_NAMES | |
1219 | fi | |
1220 | ;; | |
1221 | esac | |
1222 | ||
1223 | # Global variables: | |
1224 | ofile=libtool | |
1225 | can_build_shared=yes | |
1226 | ||
1227 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
1228 | # which needs '.lib'). | |
1229 | libext=a | |
1230 | ||
1231 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
1232 | ||
1233 | old_CC="$CC" | |
1234 | old_CFLAGS="$CFLAGS" | |
1235 | ||
1236 | # Set sane defaults for various variables | |
1237 | test -z "$CC" && CC=cc | |
1238 | test -z "$LTCC" && LTCC=$CC | |
1239 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
1240 | test -z "$LD" && LD=ld | |
1241 | test -z "$ac_objext" && ac_objext=o | |
1242 | ||
1243 | _LT_CC_BASENAME([$compiler]) | |
1244 | ||
1245 | # Only perform the check for file, if the check method requires it | |
1246 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
1247 | case $deplibs_check_method in | |
1248 | file_magic*) | |
1249 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
1250 | _LT_PATH_MAGIC | |
1251 | fi | |
1252 | ;; | |
1253 | esac | |
1254 | ||
1255 | # Use C for the default configuration in the libtool script | |
1256 | LT_SUPPORTED_TAG([CC]) | |
1257 | _LT_LANG_C_CONFIG | |
1258 | _LT_LANG_DEFAULT_CONFIG | |
1259 | _LT_CONFIG_COMMANDS | |
1260 | ])# _LT_SETUP | |
1261 | ||
1262 | ||
1263 | # _LT_PREPARE_SED_QUOTE_VARS | |
1264 | # -------------------------- | |
1265 | # Define a few sed substitution that help us do robust quoting. | |
1266 | m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | |
1267 | [# Backslashify metacharacters that are still active within | |
1268 | # double-quoted strings. | |
1269 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | |
1270 | ||
1271 | # Same as above, but do not quote variable references. | |
1272 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' | |
1273 | ||
1274 | # Sed substitution to delay expansion of an escaped shell variable in a | |
1275 | # double_quote_subst'ed string. | |
1276 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
1277 | ||
1278 | # Sed substitution to delay expansion of an escaped single quote. | |
1279 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
1280 | ||
1281 | # Sed substitution to avoid accidental globbing in evaled expressions | |
1282 | no_glob_subst='s/\*/\\\*/g' | |
1283 | ]) | |
1284 | ||
1285 | # _LT_PROG_LTMAIN | |
1286 | # --------------- | |
1287 | # Note that this code is called both from `configure', and `config.status' | |
1288 | # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | |
1289 | # `config.status' has no value for ac_aux_dir unless we are using Automake, | |
1290 | # so we pass a copy along to make sure it has a sensible value anyway. | |
1291 | m4_defun([_LT_PROG_LTMAIN], | |
1292 | [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl | |
1293 | _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | |
1294 | ltmain="$ac_aux_dir/ltmain.sh" | |
1295 | ])# _LT_PROG_LTMAIN | |
1296 | ||
1297 | ||
1298 | ||
1299 | # So that we can recreate a full libtool script including additional | |
1300 | # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | |
1301 | # in macros and then make a single call at the end using the `libtool' | |
1302 | # label. | |
1303 | ||
1304 | ||
1305 | # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) | |
1306 | # ---------------------------------------- | |
1307 | # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
1308 | m4_define([_LT_CONFIG_LIBTOOL_INIT], | |
1309 | [m4_ifval([$1], | |
1310 | [m4_append([_LT_OUTPUT_LIBTOOL_INIT], | |
1311 | [$1 | |
1312 | ])])]) | |
1313 | ||
1314 | # Initialize. | |
1315 | m4_define([_LT_OUTPUT_LIBTOOL_INIT]) | |
1316 | ||
1317 | ||
1318 | # _LT_CONFIG_LIBTOOL([COMMANDS]) | |
1319 | # ------------------------------ | |
1320 | # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
1321 | m4_define([_LT_CONFIG_LIBTOOL], | |
1322 | [m4_ifval([$1], | |
1323 | [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], | |
1324 | [$1 | |
1325 | ])])]) | |
1326 | ||
1327 | # Initialize. | |
1328 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) | |
1329 | ||
1330 | ||
1331 | # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) | |
1332 | # ----------------------------------------------------- | |
1333 | m4_defun([_LT_CONFIG_SAVE_COMMANDS], | |
1334 | [_LT_CONFIG_LIBTOOL([$1]) | |
1335 | _LT_CONFIG_LIBTOOL_INIT([$2]) | |
1336 | ]) | |
1337 | ||
1338 | ||
1339 | # _LT_FORMAT_COMMENT([COMMENT]) | |
1340 | # ----------------------------- | |
1341 | # Add leading comment marks to the start of each line, and a trailing | |
1342 | # full-stop to the whole comment if one is not present already. | |
1343 | m4_define([_LT_FORMAT_COMMENT], | |
1344 | [m4_ifval([$1], [ | |
1345 | m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], | |
1346 | [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) | |
1347 | )]) | |
1348 | ||
1349 | ||
1350 | ||
1351 | ||
1352 | ||
1353 | # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) | |
1354 | # ------------------------------------------------------------------- | |
1355 | # CONFIGNAME is the name given to the value in the libtool script. | |
1356 | # VARNAME is the (base) name used in the configure script. | |
1357 | # VALUE may be 0, 1 or 2 for a computed quote escaped value based on | |
1358 | # VARNAME. Any other value will be used directly. | |
1359 | m4_define([_LT_DECL], | |
1360 | [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], | |
1361 | [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], | |
1362 | [m4_ifval([$1], [$1], [$2])]) | |
1363 | lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) | |
1364 | m4_ifval([$4], | |
1365 | [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) | |
1366 | lt_dict_add_subkey([lt_decl_dict], [$2], | |
1367 | [tagged?], [m4_ifval([$5], [yes], [no])])]) | |
1368 | ]) | |
1369 | ||
1370 | ||
1371 | # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | |
1372 | # -------------------------------------------------------- | |
1373 | m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) | |
1374 | ||
1375 | ||
1376 | # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | |
1377 | # ------------------------------------------------ | |
1378 | m4_define([lt_decl_tag_varnames], | |
1379 | [_lt_decl_filter([tagged?], [yes], $@)]) | |
1380 | ||
1381 | ||
1382 | # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) | |
1383 | # --------------------------------------------------------- | |
1384 | m4_define([_lt_decl_filter], | |
1385 | [m4_case([$#], | |
1386 | [0], [m4_fatal([$0: too few arguments: $#])], | |
1387 | [1], [m4_fatal([$0: too few arguments: $#: $1])], | |
1388 | [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], | |
1389 | [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], | |
1390 | [lt_dict_filter([lt_decl_dict], $@)])[]dnl | |
1391 | ]) | |
1392 | ||
1393 | ||
1394 | # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) | |
1395 | # -------------------------------------------------- | |
1396 | m4_define([lt_decl_quote_varnames], | |
1397 | [_lt_decl_filter([value], [1], $@)]) | |
1398 | ||
1399 | ||
1400 | # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) | |
1401 | # --------------------------------------------------- | |
1402 | m4_define([lt_decl_dquote_varnames], | |
1403 | [_lt_decl_filter([value], [2], $@)]) | |
1404 | ||
1405 | ||
1406 | # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) | |
1407 | # --------------------------------------------------- | |
1408 | m4_define([lt_decl_varnames_tagged], | |
1409 | [m4_assert([$# <= 2])dnl | |
1410 | _$0(m4_quote(m4_default([$1], [[, ]])), | |
1411 | m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), | |
1412 | m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) | |
1413 | m4_define([_lt_decl_varnames_tagged], | |
1414 | [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) | |
1415 | ||
1416 | ||
1417 | # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) | |
1418 | # ------------------------------------------------ | |
1419 | m4_define([lt_decl_all_varnames], | |
1420 | [_$0(m4_quote(m4_default([$1], [[, ]])), | |
1421 | m4_if([$2], [], | |
1422 | m4_quote(lt_decl_varnames), | |
1423 | m4_quote(m4_shift($@))))[]dnl | |
1424 | ]) | |
1425 | m4_define([_lt_decl_all_varnames], | |
1426 | [lt_join($@, lt_decl_varnames_tagged([$1], | |
1427 | lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | |
1428 | ]) | |
1429 | ||
1430 | ||
1431 | # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | |
1432 | # ------------------------------------ | |
1433 | # Quote a variable value, and forward it to `config.status' so that its | |
1434 | # declaration there will have the same value as in `configure'. VARNAME | |
1435 | # must have a single quote delimited value for this to work. | |
1436 | m4_define([_LT_CONFIG_STATUS_DECLARE], | |
1437 | [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) | |
1438 | ||
1439 | ||
1440 | # _LT_CONFIG_STATUS_DECLARATIONS | |
1441 | # ------------------------------ | |
1442 | # We delimit libtool config variables with single quotes, so when | |
1443 | # we write them to config.status, we have to be sure to quote all | |
1444 | # embedded single quotes properly. In configure, this macro expands | |
1445 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | |
1446 | # | |
1447 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | |
1448 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | |
1449 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | |
1450 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | |
1451 | ||
1452 | ||
1453 | # _LT_LIBTOOL_TAGS | |
1454 | # ---------------- | |
1455 | # Output comment and list of tags supported by the script | |
1456 | m4_defun([_LT_LIBTOOL_TAGS], | |
1457 | [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl | |
1458 | available_tags="_LT_TAGS"dnl | |
1459 | ]) | |
1460 | ||
1461 | ||
1462 | # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | |
1463 | # ----------------------------------- | |
1464 | # Extract the dictionary values for VARNAME (optionally with TAG) and | |
1465 | # expand to a commented shell variable setting: | |
1466 | # | |
1467 | # # Some comment about what VAR is for. | |
1468 | # visible_name=$lt_internal_name | |
1469 | m4_define([_LT_LIBTOOL_DECLARE], | |
1470 | [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], | |
1471 | [description])))[]dnl | |
1472 | m4_pushdef([_libtool_name], | |
1473 | m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl | |
1474 | m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), | |
1475 | [0], [_libtool_name=[$]$1], | |
1476 | [1], [_libtool_name=$lt_[]$1], | |
1477 | [2], [_libtool_name=$lt_[]$1], | |
1478 | [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl | |
1479 | m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl | |
1480 | ]) | |
1481 | ||
1482 | ||
1483 | # _LT_LIBTOOL_CONFIG_VARS | |
1484 | # ----------------------- | |
1485 | # Produce commented declarations of non-tagged libtool config variables | |
1486 | # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | |
1487 | # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | |
1488 | # section) are produced by _LT_LIBTOOL_TAG_VARS. | |
1489 | m4_defun([_LT_LIBTOOL_CONFIG_VARS], | |
1490 | [m4_foreach([_lt_var], | |
1491 | m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), | |
1492 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) | |
1493 | ||
1494 | ||
1495 | # _LT_LIBTOOL_TAG_VARS(TAG) | |
1496 | # ------------------------- | |
1497 | m4_define([_LT_LIBTOOL_TAG_VARS], | |
1498 | [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), | |
1499 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) | |
1500 | ||
1501 | ||
1502 | # _LT_TAGVAR(VARNAME, [TAGNAME]) | |
1503 | # ------------------------------ | |
1504 | m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) | |
1505 | ||
1506 | ||
1507 | # _LT_CONFIG_COMMANDS | |
1508 | # ------------------- | |
1509 | # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | |
1510 | # variables for single and double quote escaping we saved from calls | |
1511 | # to _LT_DECL, we can put quote escaped variables declarations | |
1512 | # into `config.status', and then the shell code to quote escape them in | |
1513 | # for loops in `config.status'. Finally, any additional code accumulated | |
1514 | # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | |
1515 | m4_defun([_LT_CONFIG_COMMANDS], | |
1516 | [AC_PROVIDE_IFELSE([LT_OUTPUT], | |
1517 | dnl If the libtool generation code has been placed in $CONFIG_LT, | |
1518 | dnl instead of duplicating it all over again into config.status, | |
1519 | dnl then we will have config.status run $CONFIG_LT later, so it | |
1520 | dnl needs to know what name is stored there: | |
1521 | [AC_CONFIG_COMMANDS([libtool], | |
1522 | [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], | |
1523 | dnl If the libtool generation code is destined for config.status, | |
1524 | dnl expand the accumulated commands and init code now: | |
1525 | [AC_CONFIG_COMMANDS([libtool], | |
1526 | [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) | |
1527 | ])#_LT_CONFIG_COMMANDS | |
1528 | ||
1529 | ||
1530 | # Initialize. | |
1531 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], | |
1532 | [ | |
1533 | ||
1534 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
1535 | # if CDPATH is set. | |
1536 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
1537 | ||
1538 | sed_quote_subst='$sed_quote_subst' | |
1539 | double_quote_subst='$double_quote_subst' | |
1540 | delay_variable_subst='$delay_variable_subst' | |
1541 | _LT_CONFIG_STATUS_DECLARATIONS | |
1542 | LTCC='$LTCC' | |
1543 | LTCFLAGS='$LTCFLAGS' | |
1544 | compiler='$compiler_DEFAULT' | |
1545 | ||
1546 | # A function that is used when there is no print builtin or printf. | |
1547 | func_fallback_echo () | |
1548 | { | |
1549 | eval 'cat <<_LTECHO_EOF | |
1550 | \$[]1 | |
1551 | _LTECHO_EOF' | |
1552 | } | |
1553 | ||
1554 | # Quote evaled strings. | |
1555 | for var in lt_decl_all_varnames([[ \ | |
1556 | ]], lt_decl_quote_varnames); do | |
1557 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
1558 | *[[\\\\\\\`\\"\\\$]]*) | |
1559 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
1560 | ;; | |
1561 | *) | |
1562 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
1563 | ;; | |
1564 | esac | |
1565 | done | |
1566 | ||
1567 | # Double-quote double-evaled strings. | |
1568 | for var in lt_decl_all_varnames([[ \ | |
1569 | ]], lt_decl_dquote_varnames); do | |
1570 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
1571 | *[[\\\\\\\`\\"\\\$]]*) | |
1572 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
1573 | ;; | |
1574 | *) | |
1575 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
1576 | ;; | |
1577 | esac | |
1578 | done | |
1579 | ||
1580 | _LT_OUTPUT_LIBTOOL_INIT | |
1581 | ]) | |
1582 | ||
1583 | # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | |
1584 | # ------------------------------------ | |
1585 | # Generate a child script FILE with all initialization necessary to | |
1586 | # reuse the environment learned by the parent script, and make the | |
1587 | # file executable. If COMMENT is supplied, it is inserted after the | |
1588 | # `#!' sequence but before initialization text begins. After this | |
1589 | # macro, additional text can be appended to FILE to form the body of | |
1590 | # the child script. The macro ends with non-zero status if the | |
1591 | # file could not be fully written (such as if the disk is full). | |
1592 | m4_ifdef([AS_INIT_GENERATED], | |
1593 | [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | |
1594 | [m4_defun([_LT_GENERATED_FILE_INIT], | |
1595 | [m4_require([AS_PREPARE])]dnl | |
1596 | [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | |
1597 | [lt_write_fail=0 | |
1598 | cat >$1 <<_ASEOF || lt_write_fail=1 | |
1599 | #! $SHELL | |
1600 | # Generated by $as_me. | |
1601 | $2 | |
1602 | SHELL=\${CONFIG_SHELL-$SHELL} | |
1603 | export SHELL | |
1604 | _ASEOF | |
1605 | cat >>$1 <<\_ASEOF || lt_write_fail=1 | |
1606 | AS_SHELL_SANITIZE | |
1607 | _AS_PREPARE | |
1608 | exec AS_MESSAGE_FD>&1 | |
1609 | _ASEOF | |
1610 | test $lt_write_fail = 0 && chmod +x $1[]dnl | |
1611 | m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | |
1612 | ||
1613 | # LT_OUTPUT | |
1614 | # --------- | |
1615 | # This macro allows early generation of the libtool script (before | |
1616 | # AC_OUTPUT is called), incase it is used in configure for compilation | |
1617 | # tests. | |
1618 | AC_DEFUN([LT_OUTPUT], | |
1619 | [: ${CONFIG_LT=./config.lt} | |
1620 | AC_MSG_NOTICE([creating $CONFIG_LT]) | |
1621 | _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], | |
1622 | [# Run this file to recreate a libtool stub with the current configuration.]) | |
1623 | ||
1624 | cat >>"$CONFIG_LT" <<\_LTEOF | |
1625 | lt_cl_silent=false | |
1626 | exec AS_MESSAGE_LOG_FD>>config.log | |
1627 | { | |
1628 | echo | |
1629 | AS_BOX([Running $as_me.]) | |
1630 | } >&AS_MESSAGE_LOG_FD | |
1631 | ||
1632 | lt_cl_help="\ | |
1633 | \`$as_me' creates a local libtool stub from the current configuration, | |
1634 | for use in further configure time tests before the real libtool is | |
1635 | generated. | |
1636 | ||
1637 | Usage: $[0] [[OPTIONS]] | |
1638 | ||
1639 | -h, --help print this help, then exit | |
1640 | -V, --version print version number, then exit | |
1641 | -q, --quiet do not print progress messages | |
1642 | -d, --debug don't remove temporary files | |
1643 | ||
1644 | Report bugs to <bug-libtool@gnu.org>." | |
1645 | ||
1646 | lt_cl_version="\ | |
1647 | m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | |
1648 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | |
1649 | configured by $[0], generated by m4_PACKAGE_STRING. | |
1650 | ||
1651 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1652 | This config.lt script is free software; the Free Software Foundation | |
1653 | gives unlimited permision to copy, distribute and modify it." | |
1654 | ||
1655 | while test $[#] != 0 | |
1656 | do | |
1657 | case $[1] in | |
1658 | --version | --v* | -V ) | |
1659 | echo "$lt_cl_version"; exit 0 ;; | |
1660 | --help | --h* | -h ) | |
1661 | echo "$lt_cl_help"; exit 0 ;; | |
1662 | --debug | --d* | -d ) | |
1663 | debug=: ;; | |
1664 | --quiet | --q* | --silent | --s* | -q ) | |
1665 | lt_cl_silent=: ;; | |
1666 | ||
1667 | -*) AC_MSG_ERROR([unrecognized option: $[1] | |
1668 | Try \`$[0] --help' for more information.]) ;; | |
1669 | ||
1670 | *) AC_MSG_ERROR([unrecognized argument: $[1] | |
1671 | Try \`$[0] --help' for more information.]) ;; | |
1672 | esac | |
1673 | shift | |
1674 | done | |
1675 | ||
1676 | if $lt_cl_silent; then | |
1677 | exec AS_MESSAGE_FD>/dev/null | |
1678 | fi | |
1679 | _LTEOF | |
1680 | ||
1681 | cat >>"$CONFIG_LT" <<_LTEOF | |
1682 | _LT_OUTPUT_LIBTOOL_COMMANDS_INIT | |
1683 | _LTEOF | |
1684 | ||
1685 | cat >>"$CONFIG_LT" <<\_LTEOF | |
1686 | AC_MSG_NOTICE([creating $ofile]) | |
1687 | _LT_OUTPUT_LIBTOOL_COMMANDS | |
1688 | AS_EXIT(0) | |
1689 | _LTEOF | |
1690 | chmod +x "$CONFIG_LT" | |
1691 | ||
1692 | # configure is writing to config.log, but config.lt does its own redirection, | |
1693 | # appending to config.log, which fails on DOS, as config.log is still kept | |
1694 | # open by configure. Here we exec the FD to /dev/null, effectively closing | |
1695 | # config.log, so it can be properly (re)opened and appended to by config.lt. | |
1696 | lt_cl_success=: | |
1697 | test "$silent" = yes && | |
1698 | lt_config_lt_args="$lt_config_lt_args --quiet" | |
1699 | exec AS_MESSAGE_LOG_FD>/dev/null | |
1700 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | |
1701 | exec AS_MESSAGE_LOG_FD>>config.log | |
1702 | $lt_cl_success || AS_EXIT(1) | |
1703 | ])# LT_OUTPUT | |
1704 | ||
1705 | ||
1706 | # _LT_CONFIG(TAG) | |
1707 | # --------------- | |
1708 | # If TAG is the built-in tag, create an initial libtool script with a | |
1709 | # default configuration from the untagged config vars. Otherwise add code | |
1710 | # to config.status for appending the configuration named by TAG from the | |
1711 | # matching tagged config vars. | |
1712 | m4_defun([_LT_CONFIG], | |
1713 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
1714 | _LT_CONFIG_SAVE_COMMANDS([ | |
1715 | m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl | |
1716 | m4_if(_LT_TAG, [C], [ | |
1717 | # See if we are running on zsh, and set the options which allow our | |
1718 | # commands through without removal of \ escapes. | |
1719 | if test -n "${ZSH_VERSION+set}" ; then | |
1720 | setopt NO_GLOB_SUBST | |
1721 | fi | |
1722 | ||
1723 | cfgfile="${ofile}T" | |
1724 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
1725 | $RM "$cfgfile" | |
1726 | ||
1727 | cat <<_LT_EOF >> "$cfgfile" | |
1728 | #! $SHELL | |
1729 | ||
1730 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
1731 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
1732 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
1733 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
1734 | # | |
1735 | _LT_COPYING | |
1736 | _LT_LIBTOOL_TAGS | |
1737 | ||
1738 | # ### BEGIN LIBTOOL CONFIG | |
1739 | _LT_LIBTOOL_CONFIG_VARS | |
1740 | _LT_LIBTOOL_TAG_VARS | |
1741 | # ### END LIBTOOL CONFIG | |
1742 | ||
1743 | _LT_EOF | |
1744 | ||
1745 | case $host_os in | |
1746 | aix3*) | |
1747 | cat <<\_LT_EOF >> "$cfgfile" | |
1748 | # AIX sometimes has problems with the GCC collect2 program. For some | |
1749 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
1750 | # vanish in a puff of smoke. | |
1751 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
1752 | COLLECT_NAMES= | |
1753 | export COLLECT_NAMES | |
1754 | fi | |
1755 | _LT_EOF | |
1756 | ;; | |
1757 | esac | |
1758 | ||
1759 | _LT_PROG_LTMAIN | |
1760 | ||
1761 | # We use sed instead of cat because bash on DJGPP gets confused if | |
1762 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
1763 | # text mode, it properly converts lines to CR/LF. This bash problem | |
1764 | # is reportedly fixed, but why not run on old versions too? | |
1765 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
1766 | || (rm -f "$cfgfile"; exit 1) | |
1767 | ||
1768 | _LT_PROG_REPLACE_SHELLFNS | |
1769 | ||
1770 | mv -f "$cfgfile" "$ofile" || | |
1771 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
1772 | chmod +x "$ofile" | |
1773 | ], | |
1774 | [cat <<_LT_EOF >> "$ofile" | |
1775 | ||
1776 | dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | |
1777 | dnl in a comment (ie after a #). | |
1778 | # ### BEGIN LIBTOOL TAG CONFIG: $1 | |
1779 | _LT_LIBTOOL_TAG_VARS(_LT_TAG) | |
1780 | # ### END LIBTOOL TAG CONFIG: $1 | |
1781 | _LT_EOF | |
1782 | ])dnl /m4_if | |
1783 | ], | |
1784 | [m4_if([$1], [], [ | |
1785 | PACKAGE='$PACKAGE' | |
1786 | VERSION='$VERSION' | |
1787 | TIMESTAMP='$TIMESTAMP' | |
1788 | RM='$RM' | |
1789 | ofile='$ofile'], []) | |
1790 | ])dnl /_LT_CONFIG_SAVE_COMMANDS | |
1791 | ])# _LT_CONFIG | |
1792 | ||
1793 | ||
1794 | # LT_SUPPORTED_TAG(TAG) | |
1795 | # --------------------- | |
1796 | # Trace this macro to discover what tags are supported by the libtool | |
1797 | # --tag option, using: | |
1798 | # autoconf --trace 'LT_SUPPORTED_TAG:$1' | |
1799 | AC_DEFUN([LT_SUPPORTED_TAG], []) | |
1800 | ||
1801 | ||
1802 | # C support is built-in for now | |
1803 | m4_define([_LT_LANG_C_enabled], []) | |
1804 | m4_define([_LT_TAGS], []) | |
1805 | ||
1806 | ||
1807 | # LT_LANG(LANG) | |
1808 | # ------------- | |
1809 | # Enable libtool support for the given language if not already enabled. | |
1810 | AC_DEFUN([LT_LANG], | |
1811 | [AC_BEFORE([$0], [LT_OUTPUT])dnl | |
1812 | m4_case([$1], | |
1813 | [C], [_LT_LANG(C)], | |
1814 | [C++], [_LT_LANG(CXX)], | |
1815 | [Java], [_LT_LANG(GCJ)], | |
1816 | [Fortran 77], [_LT_LANG(F77)], | |
1817 | [Fortran], [_LT_LANG(FC)], | |
1818 | [Windows Resource], [_LT_LANG(RC)], | |
1819 | [m4_ifdef([_LT_LANG_]$1[_CONFIG], | |
1820 | [_LT_LANG($1)], | |
1821 | [m4_fatal([$0: unsupported language: "$1"])])])dnl | |
1822 | ])# LT_LANG | |
1823 | ||
1824 | ||
1825 | # _LT_LANG(LANGNAME) | |
1826 | # ------------------ | |
1827 | m4_defun([_LT_LANG], | |
1828 | [m4_ifdef([_LT_LANG_]$1[_enabled], [], | |
1829 | [LT_SUPPORTED_TAG([$1])dnl | |
1830 | m4_append([_LT_TAGS], [$1 ])dnl | |
1831 | m4_define([_LT_LANG_]$1[_enabled], [])dnl | |
1832 | _LT_LANG_$1_CONFIG($1)])dnl | |
1833 | ])# _LT_LANG | |
1834 | ||
1835 | ||
1836 | # _LT_LANG_DEFAULT_CONFIG | |
1837 | # ----------------------- | |
1838 | m4_defun([_LT_LANG_DEFAULT_CONFIG], | |
1839 | [AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
1840 | [LT_LANG(CXX)], | |
1841 | [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) | |
1842 | ||
1843 | AC_PROVIDE_IFELSE([AC_PROG_F77], | |
1844 | [LT_LANG(F77)], | |
1845 | [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) | |
1846 | ||
1847 | AC_PROVIDE_IFELSE([AC_PROG_FC], | |
1848 | [LT_LANG(FC)], | |
1849 | [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) | |
1850 | ||
1851 | dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal | |
1852 | dnl pulling things in needlessly. | |
1853 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], | |
1854 | [LT_LANG(GCJ)], | |
1855 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | |
1856 | [LT_LANG(GCJ)], | |
1857 | [AC_PROVIDE_IFELSE([LT_PROG_GCJ], | |
1858 | [LT_LANG(GCJ)], | |
1859 | [m4_ifdef([AC_PROG_GCJ], | |
1860 | [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) | |
1861 | m4_ifdef([A][M_PROG_GCJ], | |
1862 | [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) | |
1863 | m4_ifdef([LT_PROG_GCJ], | |
1864 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | |
1865 | ||
1866 | AC_PROVIDE_IFELSE([LT_PROG_RC], | |
1867 | [LT_LANG(RC)], | |
1868 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | |
1869 | ])# _LT_LANG_DEFAULT_CONFIG | |
1870 | ||
1871 | # Obsolete macros: | |
1872 | AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | |
1873 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | |
1874 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | |
1875 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | |
1876 | AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | |
1877 | dnl aclocal-1.4 backwards compatibility: | |
1878 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | |
1879 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) | |
1880 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) | |
1881 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | |
1882 | dnl AC_DEFUN([AC_LIBTOOL_RC], []) | |
1883 | ||
1884 | ||
1885 | # _LT_TAG_COMPILER | |
1886 | # ---------------- | |
1887 | m4_defun([_LT_TAG_COMPILER], | |
1888 | [AC_REQUIRE([AC_PROG_CC])dnl | |
1889 | ||
1890 | _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | |
1891 | _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | |
1892 | _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | |
1893 | _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl | |
1894 | ||
1895 | # If no C compiler was specified, use CC. | |
1896 | LTCC=${LTCC-"$CC"} | |
1897 | ||
1898 | # If no C compiler flags were specified, use CFLAGS. | |
1899 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
1900 | ||
1901 | # Allow CC to be a program name with arguments. | |
1902 | compiler=$CC | |
1903 | ])# _LT_TAG_COMPILER | |
1904 | ||
1905 | ||
1906 | # _LT_COMPILER_BOILERPLATE | |
1907 | # ------------------------ | |
1908 | # Check for compiler boilerplate output or warnings with | |
1909 | # the simple compiler test code. | |
1910 | m4_defun([_LT_COMPILER_BOILERPLATE], | |
1911 | [m4_require([_LT_DECL_SED])dnl | |
1912 | ac_outfile=conftest.$ac_objext | |
1913 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
1914 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
1915 | _lt_compiler_boilerplate=`cat conftest.err` | |
1916 | $RM conftest* | |
1917 | ])# _LT_COMPILER_BOILERPLATE | |
1918 | ||
1919 | ||
1920 | # _LT_LINKER_BOILERPLATE | |
1921 | # ---------------------- | |
1922 | # Check for linker boilerplate output or warnings with | |
1923 | # the simple link test code. | |
1924 | m4_defun([_LT_LINKER_BOILERPLATE], | |
1925 | [m4_require([_LT_DECL_SED])dnl | |
1926 | ac_outfile=conftest.$ac_objext | |
1927 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
1928 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
1929 | _lt_linker_boilerplate=`cat conftest.err` | |
1930 | $RM -r conftest* | |
1931 | ])# _LT_LINKER_BOILERPLATE | |
1932 | ||
1933 | # _LT_REQUIRED_DARWIN_CHECKS | |
1934 | # ------------------------- | |
1935 | m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | |
1936 | case $host_os in | |
1937 | rhapsody* | darwin*) | |
1938 | AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) | |
1939 | AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) | |
1940 | AC_CHECK_TOOL([LIPO], [lipo], [:]) | |
1941 | AC_CHECK_TOOL([OTOOL], [otool], [:]) | |
1942 | AC_CHECK_TOOL([OTOOL64], [otool64], [:]) | |
1943 | _LT_DECL([], [DSYMUTIL], [1], | |
1944 | [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) | |
1945 | _LT_DECL([], [NMEDIT], [1], | |
1946 | [Tool to change global to local symbols on Mac OS X]) | |
1947 | _LT_DECL([], [LIPO], [1], | |
1948 | [Tool to manipulate fat objects and archives on Mac OS X]) | |
1949 | _LT_DECL([], [OTOOL], [1], | |
1950 | [ldd/readelf like tool for Mach-O binaries on Mac OS X]) | |
1951 | _LT_DECL([], [OTOOL64], [1], | |
1952 | [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) | |
1953 | ||
1954 | AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], | |
1955 | [lt_cv_apple_cc_single_mod=no | |
1956 | if test -z "${LT_MULTI_MODULE}"; then | |
1957 | # By default we will add the -single_module flag. You can override | |
1958 | # by either setting the environment variable LT_MULTI_MODULE | |
1959 | # non-empty at configure time, or by adding -multi_module to the | |
1960 | # link flags. | |
1961 | rm -rf libconftest.dylib* | |
1962 | echo "int foo(void){return 1;}" > conftest.c | |
1963 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
1964 | -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD | |
1965 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
1966 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
1967 | _lt_result=$? | |
1968 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
1969 | lt_cv_apple_cc_single_mod=yes | |
1970 | else | |
1971 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
1972 | fi | |
1973 | rm -rf libconftest.dylib* | |
1974 | rm -f conftest.* | |
1975 | fi]) | |
1976 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], | |
1977 | [lt_cv_ld_exported_symbols_list], | |
1978 | [lt_cv_ld_exported_symbols_list=no | |
1979 | save_LDFLAGS=$LDFLAGS | |
1980 | echo "_main" > conftest.sym | |
1981 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
1982 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
1983 | [lt_cv_ld_exported_symbols_list=yes], | |
1984 | [lt_cv_ld_exported_symbols_list=no]) | |
1985 | LDFLAGS="$save_LDFLAGS" | |
1986 | ]) | |
1987 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | |
1988 | [lt_cv_ld_force_load=no | |
1989 | cat > conftest.c << _LT_EOF | |
1990 | int forced_loaded() { return 2;} | |
1991 | _LT_EOF | |
1992 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | |
1993 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | |
1994 | echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | |
1995 | $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | |
1996 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | |
1997 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | |
1998 | cat > conftest.c << _LT_EOF | |
1999 | int main() { return 0;} | |
2000 | _LT_EOF | |
2001 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | |
2002 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
2003 | _lt_result=$? | |
2004 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
2005 | lt_cv_ld_force_load=yes | |
2006 | else | |
2007 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
2008 | fi | |
2009 | rm -f conftest.err libconftest.a conftest conftest.c | |
2010 | rm -rf conftest.dSYM | |
2011 | ]) | |
2012 | case $host_os in | |
2013 | rhapsody* | darwin1.[[012]]) | |
2014 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
2015 | darwin1.*) | |
2016 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
2017 | darwin*) # darwin 5.x on | |
2018 | # if running on 10.5 or later, the deployment target defaults | |
2019 | # to the OS version, if on x86, and 10.4, the deployment | |
2020 | # target defaults to 10.4. Don't you love it? | |
2021 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
2022 | 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) | |
2023 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
2024 | 10.[[012]]*) | |
2025 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
2026 | 10.*) | |
2027 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
2028 | esac | |
2029 | ;; | |
2030 | esac | |
2031 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
2032 | _lt_dar_single_mod='$single_module' | |
2033 | fi | |
2034 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
2035 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
2036 | else | |
2037 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
2038 | fi | |
2039 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
2040 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
2041 | else | |
2042 | _lt_dsymutil= | |
2043 | fi | |
2044 | ;; | |
2045 | esac | |
2046 | ]) | |
2047 | ||
2048 | ||
2049 | # _LT_DARWIN_LINKER_FEATURES | |
2050 | # -------------------------- | |
2051 | # Checks for linker and compiler features on darwin | |
2052 | m4_defun([_LT_DARWIN_LINKER_FEATURES], | |
2053 | [ | |
2054 | m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | |
2055 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
2056 | _LT_TAGVAR(hardcode_direct, $1)=no | |
2057 | _LT_TAGVAR(hardcode_automatic, $1)=yes | |
2058 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
2059 | if test "$lt_cv_ld_force_load" = "yes"; then | |
2060 | _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\"`' | |
2061 | else | |
2062 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | |
2063 | fi | |
2064 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
2065 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | |
2066 | case $cc_basename in | |
2067 | ifort*) _lt_dar_can_shared=yes ;; | |
2068 | *) _lt_dar_can_shared=$GCC ;; | |
2069 | esac | |
2070 | if test "$_lt_dar_can_shared" = "yes"; then | |
2071 | output_verbose_link_cmd=func_echo_all | |
2072 | _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}" | |
2073 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
2074 | _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}" | |
2075 | _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}" | |
2076 | m4_if([$1], [CXX], | |
2077 | [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
2078 | _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}" | |
2079 | _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}" | |
2080 | fi | |
2081 | ],[]) | |
2082 | else | |
2083 | _LT_TAGVAR(ld_shlibs, $1)=no | |
2084 | fi | |
2085 | ]) | |
2086 | ||
2087 | # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | |
2088 | # ---------------------------------- | |
2089 | # Links a minimal program and checks the executable | |
2090 | # for the system default hardcoded library path. In most cases, | |
2091 | # this is /usr/lib:/lib, but when the MPI compilers are used | |
2092 | # the location of the communication and MPI libs are included too. | |
2093 | # If we don't find anything, use the default library path according | |
2094 | # to the aix ld manual. | |
2095 | # Store the results from the different compilers for each TAGNAME. | |
2096 | # Allow to override them for all tags through lt_cv_aix_libpath. | |
2097 | m4_defun([_LT_SYS_MODULE_PATH_AIX], | |
2098 | [m4_require([_LT_DECL_SED])dnl | |
2099 | if test "${lt_cv_aix_libpath+set}" = set; then | |
2100 | aix_libpath=$lt_cv_aix_libpath | |
2101 | else | |
2102 | AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], | |
2103 | [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ | |
2104 | lt_aix_libpath_sed='[ | |
2105 | /Import File Strings/,/^$/ { | |
2106 | /^0/ { | |
2107 | s/^0 *\([^ ]*\) *$/\1/ | |
2108 | p | |
2109 | } | |
2110 | }]' | |
2111 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
2112 | # Check for a 64-bit object if we didn't find anything. | |
2113 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | |
2114 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
2115 | fi],[]) | |
2116 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | |
2117 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" | |
2118 | fi | |
2119 | ]) | |
2120 | aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) | |
2121 | fi | |
2122 | ])# _LT_SYS_MODULE_PATH_AIX | |
2123 | ||
2124 | ||
2125 | # _LT_SHELL_INIT(ARG) | |
2126 | # ------------------- | |
2127 | m4_define([_LT_SHELL_INIT], | |
2128 | [m4_divert_text([M4SH-INIT], [$1 | |
2129 | ])])# _LT_SHELL_INIT | |
2130 | ||
2131 | ||
2132 | ||
2133 | # _LT_PROG_ECHO_BACKSLASH | |
2134 | # ----------------------- | |
2135 | # Find how we can fake an echo command that does not interpret backslash. | |
2136 | # In particular, with Autoconf 2.60 or later we add some code to the start | |
2137 | # of the generated configure script which will find a shell with a builtin | |
2138 | # printf (which we can use as an echo command). | |
2139 | m4_defun([_LT_PROG_ECHO_BACKSLASH], | |
2140 | [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
2141 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
2142 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
2143 | ||
2144 | AC_MSG_CHECKING([how to print strings]) | |
2145 | # Test print first, because it will be a builtin if present. | |
2146 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
2147 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
2148 | ECHO='print -r --' | |
2149 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
2150 | ECHO='printf %s\n' | |
2151 | else | |
2152 | # Use this function as a fallback that always works. | |
2153 | func_fallback_echo () | |
2154 | { | |
2155 | eval 'cat <<_LTECHO_EOF | |
2156 | $[]1 | |
2157 | _LTECHO_EOF' | |
2158 | } | |
2159 | ECHO='func_fallback_echo' | |
2160 | fi | |
2161 | ||
2162 | # func_echo_all arg... | |
2163 | # Invoke $ECHO with all args, space-separated. | |
2164 | func_echo_all () | |
2165 | { | |
2166 | $ECHO "$*" | |
2167 | } | |
2168 | ||
2169 | case "$ECHO" in | |
2170 | printf*) AC_MSG_RESULT([printf]) ;; | |
2171 | print*) AC_MSG_RESULT([print -r]) ;; | |
2172 | *) AC_MSG_RESULT([cat]) ;; | |
2173 | esac | |
2174 | ||
2175 | m4_ifdef([_AS_DETECT_SUGGESTED], | |
2176 | [_AS_DETECT_SUGGESTED([ | |
2177 | test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( | |
2178 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
2179 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
2180 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
2181 | PATH=/empty FPATH=/empty; export PATH FPATH | |
2182 | test "X`printf %s $ECHO`" = "X$ECHO" \ | |
2183 | || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) | |
2184 | ||
2185 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | |
2186 | _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | |
2187 | ])# _LT_PROG_ECHO_BACKSLASH | |
2188 | ||
2189 | ||
2190 | # _LT_WITH_SYSROOT | |
2191 | # ---------------- | |
2192 | AC_DEFUN([_LT_WITH_SYSROOT], | |
2193 | [AC_MSG_CHECKING([for sysroot]) | |
2194 | AC_ARG_WITH([sysroot], | |
2195 | [ --with-sysroot[=DIR] Search for dependent libraries within DIR | |
2196 | (or the compiler's sysroot if not specified).], | |
2197 | [], [with_sysroot=no]) | |
2198 | ||
2199 | dnl lt_sysroot will always be passed unquoted. We quote it here | |
2200 | dnl in case the user passed a directory name. | |
2201 | lt_sysroot= | |
2202 | case ${with_sysroot} in #( | |
2203 | yes) | |
2204 | if test "$GCC" = yes; then | |
2205 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
2206 | fi | |
2207 | ;; #( | |
2208 | /*) | |
2209 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
2210 | ;; #( | |
2211 | no|'') | |
2212 | ;; #( | |
2213 | *) | |
2214 | AC_MSG_RESULT([${with_sysroot}]) | |
2215 | AC_MSG_ERROR([The sysroot must be an absolute path.]) | |
2216 | ;; | |
2217 | esac | |
2218 | ||
2219 | AC_MSG_RESULT([${lt_sysroot:-no}]) | |
2220 | _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | |
2221 | [dependent libraries, and in which our libraries should be installed.])]) | |
2222 | ||
2223 | # _LT_ENABLE_LOCK | |
2224 | # --------------- | |
2225 | m4_defun([_LT_ENABLE_LOCK], | |
2226 | [AC_ARG_ENABLE([libtool-lock], | |
2227 | [AS_HELP_STRING([--disable-libtool-lock], | |
2228 | [avoid locking (might break parallel builds)])]) | |
2229 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
2230 | ||
2231 | # Some flags need to be propagated to the compiler or linker for good | |
2232 | # libtool support. | |
2233 | case $host in | |
2234 | ia64-*-hpux*) | |
2235 | # Find out which ABI we are using. | |
2236 | echo 'int i;' > conftest.$ac_ext | |
2237 | if AC_TRY_EVAL(ac_compile); then | |
2238 | case `/usr/bin/file conftest.$ac_objext` in | |
2239 | *ELF-32*) | |
2240 | HPUX_IA64_MODE="32" | |
2241 | ;; | |
2242 | *ELF-64*) | |
2243 | HPUX_IA64_MODE="64" | |
2244 | ;; | |
2245 | esac | |
2246 | fi | |
2247 | rm -rf conftest* | |
2248 | ;; | |
2249 | *-*-irix6*) | |
2250 | # Find out which ABI we are using. | |
2251 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | |
2252 | if AC_TRY_EVAL(ac_compile); then | |
2253 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
2254 | case `/usr/bin/file conftest.$ac_objext` in | |
2255 | *32-bit*) | |
2256 | LD="${LD-ld} -melf32bsmip" | |
2257 | ;; | |
2258 | *N32*) | |
2259 | LD="${LD-ld} -melf32bmipn32" | |
2260 | ;; | |
2261 | *64-bit*) | |
2262 | LD="${LD-ld} -melf64bmip" | |
2263 | ;; | |
2264 | esac | |
2265 | else | |
2266 | case `/usr/bin/file conftest.$ac_objext` in | |
2267 | *32-bit*) | |
2268 | LD="${LD-ld} -32" | |
2269 | ;; | |
2270 | *N32*) | |
2271 | LD="${LD-ld} -n32" | |
2272 | ;; | |
2273 | *64-bit*) | |
2274 | LD="${LD-ld} -64" | |
2275 | ;; | |
2276 | esac | |
2277 | fi | |
2278 | fi | |
2279 | rm -rf conftest* | |
2280 | ;; | |
2281 | ||
2282 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
2283 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
2284 | # Find out which ABI we are using. | |
2285 | echo 'int i;' > conftest.$ac_ext | |
2286 | if AC_TRY_EVAL(ac_compile); then | |
2287 | case `/usr/bin/file conftest.o` in | |
2288 | *32-bit*) | |
2289 | case $host in | |
2290 | x86_64-*kfreebsd*-gnu) | |
2291 | LD="${LD-ld} -m elf_i386_fbsd" | |
2292 | ;; | |
2293 | x86_64-*linux*) | |
2294 | LD="${LD-ld} -m elf_i386" | |
2295 | ;; | |
2296 | ppc64-*linux*|powerpc64-*linux*) | |
2297 | LD="${LD-ld} -m elf32ppclinux" | |
2298 | ;; | |
2299 | s390x-*linux*) | |
2300 | LD="${LD-ld} -m elf_s390" | |
2301 | ;; | |
2302 | sparc64-*linux*) | |
2303 | LD="${LD-ld} -m elf32_sparc" | |
2304 | ;; | |
2305 | esac | |
2306 | ;; | |
2307 | *64-bit*) | |
2308 | case $host in | |
2309 | x86_64-*kfreebsd*-gnu) | |
2310 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
2311 | ;; | |
2312 | x86_64-*linux*) | |
2313 | LD="${LD-ld} -m elf_x86_64" | |
2314 | ;; | |
2315 | ppc*-*linux*|powerpc*-*linux*) | |
2316 | LD="${LD-ld} -m elf64ppc" | |
2317 | ;; | |
2318 | s390*-*linux*|s390*-*tpf*) | |
2319 | LD="${LD-ld} -m elf64_s390" | |
2320 | ;; | |
2321 | sparc*-*linux*) | |
2322 | LD="${LD-ld} -m elf64_sparc" | |
2323 | ;; | |
2324 | esac | |
2325 | ;; | |
2326 | esac | |
2327 | fi | |
2328 | rm -rf conftest* | |
2329 | ;; | |
2330 | ||
2331 | *-*-sco3.2v5*) | |
2332 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
2333 | SAVE_CFLAGS="$CFLAGS" | |
2334 | CFLAGS="$CFLAGS -belf" | |
2335 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | |
2336 | [AC_LANG_PUSH(C) | |
2337 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | |
2338 | AC_LANG_POP]) | |
2339 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
2340 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
2341 | CFLAGS="$SAVE_CFLAGS" | |
2342 | fi | |
2343 | ;; | |
2344 | sparc*-*solaris*) | |
2345 | # Find out which ABI we are using. | |
2346 | echo 'int i;' > conftest.$ac_ext | |
2347 | if AC_TRY_EVAL(ac_compile); then | |
2348 | case `/usr/bin/file conftest.o` in | |
2349 | *64-bit*) | |
2350 | case $lt_cv_prog_gnu_ld in | |
2351 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
2352 | *) | |
2353 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
2354 | LD="${LD-ld} -64" | |
2355 | fi | |
2356 | ;; | |
2357 | esac | |
2358 | ;; | |
2359 | esac | |
2360 | fi | |
2361 | rm -rf conftest* | |
2362 | ;; | |
2363 | esac | |
2364 | ||
2365 | need_locks="$enable_libtool_lock" | |
2366 | ])# _LT_ENABLE_LOCK | |
2367 | ||
2368 | ||
2369 | # _LT_PROG_AR | |
2370 | # ----------- | |
2371 | m4_defun([_LT_PROG_AR], | |
2372 | [AC_CHECK_TOOLS(AR, [ar], false) | |
2373 | : ${AR=ar} | |
2374 | : ${AR_FLAGS=cru} | |
2375 | _LT_DECL([], [AR], [1], [The archiver]) | |
2376 | _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) | |
2377 | ||
2378 | AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | |
2379 | [lt_cv_ar_at_file=no | |
2380 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM], | |
2381 | [echo conftest.$ac_objext > conftest.lst | |
2382 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' | |
2383 | AC_TRY_EVAL([lt_ar_try]) | |
2384 | if test "$ac_status" -eq 0; then | |
2385 | # Ensure the archiver fails upon bogus file names. | |
2386 | rm -f conftest.$ac_objext libconftest.a | |
2387 | AC_TRY_EVAL([lt_ar_try]) | |
2388 | if test "$ac_status" -ne 0; then | |
2389 | lt_cv_ar_at_file=@ | |
2390 | fi | |
2391 | fi | |
2392 | rm -f conftest.* libconftest.a | |
2393 | ]) | |
2394 | ]) | |
2395 | ||
2396 | if test "x$lt_cv_ar_at_file" = xno; then | |
2397 | archiver_list_spec= | |
2398 | else | |
2399 | archiver_list_spec=$lt_cv_ar_at_file | |
2400 | fi | |
2401 | _LT_DECL([], [archiver_list_spec], [1], | |
2402 | [How to feed a file listing to the archiver]) | |
2403 | ])# _LT_PROG_AR | |
2404 | ||
2405 | ||
2406 | # _LT_CMD_OLD_ARCHIVE | |
2407 | # ------------------- | |
2408 | m4_defun([_LT_CMD_OLD_ARCHIVE], | |
2409 | [_LT_PROG_AR | |
2410 | ||
2411 | AC_CHECK_TOOL(STRIP, strip, :) | |
2412 | test -z "$STRIP" && STRIP=: | |
2413 | _LT_DECL([], [STRIP], [1], [A symbol stripping program]) | |
2414 | ||
2415 | AC_CHECK_TOOL(RANLIB, ranlib, :) | |
2416 | test -z "$RANLIB" && RANLIB=: | |
2417 | _LT_DECL([], [RANLIB], [1], | |
2418 | [Commands used to install an old-style archive]) | |
2419 | ||
2420 | # Determine commands to create old-style static archives. | |
2421 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
2422 | old_postinstall_cmds='chmod 644 $oldlib' | |
2423 | old_postuninstall_cmds= | |
2424 | ||
2425 | if test -n "$RANLIB"; then | |
2426 | case $host_os in | |
2427 | openbsd*) | |
2428 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
2429 | ;; | |
2430 | *) | |
2431 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
2432 | ;; | |
2433 | esac | |
2434 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
2435 | fi | |
2436 | ||
2437 | case $host_os in | |
2438 | darwin*) | |
2439 | lock_old_archive_extraction=yes ;; | |
2440 | *) | |
2441 | lock_old_archive_extraction=no ;; | |
2442 | esac | |
2443 | _LT_DECL([], [old_postinstall_cmds], [2]) | |
2444 | _LT_DECL([], [old_postuninstall_cmds], [2]) | |
2445 | _LT_TAGDECL([], [old_archive_cmds], [2], | |
2446 | [Commands used to build an old-style archive]) | |
2447 | _LT_DECL([], [lock_old_archive_extraction], [0], | |
2448 | [Whether to use a lock for old archive extraction]) | |
2449 | ])# _LT_CMD_OLD_ARCHIVE | |
2450 | ||
2451 | ||
2452 | # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
2453 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | |
2454 | # ---------------------------------------------------------------- | |
2455 | # Check whether the given compiler option works | |
2456 | AC_DEFUN([_LT_COMPILER_OPTION], | |
2457 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
2458 | m4_require([_LT_DECL_SED])dnl | |
2459 | AC_CACHE_CHECK([$1], [$2], | |
2460 | [$2=no | |
2461 | m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | |
2462 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
2463 | lt_compiler_flag="$3" | |
2464 | # Insert the option either (1) after the last *FLAGS variable, or | |
2465 | # (2) before a word containing "conftest.", or (3) at the end. | |
2466 | # Note that $ac_compile itself does not contain backslashes and begins | |
2467 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
2468 | # The option is referenced via a variable to avoid confusing sed. | |
2469 | lt_compile=`echo "$ac_compile" | $SED \ | |
2470 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
2471 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | |
2472 | -e 's:$: $lt_compiler_flag:'` | |
2473 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
2474 | (eval "$lt_compile" 2>conftest.err) | |
2475 | ac_status=$? | |
2476 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
2477 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
2478 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
2479 | # The compiler can only warn and ignore the option if not recognized | |
2480 | # So say no if there are warnings other than the usual output. | |
2481 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
2482 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
2483 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
2484 | $2=yes | |
2485 | fi | |
2486 | fi | |
2487 | $RM conftest* | |
2488 | ]) | |
2489 | ||
2490 | if test x"[$]$2" = xyes; then | |
2491 | m4_if([$5], , :, [$5]) | |
2492 | else | |
2493 | m4_if([$6], , :, [$6]) | |
2494 | fi | |
2495 | ])# _LT_COMPILER_OPTION | |
2496 | ||
2497 | # Old name: | |
2498 | AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) | |
2499 | dnl aclocal-1.4 backwards compatibility: | |
2500 | dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) | |
2501 | ||
2502 | ||
2503 | # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
2504 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | |
2505 | # ---------------------------------------------------- | |
2506 | # Check whether the given linker option works | |
2507 | AC_DEFUN([_LT_LINKER_OPTION], | |
2508 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
2509 | m4_require([_LT_DECL_SED])dnl | |
2510 | AC_CACHE_CHECK([$1], [$2], | |
2511 | [$2=no | |
2512 | save_LDFLAGS="$LDFLAGS" | |
2513 | LDFLAGS="$LDFLAGS $3" | |
2514 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
2515 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
2516 | # The linker can only warn and ignore the option if not recognized | |
2517 | # So say no if there are warnings | |
2518 | if test -s conftest.err; then | |
2519 | # Append any errors to the config.log. | |
2520 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | |
2521 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
2522 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
2523 | if diff conftest.exp conftest.er2 >/dev/null; then | |
2524 | $2=yes | |
2525 | fi | |
2526 | else | |
2527 | $2=yes | |
2528 | fi | |
2529 | fi | |
2530 | $RM -r conftest* | |
2531 | LDFLAGS="$save_LDFLAGS" | |
2532 | ]) | |
2533 | ||
2534 | if test x"[$]$2" = xyes; then | |
2535 | m4_if([$4], , :, [$4]) | |
2536 | else | |
2537 | m4_if([$5], , :, [$5]) | |
2538 | fi | |
2539 | ])# _LT_LINKER_OPTION | |
2540 | ||
2541 | # Old name: | |
2542 | AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) | |
2543 | dnl aclocal-1.4 backwards compatibility: | |
2544 | dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) | |
2545 | ||
2546 | ||
2547 | # LT_CMD_MAX_LEN | |
2548 | #--------------- | |
2549 | AC_DEFUN([LT_CMD_MAX_LEN], | |
2550 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
2551 | # find the maximum length of command line arguments | |
2552 | AC_MSG_CHECKING([the maximum length of command line arguments]) | |
2553 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |
2554 | i=0 | |
2555 | teststring="ABCD" | |
2556 | ||
2557 | case $build_os in | |
2558 | msdosdjgpp*) | |
2559 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
2560 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
2561 | # during glob expansion). Even if it were fixed, the result of this | |
2562 | # check would be larger than it should be. | |
2563 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
2564 | ;; | |
2565 | ||
2566 | gnu*) | |
2567 | # Under GNU Hurd, this test is not required because there is | |
2568 | # no limit to the length of command line arguments. | |
2569 | # Libtool will interpret -1 as no limit whatsoever | |
2570 | lt_cv_sys_max_cmd_len=-1; | |
2571 | ;; | |
2572 | ||
2573 | cygwin* | mingw* | cegcc*) | |
2574 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
2575 | # about 5 minutes as the teststring grows exponentially. | |
2576 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
2577 | # you end up with a "frozen" computer, even though with patience | |
2578 | # the test eventually succeeds (with a max line length of 256k). | |
2579 | # Instead, let's just punt: use the minimum linelength reported by | |
2580 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
2581 | lt_cv_sys_max_cmd_len=8192; | |
2582 | ;; | |
2583 | ||
2584 | mint*) | |
2585 | # On MiNT this can take a long time and run out of memory. | |
2586 | lt_cv_sys_max_cmd_len=8192; | |
2587 | ;; | |
2588 | ||
2589 | amigaos*) | |
2590 | # On AmigaOS with pdksh, this test takes hours, literally. | |
2591 | # So we just punt and use a minimum line length of 8192. | |
2592 | lt_cv_sys_max_cmd_len=8192; | |
2593 | ;; | |
2594 | ||
2595 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
2596 | # This has been around since 386BSD, at least. Likely further. | |
2597 | if test -x /sbin/sysctl; then | |
2598 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
2599 | elif test -x /usr/sbin/sysctl; then | |
2600 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
2601 | else | |
2602 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
2603 | fi | |
2604 | # And add a safety zone | |
2605 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
2606 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
2607 | ;; | |
2608 | ||
2609 | interix*) | |
2610 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
2611 | lt_cv_sys_max_cmd_len=196608 | |
2612 | ;; | |
2613 | ||
2614 | osf*) | |
2615 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
2616 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
2617 | # nice to cause kernel panics so lets avoid the loop below. | |
2618 | # First set a reasonable default. | |
2619 | lt_cv_sys_max_cmd_len=16384 | |
2620 | # | |
2621 | if test -x /sbin/sysconfig; then | |
2622 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
2623 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
2624 | esac | |
2625 | fi | |
2626 | ;; | |
2627 | sco3.2v5*) | |
2628 | lt_cv_sys_max_cmd_len=102400 | |
2629 | ;; | |
2630 | sysv5* | sco5v6* | sysv4.2uw2*) | |
2631 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
2632 | if test -n "$kargmax"; then | |
2633 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | |
2634 | else | |
2635 | lt_cv_sys_max_cmd_len=32768 | |
2636 | fi | |
2637 | ;; | |
2638 | *) | |
2639 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
2640 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
2641 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
2642 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
2643 | else | |
2644 | # Make teststring a little bigger before we do anything with it. | |
2645 | # a 1K string should be a reasonable start. | |
2646 | for i in 1 2 3 4 5 6 7 8 ; do | |
2647 | teststring=$teststring$teststring | |
2648 | done | |
2649 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
2650 | # If test is not a shell built-in, we'll probably end up computing a | |
2651 | # maximum length that is only half of the actual maximum length, but | |
2652 | # we can't tell. | |
2653 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
2654 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
2655 | test $i != 17 # 1/2 MB should be enough | |
2656 | do | |
2657 | i=`expr $i + 1` | |
2658 | teststring=$teststring$teststring | |
2659 | done | |
2660 | # Only check the string length outside the loop. | |
2661 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
2662 | teststring= | |
2663 | # Add a significant safety factor because C++ compilers can tack on | |
2664 | # massive amounts of additional arguments before passing them to the | |
2665 | # linker. It appears as though 1/2 is a usable value. | |
2666 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
2667 | fi | |
2668 | ;; | |
2669 | esac | |
2670 | ]) | |
2671 | if test -n $lt_cv_sys_max_cmd_len ; then | |
2672 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | |
2673 | else | |
2674 | AC_MSG_RESULT(none) | |
2675 | fi | |
2676 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
2677 | _LT_DECL([], [max_cmd_len], [0], | |
2678 | [What is the maximum length of a command?]) | |
2679 | ])# LT_CMD_MAX_LEN | |
2680 | ||
2681 | # Old name: | |
2682 | AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) | |
2683 | dnl aclocal-1.4 backwards compatibility: | |
2684 | dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) | |
2685 | ||
2686 | ||
2687 | # _LT_HEADER_DLFCN | |
2688 | # ---------------- | |
2689 | m4_defun([_LT_HEADER_DLFCN], | |
2690 | [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl | |
2691 | ])# _LT_HEADER_DLFCN | |
2692 | ||
2693 | ||
2694 | # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | |
2695 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | |
2696 | # ---------------------------------------------------------------- | |
2697 | m4_defun([_LT_TRY_DLOPEN_SELF], | |
2698 | [m4_require([_LT_HEADER_DLFCN])dnl | |
2699 | if test "$cross_compiling" = yes; then : | |
2700 | [$4] | |
2701 | else | |
2702 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
2703 | lt_status=$lt_dlunknown | |
2704 | cat > conftest.$ac_ext <<_LT_EOF | |
2705 | [#line $LINENO "configure" | |
2706 | #include "confdefs.h" | |
2707 | ||
2708 | #if HAVE_DLFCN_H | |
2709 | #include <dlfcn.h> | |
2710 | #endif | |
2711 | ||
2712 | #include <stdio.h> | |
2713 | ||
2714 | #ifdef RTLD_GLOBAL | |
2715 | # define LT_DLGLOBAL RTLD_GLOBAL | |
2716 | #else | |
2717 | # ifdef DL_GLOBAL | |
2718 | # define LT_DLGLOBAL DL_GLOBAL | |
2719 | # else | |
2720 | # define LT_DLGLOBAL 0 | |
2721 | # endif | |
2722 | #endif | |
2723 | ||
2724 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
2725 | find out it does not work in some platform. */ | |
2726 | #ifndef LT_DLLAZY_OR_NOW | |
2727 | # ifdef RTLD_LAZY | |
2728 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
2729 | # else | |
2730 | # ifdef DL_LAZY | |
2731 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
2732 | # else | |
2733 | # ifdef RTLD_NOW | |
2734 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
2735 | # else | |
2736 | # ifdef DL_NOW | |
2737 | # define LT_DLLAZY_OR_NOW DL_NOW | |
2738 | # else | |
2739 | # define LT_DLLAZY_OR_NOW 0 | |
2740 | # endif | |
2741 | # endif | |
2742 | # endif | |
2743 | # endif | |
2744 | #endif | |
2745 | ||
2746 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
2747 | correspondingly for the symbols needed. */ | |
2748 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
2749 | int fnord () __attribute__((visibility("default"))); | |
2750 | #endif | |
2751 | ||
2752 | int fnord () { return 42; } | |
2753 | int main () | |
2754 | { | |
2755 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
2756 | int status = $lt_dlunknown; | |
2757 | ||
2758 | if (self) | |
2759 | { | |
2760 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
2761 | else | |
2762 | { | |
2763 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
2764 | else puts (dlerror ()); | |
2765 | } | |
2766 | /* dlclose (self); */ | |
2767 | } | |
2768 | else | |
2769 | puts (dlerror ()); | |
2770 | ||
2771 | return status; | |
2772 | }] | |
2773 | _LT_EOF | |
2774 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | |
2775 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | |
2776 | lt_status=$? | |
2777 | case x$lt_status in | |
2778 | x$lt_dlno_uscore) $1 ;; | |
2779 | x$lt_dlneed_uscore) $2 ;; | |
2780 | x$lt_dlunknown|x*) $3 ;; | |
2781 | esac | |
2782 | else : | |
2783 | # compilation failed | |
2784 | $3 | |
2785 | fi | |
2786 | fi | |
2787 | rm -fr conftest* | |
2788 | ])# _LT_TRY_DLOPEN_SELF | |
2789 | ||
2790 | ||
2791 | # LT_SYS_DLOPEN_SELF | |
2792 | # ------------------ | |
2793 | AC_DEFUN([LT_SYS_DLOPEN_SELF], | |
2794 | [m4_require([_LT_HEADER_DLFCN])dnl | |
2795 | if test "x$enable_dlopen" != xyes; then | |
2796 | enable_dlopen=unknown | |
2797 | enable_dlopen_self=unknown | |
2798 | enable_dlopen_self_static=unknown | |
2799 | else | |
2800 | lt_cv_dlopen=no | |
2801 | lt_cv_dlopen_libs= | |
2802 | ||
2803 | case $host_os in | |
2804 | beos*) | |
2805 | lt_cv_dlopen="load_add_on" | |
2806 | lt_cv_dlopen_libs= | |
2807 | lt_cv_dlopen_self=yes | |
2808 | ;; | |
2809 | ||
2810 | mingw* | pw32* | cegcc*) | |
2811 | lt_cv_dlopen="LoadLibrary" | |
2812 | lt_cv_dlopen_libs= | |
2813 | ;; | |
2814 | ||
2815 | cygwin*) | |
2816 | lt_cv_dlopen="dlopen" | |
2817 | lt_cv_dlopen_libs= | |
2818 | ;; | |
2819 | ||
2820 | darwin*) | |
2821 | # if libdl is installed we need to link against it | |
2822 | AC_CHECK_LIB([dl], [dlopen], | |
2823 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | |
2824 | lt_cv_dlopen="dyld" | |
2825 | lt_cv_dlopen_libs= | |
2826 | lt_cv_dlopen_self=yes | |
2827 | ]) | |
2828 | ;; | |
2829 | ||
2830 | *) | |
2831 | AC_CHECK_FUNC([shl_load], | |
2832 | [lt_cv_dlopen="shl_load"], | |
2833 | [AC_CHECK_LIB([dld], [shl_load], | |
2834 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], | |
2835 | [AC_CHECK_FUNC([dlopen], | |
2836 | [lt_cv_dlopen="dlopen"], | |
2837 | [AC_CHECK_LIB([dl], [dlopen], | |
2838 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | |
2839 | [AC_CHECK_LIB([svld], [dlopen], | |
2840 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | |
2841 | [AC_CHECK_LIB([dld], [dld_link], | |
2842 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) | |
2843 | ]) | |
2844 | ]) | |
2845 | ]) | |
2846 | ]) | |
2847 | ]) | |
2848 | ;; | |
2849 | esac | |
2850 | ||
2851 | if test "x$lt_cv_dlopen" != xno; then | |
2852 | enable_dlopen=yes | |
2853 | else | |
2854 | enable_dlopen=no | |
2855 | fi | |
2856 | ||
2857 | case $lt_cv_dlopen in | |
2858 | dlopen) | |
2859 | save_CPPFLAGS="$CPPFLAGS" | |
2860 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
2861 | ||
2862 | save_LDFLAGS="$LDFLAGS" | |
2863 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
2864 | ||
2865 | save_LIBS="$LIBS" | |
2866 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
2867 | ||
2868 | AC_CACHE_CHECK([whether a program can dlopen itself], | |
2869 | lt_cv_dlopen_self, [dnl | |
2870 | _LT_TRY_DLOPEN_SELF( | |
2871 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | |
2872 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | |
2873 | ]) | |
2874 | ||
2875 | if test "x$lt_cv_dlopen_self" = xyes; then | |
2876 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
2877 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | |
2878 | lt_cv_dlopen_self_static, [dnl | |
2879 | _LT_TRY_DLOPEN_SELF( | |
2880 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | |
2881 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | |
2882 | ]) | |
2883 | fi | |
2884 | ||
2885 | CPPFLAGS="$save_CPPFLAGS" | |
2886 | LDFLAGS="$save_LDFLAGS" | |
2887 | LIBS="$save_LIBS" | |
2888 | ;; | |
2889 | esac | |
2890 | ||
2891 | case $lt_cv_dlopen_self in | |
2892 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
2893 | *) enable_dlopen_self=unknown ;; | |
2894 | esac | |
2895 | ||
2896 | case $lt_cv_dlopen_self_static in | |
2897 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
2898 | *) enable_dlopen_self_static=unknown ;; | |
2899 | esac | |
2900 | fi | |
2901 | _LT_DECL([dlopen_support], [enable_dlopen], [0], | |
2902 | [Whether dlopen is supported]) | |
2903 | _LT_DECL([dlopen_self], [enable_dlopen_self], [0], | |
2904 | [Whether dlopen of programs is supported]) | |
2905 | _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], | |
2906 | [Whether dlopen of statically linked programs is supported]) | |
2907 | ])# LT_SYS_DLOPEN_SELF | |
2908 | ||
2909 | # Old name: | |
2910 | AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) | |
2911 | dnl aclocal-1.4 backwards compatibility: | |
2912 | dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) | |
2913 | ||
2914 | ||
2915 | # _LT_COMPILER_C_O([TAGNAME]) | |
2916 | # --------------------------- | |
2917 | # Check to see if options -c and -o are simultaneously supported by compiler. | |
2918 | # This macro does not hard code the compiler like AC_PROG_CC_C_O. | |
2919 | m4_defun([_LT_COMPILER_C_O], | |
2920 | [m4_require([_LT_DECL_SED])dnl | |
2921 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
2922 | m4_require([_LT_TAG_COMPILER])dnl | |
2923 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | |
2924 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | |
2925 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | |
2926 | $RM -r conftest 2>/dev/null | |
2927 | mkdir conftest | |
2928 | cd conftest | |
2929 | mkdir out | |
2930 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
2931 | ||
2932 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
2933 | # Insert the option either (1) after the last *FLAGS variable, or | |
2934 | # (2) before a word containing "conftest.", or (3) at the end. | |
2935 | # Note that $ac_compile itself does not contain backslashes and begins | |
2936 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
2937 | lt_compile=`echo "$ac_compile" | $SED \ | |
2938 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
2939 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | |
2940 | -e 's:$: $lt_compiler_flag:'` | |
2941 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
2942 | (eval "$lt_compile" 2>out/conftest.err) | |
2943 | ac_status=$? | |
2944 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | |
2945 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
2946 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
2947 | then | |
2948 | # The compiler can only warn and ignore the option if not recognized | |
2949 | # So say no if there are warnings | |
2950 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
2951 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
2952 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
2953 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
2954 | fi | |
2955 | fi | |
2956 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | |
2957 | $RM conftest* | |
2958 | # SGI C++ compiler will create directory out/ii_files/ for | |
2959 | # template instantiation | |
2960 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
2961 | $RM out/* && rmdir out | |
2962 | cd .. | |
2963 | $RM -r conftest | |
2964 | $RM conftest* | |
2965 | ]) | |
2966 | _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], | |
2967 | [Does compiler simultaneously support -c and -o options?]) | |
2968 | ])# _LT_COMPILER_C_O | |
2969 | ||
2970 | ||
2971 | # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | |
2972 | # ---------------------------------- | |
2973 | # Check to see if we can do hard links to lock some files if needed | |
2974 | m4_defun([_LT_COMPILER_FILE_LOCKS], | |
2975 | [m4_require([_LT_ENABLE_LOCK])dnl | |
2976 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
2977 | _LT_COMPILER_C_O([$1]) | |
2978 | ||
2979 | hard_links="nottested" | |
2980 | if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | |
2981 | # do not overwrite the value of need_locks provided by the user | |
2982 | AC_MSG_CHECKING([if we can lock with hard links]) | |
2983 | hard_links=yes | |
2984 | $RM conftest* | |
2985 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
2986 | touch conftest.a | |
2987 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
2988 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
2989 | AC_MSG_RESULT([$hard_links]) | |
2990 | if test "$hard_links" = no; then | |
2991 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | |
2992 | need_locks=warn | |
2993 | fi | |
2994 | else | |
2995 | need_locks=no | |
2996 | fi | |
2997 | _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) | |
2998 | ])# _LT_COMPILER_FILE_LOCKS | |
2999 | ||
3000 | ||
3001 | # _LT_CHECK_OBJDIR | |
3002 | # ---------------- | |
3003 | m4_defun([_LT_CHECK_OBJDIR], | |
3004 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | |
3005 | [rm -f .libs 2>/dev/null | |
3006 | mkdir .libs 2>/dev/null | |
3007 | if test -d .libs; then | |
3008 | lt_cv_objdir=.libs | |
3009 | else | |
3010 | # MS-DOS does not allow filenames that begin with a dot. | |
3011 | lt_cv_objdir=_libs | |
3012 | fi | |
3013 | rmdir .libs 2>/dev/null]) | |
3014 | objdir=$lt_cv_objdir | |
3015 | _LT_DECL([], [objdir], [0], | |
3016 | [The name of the directory that contains temporary libtool files])dnl | |
3017 | m4_pattern_allow([LT_OBJDIR])dnl | |
3018 | AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", | |
3019 | [Define to the sub-directory in which libtool stores uninstalled libraries.]) | |
3020 | ])# _LT_CHECK_OBJDIR | |
3021 | ||
3022 | ||
3023 | # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | |
3024 | # -------------------------------------- | |
3025 | # Check hardcoding attributes. | |
3026 | m4_defun([_LT_LINKER_HARDCODE_LIBPATH], | |
3027 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | |
3028 | _LT_TAGVAR(hardcode_action, $1)= | |
3029 | if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || | |
3030 | test -n "$_LT_TAGVAR(runpath_var, $1)" || | |
3031 | test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | |
3032 | ||
3033 | # We can hardcode non-existent directories. | |
3034 | if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && | |
3035 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
3036 | # have to relink, otherwise we might link with an installed library | |
3037 | # when we should be linking with a yet-to-be-installed one | |
3038 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && | |
3039 | test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then | |
3040 | # Linking always hardcodes the temporary library directory. | |
3041 | _LT_TAGVAR(hardcode_action, $1)=relink | |
3042 | else | |
3043 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
3044 | _LT_TAGVAR(hardcode_action, $1)=immediate | |
3045 | fi | |
3046 | else | |
3047 | # We cannot hardcode anything, or else we can only hardcode existing | |
3048 | # directories. | |
3049 | _LT_TAGVAR(hardcode_action, $1)=unsupported | |
3050 | fi | |
3051 | AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) | |
3052 | ||
3053 | if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || | |
3054 | test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then | |
3055 | # Fast installation is not supported | |
3056 | enable_fast_install=no | |
3057 | elif test "$shlibpath_overrides_runpath" = yes || | |
3058 | test "$enable_shared" = no; then | |
3059 | # Fast installation is not necessary | |
3060 | enable_fast_install=needless | |
3061 | fi | |
3062 | _LT_TAGDECL([], [hardcode_action], [0], | |
3063 | [How to hardcode a shared library path into an executable]) | |
3064 | ])# _LT_LINKER_HARDCODE_LIBPATH | |
3065 | ||
3066 | ||
3067 | # _LT_CMD_STRIPLIB | |
3068 | # ---------------- | |
3069 | m4_defun([_LT_CMD_STRIPLIB], | |
3070 | [m4_require([_LT_DECL_EGREP]) | |
3071 | striplib= | |
3072 | old_striplib= | |
3073 | AC_MSG_CHECKING([whether stripping libraries is possible]) | |
3074 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
3075 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
3076 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
3077 | AC_MSG_RESULT([yes]) | |
3078 | else | |
3079 | # FIXME - insert some real tests, host_os isn't really good enough | |
3080 | case $host_os in | |
3081 | darwin*) | |
3082 | if test -n "$STRIP" ; then | |
3083 | striplib="$STRIP -x" | |
3084 | old_striplib="$STRIP -S" | |
3085 | AC_MSG_RESULT([yes]) | |
3086 | else | |
3087 | AC_MSG_RESULT([no]) | |
3088 | fi | |
3089 | ;; | |
3090 | *) | |
3091 | AC_MSG_RESULT([no]) | |
3092 | ;; | |
3093 | esac | |
3094 | fi | |
3095 | _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) | |
3096 | _LT_DECL([], [striplib], [1]) | |
3097 | ])# _LT_CMD_STRIPLIB | |
3098 | ||
3099 | ||
3100 | # _LT_SYS_DYNAMIC_LINKER([TAG]) | |
3101 | # ----------------------------- | |
3102 | # PORTME Fill in your ld.so characteristics | |
3103 | m4_defun([_LT_SYS_DYNAMIC_LINKER], | |
3104 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
3105 | m4_require([_LT_DECL_EGREP])dnl | |
3106 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
3107 | m4_require([_LT_DECL_OBJDUMP])dnl | |
3108 | m4_require([_LT_DECL_SED])dnl | |
3109 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
3110 | AC_MSG_CHECKING([dynamic linker characteristics]) | |
3111 | m4_if([$1], | |
3112 | [], [ | |
3113 | if test "$GCC" = yes; then | |
3114 | case $host_os in | |
3115 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
3116 | *) lt_awk_arg="/^libraries:/" ;; | |
3117 | esac | |
3118 | case $host_os in | |
3119 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; | |
3120 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
3121 | esac | |
3122 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
3123 | case $lt_search_path_spec in | |
3124 | *\;*) | |
3125 | # if the path contains ";" then we assume it to be the separator | |
3126 | # otherwise default to the standard path separator (i.e. ":") - it is | |
3127 | # assumed that no part of a normal pathname contains ";" but that should | |
3128 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3129 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
3130 | ;; | |
3131 | *) | |
3132 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
3133 | ;; | |
3134 | esac | |
3135 | # Ok, now we have the path, separated by spaces, we can step through it | |
3136 | # and add multilib dir if necessary. | |
3137 | lt_tmp_lt_search_path_spec= | |
3138 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
3139 | for lt_sys_path in $lt_search_path_spec; do | |
3140 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
3141 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
3142 | else | |
3143 | test -d "$lt_sys_path" && \ | |
3144 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
3145 | fi | |
3146 | done | |
3147 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
3148 | BEGIN {RS=" "; FS="/|\n";} { | |
3149 | lt_foo=""; | |
3150 | lt_count=0; | |
3151 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
3152 | if ($lt_i != "" && $lt_i != ".") { | |
3153 | if ($lt_i == "..") { | |
3154 | lt_count++; | |
3155 | } else { | |
3156 | if (lt_count == 0) { | |
3157 | lt_foo="/" $lt_i lt_foo; | |
3158 | } else { | |
3159 | lt_count--; | |
3160 | } | |
3161 | } | |
3162 | } | |
3163 | } | |
3164 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } | |
3165 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | |
3166 | }'` | |
3167 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
3168 | # for these hosts. | |
3169 | case $host_os in | |
3170 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
3171 | $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | |
3172 | esac | |
3173 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
3174 | else | |
3175 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
3176 | fi]) | |
3177 | library_names_spec= | |
3178 | libname_spec='lib$name' | |
3179 | soname_spec= | |
3180 | shrext_cmds=".so" | |
3181 | postinstall_cmds= | |
3182 | postuninstall_cmds= | |
3183 | finish_cmds= | |
3184 | finish_eval= | |
3185 | shlibpath_var= | |
3186 | shlibpath_overrides_runpath=unknown | |
3187 | version_type=none | |
3188 | dynamic_linker="$host_os ld.so" | |
3189 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
3190 | need_lib_prefix=unknown | |
3191 | hardcode_into_libs=no | |
3192 | ||
3193 | # when you set need_version to no, make sure it does not cause -set_version | |
3194 | # flags to be left without arguments | |
3195 | need_version=unknown | |
3196 | ||
3197 | case $host_os in | |
3198 | aix3*) | |
3199 | version_type=linux | |
3200 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
3201 | shlibpath_var=LIBPATH | |
3202 | ||
3203 | # AIX 3 has no versioning support, so we append a major version to the name. | |
3204 | soname_spec='${libname}${release}${shared_ext}$major' | |
3205 | ;; | |
3206 | ||
3207 | aix[[4-9]]*) | |
3208 | version_type=linux | |
3209 | need_lib_prefix=no | |
3210 | need_version=no | |
3211 | hardcode_into_libs=yes | |
3212 | if test "$host_cpu" = ia64; then | |
3213 | # AIX 5 supports IA64 | |
3214 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
3215 | shlibpath_var=LD_LIBRARY_PATH | |
3216 | else | |
3217 | # With GCC up to 2.95.x, collect2 would create an import file | |
3218 | # for dependence libraries. The import file would start with | |
3219 | # the line `#! .'. This would cause the generated library to | |
3220 | # depend on `.', always an invalid library. This was fixed in | |
3221 | # development snapshots of GCC prior to 3.0. | |
3222 | case $host_os in | |
3223 | aix4 | aix4.[[01]] | aix4.[[01]].*) | |
3224 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
3225 | echo ' yes ' | |
3226 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
3227 | : | |
3228 | else | |
3229 | can_build_shared=no | |
3230 | fi | |
3231 | ;; | |
3232 | esac | |
3233 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
3234 | # soname into executable. Probably we can add versioning support to | |
3235 | # collect2, so additional links can be useful in future. | |
3236 | if test "$aix_use_runtimelinking" = yes; then | |
3237 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
3238 | # instead of lib<name>.a to let people know that these are not | |
3239 | # typical AIX shared libraries. | |
3240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3241 | else | |
3242 | # We preserve .a as extension for shared libraries through AIX4.2 | |
3243 | # and later when we are not doing run time linking. | |
3244 | library_names_spec='${libname}${release}.a $libname.a' | |
3245 | soname_spec='${libname}${release}${shared_ext}$major' | |
3246 | fi | |
3247 | shlibpath_var=LIBPATH | |
3248 | fi | |
3249 | ;; | |
3250 | ||
3251 | amigaos*) | |
3252 | case $host_cpu in | |
3253 | powerpc) | |
3254 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
3255 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
3256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3257 | ;; | |
3258 | m68k) | |
3259 | library_names_spec='$libname.ixlibrary $libname.a' | |
3260 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3261 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
3262 | ;; | |
3263 | esac | |
3264 | ;; | |
3265 | ||
3266 | beos*) | |
3267 | library_names_spec='${libname}${shared_ext}' | |
3268 | dynamic_linker="$host_os ld.so" | |
3269 | shlibpath_var=LIBRARY_PATH | |
3270 | ;; | |
3271 | ||
3272 | bsdi[[45]]*) | |
3273 | version_type=linux | |
3274 | need_version=no | |
3275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3276 | soname_spec='${libname}${release}${shared_ext}$major' | |
3277 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
3278 | shlibpath_var=LD_LIBRARY_PATH | |
3279 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
3280 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
3281 | # the default ld.so.conf also contains /usr/contrib/lib and | |
3282 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
3283 | # libtool to hard-code these into programs | |
3284 | ;; | |
3285 | ||
3286 | cygwin* | mingw* | pw32* | cegcc*) | |
3287 | version_type=windows | |
3288 | shrext_cmds=".dll" | |
3289 | need_version=no | |
3290 | need_lib_prefix=no | |
3291 | ||
3292 | case $GCC,$cc_basename in | |
3293 | yes,*) | |
3294 | # gcc | |
3295 | library_names_spec='$libname.dll.a' | |
3296 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
3297 | postinstall_cmds='base_file=`basename \${file}`~ | |
3298 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
3299 | dldir=$destdir/`dirname \$dlpath`~ | |
3300 | test -d \$dldir || mkdir -p \$dldir~ | |
3301 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
3302 | chmod a+x \$dldir/$dlname~ | |
3303 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
3304 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
3305 | fi' | |
3306 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
3307 | dlpath=$dir/\$dldll~ | |
3308 | $RM \$dlpath' | |
3309 | shlibpath_overrides_runpath=yes | |
3310 | ||
3311 | case $host_os in | |
3312 | cygwin*) | |
3313 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
3314 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
3315 | m4_if([$1], [],[ | |
3316 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | |
3317 | ;; | |
3318 | mingw* | cegcc*) | |
3319 | # MinGW DLLs use traditional 'lib' prefix | |
3320 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
3321 | ;; | |
3322 | pw32*) | |
3323 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
3324 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
3325 | ;; | |
3326 | esac | |
3327 | dynamic_linker='Win32 ld.exe' | |
3328 | ;; | |
3329 | ||
3330 | *,cl*) | |
3331 | # Native MSVC | |
3332 | libname_spec='$name' | |
3333 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
3334 | library_names_spec='${libname}.dll.lib' | |
3335 | ||
3336 | case $build_os in | |
3337 | mingw*) | |
3338 | sys_lib_search_path_spec= | |
3339 | lt_save_ifs=$IFS | |
3340 | IFS=';' | |
3341 | for lt_path in $LIB | |
3342 | do | |
3343 | IFS=$lt_save_ifs | |
3344 | # Let DOS variable expansion print the short 8.3 style file name. | |
3345 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
3346 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
3347 | done | |
3348 | IFS=$lt_save_ifs | |
3349 | # Convert to MSYS style. | |
3350 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | |
3351 | ;; | |
3352 | cygwin*) | |
3353 | # Convert to unix form, then to dos form, then back to unix form | |
3354 | # but this time dos style (no spaces!) so that the unix form looks | |
3355 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
3356 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
3357 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
3358 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
3359 | ;; | |
3360 | *) | |
3361 | sys_lib_search_path_spec="$LIB" | |
3362 | if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | |
3363 | # It is most probably a Windows format PATH. | |
3364 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
3365 | else | |
3366 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
3367 | fi | |
3368 | # FIXME: find the short name or the path components, as spaces are | |
3369 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
3370 | ;; | |
3371 | esac | |
3372 | ||
3373 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
3374 | postinstall_cmds='base_file=`basename \${file}`~ | |
3375 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
3376 | dldir=$destdir/`dirname \$dlpath`~ | |
3377 | test -d \$dldir || mkdir -p \$dldir~ | |
3378 | $install_prog $dir/$dlname \$dldir/$dlname' | |
3379 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
3380 | dlpath=$dir/\$dldll~ | |
3381 | $RM \$dlpath' | |
3382 | shlibpath_overrides_runpath=yes | |
3383 | dynamic_linker='Win32 link.exe' | |
3384 | ;; | |
3385 | ||
3386 | *) | |
3387 | # Assume MSVC wrapper | |
3388 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
3389 | dynamic_linker='Win32 ld.exe' | |
3390 | ;; | |
3391 | esac | |
3392 | # FIXME: first we should search . and the directory the executable is in | |
3393 | shlibpath_var=PATH | |
3394 | ;; | |
3395 | ||
3396 | darwin* | rhapsody*) | |
3397 | dynamic_linker="$host_os dyld" | |
3398 | version_type=darwin | |
3399 | need_lib_prefix=no | |
3400 | need_version=no | |
3401 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
3402 | soname_spec='${libname}${release}${major}$shared_ext' | |
3403 | shlibpath_overrides_runpath=yes | |
3404 | shlibpath_var=DYLD_LIBRARY_PATH | |
3405 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
3406 | m4_if([$1], [],[ | |
3407 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) | |
3408 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
3409 | ;; | |
3410 | ||
3411 | dgux*) | |
3412 | version_type=linux | |
3413 | need_lib_prefix=no | |
3414 | need_version=no | |
3415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
3416 | soname_spec='${libname}${release}${shared_ext}$major' | |
3417 | shlibpath_var=LD_LIBRARY_PATH | |
3418 | ;; | |
3419 | ||
3420 | freebsd1*) | |
3421 | dynamic_linker=no | |
3422 | ;; | |
3423 | ||
3424 | freebsd* | dragonfly*) | |
3425 | # DragonFly does not have aout. When/if they implement a new | |
3426 | # versioning mechanism, adjust this. | |
3427 | if test -x /usr/bin/objformat; then | |
3428 | objformat=`/usr/bin/objformat` | |
3429 | else | |
3430 | case $host_os in | |
3431 | freebsd[[123]]*) objformat=aout ;; | |
3432 | *) objformat=elf ;; | |
3433 | esac | |
3434 | fi | |
3435 | version_type=freebsd-$objformat | |
3436 | case $version_type in | |
3437 | freebsd-elf*) | |
3438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
3439 | need_version=no | |
3440 | need_lib_prefix=no | |
3441 | ;; | |
3442 | freebsd-*) | |
3443 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
3444 | need_version=yes | |
3445 | ;; | |
3446 | esac | |
3447 | shlibpath_var=LD_LIBRARY_PATH | |
3448 | case $host_os in | |
3449 | freebsd2*) | |
3450 | shlibpath_overrides_runpath=yes | |
3451 | ;; | |
3452 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | |
3453 | shlibpath_overrides_runpath=yes | |
3454 | hardcode_into_libs=yes | |
3455 | ;; | |
3456 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | |
3457 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | |
3458 | shlibpath_overrides_runpath=no | |
3459 | hardcode_into_libs=yes | |
3460 | ;; | |
3461 | *) # from 4.6 on, and DragonFly | |
3462 | shlibpath_overrides_runpath=yes | |
3463 | hardcode_into_libs=yes | |
3464 | ;; | |
3465 | esac | |
3466 | ;; | |
3467 | ||
3468 | gnu*) | |
3469 | version_type=linux | |
3470 | need_lib_prefix=no | |
3471 | need_version=no | |
3472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
3473 | soname_spec='${libname}${release}${shared_ext}$major' | |
3474 | shlibpath_var=LD_LIBRARY_PATH | |
3475 | hardcode_into_libs=yes | |
3476 | ;; | |
3477 | ||
3478 | haiku*) | |
3479 | version_type=linux | |
3480 | need_lib_prefix=no | |
3481 | need_version=no | |
3482 | dynamic_linker="$host_os runtime_loader" | |
3483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
3484 | soname_spec='${libname}${release}${shared_ext}$major' | |
3485 | shlibpath_var=LIBRARY_PATH | |
3486 | shlibpath_overrides_runpath=yes | |
3487 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
3488 | hardcode_into_libs=yes | |
3489 | ;; | |
3490 | ||
3491 | hpux9* | hpux10* | hpux11*) | |
3492 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
3493 | # link against other versions. | |
3494 | version_type=sunos | |
3495 | need_lib_prefix=no | |
3496 | need_version=no | |
3497 | case $host_cpu in | |
3498 | ia64*) | |
3499 | shrext_cmds='.so' | |
3500 | hardcode_into_libs=yes | |
3501 | dynamic_linker="$host_os dld.so" | |
3502 | shlibpath_var=LD_LIBRARY_PATH | |
3503 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
3504 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3505 | soname_spec='${libname}${release}${shared_ext}$major' | |
3506 | if test "X$HPUX_IA64_MODE" = X32; then | |
3507 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
3508 | else | |
3509 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
3510 | fi | |
3511 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
3512 | ;; | |
3513 | hppa*64*) | |
3514 | shrext_cmds='.sl' | |
3515 | hardcode_into_libs=yes | |
3516 | dynamic_linker="$host_os dld.sl" | |
3517 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
3518 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
3519 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3520 | soname_spec='${libname}${release}${shared_ext}$major' | |
3521 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
3522 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
3523 | ;; | |
3524 | *) | |
3525 | shrext_cmds='.sl' | |
3526 | dynamic_linker="$host_os dld.sl" | |
3527 | shlibpath_var=SHLIB_PATH | |
3528 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
3529 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3530 | soname_spec='${libname}${release}${shared_ext}$major' | |
3531 | ;; | |
3532 | esac | |
3533 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
3534 | postinstall_cmds='chmod 555 $lib' | |
3535 | # or fails outright, so override atomically: | |
3536 | install_override_mode=555 | |
3537 | ;; | |
3538 | ||
3539 | interix[[3-9]]*) | |
3540 | version_type=linux | |
3541 | need_lib_prefix=no | |
3542 | need_version=no | |
3543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
3544 | soname_spec='${libname}${release}${shared_ext}$major' | |
3545 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
3546 | shlibpath_var=LD_LIBRARY_PATH | |
3547 | shlibpath_overrides_runpath=no | |
3548 | hardcode_into_libs=yes | |
3549 | ;; | |
3550 | ||
3551 | irix5* | irix6* | nonstopux*) | |
3552 | case $host_os in | |
3553 | nonstopux*) version_type=nonstopux ;; | |
3554 | *) | |
3555 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
3556 | version_type=linux | |
3557 | else | |
3558 | version_type=irix | |
3559 | fi ;; | |
3560 | esac | |
3561 | need_lib_prefix=no | |
3562 | need_version=no | |
3563 | soname_spec='${libname}${release}${shared_ext}$major' | |
3564 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
3565 | case $host_os in | |
3566 | irix5* | nonstopux*) | |
3567 | libsuff= shlibsuff= | |
3568 | ;; | |
3569 | *) | |
3570 | case $LD in # libtool.m4 will add one of these switches to LD | |
3571 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
3572 | libsuff= shlibsuff= libmagic=32-bit;; | |
3573 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
3574 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
3575 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
3576 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
3577 | *) libsuff= shlibsuff= libmagic=never-match;; | |
3578 | esac | |
3579 | ;; | |
3580 | esac | |
3581 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
3582 | shlibpath_overrides_runpath=no | |
3583 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
3584 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
3585 | hardcode_into_libs=yes | |
3586 | ;; | |
3587 | ||
3588 | # No shared lib support for Linux oldld, aout, or coff. | |
3589 | linux*oldld* | linux*aout* | linux*coff*) | |
3590 | dynamic_linker=no | |
3591 | ;; | |
3592 | ||
3593 | # This must be Linux ELF. | |
3594 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
3595 | version_type=linux | |
3596 | need_lib_prefix=no | |
3597 | need_version=no | |
3598 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3599 | soname_spec='${libname}${release}${shared_ext}$major' | |
3600 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
3601 | shlibpath_var=LD_LIBRARY_PATH | |
3602 | shlibpath_overrides_runpath=no | |
3603 | ||
3604 | # Some binutils ld are patched to set DT_RUNPATH | |
3605 | AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], | |
3606 | [lt_cv_shlibpath_overrides_runpath=no | |
3607 | save_LDFLAGS=$LDFLAGS | |
3608 | save_libdir=$libdir | |
3609 | eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | |
3610 | LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | |
3611 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
3612 | [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | |
3613 | [lt_cv_shlibpath_overrides_runpath=yes])]) | |
3614 | LDFLAGS=$save_LDFLAGS | |
3615 | libdir=$save_libdir | |
3616 | ]) | |
3617 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
3618 | ||
3619 | # This implies no fast_install, which is unacceptable. | |
3620 | # Some rework will be needed to allow for fast_install | |
3621 | # before this can be enabled. | |
3622 | hardcode_into_libs=yes | |
3623 | ||
3624 | # Add ABI-specific directories to the system library path. | |
3625 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
3626 | ||
3627 | # Append ld.so.conf contents to the search path | |
3628 | if test -f /etc/ld.so.conf; then | |
3629 | 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' ' '` | |
3630 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | |
3631 | ||
3632 | fi | |
3633 | ||
3634 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
3635 | # powerpc, because MkLinux only supported shared libraries with the | |
3636 | # GNU dynamic linker. Since this was broken with cross compilers, | |
3637 | # most powerpc-linux boxes support dynamic linking these days and | |
3638 | # people can always --disable-shared, the test was removed, and we | |
3639 | # assume the GNU/Linux dynamic linker is in use. | |
3640 | dynamic_linker='GNU/Linux ld.so' | |
3641 | ;; | |
3642 | ||
3643 | netbsd*) | |
3644 | version_type=sunos | |
3645 | need_lib_prefix=no | |
3646 | need_version=no | |
3647 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
3648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
3649 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
3650 | dynamic_linker='NetBSD (a.out) ld.so' | |
3651 | else | |
3652 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
3653 | soname_spec='${libname}${release}${shared_ext}$major' | |
3654 | dynamic_linker='NetBSD ld.elf_so' | |
3655 | fi | |
3656 | shlibpath_var=LD_LIBRARY_PATH | |
3657 | shlibpath_overrides_runpath=yes | |
3658 | hardcode_into_libs=yes | |
3659 | ;; | |
3660 | ||
3661 | newsos6) | |
3662 | version_type=linux | |
3663 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3664 | shlibpath_var=LD_LIBRARY_PATH | |
3665 | shlibpath_overrides_runpath=yes | |
3666 | ;; | |
3667 | ||
3668 | *nto* | *qnx*) | |
3669 | version_type=qnx | |
3670 | need_lib_prefix=no | |
3671 | need_version=no | |
3672 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3673 | soname_spec='${libname}${release}${shared_ext}$major' | |
3674 | shlibpath_var=LD_LIBRARY_PATH | |
3675 | shlibpath_overrides_runpath=no | |
3676 | hardcode_into_libs=yes | |
3677 | dynamic_linker='ldqnx.so' | |
3678 | ;; | |
3679 | ||
3680 | openbsd*) | |
3681 | version_type=sunos | |
3682 | sys_lib_dlsearch_path_spec="/usr/lib" | |
3683 | need_lib_prefix=no | |
3684 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
3685 | case $host_os in | |
3686 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
3687 | *) need_version=no ;; | |
3688 | esac | |
3689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
3690 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
3691 | shlibpath_var=LD_LIBRARY_PATH | |
3692 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3693 | case $host_os in | |
3694 | openbsd2.[[89]] | openbsd2.[[89]].*) | |
3695 | shlibpath_overrides_runpath=no | |
3696 | ;; | |
3697 | *) | |
3698 | shlibpath_overrides_runpath=yes | |
3699 | ;; | |
3700 | esac | |
3701 | else | |
3702 | shlibpath_overrides_runpath=yes | |
3703 | fi | |
3704 | ;; | |
3705 | ||
3706 | os2*) | |
3707 | libname_spec='$name' | |
3708 | shrext_cmds=".dll" | |
3709 | need_lib_prefix=no | |
3710 | library_names_spec='$libname${shared_ext} $libname.a' | |
3711 | dynamic_linker='OS/2 ld.exe' | |
3712 | shlibpath_var=LIBPATH | |
3713 | ;; | |
3714 | ||
3715 | osf3* | osf4* | osf5*) | |
3716 | version_type=osf | |
3717 | need_lib_prefix=no | |
3718 | need_version=no | |
3719 | soname_spec='${libname}${release}${shared_ext}$major' | |
3720 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3721 | shlibpath_var=LD_LIBRARY_PATH | |
3722 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
3723 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
3724 | ;; | |
3725 | ||
3726 | rdos*) | |
3727 | dynamic_linker=no | |
3728 | ;; | |
3729 | ||
3730 | solaris*) | |
3731 | version_type=linux | |
3732 | need_lib_prefix=no | |
3733 | need_version=no | |
3734 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3735 | soname_spec='${libname}${release}${shared_ext}$major' | |
3736 | shlibpath_var=LD_LIBRARY_PATH | |
3737 | shlibpath_overrides_runpath=yes | |
3738 | hardcode_into_libs=yes | |
3739 | # ldd complains unless libraries are executable | |
3740 | postinstall_cmds='chmod +x $lib' | |
3741 | ;; | |
3742 | ||
3743 | sunos4*) | |
3744 | version_type=sunos | |
3745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
3746 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
3747 | shlibpath_var=LD_LIBRARY_PATH | |
3748 | shlibpath_overrides_runpath=yes | |
3749 | if test "$with_gnu_ld" = yes; then | |
3750 | need_lib_prefix=no | |
3751 | fi | |
3752 | need_version=yes | |
3753 | ;; | |
3754 | ||
3755 | sysv4 | sysv4.3*) | |
3756 | version_type=linux | |
3757 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3758 | soname_spec='${libname}${release}${shared_ext}$major' | |
3759 | shlibpath_var=LD_LIBRARY_PATH | |
3760 | case $host_vendor in | |
3761 | sni) | |
3762 | shlibpath_overrides_runpath=no | |
3763 | need_lib_prefix=no | |
3764 | runpath_var=LD_RUN_PATH | |
3765 | ;; | |
3766 | siemens) | |
3767 | need_lib_prefix=no | |
3768 | ;; | |
3769 | motorola) | |
3770 | need_lib_prefix=no | |
3771 | need_version=no | |
3772 | shlibpath_overrides_runpath=no | |
3773 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
3774 | ;; | |
3775 | esac | |
3776 | ;; | |
3777 | ||
3778 | sysv4*MP*) | |
3779 | if test -d /usr/nec ;then | |
3780 | version_type=linux | |
3781 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
3782 | soname_spec='$libname${shared_ext}.$major' | |
3783 | shlibpath_var=LD_LIBRARY_PATH | |
3784 | fi | |
3785 | ;; | |
3786 | ||
3787 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
3788 | version_type=freebsd-elf | |
3789 | need_lib_prefix=no | |
3790 | need_version=no | |
3791 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
3792 | soname_spec='${libname}${release}${shared_ext}$major' | |
3793 | shlibpath_var=LD_LIBRARY_PATH | |
3794 | shlibpath_overrides_runpath=yes | |
3795 | hardcode_into_libs=yes | |
3796 | if test "$with_gnu_ld" = yes; then | |
3797 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
3798 | else | |
3799 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
3800 | case $host_os in | |
3801 | sco3.2v5*) | |
3802 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
3803 | ;; | |
3804 | esac | |
3805 | fi | |
3806 | sys_lib_dlsearch_path_spec='/usr/lib' | |
3807 | ;; | |
3808 | ||
3809 | tpf*) | |
3810 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
3811 | version_type=linux | |
3812 | need_lib_prefix=no | |
3813 | need_version=no | |
3814 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3815 | shlibpath_var=LD_LIBRARY_PATH | |
3816 | shlibpath_overrides_runpath=no | |
3817 | hardcode_into_libs=yes | |
3818 | ;; | |
3819 | ||
3820 | uts4*) | |
3821 | version_type=linux | |
3822 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
3823 | soname_spec='${libname}${release}${shared_ext}$major' | |
3824 | shlibpath_var=LD_LIBRARY_PATH | |
3825 | ;; | |
3826 | ||
3827 | *) | |
3828 | dynamic_linker=no | |
3829 | ;; | |
3830 | esac | |
3831 | AC_MSG_RESULT([$dynamic_linker]) | |
3832 | test "$dynamic_linker" = no && can_build_shared=no | |
3833 | ||
3834 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
3835 | if test "$GCC" = yes; then | |
3836 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
3837 | fi | |
3838 | ||
3839 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
3840 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
3841 | fi | |
3842 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
3843 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
3844 | fi | |
3845 | ||
3846 | _LT_DECL([], [variables_saved_for_relink], [1], | |
3847 | [Variables whose values should be saved in libtool wrapper scripts and | |
3848 | restored at link time]) | |
3849 | _LT_DECL([], [need_lib_prefix], [0], | |
3850 | [Do we need the "lib" prefix for modules?]) | |
3851 | _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) | |
3852 | _LT_DECL([], [version_type], [0], [Library versioning type]) | |
3853 | _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) | |
3854 | _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) | |
3855 | _LT_DECL([], [shlibpath_overrides_runpath], [0], | |
3856 | [Is shlibpath searched before the hard-coded library search path?]) | |
3857 | _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) | |
3858 | _LT_DECL([], [library_names_spec], [1], | |
3859 | [[List of archive names. First name is the real one, the rest are links. | |
3860 | The last name is the one that the linker finds with -lNAME]]) | |
3861 | _LT_DECL([], [soname_spec], [1], | |
3862 | [[The coded name of the library, if different from the real name]]) | |
3863 | _LT_DECL([], [install_override_mode], [1], | |
3864 | [Permission mode override for installation of shared libraries]) | |
3865 | _LT_DECL([], [postinstall_cmds], [2], | |
3866 | [Command to use after installation of a shared archive]) | |
3867 | _LT_DECL([], [postuninstall_cmds], [2], | |
3868 | [Command to use after uninstallation of a shared archive]) | |
3869 | _LT_DECL([], [finish_cmds], [2], | |
3870 | [Commands used to finish a libtool library installation in a directory]) | |
3871 | _LT_DECL([], [finish_eval], [1], | |
3872 | [[As "finish_cmds", except a single script fragment to be evaled but | |
3873 | not shown]]) | |
3874 | _LT_DECL([], [hardcode_into_libs], [0], | |
3875 | [Whether we should hardcode library paths into libraries]) | |
3876 | _LT_DECL([], [sys_lib_search_path_spec], [2], | |
3877 | [Compile-time system search path for libraries]) | |
3878 | _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], | |
3879 | [Run-time system search path for libraries]) | |
3880 | ])# _LT_SYS_DYNAMIC_LINKER | |
3881 | ||
3882 | ||
3883 | # _LT_PATH_TOOL_PREFIX(TOOL) | |
3884 | # -------------------------- | |
3885 | # find a file program which can recognize shared library | |
3886 | AC_DEFUN([_LT_PATH_TOOL_PREFIX], | |
3887 | [m4_require([_LT_DECL_EGREP])dnl | |
3888 | AC_MSG_CHECKING([for $1]) | |
3889 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | |
3890 | [case $MAGIC_CMD in | |
3891 | [[\\/*] | ?:[\\/]*]) | |
3892 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3893 | ;; | |
3894 | *) | |
3895 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
3896 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3897 | dnl $ac_dummy forces splitting on constant user-supplied paths. | |
3898 | dnl POSIX.2 word splitting is done only on the output of word expansions, | |
3899 | dnl not every word. This closes a longstanding sh security hole. | |
3900 | ac_dummy="m4_if([$2], , $PATH, [$2])" | |
3901 | for ac_dir in $ac_dummy; do | |
3902 | IFS="$lt_save_ifs" | |
3903 | test -z "$ac_dir" && ac_dir=. | |
3904 | if test -f $ac_dir/$1; then | |
3905 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | |
3906 | if test -n "$file_magic_test_file"; then | |
3907 | case $deplibs_check_method in | |
3908 | "file_magic "*) | |
3909 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
3910 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3911 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
3912 | $EGREP "$file_magic_regex" > /dev/null; then | |
3913 | : | |
3914 | else | |
3915 | cat <<_LT_EOF 1>&2 | |
3916 | ||
3917 | *** Warning: the command libtool uses to detect shared libraries, | |
3918 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3919 | *** The result is that libtool may fail to recognize shared libraries | |
3920 | *** as such. This will affect the creation of libtool libraries that | |
3921 | *** depend on shared libraries, but programs linked with such libtool | |
3922 | *** libraries will work regardless of this problem. Nevertheless, you | |
3923 | *** may want to report the problem to your system manager and/or to | |
3924 | *** bug-libtool@gnu.org | |
3925 | ||
3926 | _LT_EOF | |
3927 | fi ;; | |
3928 | esac | |
3929 | fi | |
3930 | break | |
3931 | fi | |
3932 | done | |
3933 | IFS="$lt_save_ifs" | |
3934 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
3935 | ;; | |
3936 | esac]) | |
3937 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
3938 | if test -n "$MAGIC_CMD"; then | |
3939 | AC_MSG_RESULT($MAGIC_CMD) | |
3940 | else | |
3941 | AC_MSG_RESULT(no) | |
3942 | fi | |
3943 | _LT_DECL([], [MAGIC_CMD], [0], | |
3944 | [Used to examine libraries when file_magic_cmd begins with "file"])dnl | |
3945 | ])# _LT_PATH_TOOL_PREFIX | |
3946 | ||
3947 | # Old name: | |
3948 | AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) | |
3949 | dnl aclocal-1.4 backwards compatibility: | |
3950 | dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) | |
3951 | ||
3952 | ||
3953 | # _LT_PATH_MAGIC | |
3954 | # -------------- | |
3955 | # find a file program which can recognize a shared library | |
3956 | m4_defun([_LT_PATH_MAGIC], | |
3957 | [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | |
3958 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
3959 | if test -n "$ac_tool_prefix"; then | |
3960 | _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | |
3961 | else | |
3962 | MAGIC_CMD=: | |
3963 | fi | |
3964 | fi | |
3965 | ])# _LT_PATH_MAGIC | |
3966 | ||
3967 | ||
3968 | # LT_PATH_LD | |
3969 | # ---------- | |
3970 | # find the pathname to the GNU or non-GNU linker | |
3971 | AC_DEFUN([LT_PATH_LD], | |
3972 | [AC_REQUIRE([AC_PROG_CC])dnl | |
3973 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
3974 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
3975 | m4_require([_LT_DECL_SED])dnl | |
3976 | m4_require([_LT_DECL_EGREP])dnl | |
3977 | m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | |
3978 | ||
3979 | AC_ARG_WITH([gnu-ld], | |
3980 | [AS_HELP_STRING([--with-gnu-ld], | |
3981 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], | |
3982 | [test "$withval" = no || with_gnu_ld=yes], | |
3983 | [with_gnu_ld=no])dnl | |
3984 | ||
3985 | ac_prog=ld | |
3986 | if test "$GCC" = yes; then | |
3987 | # Check if gcc -print-prog-name=ld gives a path. | |
3988 | AC_MSG_CHECKING([for ld used by $CC]) | |
3989 | case $host in | |
3990 | *-*-mingw*) | |
3991 | # gcc leaves a trailing carriage return which upsets mingw | |
3992 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3993 | *) | |
3994 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3995 | esac | |
3996 | case $ac_prog in | |
3997 | # Accept absolute paths. | |
3998 | [[\\/]]* | ?:[[\\/]]*) | |
3999 | re_direlt='/[[^/]][[^/]]*/\.\./' | |
4000 | # Canonicalize the pathname of ld | |
4001 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4002 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4003 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
4004 | done | |
4005 | test -z "$LD" && LD="$ac_prog" | |
4006 | ;; | |
4007 | "") | |
4008 | # If it fails, then pretend we aren't using GCC. | |
4009 | ac_prog=ld | |
4010 | ;; | |
4011 | *) | |
4012 | # If it is relative, then search for the first ld in PATH. | |
4013 | with_gnu_ld=unknown | |
4014 | ;; | |
4015 | esac | |
4016 | elif test "$with_gnu_ld" = yes; then | |
4017 | AC_MSG_CHECKING([for GNU ld]) | |
4018 | else | |
4019 | AC_MSG_CHECKING([for non-GNU ld]) | |
4020 | fi | |
4021 | AC_CACHE_VAL(lt_cv_path_LD, | |
4022 | [if test -z "$LD"; then | |
4023 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4024 | for ac_dir in $PATH; do | |
4025 | IFS="$lt_save_ifs" | |
4026 | test -z "$ac_dir" && ac_dir=. | |
4027 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4028 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4029 | # Check to see if the program is GNU ld. I'd rather use --version, | |
4030 | # but apparently some variants of GNU ld only accept -v. | |
4031 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
4032 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
4033 | *GNU* | *'with BFD'*) | |
4034 | test "$with_gnu_ld" != no && break | |
4035 | ;; | |
4036 | *) | |
4037 | test "$with_gnu_ld" != yes && break | |
4038 | ;; | |
4039 | esac | |
4040 | fi | |
4041 | done | |
4042 | IFS="$lt_save_ifs" | |
4043 | else | |
4044 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
4045 | fi]) | |
4046 | LD="$lt_cv_path_LD" | |
4047 | if test -n "$LD"; then | |
4048 | AC_MSG_RESULT($LD) | |
4049 | else | |
4050 | AC_MSG_RESULT(no) | |
4051 | fi | |
4052 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | |
4053 | _LT_PATH_LD_GNU | |
4054 | AC_SUBST([LD]) | |
4055 | ||
4056 | _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) | |
4057 | ])# LT_PATH_LD | |
4058 | ||
4059 | # Old names: | |
4060 | AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) | |
4061 | AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) | |
4062 | dnl aclocal-1.4 backwards compatibility: | |
4063 | dnl AC_DEFUN([AM_PROG_LD], []) | |
4064 | dnl AC_DEFUN([AC_PROG_LD], []) | |
4065 | ||
4066 | ||
4067 | # _LT_PATH_LD_GNU | |
4068 | #- -------------- | |
4069 | m4_defun([_LT_PATH_LD_GNU], | |
4070 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | |
4071 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. | |
4072 | case `$LD -v 2>&1 </dev/null` in | |
4073 | *GNU* | *'with BFD'*) | |
4074 | lt_cv_prog_gnu_ld=yes | |
4075 | ;; | |
4076 | *) | |
4077 | lt_cv_prog_gnu_ld=no | |
4078 | ;; | |
4079 | esac]) | |
4080 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
4081 | ])# _LT_PATH_LD_GNU | |
4082 | ||
4083 | ||
4084 | # _LT_CMD_RELOAD | |
4085 | # -------------- | |
4086 | # find reload flag for linker | |
4087 | # -- PORTME Some linkers may need a different reload flag. | |
4088 | m4_defun([_LT_CMD_RELOAD], | |
4089 | [AC_CACHE_CHECK([for $LD option to reload object files], | |
4090 | lt_cv_ld_reload_flag, | |
4091 | [lt_cv_ld_reload_flag='-r']) | |
4092 | reload_flag=$lt_cv_ld_reload_flag | |
4093 | case $reload_flag in | |
4094 | "" | " "*) ;; | |
4095 | *) reload_flag=" $reload_flag" ;; | |
4096 | esac | |
4097 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4098 | case $host_os in | |
4099 | cygwin* | mingw* | pw32* | cegcc*) | |
4100 | if test "$GCC" != yes; then | |
4101 | reload_cmds=false | |
4102 | fi | |
4103 | ;; | |
4104 | darwin*) | |
4105 | if test "$GCC" = yes; then | |
4106 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4107 | else | |
4108 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4109 | fi | |
4110 | ;; | |
4111 | esac | |
4112 | _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl | |
4113 | _LT_TAGDECL([], [reload_cmds], [2])dnl | |
4114 | ])# _LT_CMD_RELOAD | |
4115 | ||
4116 | ||
4117 | # _LT_CHECK_MAGIC_METHOD | |
4118 | # ---------------------- | |
4119 | # how to check for library dependencies | |
4120 | # -- PORTME fill in with the dynamic library characteristics | |
4121 | m4_defun([_LT_CHECK_MAGIC_METHOD], | |
4122 | [m4_require([_LT_DECL_EGREP]) | |
4123 | m4_require([_LT_DECL_OBJDUMP]) | |
4124 | AC_CACHE_CHECK([how to recognize dependent libraries], | |
4125 | lt_cv_deplibs_check_method, | |
4126 | [lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4127 | lt_cv_file_magic_test_file= | |
4128 | lt_cv_deplibs_check_method='unknown' | |
4129 | # Need to set the preceding variable on all platforms that support | |
4130 | # interlibrary dependencies. | |
4131 | # 'none' -- dependencies not supported. | |
4132 | # `unknown' -- same as none, but documents that we really don't know. | |
4133 | # 'pass_all' -- all dependencies passed with no checks. | |
4134 | # 'test_compile' -- check by making test program. | |
4135 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4136 | # which responds to the $file_magic_cmd with a given extended regex. | |
4137 | # If you have `file' or equivalent on your system and you're not sure | |
4138 | # whether `pass_all' will *always* work, you probably want this one. | |
4139 | ||
4140 | case $host_os in | |
4141 | aix[[4-9]]*) | |
4142 | lt_cv_deplibs_check_method=pass_all | |
4143 | ;; | |
4144 | ||
4145 | beos*) | |
4146 | lt_cv_deplibs_check_method=pass_all | |
4147 | ;; | |
4148 | ||
4149 | bsdi[[45]]*) | |
4150 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | |
4151 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4152 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4153 | ;; | |
4154 | ||
4155 | cygwin*) | |
4156 | # func_win32_libid is a shell function defined in ltmain.sh | |
4157 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4158 | lt_cv_file_magic_cmd='func_win32_libid' | |
4159 | ;; | |
4160 | ||
4161 | mingw* | pw32*) | |
4162 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4163 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4164 | # unless we find 'file', for example because we are cross-compiling. | |
4165 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
4166 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
4167 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4168 | lt_cv_file_magic_cmd='func_win32_libid' | |
4169 | else | |
4170 | # Keep this pattern in sync with the one in func_win32_libid. | |
4171 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
4172 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4173 | fi | |
4174 | ;; | |
4175 | ||
4176 | cegcc*) | |
4177 | # use the weaker test based on 'objdump'. See mingw*. | |
4178 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
4179 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4180 | ;; | |
4181 | ||
4182 | darwin* | rhapsody*) | |
4183 | lt_cv_deplibs_check_method=pass_all | |
4184 | ;; | |
4185 | ||
4186 | freebsd* | dragonfly*) | |
4187 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4188 | case $host_cpu in | |
4189 | i*86 ) | |
4190 | # Not sure whether the presence of OpenBSD here was a mistake. | |
4191 | # Let's accept both of them until this is cleared up. | |
4192 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | |
4193 | lt_cv_file_magic_cmd=/usr/bin/file | |
4194 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
4195 | ;; | |
4196 | esac | |
4197 | else | |
4198 | lt_cv_deplibs_check_method=pass_all | |
4199 | fi | |
4200 | ;; | |
4201 | ||
4202 | gnu*) | |
4203 | lt_cv_deplibs_check_method=pass_all | |
4204 | ;; | |
4205 | ||
4206 | haiku*) | |
4207 | lt_cv_deplibs_check_method=pass_all | |
4208 | ;; | |
4209 | ||
4210 | hpux10.20* | hpux11*) | |
4211 | lt_cv_file_magic_cmd=/usr/bin/file | |
4212 | case $host_cpu in | |
4213 | ia64*) | |
4214 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | |
4215 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
4216 | ;; | |
4217 | hppa*64*) | |
4218 | [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]'] | |
4219 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
4220 | ;; | |
4221 | *) | |
4222 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' | |
4223 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
4224 | ;; | |
4225 | esac | |
4226 | ;; | |
4227 | ||
4228 | interix[[3-9]]*) | |
4229 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
4230 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | |
4231 | ;; | |
4232 | ||
4233 | irix5* | irix6* | nonstopux*) | |
4234 | case $LD in | |
4235 | *-32|*"-32 ") libmagic=32-bit;; | |
4236 | *-n32|*"-n32 ") libmagic=N32;; | |
4237 | *-64|*"-64 ") libmagic=64-bit;; | |
4238 | *) libmagic=never-match;; | |
4239 | esac | |
4240 | lt_cv_deplibs_check_method=pass_all | |
4241 | ;; | |
4242 | ||
4243 | # This must be Linux ELF. | |
4244 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4245 | lt_cv_deplibs_check_method=pass_all | |
4246 | ;; | |
4247 | ||
4248 | netbsd*) | |
4249 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
4250 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | |
4251 | else | |
4252 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | |
4253 | fi | |
4254 | ;; | |
4255 | ||
4256 | newos6*) | |
4257 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | |
4258 | lt_cv_file_magic_cmd=/usr/bin/file | |
4259 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
4260 | ;; | |
4261 | ||
4262 | *nto* | *qnx*) | |
4263 | lt_cv_deplibs_check_method=pass_all | |
4264 | ;; | |
4265 | ||
4266 | openbsd*) | |
4267 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
4268 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | |
4269 | else | |
4270 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | |
4271 | fi | |
4272 | ;; | |
4273 | ||
4274 | osf3* | osf4* | osf5*) | |
4275 | lt_cv_deplibs_check_method=pass_all | |
4276 | ;; | |
4277 | ||
4278 | rdos*) | |
4279 | lt_cv_deplibs_check_method=pass_all | |
4280 | ;; | |
4281 | ||
4282 | solaris*) | |
4283 | lt_cv_deplibs_check_method=pass_all | |
4284 | ;; | |
4285 | ||
4286 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
4287 | lt_cv_deplibs_check_method=pass_all | |
4288 | ;; | |
4289 | ||
4290 | sysv4 | sysv4.3*) | |
4291 | case $host_vendor in | |
4292 | motorola) | |
4293 | 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]]' | |
4294 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
4295 | ;; | |
4296 | ncr) | |
4297 | lt_cv_deplibs_check_method=pass_all | |
4298 | ;; | |
4299 | sequent) | |
4300 | lt_cv_file_magic_cmd='/bin/file' | |
4301 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | |
4302 | ;; | |
4303 | sni) | |
4304 | lt_cv_file_magic_cmd='/bin/file' | |
4305 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | |
4306 | lt_cv_file_magic_test_file=/lib/libc.so | |
4307 | ;; | |
4308 | siemens) | |
4309 | lt_cv_deplibs_check_method=pass_all | |
4310 | ;; | |
4311 | pc) | |
4312 | lt_cv_deplibs_check_method=pass_all | |
4313 | ;; | |
4314 | esac | |
4315 | ;; | |
4316 | ||
4317 | tpf*) | |
4318 | lt_cv_deplibs_check_method=pass_all | |
4319 | ;; | |
4320 | esac | |
4321 | ]) | |
4322 | ||
4323 | file_magic_glob= | |
4324 | want_nocaseglob=no | |
4325 | if test "$build" = "$host"; then | |
4326 | case $host_os in | |
4327 | mingw* | pw32*) | |
4328 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
4329 | want_nocaseglob=yes | |
4330 | else | |
4331 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` | |
4332 | fi | |
4333 | ;; | |
4334 | esac | |
4335 | fi | |
4336 | ||
4337 | file_magic_cmd=$lt_cv_file_magic_cmd | |
4338 | deplibs_check_method=$lt_cv_deplibs_check_method | |
4339 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
4340 | ||
4341 | _LT_DECL([], [deplibs_check_method], [1], | |
4342 | [Method to check whether dependent libraries are shared objects]) | |
4343 | _LT_DECL([], [file_magic_cmd], [1], | |
4344 | [Command to use when deplibs_check_method = "file_magic"]) | |
4345 | _LT_DECL([], [file_magic_glob], [1], | |
4346 | [How to find potential files when deplibs_check_method = "file_magic"]) | |
4347 | _LT_DECL([], [want_nocaseglob], [1], | |
4348 | [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) | |
4349 | ])# _LT_CHECK_MAGIC_METHOD | |
4350 | ||
4351 | ||
4352 | # LT_PATH_NM | |
4353 | # ---------- | |
4354 | # find the pathname to a BSD- or MS-compatible name lister | |
4355 | AC_DEFUN([LT_PATH_NM], | |
4356 | [AC_REQUIRE([AC_PROG_CC])dnl | |
4357 | AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, | |
4358 | [if test -n "$NM"; then | |
4359 | # Let the user override the test. | |
4360 | lt_cv_path_NM="$NM" | |
4361 | else | |
4362 | lt_nm_to_check="${ac_tool_prefix}nm" | |
4363 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4364 | lt_nm_to_check="$lt_nm_to_check nm" | |
4365 | fi | |
4366 | for lt_tmp_nm in $lt_nm_to_check; do | |
4367 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4368 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4369 | IFS="$lt_save_ifs" | |
4370 | test -z "$ac_dir" && ac_dir=. | |
4371 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4372 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4373 | # Check to see if the nm accepts a BSD-compat flag. | |
4374 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4375 | # nm: unknown option "B" ignored | |
4376 | # Tru64's nm complains that /dev/null is an invalid object file | |
4377 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4378 | */dev/null* | *'Invalid file or object type'*) | |
4379 | lt_cv_path_NM="$tmp_nm -B" | |
4380 | break | |
4381 | ;; | |
4382 | *) | |
4383 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4384 | */dev/null*) | |
4385 | lt_cv_path_NM="$tmp_nm -p" | |
4386 | break | |
4387 | ;; | |
4388 | *) | |
4389 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4390 | continue # so that we can try to find one that supports BSD flags | |
4391 | ;; | |
4392 | esac | |
4393 | ;; | |
4394 | esac | |
4395 | fi | |
4396 | done | |
4397 | IFS="$lt_save_ifs" | |
4398 | done | |
4399 | : ${lt_cv_path_NM=no} | |
4400 | fi]) | |
4401 | if test "$lt_cv_path_NM" != "no"; then | |
4402 | NM="$lt_cv_path_NM" | |
4403 | else | |
4404 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
4405 | if test -n "$DUMPBIN"; then : | |
4406 | # Let the user override the test. | |
4407 | else | |
4408 | AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | |
4409 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
4410 | *COFF*) | |
4411 | DUMPBIN="$DUMPBIN -symbols" | |
4412 | ;; | |
4413 | *) | |
4414 | DUMPBIN=: | |
4415 | ;; | |
4416 | esac | |
4417 | fi | |
4418 | AC_SUBST([DUMPBIN]) | |
4419 | if test "$DUMPBIN" != ":"; then | |
4420 | NM="$DUMPBIN" | |
4421 | fi | |
4422 | fi | |
4423 | test -z "$NM" && NM=nm | |
4424 | AC_SUBST([NM]) | |
4425 | _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | |
4426 | ||
4427 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | |
4428 | [lt_cv_nm_interface="BSD nm" | |
4429 | echo "int some_variable = 0;" > conftest.$ac_ext | |
4430 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | |
4431 | (eval "$ac_compile" 2>conftest.err) | |
4432 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
4433 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | |
4434 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
4435 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
4436 | (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) | |
4437 | cat conftest.out >&AS_MESSAGE_LOG_FD | |
4438 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4439 | lt_cv_nm_interface="MS dumpbin" | |
4440 | fi | |
4441 | rm -f conftest*]) | |
4442 | ])# LT_PATH_NM | |
4443 | ||
4444 | # Old names: | |
4445 | AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) | |
4446 | AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) | |
4447 | dnl aclocal-1.4 backwards compatibility: | |
4448 | dnl AC_DEFUN([AM_PROG_NM], []) | |
4449 | dnl AC_DEFUN([AC_PROG_NM], []) | |
4450 | ||
4451 | # _LT_CHECK_SHAREDLIB_FROM_LINKLIB | |
4452 | # -------------------------------- | |
4453 | # how to determine the name of the shared library | |
4454 | # associated with a specific link library. | |
4455 | # -- PORTME fill in with the dynamic library characteristics | |
4456 | m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], | |
4457 | [m4_require([_LT_DECL_EGREP]) | |
4458 | m4_require([_LT_DECL_OBJDUMP]) | |
4459 | m4_require([_LT_DECL_DLLTOOL]) | |
4460 | AC_CACHE_CHECK([how to associate runtime and link libraries], | |
4461 | lt_cv_sharedlib_from_linklib_cmd, | |
4462 | [lt_cv_sharedlib_from_linklib_cmd='unknown' | |
4463 | ||
4464 | case $host_os in | |
4465 | cygwin* | mingw* | pw32* | cegcc*) | |
4466 | # two different shell functions defined in ltmain.sh | |
4467 | # decide which to use based on capabilities of $DLLTOOL | |
4468 | case `$DLLTOOL --help 2>&1` in | |
4469 | *--identify-strict*) | |
4470 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
4471 | ;; | |
4472 | *) | |
4473 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
4474 | ;; | |
4475 | esac | |
4476 | ;; | |
4477 | *) | |
4478 | # fallback: assume linklib IS sharedlib | |
4479 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
4480 | ;; | |
4481 | esac | |
4482 | ]) | |
4483 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
4484 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
4485 | ||
4486 | _LT_DECL([], [sharedlib_from_linklib_cmd], [1], | |
4487 | [Command to associate shared and link libraries]) | |
4488 | ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | |
4489 | ||
4490 | ||
4491 | # _LT_PATH_MANIFEST_TOOL | |
4492 | # ---------------------- | |
4493 | # locate the manifest tool | |
4494 | m4_defun([_LT_PATH_MANIFEST_TOOL], | |
4495 | [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) | |
4496 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
4497 | AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], | |
4498 | [lt_cv_path_mainfest_tool=no | |
4499 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD | |
4500 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
4501 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
4502 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
4503 | lt_cv_path_mainfest_tool=yes | |
4504 | fi | |
4505 | rm -f conftest*]) | |
4506 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
4507 | MANIFEST_TOOL=: | |
4508 | fi | |
4509 | _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl | |
4510 | ])# _LT_PATH_MANIFEST_TOOL | |
4511 | ||
4512 | ||
4513 | # LT_LIB_M | |
4514 | # -------- | |
4515 | # check for math library | |
4516 | AC_DEFUN([LT_LIB_M], | |
4517 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
4518 | LIBM= | |
4519 | case $host in | |
4520 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
4521 | # These system don't have libm, or don't need it | |
4522 | ;; | |
4523 | *-ncr-sysv4.3*) | |
4524 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | |
4525 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | |
4526 | ;; | |
4527 | *) | |
4528 | AC_CHECK_LIB(m, cos, LIBM="-lm") | |
4529 | ;; | |
4530 | esac | |
4531 | AC_SUBST([LIBM]) | |
4532 | ])# LT_LIB_M | |
4533 | ||
4534 | # Old name: | |
4535 | AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) | |
4536 | dnl aclocal-1.4 backwards compatibility: | |
4537 | dnl AC_DEFUN([AC_CHECK_LIBM], []) | |
4538 | ||
4539 | ||
4540 | # _LT_COMPILER_NO_RTTI([TAGNAME]) | |
4541 | # ------------------------------- | |
4542 | m4_defun([_LT_COMPILER_NO_RTTI], | |
4543 | [m4_require([_LT_TAG_COMPILER])dnl | |
4544 | ||
4545 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
4546 | ||
4547 | if test "$GCC" = yes; then | |
4548 | case $cc_basename in | |
4549 | nvcc*) | |
4550 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; | |
4551 | *) | |
4552 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; | |
4553 | esac | |
4554 | ||
4555 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | |
4556 | lt_cv_prog_compiler_rtti_exceptions, | |
4557 | [-fno-rtti -fno-exceptions], [], | |
4558 | [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | |
4559 | fi | |
4560 | _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], | |
4561 | [Compiler flag to turn off builtin functions]) | |
4562 | ])# _LT_COMPILER_NO_RTTI | |
4563 | ||
4564 | ||
4565 | # _LT_CMD_GLOBAL_SYMBOLS | |
4566 | # ---------------------- | |
4567 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | |
4568 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
4569 | AC_REQUIRE([AC_PROG_CC])dnl | |
4570 | AC_REQUIRE([AC_PROG_AWK])dnl | |
4571 | AC_REQUIRE([LT_PATH_NM])dnl | |
4572 | AC_REQUIRE([LT_PATH_LD])dnl | |
4573 | m4_require([_LT_DECL_SED])dnl | |
4574 | m4_require([_LT_DECL_EGREP])dnl | |
4575 | m4_require([_LT_TAG_COMPILER])dnl | |
4576 | ||
4577 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
4578 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | |
4579 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | |
4580 | [ | |
4581 | # These are sane defaults that work on at least a few old systems. | |
4582 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
4583 | ||
4584 | # Character class describing NM global symbol codes. | |
4585 | symcode='[[BCDEGRST]]' | |
4586 | ||
4587 | # Regexp to match symbols that can be accessed directly from C. | |
4588 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | |
4589 | ||
4590 | # Define system-specific variables. | |
4591 | case $host_os in | |
4592 | aix*) | |
4593 | symcode='[[BCDT]]' | |
4594 | ;; | |
4595 | cygwin* | mingw* | pw32* | cegcc*) | |
4596 | symcode='[[ABCDGISTW]]' | |
4597 | ;; | |
4598 | hpux*) | |
4599 | if test "$host_cpu" = ia64; then | |
4600 | symcode='[[ABCDEGRST]]' | |
4601 | fi | |
4602 | ;; | |
4603 | irix* | nonstopux*) | |
4604 | symcode='[[BCDEGRST]]' | |
4605 | ;; | |
4606 | osf*) | |
4607 | symcode='[[BCDEGQRST]]' | |
4608 | ;; | |
4609 | solaris*) | |
4610 | symcode='[[BDRT]]' | |
4611 | ;; | |
4612 | sco3.2v5*) | |
4613 | symcode='[[DT]]' | |
4614 | ;; | |
4615 | sysv4.2uw2*) | |
4616 | symcode='[[DT]]' | |
4617 | ;; | |
4618 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
4619 | symcode='[[ABDT]]' | |
4620 | ;; | |
4621 | sysv4) | |
4622 | symcode='[[DFNSTU]]' | |
4623 | ;; | |
4624 | esac | |
4625 | ||
4626 | # If we're using GNU nm, then use its standard symbol codes. | |
4627 | case `$NM -V 2>&1` in | |
4628 | *GNU* | *'with BFD'*) | |
4629 | symcode='[[ABCDGIRSTW]]' ;; | |
4630 | esac | |
4631 | ||
4632 | # Transform an extracted symbol line into a proper C declaration. | |
4633 | # Some systems (esp. on ia64) link data and code symbols differently, | |
4634 | # so use this general approach. | |
4635 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
4636 | ||
4637 | # Transform an extracted symbol line into symbol name and symbol address | |
4638 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
4639 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
4640 | ||
4641 | # Handle CRLF in mingw tool chain | |
4642 | opt_cr= | |
4643 | case $build_os in | |
4644 | mingw*) | |
4645 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
4646 | ;; | |
4647 | esac | |
4648 | ||
4649 | # Try without a prefix underscore, then with it. | |
4650 | for ac_symprfx in "" "_"; do | |
4651 | ||
4652 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
4653 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
4654 | ||
4655 | # Write the raw and C identifiers. | |
4656 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
4657 | # Fake it for dumpbin and say T for any non-static function | |
4658 | # and D for any global variable. | |
4659 | # Also find C++ and __fastcall symbols from MSVC++, | |
4660 | # which start with @ or ?. | |
4661 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ | |
4662 | " {last_section=section; section=\$ 3};"\ | |
4663 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
4664 | " \$ 0!~/External *\|/{next};"\ | |
4665 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
4666 | " {if(hide[section]) next};"\ | |
4667 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
4668 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
4669 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
4670 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
4671 | " ' prfx=^$ac_symprfx]" | |
4672 | else | |
4673 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
4674 | fi | |
4675 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
4676 | ||
4677 | # Check to see that the pipe works correctly. | |
4678 | pipe_works=no | |
4679 | ||
4680 | rm -f conftest* | |
4681 | cat > conftest.$ac_ext <<_LT_EOF | |
4682 | #ifdef __cplusplus | |
4683 | extern "C" { | |
4684 | #endif | |
4685 | char nm_test_var; | |
4686 | void nm_test_func(void); | |
4687 | void nm_test_func(void){} | |
4688 | #ifdef __cplusplus | |
4689 | } | |
4690 | #endif | |
4691 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
4692 | _LT_EOF | |
4693 | ||
4694 | if AC_TRY_EVAL(ac_compile); then | |
4695 | # Now try to grab the symbols. | |
4696 | nlist=conftest.nm | |
4697 | if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then | |
4698 | # Try sorting and uniquifying the output. | |
4699 | if sort "$nlist" | uniq > "$nlist"T; then | |
4700 | mv -f "$nlist"T "$nlist" | |
4701 | else | |
4702 | rm -f "$nlist"T | |
4703 | fi | |
4704 | ||
4705 | # Make sure that we snagged all the symbols we need. | |
4706 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
4707 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
4708 | cat <<_LT_EOF > conftest.$ac_ext | |
4709 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
4710 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
4711 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
4712 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
4713 | # define LT@&t@_DLSYM_CONST | |
4714 | #elif defined(__osf__) | |
4715 | /* This system does not cope well with relocations in const data. */ | |
4716 | # define LT@&t@_DLSYM_CONST | |
4717 | #else | |
4718 | # define LT@&t@_DLSYM_CONST const | |
4719 | #endif | |
4720 | ||
4721 | #ifdef __cplusplus | |
4722 | extern "C" { | |
4723 | #endif | |
4724 | ||
4725 | _LT_EOF | |
4726 | # Now generate the symbol file. | |
4727 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
4728 | ||
4729 | cat <<_LT_EOF >> conftest.$ac_ext | |
4730 | ||
4731 | /* The mapping between symbol names and symbols. */ | |
4732 | LT@&t@_DLSYM_CONST struct { | |
4733 | const char *name; | |
4734 | void *address; | |
4735 | } | |
4736 | lt__PROGRAM__LTX_preloaded_symbols[[]] = | |
4737 | { | |
4738 | { "@PROGRAM@", (void *) 0 }, | |
4739 | _LT_EOF | |
4740 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
4741 | cat <<\_LT_EOF >> conftest.$ac_ext | |
4742 | {0, (void *) 0} | |
4743 | }; | |
4744 | ||
4745 | /* This works around a problem in FreeBSD linker */ | |
4746 | #ifdef FREEBSD_WORKAROUND | |
4747 | static const void *lt_preloaded_setup() { | |
4748 | return lt__PROGRAM__LTX_preloaded_symbols; | |
4749 | } | |
4750 | #endif | |
4751 | ||
4752 | #ifdef __cplusplus | |
4753 | } | |
4754 | #endif | |
4755 | _LT_EOF | |
4756 | # Now try linking the two files. | |
4757 | mv conftest.$ac_objext conftstm.$ac_objext | |
4758 | lt_globsym_save_LIBS=$LIBS | |
4759 | lt_globsym_save_CFLAGS=$CFLAGS | |
4760 | LIBS="conftstm.$ac_objext" | |
4761 | CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | |
4762 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | |
4763 | pipe_works=yes | |
4764 | fi | |
4765 | LIBS=$lt_globsym_save_LIBS | |
4766 | CFLAGS=$lt_globsym_save_CFLAGS | |
4767 | else | |
4768 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | |
4769 | fi | |
4770 | else | |
4771 | echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | |
4772 | fi | |
4773 | else | |
4774 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | |
4775 | fi | |
4776 | else | |
4777 | echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | |
4778 | cat conftest.$ac_ext >&5 | |
4779 | fi | |
4780 | rm -rf conftest* conftst* | |
4781 | ||
4782 | # Do not use the global_symbol_pipe unless it works. | |
4783 | if test "$pipe_works" = yes; then | |
4784 | break | |
4785 | else | |
4786 | lt_cv_sys_global_symbol_pipe= | |
4787 | fi | |
4788 | done | |
4789 | ]) | |
4790 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
4791 | lt_cv_sys_global_symbol_to_cdecl= | |
4792 | fi | |
4793 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
4794 | AC_MSG_RESULT(failed) | |
4795 | else | |
4796 | AC_MSG_RESULT(ok) | |
4797 | fi | |
4798 | ||
4799 | # Response file support. | |
4800 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
4801 | nm_file_list_spec='@' | |
4802 | elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then | |
4803 | nm_file_list_spec='@' | |
4804 | fi | |
4805 | ||
4806 | _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | |
4807 | [Take the output of nm and produce a listing of raw symbols and C names]) | |
4808 | _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | |
4809 | [Transform the output of nm in a proper C declaration]) | |
4810 | _LT_DECL([global_symbol_to_c_name_address], | |
4811 | [lt_cv_sys_global_symbol_to_c_name_address], [1], | |
4812 | [Transform the output of nm in a C name address pair]) | |
4813 | _LT_DECL([global_symbol_to_c_name_address_lib_prefix], | |
4814 | [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | |
4815 | [Transform the output of nm in a C name address pair when lib prefix is needed]) | |
4816 | _LT_DECL([], [nm_file_list_spec], [1], | |
4817 | [Specify filename containing input files for $NM]) | |
4818 | ]) # _LT_CMD_GLOBAL_SYMBOLS | |
4819 | ||
4820 | ||
4821 | # _LT_COMPILER_PIC([TAGNAME]) | |
4822 | # --------------------------- | |
4823 | m4_defun([_LT_COMPILER_PIC], | |
4824 | [m4_require([_LT_TAG_COMPILER])dnl | |
4825 | _LT_TAGVAR(lt_prog_compiler_wl, $1)= | |
4826 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
4827 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
4828 | ||
4829 | m4_if([$1], [CXX], [ | |
4830 | # C++ specific cases for pic, static, wl, etc. | |
4831 | if test "$GXX" = yes; then | |
4832 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4833 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
4834 | ||
4835 | case $host_os in | |
4836 | aix*) | |
4837 | # All AIX code is PIC. | |
4838 | if test "$host_cpu" = ia64; then | |
4839 | # AIX 5 now supports IA64 processor | |
4840 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4841 | fi | |
4842 | ;; | |
4843 | ||
4844 | amigaos*) | |
4845 | case $host_cpu in | |
4846 | powerpc) | |
4847 | # see comment about AmigaOS4 .so support | |
4848 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4849 | ;; | |
4850 | m68k) | |
4851 | # FIXME: we need at least 68020 code to build shared libraries, but | |
4852 | # adding the `-m68020' flag to GCC prevents building anything better, | |
4853 | # like `-m68040'. | |
4854 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
4855 | ;; | |
4856 | esac | |
4857 | ;; | |
4858 | ||
4859 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
4860 | # PIC is the default for these OSes. | |
4861 | ;; | |
4862 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
4863 | # This hack is so that the source file can tell whether it is being | |
4864 | # built for inclusion in a dll (and should export symbols for example). | |
4865 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
4866 | # (--disable-auto-import) libraries | |
4867 | m4_if([$1], [GCJ], [], | |
4868 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
4869 | ;; | |
4870 | darwin* | rhapsody*) | |
4871 | # PIC is the default on this platform | |
4872 | # Common symbols not allowed in MH_DYLIB files | |
4873 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | |
4874 | ;; | |
4875 | *djgpp*) | |
4876 | # DJGPP does not support shared libraries at all | |
4877 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
4878 | ;; | |
4879 | haiku*) | |
4880 | # PIC is the default for Haiku. | |
4881 | # The "-static" flag exists, but is broken. | |
4882 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
4883 | ;; | |
4884 | interix[[3-9]]*) | |
4885 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
4886 | # Instead, we relocate shared libraries at runtime. | |
4887 | ;; | |
4888 | sysv4*MP*) | |
4889 | if test -d /usr/nec; then | |
4890 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | |
4891 | fi | |
4892 | ;; | |
4893 | hpux*) | |
4894 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
4895 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
4896 | # sets the default TLS model and affects inlining. | |
4897 | case $host_cpu in | |
4898 | hppa*64*) | |
4899 | ;; | |
4900 | *) | |
4901 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4902 | ;; | |
4903 | esac | |
4904 | ;; | |
4905 | *qnx* | *nto*) | |
4906 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
4907 | # it will coredump. | |
4908 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
4909 | ;; | |
4910 | *) | |
4911 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4912 | ;; | |
4913 | esac | |
4914 | else | |
4915 | case $host_os in | |
4916 | aix[[4-9]]*) | |
4917 | # All AIX code is PIC. | |
4918 | if test "$host_cpu" = ia64; then | |
4919 | # AIX 5 now supports IA64 processor | |
4920 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4921 | else | |
4922 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
4923 | fi | |
4924 | ;; | |
4925 | chorus*) | |
4926 | case $cc_basename in | |
4927 | cxch68*) | |
4928 | # Green Hills C++ Compiler | |
4929 | # _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" | |
4930 | ;; | |
4931 | esac | |
4932 | ;; | |
4933 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
4934 | # This hack is so that the source file can tell whether it is being | |
4935 | # built for inclusion in a dll (and should export symbols for example). | |
4936 | m4_if([$1], [GCJ], [], | |
4937 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
4938 | ;; | |
4939 | dgux*) | |
4940 | case $cc_basename in | |
4941 | ec++*) | |
4942 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4943 | ;; | |
4944 | ghcx*) | |
4945 | # Green Hills C++ Compiler | |
4946 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
4947 | ;; | |
4948 | *) | |
4949 | ;; | |
4950 | esac | |
4951 | ;; | |
4952 | freebsd* | dragonfly*) | |
4953 | # FreeBSD uses GNU C++ | |
4954 | ;; | |
4955 | hpux9* | hpux10* | hpux11*) | |
4956 | case $cc_basename in | |
4957 | CC*) | |
4958 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4959 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | |
4960 | if test "$host_cpu" != ia64; then | |
4961 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
4962 | fi | |
4963 | ;; | |
4964 | aCC*) | |
4965 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4966 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | |
4967 | case $host_cpu in | |
4968 | hppa*64*|ia64*) | |
4969 | # +Z the default | |
4970 | ;; | |
4971 | *) | |
4972 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
4973 | ;; | |
4974 | esac | |
4975 | ;; | |
4976 | *) | |
4977 | ;; | |
4978 | esac | |
4979 | ;; | |
4980 | interix*) | |
4981 | # This is c89, which is MS Visual C++ (no shared libs) | |
4982 | # Anyone wants to do a port? | |
4983 | ;; | |
4984 | irix5* | irix6* | nonstopux*) | |
4985 | case $cc_basename in | |
4986 | CC*) | |
4987 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4988 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
4989 | # CC pic flag -KPIC is the default. | |
4990 | ;; | |
4991 | *) | |
4992 | ;; | |
4993 | esac | |
4994 | ;; | |
4995 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4996 | case $cc_basename in | |
4997 | KCC*) | |
4998 | # KAI C++ Compiler | |
4999 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | |
5000 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5001 | ;; | |
5002 | ecpc* ) | |
5003 | # old Intel C++ for x86_64 which still supported -KPIC. | |
5004 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5005 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5006 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
5007 | ;; | |
5008 | icpc* ) | |
5009 | # Intel C++, used to be incompatible with GCC. | |
5010 | # ICC 10 doesn't accept -KPIC any more. | |
5011 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5012 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5013 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
5014 | ;; | |
5015 | pgCC* | pgcpp*) | |
5016 | # Portland Group C++ compiler | |
5017 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5018 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
5019 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5020 | ;; | |
5021 | cxx*) | |
5022 | # Compaq C++ | |
5023 | # Make sure the PIC flag is empty. It appears that all Alpha | |
5024 | # Linux and Compaq Tru64 Unix objects are PIC. | |
5025 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
5026 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
5027 | ;; | |
5028 | xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) | |
5029 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
5030 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5031 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | |
5032 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | |
5033 | ;; | |
5034 | *) | |
5035 | case `$CC -V 2>&1 | sed 5q` in | |
5036 | *Sun\ C*) | |
5037 | # Sun C++ 5.9 | |
5038 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5039 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5040 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
5041 | ;; | |
5042 | esac | |
5043 | ;; | |
5044 | esac | |
5045 | ;; | |
5046 | lynxos*) | |
5047 | ;; | |
5048 | m88k*) | |
5049 | ;; | |
5050 | mvs*) | |
5051 | case $cc_basename in | |
5052 | cxx*) | |
5053 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | |
5054 | ;; | |
5055 | *) | |
5056 | ;; | |
5057 | esac | |
5058 | ;; | |
5059 | netbsd*) | |
5060 | ;; | |
5061 | *qnx* | *nto*) | |
5062 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
5063 | # it will coredump. | |
5064 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
5065 | ;; | |
5066 | osf3* | osf4* | osf5*) | |
5067 | case $cc_basename in | |
5068 | KCC*) | |
5069 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | |
5070 | ;; | |
5071 | RCC*) | |
5072 | # Rational C++ 2.4.1 | |
5073 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
5074 | ;; | |
5075 | cxx*) | |
5076 | # Digital/Compaq C++ | |
5077 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5078 | # Make sure the PIC flag is empty. It appears that all Alpha | |
5079 | # Linux and Compaq Tru64 Unix objects are PIC. | |
5080 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
5081 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
5082 | ;; | |
5083 | *) | |
5084 | ;; | |
5085 | esac | |
5086 | ;; | |
5087 | psos*) | |
5088 | ;; | |
5089 | solaris*) | |
5090 | case $cc_basename in | |
5091 | CC* | sunCC*) | |
5092 | # Sun C++ 4.2, 5.x and Centerline C++ | |
5093 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5094 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5095 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
5096 | ;; | |
5097 | gcx*) | |
5098 | # Green Hills C++ Compiler | |
5099 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
5100 | ;; | |
5101 | *) | |
5102 | ;; | |
5103 | esac | |
5104 | ;; | |
5105 | sunos4*) | |
5106 | case $cc_basename in | |
5107 | CC*) | |
5108 | # Sun C++ 4.x | |
5109 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
5110 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5111 | ;; | |
5112 | lcc*) | |
5113 | # Lucid | |
5114 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
5115 | ;; | |
5116 | *) | |
5117 | ;; | |
5118 | esac | |
5119 | ;; | |
5120 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
5121 | case $cc_basename in | |
5122 | CC*) | |
5123 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5124 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5125 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5126 | ;; | |
5127 | esac | |
5128 | ;; | |
5129 | tandem*) | |
5130 | case $cc_basename in | |
5131 | NCC*) | |
5132 | # NonStop-UX NCC 3.20 | |
5133 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5134 | ;; | |
5135 | *) | |
5136 | ;; | |
5137 | esac | |
5138 | ;; | |
5139 | vxworks*) | |
5140 | ;; | |
5141 | *) | |
5142 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
5143 | ;; | |
5144 | esac | |
5145 | fi | |
5146 | ], | |
5147 | [ | |
5148 | if test "$GCC" = yes; then | |
5149 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5150 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
5151 | ||
5152 | case $host_os in | |
5153 | aix*) | |
5154 | # All AIX code is PIC. | |
5155 | if test "$host_cpu" = ia64; then | |
5156 | # AIX 5 now supports IA64 processor | |
5157 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5158 | fi | |
5159 | ;; | |
5160 | ||
5161 | amigaos*) | |
5162 | case $host_cpu in | |
5163 | powerpc) | |
5164 | # see comment about AmigaOS4 .so support | |
5165 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5166 | ;; | |
5167 | m68k) | |
5168 | # FIXME: we need at least 68020 code to build shared libraries, but | |
5169 | # adding the `-m68020' flag to GCC prevents building anything better, | |
5170 | # like `-m68040'. | |
5171 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
5172 | ;; | |
5173 | esac | |
5174 | ;; | |
5175 | ||
5176 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
5177 | # PIC is the default for these OSes. | |
5178 | ;; | |
5179 | ||
5180 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
5181 | # This hack is so that the source file can tell whether it is being | |
5182 | # built for inclusion in a dll (and should export symbols for example). | |
5183 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
5184 | # (--disable-auto-import) libraries | |
5185 | m4_if([$1], [GCJ], [], | |
5186 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
5187 | ;; | |
5188 | ||
5189 | darwin* | rhapsody*) | |
5190 | # PIC is the default on this platform | |
5191 | # Common symbols not allowed in MH_DYLIB files | |
5192 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | |
5193 | ;; | |
5194 | ||
5195 | haiku*) | |
5196 | # PIC is the default for Haiku. | |
5197 | # The "-static" flag exists, but is broken. | |
5198 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
5199 | ;; | |
5200 | ||
5201 | hpux*) | |
5202 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
5203 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
5204 | # sets the default TLS model and affects inlining. | |
5205 | case $host_cpu in | |
5206 | hppa*64*) | |
5207 | # +Z the default | |
5208 | ;; | |
5209 | *) | |
5210 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5211 | ;; | |
5212 | esac | |
5213 | ;; | |
5214 | ||
5215 | interix[[3-9]]*) | |
5216 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
5217 | # Instead, we relocate shared libraries at runtime. | |
5218 | ;; | |
5219 | ||
5220 | msdosdjgpp*) | |
5221 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
5222 | # on systems that don't support them. | |
5223 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
5224 | enable_shared=no | |
5225 | ;; | |
5226 | ||
5227 | *nto* | *qnx*) | |
5228 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
5229 | # it will coredump. | |
5230 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
5231 | ;; | |
5232 | ||
5233 | sysv4*MP*) | |
5234 | if test -d /usr/nec; then | |
5235 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | |
5236 | fi | |
5237 | ;; | |
5238 | ||
5239 | *) | |
5240 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5241 | ;; | |
5242 | esac | |
5243 | ||
5244 | case $cc_basename in | |
5245 | nvcc*) # Cuda Compiler Driver 2.2 | |
5246 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | |
5247 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | |
5248 | ;; | |
5249 | esac | |
5250 | else | |
5251 | # PORTME Check for flag to pass linker flags through the system compiler. | |
5252 | case $host_os in | |
5253 | aix*) | |
5254 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5255 | if test "$host_cpu" = ia64; then | |
5256 | # AIX 5 now supports IA64 processor | |
5257 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5258 | else | |
5259 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
5260 | fi | |
5261 | ;; | |
5262 | ||
5263 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
5264 | # This hack is so that the source file can tell whether it is being | |
5265 | # built for inclusion in a dll (and should export symbols for example). | |
5266 | m4_if([$1], [GCJ], [], | |
5267 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
5268 | ;; | |
5269 | ||
5270 | hpux9* | hpux10* | hpux11*) | |
5271 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5272 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
5273 | # not for PA HP-UX. | |
5274 | case $host_cpu in | |
5275 | hppa*64*|ia64*) | |
5276 | # +Z the default | |
5277 | ;; | |
5278 | *) | |
5279 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
5280 | ;; | |
5281 | esac | |
5282 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
5283 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | |
5284 | ;; | |
5285 | ||
5286 | irix5* | irix6* | nonstopux*) | |
5287 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5288 | # PIC (with -KPIC) is the default. | |
5289 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
5290 | ;; | |
5291 | ||
5292 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
5293 | case $cc_basename in | |
5294 | # old Intel for x86_64 which still supported -KPIC. | |
5295 | ecc*) | |
5296 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5297 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5298 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
5299 | ;; | |
5300 | # icc used to be incompatible with GCC. | |
5301 | # ICC 10 doesn't accept -KPIC any more. | |
5302 | icc* | ifort*) | |
5303 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5304 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
5305 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
5306 | ;; | |
5307 | # Lahey Fortran 8.1. | |
5308 | lf95*) | |
5309 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5310 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | |
5311 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | |
5312 | ;; | |
5313 | nagfor*) | |
5314 | # NAG Fortran compiler | |
5315 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' | |
5316 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
5317 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5318 | ;; | |
5319 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
5320 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
5321 | # which looks to be a dead project) | |
5322 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5323 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
5324 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5325 | ;; | |
5326 | ccc*) | |
5327 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5328 | # All Alpha code is PIC. | |
5329 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
5330 | ;; | |
5331 | xl* | bgxl* | bgf* | mpixl*) | |
5332 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
5333 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5334 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | |
5335 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | |
5336 | ;; | |
5337 | *) | |
5338 | case `$CC -V 2>&1 | sed 5q` in | |
5339 | *Sun\ F* | *Sun*Fortran*) | |
5340 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
5341 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5342 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5343 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
5344 | ;; | |
5345 | *Sun\ C*) | |
5346 | # Sun C 5.9 | |
5347 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5348 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5349 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5350 | ;; | |
5351 | esac | |
5352 | ;; | |
5353 | esac | |
5354 | ;; | |
5355 | ||
5356 | newsos6) | |
5357 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5358 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5359 | ;; | |
5360 | ||
5361 | *nto* | *qnx*) | |
5362 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
5363 | # it will coredump. | |
5364 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
5365 | ;; | |
5366 | ||
5367 | osf3* | osf4* | osf5*) | |
5368 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5369 | # All OSF/1 code is PIC. | |
5370 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
5371 | ;; | |
5372 | ||
5373 | rdos*) | |
5374 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
5375 | ;; | |
5376 | ||
5377 | solaris*) | |
5378 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5379 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5380 | case $cc_basename in | |
5381 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
5382 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | |
5383 | *) | |
5384 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | |
5385 | esac | |
5386 | ;; | |
5387 | ||
5388 | sunos4*) | |
5389 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
5390 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
5391 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5392 | ;; | |
5393 | ||
5394 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
5395 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5396 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5397 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5398 | ;; | |
5399 | ||
5400 | sysv4*MP*) | |
5401 | if test -d /usr/nec ;then | |
5402 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | |
5403 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5404 | fi | |
5405 | ;; | |
5406 | ||
5407 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
5408 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5409 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
5410 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5411 | ;; | |
5412 | ||
5413 | unicos*) | |
5414 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
5415 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
5416 | ;; | |
5417 | ||
5418 | uts4*) | |
5419 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
5420 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5421 | ;; | |
5422 | ||
5423 | *) | |
5424 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
5425 | ;; | |
5426 | esac | |
5427 | fi | |
5428 | ]) | |
5429 | case $host_os in | |
5430 | # For platforms which do not support PIC, -DPIC is meaningless: | |
5431 | *djgpp*) | |
5432 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
5433 | ;; | |
5434 | *) | |
5435 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | |
5436 | ;; | |
5437 | esac | |
5438 | ||
5439 | AC_CACHE_CHECK([for $compiler option to produce PIC], | |
5440 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], | |
5441 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | |
5442 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) | |
5443 | ||
5444 | # | |
5445 | # Check to make sure the PIC flag actually works. | |
5446 | # | |
5447 | if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then | |
5448 | _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], | |
5449 | [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], | |
5450 | [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], | |
5451 | [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in | |
5452 | "" | " "*) ;; | |
5453 | *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; | |
5454 | esac], | |
5455 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
5456 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | |
5457 | fi | |
5458 | _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], | |
5459 | [Additional compiler flags for building library objects]) | |
5460 | ||
5461 | _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | |
5462 | [How to pass a linker flag through the compiler]) | |
5463 | # | |
5464 | # Check to make sure the static flag actually works. | |
5465 | # | |
5466 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" | |
5467 | _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | |
5468 | _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), | |
5469 | $lt_tmp_static_flag, | |
5470 | [], | |
5471 | [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) | |
5472 | _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], | |
5473 | [Compiler flag to prevent dynamic linking]) | |
5474 | ])# _LT_COMPILER_PIC | |
5475 | ||
5476 | ||
5477 | # _LT_LINKER_SHLIBS([TAGNAME]) | |
5478 | # ---------------------------- | |
5479 | # See if the linker supports building shared libraries. | |
5480 | m4_defun([_LT_LINKER_SHLIBS], | |
5481 | [AC_REQUIRE([LT_PATH_LD])dnl | |
5482 | AC_REQUIRE([LT_PATH_NM])dnl | |
5483 | m4_require([_LT_PATH_MANIFEST_TOOL])dnl | |
5484 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
5485 | m4_require([_LT_DECL_EGREP])dnl | |
5486 | m4_require([_LT_DECL_SED])dnl | |
5487 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
5488 | m4_require([_LT_TAG_COMPILER])dnl | |
5489 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
5490 | m4_if([$1], [CXX], [ | |
5491 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
5492 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
5493 | case $host_os in | |
5494 | aix[[4-9]]*) | |
5495 | # If we're using GNU nm, then we don't want the "-C" option. | |
5496 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
5497 | # Also, AIX nm treats weak defined symbols like other global defined | |
5498 | # symbols, whereas GNU nm marks them as "W". | |
5499 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
5500 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
5501 | else | |
5502 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
5503 | fi | |
5504 | ;; | |
5505 | pw32*) | |
5506 | _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | |
5507 | ;; | |
5508 | cygwin* | mingw* | cegcc*) | |
5509 | case $cc_basename in | |
5510 | cl*) ;; | |
5511 | *) | |
5512 | _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' | |
5513 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | |
5514 | ;; | |
5515 | esac | |
5516 | ;; | |
5517 | *) | |
5518 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
5519 | ;; | |
5520 | esac | |
5521 | ], [ | |
5522 | runpath_var= | |
5523 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
5524 | _LT_TAGVAR(always_export_symbols, $1)=no | |
5525 | _LT_TAGVAR(archive_cmds, $1)= | |
5526 | _LT_TAGVAR(archive_expsym_cmds, $1)= | |
5527 | _LT_TAGVAR(compiler_needs_object, $1)=no | |
5528 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
5529 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
5530 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
5531 | _LT_TAGVAR(hardcode_automatic, $1)=no | |
5532 | _LT_TAGVAR(hardcode_direct, $1)=no | |
5533 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
5534 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
5535 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
5536 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
5537 | _LT_TAGVAR(hardcode_minus_L, $1)=no | |
5538 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
5539 | _LT_TAGVAR(inherit_rpath, $1)=no | |
5540 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
5541 | _LT_TAGVAR(module_cmds, $1)= | |
5542 | _LT_TAGVAR(module_expsym_cmds, $1)= | |
5543 | _LT_TAGVAR(old_archive_from_new_cmds, $1)= | |
5544 | _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= | |
5545 | _LT_TAGVAR(thread_safe_flag_spec, $1)= | |
5546 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
5547 | # include_expsyms should be a list of space-separated symbols to be *always* | |
5548 | # included in the symbol list | |
5549 | _LT_TAGVAR(include_expsyms, $1)= | |
5550 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
5551 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
5552 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
5553 | # as well as any symbol that contains `d'. | |
5554 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
5555 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
5556 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
5557 | # the symbol is explicitly referenced. Since portable code cannot | |
5558 | # rely on this symbol name, it's probably fine to never include it in | |
5559 | # preloaded symbol tables. | |
5560 | # Exclude shared library initialization/finalization symbols. | |
5561 | dnl Note also adjust exclude_expsyms for C++ above. | |
5562 | extract_expsyms_cmds= | |
5563 | ||
5564 | case $host_os in | |
5565 | cygwin* | mingw* | pw32* | cegcc*) | |
5566 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
5567 | # When not using gcc, we currently assume that we are using | |
5568 | # Microsoft Visual C++. | |
5569 | if test "$GCC" != yes; then | |
5570 | with_gnu_ld=no | |
5571 | fi | |
5572 | ;; | |
5573 | interix*) | |
5574 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
5575 | with_gnu_ld=yes | |
5576 | ;; | |
5577 | openbsd*) | |
5578 | with_gnu_ld=no | |
5579 | ;; | |
5580 | esac | |
5581 | ||
5582 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
5583 | ||
5584 | # On some targets, GNU ld is compatible enough with the native linker | |
5585 | # that we're better off using the native interface for both. | |
5586 | lt_use_gnu_ld_interface=no | |
5587 | if test "$with_gnu_ld" = yes; then | |
5588 | case $host_os in | |
5589 | aix*) | |
5590 | # The AIX port of GNU ld has always aspired to compatibility | |
5591 | # with the native linker. However, as the warning in the GNU ld | |
5592 | # block says, versions before 2.19.5* couldn't really create working | |
5593 | # shared libraries, regardless of the interface used. | |
5594 | case `$LD -v 2>&1` in | |
5595 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
5596 | *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; | |
5597 | *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; | |
5598 | *) | |
5599 | lt_use_gnu_ld_interface=yes | |
5600 | ;; | |
5601 | esac | |
5602 | ;; | |
5603 | *) | |
5604 | lt_use_gnu_ld_interface=yes | |
5605 | ;; | |
5606 | esac | |
5607 | fi | |
5608 | ||
5609 | if test "$lt_use_gnu_ld_interface" = yes; then | |
5610 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
5611 | wlarc='${wl}' | |
5612 | ||
5613 | # Set some defaults for GNU ld with shared library support. These | |
5614 | # are reset later if shared libraries are not supported. Putting them | |
5615 | # here allows them to be overridden if necessary. | |
5616 | runpath_var=LD_RUN_PATH | |
5617 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
5618 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
5619 | # ancient GNU ld didn't support --whole-archive et. al. | |
5620 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
5621 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
5622 | else | |
5623 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
5624 | fi | |
5625 | supports_anon_versioning=no | |
5626 | case `$LD -v 2>&1` in | |
5627 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
5628 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
5629 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
5630 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
5631 | *\ 2.11.*) ;; # other 2.11 versions | |
5632 | *) supports_anon_versioning=yes ;; | |
5633 | esac | |
5634 | ||
5635 | # See if GNU ld supports shared libraries. | |
5636 | case $host_os in | |
5637 | aix[[3-9]]*) | |
5638 | # On AIX/PPC, the GNU linker is very broken | |
5639 | if test "$host_cpu" != ia64; then | |
5640 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5641 | cat <<_LT_EOF 1>&2 | |
5642 | ||
5643 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
5644 | *** to be unable to reliably create shared libraries on AIX. | |
5645 | *** Therefore, libtool is disabling shared libraries support. If you | |
5646 | *** really care for shared libraries, you may want to install binutils | |
5647 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
5648 | *** You will then need to restart the configuration process. | |
5649 | ||
5650 | _LT_EOF | |
5651 | fi | |
5652 | ;; | |
5653 | ||
5654 | amigaos*) | |
5655 | case $host_cpu in | |
5656 | powerpc) | |
5657 | # see comment about AmigaOS4 .so support | |
5658 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5659 | _LT_TAGVAR(archive_expsym_cmds, $1)='' | |
5660 | ;; | |
5661 | m68k) | |
5662 | _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)' | |
5663 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5664 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5665 | ;; | |
5666 | esac | |
5667 | ;; | |
5668 | ||
5669 | beos*) | |
5670 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
5671 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5672 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
5673 | # support --undefined. This deserves some investigation. FIXME | |
5674 | _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5675 | else | |
5676 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5677 | fi | |
5678 | ;; | |
5679 | ||
5680 | cygwin* | mingw* | pw32* | cegcc*) | |
5681 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
5682 | # as there is no search path for DLLs. | |
5683 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5684 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
5685 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5686 | _LT_TAGVAR(always_export_symbols, $1)=no | |
5687 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
5688 | _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' | |
5689 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | |
5690 | ||
5691 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
5692 | _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' | |
5693 | # If the export-symbols file already is a .def file (1st line | |
5694 | # is EXPORTS), use it as is; otherwise, prepend... | |
5695 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
5696 | cp $export_symbols $output_objdir/$soname.def; | |
5697 | else | |
5698 | echo EXPORTS > $output_objdir/$soname.def; | |
5699 | cat $export_symbols >> $output_objdir/$soname.def; | |
5700 | fi~ | |
5701 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
5702 | else | |
5703 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5704 | fi | |
5705 | ;; | |
5706 | ||
5707 | haiku*) | |
5708 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5709 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
5710 | ;; | |
5711 | ||
5712 | interix[[3-9]]*) | |
5713 | _LT_TAGVAR(hardcode_direct, $1)=no | |
5714 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5715 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
5716 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
5717 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
5718 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
5719 | # default) and relocated if they conflict, which is a slow very memory | |
5720 | # consuming and fragmenting process. To avoid this, we pick a random, | |
5721 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
5722 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
5723 | _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' | |
5724 | _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' | |
5725 | ;; | |
5726 | ||
5727 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
5728 | tmp_diet=no | |
5729 | if test "$host_os" = linux-dietlibc; then | |
5730 | case $cc_basename in | |
5731 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
5732 | esac | |
5733 | fi | |
5734 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
5735 | && test "$tmp_diet" = no | |
5736 | then | |
5737 | tmp_addflag=' $pic_flag' | |
5738 | tmp_sharedflag='-shared' | |
5739 | case $cc_basename,$host_cpu in | |
5740 | pgcc*) # Portland Group C compiler | |
5741 | _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' | |
5742 | tmp_addflag=' $pic_flag' | |
5743 | ;; | |
5744 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
5745 | # Portland Group f77 and f90 compilers | |
5746 | _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' | |
5747 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
5748 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
5749 | tmp_addflag=' -i_dynamic' ;; | |
5750 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
5751 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
5752 | ifc* | ifort*) # Intel Fortran compiler | |
5753 | tmp_addflag=' -nofor_main' ;; | |
5754 | lf95*) # Lahey Fortran 8.1 | |
5755 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
5756 | tmp_sharedflag='--shared' ;; | |
5757 | xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
5758 | tmp_sharedflag='-qmkshrobj' | |
5759 | tmp_addflag= ;; | |
5760 | nvcc*) # Cuda Compiler Driver 2.2 | |
5761 | _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' | |
5762 | _LT_TAGVAR(compiler_needs_object, $1)=yes | |
5763 | ;; | |
5764 | esac | |
5765 | case `$CC -V 2>&1 | sed 5q` in | |
5766 | *Sun\ C*) # Sun C 5.9 | |
5767 | _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' | |
5768 | _LT_TAGVAR(compiler_needs_object, $1)=yes | |
5769 | tmp_sharedflag='-G' ;; | |
5770 | *Sun\ F*) # Sun Fortran 8.3 | |
5771 | tmp_sharedflag='-G' ;; | |
5772 | esac | |
5773 | _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5774 | ||
5775 | if test "x$supports_anon_versioning" = xyes; then | |
5776 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
5777 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
5778 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
5779 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
5780 | fi | |
5781 | ||
5782 | case $cc_basename in | |
5783 | xlf* | bgf* | bgxlf* | mpixlf*) | |
5784 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
5785 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | |
5786 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
5787 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | |
5788 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
5789 | if test "x$supports_anon_versioning" = xyes; then | |
5790 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
5791 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
5792 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
5793 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
5794 | fi | |
5795 | ;; | |
5796 | esac | |
5797 | else | |
5798 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5799 | fi | |
5800 | ;; | |
5801 | ||
5802 | netbsd*) | |
5803 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
5804 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
5805 | wlarc= | |
5806 | else | |
5807 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5808 | _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' | |
5809 | fi | |
5810 | ;; | |
5811 | ||
5812 | solaris*) | |
5813 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
5814 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5815 | cat <<_LT_EOF 1>&2 | |
5816 | ||
5817 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
5818 | *** create shared libraries on Solaris systems. Therefore, libtool | |
5819 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
5820 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
5821 | *** your PATH or compiler configuration so that the native linker is | |
5822 | *** used, and then restart. | |
5823 | ||
5824 | _LT_EOF | |
5825 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
5826 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5827 | _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' | |
5828 | else | |
5829 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5830 | fi | |
5831 | ;; | |
5832 | ||
5833 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
5834 | case `$LD -v 2>&1` in | |
5835 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | |
5836 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5837 | cat <<_LT_EOF 1>&2 | |
5838 | ||
5839 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
5840 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
5841 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
5842 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
5843 | *** your PATH or compiler configuration so that the native linker is | |
5844 | *** used, and then restart. | |
5845 | ||
5846 | _LT_EOF | |
5847 | ;; | |
5848 | *) | |
5849 | # For security reasons, it is highly recommended that you always | |
5850 | # use absolute paths for naming shared libraries, and exclude the | |
5851 | # DT_RUNPATH tag from executables and libraries. But doing so | |
5852 | # requires that you compile everything twice, which is a pain. | |
5853 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
5854 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
5855 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5856 | _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' | |
5857 | else | |
5858 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5859 | fi | |
5860 | ;; | |
5861 | esac | |
5862 | ;; | |
5863 | ||
5864 | sunos4*) | |
5865 | _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
5866 | wlarc= | |
5867 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5868 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5869 | ;; | |
5870 | ||
5871 | *) | |
5872 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
5873 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5874 | _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' | |
5875 | else | |
5876 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5877 | fi | |
5878 | ;; | |
5879 | esac | |
5880 | ||
5881 | if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then | |
5882 | runpath_var= | |
5883 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
5884 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
5885 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
5886 | fi | |
5887 | else | |
5888 | # PORTME fill in a description of your system's linker (not GNU ld) | |
5889 | case $host_os in | |
5890 | aix3*) | |
5891 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5892 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
5893 | _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' | |
5894 | # Note: this linker hardcodes the directories in LIBPATH if there | |
5895 | # are no directories specified by -L. | |
5896 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5897 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
5898 | # Neither direct hardcoding nor static linking is supported with a | |
5899 | # broken collect2. | |
5900 | _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
5901 | fi | |
5902 | ;; | |
5903 | ||
5904 | aix[[4-9]]*) | |
5905 | if test "$host_cpu" = ia64; then | |
5906 | # On IA64, the linker does run time linking by default, so we don't | |
5907 | # have to do anything special. | |
5908 | aix_use_runtimelinking=no | |
5909 | exp_sym_flag='-Bexport' | |
5910 | no_entry_flag="" | |
5911 | else | |
5912 | # If we're using GNU nm, then we don't want the "-C" option. | |
5913 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
5914 | # Also, AIX nm treats weak defined symbols like other global | |
5915 | # defined symbols, whereas GNU nm marks them as "W". | |
5916 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
5917 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
5918 | else | |
5919 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
5920 | fi | |
5921 | aix_use_runtimelinking=no | |
5922 | ||
5923 | # Test if we are trying to use run time linking or normal | |
5924 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
5925 | # need to do runtime linking. | |
5926 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | |
5927 | for ld_flag in $LDFLAGS; do | |
5928 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
5929 | aix_use_runtimelinking=yes | |
5930 | break | |
5931 | fi | |
5932 | done | |
5933 | ;; | |
5934 | esac | |
5935 | ||
5936 | exp_sym_flag='-bexport' | |
5937 | no_entry_flag='-bnoentry' | |
5938 | fi | |
5939 | ||
5940 | # When large executables or shared objects are built, AIX ld can | |
5941 | # have problems creating the table of contents. If linking a library | |
5942 | # or program results in "error TOC overflow" add -mminimal-toc to | |
5943 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
5944 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
5945 | ||
5946 | _LT_TAGVAR(archive_cmds, $1)='' | |
5947 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5948 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
5949 | _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
5950 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
5951 | _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | |
5952 | ||
5953 | if test "$GCC" = yes; then | |
5954 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
5955 | # We only want to do this on AIX 4.2 and lower, the check | |
5956 | # below for broken collect2 doesn't work under 4.3+ | |
5957 | collect2name=`${CC} -print-prog-name=collect2` | |
5958 | if test -f "$collect2name" && | |
5959 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
5960 | then | |
5961 | # We have reworked collect2 | |
5962 | : | |
5963 | else | |
5964 | # We have old collect2 | |
5965 | _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
5966 | # It fails to find uninstalled libraries when the uninstalled | |
5967 | # path is not listed in the libpath. Setting hardcode_minus_L | |
5968 | # to unsupported forces relinking | |
5969 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5970 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5971 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
5972 | fi | |
5973 | ;; | |
5974 | esac | |
5975 | shared_flag='-shared' | |
5976 | if test "$aix_use_runtimelinking" = yes; then | |
5977 | shared_flag="$shared_flag "'${wl}-G' | |
5978 | fi | |
5979 | else | |
5980 | # not using gcc | |
5981 | if test "$host_cpu" = ia64; then | |
5982 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
5983 | # chokes on -Wl,-G. The following line is correct: | |
5984 | shared_flag='-G' | |
5985 | else | |
5986 | if test "$aix_use_runtimelinking" = yes; then | |
5987 | shared_flag='${wl}-G' | |
5988 | else | |
5989 | shared_flag='${wl}-bM:SRE' | |
5990 | fi | |
5991 | fi | |
5992 | fi | |
5993 | ||
5994 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | |
5995 | # It seems that -bexpall does not export symbols beginning with | |
5996 | # underscore (_), so it is better to generate a list of symbols to export. | |
5997 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
5998 | if test "$aix_use_runtimelinking" = yes; then | |
5999 | # Warning - without using the other runtime loading flags (-brtl), | |
6000 | # -berok will link without error, but may produce a broken library. | |
6001 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | |
6002 | # Determine the default libpath from the value encoded in an | |
6003 | # empty executable. | |
6004 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
6005 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6006 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
6007 | else | |
6008 | if test "$host_cpu" = ia64; then | |
6009 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | |
6010 | _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
6011 | _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" | |
6012 | else | |
6013 | # Determine the default libpath from the value encoded in an | |
6014 | # empty executable. | |
6015 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
6016 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6017 | # Warning - without using the other run time loading flags, | |
6018 | # -berok will link without error, but may produce a broken library. | |
6019 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | |
6020 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | |
6021 | if test "$with_gnu_ld" = yes; then | |
6022 | # We only use this code for GNU lds that support --whole-archive. | |
6023 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
6024 | else | |
6025 | # Exported symbols can be pulled into shared objects from archives | |
6026 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
6027 | fi | |
6028 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
6029 | # This is similar to how AIX traditionally builds its shared libraries. | |
6030 | _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
6031 | fi | |
6032 | fi | |
6033 | ;; | |
6034 | ||
6035 | amigaos*) | |
6036 | case $host_cpu in | |
6037 | powerpc) | |
6038 | # see comment about AmigaOS4 .so support | |
6039 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6040 | _LT_TAGVAR(archive_expsym_cmds, $1)='' | |
6041 | ;; | |
6042 | m68k) | |
6043 | _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)' | |
6044 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6045 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
6046 | ;; | |
6047 | esac | |
6048 | ;; | |
6049 | ||
6050 | bsdi[[45]]*) | |
6051 | _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | |
6052 | ;; | |
6053 | ||
6054 | cygwin* | mingw* | pw32* | cegcc*) | |
6055 | # When not using gcc, we currently assume that we are using | |
6056 | # Microsoft Visual C++. | |
6057 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
6058 | # no search path for DLLs. | |
6059 | case $cc_basename in | |
6060 | cl*) | |
6061 | # Native MSVC | |
6062 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
6063 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6064 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
6065 | _LT_TAGVAR(file_list_spec, $1)='@' | |
6066 | # Tell ltmain to make .lib files, not .a files. | |
6067 | libext=lib | |
6068 | # Tell ltmain to make .dll files, not .so files. | |
6069 | shrext_cmds=".dll" | |
6070 | # FIXME: Setting linknames here is a bad hack. | |
6071 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
6072 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
6073 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
6074 | else | |
6075 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
6076 | fi~ | |
6077 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
6078 | linknames=' | |
6079 | # The linker will not automatically build a static lib if we build a DLL. | |
6080 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
6081 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
6082 | _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' | |
6083 | # Don't use ranlib | |
6084 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | |
6085 | _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | |
6086 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
6087 | case $lt_outputfile in | |
6088 | *.exe|*.EXE) ;; | |
6089 | *) | |
6090 | lt_outputfile="$lt_outputfile.exe" | |
6091 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
6092 | ;; | |
6093 | esac~ | |
6094 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
6095 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
6096 | $RM "$lt_outputfile.manifest"; | |
6097 | fi' | |
6098 | ;; | |
6099 | *) | |
6100 | # Assume MSVC wrapper | |
6101 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
6102 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6103 | # Tell ltmain to make .lib files, not .a files. | |
6104 | libext=lib | |
6105 | # Tell ltmain to make .dll files, not .so files. | |
6106 | shrext_cmds=".dll" | |
6107 | # FIXME: Setting linknames here is a bad hack. | |
6108 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
6109 | # The linker will automatically build a .lib file if we build a DLL. | |
6110 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
6111 | # FIXME: Should let the user specify the lib program. | |
6112 | _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
6113 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
6114 | ;; | |
6115 | esac | |
6116 | ;; | |
6117 | ||
6118 | darwin* | rhapsody*) | |
6119 | _LT_DARWIN_LINKER_FEATURES($1) | |
6120 | ;; | |
6121 | ||
6122 | dgux*) | |
6123 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6124 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6125 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6126 | ;; | |
6127 | ||
6128 | freebsd1*) | |
6129 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6130 | ;; | |
6131 | ||
6132 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
6133 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
6134 | # does not break anything, and helps significantly (at the cost of a little | |
6135 | # extra space). | |
6136 | freebsd2.2*) | |
6137 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
6138 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6139 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6140 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6141 | ;; | |
6142 | ||
6143 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
6144 | freebsd2*) | |
6145 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6146 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6147 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
6148 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6149 | ;; | |
6150 | ||
6151 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
6152 | freebsd* | dragonfly*) | |
6153 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
6154 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6155 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6156 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6157 | ;; | |
6158 | ||
6159 | hpux9*) | |
6160 | if test "$GCC" = yes; then | |
6161 | _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
6162 | else | |
6163 | _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
6164 | fi | |
6165 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6166 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6167 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6168 | ||
6169 | # hardcode_minus_L: Not really in the search PATH, | |
6170 | # but as the default location of the library. | |
6171 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
6172 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6173 | ;; | |
6174 | ||
6175 | hpux10*) | |
6176 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
6177 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6178 | else | |
6179 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
6180 | fi | |
6181 | if test "$with_gnu_ld" = no; then | |
6182 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6183 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | |
6184 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6185 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6186 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
6187 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6188 | # hardcode_minus_L: Not really in the search PATH, | |
6189 | # but as the default location of the library. | |
6190 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
6191 | fi | |
6192 | ;; | |
6193 | ||
6194 | hpux11*) | |
6195 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
6196 | case $host_cpu in | |
6197 | hppa*64*) | |
6198 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6199 | ;; | |
6200 | ia64*) | |
6201 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
6202 | ;; | |
6203 | *) | |
6204 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6205 | ;; | |
6206 | esac | |
6207 | else | |
6208 | case $host_cpu in | |
6209 | hppa*64*) | |
6210 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6211 | ;; | |
6212 | ia64*) | |
6213 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
6214 | ;; | |
6215 | *) | |
6216 | m4_if($1, [], [ | |
6217 | # Older versions of the 11.00 compiler do not understand -b yet | |
6218 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
6219 | _LT_LINKER_OPTION([if $CC understands -b], | |
6220 | _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], | |
6221 | [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], | |
6222 | [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], | |
6223 | [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) | |
6224 | ;; | |
6225 | esac | |
6226 | fi | |
6227 | if test "$with_gnu_ld" = no; then | |
6228 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6229 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6230 | ||
6231 | case $host_cpu in | |
6232 | hppa*64*|ia64*) | |
6233 | _LT_TAGVAR(hardcode_direct, $1)=no | |
6234 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6235 | ;; | |
6236 | *) | |
6237 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6238 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
6239 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6240 | ||
6241 | # hardcode_minus_L: Not really in the search PATH, | |
6242 | # but as the default location of the library. | |
6243 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
6244 | ;; | |
6245 | esac | |
6246 | fi | |
6247 | ;; | |
6248 | ||
6249 | irix5* | irix6* | nonstopux*) | |
6250 | if test "$GCC" = yes; then | |
6251 | _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' | |
6252 | # Try to use the -exported_symbol ld option, if it does not | |
6253 | # work, assume that -exports_file does not work either and | |
6254 | # implicitly export all symbols. | |
6255 | # This should be the same for all languages, so no per-tag cache variable. | |
6256 | AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], | |
6257 | [lt_cv_irix_exported_symbol], | |
6258 | [save_LDFLAGS="$LDFLAGS" | |
6259 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
6260 | AC_LINK_IFELSE( | |
6261 | [AC_LANG_SOURCE( | |
6262 | [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], | |
6263 | [C++], [[int foo (void) { return 0; }]], | |
6264 | [Fortran 77], [[ | |
6265 | subroutine foo | |
6266 | end]], | |
6267 | [Fortran], [[ | |
6268 | subroutine foo | |
6269 | end]])])], | |
6270 | [lt_cv_irix_exported_symbol=yes], | |
6271 | [lt_cv_irix_exported_symbol=no]) | |
6272 | LDFLAGS="$save_LDFLAGS"]) | |
6273 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
6274 | _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' | |
6275 | fi | |
6276 | else | |
6277 | _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' | |
6278 | _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' | |
6279 | fi | |
6280 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | |
6281 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6282 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6283 | _LT_TAGVAR(inherit_rpath, $1)=yes | |
6284 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6285 | ;; | |
6286 | ||
6287 | netbsd*) | |
6288 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
6289 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
6290 | else | |
6291 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
6292 | fi | |
6293 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6294 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6295 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6296 | ;; | |
6297 | ||
6298 | newsos6) | |
6299 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6300 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6301 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6302 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6303 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6304 | ;; | |
6305 | ||
6306 | *nto* | *qnx*) | |
6307 | ;; | |
6308 | ||
6309 | openbsd*) | |
6310 | if test -f /usr/libexec/ld.so; then | |
6311 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6312 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6313 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
6314 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6315 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
6316 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
6317 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6318 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6319 | else | |
6320 | case $host_os in | |
6321 | openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | |
6322 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
6323 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6324 | ;; | |
6325 | *) | |
6326 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
6327 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6328 | ;; | |
6329 | esac | |
6330 | fi | |
6331 | else | |
6332 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6333 | fi | |
6334 | ;; | |
6335 | ||
6336 | os2*) | |
6337 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6338 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
6339 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6340 | _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
6341 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
6342 | ;; | |
6343 | ||
6344 | osf3*) | |
6345 | if test "$GCC" = yes; then | |
6346 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
6347 | _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' | |
6348 | else | |
6349 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
6350 | _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' | |
6351 | fi | |
6352 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | |
6353 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6354 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6355 | ;; | |
6356 | ||
6357 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
6358 | if test "$GCC" = yes; then | |
6359 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
6360 | _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' | |
6361 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6362 | else | |
6363 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
6364 | _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' | |
6365 | _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~ | |
6366 | $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' | |
6367 | ||
6368 | # Both c and cxx compiler support -rpath directly | |
6369 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
6370 | fi | |
6371 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | |
6372 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6373 | ;; | |
6374 | ||
6375 | solaris*) | |
6376 | _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' | |
6377 | if test "$GCC" = yes; then | |
6378 | wlarc='${wl}' | |
6379 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6380 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
6381 | $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' | |
6382 | else | |
6383 | case `$CC -V 2>&1` in | |
6384 | *"Compilers 5.0"*) | |
6385 | wlarc='' | |
6386 | _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6387 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
6388 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
6389 | ;; | |
6390 | *) | |
6391 | wlarc='${wl}' | |
6392 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
6393 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
6394 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
6395 | ;; | |
6396 | esac | |
6397 | fi | |
6398 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6399 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6400 | case $host_os in | |
6401 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
6402 | *) | |
6403 | # The compiler driver will combine and reorder linker options, | |
6404 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
6405 | # but is careful enough not to reorder. | |
6406 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
6407 | if test "$GCC" = yes; then | |
6408 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
6409 | else | |
6410 | _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' | |
6411 | fi | |
6412 | ;; | |
6413 | esac | |
6414 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6415 | ;; | |
6416 | ||
6417 | sunos4*) | |
6418 | if test "x$host_vendor" = xsequent; then | |
6419 | # Use $CC to link under sequent, because it throws in some extra .o | |
6420 | # files that make .init and .fini sections work. | |
6421 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
6422 | else | |
6423 | _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
6424 | fi | |
6425 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6426 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6427 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
6428 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6429 | ;; | |
6430 | ||
6431 | sysv4) | |
6432 | case $host_vendor in | |
6433 | sni) | |
6434 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6435 | _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? | |
6436 | ;; | |
6437 | siemens) | |
6438 | ## LD is ld it makes a PLAMLIB | |
6439 | ## CC just makes a GrossModule. | |
6440 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
6441 | _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' | |
6442 | _LT_TAGVAR(hardcode_direct, $1)=no | |
6443 | ;; | |
6444 | motorola) | |
6445 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6446 | _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie | |
6447 | ;; | |
6448 | esac | |
6449 | runpath_var='LD_RUN_PATH' | |
6450 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6451 | ;; | |
6452 | ||
6453 | sysv4.3*) | |
6454 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6455 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6456 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' | |
6457 | ;; | |
6458 | ||
6459 | sysv4*MP*) | |
6460 | if test -d /usr/nec; then | |
6461 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6462 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6463 | runpath_var=LD_RUN_PATH | |
6464 | hardcode_runpath_var=yes | |
6465 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
6466 | fi | |
6467 | ;; | |
6468 | ||
6469 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | |
6470 | _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
6471 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6472 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6473 | runpath_var='LD_RUN_PATH' | |
6474 | ||
6475 | if test "$GCC" = yes; then | |
6476 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6477 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6478 | else | |
6479 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6480 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6481 | fi | |
6482 | ;; | |
6483 | ||
6484 | sysv5* | sco3.2v5* | sco5v6*) | |
6485 | # Note: We can NOT use -z defs as we might desire, because we do not | |
6486 | # link with -lc, and that would cause any symbols used from libc to | |
6487 | # always be unresolved, which means just about no library would | |
6488 | # ever link correctly. If we're not using GNU ld we use -z text | |
6489 | # though, which does catch some bad symbols but isn't as heavy-handed | |
6490 | # as -z defs. | |
6491 | _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
6492 | _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
6493 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6494 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6495 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | |
6496 | _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
6497 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6498 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
6499 | runpath_var='LD_RUN_PATH' | |
6500 | ||
6501 | if test "$GCC" = yes; then | |
6502 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6503 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6504 | else | |
6505 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6506 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6507 | fi | |
6508 | ;; | |
6509 | ||
6510 | uts4*) | |
6511 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
6512 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6513 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6514 | ;; | |
6515 | ||
6516 | *) | |
6517 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6518 | ;; | |
6519 | esac | |
6520 | ||
6521 | if test x$host_vendor = xsni; then | |
6522 | case $host in | |
6523 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
6524 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' | |
6525 | ;; | |
6526 | esac | |
6527 | fi | |
6528 | fi | |
6529 | ]) | |
6530 | AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | |
6531 | test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
6532 | ||
6533 | _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld | |
6534 | ||
6535 | _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl | |
6536 | _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl | |
6537 | _LT_DECL([], [extract_expsyms_cmds], [2], | |
6538 | [The commands to extract the exported symbol list from a shared archive]) | |
6539 | ||
6540 | # | |
6541 | # Do we need to explicitly link libc? | |
6542 | # | |
6543 | case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in | |
6544 | x|xyes) | |
6545 | # Assume -lc should be added | |
6546 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
6547 | ||
6548 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
6549 | case $_LT_TAGVAR(archive_cmds, $1) in | |
6550 | *'~'*) | |
6551 | # FIXME: we may have to deal with multi-command sequences. | |
6552 | ;; | |
6553 | '$CC '*) | |
6554 | # Test whether the compiler implicitly links with -lc since on some | |
6555 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
6556 | # to ld, don't add -lc before -lgcc. | |
6557 | AC_CACHE_CHECK([whether -lc should be explicitly linked in], | |
6558 | [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), | |
6559 | [$RM conftest* | |
6560 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6561 | ||
6562 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | |
6563 | soname=conftest | |
6564 | lib=conftest | |
6565 | libobjs=conftest.$ac_objext | |
6566 | deplibs= | |
6567 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) | |
6568 | pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) | |
6569 | compiler_flags=-v | |
6570 | linker_flags=-v | |
6571 | verstring= | |
6572 | output_objdir=. | |
6573 | libname=conftest | |
6574 | lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) | |
6575 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
6576 | if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) | |
6577 | then | |
6578 | lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6579 | else | |
6580 | lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
6581 | fi | |
6582 | _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | |
6583 | else | |
6584 | cat conftest.err 1>&5 | |
6585 | fi | |
6586 | $RM conftest* | |
6587 | ]) | |
6588 | _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) | |
6589 | ;; | |
6590 | esac | |
6591 | fi | |
6592 | ;; | |
6593 | esac | |
6594 | ||
6595 | _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], | |
6596 | [Whether or not to add -lc for building shared libraries]) | |
6597 | _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], | |
6598 | [enable_shared_with_static_runtimes], [0], | |
6599 | [Whether or not to disallow shared libs when runtime libs are static]) | |
6600 | _LT_TAGDECL([], [export_dynamic_flag_spec], [1], | |
6601 | [Compiler flag to allow reflexive dlopens]) | |
6602 | _LT_TAGDECL([], [whole_archive_flag_spec], [1], | |
6603 | [Compiler flag to generate shared objects directly from archives]) | |
6604 | _LT_TAGDECL([], [compiler_needs_object], [1], | |
6605 | [Whether the compiler copes with passing no objects directly]) | |
6606 | _LT_TAGDECL([], [old_archive_from_new_cmds], [2], | |
6607 | [Create an old-style archive from a shared archive]) | |
6608 | _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], | |
6609 | [Create a temporary old-style archive to link instead of a shared archive]) | |
6610 | _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) | |
6611 | _LT_TAGDECL([], [archive_expsym_cmds], [2]) | |
6612 | _LT_TAGDECL([], [module_cmds], [2], | |
6613 | [Commands used to build a loadable module if different from building | |
6614 | a shared archive.]) | |
6615 | _LT_TAGDECL([], [module_expsym_cmds], [2]) | |
6616 | _LT_TAGDECL([], [with_gnu_ld], [1], | |
6617 | [Whether we are building with GNU ld or not]) | |
6618 | _LT_TAGDECL([], [allow_undefined_flag], [1], | |
6619 | [Flag that allows shared libraries with undefined symbols to be built]) | |
6620 | _LT_TAGDECL([], [no_undefined_flag], [1], | |
6621 | [Flag that enforces no undefined symbols]) | |
6622 | _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], | |
6623 | [Flag to hardcode $libdir into a binary during linking. | |
6624 | This must work even if $libdir does not exist]) | |
6625 | _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], | |
6626 | [[If ld is used when linking, flag to hardcode $libdir into a binary | |
6627 | during linking. This must work even if $libdir does not exist]]) | |
6628 | _LT_TAGDECL([], [hardcode_libdir_separator], [1], | |
6629 | [Whether we need a single "-rpath" flag with a separated argument]) | |
6630 | _LT_TAGDECL([], [hardcode_direct], [0], | |
6631 | [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | |
6632 | DIR into the resulting binary]) | |
6633 | _LT_TAGDECL([], [hardcode_direct_absolute], [0], | |
6634 | [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | |
6635 | DIR into the resulting binary and the resulting library dependency is | |
6636 | "absolute", i.e impossible to change by setting ${shlibpath_var} if the | |
6637 | library is relocated]) | |
6638 | _LT_TAGDECL([], [hardcode_minus_L], [0], | |
6639 | [Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
6640 | into the resulting binary]) | |
6641 | _LT_TAGDECL([], [hardcode_shlibpath_var], [0], | |
6642 | [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
6643 | into the resulting binary]) | |
6644 | _LT_TAGDECL([], [hardcode_automatic], [0], | |
6645 | [Set to "yes" if building a shared library automatically hardcodes DIR | |
6646 | into the library and all subsequent libraries and executables linked | |
6647 | against it]) | |
6648 | _LT_TAGDECL([], [inherit_rpath], [0], | |
6649 | [Set to yes if linker adds runtime paths of dependent libraries | |
6650 | to runtime path list]) | |
6651 | _LT_TAGDECL([], [link_all_deplibs], [0], | |
6652 | [Whether libtool must link a program against all its dependency libraries]) | |
6653 | _LT_TAGDECL([], [always_export_symbols], [0], | |
6654 | [Set to "yes" if exported symbols are required]) | |
6655 | _LT_TAGDECL([], [export_symbols_cmds], [2], | |
6656 | [The commands to list exported symbols]) | |
6657 | _LT_TAGDECL([], [exclude_expsyms], [1], | |
6658 | [Symbols that should not be listed in the preloaded symbols]) | |
6659 | _LT_TAGDECL([], [include_expsyms], [1], | |
6660 | [Symbols that must always be exported]) | |
6661 | _LT_TAGDECL([], [prelink_cmds], [2], | |
6662 | [Commands necessary for linking programs (against libraries) with templates]) | |
6663 | _LT_TAGDECL([], [postlink_cmds], [2], | |
6664 | [Commands necessary for finishing linking programs]) | |
6665 | _LT_TAGDECL([], [file_list_spec], [1], | |
6666 | [Specify filename containing input files]) | |
6667 | dnl FIXME: Not yet implemented | |
6668 | dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], | |
6669 | dnl [Compiler flag to generate thread safe objects]) | |
6670 | ])# _LT_LINKER_SHLIBS | |
6671 | ||
6672 | ||
6673 | # _LT_LANG_C_CONFIG([TAG]) | |
6674 | # ------------------------ | |
6675 | # Ensure that the configuration variables for a C compiler are suitably | |
6676 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
6677 | # the compiler configuration to `libtool'. | |
6678 | m4_defun([_LT_LANG_C_CONFIG], | |
6679 | [m4_require([_LT_DECL_EGREP])dnl | |
6680 | lt_save_CC="$CC" | |
6681 | AC_LANG_PUSH(C) | |
6682 | ||
6683 | # Source file extension for C test sources. | |
6684 | ac_ext=c | |
6685 | ||
6686 | # Object file extension for compiled C test sources. | |
6687 | objext=o | |
6688 | _LT_TAGVAR(objext, $1)=$objext | |
6689 | ||
6690 | # Code to be used in simple compile tests | |
6691 | lt_simple_compile_test_code="int some_variable = 0;" | |
6692 | ||
6693 | # Code to be used in simple link tests | |
6694 | lt_simple_link_test_code='int main(){return(0);}' | |
6695 | ||
6696 | _LT_TAG_COMPILER | |
6697 | # Save the default compiler, since it gets overwritten when the other | |
6698 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6699 | compiler_DEFAULT=$CC | |
6700 | ||
6701 | # save warnings/boilerplate of simple test code | |
6702 | _LT_COMPILER_BOILERPLATE | |
6703 | _LT_LINKER_BOILERPLATE | |
6704 | ||
6705 | if test -n "$compiler"; then | |
6706 | _LT_COMPILER_NO_RTTI($1) | |
6707 | _LT_COMPILER_PIC($1) | |
6708 | _LT_COMPILER_C_O($1) | |
6709 | _LT_COMPILER_FILE_LOCKS($1) | |
6710 | _LT_LINKER_SHLIBS($1) | |
6711 | _LT_SYS_DYNAMIC_LINKER($1) | |
6712 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
6713 | LT_SYS_DLOPEN_SELF | |
6714 | _LT_CMD_STRIPLIB | |
6715 | ||
6716 | # Report which library types will actually be built | |
6717 | AC_MSG_CHECKING([if libtool supports shared libraries]) | |
6718 | AC_MSG_RESULT([$can_build_shared]) | |
6719 | ||
6720 | AC_MSG_CHECKING([whether to build shared libraries]) | |
6721 | test "$can_build_shared" = "no" && enable_shared=no | |
6722 | ||
6723 | # On AIX, shared libraries and static libraries use the same namespace, and | |
6724 | # are all built from PIC. | |
6725 | case $host_os in | |
6726 | aix3*) | |
6727 | test "$enable_shared" = yes && enable_static=no | |
6728 | if test -n "$RANLIB"; then | |
6729 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
6730 | postinstall_cmds='$RANLIB $lib' | |
6731 | fi | |
6732 | ;; | |
6733 | ||
6734 | aix[[4-9]]*) | |
6735 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
6736 | test "$enable_shared" = yes && enable_static=no | |
6737 | fi | |
6738 | ;; | |
6739 | esac | |
6740 | AC_MSG_RESULT([$enable_shared]) | |
6741 | ||
6742 | AC_MSG_CHECKING([whether to build static libraries]) | |
6743 | # Make sure either enable_shared or enable_static is yes. | |
6744 | test "$enable_shared" = yes || enable_static=yes | |
6745 | AC_MSG_RESULT([$enable_static]) | |
6746 | ||
6747 | _LT_CONFIG($1) | |
6748 | fi | |
6749 | AC_LANG_POP | |
6750 | CC="$lt_save_CC" | |
6751 | ])# _LT_LANG_C_CONFIG | |
6752 | ||
6753 | ||
6754 | # _LT_LANG_CXX_CONFIG([TAG]) | |
6755 | # -------------------------- | |
6756 | # Ensure that the configuration variables for a C++ compiler are suitably | |
6757 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
6758 | # the compiler configuration to `libtool'. | |
6759 | m4_defun([_LT_LANG_CXX_CONFIG], | |
6760 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
6761 | m4_require([_LT_DECL_EGREP])dnl | |
6762 | m4_require([_LT_PATH_MANIFEST_TOOL])dnl | |
6763 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
6764 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
6765 | (test "X$CXX" != "Xg++"))) ; then | |
6766 | AC_PROG_CXXCPP | |
6767 | else | |
6768 | _lt_caught_CXX_error=yes | |
6769 | fi | |
6770 | ||
6771 | AC_LANG_PUSH(C++) | |
6772 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6773 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
6774 | _LT_TAGVAR(always_export_symbols, $1)=no | |
6775 | _LT_TAGVAR(archive_expsym_cmds, $1)= | |
6776 | _LT_TAGVAR(compiler_needs_object, $1)=no | |
6777 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
6778 | _LT_TAGVAR(hardcode_direct, $1)=no | |
6779 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
6780 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
6781 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
6782 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
6783 | _LT_TAGVAR(hardcode_minus_L, $1)=no | |
6784 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
6785 | _LT_TAGVAR(hardcode_automatic, $1)=no | |
6786 | _LT_TAGVAR(inherit_rpath, $1)=no | |
6787 | _LT_TAGVAR(module_cmds, $1)= | |
6788 | _LT_TAGVAR(module_expsym_cmds, $1)= | |
6789 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
6790 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
6791 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
6792 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
6793 | _LT_TAGVAR(no_undefined_flag, $1)= | |
6794 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
6795 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
6796 | ||
6797 | # Source file extension for C++ test sources. | |
6798 | ac_ext=cpp | |
6799 | ||
6800 | # Object file extension for compiled C++ test sources. | |
6801 | objext=o | |
6802 | _LT_TAGVAR(objext, $1)=$objext | |
6803 | ||
6804 | # No sense in running all these tests if we already determined that | |
6805 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
6806 | # are currently assumed to apply to all compilers on this platform, | |
6807 | # and will be corrupted by setting them based on a non-working compiler. | |
6808 | if test "$_lt_caught_CXX_error" != yes; then | |
6809 | # Code to be used in simple compile tests | |
6810 | lt_simple_compile_test_code="int some_variable = 0;" | |
6811 | ||
6812 | # Code to be used in simple link tests | |
6813 | lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' | |
6814 | ||
6815 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
6816 | _LT_TAG_COMPILER | |
6817 | ||
6818 | # save warnings/boilerplate of simple test code | |
6819 | _LT_COMPILER_BOILERPLATE | |
6820 | _LT_LINKER_BOILERPLATE | |
6821 | ||
6822 | # Allow CC to be a program name with arguments. | |
6823 | lt_save_CC=$CC | |
6824 | lt_save_CFLAGS=$CFLAGS | |
6825 | lt_save_LD=$LD | |
6826 | lt_save_GCC=$GCC | |
6827 | GCC=$GXX | |
6828 | lt_save_with_gnu_ld=$with_gnu_ld | |
6829 | lt_save_path_LD=$lt_cv_path_LD | |
6830 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
6831 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
6832 | else | |
6833 | $as_unset lt_cv_prog_gnu_ld | |
6834 | fi | |
6835 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
6836 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
6837 | else | |
6838 | $as_unset lt_cv_path_LD | |
6839 | fi | |
6840 | test -z "${LDCXX+set}" || LD=$LDCXX | |
6841 | CC=${CXX-"c++"} | |
6842 | CFLAGS=$CXXFLAGS | |
6843 | compiler=$CC | |
6844 | _LT_TAGVAR(compiler, $1)=$CC | |
6845 | _LT_CC_BASENAME([$compiler]) | |
6846 | ||
6847 | if test -n "$compiler"; then | |
6848 | # We don't want -fno-exception when compiling C++ code, so set the | |
6849 | # no_builtin_flag separately | |
6850 | if test "$GXX" = yes; then | |
6851 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | |
6852 | else | |
6853 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
6854 | fi | |
6855 | ||
6856 | if test "$GXX" = yes; then | |
6857 | # Set up default GNU C++ configuration | |
6858 | ||
6859 | LT_PATH_LD | |
6860 | ||
6861 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
6862 | # archiving commands below assume that GNU ld is being used. | |
6863 | if test "$with_gnu_ld" = yes; then | |
6864 | _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6865 | _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' | |
6866 | ||
6867 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6868 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6869 | ||
6870 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
6871 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
6872 | # investigate it a little bit more. (MM) | |
6873 | wlarc='${wl}' | |
6874 | ||
6875 | # ancient GNU ld didn't support --whole-archive et. al. | |
6876 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
6877 | $GREP 'no-whole-archive' > /dev/null; then | |
6878 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6879 | else | |
6880 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
6881 | fi | |
6882 | else | |
6883 | with_gnu_ld=no | |
6884 | wlarc= | |
6885 | ||
6886 | # A generic and very simple default shared library creation | |
6887 | # command for GNU C++ for the case where it uses the native | |
6888 | # linker, instead of GNU ld. If possible, this setting should | |
6889 | # overridden to take advantage of the native linker features on | |
6890 | # the platform it is being used on. | |
6891 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
6892 | fi | |
6893 | ||
6894 | # Commands to make compiler produce verbose output that lists | |
6895 | # what "hidden" libraries, object files and flags are used when | |
6896 | # linking a shared library. | |
6897 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
6898 | ||
6899 | else | |
6900 | GXX=no | |
6901 | with_gnu_ld=no | |
6902 | wlarc= | |
6903 | fi | |
6904 | ||
6905 | # PORTME: fill in a description of your system's C++ link characteristics | |
6906 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
6907 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
6908 | case $host_os in | |
6909 | aix3*) | |
6910 | # FIXME: insert proper C++ library support | |
6911 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6912 | ;; | |
6913 | aix[[4-9]]*) | |
6914 | if test "$host_cpu" = ia64; then | |
6915 | # On IA64, the linker does run time linking by default, so we don't | |
6916 | # have to do anything special. | |
6917 | aix_use_runtimelinking=no | |
6918 | exp_sym_flag='-Bexport' | |
6919 | no_entry_flag="" | |
6920 | else | |
6921 | aix_use_runtimelinking=no | |
6922 | ||
6923 | # Test if we are trying to use run time linking or normal | |
6924 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
6925 | # need to do runtime linking. | |
6926 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | |
6927 | for ld_flag in $LDFLAGS; do | |
6928 | case $ld_flag in | |
6929 | *-brtl*) | |
6930 | aix_use_runtimelinking=yes | |
6931 | break | |
6932 | ;; | |
6933 | esac | |
6934 | done | |
6935 | ;; | |
6936 | esac | |
6937 | ||
6938 | exp_sym_flag='-bexport' | |
6939 | no_entry_flag='-bnoentry' | |
6940 | fi | |
6941 | ||
6942 | # When large executables or shared objects are built, AIX ld can | |
6943 | # have problems creating the table of contents. If linking a library | |
6944 | # or program results in "error TOC overflow" add -mminimal-toc to | |
6945 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
6946 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
6947 | ||
6948 | _LT_TAGVAR(archive_cmds, $1)='' | |
6949 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6950 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
6951 | _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
6952 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6953 | _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | |
6954 | ||
6955 | if test "$GXX" = yes; then | |
6956 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
6957 | # We only want to do this on AIX 4.2 and lower, the check | |
6958 | # below for broken collect2 doesn't work under 4.3+ | |
6959 | collect2name=`${CC} -print-prog-name=collect2` | |
6960 | if test -f "$collect2name" && | |
6961 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
6962 | then | |
6963 | # We have reworked collect2 | |
6964 | : | |
6965 | else | |
6966 | # We have old collect2 | |
6967 | _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
6968 | # It fails to find uninstalled libraries when the uninstalled | |
6969 | # path is not listed in the libpath. Setting hardcode_minus_L | |
6970 | # to unsupported forces relinking | |
6971 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
6972 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6973 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
6974 | fi | |
6975 | esac | |
6976 | shared_flag='-shared' | |
6977 | if test "$aix_use_runtimelinking" = yes; then | |
6978 | shared_flag="$shared_flag "'${wl}-G' | |
6979 | fi | |
6980 | else | |
6981 | # not using gcc | |
6982 | if test "$host_cpu" = ia64; then | |
6983 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
6984 | # chokes on -Wl,-G. The following line is correct: | |
6985 | shared_flag='-G' | |
6986 | else | |
6987 | if test "$aix_use_runtimelinking" = yes; then | |
6988 | shared_flag='${wl}-G' | |
6989 | else | |
6990 | shared_flag='${wl}-bM:SRE' | |
6991 | fi | |
6992 | fi | |
6993 | fi | |
6994 | ||
6995 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | |
6996 | # It seems that -bexpall does not export symbols beginning with | |
6997 | # underscore (_), so it is better to generate a list of symbols to | |
6998 | # export. | |
6999 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
7000 | if test "$aix_use_runtimelinking" = yes; then | |
7001 | # Warning - without using the other runtime loading flags (-brtl), | |
7002 | # -berok will link without error, but may produce a broken library. | |
7003 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | |
7004 | # Determine the default libpath from the value encoded in an empty | |
7005 | # executable. | |
7006 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
7007 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7008 | ||
7009 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7010 | else | |
7011 | if test "$host_cpu" = ia64; then | |
7012 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | |
7013 | _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
7014 | _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" | |
7015 | else | |
7016 | # Determine the default libpath from the value encoded in an | |
7017 | # empty executable. | |
7018 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
7019 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7020 | # Warning - without using the other run time loading flags, | |
7021 | # -berok will link without error, but may produce a broken library. | |
7022 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | |
7023 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | |
7024 | if test "$with_gnu_ld" = yes; then | |
7025 | # We only use this code for GNU lds that support --whole-archive. | |
7026 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
7027 | else | |
7028 | # Exported symbols can be pulled into shared objects from archives | |
7029 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
7030 | fi | |
7031 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
7032 | # This is similar to how AIX traditionally builds its shared | |
7033 | # libraries. | |
7034 | _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
7035 | fi | |
7036 | fi | |
7037 | ;; | |
7038 | ||
7039 | beos*) | |
7040 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7041 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
7042 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7043 | # support --undefined. This deserves some investigation. FIXME | |
7044 | _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7045 | else | |
7046 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7047 | fi | |
7048 | ;; | |
7049 | ||
7050 | chorus*) | |
7051 | case $cc_basename in | |
7052 | *) | |
7053 | # FIXME: insert proper C++ library support | |
7054 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7055 | ;; | |
7056 | esac | |
7057 | ;; | |
7058 | ||
7059 | cygwin* | mingw* | pw32* | cegcc*) | |
7060 | case $GXX,$cc_basename in | |
7061 | ,cl* | no,cl*) | |
7062 | # Native MSVC | |
7063 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7064 | # no search path for DLLs. | |
7065 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
7066 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
7067 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
7068 | _LT_TAGVAR(file_list_spec, $1)='@' | |
7069 | # Tell ltmain to make .lib files, not .a files. | |
7070 | libext=lib | |
7071 | # Tell ltmain to make .dll files, not .so files. | |
7072 | shrext_cmds=".dll" | |
7073 | # FIXME: Setting linknames here is a bad hack. | |
7074 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
7075 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7076 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
7077 | else | |
7078 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
7079 | fi~ | |
7080 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
7081 | linknames=' | |
7082 | # The linker will not automatically build a static lib if we build a DLL. | |
7083 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
7084 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
7085 | # Don't use ranlib | |
7086 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | |
7087 | _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | |
7088 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
7089 | case $lt_outputfile in | |
7090 | *.exe|*.EXE) ;; | |
7091 | *) | |
7092 | lt_outputfile="$lt_outputfile.exe" | |
7093 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
7094 | ;; | |
7095 | esac~ | |
7096 | func_to_tool_file "$lt_outputfile"~ | |
7097 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
7098 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
7099 | $RM "$lt_outputfile.manifest"; | |
7100 | fi' | |
7101 | ;; | |
7102 | *) | |
7103 | # g++ | |
7104 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
7105 | # as there is no search path for DLLs. | |
7106 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
7107 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
7108 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
7109 | _LT_TAGVAR(always_export_symbols, $1)=no | |
7110 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
7111 | ||
7112 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7113 | _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' | |
7114 | # If the export-symbols file already is a .def file (1st line | |
7115 | # is EXPORTS), use it as is; otherwise, prepend... | |
7116 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7117 | cp $export_symbols $output_objdir/$soname.def; | |
7118 | else | |
7119 | echo EXPORTS > $output_objdir/$soname.def; | |
7120 | cat $export_symbols >> $output_objdir/$soname.def; | |
7121 | fi~ | |
7122 | $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' | |
7123 | else | |
7124 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7125 | fi | |
7126 | ;; | |
7127 | esac | |
7128 | ;; | |
7129 | darwin* | rhapsody*) | |
7130 | _LT_DARWIN_LINKER_FEATURES($1) | |
7131 | ;; | |
7132 | ||
7133 | dgux*) | |
7134 | case $cc_basename in | |
7135 | ec++*) | |
7136 | # FIXME: insert proper C++ library support | |
7137 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7138 | ;; | |
7139 | ghcx*) | |
7140 | # Green Hills C++ Compiler | |
7141 | # FIXME: insert proper C++ library support | |
7142 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7143 | ;; | |
7144 | *) | |
7145 | # FIXME: insert proper C++ library support | |
7146 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7147 | ;; | |
7148 | esac | |
7149 | ;; | |
7150 | ||
7151 | freebsd[[12]]*) | |
7152 | # C++ shared libraries reported to be fairly broken before | |
7153 | # switch to ELF | |
7154 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7155 | ;; | |
7156 | ||
7157 | freebsd-elf*) | |
7158 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
7159 | ;; | |
7160 | ||
7161 | freebsd* | dragonfly*) | |
7162 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
7163 | # conventions | |
7164 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
7165 | ;; | |
7166 | ||
7167 | gnu*) | |
7168 | ;; | |
7169 | ||
7170 | haiku*) | |
7171 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7172 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
7173 | ;; | |
7174 | ||
7175 | hpux9*) | |
7176 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
7177 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
7178 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
7179 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
7180 | _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
7181 | # but as the default | |
7182 | # location of the library. | |
7183 | ||
7184 | case $cc_basename in | |
7185 | CC*) | |
7186 | # FIXME: insert proper C++ library support | |
7187 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7188 | ;; | |
7189 | aCC*) | |
7190 | _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
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 -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"' | |
7200 | ;; | |
7201 | *) | |
7202 | if test "$GXX" = yes; then | |
7203 | _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7204 | else | |
7205 | # FIXME: insert proper C++ library support | |
7206 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7207 | fi | |
7208 | ;; | |
7209 | esac | |
7210 | ;; | |
7211 | ||
7212 | hpux10*|hpux11*) | |
7213 | if test $with_gnu_ld = no; then | |
7214 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
7215 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
7216 | ||
7217 | case $host_cpu in | |
7218 | hppa*64*|ia64*) | |
7219 | ;; | |
7220 | *) | |
7221 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
7222 | ;; | |
7223 | esac | |
7224 | fi | |
7225 | case $host_cpu in | |
7226 | hppa*64*|ia64*) | |
7227 | _LT_TAGVAR(hardcode_direct, $1)=no | |
7228 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7229 | ;; | |
7230 | *) | |
7231 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
7232 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
7233 | _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
7234 | # but as the default | |
7235 | # location of the library. | |
7236 | ;; | |
7237 | esac | |
7238 | ||
7239 | case $cc_basename in | |
7240 | CC*) | |
7241 | # FIXME: insert proper C++ library support | |
7242 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7243 | ;; | |
7244 | aCC*) | |
7245 | case $host_cpu in | |
7246 | hppa*64*) | |
7247 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
7248 | ;; | |
7249 | ia64*) | |
7250 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
7251 | ;; | |
7252 | *) | |
7253 | _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' | |
7254 | ;; | |
7255 | esac | |
7256 | # Commands to make compiler produce verbose output that lists | |
7257 | # what "hidden" libraries, object files and flags are used when | |
7258 | # linking a shared library. | |
7259 | # | |
7260 | # There doesn't appear to be a way to prevent this compiler from | |
7261 | # explicitly linking system object files so we need to strip them | |
7262 | # from the output so that they don't get included in the library | |
7263 | # dependencies. | |
7264 | 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"' | |
7265 | ;; | |
7266 | *) | |
7267 | if test "$GXX" = yes; then | |
7268 | if test $with_gnu_ld = no; then | |
7269 | case $host_cpu in | |
7270 | hppa*64*) | |
7271 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
7272 | ;; | |
7273 | ia64*) | |
7274 | _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' | |
7275 | ;; | |
7276 | *) | |
7277 | _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' | |
7278 | ;; | |
7279 | esac | |
7280 | fi | |
7281 | else | |
7282 | # FIXME: insert proper C++ library support | |
7283 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7284 | fi | |
7285 | ;; | |
7286 | esac | |
7287 | ;; | |
7288 | ||
7289 | interix[[3-9]]*) | |
7290 | _LT_TAGVAR(hardcode_direct, $1)=no | |
7291 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7292 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
7293 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
7294 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7295 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7296 | # default) and relocated if they conflict, which is a slow very memory | |
7297 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7298 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7299 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7300 | _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' | |
7301 | _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' | |
7302 | ;; | |
7303 | irix5* | irix6*) | |
7304 | case $cc_basename in | |
7305 | CC*) | |
7306 | # SGI C++ | |
7307 | _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' | |
7308 | ||
7309 | # Archives containing C++ object files must be created using | |
7310 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
7311 | # necessary to make sure instantiated templates are included | |
7312 | # in the archive. | |
7313 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
7314 | ;; | |
7315 | *) | |
7316 | if test "$GXX" = yes; then | |
7317 | if test "$with_gnu_ld" = no; then | |
7318 | _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' | |
7319 | else | |
7320 | _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' | |
7321 | fi | |
7322 | fi | |
7323 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
7324 | ;; | |
7325 | esac | |
7326 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
7327 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
7328 | _LT_TAGVAR(inherit_rpath, $1)=yes | |
7329 | ;; | |
7330 | ||
7331 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
7332 | case $cc_basename in | |
7333 | KCC*) | |
7334 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
7335 | ||
7336 | # KCC will only create a shared library if the output file | |
7337 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
7338 | # to its proper name (with version) after linking. | |
7339 | _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' | |
7340 | _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' | |
7341 | # Commands to make compiler produce verbose output that lists | |
7342 | # what "hidden" libraries, object files and flags are used when | |
7343 | # linking a shared library. | |
7344 | # | |
7345 | # There doesn't appear to be a way to prevent this compiler from | |
7346 | # explicitly linking system object files so we need to strip them | |
7347 | # from the output so that they don't get included in the library | |
7348 | # dependencies. | |
7349 | 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"' | |
7350 | ||
7351 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
7352 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
7353 | ||
7354 | # Archives containing C++ object files must be created using | |
7355 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
7356 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | |
7357 | ;; | |
7358 | icpc* | ecpc* ) | |
7359 | # Intel C++ | |
7360 | with_gnu_ld=yes | |
7361 | # version 8.0 and above of icpc choke on multiply defined symbols | |
7362 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
7363 | # earlier do not add the objects themselves. | |
7364 | case `$CC -V 2>&1` in | |
7365 | *"Version 7."*) | |
7366 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7367 | _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' | |
7368 | ;; | |
7369 | *) # Version 8.0 or newer | |
7370 | tmp_idyn= | |
7371 | case $host_cpu in | |
7372 | ia64*) tmp_idyn=' -i_dynamic';; | |
7373 | esac | |
7374 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7375 | _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' | |
7376 | ;; | |
7377 | esac | |
7378 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
7379 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
7380 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
7381 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
7382 | ;; | |
7383 | pgCC* | pgcpp*) | |
7384 | # Portland Group C++ compiler | |
7385 | case `$CC -V` in | |
7386 | *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) | |
7387 | _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | |
7388 | rm -rf $tpldir~ | |
7389 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
7390 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
7391 | _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | |
7392 | rm -rf $tpldir~ | |
7393 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
7394 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
7395 | $RANLIB $oldlib' | |
7396 | _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | |
7397 | rm -rf $tpldir~ | |
7398 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
7399 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
7400 | _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | |
7401 | rm -rf $tpldir~ | |
7402 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
7403 | $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' | |
7404 | ;; | |
7405 | *) # Version 6 and above use weak symbols | |
7406 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
7407 | _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' | |
7408 | ;; | |
7409 | esac | |
7410 | ||
7411 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
7412 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
7413 | _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' | |
7414 | ;; | |
7415 | cxx*) | |
7416 | # Compaq C++ | |
7417 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7418 | _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' | |
7419 | ||
7420 | runpath_var=LD_RUN_PATH | |
7421 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
7422 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
7423 | ||
7424 | # Commands to make compiler produce verbose output that lists | |
7425 | # what "hidden" libraries, object files and flags are used when | |
7426 | # linking a shared library. | |
7427 | # | |
7428 | # There doesn't appear to be a way to prevent this compiler from | |
7429 | # explicitly linking system object files so we need to strip them | |
7430 | # from the output so that they don't get included in the library | |
7431 | # dependencies. | |
7432 | 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' | |
7433 | ;; | |
7434 | xl* | mpixl* | bgxl*) | |
7435 | # IBM XL 8.0 on PPC, with GNU ld | |
7436 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
7437 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
7438 | _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7439 | if test "x$supports_anon_versioning" = xyes; then | |
7440 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
7441 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7442 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7443 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7444 | fi | |
7445 | ;; | |
7446 | *) | |
7447 | case `$CC -V 2>&1 | sed 5q` in | |
7448 | *Sun\ C*) | |
7449 | # Sun C++ 5.9 | |
7450 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
7451 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
7452 | _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' | |
7453 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
7454 | _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' | |
7455 | _LT_TAGVAR(compiler_needs_object, $1)=yes | |
7456 | ||
7457 | # Not sure whether something based on | |
7458 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
7459 | # would be better. | |
7460 | output_verbose_link_cmd='func_echo_all' | |
7461 | ||
7462 | # Archives containing C++ object files must be created using | |
7463 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
7464 | # necessary to make sure instantiated templates are included | |
7465 | # in the archive. | |
7466 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
7467 | ;; | |
7468 | esac | |
7469 | ;; | |
7470 | esac | |
7471 | ;; | |
7472 | ||
7473 | lynxos*) | |
7474 | # FIXME: insert proper C++ library support | |
7475 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7476 | ;; | |
7477 | ||
7478 | m88k*) | |
7479 | # FIXME: insert proper C++ library support | |
7480 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7481 | ;; | |
7482 | ||
7483 | mvs*) | |
7484 | case $cc_basename in | |
7485 | cxx*) | |
7486 | # FIXME: insert proper C++ library support | |
7487 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7488 | ;; | |
7489 | *) | |
7490 | # FIXME: insert proper C++ library support | |
7491 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7492 | ;; | |
7493 | esac | |
7494 | ;; | |
7495 | ||
7496 | netbsd*) | |
7497 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7498 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
7499 | wlarc= | |
7500 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
7501 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
7502 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7503 | fi | |
7504 | # Workaround some broken pre-1.5 toolchains | |
7505 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
7506 | ;; | |
7507 | ||
7508 | *nto* | *qnx*) | |
7509 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
7510 | ;; | |
7511 | ||
7512 | openbsd2*) | |
7513 | # C++ shared libraries are fairly broken | |
7514 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7515 | ;; | |
7516 | ||
7517 | openbsd*) | |
7518 | if test -f /usr/libexec/ld.so; then | |
7519 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
7520 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7521 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
7522 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
7523 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
7524 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
7525 | _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' | |
7526 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
7527 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7528 | fi | |
7529 | output_verbose_link_cmd=func_echo_all | |
7530 | else | |
7531 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7532 | fi | |
7533 | ;; | |
7534 | ||
7535 | osf3* | osf4* | osf5*) | |
7536 | case $cc_basename in | |
7537 | KCC*) | |
7538 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
7539 | ||
7540 | # KCC will only create a shared library if the output file | |
7541 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
7542 | # to its proper name (with version) after linking. | |
7543 | _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' | |
7544 | ||
7545 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
7546 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
7547 | ||
7548 | # Archives containing C++ object files must be created using | |
7549 | # the KAI C++ compiler. | |
7550 | case $host in | |
7551 | osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
7552 | *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; | |
7553 | esac | |
7554 | ;; | |
7555 | RCC*) | |
7556 | # Rational C++ 2.4.1 | |
7557 | # FIXME: insert proper C++ library support | |
7558 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7559 | ;; | |
7560 | cxx*) | |
7561 | case $host in | |
7562 | osf3*) | |
7563 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
7564 | _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' | |
7565 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
7566 | ;; | |
7567 | *) | |
7568 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
7569 | _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' | |
7570 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
7571 | echo "-hidden">> $lib.exp~ | |
7572 | $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~ | |
7573 | $RM $lib.exp' | |
7574 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
7575 | ;; | |
7576 | esac | |
7577 | ||
7578 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
7579 | ||
7580 | # Commands to make compiler produce verbose output that lists | |
7581 | # what "hidden" libraries, object files and flags are used when | |
7582 | # linking a shared library. | |
7583 | # | |
7584 | # There doesn't appear to be a way to prevent this compiler from | |
7585 | # explicitly linking system object files so we need to strip them | |
7586 | # from the output so that they don't get included in the library | |
7587 | # dependencies. | |
7588 | 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"' | |
7589 | ;; | |
7590 | *) | |
7591 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
7592 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
7593 | case $host in | |
7594 | osf3*) | |
7595 | _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' | |
7596 | ;; | |
7597 | *) | |
7598 | _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' | |
7599 | ;; | |
7600 | esac | |
7601 | ||
7602 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
7603 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
7604 | ||
7605 | # Commands to make compiler produce verbose output that lists | |
7606 | # what "hidden" libraries, object files and flags are used when | |
7607 | # linking a shared library. | |
7608 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
7609 | ||
7610 | else | |
7611 | # FIXME: insert proper C++ library support | |
7612 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7613 | fi | |
7614 | ;; | |
7615 | esac | |
7616 | ;; | |
7617 | ||
7618 | psos*) | |
7619 | # FIXME: insert proper C++ library support | |
7620 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7621 | ;; | |
7622 | ||
7623 | sunos4*) | |
7624 | case $cc_basename in | |
7625 | CC*) | |
7626 | # Sun C++ 4.x | |
7627 | # FIXME: insert proper C++ library support | |
7628 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7629 | ;; | |
7630 | lcc*) | |
7631 | # Lucid | |
7632 | # FIXME: insert proper C++ library support | |
7633 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7634 | ;; | |
7635 | *) | |
7636 | # FIXME: insert proper C++ library support | |
7637 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7638 | ;; | |
7639 | esac | |
7640 | ;; | |
7641 | ||
7642 | solaris*) | |
7643 | case $cc_basename in | |
7644 | CC* | sunCC*) | |
7645 | # Sun C++ 4.2, 5.x and Centerline C++ | |
7646 | _LT_TAGVAR(archive_cmds_need_lc,$1)=yes | |
7647 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
7648 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
7649 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
7650 | $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' | |
7651 | ||
7652 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
7653 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7654 | case $host_os in | |
7655 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
7656 | *) | |
7657 | # The compiler driver will combine and reorder linker options, | |
7658 | # but understands `-z linker_flag'. | |
7659 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
7660 | _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' | |
7661 | ;; | |
7662 | esac | |
7663 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
7664 | ||
7665 | output_verbose_link_cmd='func_echo_all' | |
7666 | ||
7667 | # Archives containing C++ object files must be created using | |
7668 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
7669 | # necessary to make sure instantiated templates are included | |
7670 | # in the archive. | |
7671 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
7672 | ;; | |
7673 | gcx*) | |
7674 | # Green Hills C++ Compiler | |
7675 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
7676 | ||
7677 | # The C++ compiler must be used to create the archive. | |
7678 | _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
7679 | ;; | |
7680 | *) | |
7681 | # GNU C++ compiler with Solaris linker | |
7682 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
7683 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | |
7684 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
7685 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
7686 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
7687 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
7688 | ||
7689 | # Commands to make compiler produce verbose output that lists | |
7690 | # what "hidden" libraries, object files and flags are used when | |
7691 | # linking a shared library. | |
7692 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
7693 | else | |
7694 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
7695 | # platform. | |
7696 | _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
7697 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
7698 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
7699 | ||
7700 | # Commands to make compiler produce verbose output that lists | |
7701 | # what "hidden" libraries, object files and flags are used when | |
7702 | # linking a shared library. | |
7703 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
7704 | fi | |
7705 | ||
7706 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | |
7707 | case $host_os in | |
7708 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
7709 | *) | |
7710 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
7711 | ;; | |
7712 | esac | |
7713 | fi | |
7714 | ;; | |
7715 | esac | |
7716 | ;; | |
7717 | ||
7718 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | |
7719 | _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
7720 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
7721 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7722 | runpath_var='LD_RUN_PATH' | |
7723 | ||
7724 | case $cc_basename in | |
7725 | CC*) | |
7726 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7727 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7728 | ;; | |
7729 | *) | |
7730 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7731 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7732 | ;; | |
7733 | esac | |
7734 | ;; | |
7735 | ||
7736 | sysv5* | sco3.2v5* | sco5v6*) | |
7737 | # Note: We can NOT use -z defs as we might desire, because we do not | |
7738 | # link with -lc, and that would cause any symbols used from libc to | |
7739 | # always be unresolved, which means just about no library would | |
7740 | # ever link correctly. If we're not using GNU ld we use -z text | |
7741 | # though, which does catch some bad symbols but isn't as heavy-handed | |
7742 | # as -z defs. | |
7743 | _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
7744 | _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
7745 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
7746 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
7747 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | |
7748 | _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
7749 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
7750 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
7751 | runpath_var='LD_RUN_PATH' | |
7752 | ||
7753 | case $cc_basename in | |
7754 | CC*) | |
7755 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7756 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7757 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ | |
7758 | '"$_LT_TAGVAR(old_archive_cmds, $1)" | |
7759 | _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ | |
7760 | '"$_LT_TAGVAR(reload_cmds, $1)" | |
7761 | ;; | |
7762 | *) | |
7763 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7764 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
7765 | ;; | |
7766 | esac | |
7767 | ;; | |
7768 | ||
7769 | tandem*) | |
7770 | case $cc_basename in | |
7771 | NCC*) | |
7772 | # NonStop-UX NCC 3.20 | |
7773 | # FIXME: insert proper C++ library support | |
7774 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7775 | ;; | |
7776 | *) | |
7777 | # FIXME: insert proper C++ library support | |
7778 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7779 | ;; | |
7780 | esac | |
7781 | ;; | |
7782 | ||
7783 | vxworks*) | |
7784 | # FIXME: insert proper C++ library support | |
7785 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7786 | ;; | |
7787 | ||
7788 | *) | |
7789 | # FIXME: insert proper C++ library support | |
7790 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7791 | ;; | |
7792 | esac | |
7793 | ||
7794 | AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | |
7795 | test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
7796 | ||
7797 | _LT_TAGVAR(GCC, $1)="$GXX" | |
7798 | _LT_TAGVAR(LD, $1)="$LD" | |
7799 | ||
7800 | ## CAVEAT EMPTOR: | |
7801 | ## There is no encapsulation within the following macros, do not change | |
7802 | ## the running order or otherwise move them around unless you know exactly | |
7803 | ## what you are doing... | |
7804 | _LT_SYS_HIDDEN_LIBDEPS($1) | |
7805 | _LT_COMPILER_PIC($1) | |
7806 | _LT_COMPILER_C_O($1) | |
7807 | _LT_COMPILER_FILE_LOCKS($1) | |
7808 | _LT_LINKER_SHLIBS($1) | |
7809 | _LT_SYS_DYNAMIC_LINKER($1) | |
7810 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
7811 | ||
7812 | _LT_CONFIG($1) | |
7813 | fi # test -n "$compiler" | |
7814 | ||
7815 | CC=$lt_save_CC | |
7816 | CFLAGS=$lt_save_CFLAGS | |
7817 | LDCXX=$LD | |
7818 | LD=$lt_save_LD | |
7819 | GCC=$lt_save_GCC | |
7820 | with_gnu_ld=$lt_save_with_gnu_ld | |
7821 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
7822 | lt_cv_path_LD=$lt_save_path_LD | |
7823 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
7824 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
7825 | fi # test "$_lt_caught_CXX_error" != yes | |
7826 | ||
7827 | AC_LANG_POP | |
7828 | ])# _LT_LANG_CXX_CONFIG | |
7829 | ||
7830 | ||
7831 | # _LT_FUNC_STRIPNAME_CNF | |
7832 | # ---------------------- | |
7833 | # func_stripname_cnf prefix suffix name | |
7834 | # strip PREFIX and SUFFIX off of NAME. | |
7835 | # PREFIX and SUFFIX must not contain globbing or regex special | |
7836 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
7837 | # dot (in which case that matches only a dot). | |
7838 | # | |
7839 | # This function is identical to the (non-XSI) version of func_stripname, | |
7840 | # except this one can be used by m4 code that may be executed by configure, | |
7841 | # rather than the libtool script. | |
7842 | m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl | |
7843 | AC_REQUIRE([_LT_DECL_SED]) | |
7844 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) | |
7845 | func_stripname_cnf () | |
7846 | { | |
7847 | case ${2} in | |
7848 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
7849 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
7850 | esac | |
7851 | } # func_stripname_cnf | |
7852 | ])# _LT_FUNC_STRIPNAME_CNF | |
7853 | ||
7854 | # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | |
7855 | # --------------------------------- | |
7856 | # Figure out "hidden" library dependencies from verbose | |
7857 | # compiler output when linking a shared library. | |
7858 | # Parse the compiler output and extract the necessary | |
7859 | # objects, libraries and library flags. | |
7860 | m4_defun([_LT_SYS_HIDDEN_LIBDEPS], | |
7861 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
7862 | AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl | |
7863 | # Dependencies to place before and after the object being linked: | |
7864 | _LT_TAGVAR(predep_objects, $1)= | |
7865 | _LT_TAGVAR(postdep_objects, $1)= | |
7866 | _LT_TAGVAR(predeps, $1)= | |
7867 | _LT_TAGVAR(postdeps, $1)= | |
7868 | _LT_TAGVAR(compiler_lib_search_path, $1)= | |
7869 | ||
7870 | dnl we can't use the lt_simple_compile_test_code here, | |
7871 | dnl because it contains code intended for an executable, | |
7872 | dnl not a library. It's possible we should let each | |
7873 | dnl tag define a new lt_????_link_test_code variable, | |
7874 | dnl but it's only used here... | |
7875 | m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF | |
7876 | int a; | |
7877 | void foo (void) { a = 0; } | |
7878 | _LT_EOF | |
7879 | ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF | |
7880 | class Foo | |
7881 | { | |
7882 | public: | |
7883 | Foo (void) { a = 0; } | |
7884 | private: | |
7885 | int a; | |
7886 | }; | |
7887 | _LT_EOF | |
7888 | ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF | |
7889 | subroutine foo | |
7890 | implicit none | |
7891 | integer*4 a | |
7892 | a=0 | |
7893 | return | |
7894 | end | |
7895 | _LT_EOF | |
7896 | ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF | |
7897 | subroutine foo | |
7898 | implicit none | |
7899 | integer a | |
7900 | a=0 | |
7901 | return | |
7902 | end | |
7903 | _LT_EOF | |
7904 | ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF | |
7905 | public class foo { | |
7906 | private int a; | |
7907 | public void bar (void) { | |
7908 | a = 0; | |
7909 | } | |
7910 | }; | |
7911 | _LT_EOF | |
7912 | ]) | |
7913 | ||
7914 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
7915 | case "$CC $CFLAGS " in #( | |
7916 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
7917 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
7918 | esac | |
7919 | ||
7920 | dnl Parse the compiler output and extract the necessary | |
7921 | dnl objects, libraries and library flags. | |
7922 | if AC_TRY_EVAL(ac_compile); then | |
7923 | # Parse the compiler output and extract the necessary | |
7924 | # objects, libraries and library flags. | |
7925 | ||
7926 | # Sentinel used to keep track of whether or not we are before | |
7927 | # the conftest object file. | |
7928 | pre_test_object_deps_done=no | |
7929 | ||
7930 | for p in `eval "$output_verbose_link_cmd"`; do | |
7931 | case ${prev}${p} in | |
7932 | ||
7933 | -L* | -R* | -l*) | |
7934 | # Some compilers place space between "-{L,R}" and the path. | |
7935 | # Remove the space. | |
7936 | if test $p = "-L" || | |
7937 | test $p = "-R"; then | |
7938 | prev=$p | |
7939 | continue | |
7940 | fi | |
7941 | ||
7942 | # Expand the sysroot to ease extracting the directories later. | |
7943 | if test -z "$prev"; then | |
7944 | case $p in | |
7945 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
7946 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
7947 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
7948 | esac | |
7949 | fi | |
7950 | case $p in | |
7951 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
7952 | esac | |
7953 | if test "$pre_test_object_deps_done" = no; then | |
7954 | case ${prev} in | |
7955 | -L | -R) | |
7956 | # Internal compiler library paths should come after those | |
7957 | # provided the user. The postdeps already come after the | |
7958 | # user supplied libs so there is no need to process them. | |
7959 | if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then | |
7960 | _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | |
7961 | else | |
7962 | _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | |
7963 | fi | |
7964 | ;; | |
7965 | # The "-l" case would never come before the object being | |
7966 | # linked, so don't bother handling this case. | |
7967 | esac | |
7968 | else | |
7969 | if test -z "$_LT_TAGVAR(postdeps, $1)"; then | |
7970 | _LT_TAGVAR(postdeps, $1)="${prev}${p}" | |
7971 | else | |
7972 | _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" | |
7973 | fi | |
7974 | fi | |
7975 | prev= | |
7976 | ;; | |
7977 | ||
7978 | *.lto.$objext) ;; # Ignore GCC LTO objects | |
7979 | *.$objext) | |
7980 | # This assumes that the test object file only shows up | |
7981 | # once in the compiler output. | |
7982 | if test "$p" = "conftest.$objext"; then | |
7983 | pre_test_object_deps_done=yes | |
7984 | continue | |
7985 | fi | |
7986 | ||
7987 | if test "$pre_test_object_deps_done" = no; then | |
7988 | if test -z "$_LT_TAGVAR(predep_objects, $1)"; then | |
7989 | _LT_TAGVAR(predep_objects, $1)="$p" | |
7990 | else | |
7991 | _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" | |
7992 | fi | |
7993 | else | |
7994 | if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then | |
7995 | _LT_TAGVAR(postdep_objects, $1)="$p" | |
7996 | else | |
7997 | _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" | |
7998 | fi | |
7999 | fi | |
8000 | ;; | |
8001 | ||
8002 | *) ;; # Ignore the rest. | |
8003 | ||
8004 | esac | |
8005 | done | |
8006 | ||
8007 | # Clean up. | |
8008 | rm -f a.out a.exe | |
8009 | else | |
8010 | echo "libtool.m4: error: problem compiling $1 test program" | |
8011 | fi | |
8012 | ||
8013 | $RM -f confest.$objext | |
8014 | CFLAGS=$_lt_libdeps_save_CFLAGS | |
8015 | ||
8016 | # PORTME: override above test on systems where it is broken | |
8017 | m4_if([$1], [CXX], | |
8018 | [case $host_os in | |
8019 | interix[[3-9]]*) | |
8020 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
8021 | # hack all around it, let's just trust "g++" to DTRT. | |
8022 | _LT_TAGVAR(predep_objects,$1)= | |
8023 | _LT_TAGVAR(postdep_objects,$1)= | |
8024 | _LT_TAGVAR(postdeps,$1)= | |
8025 | ;; | |
8026 | ||
8027 | linux*) | |
8028 | case `$CC -V 2>&1 | sed 5q` in | |
8029 | *Sun\ C*) | |
8030 | # Sun C++ 5.9 | |
8031 | ||
8032 | # The more standards-conforming stlport4 library is | |
8033 | # incompatible with the Cstd library. Avoid specifying | |
8034 | # it if it's in CXXFLAGS. Ignore libCrun as | |
8035 | # -library=stlport4 depends on it. | |
8036 | case " $CXX $CXXFLAGS " in | |
8037 | *" -library=stlport4 "*) | |
8038 | solaris_use_stlport4=yes | |
8039 | ;; | |
8040 | esac | |
8041 | ||
8042 | if test "$solaris_use_stlport4" != yes; then | |
8043 | _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | |
8044 | fi | |
8045 | ;; | |
8046 | esac | |
8047 | ;; | |
8048 | ||
8049 | solaris*) | |
8050 | case $cc_basename in | |
8051 | CC* | sunCC*) | |
8052 | # The more standards-conforming stlport4 library is | |
8053 | # incompatible with the Cstd library. Avoid specifying | |
8054 | # it if it's in CXXFLAGS. Ignore libCrun as | |
8055 | # -library=stlport4 depends on it. | |
8056 | case " $CXX $CXXFLAGS " in | |
8057 | *" -library=stlport4 "*) | |
8058 | solaris_use_stlport4=yes | |
8059 | ;; | |
8060 | esac | |
8061 | ||
8062 | # Adding this requires a known-good setup of shared libraries for | |
8063 | # Sun compiler versions before 5.6, else PIC objects from an old | |
8064 | # archive will be linked into the output, leading to subtle bugs. | |
8065 | if test "$solaris_use_stlport4" != yes; then | |
8066 | _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | |
8067 | fi | |
8068 | ;; | |
8069 | esac | |
8070 | ;; | |
8071 | esac | |
8072 | ]) | |
8073 | ||
8074 | case " $_LT_TAGVAR(postdeps, $1) " in | |
8075 | *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; | |
8076 | esac | |
8077 | _LT_TAGVAR(compiler_lib_search_dirs, $1)= | |
8078 | if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then | |
8079 | _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
8080 | fi | |
8081 | _LT_TAGDECL([], [compiler_lib_search_dirs], [1], | |
8082 | [The directories searched by this compiler when creating a shared library]) | |
8083 | _LT_TAGDECL([], [predep_objects], [1], | |
8084 | [Dependencies to place before and after the objects being linked to | |
8085 | create a shared library]) | |
8086 | _LT_TAGDECL([], [postdep_objects], [1]) | |
8087 | _LT_TAGDECL([], [predeps], [1]) | |
8088 | _LT_TAGDECL([], [postdeps], [1]) | |
8089 | _LT_TAGDECL([], [compiler_lib_search_path], [1], | |
8090 | [The library search path used internally by the compiler when linking | |
8091 | a shared library]) | |
8092 | ])# _LT_SYS_HIDDEN_LIBDEPS | |
8093 | ||
8094 | ||
8095 | # _LT_LANG_F77_CONFIG([TAG]) | |
8096 | # -------------------------- | |
8097 | # Ensure that the configuration variables for a Fortran 77 compiler are | |
8098 | # suitably defined. These variables are subsequently used by _LT_CONFIG | |
8099 | # to write the compiler configuration to `libtool'. | |
8100 | m4_defun([_LT_LANG_F77_CONFIG], | |
8101 | [AC_LANG_PUSH(Fortran 77) | |
8102 | if test -z "$F77" || test "X$F77" = "Xno"; then | |
8103 | _lt_disable_F77=yes | |
8104 | fi | |
8105 | ||
8106 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
8107 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
8108 | _LT_TAGVAR(always_export_symbols, $1)=no | |
8109 | _LT_TAGVAR(archive_expsym_cmds, $1)= | |
8110 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
8111 | _LT_TAGVAR(hardcode_direct, $1)=no | |
8112 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
8113 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
8114 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
8115 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
8116 | _LT_TAGVAR(hardcode_minus_L, $1)=no | |
8117 | _LT_TAGVAR(hardcode_automatic, $1)=no | |
8118 | _LT_TAGVAR(inherit_rpath, $1)=no | |
8119 | _LT_TAGVAR(module_cmds, $1)= | |
8120 | _LT_TAGVAR(module_expsym_cmds, $1)= | |
8121 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
8122 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
8123 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
8124 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
8125 | _LT_TAGVAR(no_undefined_flag, $1)= | |
8126 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
8127 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
8128 | ||
8129 | # Source file extension for f77 test sources. | |
8130 | ac_ext=f | |
8131 | ||
8132 | # Object file extension for compiled f77 test sources. | |
8133 | objext=o | |
8134 | _LT_TAGVAR(objext, $1)=$objext | |
8135 | ||
8136 | # No sense in running all these tests if we already determined that | |
8137 | # the F77 compiler isn't working. Some variables (like enable_shared) | |
8138 | # are currently assumed to apply to all compilers on this platform, | |
8139 | # and will be corrupted by setting them based on a non-working compiler. | |
8140 | if test "$_lt_disable_F77" != yes; then | |
8141 | # Code to be used in simple compile tests | |
8142 | lt_simple_compile_test_code="\ | |
8143 | subroutine t | |
8144 | return | |
8145 | end | |
8146 | " | |
8147 | ||
8148 | # Code to be used in simple link tests | |
8149 | lt_simple_link_test_code="\ | |
8150 | program t | |
8151 | end | |
8152 | " | |
8153 | ||
8154 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
8155 | _LT_TAG_COMPILER | |
8156 | ||
8157 | # save warnings/boilerplate of simple test code | |
8158 | _LT_COMPILER_BOILERPLATE | |
8159 | _LT_LINKER_BOILERPLATE | |
8160 | ||
8161 | # Allow CC to be a program name with arguments. | |
8162 | lt_save_CC="$CC" | |
8163 | lt_save_GCC=$GCC | |
8164 | lt_save_CFLAGS=$CFLAGS | |
8165 | CC=${F77-"f77"} | |
8166 | CFLAGS=$FFLAGS | |
8167 | compiler=$CC | |
8168 | _LT_TAGVAR(compiler, $1)=$CC | |
8169 | _LT_CC_BASENAME([$compiler]) | |
8170 | GCC=$G77 | |
8171 | if test -n "$compiler"; then | |
8172 | AC_MSG_CHECKING([if libtool supports shared libraries]) | |
8173 | AC_MSG_RESULT([$can_build_shared]) | |
8174 | ||
8175 | AC_MSG_CHECKING([whether to build shared libraries]) | |
8176 | test "$can_build_shared" = "no" && enable_shared=no | |
8177 | ||
8178 | # On AIX, shared libraries and static libraries use the same namespace, and | |
8179 | # are all built from PIC. | |
8180 | case $host_os in | |
8181 | aix3*) | |
8182 | test "$enable_shared" = yes && enable_static=no | |
8183 | if test -n "$RANLIB"; then | |
8184 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
8185 | postinstall_cmds='$RANLIB $lib' | |
8186 | fi | |
8187 | ;; | |
8188 | aix[[4-9]]*) | |
8189 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
8190 | test "$enable_shared" = yes && enable_static=no | |
8191 | fi | |
8192 | ;; | |
8193 | esac | |
8194 | AC_MSG_RESULT([$enable_shared]) | |
8195 | ||
8196 | AC_MSG_CHECKING([whether to build static libraries]) | |
8197 | # Make sure either enable_shared or enable_static is yes. | |
8198 | test "$enable_shared" = yes || enable_static=yes | |
8199 | AC_MSG_RESULT([$enable_static]) | |
8200 | ||
8201 | _LT_TAGVAR(GCC, $1)="$G77" | |
8202 | _LT_TAGVAR(LD, $1)="$LD" | |
8203 | ||
8204 | ## CAVEAT EMPTOR: | |
8205 | ## There is no encapsulation within the following macros, do not change | |
8206 | ## the running order or otherwise move them around unless you know exactly | |
8207 | ## what you are doing... | |
8208 | _LT_COMPILER_PIC($1) | |
8209 | _LT_COMPILER_C_O($1) | |
8210 | _LT_COMPILER_FILE_LOCKS($1) | |
8211 | _LT_LINKER_SHLIBS($1) | |
8212 | _LT_SYS_DYNAMIC_LINKER($1) | |
8213 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
8214 | ||
8215 | _LT_CONFIG($1) | |
8216 | fi # test -n "$compiler" | |
8217 | ||
8218 | GCC=$lt_save_GCC | |
8219 | CC="$lt_save_CC" | |
8220 | CFLAGS="$lt_save_CFLAGS" | |
8221 | fi # test "$_lt_disable_F77" != yes | |
8222 | ||
8223 | AC_LANG_POP | |
8224 | ])# _LT_LANG_F77_CONFIG | |
8225 | ||
8226 | ||
8227 | # _LT_LANG_FC_CONFIG([TAG]) | |
8228 | # ------------------------- | |
8229 | # Ensure that the configuration variables for a Fortran compiler are | |
8230 | # suitably defined. These variables are subsequently used by _LT_CONFIG | |
8231 | # to write the compiler configuration to `libtool'. | |
8232 | m4_defun([_LT_LANG_FC_CONFIG], | |
8233 | [AC_LANG_PUSH(Fortran) | |
8234 | ||
8235 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
8236 | _lt_disable_FC=yes | |
8237 | fi | |
8238 | ||
8239 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
8240 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
8241 | _LT_TAGVAR(always_export_symbols, $1)=no | |
8242 | _LT_TAGVAR(archive_expsym_cmds, $1)= | |
8243 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
8244 | _LT_TAGVAR(hardcode_direct, $1)=no | |
8245 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
8246 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
8247 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
8248 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
8249 | _LT_TAGVAR(hardcode_minus_L, $1)=no | |
8250 | _LT_TAGVAR(hardcode_automatic, $1)=no | |
8251 | _LT_TAGVAR(inherit_rpath, $1)=no | |
8252 | _LT_TAGVAR(module_cmds, $1)= | |
8253 | _LT_TAGVAR(module_expsym_cmds, $1)= | |
8254 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
8255 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
8256 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
8257 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
8258 | _LT_TAGVAR(no_undefined_flag, $1)= | |
8259 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
8260 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
8261 | ||
8262 | # Source file extension for fc test sources. | |
8263 | ac_ext=${ac_fc_srcext-f} | |
8264 | ||
8265 | # Object file extension for compiled fc test sources. | |
8266 | objext=o | |
8267 | _LT_TAGVAR(objext, $1)=$objext | |
8268 | ||
8269 | # No sense in running all these tests if we already determined that | |
8270 | # the FC compiler isn't working. Some variables (like enable_shared) | |
8271 | # are currently assumed to apply to all compilers on this platform, | |
8272 | # and will be corrupted by setting them based on a non-working compiler. | |
8273 | if test "$_lt_disable_FC" != yes; then | |
8274 | # Code to be used in simple compile tests | |
8275 | lt_simple_compile_test_code="\ | |
8276 | subroutine t | |
8277 | return | |
8278 | end | |
8279 | " | |
8280 | ||
8281 | # Code to be used in simple link tests | |
8282 | lt_simple_link_test_code="\ | |
8283 | program t | |
8284 | end | |
8285 | " | |
8286 | ||
8287 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
8288 | _LT_TAG_COMPILER | |
8289 | ||
8290 | # save warnings/boilerplate of simple test code | |
8291 | _LT_COMPILER_BOILERPLATE | |
8292 | _LT_LINKER_BOILERPLATE | |
8293 | ||
8294 | # Allow CC to be a program name with arguments. | |
8295 | lt_save_CC="$CC" | |
8296 | lt_save_GCC=$GCC | |
8297 | lt_save_CFLAGS=$CFLAGS | |
8298 | CC=${FC-"f95"} | |
8299 | CFLAGS=$FCFLAGS | |
8300 | compiler=$CC | |
8301 | GCC=$ac_cv_fc_compiler_gnu | |
8302 | ||
8303 | _LT_TAGVAR(compiler, $1)=$CC | |
8304 | _LT_CC_BASENAME([$compiler]) | |
8305 | ||
8306 | if test -n "$compiler"; then | |
8307 | AC_MSG_CHECKING([if libtool supports shared libraries]) | |
8308 | AC_MSG_RESULT([$can_build_shared]) | |
8309 | ||
8310 | AC_MSG_CHECKING([whether to build shared libraries]) | |
8311 | test "$can_build_shared" = "no" && enable_shared=no | |
8312 | ||
8313 | # On AIX, shared libraries and static libraries use the same namespace, and | |
8314 | # are all built from PIC. | |
8315 | case $host_os in | |
8316 | aix3*) | |
8317 | test "$enable_shared" = yes && enable_static=no | |
8318 | if test -n "$RANLIB"; then | |
8319 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
8320 | postinstall_cmds='$RANLIB $lib' | |
8321 | fi | |
8322 | ;; | |
8323 | aix[[4-9]]*) | |
8324 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
8325 | test "$enable_shared" = yes && enable_static=no | |
8326 | fi | |
8327 | ;; | |
8328 | esac | |
8329 | AC_MSG_RESULT([$enable_shared]) | |
8330 | ||
8331 | AC_MSG_CHECKING([whether to build static libraries]) | |
8332 | # Make sure either enable_shared or enable_static is yes. | |
8333 | test "$enable_shared" = yes || enable_static=yes | |
8334 | AC_MSG_RESULT([$enable_static]) | |
8335 | ||
8336 | _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" | |
8337 | _LT_TAGVAR(LD, $1)="$LD" | |
8338 | ||
8339 | ## CAVEAT EMPTOR: | |
8340 | ## There is no encapsulation within the following macros, do not change | |
8341 | ## the running order or otherwise move them around unless you know exactly | |
8342 | ## what you are doing... | |
8343 | _LT_SYS_HIDDEN_LIBDEPS($1) | |
8344 | _LT_COMPILER_PIC($1) | |
8345 | _LT_COMPILER_C_O($1) | |
8346 | _LT_COMPILER_FILE_LOCKS($1) | |
8347 | _LT_LINKER_SHLIBS($1) | |
8348 | _LT_SYS_DYNAMIC_LINKER($1) | |
8349 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
8350 | ||
8351 | _LT_CONFIG($1) | |
8352 | fi # test -n "$compiler" | |
8353 | ||
8354 | GCC=$lt_save_GCC | |
8355 | CC=$lt_save_CC | |
8356 | CFLAGS=$lt_save_CFLAGS | |
8357 | fi # test "$_lt_disable_FC" != yes | |
8358 | ||
8359 | AC_LANG_POP | |
8360 | ])# _LT_LANG_FC_CONFIG | |
8361 | ||
8362 | ||
8363 | # _LT_LANG_GCJ_CONFIG([TAG]) | |
8364 | # -------------------------- | |
8365 | # Ensure that the configuration variables for the GNU Java Compiler compiler | |
8366 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
8367 | # to write the compiler configuration to `libtool'. | |
8368 | m4_defun([_LT_LANG_GCJ_CONFIG], | |
8369 | [AC_REQUIRE([LT_PROG_GCJ])dnl | |
8370 | AC_LANG_SAVE | |
8371 | ||
8372 | # Source file extension for Java test sources. | |
8373 | ac_ext=java | |
8374 | ||
8375 | # Object file extension for compiled Java test sources. | |
8376 | objext=o | |
8377 | _LT_TAGVAR(objext, $1)=$objext | |
8378 | ||
8379 | # Code to be used in simple compile tests | |
8380 | lt_simple_compile_test_code="class foo {}" | |
8381 | ||
8382 | # Code to be used in simple link tests | |
8383 | lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' | |
8384 | ||
8385 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
8386 | _LT_TAG_COMPILER | |
8387 | ||
8388 | # save warnings/boilerplate of simple test code | |
8389 | _LT_COMPILER_BOILERPLATE | |
8390 | _LT_LINKER_BOILERPLATE | |
8391 | ||
8392 | # Allow CC to be a program name with arguments. | |
8393 | lt_save_CC=$CC | |
8394 | lt_save_CFLAGS=$CFLAGS | |
8395 | lt_save_GCC=$GCC | |
8396 | GCC=yes | |
8397 | CC=${GCJ-"gcj"} | |
8398 | CFLAGS=$GCJFLAGS | |
8399 | compiler=$CC | |
8400 | _LT_TAGVAR(compiler, $1)=$CC | |
8401 | _LT_TAGVAR(LD, $1)="$LD" | |
8402 | _LT_CC_BASENAME([$compiler]) | |
8403 | ||
8404 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
8405 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
8406 | ||
8407 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
8408 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
8409 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
8410 | ||
8411 | if test -n "$compiler"; then | |
8412 | _LT_COMPILER_NO_RTTI($1) | |
8413 | _LT_COMPILER_PIC($1) | |
8414 | _LT_COMPILER_C_O($1) | |
8415 | _LT_COMPILER_FILE_LOCKS($1) | |
8416 | _LT_LINKER_SHLIBS($1) | |
8417 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
8418 | ||
8419 | _LT_CONFIG($1) | |
8420 | fi | |
8421 | ||
8422 | AC_LANG_RESTORE | |
8423 | ||
8424 | GCC=$lt_save_GCC | |
8425 | CC=$lt_save_CC | |
8426 | CFLAGS=$lt_save_CFLAGS | |
8427 | ])# _LT_LANG_GCJ_CONFIG | |
8428 | ||
8429 | ||
8430 | # _LT_LANG_RC_CONFIG([TAG]) | |
8431 | # ------------------------- | |
8432 | # Ensure that the configuration variables for the Windows resource compiler | |
8433 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
8434 | # to write the compiler configuration to `libtool'. | |
8435 | m4_defun([_LT_LANG_RC_CONFIG], | |
8436 | [AC_REQUIRE([LT_PROG_RC])dnl | |
8437 | AC_LANG_SAVE | |
8438 | ||
8439 | # Source file extension for RC test sources. | |
8440 | ac_ext=rc | |
8441 | ||
8442 | # Object file extension for compiled RC test sources. | |
8443 | objext=o | |
8444 | _LT_TAGVAR(objext, $1)=$objext | |
8445 | ||
8446 | # Code to be used in simple compile tests | |
8447 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
8448 | ||
8449 | # Code to be used in simple link tests | |
8450 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
8451 | ||
8452 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
8453 | _LT_TAG_COMPILER | |
8454 | ||
8455 | # save warnings/boilerplate of simple test code | |
8456 | _LT_COMPILER_BOILERPLATE | |
8457 | _LT_LINKER_BOILERPLATE | |
8458 | ||
8459 | # Allow CC to be a program name with arguments. | |
8460 | lt_save_CC="$CC" | |
8461 | lt_save_CFLAGS=$CFLAGS | |
8462 | lt_save_GCC=$GCC | |
8463 | GCC= | |
8464 | CC=${RC-"windres"} | |
8465 | CFLAGS= | |
8466 | compiler=$CC | |
8467 | _LT_TAGVAR(compiler, $1)=$CC | |
8468 | _LT_CC_BASENAME([$compiler]) | |
8469 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
8470 | ||
8471 | if test -n "$compiler"; then | |
8472 | : | |
8473 | _LT_CONFIG($1) | |
8474 | fi | |
8475 | ||
8476 | GCC=$lt_save_GCC | |
8477 | AC_LANG_RESTORE | |
8478 | CC=$lt_save_CC | |
8479 | CFLAGS=$lt_save_CFLAGS | |
8480 | ])# _LT_LANG_RC_CONFIG | |
8481 | ||
8482 | ||
8483 | # LT_PROG_GCJ | |
8484 | # ----------- | |
8485 | AC_DEFUN([LT_PROG_GCJ], | |
8486 | [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], | |
8487 | [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], | |
8488 | [AC_CHECK_TOOL(GCJ, gcj,) | |
8489 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | |
8490 | AC_SUBST(GCJFLAGS)])])[]dnl | |
8491 | ]) | |
8492 | ||
8493 | # Old name: | |
8494 | AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) | |
8495 | dnl aclocal-1.4 backwards compatibility: | |
8496 | dnl AC_DEFUN([LT_AC_PROG_GCJ], []) | |
8497 | ||
8498 | ||
8499 | # LT_PROG_RC | |
8500 | # ---------- | |
8501 | AC_DEFUN([LT_PROG_RC], | |
8502 | [AC_CHECK_TOOL(RC, windres,) | |
8503 | ]) | |
8504 | ||
8505 | # Old name: | |
8506 | AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) | |
8507 | dnl aclocal-1.4 backwards compatibility: | |
8508 | dnl AC_DEFUN([LT_AC_PROG_RC], []) | |
8509 | ||
8510 | ||
8511 | # _LT_DECL_EGREP | |
8512 | # -------------- | |
8513 | # If we don't have a new enough Autoconf to choose the best grep | |
8514 | # available, choose the one first in the user's PATH. | |
8515 | m4_defun([_LT_DECL_EGREP], | |
8516 | [AC_REQUIRE([AC_PROG_EGREP])dnl | |
8517 | AC_REQUIRE([AC_PROG_FGREP])dnl | |
8518 | test -z "$GREP" && GREP=grep | |
8519 | _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) | |
8520 | _LT_DECL([], [EGREP], [1], [An ERE matcher]) | |
8521 | _LT_DECL([], [FGREP], [1], [A literal string matcher]) | |
8522 | dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too | |
8523 | AC_SUBST([GREP]) | |
8524 | ]) | |
8525 | ||
8526 | ||
8527 | # _LT_DECL_OBJDUMP | |
8528 | # -------------- | |
8529 | # If we don't have a new enough Autoconf to choose the best objdump | |
8530 | # available, choose the one first in the user's PATH. | |
8531 | m4_defun([_LT_DECL_OBJDUMP], | |
8532 | [AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
8533 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
8534 | _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) | |
8535 | AC_SUBST([OBJDUMP]) | |
8536 | ]) | |
8537 | ||
8538 | # _LT_DECL_DLLTOOL | |
8539 | # ---------------- | |
8540 | # Ensure DLLTOOL variable is set. | |
8541 | m4_defun([_LT_DECL_DLLTOOL], | |
8542 | [AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
8543 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
8544 | _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) | |
8545 | AC_SUBST([DLLTOOL]) | |
8546 | ]) | |
8547 | ||
8548 | # _LT_DECL_SED | |
8549 | # ------------ | |
8550 | # Check for a fully-functional sed program, that truncates | |
8551 | # as few characters as possible. Prefer GNU sed if found. | |
8552 | m4_defun([_LT_DECL_SED], | |
8553 | [AC_PROG_SED | |
8554 | test -z "$SED" && SED=sed | |
8555 | Xsed="$SED -e 1s/^X//" | |
8556 | _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) | |
8557 | _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], | |
8558 | [Sed that helps us avoid accidentally triggering echo(1) options like -n]) | |
8559 | ])# _LT_DECL_SED | |
8560 | ||
8561 | m4_ifndef([AC_PROG_SED], [ | |
8562 | # NOTE: This macro has been submitted for inclusion into # | |
8563 | # GNU Autoconf as AC_PROG_SED. When it is available in # | |
8564 | # a released version of Autoconf we should remove this # | |
8565 | # macro and use it instead. # | |
8566 | ||
8567 | m4_defun([AC_PROG_SED], | |
8568 | [AC_MSG_CHECKING([for a sed that does not truncate output]) | |
8569 | AC_CACHE_VAL(lt_cv_path_SED, | |
8570 | [# Loop through the user's path and test for sed and gsed. | |
8571 | # Then use that list of sed's as ones to test for truncation. | |
8572 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8573 | for as_dir in $PATH | |
8574 | do | |
8575 | IFS=$as_save_IFS | |
8576 | test -z "$as_dir" && as_dir=. | |
8577 | for lt_ac_prog in sed gsed; do | |
8578 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8579 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
8580 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
8581 | fi | |
8582 | done | |
8583 | done | |
8584 | done | |
8585 | IFS=$as_save_IFS | |
8586 | lt_ac_max=0 | |
8587 | lt_ac_count=0 | |
8588 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
8589 | # along with /bin/sed that truncates output. | |
8590 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
8591 | test ! -f $lt_ac_sed && continue | |
8592 | cat /dev/null > conftest.in | |
8593 | lt_ac_count=0 | |
8594 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
8595 | # Check for GNU sed and select it if it is found. | |
8596 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
8597 | lt_cv_path_SED=$lt_ac_sed | |
8598 | break | |
8599 | fi | |
8600 | while true; do | |
8601 | cat conftest.in conftest.in >conftest.tmp | |
8602 | mv conftest.tmp conftest.in | |
8603 | cp conftest.in conftest.nl | |
8604 | echo >>conftest.nl | |
8605 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
8606 | cmp -s conftest.out conftest.nl || break | |
8607 | # 10000 chars as input seems more than enough | |
8608 | test $lt_ac_count -gt 10 && break | |
8609 | lt_ac_count=`expr $lt_ac_count + 1` | |
8610 | if test $lt_ac_count -gt $lt_ac_max; then | |
8611 | lt_ac_max=$lt_ac_count | |
8612 | lt_cv_path_SED=$lt_ac_sed | |
8613 | fi | |
8614 | done | |
8615 | done | |
8616 | ]) | |
8617 | SED=$lt_cv_path_SED | |
8618 | AC_SUBST([SED]) | |
8619 | AC_MSG_RESULT([$SED]) | |
8620 | ])#AC_PROG_SED | |
8621 | ])#m4_ifndef | |
8622 | ||
8623 | # Old name: | |
8624 | AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) | |
8625 | dnl aclocal-1.4 backwards compatibility: | |
8626 | dnl AC_DEFUN([LT_AC_PROG_SED], []) | |
8627 | ||
8628 | ||
8629 | # _LT_CHECK_SHELL_FEATURES | |
8630 | # ------------------------ | |
8631 | # Find out whether the shell is Bourne or XSI compatible, | |
8632 | # or has some other useful features. | |
8633 | m4_defun([_LT_CHECK_SHELL_FEATURES], | |
8634 | [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) | |
8635 | # Try some XSI features | |
8636 | xsi_shell=no | |
8637 | ( _lt_dummy="a/b/c" | |
8638 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
8639 | = c,a/b,b/c, \ | |
8640 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
8641 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
8642 | && xsi_shell=yes | |
8643 | AC_MSG_RESULT([$xsi_shell]) | |
8644 | _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) | |
8645 | ||
8646 | AC_MSG_CHECKING([whether the shell understands "+="]) | |
8647 | lt_shell_append=no | |
8648 | ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ | |
8649 | >/dev/null 2>&1 \ | |
8650 | && lt_shell_append=yes | |
8651 | AC_MSG_RESULT([$lt_shell_append]) | |
8652 | _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) | |
8653 | ||
8654 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8655 | lt_unset=unset | |
8656 | else | |
8657 | lt_unset=false | |
8658 | fi | |
8659 | _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl | |
8660 | ||
8661 | # test EBCDIC or ASCII | |
8662 | case `echo X|tr X '\101'` in | |
8663 | A) # ASCII based system | |
8664 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
8665 | lt_SP2NL='tr \040 \012' | |
8666 | lt_NL2SP='tr \015\012 \040\040' | |
8667 | ;; | |
8668 | *) # EBCDIC based system | |
8669 | lt_SP2NL='tr \100 \n' | |
8670 | lt_NL2SP='tr \r\n \100\100' | |
8671 | ;; | |
8672 | esac | |
8673 | _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl | |
8674 | _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl | |
8675 | ])# _LT_CHECK_SHELL_FEATURES | |
8676 | ||
8677 | ||
8678 | # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) | |
8679 | # ------------------------------------------------------ | |
8680 | # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and | |
8681 | # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. | |
8682 | m4_defun([_LT_PROG_FUNCTION_REPLACE], | |
8683 | [dnl { | |
8684 | sed -e '/^$1 ()$/,/^} # $1 /c\ | |
8685 | $1 ()\ | |
8686 | {\ | |
8687 | m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) | |
8688 | } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ | |
8689 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
8690 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
8691 | test 0 -eq $? || _lt_function_replace_fail=: | |
8692 | ]) | |
8693 | ||
8694 | ||
8695 | # _LT_PROG_REPLACE_SHELLFNS | |
8696 | # ------------------------- | |
8697 | # Replace existing portable implementations of several shell functions with | |
8698 | # equivalent extended shell implementations where those features are available.. | |
8699 | m4_defun([_LT_PROG_REPLACE_SHELLFNS], | |
8700 | [if test x"$xsi_shell" = xyes; then | |
8701 | _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl | |
8702 | case ${1} in | |
8703 | */*) func_dirname_result="${1%/*}${2}" ;; | |
8704 | * ) func_dirname_result="${3}" ;; | |
8705 | esac]) | |
8706 | ||
8707 | _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl | |
8708 | func_basename_result="${1##*/}"]) | |
8709 | ||
8710 | _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl | |
8711 | case ${1} in | |
8712 | */*) func_dirname_result="${1%/*}${2}" ;; | |
8713 | * ) func_dirname_result="${3}" ;; | |
8714 | esac | |
8715 | func_basename_result="${1##*/}"]) | |
8716 | ||
8717 | _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl | |
8718 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
8719 | # positional parameters, so assign one to ordinary parameter first. | |
8720 | func_stripname_result=${3} | |
8721 | func_stripname_result=${func_stripname_result#"${1}"} | |
8722 | func_stripname_result=${func_stripname_result%"${2}"}]) | |
8723 | ||
8724 | _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl | |
8725 | func_split_long_opt_name=${1%%=*} | |
8726 | func_split_long_opt_arg=${1#*=}]) | |
8727 | ||
8728 | _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl | |
8729 | func_split_short_opt_arg=${1#??} | |
8730 | func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) | |
8731 | ||
8732 | _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl | |
8733 | case ${1} in | |
8734 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
8735 | *) func_lo2o_result=${1} ;; | |
8736 | esac]) | |
8737 | ||
8738 | _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) | |
8739 | ||
8740 | _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) | |
8741 | ||
8742 | _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) | |
8743 | fi | |
8744 | ||
8745 | if test x"$lt_shell_append" = xyes; then | |
8746 | _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) | |
8747 | ||
8748 | _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl | |
8749 | func_quote_for_eval "${2}" | |
8750 | dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ | |
8751 | eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) | |
8752 | ||
8753 | # Save a `func_append' function call where possible by direct use of '+=' | |
8754 | sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
8755 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
8756 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
8757 | test 0 -eq $? || _lt_function_replace_fail=: | |
8758 | else | |
8759 | # Save a `func_append' function call even when '+=' is not available | |
8760 | sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
8761 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
8762 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
8763 | test 0 -eq $? || _lt_function_replace_fail=: | |
8764 | fi | |
8765 | ||
8766 | if test x"$_lt_function_replace_fail" = x":"; then | |
8767 | AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) | |
8768 | fi | |
8769 | ]) | |
8770 | ||
8771 | # _LT_PATH_CONVERSION_FUNCTIONS | |
8772 | # ----------------------------- | |
8773 | # Determine which file name conversion functions should be used by | |
8774 | # func_to_host_file (and, implicitly, by func_to_host_path). These are needed | |
8775 | # for certain cross-compile configurations and native mingw. | |
8776 | m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], | |
8777 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
8778 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
8779 | AC_MSG_CHECKING([how to convert $build file names to $host format]) | |
8780 | AC_CACHE_VAL(lt_cv_to_host_file_cmd, | |
8781 | [case $host in | |
8782 | *-*-mingw* ) | |
8783 | case $build in | |
8784 | *-*-mingw* ) # actually msys | |
8785 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
8786 | ;; | |
8787 | *-*-cygwin* ) | |
8788 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
8789 | ;; | |
8790 | * ) # otherwise, assume *nix | |
8791 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
8792 | ;; | |
8793 | esac | |
8794 | ;; | |
8795 | *-*-cygwin* ) | |
8796 | case $build in | |
8797 | *-*-mingw* ) # actually msys | |
8798 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
8799 | ;; | |
8800 | *-*-cygwin* ) | |
8801 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
8802 | ;; | |
8803 | * ) # otherwise, assume *nix | |
8804 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
8805 | ;; | |
8806 | esac | |
8807 | ;; | |
8808 | * ) # unhandled hosts (and "normal" native builds) | |
8809 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
8810 | ;; | |
8811 | esac | |
8812 | ]) | |
8813 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
8814 | AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) | |
8815 | _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], | |
8816 | [0], [convert $build file names to $host format])dnl | |
8817 | ||
8818 | AC_MSG_CHECKING([how to convert $build file names to toolchain format]) | |
8819 | AC_CACHE_VAL(lt_cv_to_tool_file_cmd, | |
8820 | [#assume ordinary cross tools, or native build. | |
8821 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
8822 | case $host in | |
8823 | *-*-mingw* ) | |
8824 | case $build in | |
8825 | *-*-mingw* ) # actually msys | |
8826 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
8827 | ;; | |
8828 | esac | |
8829 | ;; | |
8830 | esac | |
8831 | ]) | |
8832 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
8833 | AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) | |
8834 | _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], | |
8835 | [0], [convert $build files to toolchain format])dnl | |
8836 | ])# _LT_PATH_CONVERSION_FUNCTIONS | |
8837 | ||
8838 | # Helper functions for option handling. -*- Autoconf -*- | |
8839 | # | |
8840 | # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, | |
8841 | # Inc. | |
8842 | # Written by Gary V. Vaughan, 2004 | |
8843 | # | |
8844 | # This file is free software; the Free Software Foundation gives | |
8845 | # unlimited permission to copy and/or distribute it, with or without | |
8846 | # modifications, as long as this notice is preserved. | |
8847 | ||
8848 | # serial 7 ltoptions.m4 | |
8849 | ||
8850 | # This is to help aclocal find these macros, as it can't see m4_define. | |
8851 | AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) | |
8852 | ||
8853 | ||
8854 | # _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) | |
8855 | # ------------------------------------------ | |
8856 | m4_define([_LT_MANGLE_OPTION], | |
8857 | [[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) | |
8858 | ||
8859 | ||
8860 | # _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) | |
8861 | # --------------------------------------- | |
8862 | # Set option OPTION-NAME for macro MACRO-NAME, and if there is a | |
8863 | # matching handler defined, dispatch to it. Other OPTION-NAMEs are | |
8864 | # saved as a flag. | |
8865 | m4_define([_LT_SET_OPTION], | |
8866 | [m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl | |
8867 | m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), | |
8868 | _LT_MANGLE_DEFUN([$1], [$2]), | |
8869 | [m4_warning([Unknown $1 option `$2'])])[]dnl | |
8870 | ]) | |
8871 | ||
8872 | ||
8873 | # _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) | |
8874 | # ------------------------------------------------------------ | |
8875 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
8876 | m4_define([_LT_IF_OPTION], | |
8877 | [m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) | |
8878 | ||
8879 | ||
8880 | # _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) | |
8881 | # ------------------------------------------------------- | |
8882 | # Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME | |
8883 | # are set. | |
8884 | m4_define([_LT_UNLESS_OPTIONS], | |
8885 | [m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), | |
8886 | [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), | |
8887 | [m4_define([$0_found])])])[]dnl | |
8888 | m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 | |
8889 | ])[]dnl | |
8890 | ]) | |
8891 | ||
8892 | ||
8893 | # _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) | |
8894 | # ---------------------------------------- | |
8895 | # OPTION-LIST is a space-separated list of Libtool options associated | |
8896 | # with MACRO-NAME. If any OPTION has a matching handler declared with | |
8897 | # LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about | |
8898 | # the unknown option and exit. | |
8899 | m4_defun([_LT_SET_OPTIONS], | |
8900 | [# Set options | |
8901 | m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), | |
8902 | [_LT_SET_OPTION([$1], _LT_Option)]) | |
8903 | ||
8904 | m4_if([$1],[LT_INIT],[ | |
8905 | dnl | |
8906 | dnl Simply set some default values (i.e off) if boolean options were not | |
8907 | dnl specified: | |
8908 | _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no | |
8909 | ]) | |
8910 | _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no | |
8911 | ]) | |
8912 | dnl | |
8913 | dnl If no reference was made to various pairs of opposing options, then | |
8914 | dnl we run the default mode handler for the pair. For example, if neither | |
8915 | dnl `shared' nor `disable-shared' was passed, we enable building of shared | |
8916 | dnl archives by default: | |
8917 | _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) | |
8918 | _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) | |
8919 | _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) | |
8920 | _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], | |
8921 | [_LT_ENABLE_FAST_INSTALL]) | |
8922 | ]) | |
8923 | ])# _LT_SET_OPTIONS | |
8924 | ||
8925 | ||
8926 | ||
8927 | # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) | |
8928 | # ----------------------------------------- | |
8929 | m4_define([_LT_MANGLE_DEFUN], | |
8930 | [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) | |
8931 | ||
8932 | ||
8933 | # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) | |
8934 | # ----------------------------------------------- | |
8935 | m4_define([LT_OPTION_DEFINE], | |
8936 | [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl | |
8937 | ])# LT_OPTION_DEFINE | |
8938 | ||
8939 | ||
8940 | # dlopen | |
8941 | # ------ | |
8942 | LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes | |
8943 | ]) | |
8944 | ||
8945 | AU_DEFUN([AC_LIBTOOL_DLOPEN], | |
8946 | [_LT_SET_OPTION([LT_INIT], [dlopen]) | |
8947 | AC_DIAGNOSE([obsolete], | |
8948 | [$0: Remove this warning and the call to _LT_SET_OPTION when you | |
8949 | put the `dlopen' option into LT_INIT's first parameter.]) | |
8950 | ]) | |
8951 | ||
8952 | dnl aclocal-1.4 backwards compatibility: | |
8953 | dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) | |
8954 | ||
8955 | ||
8956 | # win32-dll | |
8957 | # --------- | |
8958 | # Declare package support for building win32 dll's. | |
8959 | LT_OPTION_DEFINE([LT_INIT], [win32-dll], | |
8960 | [enable_win32_dll=yes | |
8961 | ||
8962 | case $host in | |
8963 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
8964 | AC_CHECK_TOOL(AS, as, false) | |
8965 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
8966 | AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
8967 | ;; | |
8968 | esac | |
8969 | ||
8970 | test -z "$AS" && AS=as | |
8971 | _LT_DECL([], [AS], [1], [Assembler program])dnl | |
8972 | ||
8973 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
8974 | _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl | |
8975 | ||
8976 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
8977 | _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl | |
8978 | ])# win32-dll | |
8979 | ||
8980 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL], | |
8981 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
8982 | _LT_SET_OPTION([LT_INIT], [win32-dll]) | |
8983 | AC_DIAGNOSE([obsolete], | |
8984 | [$0: Remove this warning and the call to _LT_SET_OPTION when you | |
8985 | put the `win32-dll' option into LT_INIT's first parameter.]) | |
8986 | ]) | |
8987 | ||
8988 | dnl aclocal-1.4 backwards compatibility: | |
8989 | dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) | |
8990 | ||
8991 | ||
8992 | # _LT_ENABLE_SHARED([DEFAULT]) | |
8993 | # ---------------------------- | |
8994 | # implement the --enable-shared flag, and supports the `shared' and | |
8995 | # `disable-shared' LT_INIT options. | |
8996 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
8997 | m4_define([_LT_ENABLE_SHARED], | |
8998 | [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl | |
8999 | AC_ARG_ENABLE([shared], | |
9000 | [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | |
9001 | [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], | |
9002 | [p=${PACKAGE-default} | |
9003 | case $enableval in | |
9004 | yes) enable_shared=yes ;; | |
9005 | no) enable_shared=no ;; | |
9006 | *) | |
9007 | enable_shared=no | |
9008 | # Look at the argument we got. We use all the common list separators. | |
9009 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9010 | for pkg in $enableval; do | |
9011 | IFS="$lt_save_ifs" | |
9012 | if test "X$pkg" = "X$p"; then | |
9013 | enable_shared=yes | |
9014 | fi | |
9015 | done | |
9016 | IFS="$lt_save_ifs" | |
9017 | ;; | |
9018 | esac], | |
9019 | [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) | |
9020 | ||
9021 | _LT_DECL([build_libtool_libs], [enable_shared], [0], | |
9022 | [Whether or not to build shared libraries]) | |
9023 | ])# _LT_ENABLE_SHARED | |
9024 | ||
9025 | LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) | |
9026 | LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) | |
9027 | ||
9028 | # Old names: | |
9029 | AC_DEFUN([AC_ENABLE_SHARED], | |
9030 | [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) | |
9031 | ]) | |
9032 | ||
9033 | AC_DEFUN([AC_DISABLE_SHARED], | |
9034 | [_LT_SET_OPTION([LT_INIT], [disable-shared]) | |
9035 | ]) | |
9036 | ||
9037 | AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) | |
9038 | AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) | |
9039 | ||
9040 | dnl aclocal-1.4 backwards compatibility: | |
9041 | dnl AC_DEFUN([AM_ENABLE_SHARED], []) | |
9042 | dnl AC_DEFUN([AM_DISABLE_SHARED], []) | |
9043 | ||
9044 | ||
9045 | ||
9046 | # _LT_ENABLE_STATIC([DEFAULT]) | |
9047 | # ---------------------------- | |
9048 | # implement the --enable-static flag, and support the `static' and | |
9049 | # `disable-static' LT_INIT options. | |
9050 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
9051 | m4_define([_LT_ENABLE_STATIC], | |
9052 | [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl | |
9053 | AC_ARG_ENABLE([static], | |
9054 | [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], | |
9055 | [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], | |
9056 | [p=${PACKAGE-default} | |
9057 | case $enableval in | |
9058 | yes) enable_static=yes ;; | |
9059 | no) enable_static=no ;; | |
9060 | *) | |
9061 | enable_static=no | |
9062 | # Look at the argument we got. We use all the common list separators. | |
9063 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9064 | for pkg in $enableval; do | |
9065 | IFS="$lt_save_ifs" | |
9066 | if test "X$pkg" = "X$p"; then | |
9067 | enable_static=yes | |
9068 | fi | |
9069 | done | |
9070 | IFS="$lt_save_ifs" | |
9071 | ;; | |
9072 | esac], | |
9073 | [enable_static=]_LT_ENABLE_STATIC_DEFAULT) | |
9074 | ||
9075 | _LT_DECL([build_old_libs], [enable_static], [0], | |
9076 | [Whether or not to build static libraries]) | |
9077 | ])# _LT_ENABLE_STATIC | |
9078 | ||
9079 | LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) | |
9080 | LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) | |
9081 | ||
9082 | # Old names: | |
9083 | AC_DEFUN([AC_ENABLE_STATIC], | |
9084 | [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) | |
9085 | ]) | |
9086 | ||
9087 | AC_DEFUN([AC_DISABLE_STATIC], | |
9088 | [_LT_SET_OPTION([LT_INIT], [disable-static]) | |
9089 | ]) | |
9090 | ||
9091 | AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) | |
9092 | AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) | |
9093 | ||
9094 | dnl aclocal-1.4 backwards compatibility: | |
9095 | dnl AC_DEFUN([AM_ENABLE_STATIC], []) | |
9096 | dnl AC_DEFUN([AM_DISABLE_STATIC], []) | |
9097 | ||
9098 | ||
9099 | ||
9100 | # _LT_ENABLE_FAST_INSTALL([DEFAULT]) | |
9101 | # ---------------------------------- | |
9102 | # implement the --enable-fast-install flag, and support the `fast-install' | |
9103 | # and `disable-fast-install' LT_INIT options. | |
9104 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
9105 | m4_define([_LT_ENABLE_FAST_INSTALL], | |
9106 | [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl | |
9107 | AC_ARG_ENABLE([fast-install], | |
9108 | [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | |
9109 | [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | |
9110 | [p=${PACKAGE-default} | |
9111 | case $enableval in | |
9112 | yes) enable_fast_install=yes ;; | |
9113 | no) enable_fast_install=no ;; | |
9114 | *) | |
9115 | enable_fast_install=no | |
9116 | # Look at the argument we got. We use all the common list separators. | |
9117 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
9118 | for pkg in $enableval; do | |
9119 | IFS="$lt_save_ifs" | |
9120 | if test "X$pkg" = "X$p"; then | |
9121 | enable_fast_install=yes | |
9122 | fi | |
9123 | done | |
9124 | IFS="$lt_save_ifs" | |
9125 | ;; | |
9126 | esac], | |
9127 | [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) | |
9128 | ||
9129 | _LT_DECL([fast_install], [enable_fast_install], [0], | |
9130 | [Whether or not to optimize for fast installation])dnl | |
9131 | ])# _LT_ENABLE_FAST_INSTALL | |
9132 | ||
9133 | LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) | |
9134 | LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) | |
9135 | ||
9136 | # Old names: | |
9137 | AU_DEFUN([AC_ENABLE_FAST_INSTALL], | |
9138 | [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) | |
9139 | AC_DIAGNOSE([obsolete], | |
9140 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put | |
9141 | the `fast-install' option into LT_INIT's first parameter.]) | |
9142 | ]) | |
9143 | ||
9144 | AU_DEFUN([AC_DISABLE_FAST_INSTALL], | |
9145 | [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) | |
9146 | AC_DIAGNOSE([obsolete], | |
9147 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put | |
9148 | the `disable-fast-install' option into LT_INIT's first parameter.]) | |
9149 | ]) | |
9150 | ||
9151 | dnl aclocal-1.4 backwards compatibility: | |
9152 | dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) | |
9153 | dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) | |
9154 | ||
9155 | ||
9156 | # _LT_WITH_PIC([MODE]) | |
9157 | # -------------------- | |
9158 | # implement the --with-pic flag, and support the `pic-only' and `no-pic' | |
9159 | # LT_INIT options. | |
9160 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | |
9161 | m4_define([_LT_WITH_PIC], | |
9162 | [AC_ARG_WITH([pic], | |
9163 | [AS_HELP_STRING([--with-pic], | |
9164 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | |
9165 | [pic_mode="$withval"], | |
9166 | [pic_mode=default]) | |
9167 | ||
9168 | test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) | |
9169 | ||
9170 | _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl | |
9171 | ])# _LT_WITH_PIC | |
9172 | ||
9173 | LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) | |
9174 | LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) | |
9175 | ||
9176 | # Old name: | |
9177 | AU_DEFUN([AC_LIBTOOL_PICMODE], | |
9178 | [_LT_SET_OPTION([LT_INIT], [pic-only]) | |
9179 | AC_DIAGNOSE([obsolete], | |
9180 | [$0: Remove this warning and the call to _LT_SET_OPTION when you | |
9181 | put the `pic-only' option into LT_INIT's first parameter.]) | |
9182 | ]) | |
9183 | ||
9184 | dnl aclocal-1.4 backwards compatibility: | |
9185 | dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) | |
9186 | ||
9187 | ||
9188 | m4_define([_LTDL_MODE], []) | |
9189 | LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], | |
9190 | [m4_define([_LTDL_MODE], [nonrecursive])]) | |
9191 | LT_OPTION_DEFINE([LTDL_INIT], [recursive], | |
9192 | [m4_define([_LTDL_MODE], [recursive])]) | |
9193 | LT_OPTION_DEFINE([LTDL_INIT], [subproject], | |
9194 | [m4_define([_LTDL_MODE], [subproject])]) | |
9195 | ||
9196 | m4_define([_LTDL_TYPE], []) | |
9197 | LT_OPTION_DEFINE([LTDL_INIT], [installable], | |
9198 | [m4_define([_LTDL_TYPE], [installable])]) | |
9199 | LT_OPTION_DEFINE([LTDL_INIT], [convenience], | |
9200 | [m4_define([_LTDL_TYPE], [convenience])]) | |
9201 | ||
9202 | # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- | |
9203 | # | |
9204 | # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | |
9205 | # Written by Gary V. Vaughan, 2004 | |
9206 | # | |
9207 | # This file is free software; the Free Software Foundation gives | |
9208 | # unlimited permission to copy and/or distribute it, with or without | |
9209 | # modifications, as long as this notice is preserved. | |
9210 | ||
9211 | # serial 6 ltsugar.m4 | |
9212 | ||
9213 | # This is to help aclocal find these macros, as it can't see m4_define. | |
9214 | AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) | |
9215 | ||
9216 | ||
9217 | # lt_join(SEP, ARG1, [ARG2...]) | |
9218 | # ----------------------------- | |
9219 | # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their | |
9220 | # associated separator. | |
9221 | # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier | |
9222 | # versions in m4sugar had bugs. | |
9223 | m4_define([lt_join], | |
9224 | [m4_if([$#], [1], [], | |
9225 | [$#], [2], [[$2]], | |
9226 | [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) | |
9227 | m4_define([_lt_join], | |
9228 | [m4_if([$#$2], [2], [], | |
9229 | [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) | |
9230 | ||
9231 | ||
9232 | # lt_car(LIST) | |
9233 | # lt_cdr(LIST) | |
9234 | # ------------ | |
9235 | # Manipulate m4 lists. | |
9236 | # These macros are necessary as long as will still need to support | |
9237 | # Autoconf-2.59 which quotes differently. | |
9238 | m4_define([lt_car], [[$1]]) | |
9239 | m4_define([lt_cdr], | |
9240 | [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], | |
9241 | [$#], 1, [], | |
9242 | [m4_dquote(m4_shift($@))])]) | |
9243 | m4_define([lt_unquote], $1) | |
9244 | ||
9245 | ||
9246 | # lt_append(MACRO-NAME, STRING, [SEPARATOR]) | |
9247 | # ------------------------------------------ | |
9248 | # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. | |
9249 | # Note that neither SEPARATOR nor STRING are expanded; they are appended | |
9250 | # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). | |
9251 | # No SEPARATOR is output if MACRO-NAME was previously undefined (different | |
9252 | # than defined and empty). | |
9253 | # | |
9254 | # This macro is needed until we can rely on Autoconf 2.62, since earlier | |
9255 | # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. | |
9256 | m4_define([lt_append], | |
9257 | [m4_define([$1], | |
9258 | m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) | |
9259 | ||
9260 | ||
9261 | ||
9262 | # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) | |
9263 | # ---------------------------------------------------------- | |
9264 | # Produce a SEP delimited list of all paired combinations of elements of | |
9265 | # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list | |
9266 | # has the form PREFIXmINFIXSUFFIXn. | |
9267 | # Needed until we can rely on m4_combine added in Autoconf 2.62. | |
9268 | m4_define([lt_combine], | |
9269 | [m4_if(m4_eval([$# > 3]), [1], | |
9270 | [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl | |
9271 | [[m4_foreach([_Lt_prefix], [$2], | |
9272 | [m4_foreach([_Lt_suffix], | |
9273 | ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, | |
9274 | [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) | |
9275 | ||
9276 | ||
9277 | # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) | |
9278 | # ----------------------------------------------------------------------- | |
9279 | # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited | |
9280 | # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. | |
9281 | m4_define([lt_if_append_uniq], | |
9282 | [m4_ifdef([$1], | |
9283 | [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], | |
9284 | [lt_append([$1], [$2], [$3])$4], | |
9285 | [$5])], | |
9286 | [lt_append([$1], [$2], [$3])$4])]) | |
9287 | ||
9288 | ||
9289 | # lt_dict_add(DICT, KEY, VALUE) | |
9290 | # ----------------------------- | |
9291 | m4_define([lt_dict_add], | |
9292 | [m4_define([$1($2)], [$3])]) | |
9293 | ||
9294 | ||
9295 | # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) | |
9296 | # -------------------------------------------- | |
9297 | m4_define([lt_dict_add_subkey], | |
9298 | [m4_define([$1($2:$3)], [$4])]) | |
9299 | ||
9300 | ||
9301 | # lt_dict_fetch(DICT, KEY, [SUBKEY]) | |
9302 | # ---------------------------------- | |
9303 | m4_define([lt_dict_fetch], | |
9304 | [m4_ifval([$3], | |
9305 | m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), | |
9306 | m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) | |
9307 | ||
9308 | ||
9309 | # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) | |
9310 | # ----------------------------------------------------------------- | |
9311 | m4_define([lt_if_dict_fetch], | |
9312 | [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], | |
9313 | [$5], | |
9314 | [$6])]) | |
9315 | ||
9316 | ||
9317 | # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) | |
9318 | # -------------------------------------------------------------- | |
9319 | m4_define([lt_dict_filter], | |
9320 | [m4_if([$5], [], [], | |
9321 | [lt_join(m4_quote(m4_default([$4], [[, ]])), | |
9322 | lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), | |
9323 | [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl | |
9324 | ]) | |
9325 | ||
9326 | # ltversion.m4 -- version numbers -*- Autoconf -*- | |
9327 | # | |
9328 | # Copyright (C) 2004 Free Software Foundation, Inc. | |
9329 | # Written by Scott James Remnant, 2004 | |
9330 | # | |
9331 | # This file is free software; the Free Software Foundation gives | |
9332 | # unlimited permission to copy and/or distribute it, with or without | |
9333 | # modifications, as long as this notice is preserved. | |
9334 | ||
9335 | # @configure_input@ | |
9336 | ||
9337 | # serial 3293 ltversion.m4 | |
9338 | # This file is part of GNU Libtool | |
9339 | ||
9340 | m4_define([LT_PACKAGE_VERSION], [2.4]) | |
9341 | m4_define([LT_PACKAGE_REVISION], [1.3293]) | |
9342 | ||
9343 | AC_DEFUN([LTVERSION_VERSION], | |
9344 | [macro_version='2.4' | |
9345 | macro_revision='1.3293' | |
9346 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | |
9347 | _LT_DECL(, macro_revision, 0) | |
9348 | ]) | |
9349 | ||
9350 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- | |
9351 | # | |
9352 | # Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. | |
9353 | # Written by Scott James Remnant, 2004. | |
9354 | # | |
9355 | # This file is free software; the Free Software Foundation gives | |
9356 | # unlimited permission to copy and/or distribute it, with or without | |
9357 | # modifications, as long as this notice is preserved. | |
9358 | ||
9359 | # serial 5 lt~obsolete.m4 | |
9360 | ||
9361 | # These exist entirely to fool aclocal when bootstrapping libtool. | |
9362 | # | |
9363 | # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) | |
9364 | # which have later been changed to m4_define as they aren't part of the | |
9365 | # exported API, or moved to Autoconf or Automake where they belong. | |
9366 | # | |
9367 | # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN | |
9368 | # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us | |
9369 | # using a macro with the same name in our local m4/libtool.m4 it'll | |
9370 | # pull the old libtool.m4 in (it doesn't see our shiny new m4_define | |
9371 | # and doesn't know about Autoconf macros at all.) | |
9372 | # | |
9373 | # So we provide this file, which has a silly filename so it's always | |
9374 | # included after everything else. This provides aclocal with the | |
9375 | # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything | |
9376 | # because those macros already exist, or will be overwritten later. | |
9377 | # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. | |
9378 | # | |
9379 | # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. | |
9380 | # Yes, that means every name once taken will need to remain here until | |
9381 | # we give up compatibility with versions before 1.7, at which point | |
9382 | # we need to keep only those names which we still refer to. | |
9383 | ||
9384 | # This is to help aclocal find these macros, as it can't see m4_define. | |
9385 | AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) | |
9386 | ||
9387 | m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) | |
9388 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) | |
9389 | m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) | |
9390 | m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) | |
9391 | m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) | |
9392 | m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) | |
9393 | m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) | |
9394 | m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) | |
9395 | m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) | |
9396 | m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) | |
9397 | m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) | |
9398 | m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) | |
9399 | m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) | |
9400 | m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) | |
9401 | m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) | |
9402 | m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) | |
9403 | m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) | |
9404 | m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) | |
9405 | m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) | |
9406 | m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) | |
9407 | m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) | |
9408 | m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) | |
9409 | m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) | |
9410 | m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) | |
9411 | m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) | |
9412 | m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) | |
9413 | m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) | |
9414 | m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) | |
9415 | m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) | |
9416 | m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) | |
9417 | m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) | |
9418 | m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) | |
9419 | m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) | |
9420 | m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) | |
9421 | m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) | |
9422 | m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) | |
9423 | m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) | |
9424 | m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) | |
9425 | m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) | |
9426 | m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) | |
9427 | m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) | |
9428 | m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) | |
9429 | m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) | |
9430 | m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) | |
9431 | m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) | |
9432 | m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) | |
9433 | m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) | |
9434 | m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) | |
9435 | m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) | |
9436 | m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) | |
9437 | m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) | |
9438 | m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) | |
9439 | m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) | |
9440 | m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) | |
9441 | m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) | |
9442 | m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) | |
9443 | m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) | |
9444 | m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) | |
9445 | m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) | |
9446 | m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) | |
9447 | m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) | |
9448 | ||
9449 | # nls.m4 serial 5 (gettext-0.18) | |
9450 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, | |
9451 | dnl Inc. | |
9452 | dnl This file is free software; the Free Software Foundation | |
9453 | dnl gives unlimited permission to copy and/or distribute it, | |
9454 | dnl with or without modifications, as long as this notice is preserved. | |
9455 | dnl | |
9456 | dnl This file can can be used in projects which are not available under | |
9457 | dnl the GNU General Public License or the GNU Library General Public | |
9458 | dnl License but which still want to provide support for the GNU gettext | |
9459 | dnl functionality. | |
9460 | dnl Please note that the actual code of the GNU gettext library is covered | |
9461 | dnl by the GNU Library General Public License, and the rest of the GNU | |
9462 | dnl gettext package package is covered by the GNU General Public License. | |
9463 | dnl They are *not* in the public domain. | |
9464 | ||
9465 | dnl Authors: | |
9466 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | |
9467 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | |
9468 | ||
9469 | AC_PREREQ([2.50]) | |
9470 | ||
9471 | AC_DEFUN([AM_NLS], | |
9472 | [ | |
9473 | AC_MSG_CHECKING([whether NLS is requested]) | |
9474 | dnl Default is enabled NLS | |
9475 | AC_ARG_ENABLE([nls], | |
9476 | [ --disable-nls do not use Native Language Support], | |
9477 | USE_NLS=$enableval, USE_NLS=yes) | |
9478 | AC_MSG_RESULT([$USE_NLS]) | |
9479 | AC_SUBST([USE_NLS]) | |
9480 | ]) | |
9481 | ||
9482 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | |
9483 | # serial 1 (pkg-config-0.24) | |
9484 | # | |
9485 | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | |
9486 | # | |
9487 | # This program is free software; you can redistribute it and/or modify | |
9488 | # it under the terms of the GNU General Public License as published by | |
9489 | # the Free Software Foundation; either version 2 of the License, or | |
9490 | # (at your option) any later version. | |
9491 | # | |
9492 | # This program is distributed in the hope that it will be useful, but | |
9493 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
9494 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
9495 | # General Public License for more details. | |
9496 | # | |
9497 | # You should have received a copy of the GNU General Public License | |
9498 | # along with this program; if not, write to the Free Software | |
9499 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
9500 | # | |
9501 | # As a special exception to the GNU General Public License, if you | |
9502 | # distribute this file as part of a program that contains a | |
9503 | # configuration script generated by Autoconf, you may include it under | |
9504 | # the same distribution terms that you use for the rest of that program. | |
9505 | ||
9506 | # PKG_PROG_PKG_CONFIG([MIN-VERSION]) | |
9507 | # ---------------------------------- | |
9508 | AC_DEFUN([PKG_PROG_PKG_CONFIG], | |
9509 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | |
9510 | m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) | |
9511 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) | |
9512 | AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) | |
9513 | AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) | |
9514 | ||
9515 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
9516 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) | |
9517 | fi | |
9518 | if test -n "$PKG_CONFIG"; then | |
9519 | _pkg_min_version=m4_default([$1], [0.9.0]) | |
9520 | AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) | |
9521 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
9522 | AC_MSG_RESULT([yes]) | |
9523 | else | |
9524 | AC_MSG_RESULT([no]) | |
9525 | PKG_CONFIG="" | |
9526 | fi | |
9527 | fi[]dnl | |
9528 | ])# PKG_PROG_PKG_CONFIG | |
9529 | ||
9530 | # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | |
9531 | # | |
9532 | # Check to see whether a particular set of modules exists. Similar | |
9533 | # to PKG_CHECK_MODULES(), but does not set variables or print errors. | |
9534 | # | |
9535 | # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
9536 | # only at the first occurence in configure.ac, so if the first place | |
9537 | # it's called might be skipped (such as if it is within an "if", you | |
9538 | # have to call PKG_CHECK_EXISTS manually | |
9539 | # -------------------------------------------------------------- | |
9540 | AC_DEFUN([PKG_CHECK_EXISTS], | |
9541 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
9542 | if test -n "$PKG_CONFIG" && \ | |
9543 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then | |
9544 | m4_default([$2], [:]) | |
9545 | m4_ifvaln([$3], [else | |
9546 | $3])dnl | |
9547 | fi]) | |
9548 | ||
9549 | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | |
9550 | # --------------------------------------------- | |
9551 | m4_define([_PKG_CONFIG], | |
9552 | [if test -n "$$1"; then | |
9553 | pkg_cv_[]$1="$$1" | |
9554 | elif test -n "$PKG_CONFIG"; then | |
9555 | PKG_CHECK_EXISTS([$3], | |
9556 | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], | |
9557 | [pkg_failed=yes]) | |
9558 | else | |
9559 | pkg_failed=untried | |
9560 | fi[]dnl | |
9561 | ])# _PKG_CONFIG | |
9562 | ||
9563 | # _PKG_SHORT_ERRORS_SUPPORTED | |
9564 | # ----------------------------- | |
9565 | AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], | |
9566 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
9567 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
9568 | _pkg_short_errors_supported=yes | |
9569 | else | |
9570 | _pkg_short_errors_supported=no | |
9571 | fi[]dnl | |
9572 | ])# _PKG_SHORT_ERRORS_SUPPORTED | |
9573 | ||
9574 | ||
9575 | # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | |
9576 | # [ACTION-IF-NOT-FOUND]) | |
9577 | # | |
9578 | # | |
9579 | # Note that if there is a possibility the first call to | |
9580 | # PKG_CHECK_MODULES might not happen, you should be sure to include an | |
9581 | # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac | |
9582 | # | |
9583 | # | |
9584 | # -------------------------------------------------------------- | |
9585 | AC_DEFUN([PKG_CHECK_MODULES], | |
9586 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
9587 | AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl | |
9588 | AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl | |
9589 | ||
9590 | pkg_failed=no | |
9591 | AC_MSG_CHECKING([for $1]) | |
9592 | ||
9593 | _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) | |
9594 | _PKG_CONFIG([$1][_LIBS], [libs], [$2]) | |
9595 | ||
9596 | m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS | |
9597 | and $1[]_LIBS to avoid the need to call pkg-config. | |
9598 | See the pkg-config man page for more details.]) | |
9599 | ||
9600 | if test $pkg_failed = yes; then | |
9601 | AC_MSG_RESULT([no]) | |
9602 | _PKG_SHORT_ERRORS_SUPPORTED | |
9603 | if test $_pkg_short_errors_supported = yes; then | |
9604 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` | |
9605 | else | |
9606 | $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` | |
9607 | fi | |
9608 | # Put the nasty error message in config.log where it belongs | |
9609 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD | |
9610 | ||
9611 | m4_default([$4], [AC_MSG_ERROR( | |
9612 | [Package requirements ($2) were not met: | |
9613 | ||
9614 | $$1_PKG_ERRORS | |
9615 | ||
9616 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
9617 | installed software in a non-standard prefix. | |
9618 | ||
9619 | _PKG_TEXT]) | |
9620 | ]) | |
9621 | elif test $pkg_failed = untried; then | |
9622 | AC_MSG_RESULT([no]) | |
9623 | m4_default([$4], [AC_MSG_FAILURE( | |
9624 | [The pkg-config script could not be found or is too old. Make sure it | |
9625 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
9626 | path to pkg-config. | |
9627 | ||
9628 | _PKG_TEXT | |
9629 | ||
9630 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.]) | |
9631 | ]) | |
9632 | else | |
9633 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | |
9634 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS | |
9635 | AC_MSG_RESULT([yes]) | |
9636 | $3 | |
9637 | fi[]dnl | |
9638 | ])# PKG_CHECK_MODULES | |
9639 | 20 | |
9640 | 21 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. |
9641 | 22 | # Copyright (C) 2001-2003,2004 Red Hat, Inc. |
10121 | 502 | |
10122 | 503 | DISABLE_DEPRECATED="" |
10123 | 504 | if test $USE_MAINTAINER_MODE = yes; then |
10124 | DOMAINS="ATK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP" | |
505 | DOMAINS="G ATK PANGO GDK GDK_PIXBUF GTK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP" | |
10125 | 506 | for DOMAIN in $DOMAINS; do |
10126 | 507 | DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" |
10127 | 508 | done |
10272 | 653 | AC_SUBST(WARN_CXXFLAGS) |
10273 | 654 | ]) |
10274 | 655 | |
10275 | dnl -*- mode: autoconf -*- | |
10276 | ||
10277 | # serial 1 | |
10278 | ||
10279 | dnl Usage: | |
10280 | dnl GTK_DOC_CHECK([minimum-gtk-doc-version]) | |
10281 | AC_DEFUN([GTK_DOC_CHECK], | |
656 | # nls.m4 serial 5 (gettext-0.18) | |
657 | dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, | |
658 | dnl Inc. | |
659 | dnl This file is free software; the Free Software Foundation | |
660 | dnl gives unlimited permission to copy and/or distribute it, | |
661 | dnl with or without modifications, as long as this notice is preserved. | |
662 | dnl | |
663 | dnl This file can can be used in projects which are not available under | |
664 | dnl the GNU General Public License or the GNU Library General Public | |
665 | dnl License but which still want to provide support for the GNU gettext | |
666 | dnl functionality. | |
667 | dnl Please note that the actual code of the GNU gettext library is covered | |
668 | dnl by the GNU Library General Public License, and the rest of the GNU | |
669 | dnl gettext package package is covered by the GNU General Public License. | |
670 | dnl They are *not* in the public domain. | |
671 | ||
672 | dnl Authors: | |
673 | dnl Ulrich Drepper <drepper@cygnus.com>, 1995-2000. | |
674 | dnl Bruno Haible <haible@clisp.cons.org>, 2000-2003. | |
675 | ||
676 | AC_PREREQ([2.50]) | |
677 | ||
678 | AC_DEFUN([AM_NLS], | |
10282 | 679 | [ |
10283 | AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
10284 | AC_BEFORE([AC_PROG_LIBTOOL],[$0])dnl setup libtool first | |
10285 | AC_BEFORE([AM_PROG_LIBTOOL],[$0])dnl setup libtool first | |
10286 | ||
10287 | dnl check for tools we added during development | |
10288 | AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check]) | |
10289 | AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true]) | |
10290 | AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf]) | |
10291 | ||
10292 | dnl for overriding the documentation installation directory | |
10293 | AC_ARG_WITH([html-dir], | |
10294 | AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),, | |
10295 | [with_html_dir='${datadir}/gtk-doc/html']) | |
10296 | HTML_DIR="$with_html_dir" | |
10297 | AC_SUBST([HTML_DIR]) | |
10298 | ||
10299 | dnl enable/disable documentation building | |
10300 | AC_ARG_ENABLE([gtk-doc], | |
10301 | AS_HELP_STRING([--enable-gtk-doc], | |
10302 | [use gtk-doc to build documentation [[default=no]]]),, | |
10303 | [enable_gtk_doc=no]) | |
10304 | ||
10305 | if test x$enable_gtk_doc = xyes; then | |
10306 | ifelse([$1],[], | |
10307 | [PKG_CHECK_EXISTS([gtk-doc],, | |
10308 | AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested]))], | |
10309 | [PKG_CHECK_EXISTS([gtk-doc >= $1],, | |
10310 | AC_MSG_ERROR([You need to have gtk-doc >= $1 installed to build $PACKAGE_NAME]))]) | |
10311 | dnl don't check for glib if we build glib | |
10312 | if test "x$PACKAGE_NAME" != "xglib"; then | |
10313 | dnl don't fail if someone does not have glib | |
10314 | PKG_CHECK_MODULES(GTKDOC_DEPS, glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0,,) | |
680 | AC_MSG_CHECKING([whether NLS is requested]) | |
681 | dnl Default is enabled NLS | |
682 | AC_ARG_ENABLE([nls], | |
683 | [ --disable-nls do not use Native Language Support], | |
684 | USE_NLS=$enableval, USE_NLS=yes) | |
685 | AC_MSG_RESULT([$USE_NLS]) | |
686 | AC_SUBST([USE_NLS]) | |
687 | ]) | |
688 | ||
689 | # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- | |
690 | # serial 1 (pkg-config-0.24) | |
691 | # | |
692 | # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. | |
693 | # | |
694 | # This program is free software; you can redistribute it and/or modify | |
695 | # it under the terms of the GNU General Public License as published by | |
696 | # the Free Software Foundation; either version 2 of the License, or | |
697 | # (at your option) any later version. | |
698 | # | |
699 | # This program is distributed in the hope that it will be useful, but | |
700 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
701 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
702 | # General Public License for more details. | |
703 | # | |
704 | # You should have received a copy of the GNU General Public License | |
705 | # along with this program; if not, write to the Free Software | |
706 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
707 | # | |
708 | # As a special exception to the GNU General Public License, if you | |
709 | # distribute this file as part of a program that contains a | |
710 | # configuration script generated by Autoconf, you may include it under | |
711 | # the same distribution terms that you use for the rest of that program. | |
712 | ||
713 | # PKG_PROG_PKG_CONFIG([MIN-VERSION]) | |
714 | # ---------------------------------- | |
715 | AC_DEFUN([PKG_PROG_PKG_CONFIG], | |
716 | [m4_pattern_forbid([^_?PKG_[A-Z_]+$]) | |
717 | m4_pattern_allow([^PKG_CONFIG(_PATH)?$]) | |
718 | AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility]) | |
719 | AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path]) | |
720 | AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path]) | |
721 | ||
722 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
723 | AC_PATH_TOOL([PKG_CONFIG], [pkg-config]) | |
724 | fi | |
725 | if test -n "$PKG_CONFIG"; then | |
726 | _pkg_min_version=m4_default([$1], [0.9.0]) | |
727 | AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version]) | |
728 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
729 | AC_MSG_RESULT([yes]) | |
730 | else | |
731 | AC_MSG_RESULT([no]) | |
732 | PKG_CONFIG="" | |
733 | fi | |
734 | fi[]dnl | |
735 | ])# PKG_PROG_PKG_CONFIG | |
736 | ||
737 | # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) | |
738 | # | |
739 | # Check to see whether a particular set of modules exists. Similar | |
740 | # to PKG_CHECK_MODULES(), but does not set variables or print errors. | |
741 | # | |
742 | # Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
743 | # only at the first occurence in configure.ac, so if the first place | |
744 | # it's called might be skipped (such as if it is within an "if", you | |
745 | # have to call PKG_CHECK_EXISTS manually | |
746 | # -------------------------------------------------------------- | |
747 | AC_DEFUN([PKG_CHECK_EXISTS], | |
748 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
749 | if test -n "$PKG_CONFIG" && \ | |
750 | AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then | |
751 | m4_default([$2], [:]) | |
752 | m4_ifvaln([$3], [else | |
753 | $3])dnl | |
754 | fi]) | |
755 | ||
756 | # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) | |
757 | # --------------------------------------------- | |
758 | m4_define([_PKG_CONFIG], | |
759 | [if test -n "$$1"; then | |
760 | pkg_cv_[]$1="$$1" | |
761 | elif test -n "$PKG_CONFIG"; then | |
762 | PKG_CHECK_EXISTS([$3], | |
763 | [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`], | |
764 | [pkg_failed=yes]) | |
765 | else | |
766 | pkg_failed=untried | |
767 | fi[]dnl | |
768 | ])# _PKG_CONFIG | |
769 | ||
770 | # _PKG_SHORT_ERRORS_SUPPORTED | |
771 | # ----------------------------- | |
772 | AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED], | |
773 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG]) | |
774 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
775 | _pkg_short_errors_supported=yes | |
776 | else | |
777 | _pkg_short_errors_supported=no | |
778 | fi[]dnl | |
779 | ])# _PKG_SHORT_ERRORS_SUPPORTED | |
780 | ||
781 | ||
782 | # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], | |
783 | # [ACTION-IF-NOT-FOUND]) | |
784 | # | |
785 | # | |
786 | # Note that if there is a possibility the first call to | |
787 | # PKG_CHECK_MODULES might not happen, you should be sure to include an | |
788 | # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac | |
789 | # | |
790 | # | |
791 | # -------------------------------------------------------------- | |
792 | AC_DEFUN([PKG_CHECK_MODULES], | |
793 | [AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl | |
794 | AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl | |
795 | AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl | |
796 | ||
797 | pkg_failed=no | |
798 | AC_MSG_CHECKING([for $1]) | |
799 | ||
800 | _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) | |
801 | _PKG_CONFIG([$1][_LIBS], [libs], [$2]) | |
802 | ||
803 | m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS | |
804 | and $1[]_LIBS to avoid the need to call pkg-config. | |
805 | See the pkg-config man page for more details.]) | |
806 | ||
807 | if test $pkg_failed = yes; then | |
808 | AC_MSG_RESULT([no]) | |
809 | _PKG_SHORT_ERRORS_SUPPORTED | |
810 | if test $_pkg_short_errors_supported = yes; then | |
811 | $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` | |
812 | else | |
813 | $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` | |
814 | fi | |
815 | # Put the nasty error message in config.log where it belongs | |
816 | echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD | |
817 | ||
818 | m4_default([$4], [AC_MSG_ERROR( | |
819 | [Package requirements ($2) were not met: | |
820 | ||
821 | $$1_PKG_ERRORS | |
822 | ||
823 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
824 | installed software in a non-standard prefix. | |
825 | ||
826 | _PKG_TEXT]) | |
827 | ]) | |
828 | elif test $pkg_failed = untried; then | |
829 | AC_MSG_RESULT([no]) | |
830 | m4_default([$4], [AC_MSG_FAILURE( | |
831 | [The pkg-config script could not be found or is too old. Make sure it | |
832 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
833 | path to pkg-config. | |
834 | ||
835 | _PKG_TEXT | |
836 | ||
837 | To get pkg-config, see <http://pkg-config.freedesktop.org/>.]) | |
838 | ]) | |
839 | else | |
840 | $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS | |
841 | $1[]_LIBS=$pkg_cv_[]$1[]_LIBS | |
842 | AC_MSG_RESULT([yes]) | |
843 | $3 | |
844 | fi[]dnl | |
845 | ])# PKG_CHECK_MODULES | |
846 | ||
847 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
848 | # | |
849 | # This file is free software; the Free Software Foundation | |
850 | # gives unlimited permission to copy and/or distribute it, | |
851 | # with or without modifications, as long as this notice is preserved. | |
852 | ||
853 | # AM_AUTOMAKE_VERSION(VERSION) | |
854 | # ---------------------------- | |
855 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
856 | # generated from the m4 files accompanying Automake X.Y. | |
857 | # (This private macro should not be called outside this file.) | |
858 | AC_DEFUN([AM_AUTOMAKE_VERSION], | |
859 | [am__api_version='1.11' | |
860 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
861 | dnl require some minimum version. Point them to the right macro. | |
862 | m4_if([$1], [1.11.1], [], | |
863 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
864 | ]) | |
865 | ||
866 | # _AM_AUTOCONF_VERSION(VERSION) | |
867 | # ----------------------------- | |
868 | # aclocal traces this macro to find the Autoconf version. | |
869 | # This is a private macro too. Using m4_define simplifies | |
870 | # the logic in aclocal, which can simply ignore this definition. | |
871 | m4_define([_AM_AUTOCONF_VERSION], []) | |
872 | ||
873 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
874 | # ------------------------------- | |
875 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
876 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
877 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
878 | [AM_AUTOMAKE_VERSION([1.11.1])dnl | |
879 | m4_ifndef([AC_AUTOCONF_VERSION], | |
880 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
881 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
882 | ||
883 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
884 | ||
885 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
886 | # | |
887 | # This file is free software; the Free Software Foundation | |
888 | # gives unlimited permission to copy and/or distribute it, | |
889 | # with or without modifications, as long as this notice is preserved. | |
890 | ||
891 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
892 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
893 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
894 | # | |
895 | # Of course, Automake must honor this variable whenever it calls a | |
896 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
897 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
898 | # depending on how configure is run. This is pretty annoying, since | |
899 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
900 | # source directory, any form will work fine, but in subdirectories a | |
901 | # relative path needs to be adjusted first. | |
902 | # | |
903 | # $ac_aux_dir/missing | |
904 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
905 | # $top_srcdir/$ac_aux_dir/missing | |
906 | # fails if $ac_aux_dir is absolute, | |
907 | # fails when called from a subdirectory in a VPATH build with | |
908 | # a relative $ac_aux_dir | |
909 | # | |
910 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
911 | # are both prefixed by $srcdir. In an in-source build this is usually | |
912 | # harmless because $srcdir is `.', but things will broke when you | |
913 | # start a VPATH build or use an absolute $srcdir. | |
914 | # | |
915 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
916 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
917 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
918 | # and then we would define $MISSING as | |
919 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
920 | # This will work as long as MISSING is not called from configure, because | |
921 | # unfortunately $(top_srcdir) has no meaning in configure. | |
922 | # However there are other variables, like CC, which are often used in | |
923 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
924 | # | |
925 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
926 | # absolute PATH. The drawback is that using absolute paths prevent a | |
927 | # configured tree to be moved without reconfiguration. | |
928 | ||
929 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
930 | [dnl Rely on autoconf to set up CDPATH properly. | |
931 | AC_PREREQ([2.50])dnl | |
932 | # expand $ac_aux_dir to an absolute path | |
933 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
934 | ]) | |
935 | ||
936 | # AM_CONDITIONAL -*- Autoconf -*- | |
937 | ||
938 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |
939 | # Free Software Foundation, Inc. | |
940 | # | |
941 | # This file is free software; the Free Software Foundation | |
942 | # gives unlimited permission to copy and/or distribute it, | |
943 | # with or without modifications, as long as this notice is preserved. | |
944 | ||
945 | # serial 9 | |
946 | ||
947 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
948 | # ------------------------------------- | |
949 | # Define a conditional. | |
950 | AC_DEFUN([AM_CONDITIONAL], | |
951 | [AC_PREREQ(2.52)dnl | |
952 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
953 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
954 | AC_SUBST([$1_TRUE])dnl | |
955 | AC_SUBST([$1_FALSE])dnl | |
956 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
957 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
958 | m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
959 | if $2; then | |
960 | $1_TRUE= | |
961 | $1_FALSE='#' | |
962 | else | |
963 | $1_TRUE='#' | |
964 | $1_FALSE= | |
965 | fi | |
966 | AC_CONFIG_COMMANDS_PRE( | |
967 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
968 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
969 | Usually this means the macro was only invoked conditionally.]]) | |
970 | fi])]) | |
971 | ||
972 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 | |
973 | # Free Software Foundation, Inc. | |
974 | # | |
975 | # This file is free software; the Free Software Foundation | |
976 | # gives unlimited permission to copy and/or distribute it, | |
977 | # with or without modifications, as long as this notice is preserved. | |
978 | ||
979 | # serial 10 | |
980 | ||
981 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
982 | # written in clear, in which case automake, when reading aclocal.m4, | |
983 | # will think it sees a *use*, and therefore will trigger all it's | |
984 | # C support machinery. Also note that it means that autoscan, seeing | |
985 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
986 | ||
987 | ||
988 | # _AM_DEPENDENCIES(NAME) | |
989 | # ---------------------- | |
990 | # See how the compiler implements dependency checking. | |
991 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
992 | # We try a few techniques and use that to set a single cache variable. | |
993 | # | |
994 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
995 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
996 | # dependency, and given that the user is not expected to run this macro, | |
997 | # just rely on AC_PROG_CC. | |
998 | AC_DEFUN([_AM_DEPENDENCIES], | |
999 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
1000 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
1001 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
1002 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
1003 | ||
1004 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
1005 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
1006 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
1007 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
1008 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
1009 | [depcc="$$1" am_compiler_list=]) | |
1010 | ||
1011 | AC_CACHE_CHECK([dependency style of $depcc], | |
1012 | [am_cv_$1_dependencies_compiler_type], | |
1013 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
1014 | # We make a subdir and do the tests there. Otherwise we can end up | |
1015 | # making bogus files that we don't know about and never remove. For | |
1016 | # instance it was reported that on HP-UX the gcc test will end up | |
1017 | # making a dummy file named `D' -- because `-MD' means `put the output | |
1018 | # in D'. | |
1019 | mkdir conftest.dir | |
1020 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
1021 | # using a relative directory. | |
1022 | cp "$am_depcomp" conftest.dir | |
1023 | cd conftest.dir | |
1024 | # We will build objects and dependencies in a subdirectory because | |
1025 | # it helps to detect inapplicable dependency modes. For instance | |
1026 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
1027 | # side effect of compilation, but ICC will put the dependencies in | |
1028 | # the current directory while Tru64 will put them in the object | |
1029 | # directory. | |
1030 | mkdir sub | |
1031 | ||
1032 | am_cv_$1_dependencies_compiler_type=none | |
1033 | if test "$am_compiler_list" = ""; then | |
1034 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
1035 | fi | |
1036 | am__universal=false | |
1037 | m4_case([$1], [CC], | |
1038 | [case " $depcc " in #( | |
1039 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
1040 | esac], | |
1041 | [CXX], | |
1042 | [case " $depcc " in #( | |
1043 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
1044 | esac]) | |
1045 | ||
1046 | for depmode in $am_compiler_list; do | |
1047 | # Setup a source with many dependencies, because some compilers | |
1048 | # like to wrap large dependency lists on column 80 (with \), and | |
1049 | # we should not choose a depcomp mode which is confused by this. | |
1050 | # | |
1051 | # We need to recreate these files for each test, as the compiler may | |
1052 | # overwrite some of them when testing with obscure command lines. | |
1053 | # This happens at least with the AIX C compiler. | |
1054 | : > sub/conftest.c | |
1055 | for i in 1 2 3 4 5 6; do | |
1056 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
1057 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
1058 | # Solaris 8's {/usr,}/bin/sh. | |
1059 | touch sub/conftst$i.h | |
1060 | done | |
1061 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
1062 | ||
1063 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
1064 | # mode. It turns out that the SunPro C++ compiler does not properly | |
1065 | # handle `-M -o', and we need to detect this. Also, some Intel | |
1066 | # versions had trouble with output in subdirs | |
1067 | am__obj=sub/conftest.${OBJEXT-o} | |
1068 | am__minus_obj="-o $am__obj" | |
1069 | case $depmode in | |
1070 | gcc) | |
1071 | # This depmode causes a compiler race in universal mode. | |
1072 | test "$am__universal" = false || continue | |
1073 | ;; | |
1074 | nosideeffect) | |
1075 | # after this tag, mechanisms are not by side-effect, so they'll | |
1076 | # only be used when explicitly requested | |
1077 | if test "x$enable_dependency_tracking" = xyes; then | |
1078 | continue | |
1079 | else | |
1080 | break | |
1081 | fi | |
1082 | ;; | |
1083 | msvisualcpp | msvcmsys) | |
1084 | # This compiler won't grok `-c -o', but also, the minuso test has | |
1085 | # not run yet. These depmodes are late enough in the game, and | |
1086 | # so weak that their functioning should not be impacted. | |
1087 | am__obj=conftest.${OBJEXT-o} | |
1088 | am__minus_obj= | |
1089 | ;; | |
1090 | none) break ;; | |
1091 | esac | |
1092 | if depmode=$depmode \ | |
1093 | source=sub/conftest.c object=$am__obj \ | |
1094 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
1095 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
1096 | >/dev/null 2>conftest.err && | |
1097 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
1098 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
1099 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
1100 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
1101 | # icc doesn't choke on unknown options, it will just issue warnings | |
1102 | # or remarks (even with -Werror). So we grep stderr for any message | |
1103 | # that says an option was ignored or not supported. | |
1104 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
1105 | # icc: Command line warning: ignoring option '-M'; no argument required | |
1106 | # The diagnosis changed in icc 8.0: | |
1107 | # icc: Command line remark: option '-MP' not supported | |
1108 | if (grep 'ignoring option' conftest.err || | |
1109 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
1110 | am_cv_$1_dependencies_compiler_type=$depmode | |
1111 | break | |
1112 | fi | |
10315 | 1113 | fi |
1114 | done | |
1115 | ||
1116 | cd .. | |
1117 | rm -rf conftest.dir | |
1118 | else | |
1119 | am_cv_$1_dependencies_compiler_type=none | |
1120 | fi | |
1121 | ]) | |
1122 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
1123 | AM_CONDITIONAL([am__fastdep$1], [ | |
1124 | test "x$enable_dependency_tracking" != xno \ | |
1125 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
1126 | ]) | |
1127 | ||
1128 | ||
1129 | # AM_SET_DEPDIR | |
1130 | # ------------- | |
1131 | # Choose a directory name for dependency files. | |
1132 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
1133 | AC_DEFUN([AM_SET_DEPDIR], | |
1134 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
1135 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
1136 | ]) | |
1137 | ||
1138 | ||
1139 | # AM_DEP_TRACK | |
1140 | # ------------ | |
1141 | AC_DEFUN([AM_DEP_TRACK], | |
1142 | [AC_ARG_ENABLE(dependency-tracking, | |
1143 | [ --disable-dependency-tracking speeds up one-time build | |
1144 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
1145 | if test "x$enable_dependency_tracking" != xno; then | |
1146 | am_depcomp="$ac_aux_dir/depcomp" | |
1147 | AMDEPBACKSLASH='\' | |
1148 | fi | |
1149 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
1150 | AC_SUBST([AMDEPBACKSLASH])dnl | |
1151 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
1152 | ]) | |
1153 | ||
1154 | # Generate code to set up dependency tracking. -*- Autoconf -*- | |
1155 | ||
1156 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
1157 | # Free Software Foundation, Inc. | |
1158 | # | |
1159 | # This file is free software; the Free Software Foundation | |
1160 | # gives unlimited permission to copy and/or distribute it, | |
1161 | # with or without modifications, as long as this notice is preserved. | |
1162 | ||
1163 | #serial 5 | |
1164 | ||
1165 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
1166 | # ------------------------------ | |
1167 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
1168 | [{ | |
1169 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
1170 | # are listed without --file. Let's play safe and only enable the eval | |
1171 | # if we detect the quoting. | |
1172 | case $CONFIG_FILES in | |
1173 | *\'*) eval set x "$CONFIG_FILES" ;; | |
1174 | *) set x $CONFIG_FILES ;; | |
1175 | esac | |
1176 | shift | |
1177 | for mf | |
1178 | do | |
1179 | # Strip MF so we end up with the name of the file. | |
1180 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
1181 | # Check whether this is an Automake generated Makefile or not. | |
1182 | # We used to match only the files named `Makefile.in', but | |
1183 | # some people rename them; so instead we look at the file content. | |
1184 | # Grep'ing the first line is not enough: some people post-process | |
1185 | # each Makefile.in and add a new line on top of each file to say so. | |
1186 | # Grep'ing the whole file is not good either: AIX grep has a line | |
1187 | # limit of 2048, but all sed's we know have understand at least 4000. | |
1188 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
1189 | dirpart=`AS_DIRNAME("$mf")` | |
1190 | else | |
1191 | continue | |
1192 | fi | |
1193 | # Extract the definition of DEPDIR, am__include, and am__quote | |
1194 | # from the Makefile without running `make'. | |
1195 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
1196 | test -z "$DEPDIR" && continue | |
1197 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
1198 | test -z "am__include" && continue | |
1199 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
1200 | # When using ansi2knr, U may be empty or an underscore; expand it | |
1201 | U=`sed -n 's/^U = //p' < "$mf"` | |
1202 | # Find all dependency output files, they are included files with | |
1203 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
1204 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
1205 | # expansion. | |
1206 | for file in `sed -n " | |
1207 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
1208 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
1209 | # Make sure the directory exists. | |
1210 | test -f "$dirpart/$file" && continue | |
1211 | fdir=`AS_DIRNAME(["$file"])` | |
1212 | AS_MKDIR_P([$dirpart/$fdir]) | |
1213 | # echo "creating $dirpart/$file" | |
1214 | echo '# dummy' > "$dirpart/$file" | |
1215 | done | |
1216 | done | |
1217 | } | |
1218 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
1219 | ||
1220 | ||
1221 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
1222 | # ----------------------------- | |
1223 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
1224 | # | |
1225 | # This code is only required when automatic dependency tracking | |
1226 | # is enabled. FIXME. This creates each `.P' file that we will | |
1227 | # need in order to bootstrap the dependency handling code. | |
1228 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
1229 | [AC_CONFIG_COMMANDS([depfiles], | |
1230 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
1231 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
1232 | ]) | |
1233 | ||
1234 | # Do all the work for Automake. -*- Autoconf -*- | |
1235 | ||
1236 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
1237 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |
1238 | # | |
1239 | # This file is free software; the Free Software Foundation | |
1240 | # gives unlimited permission to copy and/or distribute it, | |
1241 | # with or without modifications, as long as this notice is preserved. | |
1242 | ||
1243 | # serial 16 | |
1244 | ||
1245 | # This macro actually does too much. Some checks are only needed if | |
1246 | # your package does certain things. But this isn't really a big deal. | |
1247 | ||
1248 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
1249 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
1250 | # ----------------------------------------------- | |
1251 | # The call with PACKAGE and VERSION arguments is the old style | |
1252 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
1253 | # and VERSION should now be passed to AC_INIT and removed from | |
1254 | # the call to AM_INIT_AUTOMAKE. | |
1255 | # We support both call styles for the transition. After | |
1256 | # the next Automake release, Autoconf can make the AC_INIT | |
1257 | # arguments mandatory, and then we can depend on a new Autoconf | |
1258 | # release and drop the old call support. | |
1259 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
1260 | [AC_PREREQ([2.62])dnl | |
1261 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
1262 | dnl the ones we care about. | |
1263 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
1264 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
1265 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
1266 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
1267 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
1268 | # is not polluted with repeated "-I." | |
1269 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
1270 | # test to see if srcdir already configured | |
1271 | if test -f $srcdir/config.status; then | |
1272 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
10316 | 1273 | fi |
10317 | ||
10318 | AC_MSG_CHECKING([whether to build gtk-doc documentation]) | |
10319 | AC_MSG_RESULT($enable_gtk_doc) | |
10320 | ||
10321 | dnl enable/disable output formats | |
10322 | AC_ARG_ENABLE([gtk-doc-html], | |
10323 | AS_HELP_STRING([--enable-gtk-doc-html], | |
10324 | [build documentation in html format [[default=yes]]]),, | |
10325 | [enable_gtk_doc_html=yes]) | |
10326 | AC_ARG_ENABLE([gtk-doc-pdf], | |
10327 | AS_HELP_STRING([--enable-gtk-doc-pdf], | |
10328 | [build documentation in pdf format [[default=no]]]),, | |
10329 | [enable_gtk_doc_pdf=no]) | |
10330 | ||
10331 | if test -z "$GTKDOC_MKPDF"; then | |
10332 | enable_gtk_doc_pdf=no | |
1274 | fi | |
1275 | ||
1276 | # test whether we have cygpath | |
1277 | if test -z "$CYGPATH_W"; then | |
1278 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1279 | CYGPATH_W='cygpath -w' | |
1280 | else | |
1281 | CYGPATH_W=echo | |
10333 | 1282 | fi |
10334 | ||
10335 | ||
10336 | AM_CONDITIONAL([ENABLE_GTK_DOC], [test x$enable_gtk_doc = xyes]) | |
10337 | AM_CONDITIONAL([GTK_DOC_BUILD_HTML], [test x$enable_gtk_doc_html = xyes]) | |
10338 | AM_CONDITIONAL([GTK_DOC_BUILD_PDF], [test x$enable_gtk_doc_pdf = xyes]) | |
10339 | AM_CONDITIONAL([GTK_DOC_USE_LIBTOOL], [test -n "$LIBTOOL"]) | |
10340 | AM_CONDITIONAL([GTK_DOC_USE_REBASE], [test -n "$GTKDOC_REBASE"]) | |
10341 | ]) | |
10342 | ||
10343 | ||
10344 | dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) | |
10345 | # serial 40 IT_PROG_INTLTOOL | |
10346 | AC_DEFUN([IT_PROG_INTLTOOL], [ | |
10347 | AC_PREREQ([2.50])dnl | |
10348 | AC_REQUIRE([AM_NLS])dnl | |
10349 | ||
10350 | case "$am__api_version" in | |
10351 | 1.[01234]) | |
10352 | AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) | |
10353 | ;; | |
10354 | *) | |
10355 | ;; | |
10356 | esac | |
10357 | ||
10358 | if test -n "$1"; then | |
10359 | AC_MSG_CHECKING([for intltool >= $1]) | |
10360 | ||
10361 | INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | |
10362 | INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` | |
10363 | [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | |
10364 | ] | |
10365 | AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) | |
10366 | test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || | |
10367 | AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) | |
10368 | 1283 | fi |
10369 | ||
10370 | AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) | |
10371 | AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) | |
10372 | AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) | |
10373 | if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then | |
10374 | AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) | |
1284 | AC_SUBST([CYGPATH_W]) | |
1285 | ||
1286 | # Define the identity of the package. | |
1287 | dnl Distinguish between old-style and new-style calls. | |
1288 | m4_ifval([$2], | |
1289 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
1290 | AC_SUBST([PACKAGE], [$1])dnl | |
1291 | AC_SUBST([VERSION], [$2])], | |
1292 | [_AM_SET_OPTIONS([$1])dnl | |
1293 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
1294 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
1295 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
1296 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
1297 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
1298 | ||
1299 | _AM_IF_OPTION([no-define],, | |
1300 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
1301 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
1302 | ||
1303 | # Some tools Automake needs. | |
1304 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
1305 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
1306 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
1307 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
1308 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
1309 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
1310 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
1311 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
1312 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
1313 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
1314 | # We need awk for the "check" target. The system "awk" is bad on | |
1315 | # some platforms. | |
1316 | AC_REQUIRE([AC_PROG_AWK])dnl | |
1317 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
1318 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
1319 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
1320 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
1321 | [_AM_PROG_TAR([v7])])]) | |
1322 | _AM_IF_OPTION([no-dependencies],, | |
1323 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
1324 | [_AM_DEPENDENCIES(CC)], | |
1325 | [define([AC_PROG_CC], | |
1326 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
1327 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
1328 | [_AM_DEPENDENCIES(CXX)], | |
1329 | [define([AC_PROG_CXX], | |
1330 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
1331 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
1332 | [_AM_DEPENDENCIES(OBJC)], | |
1333 | [define([AC_PROG_OBJC], | |
1334 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
1335 | ]) | |
1336 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
1337 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
1338 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
1339 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
1340 | AC_CONFIG_COMMANDS_PRE(dnl | |
1341 | [m4_provide_if([_AM_COMPILER_EXEEXT], | |
1342 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
1343 | ]) | |
1344 | ||
1345 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
1346 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
1347 | dnl mangled by Autoconf and run in a shell conditional statement. | |
1348 | m4_define([_AC_COMPILER_EXEEXT], | |
1349 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
1350 | ||
1351 | ||
1352 | # When config.status generates a header, we must update the stamp-h file. | |
1353 | # This file resides in the same directory as the config header | |
1354 | # that is generated. The stamp files are numbered to have different names. | |
1355 | ||
1356 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
1357 | # loop where config.status creates the headers, so we can generate | |
1358 | # our stamp files there. | |
1359 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
1360 | [# Compute $1's index in $config_headers. | |
1361 | _am_arg=$1 | |
1362 | _am_stamp_count=1 | |
1363 | for _am_header in $config_headers :; do | |
1364 | case $_am_header in | |
1365 | $_am_arg | $_am_arg:* ) | |
1366 | break ;; | |
1367 | * ) | |
1368 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
1369 | esac | |
1370 | done | |
1371 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
1372 | ||
1373 | # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | |
1374 | # | |
1375 | # This file is free software; the Free Software Foundation | |
1376 | # gives unlimited permission to copy and/or distribute it, | |
1377 | # with or without modifications, as long as this notice is preserved. | |
1378 | ||
1379 | # AM_PROG_INSTALL_SH | |
1380 | # ------------------ | |
1381 | # Define $install_sh. | |
1382 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
1383 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
1384 | if test x"${install_sh}" != xset; then | |
1385 | case $am_aux_dir in | |
1386 | *\ * | *\ *) | |
1387 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
1388 | *) | |
1389 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
1390 | esac | |
10375 | 1391 | fi |
10376 | ||
10377 | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10378 | INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10379 | INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10380 | INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10381 | INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' | |
10382 | INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10383 | INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10384 | INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10385 | INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10386 | INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10387 | INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10388 | INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' | |
10389 | INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10390 | INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10391 | INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10392 | INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10393 | INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10394 | INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10395 | INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
10396 | ||
10397 | _IT_SUBST(INTLTOOL_DESKTOP_RULE) | |
10398 | _IT_SUBST(INTLTOOL_DIRECTORY_RULE) | |
10399 | _IT_SUBST(INTLTOOL_KEYS_RULE) | |
10400 | _IT_SUBST(INTLTOOL_PROP_RULE) | |
10401 | _IT_SUBST(INTLTOOL_OAF_RULE) | |
10402 | _IT_SUBST(INTLTOOL_PONG_RULE) | |
10403 | _IT_SUBST(INTLTOOL_SERVER_RULE) | |
10404 | _IT_SUBST(INTLTOOL_SHEET_RULE) | |
10405 | _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) | |
10406 | _IT_SUBST(INTLTOOL_UI_RULE) | |
10407 | _IT_SUBST(INTLTOOL_XAM_RULE) | |
10408 | _IT_SUBST(INTLTOOL_KBD_RULE) | |
10409 | _IT_SUBST(INTLTOOL_XML_RULE) | |
10410 | _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) | |
10411 | _IT_SUBST(INTLTOOL_CAVES_RULE) | |
10412 | _IT_SUBST(INTLTOOL_SCHEMAS_RULE) | |
10413 | _IT_SUBST(INTLTOOL_THEME_RULE) | |
10414 | _IT_SUBST(INTLTOOL_SERVICE_RULE) | |
10415 | _IT_SUBST(INTLTOOL_POLICY_RULE) | |
10416 | ||
10417 | # Check the gettext tools to make sure they are GNU | |
10418 | AC_PATH_PROG(XGETTEXT, xgettext) | |
10419 | AC_PATH_PROG(MSGMERGE, msgmerge) | |
10420 | AC_PATH_PROG(MSGFMT, msgfmt) | |
10421 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | |
10422 | if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then | |
10423 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | |
1392 | AC_SUBST(install_sh)]) | |
1393 | ||
1394 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
1395 | # | |
1396 | # This file is free software; the Free Software Foundation | |
1397 | # gives unlimited permission to copy and/or distribute it, | |
1398 | # with or without modifications, as long as this notice is preserved. | |
1399 | ||
1400 | # serial 2 | |
1401 | ||
1402 | # Check whether the underlying file-system supports filenames | |
1403 | # with a leading dot. For instance MS-DOS doesn't. | |
1404 | AC_DEFUN([AM_SET_LEADING_DOT], | |
1405 | [rm -rf .tst 2>/dev/null | |
1406 | mkdir .tst 2>/dev/null | |
1407 | if test -d .tst; then | |
1408 | am__leading_dot=. | |
1409 | else | |
1410 | am__leading_dot=_ | |
10424 | 1411 | fi |
10425 | xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" | |
10426 | mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" | |
10427 | mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" | |
10428 | if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then | |
10429 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | |
10430 | fi | |
10431 | ||
10432 | AC_PATH_PROG(INTLTOOL_PERL, perl) | |
10433 | if test -z "$INTLTOOL_PERL"; then | |
10434 | AC_MSG_ERROR([perl not found]) | |
10435 | fi | |
10436 | AC_MSG_CHECKING([for perl >= 5.8.1]) | |
10437 | $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 | |
10438 | if test $? -ne 0; then | |
10439 | AC_MSG_ERROR([perl 5.8.1 is required for intltool]) | |
10440 | else | |
10441 | IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" | |
10442 | AC_MSG_RESULT([$IT_PERL_VERSION]) | |
10443 | fi | |
10444 | if test "x$2" != "xno-xml"; then | |
10445 | AC_MSG_CHECKING([for XML::Parser]) | |
10446 | if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then | |
10447 | AC_MSG_RESULT([ok]) | |
10448 | else | |
10449 | AC_MSG_ERROR([XML::Parser perl module is required for intltool]) | |
10450 | fi | |
10451 | fi | |
10452 | ||
10453 | # Substitute ALL_LINGUAS so we can use it in po/Makefile | |
10454 | AC_SUBST(ALL_LINGUAS) | |
10455 | ||
10456 | # Set DATADIRNAME correctly if it is not set yet | |
10457 | # (copied from glib-gettext.m4) | |
10458 | if test -z "$DATADIRNAME"; then | |
10459 | AC_LINK_IFELSE( | |
10460 | [AC_LANG_PROGRAM([[]], | |
10461 | [[extern int _nl_msg_cat_cntr; | |
10462 | return _nl_msg_cat_cntr]])], | |
10463 | [DATADIRNAME=share], | |
10464 | [case $host in | |
10465 | *-*-solaris*) | |
10466 | dnl On Solaris, if bind_textdomain_codeset is in libc, | |
10467 | dnl GNU format message catalog is always supported, | |
10468 | dnl since both are added to the libc all together. | |
10469 | dnl Hence, we'd like to go with DATADIRNAME=share | |
10470 | dnl in this case. | |
10471 | AC_CHECK_FUNC(bind_textdomain_codeset, | |
10472 | [DATADIRNAME=share], [DATADIRNAME=lib]) | |
10473 | ;; | |
10474 | *) | |
10475 | [DATADIRNAME=lib] | |
10476 | ;; | |
10477 | esac]) | |
10478 | fi | |
10479 | AC_SUBST(DATADIRNAME) | |
10480 | ||
10481 | IT_PO_SUBDIR([po]) | |
10482 | ||
10483 | ]) | |
10484 | ||
10485 | ||
10486 | # IT_PO_SUBDIR(DIRNAME) | |
10487 | # --------------------- | |
10488 | # All po subdirs have to be declared with this macro; the subdir "po" is | |
10489 | # declared by IT_PROG_INTLTOOL. | |
10490 | # | |
10491 | AC_DEFUN([IT_PO_SUBDIR], | |
10492 | [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. | |
10493 | dnl | |
10494 | dnl The following CONFIG_COMMANDS should be executed at the very end | |
10495 | dnl of config.status. | |
10496 | AC_CONFIG_COMMANDS_PRE([ | |
10497 | AC_CONFIG_COMMANDS([$1/stamp-it], [ | |
10498 | if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then | |
10499 | AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) | |
10500 | fi | |
10501 | rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" | |
10502 | >"$1/stamp-it.tmp" | |
10503 | [sed '/^#/d | |
10504 | s/^[[].*] *// | |
10505 | /^[ ]*$/d | |
10506 | '"s|^| $ac_top_srcdir/|" \ | |
10507 | "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" | |
10508 | ] | |
10509 | [sed '/^POTFILES =/,/[^\\]$/ { | |
10510 | /^POTFILES =/!d | |
10511 | r $1/POTFILES | |
10512 | } | |
10513 | ' "$1/Makefile.in" >"$1/Makefile"] | |
10514 | rm -f "$1/Makefile.tmp" | |
10515 | mv "$1/stamp-it.tmp" "$1/stamp-it" | |
10516 | ]) | |
10517 | ])dnl | |
10518 | ]) | |
10519 | ||
10520 | # _IT_SUBST(VARIABLE) | |
10521 | # ------------------- | |
10522 | # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST | |
10523 | # | |
10524 | AC_DEFUN([_IT_SUBST], | |
10525 | [ | |
10526 | AC_SUBST([$1]) | |
10527 | m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) | |
1412 | rmdir .tst 2>/dev/null | |
1413 | AC_SUBST([am__leading_dot])]) | |
1414 | ||
1415 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | |
1416 | # From Jim Meyering | |
1417 | ||
1418 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
1419 | # Free Software Foundation, Inc. | |
1420 | # | |
1421 | # This file is free software; the Free Software Foundation | |
1422 | # gives unlimited permission to copy and/or distribute it, | |
1423 | # with or without modifications, as long as this notice is preserved. | |
1424 | ||
1425 | # serial 5 | |
1426 | ||
1427 | # AM_MAINTAINER_MODE([DEFAULT-MODE]) | |
1428 | # ---------------------------------- | |
1429 | # Control maintainer-specific portions of Makefiles. | |
1430 | # Default is to disable them, unless `enable' is passed literally. | |
1431 | # For symmetry, `disable' may be passed as well. Anyway, the user | |
1432 | # can override the default with the --enable/--disable switch. | |
1433 | AC_DEFUN([AM_MAINTAINER_MODE], | |
1434 | [m4_case(m4_default([$1], [disable]), | |
1435 | [enable], [m4_define([am_maintainer_other], [disable])], | |
1436 | [disable], [m4_define([am_maintainer_other], [enable])], | |
1437 | [m4_define([am_maintainer_other], [enable]) | |
1438 | m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | |
1439 | AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) | |
1440 | dnl maintainer-mode's default is 'disable' unless 'enable' is passed | |
1441 | AC_ARG_ENABLE([maintainer-mode], | |
1442 | [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | |
1443 | (and sometimes confusing) to the casual installer], | |
1444 | [USE_MAINTAINER_MODE=$enableval], | |
1445 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
1446 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | |
1447 | AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) | |
1448 | MAINT=$MAINTAINER_MODE_TRUE | |
1449 | AC_SUBST([MAINT])dnl | |
10528 | 1450 | ] |
10529 | 1451 | ) |
10530 | 1452 | |
10531 | # deprecated macros | |
10532 | AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) | |
10533 | # A hint is needed for aclocal from Automake <= 1.9.4: | |
10534 | # AC_DEFUN([AC_PROG_INTLTOOL], ...) | |
10535 | ||
10536 | ||
1453 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
1454 | ||
1455 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
1456 | ||
1457 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
1458 | # | |
1459 | # This file is free software; the Free Software Foundation | |
1460 | # gives unlimited permission to copy and/or distribute it, | |
1461 | # with or without modifications, as long as this notice is preserved. | |
1462 | ||
1463 | # serial 4 | |
1464 | ||
1465 | # AM_MAKE_INCLUDE() | |
1466 | # ----------------- | |
1467 | # Check to see how make treats includes. | |
1468 | AC_DEFUN([AM_MAKE_INCLUDE], | |
1469 | [am_make=${MAKE-make} | |
1470 | cat > confinc << 'END' | |
1471 | am__doit: | |
1472 | @echo this is the am__doit target | |
1473 | .PHONY: am__doit | |
1474 | END | |
1475 | # If we don't find an include directive, just comment out the code. | |
1476 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
1477 | am__include="#" | |
1478 | am__quote= | |
1479 | _am_result=none | |
1480 | # First try GNU make style include. | |
1481 | echo "include confinc" > confmf | |
1482 | # Ignore all kinds of additional output from `make'. | |
1483 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
1484 | *the\ am__doit\ target*) | |
1485 | am__include=include | |
1486 | am__quote= | |
1487 | _am_result=GNU | |
1488 | ;; | |
1489 | esac | |
1490 | # Now try BSD make style include. | |
1491 | if test "$am__include" = "#"; then | |
1492 | echo '.include "confinc"' > confmf | |
1493 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
1494 | *the\ am__doit\ target*) | |
1495 | am__include=.include | |
1496 | am__quote="\"" | |
1497 | _am_result=BSD | |
1498 | ;; | |
1499 | esac | |
1500 | fi | |
1501 | AC_SUBST([am__include]) | |
1502 | AC_SUBST([am__quote]) | |
1503 | AC_MSG_RESULT([$_am_result]) | |
1504 | rm -f confinc confmf | |
1505 | ]) | |
1506 | ||
1507 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
1508 | ||
1509 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
1510 | # Free Software Foundation, Inc. | |
1511 | # | |
1512 | # This file is free software; the Free Software Foundation | |
1513 | # gives unlimited permission to copy and/or distribute it, | |
1514 | # with or without modifications, as long as this notice is preserved. | |
1515 | ||
1516 | # serial 6 | |
1517 | ||
1518 | # AM_MISSING_PROG(NAME, PROGRAM) | |
1519 | # ------------------------------ | |
1520 | AC_DEFUN([AM_MISSING_PROG], | |
1521 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
1522 | $1=${$1-"${am_missing_run}$2"} | |
1523 | AC_SUBST($1)]) | |
1524 | ||
1525 | ||
1526 | # AM_MISSING_HAS_RUN | |
1527 | # ------------------ | |
1528 | # Define MISSING if not defined so far and test if it supports --run. | |
1529 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
1530 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
1531 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
1532 | AC_REQUIRE_AUX_FILE([missing])dnl | |
1533 | if test x"${MISSING+set}" != xset; then | |
1534 | case $am_aux_dir in | |
1535 | *\ * | *\ *) | |
1536 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
1537 | *) | |
1538 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
1539 | esac | |
1540 | fi | |
1541 | # Use eval to expand $SHELL | |
1542 | if eval "$MISSING --run true"; then | |
1543 | am_missing_run="$MISSING --run " | |
1544 | else | |
1545 | am_missing_run= | |
1546 | AC_MSG_WARN([`missing' script is too old or missing]) | |
1547 | fi | |
1548 | ]) | |
1549 | ||
1550 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
1551 | # | |
1552 | # This file is free software; the Free Software Foundation | |
1553 | # gives unlimited permission to copy and/or distribute it, | |
1554 | # with or without modifications, as long as this notice is preserved. | |
1555 | ||
1556 | # AM_PROG_MKDIR_P | |
1557 | # --------------- | |
1558 | # Check for `mkdir -p'. | |
1559 | AC_DEFUN([AM_PROG_MKDIR_P], | |
1560 | [AC_PREREQ([2.60])dnl | |
1561 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
1562 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
1563 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
1564 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
1565 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
1566 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
1567 | dnl adjustment using top_builddir (which is defined more often than | |
1568 | dnl MKDIR_P). | |
1569 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
1570 | case $mkdir_p in | |
1571 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
1572 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
1573 | esac | |
1574 | ]) | |
1575 | ||
1576 | # Helper functions for option handling. -*- Autoconf -*- | |
1577 | ||
1578 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
1579 | # | |
1580 | # This file is free software; the Free Software Foundation | |
1581 | # gives unlimited permission to copy and/or distribute it, | |
1582 | # with or without modifications, as long as this notice is preserved. | |
1583 | ||
1584 | # serial 4 | |
1585 | ||
1586 | # _AM_MANGLE_OPTION(NAME) | |
1587 | # ----------------------- | |
1588 | AC_DEFUN([_AM_MANGLE_OPTION], | |
1589 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
1590 | ||
1591 | # _AM_SET_OPTION(NAME) | |
1592 | # ------------------------------ | |
1593 | # Set option NAME. Presently that only means defining a flag for this option. | |
1594 | AC_DEFUN([_AM_SET_OPTION], | |
1595 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
1596 | ||
1597 | # _AM_SET_OPTIONS(OPTIONS) | |
1598 | # ---------------------------------- | |
1599 | # OPTIONS is a space-separated list of Automake options. | |
1600 | AC_DEFUN([_AM_SET_OPTIONS], | |
1601 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
1602 | ||
1603 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
1604 | # ------------------------------------------- | |
1605 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
1606 | AC_DEFUN([_AM_IF_OPTION], | |
1607 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
1608 | ||
1609 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
1610 | ||
1611 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
1612 | # Free Software Foundation, Inc. | |
1613 | # | |
1614 | # This file is free software; the Free Software Foundation | |
1615 | # gives unlimited permission to copy and/or distribute it, | |
1616 | # with or without modifications, as long as this notice is preserved. | |
1617 | ||
1618 | # serial 5 | |
1619 | ||
1620 | # AM_SANITY_CHECK | |
1621 | # --------------- | |
1622 | AC_DEFUN([AM_SANITY_CHECK], | |
1623 | [AC_MSG_CHECKING([whether build environment is sane]) | |
1624 | # Just in case | |
1625 | sleep 1 | |
1626 | echo timestamp > conftest.file | |
1627 | # Reject unsafe characters in $srcdir or the absolute working directory | |
1628 | # name. Accept space and tab only in the latter. | |
1629 | am_lf=' | |
1630 | ' | |
1631 | case `pwd` in | |
1632 | *[[\\\"\#\$\&\'\`$am_lf]]*) | |
1633 | AC_MSG_ERROR([unsafe absolute working directory name]);; | |
1634 | esac | |
1635 | case $srcdir in | |
1636 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
1637 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
1638 | esac | |
1639 | ||
1640 | # Do `set' in a subshell so we don't clobber the current shell's | |
1641 | # arguments. Must try -L first in case configure is actually a | |
1642 | # symlink; some systems play weird games with the mod time of symlinks | |
1643 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1644 | # directory). | |
1645 | if ( | |
1646 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
1647 | if test "$[*]" = "X"; then | |
1648 | # -L didn't work. | |
1649 | set X `ls -t "$srcdir/configure" conftest.file` | |
1650 | fi | |
1651 | rm -f conftest.file | |
1652 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
1653 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
1654 | ||
1655 | # If neither matched, then we have a broken ls. This can happen | |
1656 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1657 | # broken ls alias from the environment. This has actually | |
1658 | # happened. Such a system could not be considered "sane". | |
1659 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
1660 | alias in your environment]) | |
1661 | fi | |
1662 | ||
1663 | test "$[2]" = conftest.file | |
1664 | ) | |
1665 | then | |
1666 | # Ok. | |
1667 | : | |
1668 | else | |
1669 | AC_MSG_ERROR([newly created file is older than distributed files! | |
1670 | Check your system clock]) | |
1671 | fi | |
1672 | AC_MSG_RESULT(yes)]) | |
1673 | ||
1674 | # Copyright (C) 2009 Free Software Foundation, Inc. | |
1675 | # | |
1676 | # This file is free software; the Free Software Foundation | |
1677 | # gives unlimited permission to copy and/or distribute it, | |
1678 | # with or without modifications, as long as this notice is preserved. | |
1679 | ||
1680 | # serial 1 | |
1681 | ||
1682 | # AM_SILENT_RULES([DEFAULT]) | |
1683 | # -------------------------- | |
1684 | # Enable less verbose build rules; with the default set to DEFAULT | |
1685 | # (`yes' being less verbose, `no' or empty being verbose). | |
1686 | AC_DEFUN([AM_SILENT_RULES], | |
1687 | [AC_ARG_ENABLE([silent-rules], | |
1688 | [ --enable-silent-rules less verbose build output (undo: `make V=1') | |
1689 | --disable-silent-rules verbose build output (undo: `make V=0')]) | |
1690 | case $enable_silent_rules in | |
1691 | yes) AM_DEFAULT_VERBOSITY=0;; | |
1692 | no) AM_DEFAULT_VERBOSITY=1;; | |
1693 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
1694 | esac | |
1695 | AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
1696 | AM_BACKSLASH='\' | |
1697 | AC_SUBST([AM_BACKSLASH])dnl | |
1698 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
1699 | ]) | |
1700 | ||
1701 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
1702 | # | |
1703 | # This file is free software; the Free Software Foundation | |
1704 | # gives unlimited permission to copy and/or distribute it, | |
1705 | # with or without modifications, as long as this notice is preserved. | |
1706 | ||
1707 | # AM_PROG_INSTALL_STRIP | |
1708 | # --------------------- | |
1709 | # One issue with vendor `install' (even GNU) is that you can't | |
1710 | # specify the program used to strip binaries. This is especially | |
1711 | # annoying in cross-compiling environments, where the build's strip | |
1712 | # is unlikely to handle the host's binaries. | |
1713 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
1714 | # always use install-sh in `make install-strip', and initialize | |
1715 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
1716 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
1717 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
1718 | # Installed binaries are usually stripped using `strip' when the user | |
1719 | # run `make install-strip'. However `strip' might not be the right | |
1720 | # tool to use in cross-compilation environments, therefore Automake | |
1721 | # will honor the `STRIP' environment variable to overrule this program. | |
1722 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
1723 | if test "$cross_compiling" != no; then | |
1724 | AC_CHECK_TOOL([STRIP], [strip], :) | |
1725 | fi | |
1726 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
1727 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
1728 | ||
1729 | # Copyright (C) 2006, 2008 Free Software Foundation, Inc. | |
1730 | # | |
1731 | # This file is free software; the Free Software Foundation | |
1732 | # gives unlimited permission to copy and/or distribute it, | |
1733 | # with or without modifications, as long as this notice is preserved. | |
1734 | ||
1735 | # serial 2 | |
1736 | ||
1737 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
1738 | # --------------------------- | |
1739 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
1740 | # This macro is traced by Automake. | |
1741 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
1742 | ||
1743 | # AM_SUBST_NOTMAKE(VARIABLE) | |
1744 | # --------------------------- | |
1745 | # Public sister of _AM_SUBST_NOTMAKE. | |
1746 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
1747 | ||
1748 | # Check how to create a tarball. -*- Autoconf -*- | |
1749 | ||
1750 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |
1751 | # | |
1752 | # This file is free software; the Free Software Foundation | |
1753 | # gives unlimited permission to copy and/or distribute it, | |
1754 | # with or without modifications, as long as this notice is preserved. | |
1755 | ||
1756 | # serial 2 | |
1757 | ||
1758 | # _AM_PROG_TAR(FORMAT) | |
1759 | # -------------------- | |
1760 | # Check how to create a tarball in format FORMAT. | |
1761 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
1762 | # | |
1763 | # Substitute a variable $(am__tar) that is a command | |
1764 | # writing to stdout a FORMAT-tarball containing the directory | |
1765 | # $tardir. | |
1766 | # tardir=directory && $(am__tar) > result.tar | |
1767 | # | |
1768 | # Substitute a variable $(am__untar) that extract such | |
1769 | # a tarball read from stdin. | |
1770 | # $(am__untar) < result.tar | |
1771 | AC_DEFUN([_AM_PROG_TAR], | |
1772 | [# Always define AMTAR for backward compatibility. | |
1773 | AM_MISSING_PROG([AMTAR], [tar]) | |
1774 | m4_if([$1], [v7], | |
1775 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
1776 | [m4_case([$1], [ustar],, [pax],, | |
1777 | [m4_fatal([Unknown tar format])]) | |
1778 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
1779 | # Loop over all known methods to create a tar archive until one works. | |
1780 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
1781 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
1782 | # Do not fold the above two line into one, because Tru64 sh and | |
1783 | # Solaris sh will not grok spaces in the rhs of `-'. | |
1784 | for _am_tool in $_am_tools | |
1785 | do | |
1786 | case $_am_tool in | |
1787 | gnutar) | |
1788 | for _am_tar in tar gnutar gtar; | |
1789 | do | |
1790 | AM_RUN_LOG([$_am_tar --version]) && break | |
1791 | done | |
1792 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
1793 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
1794 | am__untar="$_am_tar -xf -" | |
1795 | ;; | |
1796 | plaintar) | |
1797 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
1798 | # ustar tarball either. | |
1799 | (tar --version) >/dev/null 2>&1 && continue | |
1800 | am__tar='tar chf - "$$tardir"' | |
1801 | am__tar_='tar chf - "$tardir"' | |
1802 | am__untar='tar xf -' | |
1803 | ;; | |
1804 | pax) | |
1805 | am__tar='pax -L -x $1 -w "$$tardir"' | |
1806 | am__tar_='pax -L -x $1 -w "$tardir"' | |
1807 | am__untar='pax -r' | |
1808 | ;; | |
1809 | cpio) | |
1810 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
1811 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
1812 | am__untar='cpio -i -H $1 -d' | |
1813 | ;; | |
1814 | none) | |
1815 | am__tar=false | |
1816 | am__tar_=false | |
1817 | am__untar=false | |
1818 | ;; | |
1819 | esac | |
1820 | ||
1821 | # If the value was cached, stop now. We just wanted to have am__tar | |
1822 | # and am__untar set. | |
1823 | test -n "${am_cv_prog_tar_$1}" && break | |
1824 | ||
1825 | # tar/untar a dummy directory, and stop if the command works | |
1826 | rm -rf conftest.dir | |
1827 | mkdir conftest.dir | |
1828 | echo GrepMe > conftest.dir/file | |
1829 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
1830 | rm -rf conftest.dir | |
1831 | if test -s conftest.tar; then | |
1832 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
1833 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
1834 | fi | |
1835 | done | |
1836 | rm -rf conftest.dir | |
1837 | ||
1838 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
1839 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
1840 | AC_SUBST([am__tar]) | |
1841 | AC_SUBST([am__untar]) | |
1842 | ]) # _AM_PROG_TAR | |
1843 | ||
1844 | m4_include([m4/intltool.m4]) | |
1845 | m4_include([m4/libtool.m4]) | |
1846 | m4_include([m4/ltoptions.m4]) | |
1847 | m4_include([m4/ltsugar.m4]) | |
1848 | m4_include([m4/ltversion.m4]) | |
1849 | m4_include([m4/lt~obsolete.m4]) |
0 | 0 | /* config.h.in. Generated from configure.ac by autoheader. */ |
1 | ||
2 | /* enable GObject introspection support */ | |
3 | #undef ENABLE_INTROSPECTION | |
4 | 1 | |
5 | 2 | /* always defined to indicate that i18n is enabled */ |
6 | 3 | #undef ENABLE_NLS |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.68 for polkit-gnome 0.104. | |
2 | # Generated by GNU Autoconf 2.68 for polkit-gnome 0.105. | |
3 | 3 | # |
4 | 4 | # Report bugs to <http://lists.freedesktop.org/mailman/listinfo/polkit-devel>. |
5 | 5 | # |
570 | 570 | # Identity of this package. |
571 | 571 | PACKAGE_NAME='polkit-gnome' |
572 | 572 | PACKAGE_TARNAME='polkit-gnome' |
573 | PACKAGE_VERSION='0.104' | |
574 | PACKAGE_STRING='polkit-gnome 0.104' | |
573 | PACKAGE_VERSION='0.105' | |
574 | PACKAGE_STRING='polkit-gnome 0.105' | |
575 | 575 | PACKAGE_BUGREPORT='http://lists.freedesktop.org/mailman/listinfo/polkit-devel' |
576 | 576 | PACKAGE_URL='' |
577 | 577 | |
662 | 662 | INTLTOOL_MERGE |
663 | 663 | INTLTOOL_UPDATE |
664 | 664 | USE_NLS |
665 | ENABLE_INTROSPECTION_FALSE | |
666 | ENABLE_INTROSPECTION_TRUE | |
667 | GIRTYPELIBDIR | |
668 | GIRDIR | |
669 | G_IR_GENERATE | |
670 | G_IR_COMPILER | |
671 | G_IR_SCANNER | |
672 | INTROSPECTION_LIBS | |
673 | INTROSPECTION_CFLAGS | |
674 | BUILD_EXAMPLES_FALSE | |
675 | BUILD_EXAMPLES_TRUE | |
676 | 665 | POLKIT_GOBJECT_LIBS |
677 | 666 | POLKIT_GOBJECT_CFLAGS |
678 | 667 | POLKIT_AGENT_LIBS |
679 | 668 | POLKIT_AGENT_CFLAGS |
669 | GLIB_LIBS | |
670 | GLIB_CFLAGS | |
680 | 671 | GTK_LIBS |
681 | 672 | GTK_CFLAGS |
682 | GTK_DOC_USE_REBASE_FALSE | |
683 | GTK_DOC_USE_REBASE_TRUE | |
684 | GTK_DOC_USE_LIBTOOL_FALSE | |
685 | GTK_DOC_USE_LIBTOOL_TRUE | |
686 | GTK_DOC_BUILD_PDF_FALSE | |
687 | GTK_DOC_BUILD_PDF_TRUE | |
688 | GTK_DOC_BUILD_HTML_FALSE | |
689 | GTK_DOC_BUILD_HTML_TRUE | |
690 | ENABLE_GTK_DOC_FALSE | |
691 | ENABLE_GTK_DOC_TRUE | |
692 | GTKDOC_DEPS_LIBS | |
693 | GTKDOC_DEPS_CFLAGS | |
694 | HTML_DIR | |
695 | GTKDOC_MKPDF | |
696 | GTKDOC_REBASE | |
697 | GTKDOC_CHECK | |
698 | 673 | PKG_CONFIG_LIBDIR |
699 | 674 | PKG_CONFIG_PATH |
700 | 675 | PKG_CONFIG |
701 | DISABLE_DEPRECATED | |
702 | 676 | WARN_CFLAGS |
703 | ACLOCAL_AMFLAGS | |
704 | 677 | OTOOL64 |
705 | 678 | OTOOL |
706 | 679 | LIPO |
832 | 805 | enable_debug |
833 | 806 | enable_compile_warnings |
834 | 807 | enable_iso_c |
835 | with_html_dir | |
836 | enable_gtk_doc | |
837 | enable_gtk_doc_html | |
838 | enable_gtk_doc_pdf | |
839 | enable_examples | |
840 | enable_introspection | |
841 | 808 | enable_nls |
842 | 809 | ' |
843 | 810 | ac_precious_vars='build_alias |
852 | 819 | PKG_CONFIG |
853 | 820 | PKG_CONFIG_PATH |
854 | 821 | PKG_CONFIG_LIBDIR |
855 | GTKDOC_DEPS_CFLAGS | |
856 | GTKDOC_DEPS_LIBS | |
857 | 822 | GTK_CFLAGS |
858 | 823 | GTK_LIBS |
824 | GLIB_CFLAGS | |
825 | GLIB_LIBS | |
859 | 826 | POLKIT_AGENT_CFLAGS |
860 | 827 | POLKIT_AGENT_LIBS |
861 | 828 | POLKIT_GOBJECT_CFLAGS |
862 | POLKIT_GOBJECT_LIBS | |
863 | INTROSPECTION_CFLAGS | |
864 | INTROSPECTION_LIBS' | |
829 | POLKIT_GOBJECT_LIBS' | |
865 | 830 | |
866 | 831 | |
867 | 832 | # Initialize some variables set by options. |
1404 | 1369 | # Omit some internal or obsolete options to make the list less imposing. |
1405 | 1370 | # This message is too long to be a string in the A/UX 3.1 sh. |
1406 | 1371 | cat <<_ACEOF |
1407 | \`configure' configures polkit-gnome 0.104 to adapt to many kinds of systems. | |
1372 | \`configure' configures polkit-gnome 0.105 to adapt to many kinds of systems. | |
1408 | 1373 | |
1409 | 1374 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1410 | 1375 | |
1474 | 1439 | |
1475 | 1440 | if test -n "$ac_init_help"; then |
1476 | 1441 | case $ac_init_help in |
1477 | short | recursive ) echo "Configuration of polkit-gnome 0.104:";; | |
1442 | short | recursive ) echo "Configuration of polkit-gnome 0.105:";; | |
1478 | 1443 | esac |
1479 | 1444 | cat <<\_ACEOF |
1480 | 1445 | |
1482 | 1447 | --disable-option-checking ignore unrecognized --enable/--with options |
1483 | 1448 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1484 | 1449 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1485 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1450 | --disable-maintainer-mode disable make rules and dependencies not useful | |
1486 | 1451 | (and sometimes confusing) to the casual installer |
1487 | 1452 | --enable-silent-rules less verbose build output (undo: `make V=1') |
1488 | 1453 | --disable-silent-rules verbose build output (undo: `make V=0') |
1497 | 1462 | --enable-compile-warnings=[no/minimum/yes/maximum/error] |
1498 | 1463 | Turn on compiler warnings |
1499 | 1464 | --enable-iso-c Try to warn if code is not ISO C |
1500 | --enable-gtk-doc use gtk-doc to build documentation [[default=no]] | |
1501 | --enable-gtk-doc-html build documentation in html format [[default=yes]] | |
1502 | --enable-gtk-doc-pdf build documentation in pdf format [[default=no]] | |
1503 | --enable-examples Build the example programs | |
1504 | --enable-introspection enable GObject introspection | |
1505 | 1465 | --disable-nls do not use Native Language Support |
1506 | 1466 | |
1507 | 1467 | Optional Packages: |
1512 | 1472 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1513 | 1473 | --with-sysroot=DIR Search for dependent libraries within DIR |
1514 | 1474 | (or the compiler's sysroot if not specified). |
1515 | --with-html-dir=PATH path to installed docs | |
1516 | 1475 | |
1517 | 1476 | Some influential environment variables: |
1518 | 1477 | CC C compiler command |
1528 | 1487 | directories to add to pkg-config's search path |
1529 | 1488 | PKG_CONFIG_LIBDIR |
1530 | 1489 | path overriding pkg-config's built-in search path |
1531 | GTKDOC_DEPS_CFLAGS | |
1532 | C compiler flags for GTKDOC_DEPS, overriding pkg-config | |
1533 | GTKDOC_DEPS_LIBS | |
1534 | linker flags for GTKDOC_DEPS, overriding pkg-config | |
1535 | 1490 | GTK_CFLAGS C compiler flags for GTK, overriding pkg-config |
1536 | 1491 | GTK_LIBS linker flags for GTK, overriding pkg-config |
1492 | GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config | |
1493 | GLIB_LIBS linker flags for GLIB, overriding pkg-config | |
1537 | 1494 | POLKIT_AGENT_CFLAGS |
1538 | 1495 | C compiler flags for POLKIT_AGENT, overriding pkg-config |
1539 | 1496 | POLKIT_AGENT_LIBS |
1542 | 1499 | C compiler flags for POLKIT_GOBJECT, overriding pkg-config |
1543 | 1500 | POLKIT_GOBJECT_LIBS |
1544 | 1501 | linker flags for POLKIT_GOBJECT, overriding pkg-config |
1545 | INTROSPECTION_CFLAGS | |
1546 | C compiler flags for INTROSPECTION, overriding pkg-config | |
1547 | INTROSPECTION_LIBS | |
1548 | linker flags for INTROSPECTION, overriding pkg-config | |
1549 | 1502 | |
1550 | 1503 | Use these variables to override the choices made by `configure' or to help |
1551 | 1504 | it to find libraries and programs with nonstandard names/locations. |
1613 | 1566 | test -n "$ac_init_help" && exit $ac_status |
1614 | 1567 | if $ac_init_version; then |
1615 | 1568 | cat <<\_ACEOF |
1616 | polkit-gnome configure 0.104 | |
1569 | polkit-gnome configure 0.105 | |
1617 | 1570 | generated by GNU Autoconf 2.68 |
1618 | 1571 | |
1619 | 1572 | Copyright (C) 2010 Free Software Foundation, Inc. |
1664 | 1617 | as_fn_set_status $ac_retval |
1665 | 1618 | |
1666 | 1619 | } # ac_fn_c_try_compile |
1620 | ||
1621 | # ac_fn_c_try_cpp LINENO | |
1622 | # ---------------------- | |
1623 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1624 | ac_fn_c_try_cpp () | |
1625 | { | |
1626 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1627 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1628 | case "(($ac_try" in | |
1629 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1630 | *) ac_try_echo=$ac_try;; | |
1631 | esac | |
1632 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1633 | $as_echo "$ac_try_echo"; } >&5 | |
1634 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1635 | ac_status=$? | |
1636 | if test -s conftest.err; then | |
1637 | grep -v '^ *+' conftest.err >conftest.er1 | |
1638 | cat conftest.er1 >&5 | |
1639 | mv -f conftest.er1 conftest.err | |
1640 | fi | |
1641 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1642 | test $ac_status = 0; } > conftest.i && { | |
1643 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1644 | test ! -s conftest.err | |
1645 | }; then : | |
1646 | ac_retval=0 | |
1647 | else | |
1648 | $as_echo "$as_me: failed program was:" >&5 | |
1649 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1650 | ||
1651 | ac_retval=1 | |
1652 | fi | |
1653 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1654 | as_fn_set_status $ac_retval | |
1655 | ||
1656 | } # ac_fn_c_try_cpp | |
1657 | ||
1658 | # ac_fn_c_try_run LINENO | |
1659 | # ---------------------- | |
1660 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1661 | # that executables *can* be run. | |
1662 | ac_fn_c_try_run () | |
1663 | { | |
1664 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1665 | if { { ac_try="$ac_link" | |
1666 | case "(($ac_try" in | |
1667 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1668 | *) ac_try_echo=$ac_try;; | |
1669 | esac | |
1670 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1671 | $as_echo "$ac_try_echo"; } >&5 | |
1672 | (eval "$ac_link") 2>&5 | |
1673 | ac_status=$? | |
1674 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1675 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1676 | { { case "(($ac_try" in | |
1677 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1678 | *) ac_try_echo=$ac_try;; | |
1679 | esac | |
1680 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1681 | $as_echo "$ac_try_echo"; } >&5 | |
1682 | (eval "$ac_try") 2>&5 | |
1683 | ac_status=$? | |
1684 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1685 | test $ac_status = 0; }; }; then : | |
1686 | ac_retval=0 | |
1687 | else | |
1688 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1689 | $as_echo "$as_me: failed program was:" >&5 | |
1690 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1691 | ||
1692 | ac_retval=$ac_status | |
1693 | fi | |
1694 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1695 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1696 | as_fn_set_status $ac_retval | |
1697 | ||
1698 | } # ac_fn_c_try_run | |
1667 | 1699 | |
1668 | 1700 | # ac_fn_c_try_link LINENO |
1669 | 1701 | # ----------------------- |
1711 | 1743 | |
1712 | 1744 | } # ac_fn_c_try_link |
1713 | 1745 | |
1714 | # ac_fn_c_try_cpp LINENO | |
1715 | # ---------------------- | |
1716 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1717 | ac_fn_c_try_cpp () | |
1718 | { | |
1719 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1720 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1721 | case "(($ac_try" in | |
1722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1723 | *) ac_try_echo=$ac_try;; | |
1724 | esac | |
1725 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1726 | $as_echo "$ac_try_echo"; } >&5 | |
1727 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1728 | ac_status=$? | |
1729 | if test -s conftest.err; then | |
1730 | grep -v '^ *+' conftest.err >conftest.er1 | |
1731 | cat conftest.er1 >&5 | |
1732 | mv -f conftest.er1 conftest.err | |
1733 | fi | |
1734 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1735 | test $ac_status = 0; } > conftest.i && { | |
1736 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1737 | test ! -s conftest.err | |
1738 | }; then : | |
1739 | ac_retval=0 | |
1740 | else | |
1741 | $as_echo "$as_me: failed program was:" >&5 | |
1742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1743 | ||
1744 | ac_retval=1 | |
1745 | fi | |
1746 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1747 | as_fn_set_status $ac_retval | |
1748 | ||
1749 | } # ac_fn_c_try_cpp | |
1750 | ||
1751 | # ac_fn_c_try_run LINENO | |
1752 | # ---------------------- | |
1753 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1754 | # that executables *can* be run. | |
1755 | ac_fn_c_try_run () | |
1756 | { | |
1757 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1758 | if { { ac_try="$ac_link" | |
1759 | case "(($ac_try" in | |
1760 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1761 | *) ac_try_echo=$ac_try;; | |
1762 | esac | |
1763 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1764 | $as_echo "$ac_try_echo"; } >&5 | |
1765 | (eval "$ac_link") 2>&5 | |
1766 | ac_status=$? | |
1767 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1768 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1769 | { { case "(($ac_try" in | |
1770 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1771 | *) ac_try_echo=$ac_try;; | |
1772 | esac | |
1773 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1774 | $as_echo "$ac_try_echo"; } >&5 | |
1775 | (eval "$ac_try") 2>&5 | |
1776 | ac_status=$? | |
1777 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1778 | test $ac_status = 0; }; }; then : | |
1779 | ac_retval=0 | |
1780 | else | |
1781 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1782 | $as_echo "$as_me: failed program was:" >&5 | |
1783 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1784 | ||
1785 | ac_retval=$ac_status | |
1786 | fi | |
1787 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1788 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1789 | as_fn_set_status $ac_retval | |
1790 | ||
1791 | } # ac_fn_c_try_run | |
1792 | ||
1793 | 1746 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1794 | 1747 | # ------------------------------------------------------- |
1795 | 1748 | # Tests whether HEADER exists and can be compiled using the include files in |
1982 | 1935 | This file contains any messages produced by compilers while |
1983 | 1936 | running configure, to aid debugging if configure makes a mistake. |
1984 | 1937 | |
1985 | It was created by polkit-gnome $as_me 0.104, which was | |
1938 | It was created by polkit-gnome $as_me 0.105, which was | |
1986 | 1939 | generated by GNU Autoconf 2.68. Invocation command line was |
1987 | 1940 | |
1988 | 1941 | $ $0 $@ |
2798 | 2751 | |
2799 | 2752 | # Define the identity of the package. |
2800 | 2753 | PACKAGE='polkit-gnome' |
2801 | VERSION='0.104' | |
2754 | VERSION='0.105' | |
2802 | 2755 | |
2803 | 2756 | |
2804 | 2757 | cat >>confdefs.h <<_ACEOF |
2844 | 2797 | |
2845 | 2798 | |
2846 | 2799 | |
2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2848 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2800 | ||
2801 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5 | |
2802 | $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; } | |
2849 | 2803 | # Check whether --enable-maintainer-mode was given. |
2850 | 2804 | if test "${enable_maintainer_mode+set}" = set; then : |
2851 | 2805 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2852 | 2806 | else |
2853 | USE_MAINTAINER_MODE=no | |
2807 | USE_MAINTAINER_MODE=yes | |
2854 | 2808 | fi |
2855 | 2809 | |
2856 | 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
2891 | 2845 | |
2892 | 2846 | |
2893 | 2847 | |
2848 | # Check for programs | |
2894 | 2849 | ac_ext=c |
2895 | 2850 | ac_cpp='$CPP $CPPFLAGS' |
2896 | 2851 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3871 | 3826 | |
3872 | 3827 | |
3873 | 3828 | |
3874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 | |
3875 | $as_echo_n "checking for library containing strerror... " >&6; } | |
3876 | if ${ac_cv_search_strerror+:} false; then : | |
3877 | $as_echo_n "(cached) " >&6 | |
3878 | else | |
3879 | ac_func_search_save_LIBS=$LIBS | |
3880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3881 | /* end confdefs.h. */ | |
3882 | ||
3883 | /* Override any GCC internal prototype to avoid an error. | |
3884 | Use char because int might match the return type of a GCC | |
3885 | builtin and then its argument prototype would still apply. */ | |
3886 | #ifdef __cplusplus | |
3887 | extern "C" | |
3888 | #endif | |
3889 | char strerror (); | |
3890 | int | |
3891 | main () | |
3892 | { | |
3893 | return strerror (); | |
3894 | ; | |
3895 | return 0; | |
3896 | } | |
3897 | _ACEOF | |
3898 | for ac_lib in '' cposix; do | |
3899 | if test -z "$ac_lib"; then | |
3900 | ac_res="none required" | |
3901 | else | |
3902 | ac_res=-l$ac_lib | |
3903 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3904 | fi | |
3905 | if ac_fn_c_try_link "$LINENO"; then : | |
3906 | ac_cv_search_strerror=$ac_res | |
3907 | fi | |
3908 | rm -f core conftest.err conftest.$ac_objext \ | |
3909 | conftest$ac_exeext | |
3910 | if ${ac_cv_search_strerror+:} false; then : | |
3911 | break | |
3912 | fi | |
3913 | done | |
3914 | if ${ac_cv_search_strerror+:} false; then : | |
3915 | ||
3916 | else | |
3917 | ac_cv_search_strerror=no | |
3918 | fi | |
3919 | rm conftest.$ac_ext | |
3920 | LIBS=$ac_func_search_save_LIBS | |
3921 | fi | |
3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 | |
3923 | $as_echo "$ac_cv_search_strerror" >&6; } | |
3924 | ac_res=$ac_cv_search_strerror | |
3925 | if test "$ac_res" != no; then : | |
3926 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
3927 | ||
3928 | fi | |
3929 | ||
3930 | 3829 | ac_ext=c |
3931 | 3830 | ac_cpp='$CPP $CPPFLAGS' |
3932 | 3831 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4306 | 4205 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
4307 | 4206 | |
4308 | 4207 | fi |
4208 | ||
4209 | ||
4210 | # Initialize libtool | |
4309 | 4211 | |
4310 | 4212 | case `pwd` in |
4311 | 4213 | *\ * | *\ *) |
7917 | 7819 | $RM -r conftest* |
7918 | 7820 | |
7919 | 7821 | |
7822 | ## CAVEAT EMPTOR: | |
7823 | ## There is no encapsulation within the following macros, do not change | |
7824 | ## the running order or otherwise move them around unless you know exactly | |
7825 | ## what you are doing... | |
7920 | 7826 | if test -n "$compiler"; then |
7921 | 7827 | |
7922 | 7828 | lt_prog_compiler_no_builtin_flag= |
11455 | 11361 | |
11456 | 11362 | |
11457 | 11363 | |
11458 | ||
11459 | 11364 | # ***** |
11460 | 11365 | # GNOME |
11461 | 11366 | # ***** |
11462 | ||
11463 | ||
11464 | ||
11465 | ||
11466 | ACLOCAL_AMFLAGS="\${ACLOCAL_FLAGS}" | |
11467 | if test -n "$ac_macro_dir"; then | |
11468 | ACLOCAL_AMFLAGS="-I $ac_macro_dir $ACLOCAL_AMFLAGS" | |
11469 | fi | |
11470 | ||
11471 | ||
11472 | 11367 | |
11473 | 11368 | |
11474 | 11369 | # Check whether --enable-debug was given. |
11592 | 11487 | |
11593 | 11488 | |
11594 | 11489 | |
11595 | ||
11596 | ||
11597 | DISABLE_DEPRECATED="" | |
11598 | if test $USE_MAINTAINER_MODE = yes; then | |
11599 | DOMAINS="ATK GCONF BONOBO BONOBO_UI GNOME LIBGLADE VTE GNOME_VFS WNCK LIBSOUP" | |
11600 | for DOMAIN in $DOMAINS; do | |
11601 | DISABLE_DEPRECATED="$DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_DEPRECATED -D${DOMAIN}_DISABLE_SINGLE_INCLUDES" | |
11602 | done | |
11603 | fi | |
11604 | ||
11605 | ||
11606 | ||
11490 | #### gcc warning flags | |
11491 | ||
11492 | if test "x$GCC" = "xyes"; then | |
11493 | case " $CFLAGS " in | |
11494 | *[\ \ ]-Wall[\ \ ]*) ;; | |
11495 | *) CFLAGS="$CFLAGS -Wall" ;; | |
11496 | esac | |
11497 | ||
11498 | case " $CFLAGS " in | |
11499 | *[\ \ ]-Wchar-subscripts[\ \ ]*) ;; | |
11500 | *) CFLAGS="$CFLAGS -Wchar-subscripts" ;; | |
11501 | esac | |
11502 | ||
11503 | case " $CFLAGS " in | |
11504 | *[\ \ ]-Wmissing-declarations[\ \ ]*) ;; | |
11505 | *) CFLAGS="$CFLAGS -Wmissing-declarations" ;; | |
11506 | esac | |
11507 | ||
11508 | case " $CFLAGS " in | |
11509 | *[\ \ ]-Wnested-externs[\ \ ]*) ;; | |
11510 | *) CFLAGS="$CFLAGS -Wnested-externs" ;; | |
11511 | esac | |
11512 | ||
11513 | case " $CFLAGS " in | |
11514 | *[\ \ ]-Wpointer-arith[\ \ ]*) ;; | |
11515 | *) CFLAGS="$CFLAGS -Wpointer-arith" ;; | |
11516 | esac | |
11517 | ||
11518 | case " $CFLAGS " in | |
11519 | *[\ \ ]-Wcast-align[\ \ ]*) ;; | |
11520 | *) CFLAGS="$CFLAGS -Wcast-align" ;; | |
11521 | esac | |
11522 | ||
11523 | case " $CFLAGS " in | |
11524 | *[\ \ ]-Wsign-compare[\ \ ]*) ;; | |
11525 | *) CFLAGS="$CFLAGS -Wsign-compare" ;; | |
11526 | esac | |
11527 | ||
11528 | if test "x$enable_ansi" = "xyes"; then | |
11529 | case " $CFLAGS " in | |
11530 | *[\ \ ]-ansi[\ \ ]*) ;; | |
11531 | *) CFLAGS="$CFLAGS -ansi" ;; | |
11532 | esac | |
11533 | ||
11534 | case " $CFLAGS " in | |
11535 | *[\ \ ]-D_POSIX_C_SOURCE*) ;; | |
11536 | *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;; | |
11537 | esac | |
11538 | ||
11539 | case " $CFLAGS " in | |
11540 | *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;; | |
11541 | *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;; | |
11542 | esac | |
11543 | ||
11544 | case " $CFLAGS " in | |
11545 | *[\ \ ]-pedantic[\ \ ]*) ;; | |
11546 | *) CFLAGS="$CFLAGS -pedantic" ;; | |
11547 | esac | |
11548 | fi | |
11549 | if test x$enable_gcov = xyes; then | |
11550 | case " $CFLAGS " in | |
11551 | *[\ \ ]-fprofile-arcs[\ \ ]*) ;; | |
11552 | *) CFLAGS="$CFLAGS -fprofile-arcs" ;; | |
11553 | esac | |
11554 | case " $CFLAGS " in | |
11555 | *[\ \ ]-ftest-coverage[\ \ ]*) ;; | |
11556 | *) CFLAGS="$CFLAGS -ftest-coverage" ;; | |
11557 | esac | |
11558 | ||
11559 | ## remove optimization | |
11560 | CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'` | |
11561 | fi | |
11562 | else | |
11563 | if test x$enable_gcov = xyes; then | |
11564 | as_fn_error $? "--enable-gcov can only be used with gcc" "$LINENO" 5 | |
11565 | fi | |
11566 | fi | |
11567 | ||
11568 | # *************************** | |
11569 | # Check for required packages | |
11570 | # *************************** | |
11571 | ||
11572 | POLKIT_AGENT_REQUIRED=0.97 | |
11573 | POLKIT_GOBJECT_REQUIRED=0.97 | |
11574 | GTK_REQUIRED=3.0.0 | |
11575 | GLIB_REQUIRED=2.30 | |
11607 | 11576 | |
11608 | 11577 | |
11609 | 11578 | |
11725 | 11694 | fi |
11726 | 11695 | fi |
11727 | 11696 | |
11728 | ||
11729 | ||
11730 | # Extract the first word of "gtkdoc-check", so it can be a program name with args. | |
11731 | set dummy gtkdoc-check; ac_word=$2 | |
11732 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11733 | $as_echo_n "checking for $ac_word... " >&6; } | |
11734 | if ${ac_cv_path_GTKDOC_CHECK+:} false; then : | |
11735 | $as_echo_n "(cached) " >&6 | |
11736 | else | |
11737 | case $GTKDOC_CHECK in | |
11738 | [\\/]* | ?:[\\/]*) | |
11739 | ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path. | |
11740 | ;; | |
11741 | *) | |
11742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11743 | for as_dir in $PATH | |
11744 | do | |
11745 | IFS=$as_save_IFS | |
11746 | test -z "$as_dir" && as_dir=. | |
11747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11748 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11749 | ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" | |
11750 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11751 | break 2 | |
11752 | fi | |
11753 | done | |
11754 | done | |
11755 | IFS=$as_save_IFS | |
11756 | ||
11757 | ;; | |
11758 | esac | |
11759 | fi | |
11760 | GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK | |
11761 | if test -n "$GTKDOC_CHECK"; then | |
11762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5 | |
11763 | $as_echo "$GTKDOC_CHECK" >&6; } | |
11764 | else | |
11765 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11766 | $as_echo "no" >&6; } | |
11767 | fi | |
11768 | ||
11769 | ||
11770 | for ac_prog in gtkdoc-rebase | |
11771 | do | |
11772 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
11773 | set dummy $ac_prog; ac_word=$2 | |
11774 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11775 | $as_echo_n "checking for $ac_word... " >&6; } | |
11776 | if ${ac_cv_path_GTKDOC_REBASE+:} false; then : | |
11777 | $as_echo_n "(cached) " >&6 | |
11778 | else | |
11779 | case $GTKDOC_REBASE in | |
11780 | [\\/]* | ?:[\\/]*) | |
11781 | ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path. | |
11782 | ;; | |
11783 | *) | |
11784 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11785 | for as_dir in $PATH | |
11786 | do | |
11787 | IFS=$as_save_IFS | |
11788 | test -z "$as_dir" && as_dir=. | |
11789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11790 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11791 | ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext" | |
11792 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11793 | break 2 | |
11794 | fi | |
11795 | done | |
11796 | done | |
11797 | IFS=$as_save_IFS | |
11798 | ||
11799 | ;; | |
11800 | esac | |
11801 | fi | |
11802 | GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE | |
11803 | if test -n "$GTKDOC_REBASE"; then | |
11804 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5 | |
11805 | $as_echo "$GTKDOC_REBASE" >&6; } | |
11806 | else | |
11807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11808 | $as_echo "no" >&6; } | |
11809 | fi | |
11810 | ||
11811 | ||
11812 | test -n "$GTKDOC_REBASE" && break | |
11813 | done | |
11814 | test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true" | |
11815 | ||
11816 | # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args. | |
11817 | set dummy gtkdoc-mkpdf; ac_word=$2 | |
11818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11819 | $as_echo_n "checking for $ac_word... " >&6; } | |
11820 | if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : | |
11821 | $as_echo_n "(cached) " >&6 | |
11822 | else | |
11823 | case $GTKDOC_MKPDF in | |
11824 | [\\/]* | ?:[\\/]*) | |
11825 | ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path. | |
11826 | ;; | |
11827 | *) | |
11828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11829 | for as_dir in $PATH | |
11830 | do | |
11831 | IFS=$as_save_IFS | |
11832 | test -z "$as_dir" && as_dir=. | |
11833 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
11835 | ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext" | |
11836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
11837 | break 2 | |
11838 | fi | |
11839 | done | |
11840 | done | |
11841 | IFS=$as_save_IFS | |
11842 | ||
11843 | ;; | |
11844 | esac | |
11845 | fi | |
11846 | GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF | |
11847 | if test -n "$GTKDOC_MKPDF"; then | |
11848 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5 | |
11849 | $as_echo "$GTKDOC_MKPDF" >&6; } | |
11850 | else | |
11851 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11852 | $as_echo "no" >&6; } | |
11853 | fi | |
11854 | ||
11855 | ||
11856 | ||
11857 | ||
11858 | # Check whether --with-html-dir was given. | |
11859 | if test "${with_html_dir+set}" = set; then : | |
11860 | withval=$with_html_dir; | |
11861 | else | |
11862 | with_html_dir='${datadir}/gtk-doc/html' | |
11863 | fi | |
11864 | ||
11865 | HTML_DIR="$with_html_dir" | |
11866 | ||
11867 | ||
11868 | # Check whether --enable-gtk-doc was given. | |
11869 | if test "${enable_gtk_doc+set}" = set; then : | |
11870 | enableval=$enable_gtk_doc; | |
11871 | else | |
11872 | enable_gtk_doc=no | |
11873 | fi | |
11874 | ||
11875 | ||
11876 | if test x$enable_gtk_doc = xyes; then | |
11877 | if test -n "$PKG_CONFIG" && \ | |
11878 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.3\""; } >&5 | |
11879 | ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.3") 2>&5 | |
11880 | ac_status=$? | |
11881 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11882 | test $ac_status = 0; }; then | |
11883 | : | |
11884 | else | |
11885 | as_fn_error $? "You need to have gtk-doc >= 1.3 installed to build $PACKAGE_NAME" "$LINENO" 5 | |
11886 | fi | |
11887 | if test "x$PACKAGE_NAME" != "xglib"; then | |
11888 | ||
11889 | pkg_failed=no | |
11890 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTKDOC_DEPS" >&5 | |
11891 | $as_echo_n "checking for GTKDOC_DEPS... " >&6; } | |
11892 | ||
11893 | if test -n "$GTKDOC_DEPS_CFLAGS"; then | |
11894 | pkg_cv_GTKDOC_DEPS_CFLAGS="$GTKDOC_DEPS_CFLAGS" | |
11895 | elif test -n "$PKG_CONFIG"; then | |
11896 | if test -n "$PKG_CONFIG" && \ | |
11897 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 | |
11898 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 | |
11899 | ac_status=$? | |
11900 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11901 | test $ac_status = 0; }; then | |
11902 | pkg_cv_GTKDOC_DEPS_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` | |
11903 | else | |
11904 | pkg_failed=yes | |
11905 | fi | |
11906 | else | |
11907 | pkg_failed=untried | |
11908 | fi | |
11909 | if test -n "$GTKDOC_DEPS_LIBS"; then | |
11910 | pkg_cv_GTKDOC_DEPS_LIBS="$GTKDOC_DEPS_LIBS" | |
11911 | elif test -n "$PKG_CONFIG"; then | |
11912 | if test -n "$PKG_CONFIG" && \ | |
11913 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0\""; } >&5 | |
11914 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0") 2>&5 | |
11915 | ac_status=$? | |
11916 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11917 | test $ac_status = 0; }; then | |
11918 | pkg_cv_GTKDOC_DEPS_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>/dev/null` | |
11919 | else | |
11920 | pkg_failed=yes | |
11921 | fi | |
11922 | else | |
11923 | pkg_failed=untried | |
11924 | fi | |
11925 | ||
11926 | ||
11927 | ||
11928 | if test $pkg_failed = yes; then | |
11929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11930 | $as_echo "no" >&6; } | |
11931 | ||
11932 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11933 | _pkg_short_errors_supported=yes | |
11934 | else | |
11935 | _pkg_short_errors_supported=no | |
11936 | fi | |
11937 | if test $_pkg_short_errors_supported = yes; then | |
11938 | GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` | |
11939 | else | |
11940 | GTKDOC_DEPS_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0" 2>&1` | |
11941 | fi | |
11942 | # Put the nasty error message in config.log where it belongs | |
11943 | echo "$GTKDOC_DEPS_PKG_ERRORS" >&5 | |
11944 | ||
11945 | as_fn_error $? "Package requirements (glib-2.0 >= 2.10.0 gobject-2.0 >= 2.10.0) were not met: | |
11946 | ||
11947 | $GTKDOC_DEPS_PKG_ERRORS | |
11948 | ||
11949 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11950 | installed software in a non-standard prefix. | |
11951 | ||
11952 | Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS | |
11953 | and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config. | |
11954 | See the pkg-config man page for more details." "$LINENO" 5 | |
11955 | ||
11956 | elif test $pkg_failed = untried; then | |
11957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11958 | $as_echo "no" >&6; } | |
11959 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11960 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11961 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
11962 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11963 | path to pkg-config. | |
11964 | ||
11965 | Alternatively, you may set the environment variables GTKDOC_DEPS_CFLAGS | |
11966 | and GTKDOC_DEPS_LIBS to avoid the need to call pkg-config. | |
11967 | See the pkg-config man page for more details. | |
11968 | ||
11969 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11970 | See \`config.log' for more details" "$LINENO" 5; } | |
11971 | ||
11972 | else | |
11973 | GTKDOC_DEPS_CFLAGS=$pkg_cv_GTKDOC_DEPS_CFLAGS | |
11974 | GTKDOC_DEPS_LIBS=$pkg_cv_GTKDOC_DEPS_LIBS | |
11975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11976 | $as_echo "yes" >&6; } | |
11977 | ||
11978 | fi | |
11979 | fi | |
11980 | fi | |
11981 | ||
11982 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5 | |
11983 | $as_echo_n "checking whether to build gtk-doc documentation... " >&6; } | |
11984 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5 | |
11985 | $as_echo "$enable_gtk_doc" >&6; } | |
11986 | ||
11987 | # Check whether --enable-gtk-doc-html was given. | |
11988 | if test "${enable_gtk_doc_html+set}" = set; then : | |
11989 | enableval=$enable_gtk_doc_html; | |
11990 | else | |
11991 | enable_gtk_doc_html=yes | |
11992 | fi | |
11993 | ||
11994 | # Check whether --enable-gtk-doc-pdf was given. | |
11995 | if test "${enable_gtk_doc_pdf+set}" = set; then : | |
11996 | enableval=$enable_gtk_doc_pdf; | |
11997 | else | |
11998 | enable_gtk_doc_pdf=no | |
11999 | fi | |
12000 | ||
12001 | ||
12002 | if test -z "$GTKDOC_MKPDF"; then | |
12003 | enable_gtk_doc_pdf=no | |
12004 | fi | |
12005 | ||
12006 | ||
12007 | if test x$enable_gtk_doc = xyes; then | |
12008 | ENABLE_GTK_DOC_TRUE= | |
12009 | ENABLE_GTK_DOC_FALSE='#' | |
12010 | else | |
12011 | ENABLE_GTK_DOC_TRUE='#' | |
12012 | ENABLE_GTK_DOC_FALSE= | |
12013 | fi | |
12014 | ||
12015 | if test x$enable_gtk_doc_html = xyes; then | |
12016 | GTK_DOC_BUILD_HTML_TRUE= | |
12017 | GTK_DOC_BUILD_HTML_FALSE='#' | |
12018 | else | |
12019 | GTK_DOC_BUILD_HTML_TRUE='#' | |
12020 | GTK_DOC_BUILD_HTML_FALSE= | |
12021 | fi | |
12022 | ||
12023 | if test x$enable_gtk_doc_pdf = xyes; then | |
12024 | GTK_DOC_BUILD_PDF_TRUE= | |
12025 | GTK_DOC_BUILD_PDF_FALSE='#' | |
12026 | else | |
12027 | GTK_DOC_BUILD_PDF_TRUE='#' | |
12028 | GTK_DOC_BUILD_PDF_FALSE= | |
12029 | fi | |
12030 | ||
12031 | if test -n "$LIBTOOL"; then | |
12032 | GTK_DOC_USE_LIBTOOL_TRUE= | |
12033 | GTK_DOC_USE_LIBTOOL_FALSE='#' | |
12034 | else | |
12035 | GTK_DOC_USE_LIBTOOL_TRUE='#' | |
12036 | GTK_DOC_USE_LIBTOOL_FALSE= | |
12037 | fi | |
12038 | ||
12039 | if test -n "$GTKDOC_REBASE"; then | |
12040 | GTK_DOC_USE_REBASE_TRUE= | |
12041 | GTK_DOC_USE_REBASE_FALSE='#' | |
12042 | else | |
12043 | GTK_DOC_USE_REBASE_TRUE='#' | |
12044 | GTK_DOC_USE_REBASE_FALSE= | |
12045 | fi | |
12046 | ||
12047 | ||
12048 | ||
12049 | #### gcc warning flags | |
12050 | ||
12051 | if test "x$GCC" = "xyes"; then | |
12052 | case " $CFLAGS " in | |
12053 | *[\ \ ]-Wall[\ \ ]*) ;; | |
12054 | *) CFLAGS="$CFLAGS -Wall" ;; | |
12055 | esac | |
12056 | ||
12057 | case " $CFLAGS " in | |
12058 | *[\ \ ]-Wchar-subscripts[\ \ ]*) ;; | |
12059 | *) CFLAGS="$CFLAGS -Wchar-subscripts" ;; | |
12060 | esac | |
12061 | ||
12062 | case " $CFLAGS " in | |
12063 | *[\ \ ]-Wmissing-declarations[\ \ ]*) ;; | |
12064 | *) CFLAGS="$CFLAGS -Wmissing-declarations" ;; | |
12065 | esac | |
12066 | ||
12067 | case " $CFLAGS " in | |
12068 | *[\ \ ]-Wnested-externs[\ \ ]*) ;; | |
12069 | *) CFLAGS="$CFLAGS -Wnested-externs" ;; | |
12070 | esac | |
12071 | ||
12072 | case " $CFLAGS " in | |
12073 | *[\ \ ]-Wpointer-arith[\ \ ]*) ;; | |
12074 | *) CFLAGS="$CFLAGS -Wpointer-arith" ;; | |
12075 | esac | |
12076 | ||
12077 | case " $CFLAGS " in | |
12078 | *[\ \ ]-Wcast-align[\ \ ]*) ;; | |
12079 | *) CFLAGS="$CFLAGS -Wcast-align" ;; | |
12080 | esac | |
12081 | ||
12082 | case " $CFLAGS " in | |
12083 | *[\ \ ]-Wsign-compare[\ \ ]*) ;; | |
12084 | *) CFLAGS="$CFLAGS -Wsign-compare" ;; | |
12085 | esac | |
12086 | ||
12087 | if test "x$enable_ansi" = "xyes"; then | |
12088 | case " $CFLAGS " in | |
12089 | *[\ \ ]-ansi[\ \ ]*) ;; | |
12090 | *) CFLAGS="$CFLAGS -ansi" ;; | |
12091 | esac | |
12092 | ||
12093 | case " $CFLAGS " in | |
12094 | *[\ \ ]-D_POSIX_C_SOURCE*) ;; | |
12095 | *) CFLAGS="$CFLAGS -D_POSIX_C_SOURCE=199309L" ;; | |
12096 | esac | |
12097 | ||
12098 | case " $CFLAGS " in | |
12099 | *[\ \ ]-D_BSD_SOURCE[\ \ ]*) ;; | |
12100 | *) CFLAGS="$CFLAGS -D_BSD_SOURCE" ;; | |
12101 | esac | |
12102 | ||
12103 | case " $CFLAGS " in | |
12104 | *[\ \ ]-pedantic[\ \ ]*) ;; | |
12105 | *) CFLAGS="$CFLAGS -pedantic" ;; | |
12106 | esac | |
12107 | fi | |
12108 | if test x$enable_gcov = xyes; then | |
12109 | case " $CFLAGS " in | |
12110 | *[\ \ ]-fprofile-arcs[\ \ ]*) ;; | |
12111 | *) CFLAGS="$CFLAGS -fprofile-arcs" ;; | |
12112 | esac | |
12113 | case " $CFLAGS " in | |
12114 | *[\ \ ]-ftest-coverage[\ \ ]*) ;; | |
12115 | *) CFLAGS="$CFLAGS -ftest-coverage" ;; | |
12116 | esac | |
12117 | ||
12118 | ## remove optimization | |
12119 | CFLAGS=`echo "$CFLAGS" | sed -e 's/-O[0-9]*//g'` | |
12120 | fi | |
12121 | else | |
12122 | if test x$enable_gcov = xyes; then | |
12123 | as_fn_error $? "--enable-gcov can only be used with gcc" "$LINENO" 5 | |
12124 | fi | |
12125 | fi | |
12126 | ||
12127 | # *************************** | |
12128 | # Check for required packages | |
12129 | # *************************** | |
12130 | ||
12131 | POLKIT_AGENT_REQUIRED=0.97 | |
12132 | POLKIT_GOBJECT_REQUIRED=0.97 | |
12133 | GTK_REQUIRED=3.0.0 | |
12134 | ||
12135 | ||
12136 | 11697 | pkg_failed=no |
12137 | 11698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5 |
12138 | 11699 | $as_echo_n "checking for GTK... " >&6; } |
12228 | 11789 | |
12229 | 11790 | |
12230 | 11791 | pkg_failed=no |
11792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5 | |
11793 | $as_echo_n "checking for GLIB... " >&6; } | |
11794 | ||
11795 | if test -n "$GLIB_CFLAGS"; then | |
11796 | pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS" | |
11797 | elif test -n "$PKG_CONFIG"; then | |
11798 | if test -n "$PKG_CONFIG" && \ | |
11799 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED\""; } >&5 | |
11800 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED") 2>&5 | |
11801 | ac_status=$? | |
11802 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11803 | test $ac_status = 0; }; then | |
11804 | pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null` | |
11805 | else | |
11806 | pkg_failed=yes | |
11807 | fi | |
11808 | else | |
11809 | pkg_failed=untried | |
11810 | fi | |
11811 | if test -n "$GLIB_LIBS"; then | |
11812 | pkg_cv_GLIB_LIBS="$GLIB_LIBS" | |
11813 | elif test -n "$PKG_CONFIG"; then | |
11814 | if test -n "$PKG_CONFIG" && \ | |
11815 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED\""; } >&5 | |
11816 | ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED") 2>&5 | |
11817 | ac_status=$? | |
11818 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11819 | test $ac_status = 0; }; then | |
11820 | pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED" 2>/dev/null` | |
11821 | else | |
11822 | pkg_failed=yes | |
11823 | fi | |
11824 | else | |
11825 | pkg_failed=untried | |
11826 | fi | |
11827 | ||
11828 | ||
11829 | ||
11830 | if test $pkg_failed = yes; then | |
11831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11832 | $as_echo "no" >&6; } | |
11833 | ||
11834 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11835 | _pkg_short_errors_supported=yes | |
11836 | else | |
11837 | _pkg_short_errors_supported=no | |
11838 | fi | |
11839 | if test $_pkg_short_errors_supported = yes; then | |
11840 | GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED" 2>&1` | |
11841 | else | |
11842 | GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED" 2>&1` | |
11843 | fi | |
11844 | # Put the nasty error message in config.log where it belongs | |
11845 | echo "$GLIB_PKG_ERRORS" >&5 | |
11846 | ||
11847 | as_fn_error $? "Package requirements (glib-2.0 >= $GLIB_REQUIRED) were not met: | |
11848 | ||
11849 | $GLIB_PKG_ERRORS | |
11850 | ||
11851 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11852 | installed software in a non-standard prefix. | |
11853 | ||
11854 | Alternatively, you may set the environment variables GLIB_CFLAGS | |
11855 | and GLIB_LIBS to avoid the need to call pkg-config. | |
11856 | See the pkg-config man page for more details." "$LINENO" 5 | |
11857 | ||
11858 | elif test $pkg_failed = untried; then | |
11859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11860 | $as_echo "no" >&6; } | |
11861 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11862 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11863 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
11864 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11865 | path to pkg-config. | |
11866 | ||
11867 | Alternatively, you may set the environment variables GLIB_CFLAGS | |
11868 | and GLIB_LIBS to avoid the need to call pkg-config. | |
11869 | See the pkg-config man page for more details. | |
11870 | ||
11871 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11872 | See \`config.log' for more details" "$LINENO" 5; } | |
11873 | ||
11874 | else | |
11875 | GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS | |
11876 | GLIB_LIBS=$pkg_cv_GLIB_LIBS | |
11877 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11878 | $as_echo "yes" >&6; } | |
11879 | ||
11880 | fi | |
11881 | ||
11882 | ||
11883 | ||
11884 | ||
11885 | pkg_failed=no | |
12231 | 11886 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for POLKIT_AGENT" >&5 |
12232 | 11887 | $as_echo_n "checking for POLKIT_AGENT... " >&6; } |
12233 | 11888 | |
12412 | 12067 | |
12413 | 12068 | fi |
12414 | 12069 | |
12415 | ||
12416 | ||
12417 | # Check whether --enable-examples was given. | |
12418 | if test "${enable_examples+set}" = set; then : | |
12419 | enableval=$enable_examples; | |
12420 | else | |
12421 | enable_examples=yes | |
12422 | fi | |
12423 | ||
12424 | ||
12425 | if test "x$enable_examples" = "xyes"; then | |
12426 | BUILD_EXAMPLES_TRUE= | |
12427 | BUILD_EXAMPLES_FALSE='#' | |
12428 | else | |
12429 | BUILD_EXAMPLES_TRUE='#' | |
12430 | BUILD_EXAMPLES_FALSE= | |
12431 | fi | |
12432 | ||
12433 | ||
12434 | # GObject introspection | |
12435 | # | |
12436 | # Check whether --enable-introspection was given. | |
12437 | if test "${enable_introspection+set}" = set; then : | |
12438 | enableval=$enable_introspection; | |
12439 | else | |
12440 | enable_introspection=yes | |
12441 | fi | |
12442 | ||
12443 | if test "x$enable_introspection" = xyes; then | |
12444 | ||
12445 | pkg_failed=no | |
12446 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INTROSPECTION" >&5 | |
12447 | $as_echo_n "checking for INTROSPECTION... " >&6; } | |
12448 | ||
12449 | if test -n "$INTROSPECTION_CFLAGS"; then | |
12450 | pkg_cv_INTROSPECTION_CFLAGS="$INTROSPECTION_CFLAGS" | |
12451 | elif test -n "$PKG_CONFIG"; then | |
12452 | if test -n "$PKG_CONFIG" && \ | |
12453 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.2\""; } >&5 | |
12454 | ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.2") 2>&5 | |
12455 | ac_status=$? | |
12456 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12457 | test $ac_status = 0; }; then | |
12458 | pkg_cv_INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags "gobject-introspection-1.0 >= 0.6.2" 2>/dev/null` | |
12459 | else | |
12460 | pkg_failed=yes | |
12461 | fi | |
12462 | else | |
12463 | pkg_failed=untried | |
12464 | fi | |
12465 | if test -n "$INTROSPECTION_LIBS"; then | |
12466 | pkg_cv_INTROSPECTION_LIBS="$INTROSPECTION_LIBS" | |
12467 | elif test -n "$PKG_CONFIG"; then | |
12468 | if test -n "$PKG_CONFIG" && \ | |
12469 | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.6.2\""; } >&5 | |
12470 | ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.6.2") 2>&5 | |
12471 | ac_status=$? | |
12472 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12473 | test $ac_status = 0; }; then | |
12474 | pkg_cv_INTROSPECTION_LIBS=`$PKG_CONFIG --libs "gobject-introspection-1.0 >= 0.6.2" 2>/dev/null` | |
12475 | else | |
12476 | pkg_failed=yes | |
12477 | fi | |
12478 | else | |
12479 | pkg_failed=untried | |
12480 | fi | |
12481 | ||
12482 | ||
12483 | ||
12484 | if test $pkg_failed = yes; then | |
12485 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12486 | $as_echo "no" >&6; } | |
12487 | ||
12488 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12489 | _pkg_short_errors_supported=yes | |
12490 | else | |
12491 | _pkg_short_errors_supported=no | |
12492 | fi | |
12493 | if test $_pkg_short_errors_supported = yes; then | |
12494 | INTROSPECTION_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "gobject-introspection-1.0 >= 0.6.2" 2>&1` | |
12495 | else | |
12496 | INTROSPECTION_PKG_ERRORS=`$PKG_CONFIG --print-errors "gobject-introspection-1.0 >= 0.6.2" 2>&1` | |
12497 | fi | |
12498 | # Put the nasty error message in config.log where it belongs | |
12499 | echo "$INTROSPECTION_PKG_ERRORS" >&5 | |
12500 | ||
12501 | as_fn_error $? "Package requirements (gobject-introspection-1.0 >= 0.6.2) were not met: | |
12502 | ||
12503 | $INTROSPECTION_PKG_ERRORS | |
12504 | ||
12505 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12506 | installed software in a non-standard prefix. | |
12507 | ||
12508 | Alternatively, you may set the environment variables INTROSPECTION_CFLAGS | |
12509 | and INTROSPECTION_LIBS to avoid the need to call pkg-config. | |
12510 | See the pkg-config man page for more details." "$LINENO" 5 | |
12511 | ||
12512 | elif test $pkg_failed = untried; then | |
12513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12514 | $as_echo "no" >&6; } | |
12515 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12516 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12517 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
12518 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12519 | path to pkg-config. | |
12520 | ||
12521 | Alternatively, you may set the environment variables INTROSPECTION_CFLAGS | |
12522 | and INTROSPECTION_LIBS to avoid the need to call pkg-config. | |
12523 | See the pkg-config man page for more details. | |
12524 | ||
12525 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12526 | See \`config.log' for more details" "$LINENO" 5; } | |
12527 | ||
12528 | else | |
12529 | INTROSPECTION_CFLAGS=$pkg_cv_INTROSPECTION_CFLAGS | |
12530 | INTROSPECTION_LIBS=$pkg_cv_INTROSPECTION_LIBS | |
12531 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12532 | $as_echo "yes" >&6; } | |
12533 | ||
12534 | fi | |
12535 | ||
12536 | $as_echo "#define ENABLE_INTROSPECTION 1" >>confdefs.h | |
12537 | ||
12538 | G_IR_SCANNER=$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0) | |
12539 | ||
12540 | G_IR_COMPILER=$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0) | |
12541 | ||
12542 | G_IR_GENERATE=$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0) | |
12543 | ||
12544 | #AC_SUBST([GIRDIR], [$($PKG_CONFIG --variable=girdir gobject-introspection-1.0)]) | |
12545 | #AC_SUBST([GIRTYPELIBDIR], [$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)]) | |
12546 | GIRDIR=${datadir}/gir-1.0 | |
12547 | GIRTYPELIBDIR=${libdir}/girepository-1.0 | |
12548 | ||
12549 | ||
12550 | fi | |
12551 | if test "x$enable_introspection" = xyes; then | |
12552 | ENABLE_INTROSPECTION_TRUE= | |
12553 | ENABLE_INTROSPECTION_FALSE='#' | |
12554 | else | |
12555 | ENABLE_INTROSPECTION_TRUE='#' | |
12556 | ENABLE_INTROSPECTION_FALSE= | |
12557 | fi | |
12558 | 12070 | |
12559 | 12071 | |
12560 | 12072 | # ******************** |
13976 | 13488 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. |
13977 | 13489 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
13978 | 13490 | fi |
13979 | if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then | |
13980 | as_fn_error $? "conditional \"ENABLE_GTK_DOC\" was never defined. | |
13981 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13982 | fi | |
13983 | if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then | |
13984 | as_fn_error $? "conditional \"GTK_DOC_BUILD_HTML\" was never defined. | |
13985 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13986 | fi | |
13987 | if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then | |
13988 | as_fn_error $? "conditional \"GTK_DOC_BUILD_PDF\" was never defined. | |
13989 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13990 | fi | |
13991 | if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then | |
13992 | as_fn_error $? "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. | |
13993 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13994 | fi | |
13995 | if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then | |
13996 | as_fn_error $? "conditional \"GTK_DOC_USE_REBASE\" was never defined. | |
13997 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
13998 | fi | |
13999 | if test -z "${BUILD_EXAMPLES_TRUE}" && test -z "${BUILD_EXAMPLES_FALSE}"; then | |
14000 | as_fn_error $? "conditional \"BUILD_EXAMPLES\" was never defined. | |
14001 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14002 | fi | |
14003 | if test -z "${ENABLE_INTROSPECTION_TRUE}" && test -z "${ENABLE_INTROSPECTION_FALSE}"; then | |
14004 | as_fn_error $? "conditional \"ENABLE_INTROSPECTION\" was never defined. | |
14005 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
14006 | fi | |
14007 | 13491 | |
14008 | 13492 | ac_config_commands="$ac_config_commands po/stamp-it" |
14009 | 13493 | |
14417 | 13901 | # report actual input values of CONFIG_FILES etc. instead of their |
14418 | 13902 | # values after options handling. |
14419 | 13903 | ac_log=" |
14420 | This file was extended by polkit-gnome $as_me 0.104, which was | |
13904 | This file was extended by polkit-gnome $as_me 0.105, which was | |
14421 | 13905 | generated by GNU Autoconf 2.68. Invocation command line was |
14422 | 13906 | |
14423 | 13907 | CONFIG_FILES = $CONFIG_FILES |
14483 | 13967 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14484 | 13968 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
14485 | 13969 | ac_cs_version="\\ |
14486 | polkit-gnome config.status 0.104 | |
13970 | polkit-gnome config.status 0.105 | |
14487 | 13971 | configured by $0, generated by GNU Autoconf 2.68, |
14488 | 13972 | with options \\"\$ac_cs_config\\" |
14489 | 13973 | |
16297 | 15781 | compiler: ${CC} |
16298 | 15782 | cflags: ${CFLAGS} |
16299 | 15783 | cppflags: ${CPPFLAGS} |
16300 | introspection: ${enable_introspection} | |
16301 | 15784 | |
16302 | 15785 | Maintainer mode: ${USE_MAINTAINER_MODE} |
16303 | Building api docs: ${enable_gtk_doc} | |
16304 | 15786 | " |
0 | AC_INIT([polkit-gnome],[0.104],[http://lists.freedesktop.org/mailman/listinfo/polkit-devel],[polkit-gnome]) | |
0 | AC_INIT([polkit-gnome],[0.105],[http://lists.freedesktop.org/mailman/listinfo/polkit-devel],[polkit-gnome]) | |
1 | 1 | |
2 | 2 | AM_INIT_AUTOMAKE([1.9 foreign dist-bzip2 no-dist-gzip]) |
3 | 3 | |
4 | 4 | AC_CONFIG_SRCDIR([src]) |
5 | 5 | AC_CONFIG_HEADERS([config.h]) |
6 | AC_CONFIG_MACRO_DIR([m4]) | |
6 | 7 | |
7 | AM_MAINTAINER_MODE | |
8 | AM_MAINTAINER_MODE([enable]) | |
8 | 9 | |
9 | 10 | m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
10 | 11 | |
19 | 20 | AC_SUBST(LT_REVISION) |
20 | 21 | AC_SUBST(LT_AGE) |
21 | 22 | |
23 | # Check for programs | |
22 | 24 | AC_PROG_CC |
23 | AC_ISC_POSIX | |
24 | 25 | AC_HEADER_STDC |
25 | AC_PROG_LIBTOOL | |
26 | 26 | |
27 | # Initialize libtool | |
28 | LT_PREREQ([2.2.6]) | |
29 | LT_INIT | |
27 | 30 | |
28 | 31 | # ***** |
29 | 32 | # GNOME |
30 | 33 | # ***** |
31 | 34 | |
32 | GNOME_COMMON_INIT | |
33 | 35 | GNOME_DEBUG_CHECK |
34 | 36 | GNOME_COMPILE_WARNINGS([maximum]) |
35 | GNOME_MAINTAINER_MODE_DEFINES | |
36 | ||
37 | GTK_DOC_CHECK([1.3]) | |
38 | 37 | |
39 | 38 | #### gcc warning flags |
40 | 39 | |
123 | 122 | POLKIT_AGENT_REQUIRED=0.97 |
124 | 123 | POLKIT_GOBJECT_REQUIRED=0.97 |
125 | 124 | GTK_REQUIRED=3.0.0 |
125 | GLIB_REQUIRED=2.30 | |
126 | 126 | |
127 | 127 | PKG_CHECK_MODULES(GTK, gtk+-3.0 >= $GTK_REQUIRED) |
128 | 128 | AC_SUBST(GTK_CFLAGS) |
129 | 129 | AC_SUBST(GTK_LIBS) |
130 | ||
131 | PKG_CHECK_MODULES(GLIB, glib-2.0 >= $GLIB_REQUIRED) | |
132 | AC_SUBST(GLIB_CFLAGS) | |
133 | AC_SUBST(GLIB_LIBS) | |
130 | 134 | |
131 | 135 | PKG_CHECK_MODULES(POLKIT_AGENT, polkit-agent-1 >= $POLKIT_AGENT_REQUIRED) |
132 | 136 | AC_SUBST(POLKIT_AGENT_CFLAGS) |
135 | 139 | PKG_CHECK_MODULES(POLKIT_GOBJECT, polkit-gobject-1 >= $POLKIT_GOBJECT_REQUIRED) |
136 | 140 | AC_SUBST(POLKIT_GOBJECT_CFLAGS) |
137 | 141 | AC_SUBST(POLKIT_GOBJECT_LIBS) |
138 | ||
139 | AC_ARG_ENABLE([examples], | |
140 | AC_HELP_STRING([--enable-examples], [Build the example programs]),, | |
141 | [enable_examples=yes]) | |
142 | ||
143 | AM_CONDITIONAL(BUILD_EXAMPLES, test "x$enable_examples" = "xyes") | |
144 | ||
145 | # GObject introspection | |
146 | # | |
147 | AC_ARG_ENABLE([introspection], | |
148 | AS_HELP_STRING([--enable-introspection], [enable GObject introspection]), | |
149 | [], [enable_introspection=yes]) | |
150 | if test "x$enable_introspection" = xyes; then | |
151 | PKG_CHECK_MODULES([INTROSPECTION], [gobject-introspection-1.0 >= 0.6.2]) | |
152 | AC_DEFINE([ENABLE_INTROSPECTION], [1], [enable GObject introspection support]) | |
153 | AC_SUBST([G_IR_SCANNER], [$($PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0)]) | |
154 | AC_SUBST([G_IR_COMPILER], [$($PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0)]) | |
155 | AC_SUBST([G_IR_GENERATE], [$($PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0)]) | |
156 | #AC_SUBST([GIRDIR], [$($PKG_CONFIG --variable=girdir gobject-introspection-1.0)]) | |
157 | #AC_SUBST([GIRTYPELIBDIR], [$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)]) | |
158 | GIRDIR=${datadir}/gir-1.0 | |
159 | GIRTYPELIBDIR=${libdir}/girepository-1.0 | |
160 | AC_SUBST(GIRDIR) | |
161 | AC_SUBST(GIRTYPELIBDIR) | |
162 | fi | |
163 | AM_CONDITIONAL([ENABLE_INTROSPECTION], [test "x$enable_introspection" = xyes]) | |
164 | 142 | |
165 | 143 | # ******************** |
166 | 144 | # Internationalisation |
205 | 183 | compiler: ${CC} |
206 | 184 | cflags: ${CFLAGS} |
207 | 185 | cppflags: ${CPPFLAGS} |
208 | introspection: ${enable_introspection} | |
209 | 186 | |
210 | 187 | Maintainer mode: ${USE_MAINTAINER_MODE} |
211 | Building api docs: ${enable_gtk_doc} | |
212 | 188 | " |
0 | ## intltool.m4 - Configure intltool for the target system. -*-Shell-script-*- | |
1 | ## Copyright (C) 2001 Eazel, Inc. | |
2 | ## Author: Maciej Stachowiak <mjs@noisehavoc.org> | |
3 | ## Kenneth Christiansen <kenneth@gnu.org> | |
4 | ## | |
5 | ## This program is free software; you can redistribute it and/or modify | |
6 | ## it under the terms of the GNU General Public License as published by | |
7 | ## the Free Software Foundation; either version 2 of the License, or | |
8 | ## (at your option) any later version. | |
9 | ## | |
10 | ## This program is distributed in the hope that it will be useful, but | |
11 | ## WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 | ## General Public License for more details. | |
14 | ## | |
15 | ## You should have received a copy of the GNU General Public License | |
16 | ## along with this program; if not, write to the Free Software | |
17 | ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | |
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 program. | |
23 | ||
24 | dnl IT_PROG_INTLTOOL([MINIMUM-VERSION], [no-xml]) | |
25 | # serial 40 IT_PROG_INTLTOOL | |
26 | AC_DEFUN([IT_PROG_INTLTOOL], [ | |
27 | AC_PREREQ([2.50])dnl | |
28 | AC_REQUIRE([AM_NLS])dnl | |
29 | ||
30 | case "$am__api_version" in | |
31 | 1.[01234]) | |
32 | AC_MSG_ERROR([Automake 1.5 or newer is required to use intltool]) | |
33 | ;; | |
34 | *) | |
35 | ;; | |
36 | esac | |
37 | ||
38 | if test -n "$1"; then | |
39 | AC_MSG_CHECKING([for intltool >= $1]) | |
40 | ||
41 | INTLTOOL_REQUIRED_VERSION_AS_INT=`echo $1 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | |
42 | INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3` | |
43 | [INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'` | |
44 | ] | |
45 | AC_MSG_RESULT([$INTLTOOL_APPLIED_VERSION found]) | |
46 | test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" || | |
47 | AC_MSG_ERROR([Your intltool is too old. You need intltool $1 or later.]) | |
48 | fi | |
49 | ||
50 | AC_PATH_PROG(INTLTOOL_UPDATE, [intltool-update]) | |
51 | AC_PATH_PROG(INTLTOOL_MERGE, [intltool-merge]) | |
52 | AC_PATH_PROG(INTLTOOL_EXTRACT, [intltool-extract]) | |
53 | if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then | |
54 | AC_MSG_ERROR([The intltool scripts were not found. Please install intltool.]) | |
55 | fi | |
56 | ||
57 | INTLTOOL_DESKTOP_RULE='%.desktop: %.desktop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
58 | INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
59 | INTLTOOL_KEYS_RULE='%.keys: %.keys.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
60 | INTLTOOL_PROP_RULE='%.prop: %.prop.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
61 | INTLTOOL_OAF_RULE='%.oaf: %.oaf.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< [$]@' | |
62 | INTLTOOL_PONG_RULE='%.pong: %.pong.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
63 | INTLTOOL_SERVER_RULE='%.server: %.server.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
64 | INTLTOOL_SHEET_RULE='%.sheet: %.sheet.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
65 | INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
66 | INTLTOOL_UI_RULE='%.ui: %.ui.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
67 | INTLTOOL_XML_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
68 | INTLTOOL_XML_NOMERGE_RULE='%.xml: %.xml.in $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< [$]@' | |
69 | INTLTOOL_XAM_RULE='%.xam: %.xml.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
70 | INTLTOOL_KBD_RULE='%.kbd: %.kbd.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
71 | INTLTOOL_CAVES_RULE='%.caves: %.caves.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
72 | INTLTOOL_SCHEMAS_RULE='%.schemas: %.schemas.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
73 | INTLTOOL_THEME_RULE='%.theme: %.theme.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
74 | INTLTOOL_SERVICE_RULE='%.service: %.service.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
75 | INTLTOOL_POLICY_RULE='%.policy: %.policy.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@' | |
76 | ||
77 | _IT_SUBST(INTLTOOL_DESKTOP_RULE) | |
78 | _IT_SUBST(INTLTOOL_DIRECTORY_RULE) | |
79 | _IT_SUBST(INTLTOOL_KEYS_RULE) | |
80 | _IT_SUBST(INTLTOOL_PROP_RULE) | |
81 | _IT_SUBST(INTLTOOL_OAF_RULE) | |
82 | _IT_SUBST(INTLTOOL_PONG_RULE) | |
83 | _IT_SUBST(INTLTOOL_SERVER_RULE) | |
84 | _IT_SUBST(INTLTOOL_SHEET_RULE) | |
85 | _IT_SUBST(INTLTOOL_SOUNDLIST_RULE) | |
86 | _IT_SUBST(INTLTOOL_UI_RULE) | |
87 | _IT_SUBST(INTLTOOL_XAM_RULE) | |
88 | _IT_SUBST(INTLTOOL_KBD_RULE) | |
89 | _IT_SUBST(INTLTOOL_XML_RULE) | |
90 | _IT_SUBST(INTLTOOL_XML_NOMERGE_RULE) | |
91 | _IT_SUBST(INTLTOOL_CAVES_RULE) | |
92 | _IT_SUBST(INTLTOOL_SCHEMAS_RULE) | |
93 | _IT_SUBST(INTLTOOL_THEME_RULE) | |
94 | _IT_SUBST(INTLTOOL_SERVICE_RULE) | |
95 | _IT_SUBST(INTLTOOL_POLICY_RULE) | |
96 | ||
97 | # Check the gettext tools to make sure they are GNU | |
98 | AC_PATH_PROG(XGETTEXT, xgettext) | |
99 | AC_PATH_PROG(MSGMERGE, msgmerge) | |
100 | AC_PATH_PROG(MSGFMT, msgfmt) | |
101 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | |
102 | if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then | |
103 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | |
104 | fi | |
105 | xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`" | |
106 | mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`" | |
107 | mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`" | |
108 | if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then | |
109 | AC_MSG_ERROR([GNU gettext tools not found; required for intltool]) | |
110 | fi | |
111 | ||
112 | AC_PATH_PROG(INTLTOOL_PERL, perl) | |
113 | if test -z "$INTLTOOL_PERL"; then | |
114 | AC_MSG_ERROR([perl not found]) | |
115 | fi | |
116 | AC_MSG_CHECKING([for perl >= 5.8.1]) | |
117 | $INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1 | |
118 | if test $? -ne 0; then | |
119 | AC_MSG_ERROR([perl 5.8.1 is required for intltool]) | |
120 | else | |
121 | IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`" | |
122 | AC_MSG_RESULT([$IT_PERL_VERSION]) | |
123 | fi | |
124 | if test "x$2" != "xno-xml"; then | |
125 | AC_MSG_CHECKING([for XML::Parser]) | |
126 | if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then | |
127 | AC_MSG_RESULT([ok]) | |
128 | else | |
129 | AC_MSG_ERROR([XML::Parser perl module is required for intltool]) | |
130 | fi | |
131 | fi | |
132 | ||
133 | # Substitute ALL_LINGUAS so we can use it in po/Makefile | |
134 | AC_SUBST(ALL_LINGUAS) | |
135 | ||
136 | # Set DATADIRNAME correctly if it is not set yet | |
137 | # (copied from glib-gettext.m4) | |
138 | if test -z "$DATADIRNAME"; then | |
139 | AC_LINK_IFELSE( | |
140 | [AC_LANG_PROGRAM([[]], | |
141 | [[extern int _nl_msg_cat_cntr; | |
142 | return _nl_msg_cat_cntr]])], | |
143 | [DATADIRNAME=share], | |
144 | [case $host in | |
145 | *-*-solaris*) | |
146 | dnl On Solaris, if bind_textdomain_codeset is in libc, | |
147 | dnl GNU format message catalog is always supported, | |
148 | dnl since both are added to the libc all together. | |
149 | dnl Hence, we'd like to go with DATADIRNAME=share | |
150 | dnl in this case. | |
151 | AC_CHECK_FUNC(bind_textdomain_codeset, | |
152 | [DATADIRNAME=share], [DATADIRNAME=lib]) | |
153 | ;; | |
154 | *) | |
155 | [DATADIRNAME=lib] | |
156 | ;; | |
157 | esac]) | |
158 | fi | |
159 | AC_SUBST(DATADIRNAME) | |
160 | ||
161 | IT_PO_SUBDIR([po]) | |
162 | ||
163 | ]) | |
164 | ||
165 | ||
166 | # IT_PO_SUBDIR(DIRNAME) | |
167 | # --------------------- | |
168 | # All po subdirs have to be declared with this macro; the subdir "po" is | |
169 | # declared by IT_PROG_INTLTOOL. | |
170 | # | |
171 | AC_DEFUN([IT_PO_SUBDIR], | |
172 | [AC_PREREQ([2.53])dnl We use ac_top_srcdir inside AC_CONFIG_COMMANDS. | |
173 | dnl | |
174 | dnl The following CONFIG_COMMANDS should be executed at the very end | |
175 | dnl of config.status. | |
176 | AC_CONFIG_COMMANDS_PRE([ | |
177 | AC_CONFIG_COMMANDS([$1/stamp-it], [ | |
178 | if [ ! grep "^# INTLTOOL_MAKEFILE$" "$1/Makefile.in" > /dev/null ]; then | |
179 | AC_MSG_ERROR([$1/Makefile.in.in was not created by intltoolize.]) | |
180 | fi | |
181 | rm -f "$1/stamp-it" "$1/stamp-it.tmp" "$1/POTFILES" "$1/Makefile.tmp" | |
182 | >"$1/stamp-it.tmp" | |
183 | [sed '/^#/d | |
184 | s/^[[].*] *// | |
185 | /^[ ]*$/d | |
186 | '"s|^| $ac_top_srcdir/|" \ | |
187 | "$srcdir/$1/POTFILES.in" | sed '$!s/$/ \\/' >"$1/POTFILES" | |
188 | ] | |
189 | [sed '/^POTFILES =/,/[^\\]$/ { | |
190 | /^POTFILES =/!d | |
191 | r $1/POTFILES | |
192 | } | |
193 | ' "$1/Makefile.in" >"$1/Makefile"] | |
194 | rm -f "$1/Makefile.tmp" | |
195 | mv "$1/stamp-it.tmp" "$1/stamp-it" | |
196 | ]) | |
197 | ])dnl | |
198 | ]) | |
199 | ||
200 | # _IT_SUBST(VARIABLE) | |
201 | # ------------------- | |
202 | # Abstract macro to do either _AM_SUBST_NOTMAKE or AC_SUBST | |
203 | # | |
204 | AC_DEFUN([_IT_SUBST], | |
205 | [ | |
206 | AC_SUBST([$1]) | |
207 | m4_ifdef([_AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE([$1])]) | |
208 | ] | |
209 | ) | |
210 | ||
211 | # deprecated macros | |
212 | AU_ALIAS([AC_PROG_INTLTOOL], [IT_PROG_INTLTOOL]) | |
213 | # A hint is needed for aclocal from Automake <= 1.9.4: | |
214 | # AC_DEFUN([AC_PROG_INTLTOOL], ...) | |
215 |
0 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | |
1 | # | |
2 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
3 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
4 | # Inc. | |
5 | # Written by Gordon Matzigkeit, 1996 | |
6 | # | |
7 | # This file is free software; the Free Software Foundation gives | |
8 | # unlimited permission to copy and/or distribute it, with or without | |
9 | # modifications, as long as this notice is preserved. | |
10 | ||
11 | m4_define([_LT_COPYING], [dnl | |
12 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
13 | # 2006, 2007, 2008, 2009, 2010 Free Software Foundation, | |
14 | # Inc. | |
15 | # Written by Gordon Matzigkeit, 1996 | |
16 | # | |
17 | # This file is part of GNU Libtool. | |
18 | # | |
19 | # GNU Libtool is free software; you can redistribute it and/or | |
20 | # modify it under the terms of the GNU General Public License as | |
21 | # published by the Free Software Foundation; either version 2 of | |
22 | # the License, or (at your option) any later version. | |
23 | # | |
24 | # As a special exception to the GNU General Public License, | |
25 | # if you distribute this file as part of a program or library that | |
26 | # is built using GNU Libtool, you may include this file under the | |
27 | # same distribution terms that you use for the rest of that program. | |
28 | # | |
29 | # GNU Libtool is distributed in the hope that it will be useful, | |
30 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
31 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
32 | # GNU General Public License for more details. | |
33 | # | |
34 | # You should have received a copy of the GNU General Public License | |
35 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
36 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
37 | # obtained by writing to the Free Software Foundation, Inc., | |
38 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
39 | ]) | |
40 | ||
41 | # serial 57 LT_INIT | |
42 | ||
43 | ||
44 | # LT_PREREQ(VERSION) | |
45 | # ------------------ | |
46 | # Complain and exit if this libtool version is less that VERSION. | |
47 | m4_defun([LT_PREREQ], | |
48 | [m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, | |
49 | [m4_default([$3], | |
50 | [m4_fatal([Libtool version $1 or higher is required], | |
51 | 63)])], | |
52 | [$2])]) | |
53 | ||
54 | ||
55 | # _LT_CHECK_BUILDDIR | |
56 | # ------------------ | |
57 | # Complain if the absolute build directory name contains unusual characters | |
58 | m4_defun([_LT_CHECK_BUILDDIR], | |
59 | [case `pwd` in | |
60 | *\ * | *\ *) | |
61 | AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; | |
62 | esac | |
63 | ]) | |
64 | ||
65 | ||
66 | # LT_INIT([OPTIONS]) | |
67 | # ------------------ | |
68 | AC_DEFUN([LT_INIT], | |
69 | [AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT | |
70 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl | |
71 | AC_BEFORE([$0], [LT_LANG])dnl | |
72 | AC_BEFORE([$0], [LT_OUTPUT])dnl | |
73 | AC_BEFORE([$0], [LTDL_INIT])dnl | |
74 | m4_require([_LT_CHECK_BUILDDIR])dnl | |
75 | ||
76 | dnl Autoconf doesn't catch unexpanded LT_ macros by default: | |
77 | m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl | |
78 | m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl | |
79 | dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 | |
80 | dnl unless we require an AC_DEFUNed macro: | |
81 | AC_REQUIRE([LTOPTIONS_VERSION])dnl | |
82 | AC_REQUIRE([LTSUGAR_VERSION])dnl | |
83 | AC_REQUIRE([LTVERSION_VERSION])dnl | |
84 | AC_REQUIRE([LTOBSOLETE_VERSION])dnl | |
85 | m4_require([_LT_PROG_LTMAIN])dnl | |
86 | ||
87 | _LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) | |
88 | ||
89 | dnl Parse OPTIONS | |
90 | _LT_SET_OPTIONS([$0], [$1]) | |
91 | ||
92 | # This can be used to rebuild libtool when needed | |
93 | LIBTOOL_DEPS="$ltmain" | |
94 | ||
95 | # Always use our own libtool. | |
96 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
97 | AC_SUBST(LIBTOOL)dnl | |
98 | ||
99 | _LT_SETUP | |
100 | ||
101 | # Only expand once: | |
102 | m4_define([LT_INIT]) | |
103 | ])# LT_INIT | |
104 | ||
105 | # Old names: | |
106 | AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) | |
107 | AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) | |
108 | dnl aclocal-1.4 backwards compatibility: | |
109 | dnl AC_DEFUN([AC_PROG_LIBTOOL], []) | |
110 | dnl AC_DEFUN([AM_PROG_LIBTOOL], []) | |
111 | ||
112 | ||
113 | # _LT_CC_BASENAME(CC) | |
114 | # ------------------- | |
115 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | |
116 | m4_defun([_LT_CC_BASENAME], | |
117 | [for cc_temp in $1""; do | |
118 | case $cc_temp in | |
119 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | |
120 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | |
121 | \-*) ;; | |
122 | *) break;; | |
123 | esac | |
124 | done | |
125 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
126 | ]) | |
127 | ||
128 | ||
129 | # _LT_FILEUTILS_DEFAULTS | |
130 | # ---------------------- | |
131 | # It is okay to use these file commands and assume they have been set | |
132 | # sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. | |
133 | m4_defun([_LT_FILEUTILS_DEFAULTS], | |
134 | [: ${CP="cp -f"} | |
135 | : ${MV="mv -f"} | |
136 | : ${RM="rm -f"} | |
137 | ])# _LT_FILEUTILS_DEFAULTS | |
138 | ||
139 | ||
140 | # _LT_SETUP | |
141 | # --------- | |
142 | m4_defun([_LT_SETUP], | |
143 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
144 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
145 | AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl | |
146 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl | |
147 | ||
148 | _LT_DECL([], [host_alias], [0], [The host system])dnl | |
149 | _LT_DECL([], [host], [0])dnl | |
150 | _LT_DECL([], [host_os], [0])dnl | |
151 | dnl | |
152 | _LT_DECL([], [build_alias], [0], [The build system])dnl | |
153 | _LT_DECL([], [build], [0])dnl | |
154 | _LT_DECL([], [build_os], [0])dnl | |
155 | dnl | |
156 | AC_REQUIRE([AC_PROG_CC])dnl | |
157 | AC_REQUIRE([LT_PATH_LD])dnl | |
158 | AC_REQUIRE([LT_PATH_NM])dnl | |
159 | dnl | |
160 | AC_REQUIRE([AC_PROG_LN_S])dnl | |
161 | test -z "$LN_S" && LN_S="ln -s" | |
162 | _LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl | |
163 | dnl | |
164 | AC_REQUIRE([LT_CMD_MAX_LEN])dnl | |
165 | _LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl | |
166 | _LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl | |
167 | dnl | |
168 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
169 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
170 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | |
171 | m4_require([_LT_CMD_RELOAD])dnl | |
172 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl | |
173 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | |
174 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl | |
175 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
176 | m4_require([_LT_WITH_SYSROOT])dnl | |
177 | ||
178 | _LT_CONFIG_LIBTOOL_INIT([ | |
179 | # See if we are running on zsh, and set the options which allow our | |
180 | # commands through without removal of \ escapes INIT. | |
181 | if test -n "\${ZSH_VERSION+set}" ; then | |
182 | setopt NO_GLOB_SUBST | |
183 | fi | |
184 | ]) | |
185 | if test -n "${ZSH_VERSION+set}" ; then | |
186 | setopt NO_GLOB_SUBST | |
187 | fi | |
188 | ||
189 | _LT_CHECK_OBJDIR | |
190 | ||
191 | m4_require([_LT_TAG_COMPILER])dnl | |
192 | ||
193 | case $host_os in | |
194 | aix3*) | |
195 | # AIX sometimes has problems with the GCC collect2 program. For some | |
196 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
197 | # vanish in a puff of smoke. | |
198 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
199 | COLLECT_NAMES= | |
200 | export COLLECT_NAMES | |
201 | fi | |
202 | ;; | |
203 | esac | |
204 | ||
205 | # Global variables: | |
206 | ofile=libtool | |
207 | can_build_shared=yes | |
208 | ||
209 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
210 | # which needs '.lib'). | |
211 | libext=a | |
212 | ||
213 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
214 | ||
215 | old_CC="$CC" | |
216 | old_CFLAGS="$CFLAGS" | |
217 | ||
218 | # Set sane defaults for various variables | |
219 | test -z "$CC" && CC=cc | |
220 | test -z "$LTCC" && LTCC=$CC | |
221 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
222 | test -z "$LD" && LD=ld | |
223 | test -z "$ac_objext" && ac_objext=o | |
224 | ||
225 | _LT_CC_BASENAME([$compiler]) | |
226 | ||
227 | # Only perform the check for file, if the check method requires it | |
228 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
229 | case $deplibs_check_method in | |
230 | file_magic*) | |
231 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
232 | _LT_PATH_MAGIC | |
233 | fi | |
234 | ;; | |
235 | esac | |
236 | ||
237 | # Use C for the default configuration in the libtool script | |
238 | LT_SUPPORTED_TAG([CC]) | |
239 | _LT_LANG_C_CONFIG | |
240 | _LT_LANG_DEFAULT_CONFIG | |
241 | _LT_CONFIG_COMMANDS | |
242 | ])# _LT_SETUP | |
243 | ||
244 | ||
245 | # _LT_PREPARE_SED_QUOTE_VARS | |
246 | # -------------------------- | |
247 | # Define a few sed substitution that help us do robust quoting. | |
248 | m4_defun([_LT_PREPARE_SED_QUOTE_VARS], | |
249 | [# Backslashify metacharacters that are still active within | |
250 | # double-quoted strings. | |
251 | sed_quote_subst='s/\([["`$\\]]\)/\\\1/g' | |
252 | ||
253 | # Same as above, but do not quote variable references. | |
254 | double_quote_subst='s/\([["`\\]]\)/\\\1/g' | |
255 | ||
256 | # Sed substitution to delay expansion of an escaped shell variable in a | |
257 | # double_quote_subst'ed string. | |
258 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
259 | ||
260 | # Sed substitution to delay expansion of an escaped single quote. | |
261 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
262 | ||
263 | # Sed substitution to avoid accidental globbing in evaled expressions | |
264 | no_glob_subst='s/\*/\\\*/g' | |
265 | ]) | |
266 | ||
267 | # _LT_PROG_LTMAIN | |
268 | # --------------- | |
269 | # Note that this code is called both from `configure', and `config.status' | |
270 | # now that we use AC_CONFIG_COMMANDS to generate libtool. Notably, | |
271 | # `config.status' has no value for ac_aux_dir unless we are using Automake, | |
272 | # so we pass a copy along to make sure it has a sensible value anyway. | |
273 | m4_defun([_LT_PROG_LTMAIN], | |
274 | [m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl | |
275 | _LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir']) | |
276 | ltmain="$ac_aux_dir/ltmain.sh" | |
277 | ])# _LT_PROG_LTMAIN | |
278 | ||
279 | ||
280 | ## ------------------------------------- ## | |
281 | ## Accumulate code for creating libtool. ## | |
282 | ## ------------------------------------- ## | |
283 | ||
284 | # So that we can recreate a full libtool script including additional | |
285 | # tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS | |
286 | # in macros and then make a single call at the end using the `libtool' | |
287 | # label. | |
288 | ||
289 | ||
290 | # _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS]) | |
291 | # ---------------------------------------- | |
292 | # Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
293 | m4_define([_LT_CONFIG_LIBTOOL_INIT], | |
294 | [m4_ifval([$1], | |
295 | [m4_append([_LT_OUTPUT_LIBTOOL_INIT], | |
296 | [$1 | |
297 | ])])]) | |
298 | ||
299 | # Initialize. | |
300 | m4_define([_LT_OUTPUT_LIBTOOL_INIT]) | |
301 | ||
302 | ||
303 | # _LT_CONFIG_LIBTOOL([COMMANDS]) | |
304 | # ------------------------------ | |
305 | # Register COMMANDS to be passed to AC_CONFIG_COMMANDS later. | |
306 | m4_define([_LT_CONFIG_LIBTOOL], | |
307 | [m4_ifval([$1], | |
308 | [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS], | |
309 | [$1 | |
310 | ])])]) | |
311 | ||
312 | # Initialize. | |
313 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS]) | |
314 | ||
315 | ||
316 | # _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS]) | |
317 | # ----------------------------------------------------- | |
318 | m4_defun([_LT_CONFIG_SAVE_COMMANDS], | |
319 | [_LT_CONFIG_LIBTOOL([$1]) | |
320 | _LT_CONFIG_LIBTOOL_INIT([$2]) | |
321 | ]) | |
322 | ||
323 | ||
324 | # _LT_FORMAT_COMMENT([COMMENT]) | |
325 | # ----------------------------- | |
326 | # Add leading comment marks to the start of each line, and a trailing | |
327 | # full-stop to the whole comment if one is not present already. | |
328 | m4_define([_LT_FORMAT_COMMENT], | |
329 | [m4_ifval([$1], [ | |
330 | m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])], | |
331 | [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.]) | |
332 | )]) | |
333 | ||
334 | ||
335 | ||
336 | ## ------------------------ ## | |
337 | ## FIXME: Eliminate VARNAME ## | |
338 | ## ------------------------ ## | |
339 | ||
340 | ||
341 | # _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?]) | |
342 | # ------------------------------------------------------------------- | |
343 | # CONFIGNAME is the name given to the value in the libtool script. | |
344 | # VARNAME is the (base) name used in the configure script. | |
345 | # VALUE may be 0, 1 or 2 for a computed quote escaped value based on | |
346 | # VARNAME. Any other value will be used directly. | |
347 | m4_define([_LT_DECL], | |
348 | [lt_if_append_uniq([lt_decl_varnames], [$2], [, ], | |
349 | [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name], | |
350 | [m4_ifval([$1], [$1], [$2])]) | |
351 | lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3]) | |
352 | m4_ifval([$4], | |
353 | [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])]) | |
354 | lt_dict_add_subkey([lt_decl_dict], [$2], | |
355 | [tagged?], [m4_ifval([$5], [yes], [no])])]) | |
356 | ]) | |
357 | ||
358 | ||
359 | # _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION]) | |
360 | # -------------------------------------------------------- | |
361 | m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])]) | |
362 | ||
363 | ||
364 | # lt_decl_tag_varnames([SEPARATOR], [VARNAME1...]) | |
365 | # ------------------------------------------------ | |
366 | m4_define([lt_decl_tag_varnames], | |
367 | [_lt_decl_filter([tagged?], [yes], $@)]) | |
368 | ||
369 | ||
370 | # _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..]) | |
371 | # --------------------------------------------------------- | |
372 | m4_define([_lt_decl_filter], | |
373 | [m4_case([$#], | |
374 | [0], [m4_fatal([$0: too few arguments: $#])], | |
375 | [1], [m4_fatal([$0: too few arguments: $#: $1])], | |
376 | [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)], | |
377 | [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)], | |
378 | [lt_dict_filter([lt_decl_dict], $@)])[]dnl | |
379 | ]) | |
380 | ||
381 | ||
382 | # lt_decl_quote_varnames([SEPARATOR], [VARNAME1...]) | |
383 | # -------------------------------------------------- | |
384 | m4_define([lt_decl_quote_varnames], | |
385 | [_lt_decl_filter([value], [1], $@)]) | |
386 | ||
387 | ||
388 | # lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...]) | |
389 | # --------------------------------------------------- | |
390 | m4_define([lt_decl_dquote_varnames], | |
391 | [_lt_decl_filter([value], [2], $@)]) | |
392 | ||
393 | ||
394 | # lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...]) | |
395 | # --------------------------------------------------- | |
396 | m4_define([lt_decl_varnames_tagged], | |
397 | [m4_assert([$# <= 2])dnl | |
398 | _$0(m4_quote(m4_default([$1], [[, ]])), | |
399 | m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]), | |
400 | m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))]) | |
401 | m4_define([_lt_decl_varnames_tagged], | |
402 | [m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])]) | |
403 | ||
404 | ||
405 | # lt_decl_all_varnames([SEPARATOR], [VARNAME1...]) | |
406 | # ------------------------------------------------ | |
407 | m4_define([lt_decl_all_varnames], | |
408 | [_$0(m4_quote(m4_default([$1], [[, ]])), | |
409 | m4_if([$2], [], | |
410 | m4_quote(lt_decl_varnames), | |
411 | m4_quote(m4_shift($@))))[]dnl | |
412 | ]) | |
413 | m4_define([_lt_decl_all_varnames], | |
414 | [lt_join($@, lt_decl_varnames_tagged([$1], | |
415 | lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl | |
416 | ]) | |
417 | ||
418 | ||
419 | # _LT_CONFIG_STATUS_DECLARE([VARNAME]) | |
420 | # ------------------------------------ | |
421 | # Quote a variable value, and forward it to `config.status' so that its | |
422 | # declaration there will have the same value as in `configure'. VARNAME | |
423 | # must have a single quote delimited value for this to work. | |
424 | m4_define([_LT_CONFIG_STATUS_DECLARE], | |
425 | [$1='`$ECHO "$][$1" | $SED "$delay_single_quote_subst"`']) | |
426 | ||
427 | ||
428 | # _LT_CONFIG_STATUS_DECLARATIONS | |
429 | # ------------------------------ | |
430 | # We delimit libtool config variables with single quotes, so when | |
431 | # we write them to config.status, we have to be sure to quote all | |
432 | # embedded single quotes properly. In configure, this macro expands | |
433 | # each variable declared with _LT_DECL (and _LT_TAGDECL) into: | |
434 | # | |
435 | # <var>='`$ECHO "$<var>" | $SED "$delay_single_quote_subst"`' | |
436 | m4_defun([_LT_CONFIG_STATUS_DECLARATIONS], | |
437 | [m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames), | |
438 | [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])]) | |
439 | ||
440 | ||
441 | # _LT_LIBTOOL_TAGS | |
442 | # ---------------- | |
443 | # Output comment and list of tags supported by the script | |
444 | m4_defun([_LT_LIBTOOL_TAGS], | |
445 | [_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl | |
446 | available_tags="_LT_TAGS"dnl | |
447 | ]) | |
448 | ||
449 | ||
450 | # _LT_LIBTOOL_DECLARE(VARNAME, [TAG]) | |
451 | # ----------------------------------- | |
452 | # Extract the dictionary values for VARNAME (optionally with TAG) and | |
453 | # expand to a commented shell variable setting: | |
454 | # | |
455 | # # Some comment about what VAR is for. | |
456 | # visible_name=$lt_internal_name | |
457 | m4_define([_LT_LIBTOOL_DECLARE], | |
458 | [_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], | |
459 | [description])))[]dnl | |
460 | m4_pushdef([_libtool_name], | |
461 | m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl | |
462 | m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])), | |
463 | [0], [_libtool_name=[$]$1], | |
464 | [1], [_libtool_name=$lt_[]$1], | |
465 | [2], [_libtool_name=$lt_[]$1], | |
466 | [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl | |
467 | m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl | |
468 | ]) | |
469 | ||
470 | ||
471 | # _LT_LIBTOOL_CONFIG_VARS | |
472 | # ----------------------- | |
473 | # Produce commented declarations of non-tagged libtool config variables | |
474 | # suitable for insertion in the LIBTOOL CONFIG section of the `libtool' | |
475 | # script. Tagged libtool config variables (even for the LIBTOOL CONFIG | |
476 | # section) are produced by _LT_LIBTOOL_TAG_VARS. | |
477 | m4_defun([_LT_LIBTOOL_CONFIG_VARS], | |
478 | [m4_foreach([_lt_var], | |
479 | m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)), | |
480 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])]) | |
481 | ||
482 | ||
483 | # _LT_LIBTOOL_TAG_VARS(TAG) | |
484 | # ------------------------- | |
485 | m4_define([_LT_LIBTOOL_TAG_VARS], | |
486 | [m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames), | |
487 | [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])]) | |
488 | ||
489 | ||
490 | # _LT_TAGVAR(VARNAME, [TAGNAME]) | |
491 | # ------------------------------ | |
492 | m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])]) | |
493 | ||
494 | ||
495 | # _LT_CONFIG_COMMANDS | |
496 | # ------------------- | |
497 | # Send accumulated output to $CONFIG_STATUS. Thanks to the lists of | |
498 | # variables for single and double quote escaping we saved from calls | |
499 | # to _LT_DECL, we can put quote escaped variables declarations | |
500 | # into `config.status', and then the shell code to quote escape them in | |
501 | # for loops in `config.status'. Finally, any additional code accumulated | |
502 | # from calls to _LT_CONFIG_LIBTOOL_INIT is expanded. | |
503 | m4_defun([_LT_CONFIG_COMMANDS], | |
504 | [AC_PROVIDE_IFELSE([LT_OUTPUT], | |
505 | dnl If the libtool generation code has been placed in $CONFIG_LT, | |
506 | dnl instead of duplicating it all over again into config.status, | |
507 | dnl then we will have config.status run $CONFIG_LT later, so it | |
508 | dnl needs to know what name is stored there: | |
509 | [AC_CONFIG_COMMANDS([libtool], | |
510 | [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])], | |
511 | dnl If the libtool generation code is destined for config.status, | |
512 | dnl expand the accumulated commands and init code now: | |
513 | [AC_CONFIG_COMMANDS([libtool], | |
514 | [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])]) | |
515 | ])#_LT_CONFIG_COMMANDS | |
516 | ||
517 | ||
518 | # Initialize. | |
519 | m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT], | |
520 | [ | |
521 | ||
522 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
523 | # if CDPATH is set. | |
524 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
525 | ||
526 | sed_quote_subst='$sed_quote_subst' | |
527 | double_quote_subst='$double_quote_subst' | |
528 | delay_variable_subst='$delay_variable_subst' | |
529 | _LT_CONFIG_STATUS_DECLARATIONS | |
530 | LTCC='$LTCC' | |
531 | LTCFLAGS='$LTCFLAGS' | |
532 | compiler='$compiler_DEFAULT' | |
533 | ||
534 | # A function that is used when there is no print builtin or printf. | |
535 | func_fallback_echo () | |
536 | { | |
537 | eval 'cat <<_LTECHO_EOF | |
538 | \$[]1 | |
539 | _LTECHO_EOF' | |
540 | } | |
541 | ||
542 | # Quote evaled strings. | |
543 | for var in lt_decl_all_varnames([[ \ | |
544 | ]], lt_decl_quote_varnames); do | |
545 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
546 | *[[\\\\\\\`\\"\\\$]]*) | |
547 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
548 | ;; | |
549 | *) | |
550 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
551 | ;; | |
552 | esac | |
553 | done | |
554 | ||
555 | # Double-quote double-evaled strings. | |
556 | for var in lt_decl_all_varnames([[ \ | |
557 | ]], lt_decl_dquote_varnames); do | |
558 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
559 | *[[\\\\\\\`\\"\\\$]]*) | |
560 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
561 | ;; | |
562 | *) | |
563 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
564 | ;; | |
565 | esac | |
566 | done | |
567 | ||
568 | _LT_OUTPUT_LIBTOOL_INIT | |
569 | ]) | |
570 | ||
571 | # _LT_GENERATED_FILE_INIT(FILE, [COMMENT]) | |
572 | # ------------------------------------ | |
573 | # Generate a child script FILE with all initialization necessary to | |
574 | # reuse the environment learned by the parent script, and make the | |
575 | # file executable. If COMMENT is supplied, it is inserted after the | |
576 | # `#!' sequence but before initialization text begins. After this | |
577 | # macro, additional text can be appended to FILE to form the body of | |
578 | # the child script. The macro ends with non-zero status if the | |
579 | # file could not be fully written (such as if the disk is full). | |
580 | m4_ifdef([AS_INIT_GENERATED], | |
581 | [m4_defun([_LT_GENERATED_FILE_INIT],[AS_INIT_GENERATED($@)])], | |
582 | [m4_defun([_LT_GENERATED_FILE_INIT], | |
583 | [m4_require([AS_PREPARE])]dnl | |
584 | [m4_pushdef([AS_MESSAGE_LOG_FD])]dnl | |
585 | [lt_write_fail=0 | |
586 | cat >$1 <<_ASEOF || lt_write_fail=1 | |
587 | #! $SHELL | |
588 | # Generated by $as_me. | |
589 | $2 | |
590 | SHELL=\${CONFIG_SHELL-$SHELL} | |
591 | export SHELL | |
592 | _ASEOF | |
593 | cat >>$1 <<\_ASEOF || lt_write_fail=1 | |
594 | AS_SHELL_SANITIZE | |
595 | _AS_PREPARE | |
596 | exec AS_MESSAGE_FD>&1 | |
597 | _ASEOF | |
598 | test $lt_write_fail = 0 && chmod +x $1[]dnl | |
599 | m4_popdef([AS_MESSAGE_LOG_FD])])])# _LT_GENERATED_FILE_INIT | |
600 | ||
601 | # LT_OUTPUT | |
602 | # --------- | |
603 | # This macro allows early generation of the libtool script (before | |
604 | # AC_OUTPUT is called), incase it is used in configure for compilation | |
605 | # tests. | |
606 | AC_DEFUN([LT_OUTPUT], | |
607 | [: ${CONFIG_LT=./config.lt} | |
608 | AC_MSG_NOTICE([creating $CONFIG_LT]) | |
609 | _LT_GENERATED_FILE_INIT(["$CONFIG_LT"], | |
610 | [# Run this file to recreate a libtool stub with the current configuration.]) | |
611 | ||
612 | cat >>"$CONFIG_LT" <<\_LTEOF | |
613 | lt_cl_silent=false | |
614 | exec AS_MESSAGE_LOG_FD>>config.log | |
615 | { | |
616 | echo | |
617 | AS_BOX([Running $as_me.]) | |
618 | } >&AS_MESSAGE_LOG_FD | |
619 | ||
620 | lt_cl_help="\ | |
621 | \`$as_me' creates a local libtool stub from the current configuration, | |
622 | for use in further configure time tests before the real libtool is | |
623 | generated. | |
624 | ||
625 | Usage: $[0] [[OPTIONS]] | |
626 | ||
627 | -h, --help print this help, then exit | |
628 | -V, --version print version number, then exit | |
629 | -q, --quiet do not print progress messages | |
630 | -d, --debug don't remove temporary files | |
631 | ||
632 | Report bugs to <bug-libtool@gnu.org>." | |
633 | ||
634 | lt_cl_version="\ | |
635 | m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl | |
636 | m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION]) | |
637 | configured by $[0], generated by m4_PACKAGE_STRING. | |
638 | ||
639 | Copyright (C) 2010 Free Software Foundation, Inc. | |
640 | This config.lt script is free software; the Free Software Foundation | |
641 | gives unlimited permision to copy, distribute and modify it." | |
642 | ||
643 | while test $[#] != 0 | |
644 | do | |
645 | case $[1] in | |
646 | --version | --v* | -V ) | |
647 | echo "$lt_cl_version"; exit 0 ;; | |
648 | --help | --h* | -h ) | |
649 | echo "$lt_cl_help"; exit 0 ;; | |
650 | --debug | --d* | -d ) | |
651 | debug=: ;; | |
652 | --quiet | --q* | --silent | --s* | -q ) | |
653 | lt_cl_silent=: ;; | |
654 | ||
655 | -*) AC_MSG_ERROR([unrecognized option: $[1] | |
656 | Try \`$[0] --help' for more information.]) ;; | |
657 | ||
658 | *) AC_MSG_ERROR([unrecognized argument: $[1] | |
659 | Try \`$[0] --help' for more information.]) ;; | |
660 | esac | |
661 | shift | |
662 | done | |
663 | ||
664 | if $lt_cl_silent; then | |
665 | exec AS_MESSAGE_FD>/dev/null | |
666 | fi | |
667 | _LTEOF | |
668 | ||
669 | cat >>"$CONFIG_LT" <<_LTEOF | |
670 | _LT_OUTPUT_LIBTOOL_COMMANDS_INIT | |
671 | _LTEOF | |
672 | ||
673 | cat >>"$CONFIG_LT" <<\_LTEOF | |
674 | AC_MSG_NOTICE([creating $ofile]) | |
675 | _LT_OUTPUT_LIBTOOL_COMMANDS | |
676 | AS_EXIT(0) | |
677 | _LTEOF | |
678 | chmod +x "$CONFIG_LT" | |
679 | ||
680 | # configure is writing to config.log, but config.lt does its own redirection, | |
681 | # appending to config.log, which fails on DOS, as config.log is still kept | |
682 | # open by configure. Here we exec the FD to /dev/null, effectively closing | |
683 | # config.log, so it can be properly (re)opened and appended to by config.lt. | |
684 | lt_cl_success=: | |
685 | test "$silent" = yes && | |
686 | lt_config_lt_args="$lt_config_lt_args --quiet" | |
687 | exec AS_MESSAGE_LOG_FD>/dev/null | |
688 | $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false | |
689 | exec AS_MESSAGE_LOG_FD>>config.log | |
690 | $lt_cl_success || AS_EXIT(1) | |
691 | ])# LT_OUTPUT | |
692 | ||
693 | ||
694 | # _LT_CONFIG(TAG) | |
695 | # --------------- | |
696 | # If TAG is the built-in tag, create an initial libtool script with a | |
697 | # default configuration from the untagged config vars. Otherwise add code | |
698 | # to config.status for appending the configuration named by TAG from the | |
699 | # matching tagged config vars. | |
700 | m4_defun([_LT_CONFIG], | |
701 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
702 | _LT_CONFIG_SAVE_COMMANDS([ | |
703 | m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl | |
704 | m4_if(_LT_TAG, [C], [ | |
705 | # See if we are running on zsh, and set the options which allow our | |
706 | # commands through without removal of \ escapes. | |
707 | if test -n "${ZSH_VERSION+set}" ; then | |
708 | setopt NO_GLOB_SUBST | |
709 | fi | |
710 | ||
711 | cfgfile="${ofile}T" | |
712 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
713 | $RM "$cfgfile" | |
714 | ||
715 | cat <<_LT_EOF >> "$cfgfile" | |
716 | #! $SHELL | |
717 | ||
718 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
719 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
720 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
721 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
722 | # | |
723 | _LT_COPYING | |
724 | _LT_LIBTOOL_TAGS | |
725 | ||
726 | # ### BEGIN LIBTOOL CONFIG | |
727 | _LT_LIBTOOL_CONFIG_VARS | |
728 | _LT_LIBTOOL_TAG_VARS | |
729 | # ### END LIBTOOL CONFIG | |
730 | ||
731 | _LT_EOF | |
732 | ||
733 | case $host_os in | |
734 | aix3*) | |
735 | cat <<\_LT_EOF >> "$cfgfile" | |
736 | # AIX sometimes has problems with the GCC collect2 program. For some | |
737 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
738 | # vanish in a puff of smoke. | |
739 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
740 | COLLECT_NAMES= | |
741 | export COLLECT_NAMES | |
742 | fi | |
743 | _LT_EOF | |
744 | ;; | |
745 | esac | |
746 | ||
747 | _LT_PROG_LTMAIN | |
748 | ||
749 | # We use sed instead of cat because bash on DJGPP gets confused if | |
750 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
751 | # text mode, it properly converts lines to CR/LF. This bash problem | |
752 | # is reportedly fixed, but why not run on old versions too? | |
753 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
754 | || (rm -f "$cfgfile"; exit 1) | |
755 | ||
756 | _LT_PROG_REPLACE_SHELLFNS | |
757 | ||
758 | mv -f "$cfgfile" "$ofile" || | |
759 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
760 | chmod +x "$ofile" | |
761 | ], | |
762 | [cat <<_LT_EOF >> "$ofile" | |
763 | ||
764 | dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded | |
765 | dnl in a comment (ie after a #). | |
766 | # ### BEGIN LIBTOOL TAG CONFIG: $1 | |
767 | _LT_LIBTOOL_TAG_VARS(_LT_TAG) | |
768 | # ### END LIBTOOL TAG CONFIG: $1 | |
769 | _LT_EOF | |
770 | ])dnl /m4_if | |
771 | ], | |
772 | [m4_if([$1], [], [ | |
773 | PACKAGE='$PACKAGE' | |
774 | VERSION='$VERSION' | |
775 | TIMESTAMP='$TIMESTAMP' | |
776 | RM='$RM' | |
777 | ofile='$ofile'], []) | |
778 | ])dnl /_LT_CONFIG_SAVE_COMMANDS | |
779 | ])# _LT_CONFIG | |
780 | ||
781 | ||
782 | # LT_SUPPORTED_TAG(TAG) | |
783 | # --------------------- | |
784 | # Trace this macro to discover what tags are supported by the libtool | |
785 | # --tag option, using: | |
786 | # autoconf --trace 'LT_SUPPORTED_TAG:$1' | |
787 | AC_DEFUN([LT_SUPPORTED_TAG], []) | |
788 | ||
789 | ||
790 | # C support is built-in for now | |
791 | m4_define([_LT_LANG_C_enabled], []) | |
792 | m4_define([_LT_TAGS], []) | |
793 | ||
794 | ||
795 | # LT_LANG(LANG) | |
796 | # ------------- | |
797 | # Enable libtool support for the given language if not already enabled. | |
798 | AC_DEFUN([LT_LANG], | |
799 | [AC_BEFORE([$0], [LT_OUTPUT])dnl | |
800 | m4_case([$1], | |
801 | [C], [_LT_LANG(C)], | |
802 | [C++], [_LT_LANG(CXX)], | |
803 | [Java], [_LT_LANG(GCJ)], | |
804 | [Fortran 77], [_LT_LANG(F77)], | |
805 | [Fortran], [_LT_LANG(FC)], | |
806 | [Windows Resource], [_LT_LANG(RC)], | |
807 | [m4_ifdef([_LT_LANG_]$1[_CONFIG], | |
808 | [_LT_LANG($1)], | |
809 | [m4_fatal([$0: unsupported language: "$1"])])])dnl | |
810 | ])# LT_LANG | |
811 | ||
812 | ||
813 | # _LT_LANG(LANGNAME) | |
814 | # ------------------ | |
815 | m4_defun([_LT_LANG], | |
816 | [m4_ifdef([_LT_LANG_]$1[_enabled], [], | |
817 | [LT_SUPPORTED_TAG([$1])dnl | |
818 | m4_append([_LT_TAGS], [$1 ])dnl | |
819 | m4_define([_LT_LANG_]$1[_enabled], [])dnl | |
820 | _LT_LANG_$1_CONFIG($1)])dnl | |
821 | ])# _LT_LANG | |
822 | ||
823 | ||
824 | # _LT_LANG_DEFAULT_CONFIG | |
825 | # ----------------------- | |
826 | m4_defun([_LT_LANG_DEFAULT_CONFIG], | |
827 | [AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
828 | [LT_LANG(CXX)], | |
829 | [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])]) | |
830 | ||
831 | AC_PROVIDE_IFELSE([AC_PROG_F77], | |
832 | [LT_LANG(F77)], | |
833 | [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])]) | |
834 | ||
835 | AC_PROVIDE_IFELSE([AC_PROG_FC], | |
836 | [LT_LANG(FC)], | |
837 | [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])]) | |
838 | ||
839 | dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal | |
840 | dnl pulling things in needlessly. | |
841 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], | |
842 | [LT_LANG(GCJ)], | |
843 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], | |
844 | [LT_LANG(GCJ)], | |
845 | [AC_PROVIDE_IFELSE([LT_PROG_GCJ], | |
846 | [LT_LANG(GCJ)], | |
847 | [m4_ifdef([AC_PROG_GCJ], | |
848 | [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])]) | |
849 | m4_ifdef([A][M_PROG_GCJ], | |
850 | [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])]) | |
851 | m4_ifdef([LT_PROG_GCJ], | |
852 | [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])]) | |
853 | ||
854 | AC_PROVIDE_IFELSE([LT_PROG_RC], | |
855 | [LT_LANG(RC)], | |
856 | [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])]) | |
857 | ])# _LT_LANG_DEFAULT_CONFIG | |
858 | ||
859 | # Obsolete macros: | |
860 | AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)]) | |
861 | AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)]) | |
862 | AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)]) | |
863 | AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)]) | |
864 | AU_DEFUN([AC_LIBTOOL_RC], [LT_LANG(Windows Resource)]) | |
865 | dnl aclocal-1.4 backwards compatibility: | |
866 | dnl AC_DEFUN([AC_LIBTOOL_CXX], []) | |
867 | dnl AC_DEFUN([AC_LIBTOOL_F77], []) | |
868 | dnl AC_DEFUN([AC_LIBTOOL_FC], []) | |
869 | dnl AC_DEFUN([AC_LIBTOOL_GCJ], []) | |
870 | dnl AC_DEFUN([AC_LIBTOOL_RC], []) | |
871 | ||
872 | ||
873 | # _LT_TAG_COMPILER | |
874 | # ---------------- | |
875 | m4_defun([_LT_TAG_COMPILER], | |
876 | [AC_REQUIRE([AC_PROG_CC])dnl | |
877 | ||
878 | _LT_DECL([LTCC], [CC], [1], [A C compiler])dnl | |
879 | _LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl | |
880 | _LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl | |
881 | _LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl | |
882 | ||
883 | # If no C compiler was specified, use CC. | |
884 | LTCC=${LTCC-"$CC"} | |
885 | ||
886 | # If no C compiler flags were specified, use CFLAGS. | |
887 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
888 | ||
889 | # Allow CC to be a program name with arguments. | |
890 | compiler=$CC | |
891 | ])# _LT_TAG_COMPILER | |
892 | ||
893 | ||
894 | # _LT_COMPILER_BOILERPLATE | |
895 | # ------------------------ | |
896 | # Check for compiler boilerplate output or warnings with | |
897 | # the simple compiler test code. | |
898 | m4_defun([_LT_COMPILER_BOILERPLATE], | |
899 | [m4_require([_LT_DECL_SED])dnl | |
900 | ac_outfile=conftest.$ac_objext | |
901 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
902 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
903 | _lt_compiler_boilerplate=`cat conftest.err` | |
904 | $RM conftest* | |
905 | ])# _LT_COMPILER_BOILERPLATE | |
906 | ||
907 | ||
908 | # _LT_LINKER_BOILERPLATE | |
909 | # ---------------------- | |
910 | # Check for linker boilerplate output or warnings with | |
911 | # the simple link test code. | |
912 | m4_defun([_LT_LINKER_BOILERPLATE], | |
913 | [m4_require([_LT_DECL_SED])dnl | |
914 | ac_outfile=conftest.$ac_objext | |
915 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
916 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
917 | _lt_linker_boilerplate=`cat conftest.err` | |
918 | $RM -r conftest* | |
919 | ])# _LT_LINKER_BOILERPLATE | |
920 | ||
921 | # _LT_REQUIRED_DARWIN_CHECKS | |
922 | # ------------------------- | |
923 | m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[ | |
924 | case $host_os in | |
925 | rhapsody* | darwin*) | |
926 | AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:]) | |
927 | AC_CHECK_TOOL([NMEDIT], [nmedit], [:]) | |
928 | AC_CHECK_TOOL([LIPO], [lipo], [:]) | |
929 | AC_CHECK_TOOL([OTOOL], [otool], [:]) | |
930 | AC_CHECK_TOOL([OTOOL64], [otool64], [:]) | |
931 | _LT_DECL([], [DSYMUTIL], [1], | |
932 | [Tool to manipulate archived DWARF debug symbol files on Mac OS X]) | |
933 | _LT_DECL([], [NMEDIT], [1], | |
934 | [Tool to change global to local symbols on Mac OS X]) | |
935 | _LT_DECL([], [LIPO], [1], | |
936 | [Tool to manipulate fat objects and archives on Mac OS X]) | |
937 | _LT_DECL([], [OTOOL], [1], | |
938 | [ldd/readelf like tool for Mach-O binaries on Mac OS X]) | |
939 | _LT_DECL([], [OTOOL64], [1], | |
940 | [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4]) | |
941 | ||
942 | AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod], | |
943 | [lt_cv_apple_cc_single_mod=no | |
944 | if test -z "${LT_MULTI_MODULE}"; then | |
945 | # By default we will add the -single_module flag. You can override | |
946 | # by either setting the environment variable LT_MULTI_MODULE | |
947 | # non-empty at configure time, or by adding -multi_module to the | |
948 | # link flags. | |
949 | rm -rf libconftest.dylib* | |
950 | echo "int foo(void){return 1;}" > conftest.c | |
951 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
952 | -dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD | |
953 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
954 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
955 | _lt_result=$? | |
956 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
957 | lt_cv_apple_cc_single_mod=yes | |
958 | else | |
959 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
960 | fi | |
961 | rm -rf libconftest.dylib* | |
962 | rm -f conftest.* | |
963 | fi]) | |
964 | AC_CACHE_CHECK([for -exported_symbols_list linker flag], | |
965 | [lt_cv_ld_exported_symbols_list], | |
966 | [lt_cv_ld_exported_symbols_list=no | |
967 | save_LDFLAGS=$LDFLAGS | |
968 | echo "_main" > conftest.sym | |
969 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
970 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
971 | [lt_cv_ld_exported_symbols_list=yes], | |
972 | [lt_cv_ld_exported_symbols_list=no]) | |
973 | LDFLAGS="$save_LDFLAGS" | |
974 | ]) | |
975 | AC_CACHE_CHECK([for -force_load linker flag],[lt_cv_ld_force_load], | |
976 | [lt_cv_ld_force_load=no | |
977 | cat > conftest.c << _LT_EOF | |
978 | int forced_loaded() { return 2;} | |
979 | _LT_EOF | |
980 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD | |
981 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD | |
982 | echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD | |
983 | $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD | |
984 | echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD | |
985 | $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD | |
986 | cat > conftest.c << _LT_EOF | |
987 | int main() { return 0;} | |
988 | _LT_EOF | |
989 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&AS_MESSAGE_LOG_FD | |
990 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
991 | _lt_result=$? | |
992 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
993 | lt_cv_ld_force_load=yes | |
994 | else | |
995 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
996 | fi | |
997 | rm -f conftest.err libconftest.a conftest conftest.c | |
998 | rm -rf conftest.dSYM | |
999 | ]) | |
1000 | case $host_os in | |
1001 | rhapsody* | darwin1.[[012]]) | |
1002 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
1003 | darwin1.*) | |
1004 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
1005 | darwin*) # darwin 5.x on | |
1006 | # if running on 10.5 or later, the deployment target defaults | |
1007 | # to the OS version, if on x86, and 10.4, the deployment | |
1008 | # target defaults to 10.4. Don't you love it? | |
1009 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
1010 | 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*) | |
1011 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
1012 | 10.[[012]]*) | |
1013 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
1014 | 10.*) | |
1015 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
1016 | esac | |
1017 | ;; | |
1018 | esac | |
1019 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
1020 | _lt_dar_single_mod='$single_module' | |
1021 | fi | |
1022 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
1023 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
1024 | else | |
1025 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
1026 | fi | |
1027 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
1028 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
1029 | else | |
1030 | _lt_dsymutil= | |
1031 | fi | |
1032 | ;; | |
1033 | esac | |
1034 | ]) | |
1035 | ||
1036 | ||
1037 | # _LT_DARWIN_LINKER_FEATURES | |
1038 | # -------------------------- | |
1039 | # Checks for linker and compiler features on darwin | |
1040 | m4_defun([_LT_DARWIN_LINKER_FEATURES], | |
1041 | [ | |
1042 | m4_require([_LT_REQUIRED_DARWIN_CHECKS]) | |
1043 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
1044 | _LT_TAGVAR(hardcode_direct, $1)=no | |
1045 | _LT_TAGVAR(hardcode_automatic, $1)=yes | |
1046 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
1047 | if test "$lt_cv_ld_force_load" = "yes"; then | |
1048 | _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\"`' | |
1049 | else | |
1050 | _LT_TAGVAR(whole_archive_flag_spec, $1)='' | |
1051 | fi | |
1052 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
1053 | _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined" | |
1054 | case $cc_basename in | |
1055 | ifort*) _lt_dar_can_shared=yes ;; | |
1056 | *) _lt_dar_can_shared=$GCC ;; | |
1057 | esac | |
1058 | if test "$_lt_dar_can_shared" = "yes"; then | |
1059 | output_verbose_link_cmd=func_echo_all | |
1060 | _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}" | |
1061 | _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
1062 | _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}" | |
1063 | _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}" | |
1064 | m4_if([$1], [CXX], | |
1065 | [ if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
1066 | _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}" | |
1067 | _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}" | |
1068 | fi | |
1069 | ],[]) | |
1070 | else | |
1071 | _LT_TAGVAR(ld_shlibs, $1)=no | |
1072 | fi | |
1073 | ]) | |
1074 | ||
1075 | # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | |
1076 | # ---------------------------------- | |
1077 | # Links a minimal program and checks the executable | |
1078 | # for the system default hardcoded library path. In most cases, | |
1079 | # this is /usr/lib:/lib, but when the MPI compilers are used | |
1080 | # the location of the communication and MPI libs are included too. | |
1081 | # If we don't find anything, use the default library path according | |
1082 | # to the aix ld manual. | |
1083 | # Store the results from the different compilers for each TAGNAME. | |
1084 | # Allow to override them for all tags through lt_cv_aix_libpath. | |
1085 | m4_defun([_LT_SYS_MODULE_PATH_AIX], | |
1086 | [m4_require([_LT_DECL_SED])dnl | |
1087 | if test "${lt_cv_aix_libpath+set}" = set; then | |
1088 | aix_libpath=$lt_cv_aix_libpath | |
1089 | else | |
1090 | AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], | |
1091 | [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ | |
1092 | lt_aix_libpath_sed='[ | |
1093 | /Import File Strings/,/^$/ { | |
1094 | /^0/ { | |
1095 | s/^0 *\([^ ]*\) *$/\1/ | |
1096 | p | |
1097 | } | |
1098 | }]' | |
1099 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
1100 | # Check for a 64-bit object if we didn't find anything. | |
1101 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | |
1102 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
1103 | fi],[]) | |
1104 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | |
1105 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" | |
1106 | fi | |
1107 | ]) | |
1108 | aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) | |
1109 | fi | |
1110 | ])# _LT_SYS_MODULE_PATH_AIX | |
1111 | ||
1112 | ||
1113 | # _LT_SHELL_INIT(ARG) | |
1114 | # ------------------- | |
1115 | m4_define([_LT_SHELL_INIT], | |
1116 | [m4_divert_text([M4SH-INIT], [$1 | |
1117 | ])])# _LT_SHELL_INIT | |
1118 | ||
1119 | ||
1120 | ||
1121 | # _LT_PROG_ECHO_BACKSLASH | |
1122 | # ----------------------- | |
1123 | # Find how we can fake an echo command that does not interpret backslash. | |
1124 | # In particular, with Autoconf 2.60 or later we add some code to the start | |
1125 | # of the generated configure script which will find a shell with a builtin | |
1126 | # printf (which we can use as an echo command). | |
1127 | m4_defun([_LT_PROG_ECHO_BACKSLASH], | |
1128 | [ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
1129 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
1130 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
1131 | ||
1132 | AC_MSG_CHECKING([how to print strings]) | |
1133 | # Test print first, because it will be a builtin if present. | |
1134 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
1135 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
1136 | ECHO='print -r --' | |
1137 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
1138 | ECHO='printf %s\n' | |
1139 | else | |
1140 | # Use this function as a fallback that always works. | |
1141 | func_fallback_echo () | |
1142 | { | |
1143 | eval 'cat <<_LTECHO_EOF | |
1144 | $[]1 | |
1145 | _LTECHO_EOF' | |
1146 | } | |
1147 | ECHO='func_fallback_echo' | |
1148 | fi | |
1149 | ||
1150 | # func_echo_all arg... | |
1151 | # Invoke $ECHO with all args, space-separated. | |
1152 | func_echo_all () | |
1153 | { | |
1154 | $ECHO "$*" | |
1155 | } | |
1156 | ||
1157 | case "$ECHO" in | |
1158 | printf*) AC_MSG_RESULT([printf]) ;; | |
1159 | print*) AC_MSG_RESULT([print -r]) ;; | |
1160 | *) AC_MSG_RESULT([cat]) ;; | |
1161 | esac | |
1162 | ||
1163 | m4_ifdef([_AS_DETECT_SUGGESTED], | |
1164 | [_AS_DETECT_SUGGESTED([ | |
1165 | test -n "${ZSH_VERSION+set}${BASH_VERSION+set}" || ( | |
1166 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
1167 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
1168 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
1169 | PATH=/empty FPATH=/empty; export PATH FPATH | |
1170 | test "X`printf %s $ECHO`" = "X$ECHO" \ | |
1171 | || test "X`print -r -- $ECHO`" = "X$ECHO" )])]) | |
1172 | ||
1173 | _LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts]) | |
1174 | _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) | |
1175 | ])# _LT_PROG_ECHO_BACKSLASH | |
1176 | ||
1177 | ||
1178 | # _LT_WITH_SYSROOT | |
1179 | # ---------------- | |
1180 | AC_DEFUN([_LT_WITH_SYSROOT], | |
1181 | [AC_MSG_CHECKING([for sysroot]) | |
1182 | AC_ARG_WITH([sysroot], | |
1183 | [ --with-sysroot[=DIR] Search for dependent libraries within DIR | |
1184 | (or the compiler's sysroot if not specified).], | |
1185 | [], [with_sysroot=no]) | |
1186 | ||
1187 | dnl lt_sysroot will always be passed unquoted. We quote it here | |
1188 | dnl in case the user passed a directory name. | |
1189 | lt_sysroot= | |
1190 | case ${with_sysroot} in #( | |
1191 | yes) | |
1192 | if test "$GCC" = yes; then | |
1193 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
1194 | fi | |
1195 | ;; #( | |
1196 | /*) | |
1197 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
1198 | ;; #( | |
1199 | no|'') | |
1200 | ;; #( | |
1201 | *) | |
1202 | AC_MSG_RESULT([${with_sysroot}]) | |
1203 | AC_MSG_ERROR([The sysroot must be an absolute path.]) | |
1204 | ;; | |
1205 | esac | |
1206 | ||
1207 | AC_MSG_RESULT([${lt_sysroot:-no}]) | |
1208 | _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | |
1209 | [dependent libraries, and in which our libraries should be installed.])]) | |
1210 | ||
1211 | # _LT_ENABLE_LOCK | |
1212 | # --------------- | |
1213 | m4_defun([_LT_ENABLE_LOCK], | |
1214 | [AC_ARG_ENABLE([libtool-lock], | |
1215 | [AS_HELP_STRING([--disable-libtool-lock], | |
1216 | [avoid locking (might break parallel builds)])]) | |
1217 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
1218 | ||
1219 | # Some flags need to be propagated to the compiler or linker for good | |
1220 | # libtool support. | |
1221 | case $host in | |
1222 | ia64-*-hpux*) | |
1223 | # Find out which ABI we are using. | |
1224 | echo 'int i;' > conftest.$ac_ext | |
1225 | if AC_TRY_EVAL(ac_compile); then | |
1226 | case `/usr/bin/file conftest.$ac_objext` in | |
1227 | *ELF-32*) | |
1228 | HPUX_IA64_MODE="32" | |
1229 | ;; | |
1230 | *ELF-64*) | |
1231 | HPUX_IA64_MODE="64" | |
1232 | ;; | |
1233 | esac | |
1234 | fi | |
1235 | rm -rf conftest* | |
1236 | ;; | |
1237 | *-*-irix6*) | |
1238 | # Find out which ABI we are using. | |
1239 | echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext | |
1240 | if AC_TRY_EVAL(ac_compile); then | |
1241 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
1242 | case `/usr/bin/file conftest.$ac_objext` in | |
1243 | *32-bit*) | |
1244 | LD="${LD-ld} -melf32bsmip" | |
1245 | ;; | |
1246 | *N32*) | |
1247 | LD="${LD-ld} -melf32bmipn32" | |
1248 | ;; | |
1249 | *64-bit*) | |
1250 | LD="${LD-ld} -melf64bmip" | |
1251 | ;; | |
1252 | esac | |
1253 | else | |
1254 | case `/usr/bin/file conftest.$ac_objext` in | |
1255 | *32-bit*) | |
1256 | LD="${LD-ld} -32" | |
1257 | ;; | |
1258 | *N32*) | |
1259 | LD="${LD-ld} -n32" | |
1260 | ;; | |
1261 | *64-bit*) | |
1262 | LD="${LD-ld} -64" | |
1263 | ;; | |
1264 | esac | |
1265 | fi | |
1266 | fi | |
1267 | rm -rf conftest* | |
1268 | ;; | |
1269 | ||
1270 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
1271 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
1272 | # Find out which ABI we are using. | |
1273 | echo 'int i;' > conftest.$ac_ext | |
1274 | if AC_TRY_EVAL(ac_compile); then | |
1275 | case `/usr/bin/file conftest.o` in | |
1276 | *32-bit*) | |
1277 | case $host in | |
1278 | x86_64-*kfreebsd*-gnu) | |
1279 | LD="${LD-ld} -m elf_i386_fbsd" | |
1280 | ;; | |
1281 | x86_64-*linux*) | |
1282 | LD="${LD-ld} -m elf_i386" | |
1283 | ;; | |
1284 | ppc64-*linux*|powerpc64-*linux*) | |
1285 | LD="${LD-ld} -m elf32ppclinux" | |
1286 | ;; | |
1287 | s390x-*linux*) | |
1288 | LD="${LD-ld} -m elf_s390" | |
1289 | ;; | |
1290 | sparc64-*linux*) | |
1291 | LD="${LD-ld} -m elf32_sparc" | |
1292 | ;; | |
1293 | esac | |
1294 | ;; | |
1295 | *64-bit*) | |
1296 | case $host in | |
1297 | x86_64-*kfreebsd*-gnu) | |
1298 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
1299 | ;; | |
1300 | x86_64-*linux*) | |
1301 | LD="${LD-ld} -m elf_x86_64" | |
1302 | ;; | |
1303 | ppc*-*linux*|powerpc*-*linux*) | |
1304 | LD="${LD-ld} -m elf64ppc" | |
1305 | ;; | |
1306 | s390*-*linux*|s390*-*tpf*) | |
1307 | LD="${LD-ld} -m elf64_s390" | |
1308 | ;; | |
1309 | sparc*-*linux*) | |
1310 | LD="${LD-ld} -m elf64_sparc" | |
1311 | ;; | |
1312 | esac | |
1313 | ;; | |
1314 | esac | |
1315 | fi | |
1316 | rm -rf conftest* | |
1317 | ;; | |
1318 | ||
1319 | *-*-sco3.2v5*) | |
1320 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
1321 | SAVE_CFLAGS="$CFLAGS" | |
1322 | CFLAGS="$CFLAGS -belf" | |
1323 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | |
1324 | [AC_LANG_PUSH(C) | |
1325 | AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | |
1326 | AC_LANG_POP]) | |
1327 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
1328 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
1329 | CFLAGS="$SAVE_CFLAGS" | |
1330 | fi | |
1331 | ;; | |
1332 | sparc*-*solaris*) | |
1333 | # Find out which ABI we are using. | |
1334 | echo 'int i;' > conftest.$ac_ext | |
1335 | if AC_TRY_EVAL(ac_compile); then | |
1336 | case `/usr/bin/file conftest.o` in | |
1337 | *64-bit*) | |
1338 | case $lt_cv_prog_gnu_ld in | |
1339 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
1340 | *) | |
1341 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
1342 | LD="${LD-ld} -64" | |
1343 | fi | |
1344 | ;; | |
1345 | esac | |
1346 | ;; | |
1347 | esac | |
1348 | fi | |
1349 | rm -rf conftest* | |
1350 | ;; | |
1351 | esac | |
1352 | ||
1353 | need_locks="$enable_libtool_lock" | |
1354 | ])# _LT_ENABLE_LOCK | |
1355 | ||
1356 | ||
1357 | # _LT_PROG_AR | |
1358 | # ----------- | |
1359 | m4_defun([_LT_PROG_AR], | |
1360 | [AC_CHECK_TOOLS(AR, [ar], false) | |
1361 | : ${AR=ar} | |
1362 | : ${AR_FLAGS=cru} | |
1363 | _LT_DECL([], [AR], [1], [The archiver]) | |
1364 | _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) | |
1365 | ||
1366 | AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | |
1367 | [lt_cv_ar_at_file=no | |
1368 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM], | |
1369 | [echo conftest.$ac_objext > conftest.lst | |
1370 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' | |
1371 | AC_TRY_EVAL([lt_ar_try]) | |
1372 | if test "$ac_status" -eq 0; then | |
1373 | # Ensure the archiver fails upon bogus file names. | |
1374 | rm -f conftest.$ac_objext libconftest.a | |
1375 | AC_TRY_EVAL([lt_ar_try]) | |
1376 | if test "$ac_status" -ne 0; then | |
1377 | lt_cv_ar_at_file=@ | |
1378 | fi | |
1379 | fi | |
1380 | rm -f conftest.* libconftest.a | |
1381 | ]) | |
1382 | ]) | |
1383 | ||
1384 | if test "x$lt_cv_ar_at_file" = xno; then | |
1385 | archiver_list_spec= | |
1386 | else | |
1387 | archiver_list_spec=$lt_cv_ar_at_file | |
1388 | fi | |
1389 | _LT_DECL([], [archiver_list_spec], [1], | |
1390 | [How to feed a file listing to the archiver]) | |
1391 | ])# _LT_PROG_AR | |
1392 | ||
1393 | ||
1394 | # _LT_CMD_OLD_ARCHIVE | |
1395 | # ------------------- | |
1396 | m4_defun([_LT_CMD_OLD_ARCHIVE], | |
1397 | [_LT_PROG_AR | |
1398 | ||
1399 | AC_CHECK_TOOL(STRIP, strip, :) | |
1400 | test -z "$STRIP" && STRIP=: | |
1401 | _LT_DECL([], [STRIP], [1], [A symbol stripping program]) | |
1402 | ||
1403 | AC_CHECK_TOOL(RANLIB, ranlib, :) | |
1404 | test -z "$RANLIB" && RANLIB=: | |
1405 | _LT_DECL([], [RANLIB], [1], | |
1406 | [Commands used to install an old-style archive]) | |
1407 | ||
1408 | # Determine commands to create old-style static archives. | |
1409 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
1410 | old_postinstall_cmds='chmod 644 $oldlib' | |
1411 | old_postuninstall_cmds= | |
1412 | ||
1413 | if test -n "$RANLIB"; then | |
1414 | case $host_os in | |
1415 | openbsd*) | |
1416 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
1417 | ;; | |
1418 | *) | |
1419 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
1420 | ;; | |
1421 | esac | |
1422 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
1423 | fi | |
1424 | ||
1425 | case $host_os in | |
1426 | darwin*) | |
1427 | lock_old_archive_extraction=yes ;; | |
1428 | *) | |
1429 | lock_old_archive_extraction=no ;; | |
1430 | esac | |
1431 | _LT_DECL([], [old_postinstall_cmds], [2]) | |
1432 | _LT_DECL([], [old_postuninstall_cmds], [2]) | |
1433 | _LT_TAGDECL([], [old_archive_cmds], [2], | |
1434 | [Commands used to build an old-style archive]) | |
1435 | _LT_DECL([], [lock_old_archive_extraction], [0], | |
1436 | [Whether to use a lock for old archive extraction]) | |
1437 | ])# _LT_CMD_OLD_ARCHIVE | |
1438 | ||
1439 | ||
1440 | # _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
1441 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | |
1442 | # ---------------------------------------------------------------- | |
1443 | # Check whether the given compiler option works | |
1444 | AC_DEFUN([_LT_COMPILER_OPTION], | |
1445 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
1446 | m4_require([_LT_DECL_SED])dnl | |
1447 | AC_CACHE_CHECK([$1], [$2], | |
1448 | [$2=no | |
1449 | m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | |
1450 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1451 | lt_compiler_flag="$3" | |
1452 | # Insert the option either (1) after the last *FLAGS variable, or | |
1453 | # (2) before a word containing "conftest.", or (3) at the end. | |
1454 | # Note that $ac_compile itself does not contain backslashes and begins | |
1455 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
1456 | # The option is referenced via a variable to avoid confusing sed. | |
1457 | lt_compile=`echo "$ac_compile" | $SED \ | |
1458 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
1459 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | |
1460 | -e 's:$: $lt_compiler_flag:'` | |
1461 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
1462 | (eval "$lt_compile" 2>conftest.err) | |
1463 | ac_status=$? | |
1464 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
1465 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
1466 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
1467 | # The compiler can only warn and ignore the option if not recognized | |
1468 | # So say no if there are warnings other than the usual output. | |
1469 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
1470 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
1471 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
1472 | $2=yes | |
1473 | fi | |
1474 | fi | |
1475 | $RM conftest* | |
1476 | ]) | |
1477 | ||
1478 | if test x"[$]$2" = xyes; then | |
1479 | m4_if([$5], , :, [$5]) | |
1480 | else | |
1481 | m4_if([$6], , :, [$6]) | |
1482 | fi | |
1483 | ])# _LT_COMPILER_OPTION | |
1484 | ||
1485 | # Old name: | |
1486 | AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION]) | |
1487 | dnl aclocal-1.4 backwards compatibility: | |
1488 | dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], []) | |
1489 | ||
1490 | ||
1491 | # _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | |
1492 | # [ACTION-SUCCESS], [ACTION-FAILURE]) | |
1493 | # ---------------------------------------------------- | |
1494 | # Check whether the given linker option works | |
1495 | AC_DEFUN([_LT_LINKER_OPTION], | |
1496 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
1497 | m4_require([_LT_DECL_SED])dnl | |
1498 | AC_CACHE_CHECK([$1], [$2], | |
1499 | [$2=no | |
1500 | save_LDFLAGS="$LDFLAGS" | |
1501 | LDFLAGS="$LDFLAGS $3" | |
1502 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
1503 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
1504 | # The linker can only warn and ignore the option if not recognized | |
1505 | # So say no if there are warnings | |
1506 | if test -s conftest.err; then | |
1507 | # Append any errors to the config.log. | |
1508 | cat conftest.err 1>&AS_MESSAGE_LOG_FD | |
1509 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
1510 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
1511 | if diff conftest.exp conftest.er2 >/dev/null; then | |
1512 | $2=yes | |
1513 | fi | |
1514 | else | |
1515 | $2=yes | |
1516 | fi | |
1517 | fi | |
1518 | $RM -r conftest* | |
1519 | LDFLAGS="$save_LDFLAGS" | |
1520 | ]) | |
1521 | ||
1522 | if test x"[$]$2" = xyes; then | |
1523 | m4_if([$4], , :, [$4]) | |
1524 | else | |
1525 | m4_if([$5], , :, [$5]) | |
1526 | fi | |
1527 | ])# _LT_LINKER_OPTION | |
1528 | ||
1529 | # Old name: | |
1530 | AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION]) | |
1531 | dnl aclocal-1.4 backwards compatibility: | |
1532 | dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], []) | |
1533 | ||
1534 | ||
1535 | # LT_CMD_MAX_LEN | |
1536 | #--------------- | |
1537 | AC_DEFUN([LT_CMD_MAX_LEN], | |
1538 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
1539 | # find the maximum length of command line arguments | |
1540 | AC_MSG_CHECKING([the maximum length of command line arguments]) | |
1541 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | |
1542 | i=0 | |
1543 | teststring="ABCD" | |
1544 | ||
1545 | case $build_os in | |
1546 | msdosdjgpp*) | |
1547 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
1548 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
1549 | # during glob expansion). Even if it were fixed, the result of this | |
1550 | # check would be larger than it should be. | |
1551 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
1552 | ;; | |
1553 | ||
1554 | gnu*) | |
1555 | # Under GNU Hurd, this test is not required because there is | |
1556 | # no limit to the length of command line arguments. | |
1557 | # Libtool will interpret -1 as no limit whatsoever | |
1558 | lt_cv_sys_max_cmd_len=-1; | |
1559 | ;; | |
1560 | ||
1561 | cygwin* | mingw* | cegcc*) | |
1562 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
1563 | # about 5 minutes as the teststring grows exponentially. | |
1564 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
1565 | # you end up with a "frozen" computer, even though with patience | |
1566 | # the test eventually succeeds (with a max line length of 256k). | |
1567 | # Instead, let's just punt: use the minimum linelength reported by | |
1568 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
1569 | lt_cv_sys_max_cmd_len=8192; | |
1570 | ;; | |
1571 | ||
1572 | mint*) | |
1573 | # On MiNT this can take a long time and run out of memory. | |
1574 | lt_cv_sys_max_cmd_len=8192; | |
1575 | ;; | |
1576 | ||
1577 | amigaos*) | |
1578 | # On AmigaOS with pdksh, this test takes hours, literally. | |
1579 | # So we just punt and use a minimum line length of 8192. | |
1580 | lt_cv_sys_max_cmd_len=8192; | |
1581 | ;; | |
1582 | ||
1583 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
1584 | # This has been around since 386BSD, at least. Likely further. | |
1585 | if test -x /sbin/sysctl; then | |
1586 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
1587 | elif test -x /usr/sbin/sysctl; then | |
1588 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
1589 | else | |
1590 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
1591 | fi | |
1592 | # And add a safety zone | |
1593 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
1594 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
1595 | ;; | |
1596 | ||
1597 | interix*) | |
1598 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
1599 | lt_cv_sys_max_cmd_len=196608 | |
1600 | ;; | |
1601 | ||
1602 | osf*) | |
1603 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
1604 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
1605 | # nice to cause kernel panics so lets avoid the loop below. | |
1606 | # First set a reasonable default. | |
1607 | lt_cv_sys_max_cmd_len=16384 | |
1608 | # | |
1609 | if test -x /sbin/sysconfig; then | |
1610 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
1611 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
1612 | esac | |
1613 | fi | |
1614 | ;; | |
1615 | sco3.2v5*) | |
1616 | lt_cv_sys_max_cmd_len=102400 | |
1617 | ;; | |
1618 | sysv5* | sco5v6* | sysv4.2uw2*) | |
1619 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
1620 | if test -n "$kargmax"; then | |
1621 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | |
1622 | else | |
1623 | lt_cv_sys_max_cmd_len=32768 | |
1624 | fi | |
1625 | ;; | |
1626 | *) | |
1627 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
1628 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
1629 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
1630 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
1631 | else | |
1632 | # Make teststring a little bigger before we do anything with it. | |
1633 | # a 1K string should be a reasonable start. | |
1634 | for i in 1 2 3 4 5 6 7 8 ; do | |
1635 | teststring=$teststring$teststring | |
1636 | done | |
1637 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
1638 | # If test is not a shell built-in, we'll probably end up computing a | |
1639 | # maximum length that is only half of the actual maximum length, but | |
1640 | # we can't tell. | |
1641 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
1642 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
1643 | test $i != 17 # 1/2 MB should be enough | |
1644 | do | |
1645 | i=`expr $i + 1` | |
1646 | teststring=$teststring$teststring | |
1647 | done | |
1648 | # Only check the string length outside the loop. | |
1649 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
1650 | teststring= | |
1651 | # Add a significant safety factor because C++ compilers can tack on | |
1652 | # massive amounts of additional arguments before passing them to the | |
1653 | # linker. It appears as though 1/2 is a usable value. | |
1654 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
1655 | fi | |
1656 | ;; | |
1657 | esac | |
1658 | ]) | |
1659 | if test -n $lt_cv_sys_max_cmd_len ; then | |
1660 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | |
1661 | else | |
1662 | AC_MSG_RESULT(none) | |
1663 | fi | |
1664 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
1665 | _LT_DECL([], [max_cmd_len], [0], | |
1666 | [What is the maximum length of a command?]) | |
1667 | ])# LT_CMD_MAX_LEN | |
1668 | ||
1669 | # Old name: | |
1670 | AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN]) | |
1671 | dnl aclocal-1.4 backwards compatibility: | |
1672 | dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], []) | |
1673 | ||
1674 | ||
1675 | # _LT_HEADER_DLFCN | |
1676 | # ---------------- | |
1677 | m4_defun([_LT_HEADER_DLFCN], | |
1678 | [AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl | |
1679 | ])# _LT_HEADER_DLFCN | |
1680 | ||
1681 | ||
1682 | # _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | |
1683 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | |
1684 | # ---------------------------------------------------------------- | |
1685 | m4_defun([_LT_TRY_DLOPEN_SELF], | |
1686 | [m4_require([_LT_HEADER_DLFCN])dnl | |
1687 | if test "$cross_compiling" = yes; then : | |
1688 | [$4] | |
1689 | else | |
1690 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
1691 | lt_status=$lt_dlunknown | |
1692 | cat > conftest.$ac_ext <<_LT_EOF | |
1693 | [#line $LINENO "configure" | |
1694 | #include "confdefs.h" | |
1695 | ||
1696 | #if HAVE_DLFCN_H | |
1697 | #include <dlfcn.h> | |
1698 | #endif | |
1699 | ||
1700 | #include <stdio.h> | |
1701 | ||
1702 | #ifdef RTLD_GLOBAL | |
1703 | # define LT_DLGLOBAL RTLD_GLOBAL | |
1704 | #else | |
1705 | # ifdef DL_GLOBAL | |
1706 | # define LT_DLGLOBAL DL_GLOBAL | |
1707 | # else | |
1708 | # define LT_DLGLOBAL 0 | |
1709 | # endif | |
1710 | #endif | |
1711 | ||
1712 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
1713 | find out it does not work in some platform. */ | |
1714 | #ifndef LT_DLLAZY_OR_NOW | |
1715 | # ifdef RTLD_LAZY | |
1716 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
1717 | # else | |
1718 | # ifdef DL_LAZY | |
1719 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
1720 | # else | |
1721 | # ifdef RTLD_NOW | |
1722 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
1723 | # else | |
1724 | # ifdef DL_NOW | |
1725 | # define LT_DLLAZY_OR_NOW DL_NOW | |
1726 | # else | |
1727 | # define LT_DLLAZY_OR_NOW 0 | |
1728 | # endif | |
1729 | # endif | |
1730 | # endif | |
1731 | # endif | |
1732 | #endif | |
1733 | ||
1734 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
1735 | correspondingly for the symbols needed. */ | |
1736 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
1737 | int fnord () __attribute__((visibility("default"))); | |
1738 | #endif | |
1739 | ||
1740 | int fnord () { return 42; } | |
1741 | int main () | |
1742 | { | |
1743 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
1744 | int status = $lt_dlunknown; | |
1745 | ||
1746 | if (self) | |
1747 | { | |
1748 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
1749 | else | |
1750 | { | |
1751 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
1752 | else puts (dlerror ()); | |
1753 | } | |
1754 | /* dlclose (self); */ | |
1755 | } | |
1756 | else | |
1757 | puts (dlerror ()); | |
1758 | ||
1759 | return status; | |
1760 | }] | |
1761 | _LT_EOF | |
1762 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | |
1763 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | |
1764 | lt_status=$? | |
1765 | case x$lt_status in | |
1766 | x$lt_dlno_uscore) $1 ;; | |
1767 | x$lt_dlneed_uscore) $2 ;; | |
1768 | x$lt_dlunknown|x*) $3 ;; | |
1769 | esac | |
1770 | else : | |
1771 | # compilation failed | |
1772 | $3 | |
1773 | fi | |
1774 | fi | |
1775 | rm -fr conftest* | |
1776 | ])# _LT_TRY_DLOPEN_SELF | |
1777 | ||
1778 | ||
1779 | # LT_SYS_DLOPEN_SELF | |
1780 | # ------------------ | |
1781 | AC_DEFUN([LT_SYS_DLOPEN_SELF], | |
1782 | [m4_require([_LT_HEADER_DLFCN])dnl | |
1783 | if test "x$enable_dlopen" != xyes; then | |
1784 | enable_dlopen=unknown | |
1785 | enable_dlopen_self=unknown | |
1786 | enable_dlopen_self_static=unknown | |
1787 | else | |
1788 | lt_cv_dlopen=no | |
1789 | lt_cv_dlopen_libs= | |
1790 | ||
1791 | case $host_os in | |
1792 | beos*) | |
1793 | lt_cv_dlopen="load_add_on" | |
1794 | lt_cv_dlopen_libs= | |
1795 | lt_cv_dlopen_self=yes | |
1796 | ;; | |
1797 | ||
1798 | mingw* | pw32* | cegcc*) | |
1799 | lt_cv_dlopen="LoadLibrary" | |
1800 | lt_cv_dlopen_libs= | |
1801 | ;; | |
1802 | ||
1803 | cygwin*) | |
1804 | lt_cv_dlopen="dlopen" | |
1805 | lt_cv_dlopen_libs= | |
1806 | ;; | |
1807 | ||
1808 | darwin*) | |
1809 | # if libdl is installed we need to link against it | |
1810 | AC_CHECK_LIB([dl], [dlopen], | |
1811 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | |
1812 | lt_cv_dlopen="dyld" | |
1813 | lt_cv_dlopen_libs= | |
1814 | lt_cv_dlopen_self=yes | |
1815 | ]) | |
1816 | ;; | |
1817 | ||
1818 | *) | |
1819 | AC_CHECK_FUNC([shl_load], | |
1820 | [lt_cv_dlopen="shl_load"], | |
1821 | [AC_CHECK_LIB([dld], [shl_load], | |
1822 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"], | |
1823 | [AC_CHECK_FUNC([dlopen], | |
1824 | [lt_cv_dlopen="dlopen"], | |
1825 | [AC_CHECK_LIB([dl], [dlopen], | |
1826 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | |
1827 | [AC_CHECK_LIB([svld], [dlopen], | |
1828 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | |
1829 | [AC_CHECK_LIB([dld], [dld_link], | |
1830 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"]) | |
1831 | ]) | |
1832 | ]) | |
1833 | ]) | |
1834 | ]) | |
1835 | ]) | |
1836 | ;; | |
1837 | esac | |
1838 | ||
1839 | if test "x$lt_cv_dlopen" != xno; then | |
1840 | enable_dlopen=yes | |
1841 | else | |
1842 | enable_dlopen=no | |
1843 | fi | |
1844 | ||
1845 | case $lt_cv_dlopen in | |
1846 | dlopen) | |
1847 | save_CPPFLAGS="$CPPFLAGS" | |
1848 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
1849 | ||
1850 | save_LDFLAGS="$LDFLAGS" | |
1851 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
1852 | ||
1853 | save_LIBS="$LIBS" | |
1854 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
1855 | ||
1856 | AC_CACHE_CHECK([whether a program can dlopen itself], | |
1857 | lt_cv_dlopen_self, [dnl | |
1858 | _LT_TRY_DLOPEN_SELF( | |
1859 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | |
1860 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | |
1861 | ]) | |
1862 | ||
1863 | if test "x$lt_cv_dlopen_self" = xyes; then | |
1864 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
1865 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | |
1866 | lt_cv_dlopen_self_static, [dnl | |
1867 | _LT_TRY_DLOPEN_SELF( | |
1868 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | |
1869 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | |
1870 | ]) | |
1871 | fi | |
1872 | ||
1873 | CPPFLAGS="$save_CPPFLAGS" | |
1874 | LDFLAGS="$save_LDFLAGS" | |
1875 | LIBS="$save_LIBS" | |
1876 | ;; | |
1877 | esac | |
1878 | ||
1879 | case $lt_cv_dlopen_self in | |
1880 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
1881 | *) enable_dlopen_self=unknown ;; | |
1882 | esac | |
1883 | ||
1884 | case $lt_cv_dlopen_self_static in | |
1885 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
1886 | *) enable_dlopen_self_static=unknown ;; | |
1887 | esac | |
1888 | fi | |
1889 | _LT_DECL([dlopen_support], [enable_dlopen], [0], | |
1890 | [Whether dlopen is supported]) | |
1891 | _LT_DECL([dlopen_self], [enable_dlopen_self], [0], | |
1892 | [Whether dlopen of programs is supported]) | |
1893 | _LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0], | |
1894 | [Whether dlopen of statically linked programs is supported]) | |
1895 | ])# LT_SYS_DLOPEN_SELF | |
1896 | ||
1897 | # Old name: | |
1898 | AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF]) | |
1899 | dnl aclocal-1.4 backwards compatibility: | |
1900 | dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], []) | |
1901 | ||
1902 | ||
1903 | # _LT_COMPILER_C_O([TAGNAME]) | |
1904 | # --------------------------- | |
1905 | # Check to see if options -c and -o are simultaneously supported by compiler. | |
1906 | # This macro does not hard code the compiler like AC_PROG_CC_C_O. | |
1907 | m4_defun([_LT_COMPILER_C_O], | |
1908 | [m4_require([_LT_DECL_SED])dnl | |
1909 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
1910 | m4_require([_LT_TAG_COMPILER])dnl | |
1911 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | |
1912 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | |
1913 | [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | |
1914 | $RM -r conftest 2>/dev/null | |
1915 | mkdir conftest | |
1916 | cd conftest | |
1917 | mkdir out | |
1918 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
1919 | ||
1920 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
1921 | # Insert the option either (1) after the last *FLAGS variable, or | |
1922 | # (2) before a word containing "conftest.", or (3) at the end. | |
1923 | # Note that $ac_compile itself does not contain backslashes and begins | |
1924 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
1925 | lt_compile=`echo "$ac_compile" | $SED \ | |
1926 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
1927 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | |
1928 | -e 's:$: $lt_compiler_flag:'` | |
1929 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | |
1930 | (eval "$lt_compile" 2>out/conftest.err) | |
1931 | ac_status=$? | |
1932 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | |
1933 | echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | |
1934 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
1935 | then | |
1936 | # The compiler can only warn and ignore the option if not recognized | |
1937 | # So say no if there are warnings | |
1938 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
1939 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
1940 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
1941 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
1942 | fi | |
1943 | fi | |
1944 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | |
1945 | $RM conftest* | |
1946 | # SGI C++ compiler will create directory out/ii_files/ for | |
1947 | # template instantiation | |
1948 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
1949 | $RM out/* && rmdir out | |
1950 | cd .. | |
1951 | $RM -r conftest | |
1952 | $RM conftest* | |
1953 | ]) | |
1954 | _LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1], | |
1955 | [Does compiler simultaneously support -c and -o options?]) | |
1956 | ])# _LT_COMPILER_C_O | |
1957 | ||
1958 | ||
1959 | # _LT_COMPILER_FILE_LOCKS([TAGNAME]) | |
1960 | # ---------------------------------- | |
1961 | # Check to see if we can do hard links to lock some files if needed | |
1962 | m4_defun([_LT_COMPILER_FILE_LOCKS], | |
1963 | [m4_require([_LT_ENABLE_LOCK])dnl | |
1964 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
1965 | _LT_COMPILER_C_O([$1]) | |
1966 | ||
1967 | hard_links="nottested" | |
1968 | if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | |
1969 | # do not overwrite the value of need_locks provided by the user | |
1970 | AC_MSG_CHECKING([if we can lock with hard links]) | |
1971 | hard_links=yes | |
1972 | $RM conftest* | |
1973 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
1974 | touch conftest.a | |
1975 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
1976 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
1977 | AC_MSG_RESULT([$hard_links]) | |
1978 | if test "$hard_links" = no; then | |
1979 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | |
1980 | need_locks=warn | |
1981 | fi | |
1982 | else | |
1983 | need_locks=no | |
1984 | fi | |
1985 | _LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?]) | |
1986 | ])# _LT_COMPILER_FILE_LOCKS | |
1987 | ||
1988 | ||
1989 | # _LT_CHECK_OBJDIR | |
1990 | # ---------------- | |
1991 | m4_defun([_LT_CHECK_OBJDIR], | |
1992 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | |
1993 | [rm -f .libs 2>/dev/null | |
1994 | mkdir .libs 2>/dev/null | |
1995 | if test -d .libs; then | |
1996 | lt_cv_objdir=.libs | |
1997 | else | |
1998 | # MS-DOS does not allow filenames that begin with a dot. | |
1999 | lt_cv_objdir=_libs | |
2000 | fi | |
2001 | rmdir .libs 2>/dev/null]) | |
2002 | objdir=$lt_cv_objdir | |
2003 | _LT_DECL([], [objdir], [0], | |
2004 | [The name of the directory that contains temporary libtool files])dnl | |
2005 | m4_pattern_allow([LT_OBJDIR])dnl | |
2006 | AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/", | |
2007 | [Define to the sub-directory in which libtool stores uninstalled libraries.]) | |
2008 | ])# _LT_CHECK_OBJDIR | |
2009 | ||
2010 | ||
2011 | # _LT_LINKER_HARDCODE_LIBPATH([TAGNAME]) | |
2012 | # -------------------------------------- | |
2013 | # Check hardcoding attributes. | |
2014 | m4_defun([_LT_LINKER_HARDCODE_LIBPATH], | |
2015 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | |
2016 | _LT_TAGVAR(hardcode_action, $1)= | |
2017 | if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" || | |
2018 | test -n "$_LT_TAGVAR(runpath_var, $1)" || | |
2019 | test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | |
2020 | ||
2021 | # We can hardcode non-existent directories. | |
2022 | if test "$_LT_TAGVAR(hardcode_direct, $1)" != no && | |
2023 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
2024 | # have to relink, otherwise we might link with an installed library | |
2025 | # when we should be linking with a yet-to-be-installed one | |
2026 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no && | |
2027 | test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then | |
2028 | # Linking always hardcodes the temporary library directory. | |
2029 | _LT_TAGVAR(hardcode_action, $1)=relink | |
2030 | else | |
2031 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
2032 | _LT_TAGVAR(hardcode_action, $1)=immediate | |
2033 | fi | |
2034 | else | |
2035 | # We cannot hardcode anything, or else we can only hardcode existing | |
2036 | # directories. | |
2037 | _LT_TAGVAR(hardcode_action, $1)=unsupported | |
2038 | fi | |
2039 | AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)]) | |
2040 | ||
2041 | if test "$_LT_TAGVAR(hardcode_action, $1)" = relink || | |
2042 | test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then | |
2043 | # Fast installation is not supported | |
2044 | enable_fast_install=no | |
2045 | elif test "$shlibpath_overrides_runpath" = yes || | |
2046 | test "$enable_shared" = no; then | |
2047 | # Fast installation is not necessary | |
2048 | enable_fast_install=needless | |
2049 | fi | |
2050 | _LT_TAGDECL([], [hardcode_action], [0], | |
2051 | [How to hardcode a shared library path into an executable]) | |
2052 | ])# _LT_LINKER_HARDCODE_LIBPATH | |
2053 | ||
2054 | ||
2055 | # _LT_CMD_STRIPLIB | |
2056 | # ---------------- | |
2057 | m4_defun([_LT_CMD_STRIPLIB], | |
2058 | [m4_require([_LT_DECL_EGREP]) | |
2059 | striplib= | |
2060 | old_striplib= | |
2061 | AC_MSG_CHECKING([whether stripping libraries is possible]) | |
2062 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
2063 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
2064 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
2065 | AC_MSG_RESULT([yes]) | |
2066 | else | |
2067 | # FIXME - insert some real tests, host_os isn't really good enough | |
2068 | case $host_os in | |
2069 | darwin*) | |
2070 | if test -n "$STRIP" ; then | |
2071 | striplib="$STRIP -x" | |
2072 | old_striplib="$STRIP -S" | |
2073 | AC_MSG_RESULT([yes]) | |
2074 | else | |
2075 | AC_MSG_RESULT([no]) | |
2076 | fi | |
2077 | ;; | |
2078 | *) | |
2079 | AC_MSG_RESULT([no]) | |
2080 | ;; | |
2081 | esac | |
2082 | fi | |
2083 | _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) | |
2084 | _LT_DECL([], [striplib], [1]) | |
2085 | ])# _LT_CMD_STRIPLIB | |
2086 | ||
2087 | ||
2088 | # _LT_SYS_DYNAMIC_LINKER([TAG]) | |
2089 | # ----------------------------- | |
2090 | # PORTME Fill in your ld.so characteristics | |
2091 | m4_defun([_LT_SYS_DYNAMIC_LINKER], | |
2092 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
2093 | m4_require([_LT_DECL_EGREP])dnl | |
2094 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
2095 | m4_require([_LT_DECL_OBJDUMP])dnl | |
2096 | m4_require([_LT_DECL_SED])dnl | |
2097 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl | |
2098 | AC_MSG_CHECKING([dynamic linker characteristics]) | |
2099 | m4_if([$1], | |
2100 | [], [ | |
2101 | if test "$GCC" = yes; then | |
2102 | case $host_os in | |
2103 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
2104 | *) lt_awk_arg="/^libraries:/" ;; | |
2105 | esac | |
2106 | case $host_os in | |
2107 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([[A-Za-z]]:\),\1,g" ;; | |
2108 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
2109 | esac | |
2110 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
2111 | case $lt_search_path_spec in | |
2112 | *\;*) | |
2113 | # if the path contains ";" then we assume it to be the separator | |
2114 | # otherwise default to the standard path separator (i.e. ":") - it is | |
2115 | # assumed that no part of a normal pathname contains ";" but that should | |
2116 | # okay in the real world where ";" in dirpaths is itself problematic. | |
2117 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
2118 | ;; | |
2119 | *) | |
2120 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
2121 | ;; | |
2122 | esac | |
2123 | # Ok, now we have the path, separated by spaces, we can step through it | |
2124 | # and add multilib dir if necessary. | |
2125 | lt_tmp_lt_search_path_spec= | |
2126 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
2127 | for lt_sys_path in $lt_search_path_spec; do | |
2128 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
2129 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
2130 | else | |
2131 | test -d "$lt_sys_path" && \ | |
2132 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
2133 | fi | |
2134 | done | |
2135 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
2136 | BEGIN {RS=" "; FS="/|\n";} { | |
2137 | lt_foo=""; | |
2138 | lt_count=0; | |
2139 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
2140 | if ($lt_i != "" && $lt_i != ".") { | |
2141 | if ($lt_i == "..") { | |
2142 | lt_count++; | |
2143 | } else { | |
2144 | if (lt_count == 0) { | |
2145 | lt_foo="/" $lt_i lt_foo; | |
2146 | } else { | |
2147 | lt_count--; | |
2148 | } | |
2149 | } | |
2150 | } | |
2151 | } | |
2152 | if (lt_foo != "") { lt_freq[[lt_foo]]++; } | |
2153 | if (lt_freq[[lt_foo]] == 1) { print lt_foo; } | |
2154 | }'` | |
2155 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
2156 | # for these hosts. | |
2157 | case $host_os in | |
2158 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
2159 | $SED 's,/\([[A-Za-z]]:\),\1,g'` ;; | |
2160 | esac | |
2161 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
2162 | else | |
2163 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
2164 | fi]) | |
2165 | library_names_spec= | |
2166 | libname_spec='lib$name' | |
2167 | soname_spec= | |
2168 | shrext_cmds=".so" | |
2169 | postinstall_cmds= | |
2170 | postuninstall_cmds= | |
2171 | finish_cmds= | |
2172 | finish_eval= | |
2173 | shlibpath_var= | |
2174 | shlibpath_overrides_runpath=unknown | |
2175 | version_type=none | |
2176 | dynamic_linker="$host_os ld.so" | |
2177 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
2178 | need_lib_prefix=unknown | |
2179 | hardcode_into_libs=no | |
2180 | ||
2181 | # when you set need_version to no, make sure it does not cause -set_version | |
2182 | # flags to be left without arguments | |
2183 | need_version=unknown | |
2184 | ||
2185 | case $host_os in | |
2186 | aix3*) | |
2187 | version_type=linux | |
2188 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
2189 | shlibpath_var=LIBPATH | |
2190 | ||
2191 | # AIX 3 has no versioning support, so we append a major version to the name. | |
2192 | soname_spec='${libname}${release}${shared_ext}$major' | |
2193 | ;; | |
2194 | ||
2195 | aix[[4-9]]*) | |
2196 | version_type=linux | |
2197 | need_lib_prefix=no | |
2198 | need_version=no | |
2199 | hardcode_into_libs=yes | |
2200 | if test "$host_cpu" = ia64; then | |
2201 | # AIX 5 supports IA64 | |
2202 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
2203 | shlibpath_var=LD_LIBRARY_PATH | |
2204 | else | |
2205 | # With GCC up to 2.95.x, collect2 would create an import file | |
2206 | # for dependence libraries. The import file would start with | |
2207 | # the line `#! .'. This would cause the generated library to | |
2208 | # depend on `.', always an invalid library. This was fixed in | |
2209 | # development snapshots of GCC prior to 3.0. | |
2210 | case $host_os in | |
2211 | aix4 | aix4.[[01]] | aix4.[[01]].*) | |
2212 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
2213 | echo ' yes ' | |
2214 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
2215 | : | |
2216 | else | |
2217 | can_build_shared=no | |
2218 | fi | |
2219 | ;; | |
2220 | esac | |
2221 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
2222 | # soname into executable. Probably we can add versioning support to | |
2223 | # collect2, so additional links can be useful in future. | |
2224 | if test "$aix_use_runtimelinking" = yes; then | |
2225 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
2226 | # instead of lib<name>.a to let people know that these are not | |
2227 | # typical AIX shared libraries. | |
2228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2229 | else | |
2230 | # We preserve .a as extension for shared libraries through AIX4.2 | |
2231 | # and later when we are not doing run time linking. | |
2232 | library_names_spec='${libname}${release}.a $libname.a' | |
2233 | soname_spec='${libname}${release}${shared_ext}$major' | |
2234 | fi | |
2235 | shlibpath_var=LIBPATH | |
2236 | fi | |
2237 | ;; | |
2238 | ||
2239 | amigaos*) | |
2240 | case $host_cpu in | |
2241 | powerpc) | |
2242 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
2243 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
2244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2245 | ;; | |
2246 | m68k) | |
2247 | library_names_spec='$libname.ixlibrary $libname.a' | |
2248 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
2249 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
2250 | ;; | |
2251 | esac | |
2252 | ;; | |
2253 | ||
2254 | beos*) | |
2255 | library_names_spec='${libname}${shared_ext}' | |
2256 | dynamic_linker="$host_os ld.so" | |
2257 | shlibpath_var=LIBRARY_PATH | |
2258 | ;; | |
2259 | ||
2260 | bsdi[[45]]*) | |
2261 | version_type=linux | |
2262 | need_version=no | |
2263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2264 | soname_spec='${libname}${release}${shared_ext}$major' | |
2265 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
2266 | shlibpath_var=LD_LIBRARY_PATH | |
2267 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
2268 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
2269 | # the default ld.so.conf also contains /usr/contrib/lib and | |
2270 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
2271 | # libtool to hard-code these into programs | |
2272 | ;; | |
2273 | ||
2274 | cygwin* | mingw* | pw32* | cegcc*) | |
2275 | version_type=windows | |
2276 | shrext_cmds=".dll" | |
2277 | need_version=no | |
2278 | need_lib_prefix=no | |
2279 | ||
2280 | case $GCC,$cc_basename in | |
2281 | yes,*) | |
2282 | # gcc | |
2283 | library_names_spec='$libname.dll.a' | |
2284 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
2285 | postinstall_cmds='base_file=`basename \${file}`~ | |
2286 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
2287 | dldir=$destdir/`dirname \$dlpath`~ | |
2288 | test -d \$dldir || mkdir -p \$dldir~ | |
2289 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
2290 | chmod a+x \$dldir/$dlname~ | |
2291 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
2292 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
2293 | fi' | |
2294 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
2295 | dlpath=$dir/\$dldll~ | |
2296 | $RM \$dlpath' | |
2297 | shlibpath_overrides_runpath=yes | |
2298 | ||
2299 | case $host_os in | |
2300 | cygwin*) | |
2301 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
2302 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
2303 | m4_if([$1], [],[ | |
2304 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) | |
2305 | ;; | |
2306 | mingw* | cegcc*) | |
2307 | # MinGW DLLs use traditional 'lib' prefix | |
2308 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
2309 | ;; | |
2310 | pw32*) | |
2311 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
2312 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
2313 | ;; | |
2314 | esac | |
2315 | dynamic_linker='Win32 ld.exe' | |
2316 | ;; | |
2317 | ||
2318 | *,cl*) | |
2319 | # Native MSVC | |
2320 | libname_spec='$name' | |
2321 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
2322 | library_names_spec='${libname}.dll.lib' | |
2323 | ||
2324 | case $build_os in | |
2325 | mingw*) | |
2326 | sys_lib_search_path_spec= | |
2327 | lt_save_ifs=$IFS | |
2328 | IFS=';' | |
2329 | for lt_path in $LIB | |
2330 | do | |
2331 | IFS=$lt_save_ifs | |
2332 | # Let DOS variable expansion print the short 8.3 style file name. | |
2333 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
2334 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
2335 | done | |
2336 | IFS=$lt_save_ifs | |
2337 | # Convert to MSYS style. | |
2338 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | |
2339 | ;; | |
2340 | cygwin*) | |
2341 | # Convert to unix form, then to dos form, then back to unix form | |
2342 | # but this time dos style (no spaces!) so that the unix form looks | |
2343 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
2344 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
2345 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
2346 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
2347 | ;; | |
2348 | *) | |
2349 | sys_lib_search_path_spec="$LIB" | |
2350 | if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | |
2351 | # It is most probably a Windows format PATH. | |
2352 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
2353 | else | |
2354 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
2355 | fi | |
2356 | # FIXME: find the short name or the path components, as spaces are | |
2357 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
2358 | ;; | |
2359 | esac | |
2360 | ||
2361 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
2362 | postinstall_cmds='base_file=`basename \${file}`~ | |
2363 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
2364 | dldir=$destdir/`dirname \$dlpath`~ | |
2365 | test -d \$dldir || mkdir -p \$dldir~ | |
2366 | $install_prog $dir/$dlname \$dldir/$dlname' | |
2367 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
2368 | dlpath=$dir/\$dldll~ | |
2369 | $RM \$dlpath' | |
2370 | shlibpath_overrides_runpath=yes | |
2371 | dynamic_linker='Win32 link.exe' | |
2372 | ;; | |
2373 | ||
2374 | *) | |
2375 | # Assume MSVC wrapper | |
2376 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
2377 | dynamic_linker='Win32 ld.exe' | |
2378 | ;; | |
2379 | esac | |
2380 | # FIXME: first we should search . and the directory the executable is in | |
2381 | shlibpath_var=PATH | |
2382 | ;; | |
2383 | ||
2384 | darwin* | rhapsody*) | |
2385 | dynamic_linker="$host_os dyld" | |
2386 | version_type=darwin | |
2387 | need_lib_prefix=no | |
2388 | need_version=no | |
2389 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
2390 | soname_spec='${libname}${release}${major}$shared_ext' | |
2391 | shlibpath_overrides_runpath=yes | |
2392 | shlibpath_var=DYLD_LIBRARY_PATH | |
2393 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
2394 | m4_if([$1], [],[ | |
2395 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"]) | |
2396 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
2397 | ;; | |
2398 | ||
2399 | dgux*) | |
2400 | version_type=linux | |
2401 | need_lib_prefix=no | |
2402 | need_version=no | |
2403 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
2404 | soname_spec='${libname}${release}${shared_ext}$major' | |
2405 | shlibpath_var=LD_LIBRARY_PATH | |
2406 | ;; | |
2407 | ||
2408 | freebsd1*) | |
2409 | dynamic_linker=no | |
2410 | ;; | |
2411 | ||
2412 | freebsd* | dragonfly*) | |
2413 | # DragonFly does not have aout. When/if they implement a new | |
2414 | # versioning mechanism, adjust this. | |
2415 | if test -x /usr/bin/objformat; then | |
2416 | objformat=`/usr/bin/objformat` | |
2417 | else | |
2418 | case $host_os in | |
2419 | freebsd[[123]]*) objformat=aout ;; | |
2420 | *) objformat=elf ;; | |
2421 | esac | |
2422 | fi | |
2423 | version_type=freebsd-$objformat | |
2424 | case $version_type in | |
2425 | freebsd-elf*) | |
2426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
2427 | need_version=no | |
2428 | need_lib_prefix=no | |
2429 | ;; | |
2430 | freebsd-*) | |
2431 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
2432 | need_version=yes | |
2433 | ;; | |
2434 | esac | |
2435 | shlibpath_var=LD_LIBRARY_PATH | |
2436 | case $host_os in | |
2437 | freebsd2*) | |
2438 | shlibpath_overrides_runpath=yes | |
2439 | ;; | |
2440 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | |
2441 | shlibpath_overrides_runpath=yes | |
2442 | hardcode_into_libs=yes | |
2443 | ;; | |
2444 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | |
2445 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | |
2446 | shlibpath_overrides_runpath=no | |
2447 | hardcode_into_libs=yes | |
2448 | ;; | |
2449 | *) # from 4.6 on, and DragonFly | |
2450 | shlibpath_overrides_runpath=yes | |
2451 | hardcode_into_libs=yes | |
2452 | ;; | |
2453 | esac | |
2454 | ;; | |
2455 | ||
2456 | gnu*) | |
2457 | version_type=linux | |
2458 | need_lib_prefix=no | |
2459 | need_version=no | |
2460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
2461 | soname_spec='${libname}${release}${shared_ext}$major' | |
2462 | shlibpath_var=LD_LIBRARY_PATH | |
2463 | hardcode_into_libs=yes | |
2464 | ;; | |
2465 | ||
2466 | haiku*) | |
2467 | version_type=linux | |
2468 | need_lib_prefix=no | |
2469 | need_version=no | |
2470 | dynamic_linker="$host_os runtime_loader" | |
2471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
2472 | soname_spec='${libname}${release}${shared_ext}$major' | |
2473 | shlibpath_var=LIBRARY_PATH | |
2474 | shlibpath_overrides_runpath=yes | |
2475 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
2476 | hardcode_into_libs=yes | |
2477 | ;; | |
2478 | ||
2479 | hpux9* | hpux10* | hpux11*) | |
2480 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
2481 | # link against other versions. | |
2482 | version_type=sunos | |
2483 | need_lib_prefix=no | |
2484 | need_version=no | |
2485 | case $host_cpu in | |
2486 | ia64*) | |
2487 | shrext_cmds='.so' | |
2488 | hardcode_into_libs=yes | |
2489 | dynamic_linker="$host_os dld.so" | |
2490 | shlibpath_var=LD_LIBRARY_PATH | |
2491 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
2492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2493 | soname_spec='${libname}${release}${shared_ext}$major' | |
2494 | if test "X$HPUX_IA64_MODE" = X32; then | |
2495 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
2496 | else | |
2497 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
2498 | fi | |
2499 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
2500 | ;; | |
2501 | hppa*64*) | |
2502 | shrext_cmds='.sl' | |
2503 | hardcode_into_libs=yes | |
2504 | dynamic_linker="$host_os dld.sl" | |
2505 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
2506 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
2507 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2508 | soname_spec='${libname}${release}${shared_ext}$major' | |
2509 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
2510 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
2511 | ;; | |
2512 | *) | |
2513 | shrext_cmds='.sl' | |
2514 | dynamic_linker="$host_os dld.sl" | |
2515 | shlibpath_var=SHLIB_PATH | |
2516 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
2517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2518 | soname_spec='${libname}${release}${shared_ext}$major' | |
2519 | ;; | |
2520 | esac | |
2521 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
2522 | postinstall_cmds='chmod 555 $lib' | |
2523 | # or fails outright, so override atomically: | |
2524 | install_override_mode=555 | |
2525 | ;; | |
2526 | ||
2527 | interix[[3-9]]*) | |
2528 | version_type=linux | |
2529 | need_lib_prefix=no | |
2530 | need_version=no | |
2531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
2532 | soname_spec='${libname}${release}${shared_ext}$major' | |
2533 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
2534 | shlibpath_var=LD_LIBRARY_PATH | |
2535 | shlibpath_overrides_runpath=no | |
2536 | hardcode_into_libs=yes | |
2537 | ;; | |
2538 | ||
2539 | irix5* | irix6* | nonstopux*) | |
2540 | case $host_os in | |
2541 | nonstopux*) version_type=nonstopux ;; | |
2542 | *) | |
2543 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
2544 | version_type=linux | |
2545 | else | |
2546 | version_type=irix | |
2547 | fi ;; | |
2548 | esac | |
2549 | need_lib_prefix=no | |
2550 | need_version=no | |
2551 | soname_spec='${libname}${release}${shared_ext}$major' | |
2552 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
2553 | case $host_os in | |
2554 | irix5* | nonstopux*) | |
2555 | libsuff= shlibsuff= | |
2556 | ;; | |
2557 | *) | |
2558 | case $LD in # libtool.m4 will add one of these switches to LD | |
2559 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
2560 | libsuff= shlibsuff= libmagic=32-bit;; | |
2561 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
2562 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
2563 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
2564 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
2565 | *) libsuff= shlibsuff= libmagic=never-match;; | |
2566 | esac | |
2567 | ;; | |
2568 | esac | |
2569 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
2570 | shlibpath_overrides_runpath=no | |
2571 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
2572 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
2573 | hardcode_into_libs=yes | |
2574 | ;; | |
2575 | ||
2576 | # No shared lib support for Linux oldld, aout, or coff. | |
2577 | linux*oldld* | linux*aout* | linux*coff*) | |
2578 | dynamic_linker=no | |
2579 | ;; | |
2580 | ||
2581 | # This must be Linux ELF. | |
2582 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
2583 | version_type=linux | |
2584 | need_lib_prefix=no | |
2585 | need_version=no | |
2586 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2587 | soname_spec='${libname}${release}${shared_ext}$major' | |
2588 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
2589 | shlibpath_var=LD_LIBRARY_PATH | |
2590 | shlibpath_overrides_runpath=no | |
2591 | ||
2592 | # Some binutils ld are patched to set DT_RUNPATH | |
2593 | AC_CACHE_VAL([lt_cv_shlibpath_overrides_runpath], | |
2594 | [lt_cv_shlibpath_overrides_runpath=no | |
2595 | save_LDFLAGS=$LDFLAGS | |
2596 | save_libdir=$libdir | |
2597 | eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \ | |
2598 | LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\"" | |
2599 | AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])], | |
2600 | [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null], | |
2601 | [lt_cv_shlibpath_overrides_runpath=yes])]) | |
2602 | LDFLAGS=$save_LDFLAGS | |
2603 | libdir=$save_libdir | |
2604 | ]) | |
2605 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
2606 | ||
2607 | # This implies no fast_install, which is unacceptable. | |
2608 | # Some rework will be needed to allow for fast_install | |
2609 | # before this can be enabled. | |
2610 | hardcode_into_libs=yes | |
2611 | ||
2612 | # Add ABI-specific directories to the system library path. | |
2613 | sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" | |
2614 | ||
2615 | # Append ld.so.conf contents to the search path | |
2616 | if test -f /etc/ld.so.conf; then | |
2617 | 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' ' '` | |
2618 | sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" | |
2619 | ||
2620 | fi | |
2621 | ||
2622 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
2623 | # powerpc, because MkLinux only supported shared libraries with the | |
2624 | # GNU dynamic linker. Since this was broken with cross compilers, | |
2625 | # most powerpc-linux boxes support dynamic linking these days and | |
2626 | # people can always --disable-shared, the test was removed, and we | |
2627 | # assume the GNU/Linux dynamic linker is in use. | |
2628 | dynamic_linker='GNU/Linux ld.so' | |
2629 | ;; | |
2630 | ||
2631 | netbsd*) | |
2632 | version_type=sunos | |
2633 | need_lib_prefix=no | |
2634 | need_version=no | |
2635 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
2636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
2637 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
2638 | dynamic_linker='NetBSD (a.out) ld.so' | |
2639 | else | |
2640 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
2641 | soname_spec='${libname}${release}${shared_ext}$major' | |
2642 | dynamic_linker='NetBSD ld.elf_so' | |
2643 | fi | |
2644 | shlibpath_var=LD_LIBRARY_PATH | |
2645 | shlibpath_overrides_runpath=yes | |
2646 | hardcode_into_libs=yes | |
2647 | ;; | |
2648 | ||
2649 | newsos6) | |
2650 | version_type=linux | |
2651 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2652 | shlibpath_var=LD_LIBRARY_PATH | |
2653 | shlibpath_overrides_runpath=yes | |
2654 | ;; | |
2655 | ||
2656 | *nto* | *qnx*) | |
2657 | version_type=qnx | |
2658 | need_lib_prefix=no | |
2659 | need_version=no | |
2660 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2661 | soname_spec='${libname}${release}${shared_ext}$major' | |
2662 | shlibpath_var=LD_LIBRARY_PATH | |
2663 | shlibpath_overrides_runpath=no | |
2664 | hardcode_into_libs=yes | |
2665 | dynamic_linker='ldqnx.so' | |
2666 | ;; | |
2667 | ||
2668 | openbsd*) | |
2669 | version_type=sunos | |
2670 | sys_lib_dlsearch_path_spec="/usr/lib" | |
2671 | need_lib_prefix=no | |
2672 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
2673 | case $host_os in | |
2674 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
2675 | *) need_version=no ;; | |
2676 | esac | |
2677 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
2678 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
2679 | shlibpath_var=LD_LIBRARY_PATH | |
2680 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
2681 | case $host_os in | |
2682 | openbsd2.[[89]] | openbsd2.[[89]].*) | |
2683 | shlibpath_overrides_runpath=no | |
2684 | ;; | |
2685 | *) | |
2686 | shlibpath_overrides_runpath=yes | |
2687 | ;; | |
2688 | esac | |
2689 | else | |
2690 | shlibpath_overrides_runpath=yes | |
2691 | fi | |
2692 | ;; | |
2693 | ||
2694 | os2*) | |
2695 | libname_spec='$name' | |
2696 | shrext_cmds=".dll" | |
2697 | need_lib_prefix=no | |
2698 | library_names_spec='$libname${shared_ext} $libname.a' | |
2699 | dynamic_linker='OS/2 ld.exe' | |
2700 | shlibpath_var=LIBPATH | |
2701 | ;; | |
2702 | ||
2703 | osf3* | osf4* | osf5*) | |
2704 | version_type=osf | |
2705 | need_lib_prefix=no | |
2706 | need_version=no | |
2707 | soname_spec='${libname}${release}${shared_ext}$major' | |
2708 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2709 | shlibpath_var=LD_LIBRARY_PATH | |
2710 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
2711 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
2712 | ;; | |
2713 | ||
2714 | rdos*) | |
2715 | dynamic_linker=no | |
2716 | ;; | |
2717 | ||
2718 | solaris*) | |
2719 | version_type=linux | |
2720 | need_lib_prefix=no | |
2721 | need_version=no | |
2722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2723 | soname_spec='${libname}${release}${shared_ext}$major' | |
2724 | shlibpath_var=LD_LIBRARY_PATH | |
2725 | shlibpath_overrides_runpath=yes | |
2726 | hardcode_into_libs=yes | |
2727 | # ldd complains unless libraries are executable | |
2728 | postinstall_cmds='chmod +x $lib' | |
2729 | ;; | |
2730 | ||
2731 | sunos4*) | |
2732 | version_type=sunos | |
2733 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
2734 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
2735 | shlibpath_var=LD_LIBRARY_PATH | |
2736 | shlibpath_overrides_runpath=yes | |
2737 | if test "$with_gnu_ld" = yes; then | |
2738 | need_lib_prefix=no | |
2739 | fi | |
2740 | need_version=yes | |
2741 | ;; | |
2742 | ||
2743 | sysv4 | sysv4.3*) | |
2744 | version_type=linux | |
2745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2746 | soname_spec='${libname}${release}${shared_ext}$major' | |
2747 | shlibpath_var=LD_LIBRARY_PATH | |
2748 | case $host_vendor in | |
2749 | sni) | |
2750 | shlibpath_overrides_runpath=no | |
2751 | need_lib_prefix=no | |
2752 | runpath_var=LD_RUN_PATH | |
2753 | ;; | |
2754 | siemens) | |
2755 | need_lib_prefix=no | |
2756 | ;; | |
2757 | motorola) | |
2758 | need_lib_prefix=no | |
2759 | need_version=no | |
2760 | shlibpath_overrides_runpath=no | |
2761 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
2762 | ;; | |
2763 | esac | |
2764 | ;; | |
2765 | ||
2766 | sysv4*MP*) | |
2767 | if test -d /usr/nec ;then | |
2768 | version_type=linux | |
2769 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
2770 | soname_spec='$libname${shared_ext}.$major' | |
2771 | shlibpath_var=LD_LIBRARY_PATH | |
2772 | fi | |
2773 | ;; | |
2774 | ||
2775 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
2776 | version_type=freebsd-elf | |
2777 | need_lib_prefix=no | |
2778 | need_version=no | |
2779 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
2780 | soname_spec='${libname}${release}${shared_ext}$major' | |
2781 | shlibpath_var=LD_LIBRARY_PATH | |
2782 | shlibpath_overrides_runpath=yes | |
2783 | hardcode_into_libs=yes | |
2784 | if test "$with_gnu_ld" = yes; then | |
2785 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
2786 | else | |
2787 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
2788 | case $host_os in | |
2789 | sco3.2v5*) | |
2790 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
2791 | ;; | |
2792 | esac | |
2793 | fi | |
2794 | sys_lib_dlsearch_path_spec='/usr/lib' | |
2795 | ;; | |
2796 | ||
2797 | tpf*) | |
2798 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
2799 | version_type=linux | |
2800 | need_lib_prefix=no | |
2801 | need_version=no | |
2802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2803 | shlibpath_var=LD_LIBRARY_PATH | |
2804 | shlibpath_overrides_runpath=no | |
2805 | hardcode_into_libs=yes | |
2806 | ;; | |
2807 | ||
2808 | uts4*) | |
2809 | version_type=linux | |
2810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
2811 | soname_spec='${libname}${release}${shared_ext}$major' | |
2812 | shlibpath_var=LD_LIBRARY_PATH | |
2813 | ;; | |
2814 | ||
2815 | *) | |
2816 | dynamic_linker=no | |
2817 | ;; | |
2818 | esac | |
2819 | AC_MSG_RESULT([$dynamic_linker]) | |
2820 | test "$dynamic_linker" = no && can_build_shared=no | |
2821 | ||
2822 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
2823 | if test "$GCC" = yes; then | |
2824 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
2825 | fi | |
2826 | ||
2827 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
2828 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
2829 | fi | |
2830 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
2831 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
2832 | fi | |
2833 | ||
2834 | _LT_DECL([], [variables_saved_for_relink], [1], | |
2835 | [Variables whose values should be saved in libtool wrapper scripts and | |
2836 | restored at link time]) | |
2837 | _LT_DECL([], [need_lib_prefix], [0], | |
2838 | [Do we need the "lib" prefix for modules?]) | |
2839 | _LT_DECL([], [need_version], [0], [Do we need a version for libraries?]) | |
2840 | _LT_DECL([], [version_type], [0], [Library versioning type]) | |
2841 | _LT_DECL([], [runpath_var], [0], [Shared library runtime path variable]) | |
2842 | _LT_DECL([], [shlibpath_var], [0],[Shared library path variable]) | |
2843 | _LT_DECL([], [shlibpath_overrides_runpath], [0], | |
2844 | [Is shlibpath searched before the hard-coded library search path?]) | |
2845 | _LT_DECL([], [libname_spec], [1], [Format of library name prefix]) | |
2846 | _LT_DECL([], [library_names_spec], [1], | |
2847 | [[List of archive names. First name is the real one, the rest are links. | |
2848 | The last name is the one that the linker finds with -lNAME]]) | |
2849 | _LT_DECL([], [soname_spec], [1], | |
2850 | [[The coded name of the library, if different from the real name]]) | |
2851 | _LT_DECL([], [install_override_mode], [1], | |
2852 | [Permission mode override for installation of shared libraries]) | |
2853 | _LT_DECL([], [postinstall_cmds], [2], | |
2854 | [Command to use after installation of a shared archive]) | |
2855 | _LT_DECL([], [postuninstall_cmds], [2], | |
2856 | [Command to use after uninstallation of a shared archive]) | |
2857 | _LT_DECL([], [finish_cmds], [2], | |
2858 | [Commands used to finish a libtool library installation in a directory]) | |
2859 | _LT_DECL([], [finish_eval], [1], | |
2860 | [[As "finish_cmds", except a single script fragment to be evaled but | |
2861 | not shown]]) | |
2862 | _LT_DECL([], [hardcode_into_libs], [0], | |
2863 | [Whether we should hardcode library paths into libraries]) | |
2864 | _LT_DECL([], [sys_lib_search_path_spec], [2], | |
2865 | [Compile-time system search path for libraries]) | |
2866 | _LT_DECL([], [sys_lib_dlsearch_path_spec], [2], | |
2867 | [Run-time system search path for libraries]) | |
2868 | ])# _LT_SYS_DYNAMIC_LINKER | |
2869 | ||
2870 | ||
2871 | # _LT_PATH_TOOL_PREFIX(TOOL) | |
2872 | # -------------------------- | |
2873 | # find a file program which can recognize shared library | |
2874 | AC_DEFUN([_LT_PATH_TOOL_PREFIX], | |
2875 | [m4_require([_LT_DECL_EGREP])dnl | |
2876 | AC_MSG_CHECKING([for $1]) | |
2877 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | |
2878 | [case $MAGIC_CMD in | |
2879 | [[\\/*] | ?:[\\/]*]) | |
2880 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
2881 | ;; | |
2882 | *) | |
2883 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
2884 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
2885 | dnl $ac_dummy forces splitting on constant user-supplied paths. | |
2886 | dnl POSIX.2 word splitting is done only on the output of word expansions, | |
2887 | dnl not every word. This closes a longstanding sh security hole. | |
2888 | ac_dummy="m4_if([$2], , $PATH, [$2])" | |
2889 | for ac_dir in $ac_dummy; do | |
2890 | IFS="$lt_save_ifs" | |
2891 | test -z "$ac_dir" && ac_dir=. | |
2892 | if test -f $ac_dir/$1; then | |
2893 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | |
2894 | if test -n "$file_magic_test_file"; then | |
2895 | case $deplibs_check_method in | |
2896 | "file_magic "*) | |
2897 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
2898 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
2899 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
2900 | $EGREP "$file_magic_regex" > /dev/null; then | |
2901 | : | |
2902 | else | |
2903 | cat <<_LT_EOF 1>&2 | |
2904 | ||
2905 | *** Warning: the command libtool uses to detect shared libraries, | |
2906 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
2907 | *** The result is that libtool may fail to recognize shared libraries | |
2908 | *** as such. This will affect the creation of libtool libraries that | |
2909 | *** depend on shared libraries, but programs linked with such libtool | |
2910 | *** libraries will work regardless of this problem. Nevertheless, you | |
2911 | *** may want to report the problem to your system manager and/or to | |
2912 | *** bug-libtool@gnu.org | |
2913 | ||
2914 | _LT_EOF | |
2915 | fi ;; | |
2916 | esac | |
2917 | fi | |
2918 | break | |
2919 | fi | |
2920 | done | |
2921 | IFS="$lt_save_ifs" | |
2922 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
2923 | ;; | |
2924 | esac]) | |
2925 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
2926 | if test -n "$MAGIC_CMD"; then | |
2927 | AC_MSG_RESULT($MAGIC_CMD) | |
2928 | else | |
2929 | AC_MSG_RESULT(no) | |
2930 | fi | |
2931 | _LT_DECL([], [MAGIC_CMD], [0], | |
2932 | [Used to examine libraries when file_magic_cmd begins with "file"])dnl | |
2933 | ])# _LT_PATH_TOOL_PREFIX | |
2934 | ||
2935 | # Old name: | |
2936 | AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX]) | |
2937 | dnl aclocal-1.4 backwards compatibility: | |
2938 | dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], []) | |
2939 | ||
2940 | ||
2941 | # _LT_PATH_MAGIC | |
2942 | # -------------- | |
2943 | # find a file program which can recognize a shared library | |
2944 | m4_defun([_LT_PATH_MAGIC], | |
2945 | [_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) | |
2946 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
2947 | if test -n "$ac_tool_prefix"; then | |
2948 | _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | |
2949 | else | |
2950 | MAGIC_CMD=: | |
2951 | fi | |
2952 | fi | |
2953 | ])# _LT_PATH_MAGIC | |
2954 | ||
2955 | ||
2956 | # LT_PATH_LD | |
2957 | # ---------- | |
2958 | # find the pathname to the GNU or non-GNU linker | |
2959 | AC_DEFUN([LT_PATH_LD], | |
2960 | [AC_REQUIRE([AC_PROG_CC])dnl | |
2961 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
2962 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
2963 | m4_require([_LT_DECL_SED])dnl | |
2964 | m4_require([_LT_DECL_EGREP])dnl | |
2965 | m4_require([_LT_PROG_ECHO_BACKSLASH])dnl | |
2966 | ||
2967 | AC_ARG_WITH([gnu-ld], | |
2968 | [AS_HELP_STRING([--with-gnu-ld], | |
2969 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], | |
2970 | [test "$withval" = no || with_gnu_ld=yes], | |
2971 | [with_gnu_ld=no])dnl | |
2972 | ||
2973 | ac_prog=ld | |
2974 | if test "$GCC" = yes; then | |
2975 | # Check if gcc -print-prog-name=ld gives a path. | |
2976 | AC_MSG_CHECKING([for ld used by $CC]) | |
2977 | case $host in | |
2978 | *-*-mingw*) | |
2979 | # gcc leaves a trailing carriage return which upsets mingw | |
2980 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
2981 | *) | |
2982 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
2983 | esac | |
2984 | case $ac_prog in | |
2985 | # Accept absolute paths. | |
2986 | [[\\/]]* | ?:[[\\/]]*) | |
2987 | re_direlt='/[[^/]][[^/]]*/\.\./' | |
2988 | # Canonicalize the pathname of ld | |
2989 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
2990 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
2991 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
2992 | done | |
2993 | test -z "$LD" && LD="$ac_prog" | |
2994 | ;; | |
2995 | "") | |
2996 | # If it fails, then pretend we aren't using GCC. | |
2997 | ac_prog=ld | |
2998 | ;; | |
2999 | *) | |
3000 | # If it is relative, then search for the first ld in PATH. | |
3001 | with_gnu_ld=unknown | |
3002 | ;; | |
3003 | esac | |
3004 | elif test "$with_gnu_ld" = yes; then | |
3005 | AC_MSG_CHECKING([for GNU ld]) | |
3006 | else | |
3007 | AC_MSG_CHECKING([for non-GNU ld]) | |
3008 | fi | |
3009 | AC_CACHE_VAL(lt_cv_path_LD, | |
3010 | [if test -z "$LD"; then | |
3011 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3012 | for ac_dir in $PATH; do | |
3013 | IFS="$lt_save_ifs" | |
3014 | test -z "$ac_dir" && ac_dir=. | |
3015 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
3016 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
3017 | # Check to see if the program is GNU ld. I'd rather use --version, | |
3018 | # but apparently some variants of GNU ld only accept -v. | |
3019 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
3020 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
3021 | *GNU* | *'with BFD'*) | |
3022 | test "$with_gnu_ld" != no && break | |
3023 | ;; | |
3024 | *) | |
3025 | test "$with_gnu_ld" != yes && break | |
3026 | ;; | |
3027 | esac | |
3028 | fi | |
3029 | done | |
3030 | IFS="$lt_save_ifs" | |
3031 | else | |
3032 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
3033 | fi]) | |
3034 | LD="$lt_cv_path_LD" | |
3035 | if test -n "$LD"; then | |
3036 | AC_MSG_RESULT($LD) | |
3037 | else | |
3038 | AC_MSG_RESULT(no) | |
3039 | fi | |
3040 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | |
3041 | _LT_PATH_LD_GNU | |
3042 | AC_SUBST([LD]) | |
3043 | ||
3044 | _LT_TAGDECL([], [LD], [1], [The linker used to build libraries]) | |
3045 | ])# LT_PATH_LD | |
3046 | ||
3047 | # Old names: | |
3048 | AU_ALIAS([AM_PROG_LD], [LT_PATH_LD]) | |
3049 | AU_ALIAS([AC_PROG_LD], [LT_PATH_LD]) | |
3050 | dnl aclocal-1.4 backwards compatibility: | |
3051 | dnl AC_DEFUN([AM_PROG_LD], []) | |
3052 | dnl AC_DEFUN([AC_PROG_LD], []) | |
3053 | ||
3054 | ||
3055 | # _LT_PATH_LD_GNU | |
3056 | #- -------------- | |
3057 | m4_defun([_LT_PATH_LD_GNU], | |
3058 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, | |
3059 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. | |
3060 | case `$LD -v 2>&1 </dev/null` in | |
3061 | *GNU* | *'with BFD'*) | |
3062 | lt_cv_prog_gnu_ld=yes | |
3063 | ;; | |
3064 | *) | |
3065 | lt_cv_prog_gnu_ld=no | |
3066 | ;; | |
3067 | esac]) | |
3068 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
3069 | ])# _LT_PATH_LD_GNU | |
3070 | ||
3071 | ||
3072 | # _LT_CMD_RELOAD | |
3073 | # -------------- | |
3074 | # find reload flag for linker | |
3075 | # -- PORTME Some linkers may need a different reload flag. | |
3076 | m4_defun([_LT_CMD_RELOAD], | |
3077 | [AC_CACHE_CHECK([for $LD option to reload object files], | |
3078 | lt_cv_ld_reload_flag, | |
3079 | [lt_cv_ld_reload_flag='-r']) | |
3080 | reload_flag=$lt_cv_ld_reload_flag | |
3081 | case $reload_flag in | |
3082 | "" | " "*) ;; | |
3083 | *) reload_flag=" $reload_flag" ;; | |
3084 | esac | |
3085 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3086 | case $host_os in | |
3087 | cygwin* | mingw* | pw32* | cegcc*) | |
3088 | if test "$GCC" != yes; then | |
3089 | reload_cmds=false | |
3090 | fi | |
3091 | ;; | |
3092 | darwin*) | |
3093 | if test "$GCC" = yes; then | |
3094 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
3095 | else | |
3096 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
3097 | fi | |
3098 | ;; | |
3099 | esac | |
3100 | _LT_TAGDECL([], [reload_flag], [1], [How to create reloadable object files])dnl | |
3101 | _LT_TAGDECL([], [reload_cmds], [2])dnl | |
3102 | ])# _LT_CMD_RELOAD | |
3103 | ||
3104 | ||
3105 | # _LT_CHECK_MAGIC_METHOD | |
3106 | # ---------------------- | |
3107 | # how to check for library dependencies | |
3108 | # -- PORTME fill in with the dynamic library characteristics | |
3109 | m4_defun([_LT_CHECK_MAGIC_METHOD], | |
3110 | [m4_require([_LT_DECL_EGREP]) | |
3111 | m4_require([_LT_DECL_OBJDUMP]) | |
3112 | AC_CACHE_CHECK([how to recognize dependent libraries], | |
3113 | lt_cv_deplibs_check_method, | |
3114 | [lt_cv_file_magic_cmd='$MAGIC_CMD' | |
3115 | lt_cv_file_magic_test_file= | |
3116 | lt_cv_deplibs_check_method='unknown' | |
3117 | # Need to set the preceding variable on all platforms that support | |
3118 | # interlibrary dependencies. | |
3119 | # 'none' -- dependencies not supported. | |
3120 | # `unknown' -- same as none, but documents that we really don't know. | |
3121 | # 'pass_all' -- all dependencies passed with no checks. | |
3122 | # 'test_compile' -- check by making test program. | |
3123 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
3124 | # which responds to the $file_magic_cmd with a given extended regex. | |
3125 | # If you have `file' or equivalent on your system and you're not sure | |
3126 | # whether `pass_all' will *always* work, you probably want this one. | |
3127 | ||
3128 | case $host_os in | |
3129 | aix[[4-9]]*) | |
3130 | lt_cv_deplibs_check_method=pass_all | |
3131 | ;; | |
3132 | ||
3133 | beos*) | |
3134 | lt_cv_deplibs_check_method=pass_all | |
3135 | ;; | |
3136 | ||
3137 | bsdi[[45]]*) | |
3138 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | |
3139 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
3140 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3141 | ;; | |
3142 | ||
3143 | cygwin*) | |
3144 | # func_win32_libid is a shell function defined in ltmain.sh | |
3145 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3146 | lt_cv_file_magic_cmd='func_win32_libid' | |
3147 | ;; | |
3148 | ||
3149 | mingw* | pw32*) | |
3150 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
3151 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
3152 | # unless we find 'file', for example because we are cross-compiling. | |
3153 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
3154 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
3155 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
3156 | lt_cv_file_magic_cmd='func_win32_libid' | |
3157 | else | |
3158 | # Keep this pattern in sync with the one in func_win32_libid. | |
3159 | lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
3160 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3161 | fi | |
3162 | ;; | |
3163 | ||
3164 | cegcc*) | |
3165 | # use the weaker test based on 'objdump'. See mingw*. | |
3166 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
3167 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
3168 | ;; | |
3169 | ||
3170 | darwin* | rhapsody*) | |
3171 | lt_cv_deplibs_check_method=pass_all | |
3172 | ;; | |
3173 | ||
3174 | freebsd* | dragonfly*) | |
3175 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
3176 | case $host_cpu in | |
3177 | i*86 ) | |
3178 | # Not sure whether the presence of OpenBSD here was a mistake. | |
3179 | # Let's accept both of them until this is cleared up. | |
3180 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | |
3181 | lt_cv_file_magic_cmd=/usr/bin/file | |
3182 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
3183 | ;; | |
3184 | esac | |
3185 | else | |
3186 | lt_cv_deplibs_check_method=pass_all | |
3187 | fi | |
3188 | ;; | |
3189 | ||
3190 | gnu*) | |
3191 | lt_cv_deplibs_check_method=pass_all | |
3192 | ;; | |
3193 | ||
3194 | haiku*) | |
3195 | lt_cv_deplibs_check_method=pass_all | |
3196 | ;; | |
3197 | ||
3198 | hpux10.20* | hpux11*) | |
3199 | lt_cv_file_magic_cmd=/usr/bin/file | |
3200 | case $host_cpu in | |
3201 | ia64*) | |
3202 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | |
3203 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3204 | ;; | |
3205 | hppa*64*) | |
3206 | [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]'] | |
3207 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
3208 | ;; | |
3209 | *) | |
3210 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]]\.[[0-9]]) shared library' | |
3211 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3212 | ;; | |
3213 | esac | |
3214 | ;; | |
3215 | ||
3216 | interix[[3-9]]*) | |
3217 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
3218 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | |
3219 | ;; | |
3220 | ||
3221 | irix5* | irix6* | nonstopux*) | |
3222 | case $LD in | |
3223 | *-32|*"-32 ") libmagic=32-bit;; | |
3224 | *-n32|*"-n32 ") libmagic=N32;; | |
3225 | *-64|*"-64 ") libmagic=64-bit;; | |
3226 | *) libmagic=never-match;; | |
3227 | esac | |
3228 | lt_cv_deplibs_check_method=pass_all | |
3229 | ;; | |
3230 | ||
3231 | # This must be Linux ELF. | |
3232 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
3233 | lt_cv_deplibs_check_method=pass_all | |
3234 | ;; | |
3235 | ||
3236 | netbsd*) | |
3237 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
3238 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | |
3239 | else | |
3240 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | |
3241 | fi | |
3242 | ;; | |
3243 | ||
3244 | newos6*) | |
3245 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | |
3246 | lt_cv_file_magic_cmd=/usr/bin/file | |
3247 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
3248 | ;; | |
3249 | ||
3250 | *nto* | *qnx*) | |
3251 | lt_cv_deplibs_check_method=pass_all | |
3252 | ;; | |
3253 | ||
3254 | openbsd*) | |
3255 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
3256 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | |
3257 | else | |
3258 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | |
3259 | fi | |
3260 | ;; | |
3261 | ||
3262 | osf3* | osf4* | osf5*) | |
3263 | lt_cv_deplibs_check_method=pass_all | |
3264 | ;; | |
3265 | ||
3266 | rdos*) | |
3267 | lt_cv_deplibs_check_method=pass_all | |
3268 | ;; | |
3269 | ||
3270 | solaris*) | |
3271 | lt_cv_deplibs_check_method=pass_all | |
3272 | ;; | |
3273 | ||
3274 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
3275 | lt_cv_deplibs_check_method=pass_all | |
3276 | ;; | |
3277 | ||
3278 | sysv4 | sysv4.3*) | |
3279 | case $host_vendor in | |
3280 | motorola) | |
3281 | 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]]' | |
3282 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
3283 | ;; | |
3284 | ncr) | |
3285 | lt_cv_deplibs_check_method=pass_all | |
3286 | ;; | |
3287 | sequent) | |
3288 | lt_cv_file_magic_cmd='/bin/file' | |
3289 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | |
3290 | ;; | |
3291 | sni) | |
3292 | lt_cv_file_magic_cmd='/bin/file' | |
3293 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | |
3294 | lt_cv_file_magic_test_file=/lib/libc.so | |
3295 | ;; | |
3296 | siemens) | |
3297 | lt_cv_deplibs_check_method=pass_all | |
3298 | ;; | |
3299 | pc) | |
3300 | lt_cv_deplibs_check_method=pass_all | |
3301 | ;; | |
3302 | esac | |
3303 | ;; | |
3304 | ||
3305 | tpf*) | |
3306 | lt_cv_deplibs_check_method=pass_all | |
3307 | ;; | |
3308 | esac | |
3309 | ]) | |
3310 | ||
3311 | file_magic_glob= | |
3312 | want_nocaseglob=no | |
3313 | if test "$build" = "$host"; then | |
3314 | case $host_os in | |
3315 | mingw* | pw32*) | |
3316 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
3317 | want_nocaseglob=yes | |
3318 | else | |
3319 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` | |
3320 | fi | |
3321 | ;; | |
3322 | esac | |
3323 | fi | |
3324 | ||
3325 | file_magic_cmd=$lt_cv_file_magic_cmd | |
3326 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3327 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
3328 | ||
3329 | _LT_DECL([], [deplibs_check_method], [1], | |
3330 | [Method to check whether dependent libraries are shared objects]) | |
3331 | _LT_DECL([], [file_magic_cmd], [1], | |
3332 | [Command to use when deplibs_check_method = "file_magic"]) | |
3333 | _LT_DECL([], [file_magic_glob], [1], | |
3334 | [How to find potential files when deplibs_check_method = "file_magic"]) | |
3335 | _LT_DECL([], [want_nocaseglob], [1], | |
3336 | [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) | |
3337 | ])# _LT_CHECK_MAGIC_METHOD | |
3338 | ||
3339 | ||
3340 | # LT_PATH_NM | |
3341 | # ---------- | |
3342 | # find the pathname to a BSD- or MS-compatible name lister | |
3343 | AC_DEFUN([LT_PATH_NM], | |
3344 | [AC_REQUIRE([AC_PROG_CC])dnl | |
3345 | AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM, | |
3346 | [if test -n "$NM"; then | |
3347 | # Let the user override the test. | |
3348 | lt_cv_path_NM="$NM" | |
3349 | else | |
3350 | lt_nm_to_check="${ac_tool_prefix}nm" | |
3351 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
3352 | lt_nm_to_check="$lt_nm_to_check nm" | |
3353 | fi | |
3354 | for lt_tmp_nm in $lt_nm_to_check; do | |
3355 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
3356 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
3357 | IFS="$lt_save_ifs" | |
3358 | test -z "$ac_dir" && ac_dir=. | |
3359 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
3360 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
3361 | # Check to see if the nm accepts a BSD-compat flag. | |
3362 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3363 | # nm: unknown option "B" ignored | |
3364 | # Tru64's nm complains that /dev/null is an invalid object file | |
3365 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
3366 | */dev/null* | *'Invalid file or object type'*) | |
3367 | lt_cv_path_NM="$tmp_nm -B" | |
3368 | break | |
3369 | ;; | |
3370 | *) | |
3371 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
3372 | */dev/null*) | |
3373 | lt_cv_path_NM="$tmp_nm -p" | |
3374 | break | |
3375 | ;; | |
3376 | *) | |
3377 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
3378 | continue # so that we can try to find one that supports BSD flags | |
3379 | ;; | |
3380 | esac | |
3381 | ;; | |
3382 | esac | |
3383 | fi | |
3384 | done | |
3385 | IFS="$lt_save_ifs" | |
3386 | done | |
3387 | : ${lt_cv_path_NM=no} | |
3388 | fi]) | |
3389 | if test "$lt_cv_path_NM" != "no"; then | |
3390 | NM="$lt_cv_path_NM" | |
3391 | else | |
3392 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
3393 | if test -n "$DUMPBIN"; then : | |
3394 | # Let the user override the test. | |
3395 | else | |
3396 | AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) | |
3397 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
3398 | *COFF*) | |
3399 | DUMPBIN="$DUMPBIN -symbols" | |
3400 | ;; | |
3401 | *) | |
3402 | DUMPBIN=: | |
3403 | ;; | |
3404 | esac | |
3405 | fi | |
3406 | AC_SUBST([DUMPBIN]) | |
3407 | if test "$DUMPBIN" != ":"; then | |
3408 | NM="$DUMPBIN" | |
3409 | fi | |
3410 | fi | |
3411 | test -z "$NM" && NM=nm | |
3412 | AC_SUBST([NM]) | |
3413 | _LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl | |
3414 | ||
3415 | AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface], | |
3416 | [lt_cv_nm_interface="BSD nm" | |
3417 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3418 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&AS_MESSAGE_LOG_FD) | |
3419 | (eval "$ac_compile" 2>conftest.err) | |
3420 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
3421 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD) | |
3422 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
3423 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
3424 | (eval echo "\"\$as_me:$LINENO: output\"" >&AS_MESSAGE_LOG_FD) | |
3425 | cat conftest.out >&AS_MESSAGE_LOG_FD | |
3426 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
3427 | lt_cv_nm_interface="MS dumpbin" | |
3428 | fi | |
3429 | rm -f conftest*]) | |
3430 | ])# LT_PATH_NM | |
3431 | ||
3432 | # Old names: | |
3433 | AU_ALIAS([AM_PROG_NM], [LT_PATH_NM]) | |
3434 | AU_ALIAS([AC_PROG_NM], [LT_PATH_NM]) | |
3435 | dnl aclocal-1.4 backwards compatibility: | |
3436 | dnl AC_DEFUN([AM_PROG_NM], []) | |
3437 | dnl AC_DEFUN([AC_PROG_NM], []) | |
3438 | ||
3439 | # _LT_CHECK_SHAREDLIB_FROM_LINKLIB | |
3440 | # -------------------------------- | |
3441 | # how to determine the name of the shared library | |
3442 | # associated with a specific link library. | |
3443 | # -- PORTME fill in with the dynamic library characteristics | |
3444 | m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], | |
3445 | [m4_require([_LT_DECL_EGREP]) | |
3446 | m4_require([_LT_DECL_OBJDUMP]) | |
3447 | m4_require([_LT_DECL_DLLTOOL]) | |
3448 | AC_CACHE_CHECK([how to associate runtime and link libraries], | |
3449 | lt_cv_sharedlib_from_linklib_cmd, | |
3450 | [lt_cv_sharedlib_from_linklib_cmd='unknown' | |
3451 | ||
3452 | case $host_os in | |
3453 | cygwin* | mingw* | pw32* | cegcc*) | |
3454 | # two different shell functions defined in ltmain.sh | |
3455 | # decide which to use based on capabilities of $DLLTOOL | |
3456 | case `$DLLTOOL --help 2>&1` in | |
3457 | *--identify-strict*) | |
3458 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
3459 | ;; | |
3460 | *) | |
3461 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
3462 | ;; | |
3463 | esac | |
3464 | ;; | |
3465 | *) | |
3466 | # fallback: assume linklib IS sharedlib | |
3467 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
3468 | ;; | |
3469 | esac | |
3470 | ]) | |
3471 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
3472 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
3473 | ||
3474 | _LT_DECL([], [sharedlib_from_linklib_cmd], [1], | |
3475 | [Command to associate shared and link libraries]) | |
3476 | ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | |
3477 | ||
3478 | ||
3479 | # _LT_PATH_MANIFEST_TOOL | |
3480 | # ---------------------- | |
3481 | # locate the manifest tool | |
3482 | m4_defun([_LT_PATH_MANIFEST_TOOL], | |
3483 | [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) | |
3484 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
3485 | AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], | |
3486 | [lt_cv_path_mainfest_tool=no | |
3487 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD | |
3488 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
3489 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
3490 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
3491 | lt_cv_path_mainfest_tool=yes | |
3492 | fi | |
3493 | rm -f conftest*]) | |
3494 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
3495 | MANIFEST_TOOL=: | |
3496 | fi | |
3497 | _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl | |
3498 | ])# _LT_PATH_MANIFEST_TOOL | |
3499 | ||
3500 | ||
3501 | # LT_LIB_M | |
3502 | # -------- | |
3503 | # check for math library | |
3504 | AC_DEFUN([LT_LIB_M], | |
3505 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
3506 | LIBM= | |
3507 | case $host in | |
3508 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
3509 | # These system don't have libm, or don't need it | |
3510 | ;; | |
3511 | *-ncr-sysv4.3*) | |
3512 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | |
3513 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") | |
3514 | ;; | |
3515 | *) | |
3516 | AC_CHECK_LIB(m, cos, LIBM="-lm") | |
3517 | ;; | |
3518 | esac | |
3519 | AC_SUBST([LIBM]) | |
3520 | ])# LT_LIB_M | |
3521 | ||
3522 | # Old name: | |
3523 | AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M]) | |
3524 | dnl aclocal-1.4 backwards compatibility: | |
3525 | dnl AC_DEFUN([AC_CHECK_LIBM], []) | |
3526 | ||
3527 | ||
3528 | # _LT_COMPILER_NO_RTTI([TAGNAME]) | |
3529 | # ------------------------------- | |
3530 | m4_defun([_LT_COMPILER_NO_RTTI], | |
3531 | [m4_require([_LT_TAG_COMPILER])dnl | |
3532 | ||
3533 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
3534 | ||
3535 | if test "$GCC" = yes; then | |
3536 | case $cc_basename in | |
3537 | nvcc*) | |
3538 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -Xcompiler -fno-builtin' ;; | |
3539 | *) | |
3540 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' ;; | |
3541 | esac | |
3542 | ||
3543 | _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | |
3544 | lt_cv_prog_compiler_rtti_exceptions, | |
3545 | [-fno-rtti -fno-exceptions], [], | |
3546 | [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | |
3547 | fi | |
3548 | _LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1], | |
3549 | [Compiler flag to turn off builtin functions]) | |
3550 | ])# _LT_COMPILER_NO_RTTI | |
3551 | ||
3552 | ||
3553 | # _LT_CMD_GLOBAL_SYMBOLS | |
3554 | # ---------------------- | |
3555 | m4_defun([_LT_CMD_GLOBAL_SYMBOLS], | |
3556 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
3557 | AC_REQUIRE([AC_PROG_CC])dnl | |
3558 | AC_REQUIRE([AC_PROG_AWK])dnl | |
3559 | AC_REQUIRE([LT_PATH_NM])dnl | |
3560 | AC_REQUIRE([LT_PATH_LD])dnl | |
3561 | m4_require([_LT_DECL_SED])dnl | |
3562 | m4_require([_LT_DECL_EGREP])dnl | |
3563 | m4_require([_LT_TAG_COMPILER])dnl | |
3564 | ||
3565 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
3566 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | |
3567 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | |
3568 | [ | |
3569 | # These are sane defaults that work on at least a few old systems. | |
3570 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
3571 | ||
3572 | # Character class describing NM global symbol codes. | |
3573 | symcode='[[BCDEGRST]]' | |
3574 | ||
3575 | # Regexp to match symbols that can be accessed directly from C. | |
3576 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | |
3577 | ||
3578 | # Define system-specific variables. | |
3579 | case $host_os in | |
3580 | aix*) | |
3581 | symcode='[[BCDT]]' | |
3582 | ;; | |
3583 | cygwin* | mingw* | pw32* | cegcc*) | |
3584 | symcode='[[ABCDGISTW]]' | |
3585 | ;; | |
3586 | hpux*) | |
3587 | if test "$host_cpu" = ia64; then | |
3588 | symcode='[[ABCDEGRST]]' | |
3589 | fi | |
3590 | ;; | |
3591 | irix* | nonstopux*) | |
3592 | symcode='[[BCDEGRST]]' | |
3593 | ;; | |
3594 | osf*) | |
3595 | symcode='[[BCDEGQRST]]' | |
3596 | ;; | |
3597 | solaris*) | |
3598 | symcode='[[BDRT]]' | |
3599 | ;; | |
3600 | sco3.2v5*) | |
3601 | symcode='[[DT]]' | |
3602 | ;; | |
3603 | sysv4.2uw2*) | |
3604 | symcode='[[DT]]' | |
3605 | ;; | |
3606 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
3607 | symcode='[[ABDT]]' | |
3608 | ;; | |
3609 | sysv4) | |
3610 | symcode='[[DFNSTU]]' | |
3611 | ;; | |
3612 | esac | |
3613 | ||
3614 | # If we're using GNU nm, then use its standard symbol codes. | |
3615 | case `$NM -V 2>&1` in | |
3616 | *GNU* | *'with BFD'*) | |
3617 | symcode='[[ABCDGIRSTW]]' ;; | |
3618 | esac | |
3619 | ||
3620 | # Transform an extracted symbol line into a proper C declaration. | |
3621 | # Some systems (esp. on ia64) link data and code symbols differently, | |
3622 | # so use this general approach. | |
3623 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
3624 | ||
3625 | # Transform an extracted symbol line into symbol name and symbol address | |
3626 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
3627 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'" | |
3628 | ||
3629 | # Handle CRLF in mingw tool chain | |
3630 | opt_cr= | |
3631 | case $build_os in | |
3632 | mingw*) | |
3633 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
3634 | ;; | |
3635 | esac | |
3636 | ||
3637 | # Try without a prefix underscore, then with it. | |
3638 | for ac_symprfx in "" "_"; do | |
3639 | ||
3640 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
3641 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
3642 | ||
3643 | # Write the raw and C identifiers. | |
3644 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
3645 | # Fake it for dumpbin and say T for any non-static function | |
3646 | # and D for any global variable. | |
3647 | # Also find C++ and __fastcall symbols from MSVC++, | |
3648 | # which start with @ or ?. | |
3649 | lt_cv_sys_global_symbol_pipe="$AWK ['"\ | |
3650 | " {last_section=section; section=\$ 3};"\ | |
3651 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
3652 | " \$ 0!~/External *\|/{next};"\ | |
3653 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
3654 | " {if(hide[section]) next};"\ | |
3655 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
3656 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
3657 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
3658 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
3659 | " ' prfx=^$ac_symprfx]" | |
3660 | else | |
3661 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
3662 | fi | |
3663 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
3664 | ||
3665 | # Check to see that the pipe works correctly. | |
3666 | pipe_works=no | |
3667 | ||
3668 | rm -f conftest* | |
3669 | cat > conftest.$ac_ext <<_LT_EOF | |
3670 | #ifdef __cplusplus | |
3671 | extern "C" { | |
3672 | #endif | |
3673 | char nm_test_var; | |
3674 | void nm_test_func(void); | |
3675 | void nm_test_func(void){} | |
3676 | #ifdef __cplusplus | |
3677 | } | |
3678 | #endif | |
3679 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
3680 | _LT_EOF | |
3681 | ||
3682 | if AC_TRY_EVAL(ac_compile); then | |
3683 | # Now try to grab the symbols. | |
3684 | nlist=conftest.nm | |
3685 | if AC_TRY_EVAL(NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) && test -s "$nlist"; then | |
3686 | # Try sorting and uniquifying the output. | |
3687 | if sort "$nlist" | uniq > "$nlist"T; then | |
3688 | mv -f "$nlist"T "$nlist" | |
3689 | else | |
3690 | rm -f "$nlist"T | |
3691 | fi | |
3692 | ||
3693 | # Make sure that we snagged all the symbols we need. | |
3694 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
3695 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
3696 | cat <<_LT_EOF > conftest.$ac_ext | |
3697 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
3698 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
3699 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
3700 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
3701 | # define LT@&t@_DLSYM_CONST | |
3702 | #elif defined(__osf__) | |
3703 | /* This system does not cope well with relocations in const data. */ | |
3704 | # define LT@&t@_DLSYM_CONST | |
3705 | #else | |
3706 | # define LT@&t@_DLSYM_CONST const | |
3707 | #endif | |
3708 | ||
3709 | #ifdef __cplusplus | |
3710 | extern "C" { | |
3711 | #endif | |
3712 | ||
3713 | _LT_EOF | |
3714 | # Now generate the symbol file. | |
3715 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
3716 | ||
3717 | cat <<_LT_EOF >> conftest.$ac_ext | |
3718 | ||
3719 | /* The mapping between symbol names and symbols. */ | |
3720 | LT@&t@_DLSYM_CONST struct { | |
3721 | const char *name; | |
3722 | void *address; | |
3723 | } | |
3724 | lt__PROGRAM__LTX_preloaded_symbols[[]] = | |
3725 | { | |
3726 | { "@PROGRAM@", (void *) 0 }, | |
3727 | _LT_EOF | |
3728 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
3729 | cat <<\_LT_EOF >> conftest.$ac_ext | |
3730 | {0, (void *) 0} | |
3731 | }; | |
3732 | ||
3733 | /* This works around a problem in FreeBSD linker */ | |
3734 | #ifdef FREEBSD_WORKAROUND | |
3735 | static const void *lt_preloaded_setup() { | |
3736 | return lt__PROGRAM__LTX_preloaded_symbols; | |
3737 | } | |
3738 | #endif | |
3739 | ||
3740 | #ifdef __cplusplus | |
3741 | } | |
3742 | #endif | |
3743 | _LT_EOF | |
3744 | # Now try linking the two files. | |
3745 | mv conftest.$ac_objext conftstm.$ac_objext | |
3746 | lt_globsym_save_LIBS=$LIBS | |
3747 | lt_globsym_save_CFLAGS=$CFLAGS | |
3748 | LIBS="conftstm.$ac_objext" | |
3749 | CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | |
3750 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | |
3751 | pipe_works=yes | |
3752 | fi | |
3753 | LIBS=$lt_globsym_save_LIBS | |
3754 | CFLAGS=$lt_globsym_save_CFLAGS | |
3755 | else | |
3756 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | |
3757 | fi | |
3758 | else | |
3759 | echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | |
3760 | fi | |
3761 | else | |
3762 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | |
3763 | fi | |
3764 | else | |
3765 | echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | |
3766 | cat conftest.$ac_ext >&5 | |
3767 | fi | |
3768 | rm -rf conftest* conftst* | |
3769 | ||
3770 | # Do not use the global_symbol_pipe unless it works. | |
3771 | if test "$pipe_works" = yes; then | |
3772 | break | |
3773 | else | |
3774 | lt_cv_sys_global_symbol_pipe= | |
3775 | fi | |
3776 | done | |
3777 | ]) | |
3778 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
3779 | lt_cv_sys_global_symbol_to_cdecl= | |
3780 | fi | |
3781 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
3782 | AC_MSG_RESULT(failed) | |
3783 | else | |
3784 | AC_MSG_RESULT(ok) | |
3785 | fi | |
3786 | ||
3787 | # Response file support. | |
3788 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
3789 | nm_file_list_spec='@' | |
3790 | elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then | |
3791 | nm_file_list_spec='@' | |
3792 | fi | |
3793 | ||
3794 | _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], | |
3795 | [Take the output of nm and produce a listing of raw symbols and C names]) | |
3796 | _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], | |
3797 | [Transform the output of nm in a proper C declaration]) | |
3798 | _LT_DECL([global_symbol_to_c_name_address], | |
3799 | [lt_cv_sys_global_symbol_to_c_name_address], [1], | |
3800 | [Transform the output of nm in a C name address pair]) | |
3801 | _LT_DECL([global_symbol_to_c_name_address_lib_prefix], | |
3802 | [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], | |
3803 | [Transform the output of nm in a C name address pair when lib prefix is needed]) | |
3804 | _LT_DECL([], [nm_file_list_spec], [1], | |
3805 | [Specify filename containing input files for $NM]) | |
3806 | ]) # _LT_CMD_GLOBAL_SYMBOLS | |
3807 | ||
3808 | ||
3809 | # _LT_COMPILER_PIC([TAGNAME]) | |
3810 | # --------------------------- | |
3811 | m4_defun([_LT_COMPILER_PIC], | |
3812 | [m4_require([_LT_TAG_COMPILER])dnl | |
3813 | _LT_TAGVAR(lt_prog_compiler_wl, $1)= | |
3814 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
3815 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
3816 | ||
3817 | m4_if([$1], [CXX], [ | |
3818 | # C++ specific cases for pic, static, wl, etc. | |
3819 | if test "$GXX" = yes; then | |
3820 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
3821 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
3822 | ||
3823 | case $host_os in | |
3824 | aix*) | |
3825 | # All AIX code is PIC. | |
3826 | if test "$host_cpu" = ia64; then | |
3827 | # AIX 5 now supports IA64 processor | |
3828 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
3829 | fi | |
3830 | ;; | |
3831 | ||
3832 | amigaos*) | |
3833 | case $host_cpu in | |
3834 | powerpc) | |
3835 | # see comment about AmigaOS4 .so support | |
3836 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
3837 | ;; | |
3838 | m68k) | |
3839 | # FIXME: we need at least 68020 code to build shared libraries, but | |
3840 | # adding the `-m68020' flag to GCC prevents building anything better, | |
3841 | # like `-m68040'. | |
3842 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
3843 | ;; | |
3844 | esac | |
3845 | ;; | |
3846 | ||
3847 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
3848 | # PIC is the default for these OSes. | |
3849 | ;; | |
3850 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
3851 | # This hack is so that the source file can tell whether it is being | |
3852 | # built for inclusion in a dll (and should export symbols for example). | |
3853 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
3854 | # (--disable-auto-import) libraries | |
3855 | m4_if([$1], [GCJ], [], | |
3856 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
3857 | ;; | |
3858 | darwin* | rhapsody*) | |
3859 | # PIC is the default on this platform | |
3860 | # Common symbols not allowed in MH_DYLIB files | |
3861 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | |
3862 | ;; | |
3863 | *djgpp*) | |
3864 | # DJGPP does not support shared libraries at all | |
3865 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
3866 | ;; | |
3867 | haiku*) | |
3868 | # PIC is the default for Haiku. | |
3869 | # The "-static" flag exists, but is broken. | |
3870 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
3871 | ;; | |
3872 | interix[[3-9]]*) | |
3873 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
3874 | # Instead, we relocate shared libraries at runtime. | |
3875 | ;; | |
3876 | sysv4*MP*) | |
3877 | if test -d /usr/nec; then | |
3878 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | |
3879 | fi | |
3880 | ;; | |
3881 | hpux*) | |
3882 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
3883 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
3884 | # sets the default TLS model and affects inlining. | |
3885 | case $host_cpu in | |
3886 | hppa*64*) | |
3887 | ;; | |
3888 | *) | |
3889 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
3890 | ;; | |
3891 | esac | |
3892 | ;; | |
3893 | *qnx* | *nto*) | |
3894 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
3895 | # it will coredump. | |
3896 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
3897 | ;; | |
3898 | *) | |
3899 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
3900 | ;; | |
3901 | esac | |
3902 | else | |
3903 | case $host_os in | |
3904 | aix[[4-9]]*) | |
3905 | # All AIX code is PIC. | |
3906 | if test "$host_cpu" = ia64; then | |
3907 | # AIX 5 now supports IA64 processor | |
3908 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
3909 | else | |
3910 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
3911 | fi | |
3912 | ;; | |
3913 | chorus*) | |
3914 | case $cc_basename in | |
3915 | cxch68*) | |
3916 | # Green Hills C++ Compiler | |
3917 | # _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" | |
3918 | ;; | |
3919 | esac | |
3920 | ;; | |
3921 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
3922 | # This hack is so that the source file can tell whether it is being | |
3923 | # built for inclusion in a dll (and should export symbols for example). | |
3924 | m4_if([$1], [GCJ], [], | |
3925 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
3926 | ;; | |
3927 | dgux*) | |
3928 | case $cc_basename in | |
3929 | ec++*) | |
3930 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
3931 | ;; | |
3932 | ghcx*) | |
3933 | # Green Hills C++ Compiler | |
3934 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
3935 | ;; | |
3936 | *) | |
3937 | ;; | |
3938 | esac | |
3939 | ;; | |
3940 | freebsd* | dragonfly*) | |
3941 | # FreeBSD uses GNU C++ | |
3942 | ;; | |
3943 | hpux9* | hpux10* | hpux11*) | |
3944 | case $cc_basename in | |
3945 | CC*) | |
3946 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
3947 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | |
3948 | if test "$host_cpu" != ia64; then | |
3949 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
3950 | fi | |
3951 | ;; | |
3952 | aCC*) | |
3953 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
3954 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | |
3955 | case $host_cpu in | |
3956 | hppa*64*|ia64*) | |
3957 | # +Z the default | |
3958 | ;; | |
3959 | *) | |
3960 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
3961 | ;; | |
3962 | esac | |
3963 | ;; | |
3964 | *) | |
3965 | ;; | |
3966 | esac | |
3967 | ;; | |
3968 | interix*) | |
3969 | # This is c89, which is MS Visual C++ (no shared libs) | |
3970 | # Anyone wants to do a port? | |
3971 | ;; | |
3972 | irix5* | irix6* | nonstopux*) | |
3973 | case $cc_basename in | |
3974 | CC*) | |
3975 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
3976 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
3977 | # CC pic flag -KPIC is the default. | |
3978 | ;; | |
3979 | *) | |
3980 | ;; | |
3981 | esac | |
3982 | ;; | |
3983 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
3984 | case $cc_basename in | |
3985 | KCC*) | |
3986 | # KAI C++ Compiler | |
3987 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | |
3988 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
3989 | ;; | |
3990 | ecpc* ) | |
3991 | # old Intel C++ for x86_64 which still supported -KPIC. | |
3992 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
3993 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
3994 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
3995 | ;; | |
3996 | icpc* ) | |
3997 | # Intel C++, used to be incompatible with GCC. | |
3998 | # ICC 10 doesn't accept -KPIC any more. | |
3999 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4000 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4001 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
4002 | ;; | |
4003 | pgCC* | pgcpp*) | |
4004 | # Portland Group C++ compiler | |
4005 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4006 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
4007 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4008 | ;; | |
4009 | cxx*) | |
4010 | # Compaq C++ | |
4011 | # Make sure the PIC flag is empty. It appears that all Alpha | |
4012 | # Linux and Compaq Tru64 Unix objects are PIC. | |
4013 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
4014 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
4015 | ;; | |
4016 | xlc* | xlC* | bgxl[[cC]]* | mpixl[[cC]]*) | |
4017 | # IBM XL 8.0, 9.0 on PPC and BlueGene | |
4018 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4019 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | |
4020 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | |
4021 | ;; | |
4022 | *) | |
4023 | case `$CC -V 2>&1 | sed 5q` in | |
4024 | *Sun\ C*) | |
4025 | # Sun C++ 5.9 | |
4026 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4027 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4028 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
4029 | ;; | |
4030 | esac | |
4031 | ;; | |
4032 | esac | |
4033 | ;; | |
4034 | lynxos*) | |
4035 | ;; | |
4036 | m88k*) | |
4037 | ;; | |
4038 | mvs*) | |
4039 | case $cc_basename in | |
4040 | cxx*) | |
4041 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | |
4042 | ;; | |
4043 | *) | |
4044 | ;; | |
4045 | esac | |
4046 | ;; | |
4047 | netbsd*) | |
4048 | ;; | |
4049 | *qnx* | *nto*) | |
4050 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
4051 | # it will coredump. | |
4052 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
4053 | ;; | |
4054 | osf3* | osf4* | osf5*) | |
4055 | case $cc_basename in | |
4056 | KCC*) | |
4057 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | |
4058 | ;; | |
4059 | RCC*) | |
4060 | # Rational C++ 2.4.1 | |
4061 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
4062 | ;; | |
4063 | cxx*) | |
4064 | # Digital/Compaq C++ | |
4065 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4066 | # Make sure the PIC flag is empty. It appears that all Alpha | |
4067 | # Linux and Compaq Tru64 Unix objects are PIC. | |
4068 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
4069 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
4070 | ;; | |
4071 | *) | |
4072 | ;; | |
4073 | esac | |
4074 | ;; | |
4075 | psos*) | |
4076 | ;; | |
4077 | solaris*) | |
4078 | case $cc_basename in | |
4079 | CC* | sunCC*) | |
4080 | # Sun C++ 4.2, 5.x and Centerline C++ | |
4081 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4082 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4083 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
4084 | ;; | |
4085 | gcx*) | |
4086 | # Green Hills C++ Compiler | |
4087 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
4088 | ;; | |
4089 | *) | |
4090 | ;; | |
4091 | esac | |
4092 | ;; | |
4093 | sunos4*) | |
4094 | case $cc_basename in | |
4095 | CC*) | |
4096 | # Sun C++ 4.x | |
4097 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
4098 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4099 | ;; | |
4100 | lcc*) | |
4101 | # Lucid | |
4102 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
4103 | ;; | |
4104 | *) | |
4105 | ;; | |
4106 | esac | |
4107 | ;; | |
4108 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
4109 | case $cc_basename in | |
4110 | CC*) | |
4111 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4112 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4113 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4114 | ;; | |
4115 | esac | |
4116 | ;; | |
4117 | tandem*) | |
4118 | case $cc_basename in | |
4119 | NCC*) | |
4120 | # NonStop-UX NCC 3.20 | |
4121 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4122 | ;; | |
4123 | *) | |
4124 | ;; | |
4125 | esac | |
4126 | ;; | |
4127 | vxworks*) | |
4128 | ;; | |
4129 | *) | |
4130 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
4131 | ;; | |
4132 | esac | |
4133 | fi | |
4134 | ], | |
4135 | [ | |
4136 | if test "$GCC" = yes; then | |
4137 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4138 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
4139 | ||
4140 | case $host_os in | |
4141 | aix*) | |
4142 | # All AIX code is PIC. | |
4143 | if test "$host_cpu" = ia64; then | |
4144 | # AIX 5 now supports IA64 processor | |
4145 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4146 | fi | |
4147 | ;; | |
4148 | ||
4149 | amigaos*) | |
4150 | case $host_cpu in | |
4151 | powerpc) | |
4152 | # see comment about AmigaOS4 .so support | |
4153 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4154 | ;; | |
4155 | m68k) | |
4156 | # FIXME: we need at least 68020 code to build shared libraries, but | |
4157 | # adding the `-m68020' flag to GCC prevents building anything better, | |
4158 | # like `-m68040'. | |
4159 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | |
4160 | ;; | |
4161 | esac | |
4162 | ;; | |
4163 | ||
4164 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
4165 | # PIC is the default for these OSes. | |
4166 | ;; | |
4167 | ||
4168 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
4169 | # This hack is so that the source file can tell whether it is being | |
4170 | # built for inclusion in a dll (and should export symbols for example). | |
4171 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
4172 | # (--disable-auto-import) libraries | |
4173 | m4_if([$1], [GCJ], [], | |
4174 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
4175 | ;; | |
4176 | ||
4177 | darwin* | rhapsody*) | |
4178 | # PIC is the default on this platform | |
4179 | # Common symbols not allowed in MH_DYLIB files | |
4180 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | |
4181 | ;; | |
4182 | ||
4183 | haiku*) | |
4184 | # PIC is the default for Haiku. | |
4185 | # The "-static" flag exists, but is broken. | |
4186 | _LT_TAGVAR(lt_prog_compiler_static, $1)= | |
4187 | ;; | |
4188 | ||
4189 | hpux*) | |
4190 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
4191 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
4192 | # sets the default TLS model and affects inlining. | |
4193 | case $host_cpu in | |
4194 | hppa*64*) | |
4195 | # +Z the default | |
4196 | ;; | |
4197 | *) | |
4198 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4199 | ;; | |
4200 | esac | |
4201 | ;; | |
4202 | ||
4203 | interix[[3-9]]*) | |
4204 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
4205 | # Instead, we relocate shared libraries at runtime. | |
4206 | ;; | |
4207 | ||
4208 | msdosdjgpp*) | |
4209 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
4210 | # on systems that don't support them. | |
4211 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
4212 | enable_shared=no | |
4213 | ;; | |
4214 | ||
4215 | *nto* | *qnx*) | |
4216 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
4217 | # it will coredump. | |
4218 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
4219 | ;; | |
4220 | ||
4221 | sysv4*MP*) | |
4222 | if test -d /usr/nec; then | |
4223 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | |
4224 | fi | |
4225 | ;; | |
4226 | ||
4227 | *) | |
4228 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4229 | ;; | |
4230 | esac | |
4231 | ||
4232 | case $cc_basename in | |
4233 | nvcc*) # Cuda Compiler Driver 2.2 | |
4234 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Xlinker ' | |
4235 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Xcompiler -fPIC' | |
4236 | ;; | |
4237 | esac | |
4238 | else | |
4239 | # PORTME Check for flag to pass linker flags through the system compiler. | |
4240 | case $host_os in | |
4241 | aix*) | |
4242 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4243 | if test "$host_cpu" = ia64; then | |
4244 | # AIX 5 now supports IA64 processor | |
4245 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4246 | else | |
4247 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | |
4248 | fi | |
4249 | ;; | |
4250 | ||
4251 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
4252 | # This hack is so that the source file can tell whether it is being | |
4253 | # built for inclusion in a dll (and should export symbols for example). | |
4254 | m4_if([$1], [GCJ], [], | |
4255 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
4256 | ;; | |
4257 | ||
4258 | hpux9* | hpux10* | hpux11*) | |
4259 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4260 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
4261 | # not for PA HP-UX. | |
4262 | case $host_cpu in | |
4263 | hppa*64*|ia64*) | |
4264 | # +Z the default | |
4265 | ;; | |
4266 | *) | |
4267 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | |
4268 | ;; | |
4269 | esac | |
4270 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
4271 | _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | |
4272 | ;; | |
4273 | ||
4274 | irix5* | irix6* | nonstopux*) | |
4275 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4276 | # PIC (with -KPIC) is the default. | |
4277 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
4278 | ;; | |
4279 | ||
4280 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
4281 | case $cc_basename in | |
4282 | # old Intel for x86_64 which still supported -KPIC. | |
4283 | ecc*) | |
4284 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4285 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4286 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
4287 | ;; | |
4288 | # icc used to be incompatible with GCC. | |
4289 | # ICC 10 doesn't accept -KPIC any more. | |
4290 | icc* | ifort*) | |
4291 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4292 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | |
4293 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-static' | |
4294 | ;; | |
4295 | # Lahey Fortran 8.1. | |
4296 | lf95*) | |
4297 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4298 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' | |
4299 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' | |
4300 | ;; | |
4301 | nagfor*) | |
4302 | # NAG Fortran compiler | |
4303 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' | |
4304 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
4305 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4306 | ;; | |
4307 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
4308 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
4309 | # which looks to be a dead project) | |
4310 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4311 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | |
4312 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4313 | ;; | |
4314 | ccc*) | |
4315 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4316 | # All Alpha code is PIC. | |
4317 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
4318 | ;; | |
4319 | xl* | bgxl* | bgf* | mpixl*) | |
4320 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
4321 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4322 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic' | |
4323 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' | |
4324 | ;; | |
4325 | *) | |
4326 | case `$CC -V 2>&1 | sed 5q` in | |
4327 | *Sun\ F* | *Sun*Fortran*) | |
4328 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
4329 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4330 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4331 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='' | |
4332 | ;; | |
4333 | *Sun\ C*) | |
4334 | # Sun C 5.9 | |
4335 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4336 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4337 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4338 | ;; | |
4339 | esac | |
4340 | ;; | |
4341 | esac | |
4342 | ;; | |
4343 | ||
4344 | newsos6) | |
4345 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4346 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4347 | ;; | |
4348 | ||
4349 | *nto* | *qnx*) | |
4350 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
4351 | # it will coredump. | |
4352 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared' | |
4353 | ;; | |
4354 | ||
4355 | osf3* | osf4* | osf5*) | |
4356 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4357 | # All OSF/1 code is PIC. | |
4358 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
4359 | ;; | |
4360 | ||
4361 | rdos*) | |
4362 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | |
4363 | ;; | |
4364 | ||
4365 | solaris*) | |
4366 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4367 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4368 | case $cc_basename in | |
4369 | f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
4370 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | |
4371 | *) | |
4372 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | |
4373 | esac | |
4374 | ;; | |
4375 | ||
4376 | sunos4*) | |
4377 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | |
4378 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
4379 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4380 | ;; | |
4381 | ||
4382 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
4383 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4384 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4385 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4386 | ;; | |
4387 | ||
4388 | sysv4*MP*) | |
4389 | if test -d /usr/nec ;then | |
4390 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | |
4391 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4392 | fi | |
4393 | ;; | |
4394 | ||
4395 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
4396 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4397 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | |
4398 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4399 | ;; | |
4400 | ||
4401 | unicos*) | |
4402 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | |
4403 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
4404 | ;; | |
4405 | ||
4406 | uts4*) | |
4407 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | |
4408 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
4409 | ;; | |
4410 | ||
4411 | *) | |
4412 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | |
4413 | ;; | |
4414 | esac | |
4415 | fi | |
4416 | ]) | |
4417 | case $host_os in | |
4418 | # For platforms which do not support PIC, -DPIC is meaningless: | |
4419 | *djgpp*) | |
4420 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
4421 | ;; | |
4422 | *) | |
4423 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" | |
4424 | ;; | |
4425 | esac | |
4426 | ||
4427 | AC_CACHE_CHECK([for $compiler option to produce PIC], | |
4428 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], | |
4429 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | |
4430 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) | |
4431 | ||
4432 | # | |
4433 | # Check to make sure the PIC flag actually works. | |
4434 | # | |
4435 | if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then | |
4436 | _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works], | |
4437 | [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)], | |
4438 | [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [], | |
4439 | [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in | |
4440 | "" | " "*) ;; | |
4441 | *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;; | |
4442 | esac], | |
4443 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)= | |
4444 | _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | |
4445 | fi | |
4446 | _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], | |
4447 | [Additional compiler flags for building library objects]) | |
4448 | ||
4449 | _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | |
4450 | [How to pass a linker flag through the compiler]) | |
4451 | # | |
4452 | # Check to make sure the static flag actually works. | |
4453 | # | |
4454 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\" | |
4455 | _LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | |
4456 | _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1), | |
4457 | $lt_tmp_static_flag, | |
4458 | [], | |
4459 | [_LT_TAGVAR(lt_prog_compiler_static, $1)=]) | |
4460 | _LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1], | |
4461 | [Compiler flag to prevent dynamic linking]) | |
4462 | ])# _LT_COMPILER_PIC | |
4463 | ||
4464 | ||
4465 | # _LT_LINKER_SHLIBS([TAGNAME]) | |
4466 | # ---------------------------- | |
4467 | # See if the linker supports building shared libraries. | |
4468 | m4_defun([_LT_LINKER_SHLIBS], | |
4469 | [AC_REQUIRE([LT_PATH_LD])dnl | |
4470 | AC_REQUIRE([LT_PATH_NM])dnl | |
4471 | m4_require([_LT_PATH_MANIFEST_TOOL])dnl | |
4472 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
4473 | m4_require([_LT_DECL_EGREP])dnl | |
4474 | m4_require([_LT_DECL_SED])dnl | |
4475 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl | |
4476 | m4_require([_LT_TAG_COMPILER])dnl | |
4477 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
4478 | m4_if([$1], [CXX], [ | |
4479 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
4480 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
4481 | case $host_os in | |
4482 | aix[[4-9]]*) | |
4483 | # If we're using GNU nm, then we don't want the "-C" option. | |
4484 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
4485 | # Also, AIX nm treats weak defined symbols like other global defined | |
4486 | # symbols, whereas GNU nm marks them as "W". | |
4487 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
4488 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
4489 | else | |
4490 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
4491 | fi | |
4492 | ;; | |
4493 | pw32*) | |
4494 | _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | |
4495 | ;; | |
4496 | cygwin* | mingw* | cegcc*) | |
4497 | case $cc_basename in | |
4498 | cl*) ;; | |
4499 | *) | |
4500 | _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' | |
4501 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | |
4502 | ;; | |
4503 | esac | |
4504 | ;; | |
4505 | *) | |
4506 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
4507 | ;; | |
4508 | esac | |
4509 | ], [ | |
4510 | runpath_var= | |
4511 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
4512 | _LT_TAGVAR(always_export_symbols, $1)=no | |
4513 | _LT_TAGVAR(archive_cmds, $1)= | |
4514 | _LT_TAGVAR(archive_expsym_cmds, $1)= | |
4515 | _LT_TAGVAR(compiler_needs_object, $1)=no | |
4516 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
4517 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
4518 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
4519 | _LT_TAGVAR(hardcode_automatic, $1)=no | |
4520 | _LT_TAGVAR(hardcode_direct, $1)=no | |
4521 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
4522 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
4523 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
4524 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
4525 | _LT_TAGVAR(hardcode_minus_L, $1)=no | |
4526 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
4527 | _LT_TAGVAR(inherit_rpath, $1)=no | |
4528 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
4529 | _LT_TAGVAR(module_cmds, $1)= | |
4530 | _LT_TAGVAR(module_expsym_cmds, $1)= | |
4531 | _LT_TAGVAR(old_archive_from_new_cmds, $1)= | |
4532 | _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)= | |
4533 | _LT_TAGVAR(thread_safe_flag_spec, $1)= | |
4534 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
4535 | # include_expsyms should be a list of space-separated symbols to be *always* | |
4536 | # included in the symbol list | |
4537 | _LT_TAGVAR(include_expsyms, $1)= | |
4538 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
4539 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
4540 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
4541 | # as well as any symbol that contains `d'. | |
4542 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
4543 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
4544 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
4545 | # the symbol is explicitly referenced. Since portable code cannot | |
4546 | # rely on this symbol name, it's probably fine to never include it in | |
4547 | # preloaded symbol tables. | |
4548 | # Exclude shared library initialization/finalization symbols. | |
4549 | dnl Note also adjust exclude_expsyms for C++ above. | |
4550 | extract_expsyms_cmds= | |
4551 | ||
4552 | case $host_os in | |
4553 | cygwin* | mingw* | pw32* | cegcc*) | |
4554 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
4555 | # When not using gcc, we currently assume that we are using | |
4556 | # Microsoft Visual C++. | |
4557 | if test "$GCC" != yes; then | |
4558 | with_gnu_ld=no | |
4559 | fi | |
4560 | ;; | |
4561 | interix*) | |
4562 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
4563 | with_gnu_ld=yes | |
4564 | ;; | |
4565 | openbsd*) | |
4566 | with_gnu_ld=no | |
4567 | ;; | |
4568 | esac | |
4569 | ||
4570 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
4571 | ||
4572 | # On some targets, GNU ld is compatible enough with the native linker | |
4573 | # that we're better off using the native interface for both. | |
4574 | lt_use_gnu_ld_interface=no | |
4575 | if test "$with_gnu_ld" = yes; then | |
4576 | case $host_os in | |
4577 | aix*) | |
4578 | # The AIX port of GNU ld has always aspired to compatibility | |
4579 | # with the native linker. However, as the warning in the GNU ld | |
4580 | # block says, versions before 2.19.5* couldn't really create working | |
4581 | # shared libraries, regardless of the interface used. | |
4582 | case `$LD -v 2>&1` in | |
4583 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
4584 | *\ \(GNU\ Binutils\)\ 2.[[2-9]]*) ;; | |
4585 | *\ \(GNU\ Binutils\)\ [[3-9]]*) ;; | |
4586 | *) | |
4587 | lt_use_gnu_ld_interface=yes | |
4588 | ;; | |
4589 | esac | |
4590 | ;; | |
4591 | *) | |
4592 | lt_use_gnu_ld_interface=yes | |
4593 | ;; | |
4594 | esac | |
4595 | fi | |
4596 | ||
4597 | if test "$lt_use_gnu_ld_interface" = yes; then | |
4598 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
4599 | wlarc='${wl}' | |
4600 | ||
4601 | # Set some defaults for GNU ld with shared library support. These | |
4602 | # are reset later if shared libraries are not supported. Putting them | |
4603 | # here allows them to be overridden if necessary. | |
4604 | runpath_var=LD_RUN_PATH | |
4605 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
4606 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
4607 | # ancient GNU ld didn't support --whole-archive et. al. | |
4608 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
4609 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
4610 | else | |
4611 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
4612 | fi | |
4613 | supports_anon_versioning=no | |
4614 | case `$LD -v 2>&1` in | |
4615 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
4616 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
4617 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
4618 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
4619 | *\ 2.11.*) ;; # other 2.11 versions | |
4620 | *) supports_anon_versioning=yes ;; | |
4621 | esac | |
4622 | ||
4623 | # See if GNU ld supports shared libraries. | |
4624 | case $host_os in | |
4625 | aix[[3-9]]*) | |
4626 | # On AIX/PPC, the GNU linker is very broken | |
4627 | if test "$host_cpu" != ia64; then | |
4628 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4629 | cat <<_LT_EOF 1>&2 | |
4630 | ||
4631 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
4632 | *** to be unable to reliably create shared libraries on AIX. | |
4633 | *** Therefore, libtool is disabling shared libraries support. If you | |
4634 | *** really care for shared libraries, you may want to install binutils | |
4635 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
4636 | *** You will then need to restart the configuration process. | |
4637 | ||
4638 | _LT_EOF | |
4639 | fi | |
4640 | ;; | |
4641 | ||
4642 | amigaos*) | |
4643 | case $host_cpu in | |
4644 | powerpc) | |
4645 | # see comment about AmigaOS4 .so support | |
4646 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4647 | _LT_TAGVAR(archive_expsym_cmds, $1)='' | |
4648 | ;; | |
4649 | m68k) | |
4650 | _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)' | |
4651 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
4652 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
4653 | ;; | |
4654 | esac | |
4655 | ;; | |
4656 | ||
4657 | beos*) | |
4658 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
4659 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
4660 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
4661 | # support --undefined. This deserves some investigation. FIXME | |
4662 | _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4663 | else | |
4664 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4665 | fi | |
4666 | ;; | |
4667 | ||
4668 | cygwin* | mingw* | pw32* | cegcc*) | |
4669 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
4670 | # as there is no search path for DLLs. | |
4671 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
4672 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
4673 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
4674 | _LT_TAGVAR(always_export_symbols, $1)=no | |
4675 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
4676 | _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' | |
4677 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | |
4678 | ||
4679 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
4680 | _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' | |
4681 | # If the export-symbols file already is a .def file (1st line | |
4682 | # is EXPORTS), use it as is; otherwise, prepend... | |
4683 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
4684 | cp $export_symbols $output_objdir/$soname.def; | |
4685 | else | |
4686 | echo EXPORTS > $output_objdir/$soname.def; | |
4687 | cat $export_symbols >> $output_objdir/$soname.def; | |
4688 | fi~ | |
4689 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
4690 | else | |
4691 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4692 | fi | |
4693 | ;; | |
4694 | ||
4695 | haiku*) | |
4696 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4697 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
4698 | ;; | |
4699 | ||
4700 | interix[[3-9]]*) | |
4701 | _LT_TAGVAR(hardcode_direct, $1)=no | |
4702 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4703 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
4704 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
4705 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
4706 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
4707 | # default) and relocated if they conflict, which is a slow very memory | |
4708 | # consuming and fragmenting process. To avoid this, we pick a random, | |
4709 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
4710 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
4711 | _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' | |
4712 | _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' | |
4713 | ;; | |
4714 | ||
4715 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
4716 | tmp_diet=no | |
4717 | if test "$host_os" = linux-dietlibc; then | |
4718 | case $cc_basename in | |
4719 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
4720 | esac | |
4721 | fi | |
4722 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
4723 | && test "$tmp_diet" = no | |
4724 | then | |
4725 | tmp_addflag=' $pic_flag' | |
4726 | tmp_sharedflag='-shared' | |
4727 | case $cc_basename,$host_cpu in | |
4728 | pgcc*) # Portland Group C compiler | |
4729 | _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' | |
4730 | tmp_addflag=' $pic_flag' | |
4731 | ;; | |
4732 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
4733 | # Portland Group f77 and f90 compilers | |
4734 | _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' | |
4735 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
4736 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
4737 | tmp_addflag=' -i_dynamic' ;; | |
4738 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
4739 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
4740 | ifc* | ifort*) # Intel Fortran compiler | |
4741 | tmp_addflag=' -nofor_main' ;; | |
4742 | lf95*) # Lahey Fortran 8.1 | |
4743 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
4744 | tmp_sharedflag='--shared' ;; | |
4745 | xl[[cC]]* | bgxl[[cC]]* | mpixl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
4746 | tmp_sharedflag='-qmkshrobj' | |
4747 | tmp_addflag= ;; | |
4748 | nvcc*) # Cuda Compiler Driver 2.2 | |
4749 | _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' | |
4750 | _LT_TAGVAR(compiler_needs_object, $1)=yes | |
4751 | ;; | |
4752 | esac | |
4753 | case `$CC -V 2>&1 | sed 5q` in | |
4754 | *Sun\ C*) # Sun C 5.9 | |
4755 | _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' | |
4756 | _LT_TAGVAR(compiler_needs_object, $1)=yes | |
4757 | tmp_sharedflag='-G' ;; | |
4758 | *Sun\ F*) # Sun Fortran 8.3 | |
4759 | tmp_sharedflag='-G' ;; | |
4760 | esac | |
4761 | _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4762 | ||
4763 | if test "x$supports_anon_versioning" = xyes; then | |
4764 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
4765 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
4766 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
4767 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
4768 | fi | |
4769 | ||
4770 | case $cc_basename in | |
4771 | xlf* | bgf* | bgxlf* | mpixlf*) | |
4772 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
4773 | _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive' | |
4774 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
4775 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | |
4776 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
4777 | if test "x$supports_anon_versioning" = xyes; then | |
4778 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
4779 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
4780 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
4781 | $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
4782 | fi | |
4783 | ;; | |
4784 | esac | |
4785 | else | |
4786 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4787 | fi | |
4788 | ;; | |
4789 | ||
4790 | netbsd*) | |
4791 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
4792 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
4793 | wlarc= | |
4794 | else | |
4795 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4796 | _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' | |
4797 | fi | |
4798 | ;; | |
4799 | ||
4800 | solaris*) | |
4801 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
4802 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4803 | cat <<_LT_EOF 1>&2 | |
4804 | ||
4805 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
4806 | *** create shared libraries on Solaris systems. Therefore, libtool | |
4807 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
4808 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
4809 | *** your PATH or compiler configuration so that the native linker is | |
4810 | *** used, and then restart. | |
4811 | ||
4812 | _LT_EOF | |
4813 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
4814 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4815 | _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' | |
4816 | else | |
4817 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4818 | fi | |
4819 | ;; | |
4820 | ||
4821 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
4822 | case `$LD -v 2>&1` in | |
4823 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | |
4824 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4825 | cat <<_LT_EOF 1>&2 | |
4826 | ||
4827 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
4828 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
4829 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
4830 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
4831 | *** your PATH or compiler configuration so that the native linker is | |
4832 | *** used, and then restart. | |
4833 | ||
4834 | _LT_EOF | |
4835 | ;; | |
4836 | *) | |
4837 | # For security reasons, it is highly recommended that you always | |
4838 | # use absolute paths for naming shared libraries, and exclude the | |
4839 | # DT_RUNPATH tag from executables and libraries. But doing so | |
4840 | # requires that you compile everything twice, which is a pain. | |
4841 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
4842 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
4843 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4844 | _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' | |
4845 | else | |
4846 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4847 | fi | |
4848 | ;; | |
4849 | esac | |
4850 | ;; | |
4851 | ||
4852 | sunos4*) | |
4853 | _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
4854 | wlarc= | |
4855 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
4856 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
4857 | ;; | |
4858 | ||
4859 | *) | |
4860 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
4861 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
4862 | _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' | |
4863 | else | |
4864 | _LT_TAGVAR(ld_shlibs, $1)=no | |
4865 | fi | |
4866 | ;; | |
4867 | esac | |
4868 | ||
4869 | if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then | |
4870 | runpath_var= | |
4871 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
4872 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
4873 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
4874 | fi | |
4875 | else | |
4876 | # PORTME fill in a description of your system's linker (not GNU ld) | |
4877 | case $host_os in | |
4878 | aix3*) | |
4879 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
4880 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
4881 | _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' | |
4882 | # Note: this linker hardcodes the directories in LIBPATH if there | |
4883 | # are no directories specified by -L. | |
4884 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
4885 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
4886 | # Neither direct hardcoding nor static linking is supported with a | |
4887 | # broken collect2. | |
4888 | _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
4889 | fi | |
4890 | ;; | |
4891 | ||
4892 | aix[[4-9]]*) | |
4893 | if test "$host_cpu" = ia64; then | |
4894 | # On IA64, the linker does run time linking by default, so we don't | |
4895 | # have to do anything special. | |
4896 | aix_use_runtimelinking=no | |
4897 | exp_sym_flag='-Bexport' | |
4898 | no_entry_flag="" | |
4899 | else | |
4900 | # If we're using GNU nm, then we don't want the "-C" option. | |
4901 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
4902 | # Also, AIX nm treats weak defined symbols like other global | |
4903 | # defined symbols, whereas GNU nm marks them as "W". | |
4904 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
4905 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
4906 | else | |
4907 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
4908 | fi | |
4909 | aix_use_runtimelinking=no | |
4910 | ||
4911 | # Test if we are trying to use run time linking or normal | |
4912 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
4913 | # need to do runtime linking. | |
4914 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | |
4915 | for ld_flag in $LDFLAGS; do | |
4916 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
4917 | aix_use_runtimelinking=yes | |
4918 | break | |
4919 | fi | |
4920 | done | |
4921 | ;; | |
4922 | esac | |
4923 | ||
4924 | exp_sym_flag='-bexport' | |
4925 | no_entry_flag='-bnoentry' | |
4926 | fi | |
4927 | ||
4928 | # When large executables or shared objects are built, AIX ld can | |
4929 | # have problems creating the table of contents. If linking a library | |
4930 | # or program results in "error TOC overflow" add -mminimal-toc to | |
4931 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
4932 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
4933 | ||
4934 | _LT_TAGVAR(archive_cmds, $1)='' | |
4935 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
4936 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
4937 | _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
4938 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
4939 | _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | |
4940 | ||
4941 | if test "$GCC" = yes; then | |
4942 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
4943 | # We only want to do this on AIX 4.2 and lower, the check | |
4944 | # below for broken collect2 doesn't work under 4.3+ | |
4945 | collect2name=`${CC} -print-prog-name=collect2` | |
4946 | if test -f "$collect2name" && | |
4947 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
4948 | then | |
4949 | # We have reworked collect2 | |
4950 | : | |
4951 | else | |
4952 | # We have old collect2 | |
4953 | _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
4954 | # It fails to find uninstalled libraries when the uninstalled | |
4955 | # path is not listed in the libpath. Setting hardcode_minus_L | |
4956 | # to unsupported forces relinking | |
4957 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
4958 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
4959 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
4960 | fi | |
4961 | ;; | |
4962 | esac | |
4963 | shared_flag='-shared' | |
4964 | if test "$aix_use_runtimelinking" = yes; then | |
4965 | shared_flag="$shared_flag "'${wl}-G' | |
4966 | fi | |
4967 | else | |
4968 | # not using gcc | |
4969 | if test "$host_cpu" = ia64; then | |
4970 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
4971 | # chokes on -Wl,-G. The following line is correct: | |
4972 | shared_flag='-G' | |
4973 | else | |
4974 | if test "$aix_use_runtimelinking" = yes; then | |
4975 | shared_flag='${wl}-G' | |
4976 | else | |
4977 | shared_flag='${wl}-bM:SRE' | |
4978 | fi | |
4979 | fi | |
4980 | fi | |
4981 | ||
4982 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | |
4983 | # It seems that -bexpall does not export symbols beginning with | |
4984 | # underscore (_), so it is better to generate a list of symbols to export. | |
4985 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
4986 | if test "$aix_use_runtimelinking" = yes; then | |
4987 | # Warning - without using the other runtime loading flags (-brtl), | |
4988 | # -berok will link without error, but may produce a broken library. | |
4989 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | |
4990 | # Determine the default libpath from the value encoded in an | |
4991 | # empty executable. | |
4992 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
4993 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
4994 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
4995 | else | |
4996 | if test "$host_cpu" = ia64; then | |
4997 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | |
4998 | _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
4999 | _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" | |
5000 | else | |
5001 | # Determine the default libpath from the value encoded in an | |
5002 | # empty executable. | |
5003 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
5004 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
5005 | # Warning - without using the other run time loading flags, | |
5006 | # -berok will link without error, but may produce a broken library. | |
5007 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | |
5008 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | |
5009 | if test "$with_gnu_ld" = yes; then | |
5010 | # We only use this code for GNU lds that support --whole-archive. | |
5011 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
5012 | else | |
5013 | # Exported symbols can be pulled into shared objects from archives | |
5014 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
5015 | fi | |
5016 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
5017 | # This is similar to how AIX traditionally builds its shared libraries. | |
5018 | _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
5019 | fi | |
5020 | fi | |
5021 | ;; | |
5022 | ||
5023 | amigaos*) | |
5024 | case $host_cpu in | |
5025 | powerpc) | |
5026 | # see comment about AmigaOS4 .so support | |
5027 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5028 | _LT_TAGVAR(archive_expsym_cmds, $1)='' | |
5029 | ;; | |
5030 | m68k) | |
5031 | _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)' | |
5032 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5033 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5034 | ;; | |
5035 | esac | |
5036 | ;; | |
5037 | ||
5038 | bsdi[[45]]*) | |
5039 | _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | |
5040 | ;; | |
5041 | ||
5042 | cygwin* | mingw* | pw32* | cegcc*) | |
5043 | # When not using gcc, we currently assume that we are using | |
5044 | # Microsoft Visual C++. | |
5045 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
5046 | # no search path for DLLs. | |
5047 | case $cc_basename in | |
5048 | cl*) | |
5049 | # Native MSVC | |
5050 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
5051 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5052 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
5053 | _LT_TAGVAR(file_list_spec, $1)='@' | |
5054 | # Tell ltmain to make .lib files, not .a files. | |
5055 | libext=lib | |
5056 | # Tell ltmain to make .dll files, not .so files. | |
5057 | shrext_cmds=".dll" | |
5058 | # FIXME: Setting linknames here is a bad hack. | |
5059 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
5060 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
5061 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
5062 | else | |
5063 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
5064 | fi~ | |
5065 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
5066 | linknames=' | |
5067 | # The linker will not automatically build a static lib if we build a DLL. | |
5068 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
5069 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
5070 | _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' | |
5071 | # Don't use ranlib | |
5072 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | |
5073 | _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | |
5074 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
5075 | case $lt_outputfile in | |
5076 | *.exe|*.EXE) ;; | |
5077 | *) | |
5078 | lt_outputfile="$lt_outputfile.exe" | |
5079 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
5080 | ;; | |
5081 | esac~ | |
5082 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
5083 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
5084 | $RM "$lt_outputfile.manifest"; | |
5085 | fi' | |
5086 | ;; | |
5087 | *) | |
5088 | # Assume MSVC wrapper | |
5089 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
5090 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5091 | # Tell ltmain to make .lib files, not .a files. | |
5092 | libext=lib | |
5093 | # Tell ltmain to make .dll files, not .so files. | |
5094 | shrext_cmds=".dll" | |
5095 | # FIXME: Setting linknames here is a bad hack. | |
5096 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
5097 | # The linker will automatically build a .lib file if we build a DLL. | |
5098 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
5099 | # FIXME: Should let the user specify the lib program. | |
5100 | _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
5101 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
5102 | ;; | |
5103 | esac | |
5104 | ;; | |
5105 | ||
5106 | darwin* | rhapsody*) | |
5107 | _LT_DARWIN_LINKER_FEATURES($1) | |
5108 | ;; | |
5109 | ||
5110 | dgux*) | |
5111 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5112 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5113 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5114 | ;; | |
5115 | ||
5116 | freebsd1*) | |
5117 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5118 | ;; | |
5119 | ||
5120 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
5121 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
5122 | # does not break anything, and helps significantly (at the cost of a little | |
5123 | # extra space). | |
5124 | freebsd2.2*) | |
5125 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
5126 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
5127 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5128 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5129 | ;; | |
5130 | ||
5131 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
5132 | freebsd2*) | |
5133 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
5134 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5135 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5136 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5137 | ;; | |
5138 | ||
5139 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
5140 | freebsd* | dragonfly*) | |
5141 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
5142 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
5143 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5144 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5145 | ;; | |
5146 | ||
5147 | hpux9*) | |
5148 | if test "$GCC" = yes; then | |
5149 | _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
5150 | else | |
5151 | _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
5152 | fi | |
5153 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
5154 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
5155 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5156 | ||
5157 | # hardcode_minus_L: Not really in the search PATH, | |
5158 | # but as the default location of the library. | |
5159 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5160 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
5161 | ;; | |
5162 | ||
5163 | hpux10*) | |
5164 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
5165 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
5166 | else | |
5167 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
5168 | fi | |
5169 | if test "$with_gnu_ld" = no; then | |
5170 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
5171 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | |
5172 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
5173 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5174 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
5175 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
5176 | # hardcode_minus_L: Not really in the search PATH, | |
5177 | # but as the default location of the library. | |
5178 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5179 | fi | |
5180 | ;; | |
5181 | ||
5182 | hpux11*) | |
5183 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
5184 | case $host_cpu in | |
5185 | hppa*64*) | |
5186 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5187 | ;; | |
5188 | ia64*) | |
5189 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
5190 | ;; | |
5191 | *) | |
5192 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
5193 | ;; | |
5194 | esac | |
5195 | else | |
5196 | case $host_cpu in | |
5197 | hppa*64*) | |
5198 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5199 | ;; | |
5200 | ia64*) | |
5201 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
5202 | ;; | |
5203 | *) | |
5204 | m4_if($1, [], [ | |
5205 | # Older versions of the 11.00 compiler do not understand -b yet | |
5206 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
5207 | _LT_LINKER_OPTION([if $CC understands -b], | |
5208 | _LT_TAGVAR(lt_cv_prog_compiler__b, $1), [-b], | |
5209 | [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'], | |
5210 | [_LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'])], | |
5211 | [_LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags']) | |
5212 | ;; | |
5213 | esac | |
5214 | fi | |
5215 | if test "$with_gnu_ld" = no; then | |
5216 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
5217 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
5218 | ||
5219 | case $host_cpu in | |
5220 | hppa*64*|ia64*) | |
5221 | _LT_TAGVAR(hardcode_direct, $1)=no | |
5222 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5223 | ;; | |
5224 | *) | |
5225 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5226 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
5227 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
5228 | ||
5229 | # hardcode_minus_L: Not really in the search PATH, | |
5230 | # but as the default location of the library. | |
5231 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5232 | ;; | |
5233 | esac | |
5234 | fi | |
5235 | ;; | |
5236 | ||
5237 | irix5* | irix6* | nonstopux*) | |
5238 | if test "$GCC" = yes; then | |
5239 | _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' | |
5240 | # Try to use the -exported_symbol ld option, if it does not | |
5241 | # work, assume that -exports_file does not work either and | |
5242 | # implicitly export all symbols. | |
5243 | # This should be the same for all languages, so no per-tag cache variable. | |
5244 | AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], | |
5245 | [lt_cv_irix_exported_symbol], | |
5246 | [save_LDFLAGS="$LDFLAGS" | |
5247 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
5248 | AC_LINK_IFELSE( | |
5249 | [AC_LANG_SOURCE( | |
5250 | [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], | |
5251 | [C++], [[int foo (void) { return 0; }]], | |
5252 | [Fortran 77], [[ | |
5253 | subroutine foo | |
5254 | end]], | |
5255 | [Fortran], [[ | |
5256 | subroutine foo | |
5257 | end]])])], | |
5258 | [lt_cv_irix_exported_symbol=yes], | |
5259 | [lt_cv_irix_exported_symbol=no]) | |
5260 | LDFLAGS="$save_LDFLAGS"]) | |
5261 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
5262 | _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' | |
5263 | fi | |
5264 | else | |
5265 | _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' | |
5266 | _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' | |
5267 | fi | |
5268 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | |
5269 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
5270 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
5271 | _LT_TAGVAR(inherit_rpath, $1)=yes | |
5272 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
5273 | ;; | |
5274 | ||
5275 | netbsd*) | |
5276 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
5277 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
5278 | else | |
5279 | _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
5280 | fi | |
5281 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
5282 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5283 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5284 | ;; | |
5285 | ||
5286 | newsos6) | |
5287 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5288 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5289 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
5290 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
5291 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5292 | ;; | |
5293 | ||
5294 | *nto* | *qnx*) | |
5295 | ;; | |
5296 | ||
5297 | openbsd*) | |
5298 | if test -f /usr/libexec/ld.so; then | |
5299 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5300 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5301 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
5302 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5303 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
5304 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
5305 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
5306 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
5307 | else | |
5308 | case $host_os in | |
5309 | openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | |
5310 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
5311 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
5312 | ;; | |
5313 | *) | |
5314 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
5315 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
5316 | ;; | |
5317 | esac | |
5318 | fi | |
5319 | else | |
5320 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5321 | fi | |
5322 | ;; | |
5323 | ||
5324 | os2*) | |
5325 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5326 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5327 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5328 | _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
5329 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
5330 | ;; | |
5331 | ||
5332 | osf3*) | |
5333 | if test "$GCC" = yes; then | |
5334 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
5335 | _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' | |
5336 | else | |
5337 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
5338 | _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' | |
5339 | fi | |
5340 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | |
5341 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
5342 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
5343 | ;; | |
5344 | ||
5345 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
5346 | if test "$GCC" = yes; then | |
5347 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
5348 | _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' | |
5349 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
5350 | else | |
5351 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
5352 | _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' | |
5353 | _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~ | |
5354 | $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' | |
5355 | ||
5356 | # Both c and cxx compiler support -rpath directly | |
5357 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
5358 | fi | |
5359 | _LT_TAGVAR(archive_cmds_need_lc, $1)='no' | |
5360 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
5361 | ;; | |
5362 | ||
5363 | solaris*) | |
5364 | _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' | |
5365 | if test "$GCC" = yes; then | |
5366 | wlarc='${wl}' | |
5367 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5368 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
5369 | $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' | |
5370 | else | |
5371 | case `$CC -V 2>&1` in | |
5372 | *"Compilers 5.0"*) | |
5373 | wlarc='' | |
5374 | _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5375 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
5376 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
5377 | ;; | |
5378 | *) | |
5379 | wlarc='${wl}' | |
5380 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
5381 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
5382 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
5383 | ;; | |
5384 | esac | |
5385 | fi | |
5386 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
5387 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5388 | case $host_os in | |
5389 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
5390 | *) | |
5391 | # The compiler driver will combine and reorder linker options, | |
5392 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
5393 | # but is careful enough not to reorder. | |
5394 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
5395 | if test "$GCC" = yes; then | |
5396 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
5397 | else | |
5398 | _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' | |
5399 | fi | |
5400 | ;; | |
5401 | esac | |
5402 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
5403 | ;; | |
5404 | ||
5405 | sunos4*) | |
5406 | if test "x$host_vendor" = xsequent; then | |
5407 | # Use $CC to link under sequent, because it throws in some extra .o | |
5408 | # files that make .init and .fini sections work. | |
5409 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
5410 | else | |
5411 | _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
5412 | fi | |
5413 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5414 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5415 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5416 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5417 | ;; | |
5418 | ||
5419 | sysv4) | |
5420 | case $host_vendor in | |
5421 | sni) | |
5422 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5423 | _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true??? | |
5424 | ;; | |
5425 | siemens) | |
5426 | ## LD is ld it makes a PLAMLIB | |
5427 | ## CC just makes a GrossModule. | |
5428 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
5429 | _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' | |
5430 | _LT_TAGVAR(hardcode_direct, $1)=no | |
5431 | ;; | |
5432 | motorola) | |
5433 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5434 | _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie | |
5435 | ;; | |
5436 | esac | |
5437 | runpath_var='LD_RUN_PATH' | |
5438 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5439 | ;; | |
5440 | ||
5441 | sysv4.3*) | |
5442 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5443 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5444 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' | |
5445 | ;; | |
5446 | ||
5447 | sysv4*MP*) | |
5448 | if test -d /usr/nec; then | |
5449 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5450 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5451 | runpath_var=LD_RUN_PATH | |
5452 | hardcode_runpath_var=yes | |
5453 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
5454 | fi | |
5455 | ;; | |
5456 | ||
5457 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | |
5458 | _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
5459 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
5460 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5461 | runpath_var='LD_RUN_PATH' | |
5462 | ||
5463 | if test "$GCC" = yes; then | |
5464 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5465 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5466 | else | |
5467 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5468 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5469 | fi | |
5470 | ;; | |
5471 | ||
5472 | sysv5* | sco3.2v5* | sco5v6*) | |
5473 | # Note: We can NOT use -z defs as we might desire, because we do not | |
5474 | # link with -lc, and that would cause any symbols used from libc to | |
5475 | # always be unresolved, which means just about no library would | |
5476 | # ever link correctly. If we're not using GNU ld we use -z text | |
5477 | # though, which does catch some bad symbols but isn't as heavy-handed | |
5478 | # as -z defs. | |
5479 | _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
5480 | _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
5481 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
5482 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5483 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | |
5484 | _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
5485 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
5486 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
5487 | runpath_var='LD_RUN_PATH' | |
5488 | ||
5489 | if test "$GCC" = yes; then | |
5490 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5491 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5492 | else | |
5493 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5494 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
5495 | fi | |
5496 | ;; | |
5497 | ||
5498 | uts4*) | |
5499 | _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
5500 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5501 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
5502 | ;; | |
5503 | ||
5504 | *) | |
5505 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5506 | ;; | |
5507 | esac | |
5508 | ||
5509 | if test x$host_vendor = xsni; then | |
5510 | case $host in | |
5511 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
5512 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym' | |
5513 | ;; | |
5514 | esac | |
5515 | fi | |
5516 | fi | |
5517 | ]) | |
5518 | AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | |
5519 | test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
5520 | ||
5521 | _LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld | |
5522 | ||
5523 | _LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl | |
5524 | _LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl | |
5525 | _LT_DECL([], [extract_expsyms_cmds], [2], | |
5526 | [The commands to extract the exported symbol list from a shared archive]) | |
5527 | ||
5528 | # | |
5529 | # Do we need to explicitly link libc? | |
5530 | # | |
5531 | case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in | |
5532 | x|xyes) | |
5533 | # Assume -lc should be added | |
5534 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
5535 | ||
5536 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
5537 | case $_LT_TAGVAR(archive_cmds, $1) in | |
5538 | *'~'*) | |
5539 | # FIXME: we may have to deal with multi-command sequences. | |
5540 | ;; | |
5541 | '$CC '*) | |
5542 | # Test whether the compiler implicitly links with -lc since on some | |
5543 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
5544 | # to ld, don't add -lc before -lgcc. | |
5545 | AC_CACHE_CHECK([whether -lc should be explicitly linked in], | |
5546 | [lt_cv_]_LT_TAGVAR(archive_cmds_need_lc, $1), | |
5547 | [$RM conftest* | |
5548 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
5549 | ||
5550 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then | |
5551 | soname=conftest | |
5552 | lib=conftest | |
5553 | libobjs=conftest.$ac_objext | |
5554 | deplibs= | |
5555 | wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) | |
5556 | pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1) | |
5557 | compiler_flags=-v | |
5558 | linker_flags=-v | |
5559 | verstring= | |
5560 | output_objdir=. | |
5561 | libname=conftest | |
5562 | lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1) | |
5563 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
5564 | if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) | |
5565 | then | |
5566 | lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
5567 | else | |
5568 | lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
5569 | fi | |
5570 | _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | |
5571 | else | |
5572 | cat conftest.err 1>&5 | |
5573 | fi | |
5574 | $RM conftest* | |
5575 | ]) | |
5576 | _LT_TAGVAR(archive_cmds_need_lc, $1)=$lt_cv_[]_LT_TAGVAR(archive_cmds_need_lc, $1) | |
5577 | ;; | |
5578 | esac | |
5579 | fi | |
5580 | ;; | |
5581 | esac | |
5582 | ||
5583 | _LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0], | |
5584 | [Whether or not to add -lc for building shared libraries]) | |
5585 | _LT_TAGDECL([allow_libtool_libs_with_static_runtimes], | |
5586 | [enable_shared_with_static_runtimes], [0], | |
5587 | [Whether or not to disallow shared libs when runtime libs are static]) | |
5588 | _LT_TAGDECL([], [export_dynamic_flag_spec], [1], | |
5589 | [Compiler flag to allow reflexive dlopens]) | |
5590 | _LT_TAGDECL([], [whole_archive_flag_spec], [1], | |
5591 | [Compiler flag to generate shared objects directly from archives]) | |
5592 | _LT_TAGDECL([], [compiler_needs_object], [1], | |
5593 | [Whether the compiler copes with passing no objects directly]) | |
5594 | _LT_TAGDECL([], [old_archive_from_new_cmds], [2], | |
5595 | [Create an old-style archive from a shared archive]) | |
5596 | _LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2], | |
5597 | [Create a temporary old-style archive to link instead of a shared archive]) | |
5598 | _LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive]) | |
5599 | _LT_TAGDECL([], [archive_expsym_cmds], [2]) | |
5600 | _LT_TAGDECL([], [module_cmds], [2], | |
5601 | [Commands used to build a loadable module if different from building | |
5602 | a shared archive.]) | |
5603 | _LT_TAGDECL([], [module_expsym_cmds], [2]) | |
5604 | _LT_TAGDECL([], [with_gnu_ld], [1], | |
5605 | [Whether we are building with GNU ld or not]) | |
5606 | _LT_TAGDECL([], [allow_undefined_flag], [1], | |
5607 | [Flag that allows shared libraries with undefined symbols to be built]) | |
5608 | _LT_TAGDECL([], [no_undefined_flag], [1], | |
5609 | [Flag that enforces no undefined symbols]) | |
5610 | _LT_TAGDECL([], [hardcode_libdir_flag_spec], [1], | |
5611 | [Flag to hardcode $libdir into a binary during linking. | |
5612 | This must work even if $libdir does not exist]) | |
5613 | _LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1], | |
5614 | [[If ld is used when linking, flag to hardcode $libdir into a binary | |
5615 | during linking. This must work even if $libdir does not exist]]) | |
5616 | _LT_TAGDECL([], [hardcode_libdir_separator], [1], | |
5617 | [Whether we need a single "-rpath" flag with a separated argument]) | |
5618 | _LT_TAGDECL([], [hardcode_direct], [0], | |
5619 | [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | |
5620 | DIR into the resulting binary]) | |
5621 | _LT_TAGDECL([], [hardcode_direct_absolute], [0], | |
5622 | [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes | |
5623 | DIR into the resulting binary and the resulting library dependency is | |
5624 | "absolute", i.e impossible to change by setting ${shlibpath_var} if the | |
5625 | library is relocated]) | |
5626 | _LT_TAGDECL([], [hardcode_minus_L], [0], | |
5627 | [Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
5628 | into the resulting binary]) | |
5629 | _LT_TAGDECL([], [hardcode_shlibpath_var], [0], | |
5630 | [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
5631 | into the resulting binary]) | |
5632 | _LT_TAGDECL([], [hardcode_automatic], [0], | |
5633 | [Set to "yes" if building a shared library automatically hardcodes DIR | |
5634 | into the library and all subsequent libraries and executables linked | |
5635 | against it]) | |
5636 | _LT_TAGDECL([], [inherit_rpath], [0], | |
5637 | [Set to yes if linker adds runtime paths of dependent libraries | |
5638 | to runtime path list]) | |
5639 | _LT_TAGDECL([], [link_all_deplibs], [0], | |
5640 | [Whether libtool must link a program against all its dependency libraries]) | |
5641 | _LT_TAGDECL([], [always_export_symbols], [0], | |
5642 | [Set to "yes" if exported symbols are required]) | |
5643 | _LT_TAGDECL([], [export_symbols_cmds], [2], | |
5644 | [The commands to list exported symbols]) | |
5645 | _LT_TAGDECL([], [exclude_expsyms], [1], | |
5646 | [Symbols that should not be listed in the preloaded symbols]) | |
5647 | _LT_TAGDECL([], [include_expsyms], [1], | |
5648 | [Symbols that must always be exported]) | |
5649 | _LT_TAGDECL([], [prelink_cmds], [2], | |
5650 | [Commands necessary for linking programs (against libraries) with templates]) | |
5651 | _LT_TAGDECL([], [postlink_cmds], [2], | |
5652 | [Commands necessary for finishing linking programs]) | |
5653 | _LT_TAGDECL([], [file_list_spec], [1], | |
5654 | [Specify filename containing input files]) | |
5655 | dnl FIXME: Not yet implemented | |
5656 | dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1], | |
5657 | dnl [Compiler flag to generate thread safe objects]) | |
5658 | ])# _LT_LINKER_SHLIBS | |
5659 | ||
5660 | ||
5661 | # _LT_LANG_C_CONFIG([TAG]) | |
5662 | # ------------------------ | |
5663 | # Ensure that the configuration variables for a C compiler are suitably | |
5664 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
5665 | # the compiler configuration to `libtool'. | |
5666 | m4_defun([_LT_LANG_C_CONFIG], | |
5667 | [m4_require([_LT_DECL_EGREP])dnl | |
5668 | lt_save_CC="$CC" | |
5669 | AC_LANG_PUSH(C) | |
5670 | ||
5671 | # Source file extension for C test sources. | |
5672 | ac_ext=c | |
5673 | ||
5674 | # Object file extension for compiled C test sources. | |
5675 | objext=o | |
5676 | _LT_TAGVAR(objext, $1)=$objext | |
5677 | ||
5678 | # Code to be used in simple compile tests | |
5679 | lt_simple_compile_test_code="int some_variable = 0;" | |
5680 | ||
5681 | # Code to be used in simple link tests | |
5682 | lt_simple_link_test_code='int main(){return(0);}' | |
5683 | ||
5684 | _LT_TAG_COMPILER | |
5685 | # Save the default compiler, since it gets overwritten when the other | |
5686 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
5687 | compiler_DEFAULT=$CC | |
5688 | ||
5689 | # save warnings/boilerplate of simple test code | |
5690 | _LT_COMPILER_BOILERPLATE | |
5691 | _LT_LINKER_BOILERPLATE | |
5692 | ||
5693 | ## CAVEAT EMPTOR: | |
5694 | ## There is no encapsulation within the following macros, do not change | |
5695 | ## the running order or otherwise move them around unless you know exactly | |
5696 | ## what you are doing... | |
5697 | if test -n "$compiler"; then | |
5698 | _LT_COMPILER_NO_RTTI($1) | |
5699 | _LT_COMPILER_PIC($1) | |
5700 | _LT_COMPILER_C_O($1) | |
5701 | _LT_COMPILER_FILE_LOCKS($1) | |
5702 | _LT_LINKER_SHLIBS($1) | |
5703 | _LT_SYS_DYNAMIC_LINKER($1) | |
5704 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
5705 | LT_SYS_DLOPEN_SELF | |
5706 | _LT_CMD_STRIPLIB | |
5707 | ||
5708 | # Report which library types will actually be built | |
5709 | AC_MSG_CHECKING([if libtool supports shared libraries]) | |
5710 | AC_MSG_RESULT([$can_build_shared]) | |
5711 | ||
5712 | AC_MSG_CHECKING([whether to build shared libraries]) | |
5713 | test "$can_build_shared" = "no" && enable_shared=no | |
5714 | ||
5715 | # On AIX, shared libraries and static libraries use the same namespace, and | |
5716 | # are all built from PIC. | |
5717 | case $host_os in | |
5718 | aix3*) | |
5719 | test "$enable_shared" = yes && enable_static=no | |
5720 | if test -n "$RANLIB"; then | |
5721 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
5722 | postinstall_cmds='$RANLIB $lib' | |
5723 | fi | |
5724 | ;; | |
5725 | ||
5726 | aix[[4-9]]*) | |
5727 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
5728 | test "$enable_shared" = yes && enable_static=no | |
5729 | fi | |
5730 | ;; | |
5731 | esac | |
5732 | AC_MSG_RESULT([$enable_shared]) | |
5733 | ||
5734 | AC_MSG_CHECKING([whether to build static libraries]) | |
5735 | # Make sure either enable_shared or enable_static is yes. | |
5736 | test "$enable_shared" = yes || enable_static=yes | |
5737 | AC_MSG_RESULT([$enable_static]) | |
5738 | ||
5739 | _LT_CONFIG($1) | |
5740 | fi | |
5741 | AC_LANG_POP | |
5742 | CC="$lt_save_CC" | |
5743 | ])# _LT_LANG_C_CONFIG | |
5744 | ||
5745 | ||
5746 | # _LT_LANG_CXX_CONFIG([TAG]) | |
5747 | # -------------------------- | |
5748 | # Ensure that the configuration variables for a C++ compiler are suitably | |
5749 | # defined. These variables are subsequently used by _LT_CONFIG to write | |
5750 | # the compiler configuration to `libtool'. | |
5751 | m4_defun([_LT_LANG_CXX_CONFIG], | |
5752 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
5753 | m4_require([_LT_DECL_EGREP])dnl | |
5754 | m4_require([_LT_PATH_MANIFEST_TOOL])dnl | |
5755 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
5756 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
5757 | (test "X$CXX" != "Xg++"))) ; then | |
5758 | AC_PROG_CXXCPP | |
5759 | else | |
5760 | _lt_caught_CXX_error=yes | |
5761 | fi | |
5762 | ||
5763 | AC_LANG_PUSH(C++) | |
5764 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
5765 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
5766 | _LT_TAGVAR(always_export_symbols, $1)=no | |
5767 | _LT_TAGVAR(archive_expsym_cmds, $1)= | |
5768 | _LT_TAGVAR(compiler_needs_object, $1)=no | |
5769 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
5770 | _LT_TAGVAR(hardcode_direct, $1)=no | |
5771 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
5772 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
5773 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
5774 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
5775 | _LT_TAGVAR(hardcode_minus_L, $1)=no | |
5776 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | |
5777 | _LT_TAGVAR(hardcode_automatic, $1)=no | |
5778 | _LT_TAGVAR(inherit_rpath, $1)=no | |
5779 | _LT_TAGVAR(module_cmds, $1)= | |
5780 | _LT_TAGVAR(module_expsym_cmds, $1)= | |
5781 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
5782 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
5783 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
5784 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
5785 | _LT_TAGVAR(no_undefined_flag, $1)= | |
5786 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
5787 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
5788 | ||
5789 | # Source file extension for C++ test sources. | |
5790 | ac_ext=cpp | |
5791 | ||
5792 | # Object file extension for compiled C++ test sources. | |
5793 | objext=o | |
5794 | _LT_TAGVAR(objext, $1)=$objext | |
5795 | ||
5796 | # No sense in running all these tests if we already determined that | |
5797 | # the CXX compiler isn't working. Some variables (like enable_shared) | |
5798 | # are currently assumed to apply to all compilers on this platform, | |
5799 | # and will be corrupted by setting them based on a non-working compiler. | |
5800 | if test "$_lt_caught_CXX_error" != yes; then | |
5801 | # Code to be used in simple compile tests | |
5802 | lt_simple_compile_test_code="int some_variable = 0;" | |
5803 | ||
5804 | # Code to be used in simple link tests | |
5805 | lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }' | |
5806 | ||
5807 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
5808 | _LT_TAG_COMPILER | |
5809 | ||
5810 | # save warnings/boilerplate of simple test code | |
5811 | _LT_COMPILER_BOILERPLATE | |
5812 | _LT_LINKER_BOILERPLATE | |
5813 | ||
5814 | # Allow CC to be a program name with arguments. | |
5815 | lt_save_CC=$CC | |
5816 | lt_save_CFLAGS=$CFLAGS | |
5817 | lt_save_LD=$LD | |
5818 | lt_save_GCC=$GCC | |
5819 | GCC=$GXX | |
5820 | lt_save_with_gnu_ld=$with_gnu_ld | |
5821 | lt_save_path_LD=$lt_cv_path_LD | |
5822 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
5823 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
5824 | else | |
5825 | $as_unset lt_cv_prog_gnu_ld | |
5826 | fi | |
5827 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
5828 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
5829 | else | |
5830 | $as_unset lt_cv_path_LD | |
5831 | fi | |
5832 | test -z "${LDCXX+set}" || LD=$LDCXX | |
5833 | CC=${CXX-"c++"} | |
5834 | CFLAGS=$CXXFLAGS | |
5835 | compiler=$CC | |
5836 | _LT_TAGVAR(compiler, $1)=$CC | |
5837 | _LT_CC_BASENAME([$compiler]) | |
5838 | ||
5839 | if test -n "$compiler"; then | |
5840 | # We don't want -fno-exception when compiling C++ code, so set the | |
5841 | # no_builtin_flag separately | |
5842 | if test "$GXX" = yes; then | |
5843 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | |
5844 | else | |
5845 | _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | |
5846 | fi | |
5847 | ||
5848 | if test "$GXX" = yes; then | |
5849 | # Set up default GNU C++ configuration | |
5850 | ||
5851 | LT_PATH_LD | |
5852 | ||
5853 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
5854 | # archiving commands below assume that GNU ld is being used. | |
5855 | if test "$with_gnu_ld" = yes; then | |
5856 | _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5857 | _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' | |
5858 | ||
5859 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
5860 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
5861 | ||
5862 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
5863 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
5864 | # investigate it a little bit more. (MM) | |
5865 | wlarc='${wl}' | |
5866 | ||
5867 | # ancient GNU ld didn't support --whole-archive et. al. | |
5868 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
5869 | $GREP 'no-whole-archive' > /dev/null; then | |
5870 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
5871 | else | |
5872 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
5873 | fi | |
5874 | else | |
5875 | with_gnu_ld=no | |
5876 | wlarc= | |
5877 | ||
5878 | # A generic and very simple default shared library creation | |
5879 | # command for GNU C++ for the case where it uses the native | |
5880 | # linker, instead of GNU ld. If possible, this setting should | |
5881 | # overridden to take advantage of the native linker features on | |
5882 | # the platform it is being used on. | |
5883 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
5884 | fi | |
5885 | ||
5886 | # Commands to make compiler produce verbose output that lists | |
5887 | # what "hidden" libraries, object files and flags are used when | |
5888 | # linking a shared library. | |
5889 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
5890 | ||
5891 | else | |
5892 | GXX=no | |
5893 | with_gnu_ld=no | |
5894 | wlarc= | |
5895 | fi | |
5896 | ||
5897 | # PORTME: fill in a description of your system's C++ link characteristics | |
5898 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | |
5899 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
5900 | case $host_os in | |
5901 | aix3*) | |
5902 | # FIXME: insert proper C++ library support | |
5903 | _LT_TAGVAR(ld_shlibs, $1)=no | |
5904 | ;; | |
5905 | aix[[4-9]]*) | |
5906 | if test "$host_cpu" = ia64; then | |
5907 | # On IA64, the linker does run time linking by default, so we don't | |
5908 | # have to do anything special. | |
5909 | aix_use_runtimelinking=no | |
5910 | exp_sym_flag='-Bexport' | |
5911 | no_entry_flag="" | |
5912 | else | |
5913 | aix_use_runtimelinking=no | |
5914 | ||
5915 | # Test if we are trying to use run time linking or normal | |
5916 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
5917 | # need to do runtime linking. | |
5918 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*) | |
5919 | for ld_flag in $LDFLAGS; do | |
5920 | case $ld_flag in | |
5921 | *-brtl*) | |
5922 | aix_use_runtimelinking=yes | |
5923 | break | |
5924 | ;; | |
5925 | esac | |
5926 | done | |
5927 | ;; | |
5928 | esac | |
5929 | ||
5930 | exp_sym_flag='-bexport' | |
5931 | no_entry_flag='-bnoentry' | |
5932 | fi | |
5933 | ||
5934 | # When large executables or shared objects are built, AIX ld can | |
5935 | # have problems creating the table of contents. If linking a library | |
5936 | # or program results in "error TOC overflow" add -mminimal-toc to | |
5937 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
5938 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
5939 | ||
5940 | _LT_TAGVAR(archive_cmds, $1)='' | |
5941 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
5942 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
5943 | _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
5944 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
5945 | _LT_TAGVAR(file_list_spec, $1)='${wl}-f,' | |
5946 | ||
5947 | if test "$GXX" = yes; then | |
5948 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | |
5949 | # We only want to do this on AIX 4.2 and lower, the check | |
5950 | # below for broken collect2 doesn't work under 4.3+ | |
5951 | collect2name=`${CC} -print-prog-name=collect2` | |
5952 | if test -f "$collect2name" && | |
5953 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
5954 | then | |
5955 | # We have reworked collect2 | |
5956 | : | |
5957 | else | |
5958 | # We have old collect2 | |
5959 | _LT_TAGVAR(hardcode_direct, $1)=unsupported | |
5960 | # It fails to find uninstalled libraries when the uninstalled | |
5961 | # path is not listed in the libpath. Setting hardcode_minus_L | |
5962 | # to unsupported forces relinking | |
5963 | _LT_TAGVAR(hardcode_minus_L, $1)=yes | |
5964 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
5965 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
5966 | fi | |
5967 | esac | |
5968 | shared_flag='-shared' | |
5969 | if test "$aix_use_runtimelinking" = yes; then | |
5970 | shared_flag="$shared_flag "'${wl}-G' | |
5971 | fi | |
5972 | else | |
5973 | # not using gcc | |
5974 | if test "$host_cpu" = ia64; then | |
5975 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
5976 | # chokes on -Wl,-G. The following line is correct: | |
5977 | shared_flag='-G' | |
5978 | else | |
5979 | if test "$aix_use_runtimelinking" = yes; then | |
5980 | shared_flag='${wl}-G' | |
5981 | else | |
5982 | shared_flag='${wl}-bM:SRE' | |
5983 | fi | |
5984 | fi | |
5985 | fi | |
5986 | ||
5987 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall' | |
5988 | # It seems that -bexpall does not export symbols beginning with | |
5989 | # underscore (_), so it is better to generate a list of symbols to | |
5990 | # export. | |
5991 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
5992 | if test "$aix_use_runtimelinking" = yes; then | |
5993 | # Warning - without using the other runtime loading flags (-brtl), | |
5994 | # -berok will link without error, but may produce a broken library. | |
5995 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' | |
5996 | # Determine the default libpath from the value encoded in an empty | |
5997 | # executable. | |
5998 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
5999 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6000 | ||
6001 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
6002 | else | |
6003 | if test "$host_cpu" = ia64; then | |
6004 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | |
6005 | _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | |
6006 | _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" | |
6007 | else | |
6008 | # Determine the default libpath from the value encoded in an | |
6009 | # empty executable. | |
6010 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
6011 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | |
6012 | # Warning - without using the other run time loading flags, | |
6013 | # -berok will link without error, but may produce a broken library. | |
6014 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | |
6015 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | |
6016 | if test "$with_gnu_ld" = yes; then | |
6017 | # We only use this code for GNU lds that support --whole-archive. | |
6018 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
6019 | else | |
6020 | # Exported symbols can be pulled into shared objects from archives | |
6021 | _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | |
6022 | fi | |
6023 | _LT_TAGVAR(archive_cmds_need_lc, $1)=yes | |
6024 | # This is similar to how AIX traditionally builds its shared | |
6025 | # libraries. | |
6026 | _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
6027 | fi | |
6028 | fi | |
6029 | ;; | |
6030 | ||
6031 | beos*) | |
6032 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
6033 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6034 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
6035 | # support --undefined. This deserves some investigation. FIXME | |
6036 | _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6037 | else | |
6038 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6039 | fi | |
6040 | ;; | |
6041 | ||
6042 | chorus*) | |
6043 | case $cc_basename in | |
6044 | *) | |
6045 | # FIXME: insert proper C++ library support | |
6046 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6047 | ;; | |
6048 | esac | |
6049 | ;; | |
6050 | ||
6051 | cygwin* | mingw* | pw32* | cegcc*) | |
6052 | case $GXX,$cc_basename in | |
6053 | ,cl* | no,cl*) | |
6054 | # Native MSVC | |
6055 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
6056 | # no search path for DLLs. | |
6057 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
6058 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6059 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
6060 | _LT_TAGVAR(file_list_spec, $1)='@' | |
6061 | # Tell ltmain to make .lib files, not .a files. | |
6062 | libext=lib | |
6063 | # Tell ltmain to make .dll files, not .so files. | |
6064 | shrext_cmds=".dll" | |
6065 | # FIXME: Setting linknames here is a bad hack. | |
6066 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
6067 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
6068 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
6069 | else | |
6070 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
6071 | fi~ | |
6072 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
6073 | linknames=' | |
6074 | # The linker will not automatically build a static lib if we build a DLL. | |
6075 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
6076 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
6077 | # Don't use ranlib | |
6078 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | |
6079 | _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | |
6080 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
6081 | case $lt_outputfile in | |
6082 | *.exe|*.EXE) ;; | |
6083 | *) | |
6084 | lt_outputfile="$lt_outputfile.exe" | |
6085 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
6086 | ;; | |
6087 | esac~ | |
6088 | func_to_tool_file "$lt_outputfile"~ | |
6089 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
6090 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
6091 | $RM "$lt_outputfile.manifest"; | |
6092 | fi' | |
6093 | ;; | |
6094 | *) | |
6095 | # g++ | |
6096 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
6097 | # as there is no search path for DLLs. | |
6098 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6099 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
6100 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6101 | _LT_TAGVAR(always_export_symbols, $1)=no | |
6102 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
6103 | ||
6104 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
6105 | _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' | |
6106 | # If the export-symbols file already is a .def file (1st line | |
6107 | # is EXPORTS), use it as is; otherwise, prepend... | |
6108 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
6109 | cp $export_symbols $output_objdir/$soname.def; | |
6110 | else | |
6111 | echo EXPORTS > $output_objdir/$soname.def; | |
6112 | cat $export_symbols >> $output_objdir/$soname.def; | |
6113 | fi~ | |
6114 | $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' | |
6115 | else | |
6116 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6117 | fi | |
6118 | ;; | |
6119 | esac | |
6120 | ;; | |
6121 | darwin* | rhapsody*) | |
6122 | _LT_DARWIN_LINKER_FEATURES($1) | |
6123 | ;; | |
6124 | ||
6125 | dgux*) | |
6126 | case $cc_basename in | |
6127 | ec++*) | |
6128 | # FIXME: insert proper C++ library support | |
6129 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6130 | ;; | |
6131 | ghcx*) | |
6132 | # Green Hills C++ Compiler | |
6133 | # FIXME: insert proper C++ library support | |
6134 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6135 | ;; | |
6136 | *) | |
6137 | # FIXME: insert proper C++ library support | |
6138 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6139 | ;; | |
6140 | esac | |
6141 | ;; | |
6142 | ||
6143 | freebsd[[12]]*) | |
6144 | # C++ shared libraries reported to be fairly broken before | |
6145 | # switch to ELF | |
6146 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6147 | ;; | |
6148 | ||
6149 | freebsd-elf*) | |
6150 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6151 | ;; | |
6152 | ||
6153 | freebsd* | dragonfly*) | |
6154 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
6155 | # conventions | |
6156 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
6157 | ;; | |
6158 | ||
6159 | gnu*) | |
6160 | ;; | |
6161 | ||
6162 | haiku*) | |
6163 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6164 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6165 | ;; | |
6166 | ||
6167 | hpux9*) | |
6168 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6169 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6170 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6171 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6172 | _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
6173 | # but as the default | |
6174 | # location of the library. | |
6175 | ||
6176 | case $cc_basename in | |
6177 | CC*) | |
6178 | # FIXME: insert proper C++ library support | |
6179 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6180 | ;; | |
6181 | aCC*) | |
6182 | _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
6183 | # Commands to make compiler produce verbose output that lists | |
6184 | # what "hidden" libraries, object files and flags are used when | |
6185 | # linking a shared library. | |
6186 | # | |
6187 | # There doesn't appear to be a way to prevent this compiler from | |
6188 | # explicitly linking system object files so we need to strip them | |
6189 | # from the output so that they don't get included in the library | |
6190 | # dependencies. | |
6191 | 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"' | |
6192 | ;; | |
6193 | *) | |
6194 | if test "$GXX" = yes; then | |
6195 | _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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
6196 | else | |
6197 | # FIXME: insert proper C++ library support | |
6198 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6199 | fi | |
6200 | ;; | |
6201 | esac | |
6202 | ;; | |
6203 | ||
6204 | hpux10*|hpux11*) | |
6205 | if test $with_gnu_ld = no; then | |
6206 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | |
6207 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6208 | ||
6209 | case $host_cpu in | |
6210 | hppa*64*|ia64*) | |
6211 | ;; | |
6212 | *) | |
6213 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6214 | ;; | |
6215 | esac | |
6216 | fi | |
6217 | case $host_cpu in | |
6218 | hppa*64*|ia64*) | |
6219 | _LT_TAGVAR(hardcode_direct, $1)=no | |
6220 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6221 | ;; | |
6222 | *) | |
6223 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6224 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
6225 | _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | |
6226 | # but as the default | |
6227 | # location of the library. | |
6228 | ;; | |
6229 | esac | |
6230 | ||
6231 | case $cc_basename in | |
6232 | CC*) | |
6233 | # FIXME: insert proper C++ library support | |
6234 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6235 | ;; | |
6236 | aCC*) | |
6237 | case $host_cpu in | |
6238 | hppa*64*) | |
6239 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6240 | ;; | |
6241 | ia64*) | |
6242 | _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6243 | ;; | |
6244 | *) | |
6245 | _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' | |
6246 | ;; | |
6247 | esac | |
6248 | # Commands to make compiler produce verbose output that lists | |
6249 | # what "hidden" libraries, object files and flags are used when | |
6250 | # linking a shared library. | |
6251 | # | |
6252 | # There doesn't appear to be a way to prevent this compiler from | |
6253 | # explicitly linking system object files so we need to strip them | |
6254 | # from the output so that they don't get included in the library | |
6255 | # dependencies. | |
6256 | 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"' | |
6257 | ;; | |
6258 | *) | |
6259 | if test "$GXX" = yes; then | |
6260 | if test $with_gnu_ld = no; then | |
6261 | case $host_cpu in | |
6262 | hppa*64*) | |
6263 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6264 | ;; | |
6265 | ia64*) | |
6266 | _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' | |
6267 | ;; | |
6268 | *) | |
6269 | _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' | |
6270 | ;; | |
6271 | esac | |
6272 | fi | |
6273 | else | |
6274 | # FIXME: insert proper C++ library support | |
6275 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6276 | fi | |
6277 | ;; | |
6278 | esac | |
6279 | ;; | |
6280 | ||
6281 | interix[[3-9]]*) | |
6282 | _LT_TAGVAR(hardcode_direct, $1)=no | |
6283 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6284 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6285 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6286 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
6287 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
6288 | # default) and relocated if they conflict, which is a slow very memory | |
6289 | # consuming and fragmenting process. To avoid this, we pick a random, | |
6290 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
6291 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
6292 | _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' | |
6293 | _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' | |
6294 | ;; | |
6295 | irix5* | irix6*) | |
6296 | case $cc_basename in | |
6297 | CC*) | |
6298 | # SGI C++ | |
6299 | _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' | |
6300 | ||
6301 | # Archives containing C++ object files must be created using | |
6302 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
6303 | # necessary to make sure instantiated templates are included | |
6304 | # in the archive. | |
6305 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
6306 | ;; | |
6307 | *) | |
6308 | if test "$GXX" = yes; then | |
6309 | if test "$with_gnu_ld" = no; then | |
6310 | _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' | |
6311 | else | |
6312 | _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' | |
6313 | fi | |
6314 | fi | |
6315 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6316 | ;; | |
6317 | esac | |
6318 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6319 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6320 | _LT_TAGVAR(inherit_rpath, $1)=yes | |
6321 | ;; | |
6322 | ||
6323 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6324 | case $cc_basename in | |
6325 | KCC*) | |
6326 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
6327 | ||
6328 | # KCC will only create a shared library if the output file | |
6329 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
6330 | # to its proper name (with version) after linking. | |
6331 | _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' | |
6332 | _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' | |
6333 | # Commands to make compiler produce verbose output that lists | |
6334 | # what "hidden" libraries, object files and flags are used when | |
6335 | # linking a shared library. | |
6336 | # | |
6337 | # There doesn't appear to be a way to prevent this compiler from | |
6338 | # explicitly linking system object files so we need to strip them | |
6339 | # from the output so that they don't get included in the library | |
6340 | # dependencies. | |
6341 | 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"' | |
6342 | ||
6343 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6344 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6345 | ||
6346 | # Archives containing C++ object files must be created using | |
6347 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
6348 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | |
6349 | ;; | |
6350 | icpc* | ecpc* ) | |
6351 | # Intel C++ | |
6352 | with_gnu_ld=yes | |
6353 | # version 8.0 and above of icpc choke on multiply defined symbols | |
6354 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
6355 | # earlier do not add the objects themselves. | |
6356 | case `$CC -V 2>&1` in | |
6357 | *"Version 7."*) | |
6358 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6359 | _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' | |
6360 | ;; | |
6361 | *) # Version 8.0 or newer | |
6362 | tmp_idyn= | |
6363 | case $host_cpu in | |
6364 | ia64*) tmp_idyn=' -i_dynamic';; | |
6365 | esac | |
6366 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6367 | _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' | |
6368 | ;; | |
6369 | esac | |
6370 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6371 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6372 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6373 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
6374 | ;; | |
6375 | pgCC* | pgcpp*) | |
6376 | # Portland Group C++ compiler | |
6377 | case `$CC -V` in | |
6378 | *pgCC\ [[1-5]].* | *pgcpp\ [[1-5]].*) | |
6379 | _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~ | |
6380 | rm -rf $tpldir~ | |
6381 | $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
6382 | compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
6383 | _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~ | |
6384 | rm -rf $tpldir~ | |
6385 | $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
6386 | $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
6387 | $RANLIB $oldlib' | |
6388 | _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~ | |
6389 | rm -rf $tpldir~ | |
6390 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
6391 | $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
6392 | _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~ | |
6393 | rm -rf $tpldir~ | |
6394 | $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
6395 | $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' | |
6396 | ;; | |
6397 | *) # Version 6 and above use weak symbols | |
6398 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
6399 | _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' | |
6400 | ;; | |
6401 | esac | |
6402 | ||
6403 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | |
6404 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6405 | _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' | |
6406 | ;; | |
6407 | cxx*) | |
6408 | # Compaq C++ | |
6409 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6410 | _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' | |
6411 | ||
6412 | runpath_var=LD_RUN_PATH | |
6413 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
6414 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6415 | ||
6416 | # Commands to make compiler produce verbose output that lists | |
6417 | # what "hidden" libraries, object files and flags are used when | |
6418 | # linking a shared library. | |
6419 | # | |
6420 | # There doesn't appear to be a way to prevent this compiler from | |
6421 | # explicitly linking system object files so we need to strip them | |
6422 | # from the output so that they don't get included in the library | |
6423 | # dependencies. | |
6424 | 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' | |
6425 | ;; | |
6426 | xl* | mpixl* | bgxl*) | |
6427 | # IBM XL 8.0 on PPC, with GNU ld | |
6428 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6429 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | |
6430 | _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6431 | if test "x$supports_anon_versioning" = xyes; then | |
6432 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ | |
6433 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
6434 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
6435 | $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
6436 | fi | |
6437 | ;; | |
6438 | *) | |
6439 | case `$CC -V 2>&1 | sed 5q` in | |
6440 | *Sun\ C*) | |
6441 | # Sun C++ 5.9 | |
6442 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
6443 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6444 | _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' | |
6445 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6446 | _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' | |
6447 | _LT_TAGVAR(compiler_needs_object, $1)=yes | |
6448 | ||
6449 | # Not sure whether something based on | |
6450 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
6451 | # would be better. | |
6452 | output_verbose_link_cmd='func_echo_all' | |
6453 | ||
6454 | # Archives containing C++ object files must be created using | |
6455 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
6456 | # necessary to make sure instantiated templates are included | |
6457 | # in the archive. | |
6458 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
6459 | ;; | |
6460 | esac | |
6461 | ;; | |
6462 | esac | |
6463 | ;; | |
6464 | ||
6465 | lynxos*) | |
6466 | # FIXME: insert proper C++ library support | |
6467 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6468 | ;; | |
6469 | ||
6470 | m88k*) | |
6471 | # FIXME: insert proper C++ library support | |
6472 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6473 | ;; | |
6474 | ||
6475 | mvs*) | |
6476 | case $cc_basename in | |
6477 | cxx*) | |
6478 | # FIXME: insert proper C++ library support | |
6479 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6480 | ;; | |
6481 | *) | |
6482 | # FIXME: insert proper C++ library support | |
6483 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6484 | ;; | |
6485 | esac | |
6486 | ;; | |
6487 | ||
6488 | netbsd*) | |
6489 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
6490 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
6491 | wlarc= | |
6492 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6493 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6494 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6495 | fi | |
6496 | # Workaround some broken pre-1.5 toolchains | |
6497 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
6498 | ;; | |
6499 | ||
6500 | *nto* | *qnx*) | |
6501 | _LT_TAGVAR(ld_shlibs, $1)=yes | |
6502 | ;; | |
6503 | ||
6504 | openbsd2*) | |
6505 | # C++ shared libraries are fairly broken | |
6506 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6507 | ;; | |
6508 | ||
6509 | openbsd*) | |
6510 | if test -f /usr/libexec/ld.so; then | |
6511 | _LT_TAGVAR(hardcode_direct, $1)=yes | |
6512 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6513 | _LT_TAGVAR(hardcode_direct_absolute, $1)=yes | |
6514 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
6515 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6516 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6517 | _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' | |
6518 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | |
6519 | _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
6520 | fi | |
6521 | output_verbose_link_cmd=func_echo_all | |
6522 | else | |
6523 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6524 | fi | |
6525 | ;; | |
6526 | ||
6527 | osf3* | osf4* | osf5*) | |
6528 | case $cc_basename in | |
6529 | KCC*) | |
6530 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
6531 | ||
6532 | # KCC will only create a shared library if the output file | |
6533 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
6534 | # to its proper name (with version) after linking. | |
6535 | _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' | |
6536 | ||
6537 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | |
6538 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6539 | ||
6540 | # Archives containing C++ object files must be created using | |
6541 | # the KAI C++ compiler. | |
6542 | case $host in | |
6543 | osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
6544 | *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;; | |
6545 | esac | |
6546 | ;; | |
6547 | RCC*) | |
6548 | # Rational C++ 2.4.1 | |
6549 | # FIXME: insert proper C++ library support | |
6550 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6551 | ;; | |
6552 | cxx*) | |
6553 | case $host in | |
6554 | osf3*) | |
6555 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
6556 | _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' | |
6557 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6558 | ;; | |
6559 | *) | |
6560 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | |
6561 | _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' | |
6562 | _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
6563 | echo "-hidden">> $lib.exp~ | |
6564 | $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~ | |
6565 | $RM $lib.exp' | |
6566 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | |
6567 | ;; | |
6568 | esac | |
6569 | ||
6570 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6571 | ||
6572 | # Commands to make compiler produce verbose output that lists | |
6573 | # what "hidden" libraries, object files and flags are used when | |
6574 | # linking a shared library. | |
6575 | # | |
6576 | # There doesn't appear to be a way to prevent this compiler from | |
6577 | # explicitly linking system object files so we need to strip them | |
6578 | # from the output so that they don't get included in the library | |
6579 | # dependencies. | |
6580 | 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"' | |
6581 | ;; | |
6582 | *) | |
6583 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
6584 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | |
6585 | case $host in | |
6586 | osf3*) | |
6587 | _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' | |
6588 | ;; | |
6589 | *) | |
6590 | _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' | |
6591 | ;; | |
6592 | esac | |
6593 | ||
6594 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | |
6595 | _LT_TAGVAR(hardcode_libdir_separator, $1)=: | |
6596 | ||
6597 | # Commands to make compiler produce verbose output that lists | |
6598 | # what "hidden" libraries, object files and flags are used when | |
6599 | # linking a shared library. | |
6600 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
6601 | ||
6602 | else | |
6603 | # FIXME: insert proper C++ library support | |
6604 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6605 | fi | |
6606 | ;; | |
6607 | esac | |
6608 | ;; | |
6609 | ||
6610 | psos*) | |
6611 | # FIXME: insert proper C++ library support | |
6612 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6613 | ;; | |
6614 | ||
6615 | sunos4*) | |
6616 | case $cc_basename in | |
6617 | CC*) | |
6618 | # Sun C++ 4.x | |
6619 | # FIXME: insert proper C++ library support | |
6620 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6621 | ;; | |
6622 | lcc*) | |
6623 | # Lucid | |
6624 | # FIXME: insert proper C++ library support | |
6625 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6626 | ;; | |
6627 | *) | |
6628 | # FIXME: insert proper C++ library support | |
6629 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6630 | ;; | |
6631 | esac | |
6632 | ;; | |
6633 | ||
6634 | solaris*) | |
6635 | case $cc_basename in | |
6636 | CC* | sunCC*) | |
6637 | # Sun C++ 4.2, 5.x and Centerline C++ | |
6638 | _LT_TAGVAR(archive_cmds_need_lc,$1)=yes | |
6639 | _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' | |
6640 | _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
6641 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
6642 | $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' | |
6643 | ||
6644 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | |
6645 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6646 | case $host_os in | |
6647 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
6648 | *) | |
6649 | # The compiler driver will combine and reorder linker options, | |
6650 | # but understands `-z linker_flag'. | |
6651 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
6652 | _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' | |
6653 | ;; | |
6654 | esac | |
6655 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6656 | ||
6657 | output_verbose_link_cmd='func_echo_all' | |
6658 | ||
6659 | # Archives containing C++ object files must be created using | |
6660 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
6661 | # necessary to make sure instantiated templates are included | |
6662 | # in the archive. | |
6663 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | |
6664 | ;; | |
6665 | gcx*) | |
6666 | # Green Hills C++ Compiler | |
6667 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
6668 | ||
6669 | # The C++ compiler must be used to create the archive. | |
6670 | _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
6671 | ;; | |
6672 | *) | |
6673 | # GNU C++ compiler with Solaris linker | |
6674 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
6675 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | |
6676 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
6677 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
6678 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
6679 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
6680 | ||
6681 | # Commands to make compiler produce verbose output that lists | |
6682 | # what "hidden" libraries, object files and flags are used when | |
6683 | # linking a shared library. | |
6684 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
6685 | else | |
6686 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
6687 | # platform. | |
6688 | _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
6689 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
6690 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
6691 | ||
6692 | # Commands to make compiler produce verbose output that lists | |
6693 | # what "hidden" libraries, object files and flags are used when | |
6694 | # linking a shared library. | |
6695 | output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
6696 | fi | |
6697 | ||
6698 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | |
6699 | case $host_os in | |
6700 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | |
6701 | *) | |
6702 | _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
6703 | ;; | |
6704 | esac | |
6705 | fi | |
6706 | ;; | |
6707 | esac | |
6708 | ;; | |
6709 | ||
6710 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | |
6711 | _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
6712 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6713 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6714 | runpath_var='LD_RUN_PATH' | |
6715 | ||
6716 | case $cc_basename in | |
6717 | CC*) | |
6718 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6719 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6720 | ;; | |
6721 | *) | |
6722 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6723 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6724 | ;; | |
6725 | esac | |
6726 | ;; | |
6727 | ||
6728 | sysv5* | sco3.2v5* | sco5v6*) | |
6729 | # Note: We can NOT use -z defs as we might desire, because we do not | |
6730 | # link with -lc, and that would cause any symbols used from libc to | |
6731 | # always be unresolved, which means just about no library would | |
6732 | # ever link correctly. If we're not using GNU ld we use -z text | |
6733 | # though, which does catch some bad symbols but isn't as heavy-handed | |
6734 | # as -z defs. | |
6735 | _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | |
6736 | _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | |
6737 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
6738 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no | |
6739 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir' | |
6740 | _LT_TAGVAR(hardcode_libdir_separator, $1)=':' | |
6741 | _LT_TAGVAR(link_all_deplibs, $1)=yes | |
6742 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | |
6743 | runpath_var='LD_RUN_PATH' | |
6744 | ||
6745 | case $cc_basename in | |
6746 | CC*) | |
6747 | _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6748 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6749 | _LT_TAGVAR(old_archive_cmds, $1)='$CC -Tprelink_objects $oldobjs~ | |
6750 | '"$_LT_TAGVAR(old_archive_cmds, $1)" | |
6751 | _LT_TAGVAR(reload_cmds, $1)='$CC -Tprelink_objects $reload_objs~ | |
6752 | '"$_LT_TAGVAR(reload_cmds, $1)" | |
6753 | ;; | |
6754 | *) | |
6755 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6756 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6757 | ;; | |
6758 | esac | |
6759 | ;; | |
6760 | ||
6761 | tandem*) | |
6762 | case $cc_basename in | |
6763 | NCC*) | |
6764 | # NonStop-UX NCC 3.20 | |
6765 | # FIXME: insert proper C++ library support | |
6766 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6767 | ;; | |
6768 | *) | |
6769 | # FIXME: insert proper C++ library support | |
6770 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6771 | ;; | |
6772 | esac | |
6773 | ;; | |
6774 | ||
6775 | vxworks*) | |
6776 | # FIXME: insert proper C++ library support | |
6777 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6778 | ;; | |
6779 | ||
6780 | *) | |
6781 | # FIXME: insert proper C++ library support | |
6782 | _LT_TAGVAR(ld_shlibs, $1)=no | |
6783 | ;; | |
6784 | esac | |
6785 | ||
6786 | AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)]) | |
6787 | test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | |
6788 | ||
6789 | _LT_TAGVAR(GCC, $1)="$GXX" | |
6790 | _LT_TAGVAR(LD, $1)="$LD" | |
6791 | ||
6792 | ## CAVEAT EMPTOR: | |
6793 | ## There is no encapsulation within the following macros, do not change | |
6794 | ## the running order or otherwise move them around unless you know exactly | |
6795 | ## what you are doing... | |
6796 | _LT_SYS_HIDDEN_LIBDEPS($1) | |
6797 | _LT_COMPILER_PIC($1) | |
6798 | _LT_COMPILER_C_O($1) | |
6799 | _LT_COMPILER_FILE_LOCKS($1) | |
6800 | _LT_LINKER_SHLIBS($1) | |
6801 | _LT_SYS_DYNAMIC_LINKER($1) | |
6802 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
6803 | ||
6804 | _LT_CONFIG($1) | |
6805 | fi # test -n "$compiler" | |
6806 | ||
6807 | CC=$lt_save_CC | |
6808 | CFLAGS=$lt_save_CFLAGS | |
6809 | LDCXX=$LD | |
6810 | LD=$lt_save_LD | |
6811 | GCC=$lt_save_GCC | |
6812 | with_gnu_ld=$lt_save_with_gnu_ld | |
6813 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
6814 | lt_cv_path_LD=$lt_save_path_LD | |
6815 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
6816 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
6817 | fi # test "$_lt_caught_CXX_error" != yes | |
6818 | ||
6819 | AC_LANG_POP | |
6820 | ])# _LT_LANG_CXX_CONFIG | |
6821 | ||
6822 | ||
6823 | # _LT_FUNC_STRIPNAME_CNF | |
6824 | # ---------------------- | |
6825 | # func_stripname_cnf prefix suffix name | |
6826 | # strip PREFIX and SUFFIX off of NAME. | |
6827 | # PREFIX and SUFFIX must not contain globbing or regex special | |
6828 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
6829 | # dot (in which case that matches only a dot). | |
6830 | # | |
6831 | # This function is identical to the (non-XSI) version of func_stripname, | |
6832 | # except this one can be used by m4 code that may be executed by configure, | |
6833 | # rather than the libtool script. | |
6834 | m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl | |
6835 | AC_REQUIRE([_LT_DECL_SED]) | |
6836 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) | |
6837 | func_stripname_cnf () | |
6838 | { | |
6839 | case ${2} in | |
6840 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
6841 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
6842 | esac | |
6843 | } # func_stripname_cnf | |
6844 | ])# _LT_FUNC_STRIPNAME_CNF | |
6845 | ||
6846 | # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) | |
6847 | # --------------------------------- | |
6848 | # Figure out "hidden" library dependencies from verbose | |
6849 | # compiler output when linking a shared library. | |
6850 | # Parse the compiler output and extract the necessary | |
6851 | # objects, libraries and library flags. | |
6852 | m4_defun([_LT_SYS_HIDDEN_LIBDEPS], | |
6853 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl | |
6854 | AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl | |
6855 | # Dependencies to place before and after the object being linked: | |
6856 | _LT_TAGVAR(predep_objects, $1)= | |
6857 | _LT_TAGVAR(postdep_objects, $1)= | |
6858 | _LT_TAGVAR(predeps, $1)= | |
6859 | _LT_TAGVAR(postdeps, $1)= | |
6860 | _LT_TAGVAR(compiler_lib_search_path, $1)= | |
6861 | ||
6862 | dnl we can't use the lt_simple_compile_test_code here, | |
6863 | dnl because it contains code intended for an executable, | |
6864 | dnl not a library. It's possible we should let each | |
6865 | dnl tag define a new lt_????_link_test_code variable, | |
6866 | dnl but it's only used here... | |
6867 | m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF | |
6868 | int a; | |
6869 | void foo (void) { a = 0; } | |
6870 | _LT_EOF | |
6871 | ], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF | |
6872 | class Foo | |
6873 | { | |
6874 | public: | |
6875 | Foo (void) { a = 0; } | |
6876 | private: | |
6877 | int a; | |
6878 | }; | |
6879 | _LT_EOF | |
6880 | ], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF | |
6881 | subroutine foo | |
6882 | implicit none | |
6883 | integer*4 a | |
6884 | a=0 | |
6885 | return | |
6886 | end | |
6887 | _LT_EOF | |
6888 | ], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF | |
6889 | subroutine foo | |
6890 | implicit none | |
6891 | integer a | |
6892 | a=0 | |
6893 | return | |
6894 | end | |
6895 | _LT_EOF | |
6896 | ], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF | |
6897 | public class foo { | |
6898 | private int a; | |
6899 | public void bar (void) { | |
6900 | a = 0; | |
6901 | } | |
6902 | }; | |
6903 | _LT_EOF | |
6904 | ]) | |
6905 | ||
6906 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
6907 | case "$CC $CFLAGS " in #( | |
6908 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
6909 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
6910 | esac | |
6911 | ||
6912 | dnl Parse the compiler output and extract the necessary | |
6913 | dnl objects, libraries and library flags. | |
6914 | if AC_TRY_EVAL(ac_compile); then | |
6915 | # Parse the compiler output and extract the necessary | |
6916 | # objects, libraries and library flags. | |
6917 | ||
6918 | # Sentinel used to keep track of whether or not we are before | |
6919 | # the conftest object file. | |
6920 | pre_test_object_deps_done=no | |
6921 | ||
6922 | for p in `eval "$output_verbose_link_cmd"`; do | |
6923 | case ${prev}${p} in | |
6924 | ||
6925 | -L* | -R* | -l*) | |
6926 | # Some compilers place space between "-{L,R}" and the path. | |
6927 | # Remove the space. | |
6928 | if test $p = "-L" || | |
6929 | test $p = "-R"; then | |
6930 | prev=$p | |
6931 | continue | |
6932 | fi | |
6933 | ||
6934 | # Expand the sysroot to ease extracting the directories later. | |
6935 | if test -z "$prev"; then | |
6936 | case $p in | |
6937 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
6938 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
6939 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
6940 | esac | |
6941 | fi | |
6942 | case $p in | |
6943 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
6944 | esac | |
6945 | if test "$pre_test_object_deps_done" = no; then | |
6946 | case ${prev} in | |
6947 | -L | -R) | |
6948 | # Internal compiler library paths should come after those | |
6949 | # provided the user. The postdeps already come after the | |
6950 | # user supplied libs so there is no need to process them. | |
6951 | if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then | |
6952 | _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | |
6953 | else | |
6954 | _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | |
6955 | fi | |
6956 | ;; | |
6957 | # The "-l" case would never come before the object being | |
6958 | # linked, so don't bother handling this case. | |
6959 | esac | |
6960 | else | |
6961 | if test -z "$_LT_TAGVAR(postdeps, $1)"; then | |
6962 | _LT_TAGVAR(postdeps, $1)="${prev}${p}" | |
6963 | else | |
6964 | _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" | |
6965 | fi | |
6966 | fi | |
6967 | prev= | |
6968 | ;; | |
6969 | ||
6970 | *.lto.$objext) ;; # Ignore GCC LTO objects | |
6971 | *.$objext) | |
6972 | # This assumes that the test object file only shows up | |
6973 | # once in the compiler output. | |
6974 | if test "$p" = "conftest.$objext"; then | |
6975 | pre_test_object_deps_done=yes | |
6976 | continue | |
6977 | fi | |
6978 | ||
6979 | if test "$pre_test_object_deps_done" = no; then | |
6980 | if test -z "$_LT_TAGVAR(predep_objects, $1)"; then | |
6981 | _LT_TAGVAR(predep_objects, $1)="$p" | |
6982 | else | |
6983 | _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p" | |
6984 | fi | |
6985 | else | |
6986 | if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then | |
6987 | _LT_TAGVAR(postdep_objects, $1)="$p" | |
6988 | else | |
6989 | _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p" | |
6990 | fi | |
6991 | fi | |
6992 | ;; | |
6993 | ||
6994 | *) ;; # Ignore the rest. | |
6995 | ||
6996 | esac | |
6997 | done | |
6998 | ||
6999 | # Clean up. | |
7000 | rm -f a.out a.exe | |
7001 | else | |
7002 | echo "libtool.m4: error: problem compiling $1 test program" | |
7003 | fi | |
7004 | ||
7005 | $RM -f confest.$objext | |
7006 | CFLAGS=$_lt_libdeps_save_CFLAGS | |
7007 | ||
7008 | # PORTME: override above test on systems where it is broken | |
7009 | m4_if([$1], [CXX], | |
7010 | [case $host_os in | |
7011 | interix[[3-9]]*) | |
7012 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
7013 | # hack all around it, let's just trust "g++" to DTRT. | |
7014 | _LT_TAGVAR(predep_objects,$1)= | |
7015 | _LT_TAGVAR(postdep_objects,$1)= | |
7016 | _LT_TAGVAR(postdeps,$1)= | |
7017 | ;; | |
7018 | ||
7019 | linux*) | |
7020 | case `$CC -V 2>&1 | sed 5q` in | |
7021 | *Sun\ C*) | |
7022 | # Sun C++ 5.9 | |
7023 | ||
7024 | # The more standards-conforming stlport4 library is | |
7025 | # incompatible with the Cstd library. Avoid specifying | |
7026 | # it if it's in CXXFLAGS. Ignore libCrun as | |
7027 | # -library=stlport4 depends on it. | |
7028 | case " $CXX $CXXFLAGS " in | |
7029 | *" -library=stlport4 "*) | |
7030 | solaris_use_stlport4=yes | |
7031 | ;; | |
7032 | esac | |
7033 | ||
7034 | if test "$solaris_use_stlport4" != yes; then | |
7035 | _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | |
7036 | fi | |
7037 | ;; | |
7038 | esac | |
7039 | ;; | |
7040 | ||
7041 | solaris*) | |
7042 | case $cc_basename in | |
7043 | CC* | sunCC*) | |
7044 | # The more standards-conforming stlport4 library is | |
7045 | # incompatible with the Cstd library. Avoid specifying | |
7046 | # it if it's in CXXFLAGS. Ignore libCrun as | |
7047 | # -library=stlport4 depends on it. | |
7048 | case " $CXX $CXXFLAGS " in | |
7049 | *" -library=stlport4 "*) | |
7050 | solaris_use_stlport4=yes | |
7051 | ;; | |
7052 | esac | |
7053 | ||
7054 | # Adding this requires a known-good setup of shared libraries for | |
7055 | # Sun compiler versions before 5.6, else PIC objects from an old | |
7056 | # archive will be linked into the output, leading to subtle bugs. | |
7057 | if test "$solaris_use_stlport4" != yes; then | |
7058 | _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun' | |
7059 | fi | |
7060 | ;; | |
7061 | esac | |
7062 | ;; | |
7063 | esac | |
7064 | ]) | |
7065 | ||
7066 | case " $_LT_TAGVAR(postdeps, $1) " in | |
7067 | *" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; | |
7068 | esac | |
7069 | _LT_TAGVAR(compiler_lib_search_dirs, $1)= | |
7070 | if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then | |
7071 | _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
7072 | fi | |
7073 | _LT_TAGDECL([], [compiler_lib_search_dirs], [1], | |
7074 | [The directories searched by this compiler when creating a shared library]) | |
7075 | _LT_TAGDECL([], [predep_objects], [1], | |
7076 | [Dependencies to place before and after the objects being linked to | |
7077 | create a shared library]) | |
7078 | _LT_TAGDECL([], [postdep_objects], [1]) | |
7079 | _LT_TAGDECL([], [predeps], [1]) | |
7080 | _LT_TAGDECL([], [postdeps], [1]) | |
7081 | _LT_TAGDECL([], [compiler_lib_search_path], [1], | |
7082 | [The library search path used internally by the compiler when linking | |
7083 | a shared library]) | |
7084 | ])# _LT_SYS_HIDDEN_LIBDEPS | |
7085 | ||
7086 | ||
7087 | # _LT_LANG_F77_CONFIG([TAG]) | |
7088 | # -------------------------- | |
7089 | # Ensure that the configuration variables for a Fortran 77 compiler are | |
7090 | # suitably defined. These variables are subsequently used by _LT_CONFIG | |
7091 | # to write the compiler configuration to `libtool'. | |
7092 | m4_defun([_LT_LANG_F77_CONFIG], | |
7093 | [AC_LANG_PUSH(Fortran 77) | |
7094 | if test -z "$F77" || test "X$F77" = "Xno"; then | |
7095 | _lt_disable_F77=yes | |
7096 | fi | |
7097 | ||
7098 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
7099 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
7100 | _LT_TAGVAR(always_export_symbols, $1)=no | |
7101 | _LT_TAGVAR(archive_expsym_cmds, $1)= | |
7102 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
7103 | _LT_TAGVAR(hardcode_direct, $1)=no | |
7104 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
7105 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
7106 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
7107 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
7108 | _LT_TAGVAR(hardcode_minus_L, $1)=no | |
7109 | _LT_TAGVAR(hardcode_automatic, $1)=no | |
7110 | _LT_TAGVAR(inherit_rpath, $1)=no | |
7111 | _LT_TAGVAR(module_cmds, $1)= | |
7112 | _LT_TAGVAR(module_expsym_cmds, $1)= | |
7113 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
7114 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
7115 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
7116 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
7117 | _LT_TAGVAR(no_undefined_flag, $1)= | |
7118 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
7119 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
7120 | ||
7121 | # Source file extension for f77 test sources. | |
7122 | ac_ext=f | |
7123 | ||
7124 | # Object file extension for compiled f77 test sources. | |
7125 | objext=o | |
7126 | _LT_TAGVAR(objext, $1)=$objext | |
7127 | ||
7128 | # No sense in running all these tests if we already determined that | |
7129 | # the F77 compiler isn't working. Some variables (like enable_shared) | |
7130 | # are currently assumed to apply to all compilers on this platform, | |
7131 | # and will be corrupted by setting them based on a non-working compiler. | |
7132 | if test "$_lt_disable_F77" != yes; then | |
7133 | # Code to be used in simple compile tests | |
7134 | lt_simple_compile_test_code="\ | |
7135 | subroutine t | |
7136 | return | |
7137 | end | |
7138 | " | |
7139 | ||
7140 | # Code to be used in simple link tests | |
7141 | lt_simple_link_test_code="\ | |
7142 | program t | |
7143 | end | |
7144 | " | |
7145 | ||
7146 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
7147 | _LT_TAG_COMPILER | |
7148 | ||
7149 | # save warnings/boilerplate of simple test code | |
7150 | _LT_COMPILER_BOILERPLATE | |
7151 | _LT_LINKER_BOILERPLATE | |
7152 | ||
7153 | # Allow CC to be a program name with arguments. | |
7154 | lt_save_CC="$CC" | |
7155 | lt_save_GCC=$GCC | |
7156 | lt_save_CFLAGS=$CFLAGS | |
7157 | CC=${F77-"f77"} | |
7158 | CFLAGS=$FFLAGS | |
7159 | compiler=$CC | |
7160 | _LT_TAGVAR(compiler, $1)=$CC | |
7161 | _LT_CC_BASENAME([$compiler]) | |
7162 | GCC=$G77 | |
7163 | if test -n "$compiler"; then | |
7164 | AC_MSG_CHECKING([if libtool supports shared libraries]) | |
7165 | AC_MSG_RESULT([$can_build_shared]) | |
7166 | ||
7167 | AC_MSG_CHECKING([whether to build shared libraries]) | |
7168 | test "$can_build_shared" = "no" && enable_shared=no | |
7169 | ||
7170 | # On AIX, shared libraries and static libraries use the same namespace, and | |
7171 | # are all built from PIC. | |
7172 | case $host_os in | |
7173 | aix3*) | |
7174 | test "$enable_shared" = yes && enable_static=no | |
7175 | if test -n "$RANLIB"; then | |
7176 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
7177 | postinstall_cmds='$RANLIB $lib' | |
7178 | fi | |
7179 | ;; | |
7180 | aix[[4-9]]*) | |
7181 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
7182 | test "$enable_shared" = yes && enable_static=no | |
7183 | fi | |
7184 | ;; | |
7185 | esac | |
7186 | AC_MSG_RESULT([$enable_shared]) | |
7187 | ||
7188 | AC_MSG_CHECKING([whether to build static libraries]) | |
7189 | # Make sure either enable_shared or enable_static is yes. | |
7190 | test "$enable_shared" = yes || enable_static=yes | |
7191 | AC_MSG_RESULT([$enable_static]) | |
7192 | ||
7193 | _LT_TAGVAR(GCC, $1)="$G77" | |
7194 | _LT_TAGVAR(LD, $1)="$LD" | |
7195 | ||
7196 | ## CAVEAT EMPTOR: | |
7197 | ## There is no encapsulation within the following macros, do not change | |
7198 | ## the running order or otherwise move them around unless you know exactly | |
7199 | ## what you are doing... | |
7200 | _LT_COMPILER_PIC($1) | |
7201 | _LT_COMPILER_C_O($1) | |
7202 | _LT_COMPILER_FILE_LOCKS($1) | |
7203 | _LT_LINKER_SHLIBS($1) | |
7204 | _LT_SYS_DYNAMIC_LINKER($1) | |
7205 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
7206 | ||
7207 | _LT_CONFIG($1) | |
7208 | fi # test -n "$compiler" | |
7209 | ||
7210 | GCC=$lt_save_GCC | |
7211 | CC="$lt_save_CC" | |
7212 | CFLAGS="$lt_save_CFLAGS" | |
7213 | fi # test "$_lt_disable_F77" != yes | |
7214 | ||
7215 | AC_LANG_POP | |
7216 | ])# _LT_LANG_F77_CONFIG | |
7217 | ||
7218 | ||
7219 | # _LT_LANG_FC_CONFIG([TAG]) | |
7220 | # ------------------------- | |
7221 | # Ensure that the configuration variables for a Fortran compiler are | |
7222 | # suitably defined. These variables are subsequently used by _LT_CONFIG | |
7223 | # to write the compiler configuration to `libtool'. | |
7224 | m4_defun([_LT_LANG_FC_CONFIG], | |
7225 | [AC_LANG_PUSH(Fortran) | |
7226 | ||
7227 | if test -z "$FC" || test "X$FC" = "Xno"; then | |
7228 | _lt_disable_FC=yes | |
7229 | fi | |
7230 | ||
7231 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
7232 | _LT_TAGVAR(allow_undefined_flag, $1)= | |
7233 | _LT_TAGVAR(always_export_symbols, $1)=no | |
7234 | _LT_TAGVAR(archive_expsym_cmds, $1)= | |
7235 | _LT_TAGVAR(export_dynamic_flag_spec, $1)= | |
7236 | _LT_TAGVAR(hardcode_direct, $1)=no | |
7237 | _LT_TAGVAR(hardcode_direct_absolute, $1)=no | |
7238 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)= | |
7239 | _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | |
7240 | _LT_TAGVAR(hardcode_libdir_separator, $1)= | |
7241 | _LT_TAGVAR(hardcode_minus_L, $1)=no | |
7242 | _LT_TAGVAR(hardcode_automatic, $1)=no | |
7243 | _LT_TAGVAR(inherit_rpath, $1)=no | |
7244 | _LT_TAGVAR(module_cmds, $1)= | |
7245 | _LT_TAGVAR(module_expsym_cmds, $1)= | |
7246 | _LT_TAGVAR(link_all_deplibs, $1)=unknown | |
7247 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
7248 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
7249 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
7250 | _LT_TAGVAR(no_undefined_flag, $1)= | |
7251 | _LT_TAGVAR(whole_archive_flag_spec, $1)= | |
7252 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no | |
7253 | ||
7254 | # Source file extension for fc test sources. | |
7255 | ac_ext=${ac_fc_srcext-f} | |
7256 | ||
7257 | # Object file extension for compiled fc test sources. | |
7258 | objext=o | |
7259 | _LT_TAGVAR(objext, $1)=$objext | |
7260 | ||
7261 | # No sense in running all these tests if we already determined that | |
7262 | # the FC compiler isn't working. Some variables (like enable_shared) | |
7263 | # are currently assumed to apply to all compilers on this platform, | |
7264 | # and will be corrupted by setting them based on a non-working compiler. | |
7265 | if test "$_lt_disable_FC" != yes; then | |
7266 | # Code to be used in simple compile tests | |
7267 | lt_simple_compile_test_code="\ | |
7268 | subroutine t | |
7269 | return | |
7270 | end | |
7271 | " | |
7272 | ||
7273 | # Code to be used in simple link tests | |
7274 | lt_simple_link_test_code="\ | |
7275 | program t | |
7276 | end | |
7277 | " | |
7278 | ||
7279 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
7280 | _LT_TAG_COMPILER | |
7281 | ||
7282 | # save warnings/boilerplate of simple test code | |
7283 | _LT_COMPILER_BOILERPLATE | |
7284 | _LT_LINKER_BOILERPLATE | |
7285 | ||
7286 | # Allow CC to be a program name with arguments. | |
7287 | lt_save_CC="$CC" | |
7288 | lt_save_GCC=$GCC | |
7289 | lt_save_CFLAGS=$CFLAGS | |
7290 | CC=${FC-"f95"} | |
7291 | CFLAGS=$FCFLAGS | |
7292 | compiler=$CC | |
7293 | GCC=$ac_cv_fc_compiler_gnu | |
7294 | ||
7295 | _LT_TAGVAR(compiler, $1)=$CC | |
7296 | _LT_CC_BASENAME([$compiler]) | |
7297 | ||
7298 | if test -n "$compiler"; then | |
7299 | AC_MSG_CHECKING([if libtool supports shared libraries]) | |
7300 | AC_MSG_RESULT([$can_build_shared]) | |
7301 | ||
7302 | AC_MSG_CHECKING([whether to build shared libraries]) | |
7303 | test "$can_build_shared" = "no" && enable_shared=no | |
7304 | ||
7305 | # On AIX, shared libraries and static libraries use the same namespace, and | |
7306 | # are all built from PIC. | |
7307 | case $host_os in | |
7308 | aix3*) | |
7309 | test "$enable_shared" = yes && enable_static=no | |
7310 | if test -n "$RANLIB"; then | |
7311 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
7312 | postinstall_cmds='$RANLIB $lib' | |
7313 | fi | |
7314 | ;; | |
7315 | aix[[4-9]]*) | |
7316 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
7317 | test "$enable_shared" = yes && enable_static=no | |
7318 | fi | |
7319 | ;; | |
7320 | esac | |
7321 | AC_MSG_RESULT([$enable_shared]) | |
7322 | ||
7323 | AC_MSG_CHECKING([whether to build static libraries]) | |
7324 | # Make sure either enable_shared or enable_static is yes. | |
7325 | test "$enable_shared" = yes || enable_static=yes | |
7326 | AC_MSG_RESULT([$enable_static]) | |
7327 | ||
7328 | _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu" | |
7329 | _LT_TAGVAR(LD, $1)="$LD" | |
7330 | ||
7331 | ## CAVEAT EMPTOR: | |
7332 | ## There is no encapsulation within the following macros, do not change | |
7333 | ## the running order or otherwise move them around unless you know exactly | |
7334 | ## what you are doing... | |
7335 | _LT_SYS_HIDDEN_LIBDEPS($1) | |
7336 | _LT_COMPILER_PIC($1) | |
7337 | _LT_COMPILER_C_O($1) | |
7338 | _LT_COMPILER_FILE_LOCKS($1) | |
7339 | _LT_LINKER_SHLIBS($1) | |
7340 | _LT_SYS_DYNAMIC_LINKER($1) | |
7341 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
7342 | ||
7343 | _LT_CONFIG($1) | |
7344 | fi # test -n "$compiler" | |
7345 | ||
7346 | GCC=$lt_save_GCC | |
7347 | CC=$lt_save_CC | |
7348 | CFLAGS=$lt_save_CFLAGS | |
7349 | fi # test "$_lt_disable_FC" != yes | |
7350 | ||
7351 | AC_LANG_POP | |
7352 | ])# _LT_LANG_FC_CONFIG | |
7353 | ||
7354 | ||
7355 | # _LT_LANG_GCJ_CONFIG([TAG]) | |
7356 | # -------------------------- | |
7357 | # Ensure that the configuration variables for the GNU Java Compiler compiler | |
7358 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
7359 | # to write the compiler configuration to `libtool'. | |
7360 | m4_defun([_LT_LANG_GCJ_CONFIG], | |
7361 | [AC_REQUIRE([LT_PROG_GCJ])dnl | |
7362 | AC_LANG_SAVE | |
7363 | ||
7364 | # Source file extension for Java test sources. | |
7365 | ac_ext=java | |
7366 | ||
7367 | # Object file extension for compiled Java test sources. | |
7368 | objext=o | |
7369 | _LT_TAGVAR(objext, $1)=$objext | |
7370 | ||
7371 | # Code to be used in simple compile tests | |
7372 | lt_simple_compile_test_code="class foo {}" | |
7373 | ||
7374 | # Code to be used in simple link tests | |
7375 | lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }' | |
7376 | ||
7377 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
7378 | _LT_TAG_COMPILER | |
7379 | ||
7380 | # save warnings/boilerplate of simple test code | |
7381 | _LT_COMPILER_BOILERPLATE | |
7382 | _LT_LINKER_BOILERPLATE | |
7383 | ||
7384 | # Allow CC to be a program name with arguments. | |
7385 | lt_save_CC=$CC | |
7386 | lt_save_CFLAGS=$CFLAGS | |
7387 | lt_save_GCC=$GCC | |
7388 | GCC=yes | |
7389 | CC=${GCJ-"gcj"} | |
7390 | CFLAGS=$GCJFLAGS | |
7391 | compiler=$CC | |
7392 | _LT_TAGVAR(compiler, $1)=$CC | |
7393 | _LT_TAGVAR(LD, $1)="$LD" | |
7394 | _LT_CC_BASENAME([$compiler]) | |
7395 | ||
7396 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
7397 | _LT_TAGVAR(archive_cmds_need_lc, $1)=no | |
7398 | ||
7399 | _LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | |
7400 | _LT_TAGVAR(reload_flag, $1)=$reload_flag | |
7401 | _LT_TAGVAR(reload_cmds, $1)=$reload_cmds | |
7402 | ||
7403 | ## CAVEAT EMPTOR: | |
7404 | ## There is no encapsulation within the following macros, do not change | |
7405 | ## the running order or otherwise move them around unless you know exactly | |
7406 | ## what you are doing... | |
7407 | if test -n "$compiler"; then | |
7408 | _LT_COMPILER_NO_RTTI($1) | |
7409 | _LT_COMPILER_PIC($1) | |
7410 | _LT_COMPILER_C_O($1) | |
7411 | _LT_COMPILER_FILE_LOCKS($1) | |
7412 | _LT_LINKER_SHLIBS($1) | |
7413 | _LT_LINKER_HARDCODE_LIBPATH($1) | |
7414 | ||
7415 | _LT_CONFIG($1) | |
7416 | fi | |
7417 | ||
7418 | AC_LANG_RESTORE | |
7419 | ||
7420 | GCC=$lt_save_GCC | |
7421 | CC=$lt_save_CC | |
7422 | CFLAGS=$lt_save_CFLAGS | |
7423 | ])# _LT_LANG_GCJ_CONFIG | |
7424 | ||
7425 | ||
7426 | # _LT_LANG_RC_CONFIG([TAG]) | |
7427 | # ------------------------- | |
7428 | # Ensure that the configuration variables for the Windows resource compiler | |
7429 | # are suitably defined. These variables are subsequently used by _LT_CONFIG | |
7430 | # to write the compiler configuration to `libtool'. | |
7431 | m4_defun([_LT_LANG_RC_CONFIG], | |
7432 | [AC_REQUIRE([LT_PROG_RC])dnl | |
7433 | AC_LANG_SAVE | |
7434 | ||
7435 | # Source file extension for RC test sources. | |
7436 | ac_ext=rc | |
7437 | ||
7438 | # Object file extension for compiled RC test sources. | |
7439 | objext=o | |
7440 | _LT_TAGVAR(objext, $1)=$objext | |
7441 | ||
7442 | # Code to be used in simple compile tests | |
7443 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' | |
7444 | ||
7445 | # Code to be used in simple link tests | |
7446 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
7447 | ||
7448 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
7449 | _LT_TAG_COMPILER | |
7450 | ||
7451 | # save warnings/boilerplate of simple test code | |
7452 | _LT_COMPILER_BOILERPLATE | |
7453 | _LT_LINKER_BOILERPLATE | |
7454 | ||
7455 | # Allow CC to be a program name with arguments. | |
7456 | lt_save_CC="$CC" | |
7457 | lt_save_CFLAGS=$CFLAGS | |
7458 | lt_save_GCC=$GCC | |
7459 | GCC= | |
7460 | CC=${RC-"windres"} | |
7461 | CFLAGS= | |
7462 | compiler=$CC | |
7463 | _LT_TAGVAR(compiler, $1)=$CC | |
7464 | _LT_CC_BASENAME([$compiler]) | |
7465 | _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | |
7466 | ||
7467 | if test -n "$compiler"; then | |
7468 | : | |
7469 | _LT_CONFIG($1) | |
7470 | fi | |
7471 | ||
7472 | GCC=$lt_save_GCC | |
7473 | AC_LANG_RESTORE | |
7474 | CC=$lt_save_CC | |
7475 | CFLAGS=$lt_save_CFLAGS | |
7476 | ])# _LT_LANG_RC_CONFIG | |
7477 | ||
7478 | ||
7479 | # LT_PROG_GCJ | |
7480 | # ----------- | |
7481 | AC_DEFUN([LT_PROG_GCJ], | |
7482 | [m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ], | |
7483 | [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ], | |
7484 | [AC_CHECK_TOOL(GCJ, gcj,) | |
7485 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | |
7486 | AC_SUBST(GCJFLAGS)])])[]dnl | |
7487 | ]) | |
7488 | ||
7489 | # Old name: | |
7490 | AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ]) | |
7491 | dnl aclocal-1.4 backwards compatibility: | |
7492 | dnl AC_DEFUN([LT_AC_PROG_GCJ], []) | |
7493 | ||
7494 | ||
7495 | # LT_PROG_RC | |
7496 | # ---------- | |
7497 | AC_DEFUN([LT_PROG_RC], | |
7498 | [AC_CHECK_TOOL(RC, windres,) | |
7499 | ]) | |
7500 | ||
7501 | # Old name: | |
7502 | AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC]) | |
7503 | dnl aclocal-1.4 backwards compatibility: | |
7504 | dnl AC_DEFUN([LT_AC_PROG_RC], []) | |
7505 | ||
7506 | ||
7507 | # _LT_DECL_EGREP | |
7508 | # -------------- | |
7509 | # If we don't have a new enough Autoconf to choose the best grep | |
7510 | # available, choose the one first in the user's PATH. | |
7511 | m4_defun([_LT_DECL_EGREP], | |
7512 | [AC_REQUIRE([AC_PROG_EGREP])dnl | |
7513 | AC_REQUIRE([AC_PROG_FGREP])dnl | |
7514 | test -z "$GREP" && GREP=grep | |
7515 | _LT_DECL([], [GREP], [1], [A grep program that handles long lines]) | |
7516 | _LT_DECL([], [EGREP], [1], [An ERE matcher]) | |
7517 | _LT_DECL([], [FGREP], [1], [A literal string matcher]) | |
7518 | dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too | |
7519 | AC_SUBST([GREP]) | |
7520 | ]) | |
7521 | ||
7522 | ||
7523 | # _LT_DECL_OBJDUMP | |
7524 | # -------------- | |
7525 | # If we don't have a new enough Autoconf to choose the best objdump | |
7526 | # available, choose the one first in the user's PATH. | |
7527 | m4_defun([_LT_DECL_OBJDUMP], | |
7528 | [AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
7529 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
7530 | _LT_DECL([], [OBJDUMP], [1], [An object symbol dumper]) | |
7531 | AC_SUBST([OBJDUMP]) | |
7532 | ]) | |
7533 | ||
7534 | # _LT_DECL_DLLTOOL | |
7535 | # ---------------- | |
7536 | # Ensure DLLTOOL variable is set. | |
7537 | m4_defun([_LT_DECL_DLLTOOL], | |
7538 | [AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
7539 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
7540 | _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) | |
7541 | AC_SUBST([DLLTOOL]) | |
7542 | ]) | |
7543 | ||
7544 | # _LT_DECL_SED | |
7545 | # ------------ | |
7546 | # Check for a fully-functional sed program, that truncates | |
7547 | # as few characters as possible. Prefer GNU sed if found. | |
7548 | m4_defun([_LT_DECL_SED], | |
7549 | [AC_PROG_SED | |
7550 | test -z "$SED" && SED=sed | |
7551 | Xsed="$SED -e 1s/^X//" | |
7552 | _LT_DECL([], [SED], [1], [A sed program that does not truncate output]) | |
7553 | _LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"], | |
7554 | [Sed that helps us avoid accidentally triggering echo(1) options like -n]) | |
7555 | ])# _LT_DECL_SED | |
7556 | ||
7557 | m4_ifndef([AC_PROG_SED], [ | |
7558 | ############################################################ | |
7559 | # NOTE: This macro has been submitted for inclusion into # | |
7560 | # GNU Autoconf as AC_PROG_SED. When it is available in # | |
7561 | # a released version of Autoconf we should remove this # | |
7562 | # macro and use it instead. # | |
7563 | ############################################################ | |
7564 | ||
7565 | m4_defun([AC_PROG_SED], | |
7566 | [AC_MSG_CHECKING([for a sed that does not truncate output]) | |
7567 | AC_CACHE_VAL(lt_cv_path_SED, | |
7568 | [# Loop through the user's path and test for sed and gsed. | |
7569 | # Then use that list of sed's as ones to test for truncation. | |
7570 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7571 | for as_dir in $PATH | |
7572 | do | |
7573 | IFS=$as_save_IFS | |
7574 | test -z "$as_dir" && as_dir=. | |
7575 | for lt_ac_prog in sed gsed; do | |
7576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7577 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
7578 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
7579 | fi | |
7580 | done | |
7581 | done | |
7582 | done | |
7583 | IFS=$as_save_IFS | |
7584 | lt_ac_max=0 | |
7585 | lt_ac_count=0 | |
7586 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
7587 | # along with /bin/sed that truncates output. | |
7588 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
7589 | test ! -f $lt_ac_sed && continue | |
7590 | cat /dev/null > conftest.in | |
7591 | lt_ac_count=0 | |
7592 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
7593 | # Check for GNU sed and select it if it is found. | |
7594 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
7595 | lt_cv_path_SED=$lt_ac_sed | |
7596 | break | |
7597 | fi | |
7598 | while true; do | |
7599 | cat conftest.in conftest.in >conftest.tmp | |
7600 | mv conftest.tmp conftest.in | |
7601 | cp conftest.in conftest.nl | |
7602 | echo >>conftest.nl | |
7603 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
7604 | cmp -s conftest.out conftest.nl || break | |
7605 | # 10000 chars as input seems more than enough | |
7606 | test $lt_ac_count -gt 10 && break | |
7607 | lt_ac_count=`expr $lt_ac_count + 1` | |
7608 | if test $lt_ac_count -gt $lt_ac_max; then | |
7609 | lt_ac_max=$lt_ac_count | |
7610 | lt_cv_path_SED=$lt_ac_sed | |
7611 | fi | |
7612 | done | |
7613 | done | |
7614 | ]) | |
7615 | SED=$lt_cv_path_SED | |
7616 | AC_SUBST([SED]) | |
7617 | AC_MSG_RESULT([$SED]) | |
7618 | ])#AC_PROG_SED | |
7619 | ])#m4_ifndef | |
7620 | ||
7621 | # Old name: | |
7622 | AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED]) | |
7623 | dnl aclocal-1.4 backwards compatibility: | |
7624 | dnl AC_DEFUN([LT_AC_PROG_SED], []) | |
7625 | ||
7626 | ||
7627 | # _LT_CHECK_SHELL_FEATURES | |
7628 | # ------------------------ | |
7629 | # Find out whether the shell is Bourne or XSI compatible, | |
7630 | # or has some other useful features. | |
7631 | m4_defun([_LT_CHECK_SHELL_FEATURES], | |
7632 | [AC_MSG_CHECKING([whether the shell understands some XSI constructs]) | |
7633 | # Try some XSI features | |
7634 | xsi_shell=no | |
7635 | ( _lt_dummy="a/b/c" | |
7636 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
7637 | = c,a/b,b/c, \ | |
7638 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
7639 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
7640 | && xsi_shell=yes | |
7641 | AC_MSG_RESULT([$xsi_shell]) | |
7642 | _LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell']) | |
7643 | ||
7644 | AC_MSG_CHECKING([whether the shell understands "+="]) | |
7645 | lt_shell_append=no | |
7646 | ( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \ | |
7647 | >/dev/null 2>&1 \ | |
7648 | && lt_shell_append=yes | |
7649 | AC_MSG_RESULT([$lt_shell_append]) | |
7650 | _LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append']) | |
7651 | ||
7652 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
7653 | lt_unset=unset | |
7654 | else | |
7655 | lt_unset=false | |
7656 | fi | |
7657 | _LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl | |
7658 | ||
7659 | # test EBCDIC or ASCII | |
7660 | case `echo X|tr X '\101'` in | |
7661 | A) # ASCII based system | |
7662 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
7663 | lt_SP2NL='tr \040 \012' | |
7664 | lt_NL2SP='tr \015\012 \040\040' | |
7665 | ;; | |
7666 | *) # EBCDIC based system | |
7667 | lt_SP2NL='tr \100 \n' | |
7668 | lt_NL2SP='tr \r\n \100\100' | |
7669 | ;; | |
7670 | esac | |
7671 | _LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl | |
7672 | _LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl | |
7673 | ])# _LT_CHECK_SHELL_FEATURES | |
7674 | ||
7675 | ||
7676 | # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) | |
7677 | # ------------------------------------------------------ | |
7678 | # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and | |
7679 | # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. | |
7680 | m4_defun([_LT_PROG_FUNCTION_REPLACE], | |
7681 | [dnl { | |
7682 | sed -e '/^$1 ()$/,/^} # $1 /c\ | |
7683 | $1 ()\ | |
7684 | {\ | |
7685 | m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) | |
7686 | } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ | |
7687 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
7688 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
7689 | test 0 -eq $? || _lt_function_replace_fail=: | |
7690 | ]) | |
7691 | ||
7692 | ||
7693 | # _LT_PROG_REPLACE_SHELLFNS | |
7694 | # ------------------------- | |
7695 | # Replace existing portable implementations of several shell functions with | |
7696 | # equivalent extended shell implementations where those features are available.. | |
7697 | m4_defun([_LT_PROG_REPLACE_SHELLFNS], | |
7698 | [if test x"$xsi_shell" = xyes; then | |
7699 | _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl | |
7700 | case ${1} in | |
7701 | */*) func_dirname_result="${1%/*}${2}" ;; | |
7702 | * ) func_dirname_result="${3}" ;; | |
7703 | esac]) | |
7704 | ||
7705 | _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl | |
7706 | func_basename_result="${1##*/}"]) | |
7707 | ||
7708 | _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl | |
7709 | case ${1} in | |
7710 | */*) func_dirname_result="${1%/*}${2}" ;; | |
7711 | * ) func_dirname_result="${3}" ;; | |
7712 | esac | |
7713 | func_basename_result="${1##*/}"]) | |
7714 | ||
7715 | _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl | |
7716 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
7717 | # positional parameters, so assign one to ordinary parameter first. | |
7718 | func_stripname_result=${3} | |
7719 | func_stripname_result=${func_stripname_result#"${1}"} | |
7720 | func_stripname_result=${func_stripname_result%"${2}"}]) | |
7721 | ||
7722 | _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl | |
7723 | func_split_long_opt_name=${1%%=*} | |
7724 | func_split_long_opt_arg=${1#*=}]) | |
7725 | ||
7726 | _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl | |
7727 | func_split_short_opt_arg=${1#??} | |
7728 | func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) | |
7729 | ||
7730 | _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl | |
7731 | case ${1} in | |
7732 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
7733 | *) func_lo2o_result=${1} ;; | |
7734 | esac]) | |
7735 | ||
7736 | _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) | |
7737 | ||
7738 | _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) | |
7739 | ||
7740 | _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) | |
7741 | fi | |
7742 | ||
7743 | if test x"$lt_shell_append" = xyes; then | |
7744 | _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) | |
7745 | ||
7746 | _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl | |
7747 | func_quote_for_eval "${2}" | |
7748 | dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ | |
7749 | eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) | |
7750 | ||
7751 | # Save a `func_append' function call where possible by direct use of '+=' | |
7752 | sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
7753 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
7754 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
7755 | test 0 -eq $? || _lt_function_replace_fail=: | |
7756 | else | |
7757 | # Save a `func_append' function call even when '+=' is not available | |
7758 | sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
7759 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
7760 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
7761 | test 0 -eq $? || _lt_function_replace_fail=: | |
7762 | fi | |
7763 | ||
7764 | if test x"$_lt_function_replace_fail" = x":"; then | |
7765 | AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) | |
7766 | fi | |
7767 | ]) | |
7768 | ||
7769 | # _LT_PATH_CONVERSION_FUNCTIONS | |
7770 | # ----------------------------- | |
7771 | # Determine which file name conversion functions should be used by | |
7772 | # func_to_host_file (and, implicitly, by func_to_host_path). These are needed | |
7773 | # for certain cross-compile configurations and native mingw. | |
7774 | m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], | |
7775 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
7776 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
7777 | AC_MSG_CHECKING([how to convert $build file names to $host format]) | |
7778 | AC_CACHE_VAL(lt_cv_to_host_file_cmd, | |
7779 | [case $host in | |
7780 | *-*-mingw* ) | |
7781 | case $build in | |
7782 | *-*-mingw* ) # actually msys | |
7783 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
7784 | ;; | |
7785 | *-*-cygwin* ) | |
7786 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
7787 | ;; | |
7788 | * ) # otherwise, assume *nix | |
7789 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
7790 | ;; | |
7791 | esac | |
7792 | ;; | |
7793 | *-*-cygwin* ) | |
7794 | case $build in | |
7795 | *-*-mingw* ) # actually msys | |
7796 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
7797 | ;; | |
7798 | *-*-cygwin* ) | |
7799 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
7800 | ;; | |
7801 | * ) # otherwise, assume *nix | |
7802 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
7803 | ;; | |
7804 | esac | |
7805 | ;; | |
7806 | * ) # unhandled hosts (and "normal" native builds) | |
7807 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
7808 | ;; | |
7809 | esac | |
7810 | ]) | |
7811 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
7812 | AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) | |
7813 | _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], | |
7814 | [0], [convert $build file names to $host format])dnl | |
7815 | ||
7816 | AC_MSG_CHECKING([how to convert $build file names to toolchain format]) | |
7817 | AC_CACHE_VAL(lt_cv_to_tool_file_cmd, | |
7818 | [#assume ordinary cross tools, or native build. | |
7819 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
7820 | case $host in | |
7821 | *-*-mingw* ) | |
7822 | case $build in | |
7823 | *-*-mingw* ) # actually msys | |
7824 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
7825 | ;; | |
7826 | esac | |
7827 | ;; | |
7828 | esac | |
7829 | ]) | |
7830 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
7831 | AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) | |
7832 | _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], | |
7833 | [0], [convert $build files to toolchain format])dnl | |
7834 | ])# _LT_PATH_CONVERSION_FUNCTIONS |
0 | # Helper functions for option handling. -*- Autoconf -*- | |
1 | # | |
2 | # Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, | |
3 | # 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 7 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 | ]) | |
85 | ])# _LT_SET_OPTIONS | |
86 | ||
87 | ||
88 | ## --------------------------------- ## | |
89 | ## Macros to handle LT_INIT options. ## | |
90 | ## --------------------------------- ## | |
91 | ||
92 | # _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) | |
93 | # ----------------------------------------- | |
94 | m4_define([_LT_MANGLE_DEFUN], | |
95 | [[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) | |
96 | ||
97 | ||
98 | # LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) | |
99 | # ----------------------------------------------- | |
100 | m4_define([LT_OPTION_DEFINE], | |
101 | [m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl | |
102 | ])# LT_OPTION_DEFINE | |
103 | ||
104 | ||
105 | # dlopen | |
106 | # ------ | |
107 | LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes | |
108 | ]) | |
109 | ||
110 | AU_DEFUN([AC_LIBTOOL_DLOPEN], | |
111 | [_LT_SET_OPTION([LT_INIT], [dlopen]) | |
112 | AC_DIAGNOSE([obsolete], | |
113 | [$0: Remove this warning and the call to _LT_SET_OPTION when you | |
114 | put the `dlopen' option into LT_INIT's first parameter.]) | |
115 | ]) | |
116 | ||
117 | dnl aclocal-1.4 backwards compatibility: | |
118 | dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) | |
119 | ||
120 | ||
121 | # win32-dll | |
122 | # --------- | |
123 | # Declare package support for building win32 dll's. | |
124 | LT_OPTION_DEFINE([LT_INIT], [win32-dll], | |
125 | [enable_win32_dll=yes | |
126 | ||
127 | case $host in | |
128 | *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
129 | AC_CHECK_TOOL(AS, as, false) | |
130 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
131 | AC_CHECK_TOOL(OBJDUMP, objdump, false) | |
132 | ;; | |
133 | esac | |
134 | ||
135 | test -z "$AS" && AS=as | |
136 | _LT_DECL([], [AS], [1], [Assembler program])dnl | |
137 | ||
138 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
139 | _LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl | |
140 | ||
141 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
142 | _LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl | |
143 | ])# win32-dll | |
144 | ||
145 | AU_DEFUN([AC_LIBTOOL_WIN32_DLL], | |
146 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
147 | _LT_SET_OPTION([LT_INIT], [win32-dll]) | |
148 | AC_DIAGNOSE([obsolete], | |
149 | [$0: Remove this warning and the call to _LT_SET_OPTION when you | |
150 | put the `win32-dll' option into LT_INIT's first parameter.]) | |
151 | ]) | |
152 | ||
153 | dnl aclocal-1.4 backwards compatibility: | |
154 | dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) | |
155 | ||
156 | ||
157 | # _LT_ENABLE_SHARED([DEFAULT]) | |
158 | # ---------------------------- | |
159 | # implement the --enable-shared flag, and supports the `shared' and | |
160 | # `disable-shared' LT_INIT options. | |
161 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
162 | m4_define([_LT_ENABLE_SHARED], | |
163 | [m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl | |
164 | AC_ARG_ENABLE([shared], | |
165 | [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | |
166 | [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], | |
167 | [p=${PACKAGE-default} | |
168 | case $enableval in | |
169 | yes) enable_shared=yes ;; | |
170 | no) enable_shared=no ;; | |
171 | *) | |
172 | enable_shared=no | |
173 | # Look at the argument we got. We use all the common list separators. | |
174 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
175 | for pkg in $enableval; do | |
176 | IFS="$lt_save_ifs" | |
177 | if test "X$pkg" = "X$p"; then | |
178 | enable_shared=yes | |
179 | fi | |
180 | done | |
181 | IFS="$lt_save_ifs" | |
182 | ;; | |
183 | esac], | |
184 | [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) | |
185 | ||
186 | _LT_DECL([build_libtool_libs], [enable_shared], [0], | |
187 | [Whether or not to build shared libraries]) | |
188 | ])# _LT_ENABLE_SHARED | |
189 | ||
190 | LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) | |
191 | LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) | |
192 | ||
193 | # Old names: | |
194 | AC_DEFUN([AC_ENABLE_SHARED], | |
195 | [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) | |
196 | ]) | |
197 | ||
198 | AC_DEFUN([AC_DISABLE_SHARED], | |
199 | [_LT_SET_OPTION([LT_INIT], [disable-shared]) | |
200 | ]) | |
201 | ||
202 | AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) | |
203 | AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) | |
204 | ||
205 | dnl aclocal-1.4 backwards compatibility: | |
206 | dnl AC_DEFUN([AM_ENABLE_SHARED], []) | |
207 | dnl AC_DEFUN([AM_DISABLE_SHARED], []) | |
208 | ||
209 | ||
210 | ||
211 | # _LT_ENABLE_STATIC([DEFAULT]) | |
212 | # ---------------------------- | |
213 | # implement the --enable-static flag, and support the `static' and | |
214 | # `disable-static' LT_INIT options. | |
215 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
216 | m4_define([_LT_ENABLE_STATIC], | |
217 | [m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl | |
218 | AC_ARG_ENABLE([static], | |
219 | [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@], | |
220 | [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])], | |
221 | [p=${PACKAGE-default} | |
222 | case $enableval in | |
223 | yes) enable_static=yes ;; | |
224 | no) enable_static=no ;; | |
225 | *) | |
226 | enable_static=no | |
227 | # Look at the argument we got. We use all the common list separators. | |
228 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
229 | for pkg in $enableval; do | |
230 | IFS="$lt_save_ifs" | |
231 | if test "X$pkg" = "X$p"; then | |
232 | enable_static=yes | |
233 | fi | |
234 | done | |
235 | IFS="$lt_save_ifs" | |
236 | ;; | |
237 | esac], | |
238 | [enable_static=]_LT_ENABLE_STATIC_DEFAULT) | |
239 | ||
240 | _LT_DECL([build_old_libs], [enable_static], [0], | |
241 | [Whether or not to build static libraries]) | |
242 | ])# _LT_ENABLE_STATIC | |
243 | ||
244 | LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])]) | |
245 | LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])]) | |
246 | ||
247 | # Old names: | |
248 | AC_DEFUN([AC_ENABLE_STATIC], | |
249 | [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static]) | |
250 | ]) | |
251 | ||
252 | AC_DEFUN([AC_DISABLE_STATIC], | |
253 | [_LT_SET_OPTION([LT_INIT], [disable-static]) | |
254 | ]) | |
255 | ||
256 | AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) | |
257 | AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) | |
258 | ||
259 | dnl aclocal-1.4 backwards compatibility: | |
260 | dnl AC_DEFUN([AM_ENABLE_STATIC], []) | |
261 | dnl AC_DEFUN([AM_DISABLE_STATIC], []) | |
262 | ||
263 | ||
264 | ||
265 | # _LT_ENABLE_FAST_INSTALL([DEFAULT]) | |
266 | # ---------------------------------- | |
267 | # implement the --enable-fast-install flag, and support the `fast-install' | |
268 | # and `disable-fast-install' LT_INIT options. | |
269 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | |
270 | m4_define([_LT_ENABLE_FAST_INSTALL], | |
271 | [m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl | |
272 | AC_ARG_ENABLE([fast-install], | |
273 | [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | |
274 | [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | |
275 | [p=${PACKAGE-default} | |
276 | case $enableval in | |
277 | yes) enable_fast_install=yes ;; | |
278 | no) enable_fast_install=no ;; | |
279 | *) | |
280 | enable_fast_install=no | |
281 | # Look at the argument we got. We use all the common list separators. | |
282 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
283 | for pkg in $enableval; do | |
284 | IFS="$lt_save_ifs" | |
285 | if test "X$pkg" = "X$p"; then | |
286 | enable_fast_install=yes | |
287 | fi | |
288 | done | |
289 | IFS="$lt_save_ifs" | |
290 | ;; | |
291 | esac], | |
292 | [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT) | |
293 | ||
294 | _LT_DECL([fast_install], [enable_fast_install], [0], | |
295 | [Whether or not to optimize for fast installation])dnl | |
296 | ])# _LT_ENABLE_FAST_INSTALL | |
297 | ||
298 | LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])]) | |
299 | LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])]) | |
300 | ||
301 | # Old names: | |
302 | AU_DEFUN([AC_ENABLE_FAST_INSTALL], | |
303 | [_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install]) | |
304 | AC_DIAGNOSE([obsolete], | |
305 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put | |
306 | the `fast-install' option into LT_INIT's first parameter.]) | |
307 | ]) | |
308 | ||
309 | AU_DEFUN([AC_DISABLE_FAST_INSTALL], | |
310 | [_LT_SET_OPTION([LT_INIT], [disable-fast-install]) | |
311 | AC_DIAGNOSE([obsolete], | |
312 | [$0: Remove this warning and the call to _LT_SET_OPTION when you put | |
313 | the `disable-fast-install' option into LT_INIT's first parameter.]) | |
314 | ]) | |
315 | ||
316 | dnl aclocal-1.4 backwards compatibility: | |
317 | dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], []) | |
318 | dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], []) | |
319 | ||
320 | ||
321 | # _LT_WITH_PIC([MODE]) | |
322 | # -------------------- | |
323 | # implement the --with-pic flag, and support the `pic-only' and `no-pic' | |
324 | # LT_INIT options. | |
325 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | |
326 | m4_define([_LT_WITH_PIC], | |
327 | [AC_ARG_WITH([pic], | |
328 | [AS_HELP_STRING([--with-pic], | |
329 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | |
330 | [pic_mode="$withval"], | |
331 | [pic_mode=default]) | |
332 | ||
333 | test -z "$pic_mode" && pic_mode=m4_default([$1], [default]) | |
334 | ||
335 | _LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl | |
336 | ])# _LT_WITH_PIC | |
337 | ||
338 | LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])]) | |
339 | LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])]) | |
340 | ||
341 | # Old name: | |
342 | AU_DEFUN([AC_LIBTOOL_PICMODE], | |
343 | [_LT_SET_OPTION([LT_INIT], [pic-only]) | |
344 | AC_DIAGNOSE([obsolete], | |
345 | [$0: Remove this warning and the call to _LT_SET_OPTION when you | |
346 | put the `pic-only' option into LT_INIT's first parameter.]) | |
347 | ]) | |
348 | ||
349 | dnl aclocal-1.4 backwards compatibility: | |
350 | dnl AC_DEFUN([AC_LIBTOOL_PICMODE], []) | |
351 | ||
352 | ## ----------------- ## | |
353 | ## LTDL_INIT Options ## | |
354 | ## ----------------- ## | |
355 | ||
356 | m4_define([_LTDL_MODE], []) | |
357 | LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive], | |
358 | [m4_define([_LTDL_MODE], [nonrecursive])]) | |
359 | LT_OPTION_DEFINE([LTDL_INIT], [recursive], | |
360 | [m4_define([_LTDL_MODE], [recursive])]) | |
361 | LT_OPTION_DEFINE([LTDL_INIT], [subproject], | |
362 | [m4_define([_LTDL_MODE], [subproject])]) | |
363 | ||
364 | m4_define([_LTDL_TYPE], []) | |
365 | LT_OPTION_DEFINE([LTDL_INIT], [installable], | |
366 | [m4_define([_LTDL_TYPE], [installable])]) | |
367 | LT_OPTION_DEFINE([LTDL_INIT], [convenience], | |
368 | [m4_define([_LTDL_TYPE], [convenience])]) |
0 | # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- | |
1 | # | |
2 | # Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. | |
3 | # Written by Gary V. Vaughan, 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 | # serial 6 ltsugar.m4 | |
10 | ||
11 | # This is to help aclocal find these macros, as it can't see m4_define. | |
12 | AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) | |
13 | ||
14 | ||
15 | # lt_join(SEP, ARG1, [ARG2...]) | |
16 | # ----------------------------- | |
17 | # Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their | |
18 | # associated separator. | |
19 | # Needed until we can rely on m4_join from Autoconf 2.62, since all earlier | |
20 | # versions in m4sugar had bugs. | |
21 | m4_define([lt_join], | |
22 | [m4_if([$#], [1], [], | |
23 | [$#], [2], [[$2]], | |
24 | [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) | |
25 | m4_define([_lt_join], | |
26 | [m4_if([$#$2], [2], [], | |
27 | [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) | |
28 | ||
29 | ||
30 | # lt_car(LIST) | |
31 | # lt_cdr(LIST) | |
32 | # ------------ | |
33 | # Manipulate m4 lists. | |
34 | # These macros are necessary as long as will still need to support | |
35 | # Autoconf-2.59 which quotes differently. | |
36 | m4_define([lt_car], [[$1]]) | |
37 | m4_define([lt_cdr], | |
38 | [m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], | |
39 | [$#], 1, [], | |
40 | [m4_dquote(m4_shift($@))])]) | |
41 | m4_define([lt_unquote], $1) | |
42 | ||
43 | ||
44 | # lt_append(MACRO-NAME, STRING, [SEPARATOR]) | |
45 | # ------------------------------------------ | |
46 | # Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. | |
47 | # Note that neither SEPARATOR nor STRING are expanded; they are appended | |
48 | # to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). | |
49 | # No SEPARATOR is output if MACRO-NAME was previously undefined (different | |
50 | # than defined and empty). | |
51 | # | |
52 | # This macro is needed until we can rely on Autoconf 2.62, since earlier | |
53 | # versions of m4sugar mistakenly expanded SEPARATOR but not STRING. | |
54 | m4_define([lt_append], | |
55 | [m4_define([$1], | |
56 | m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) | |
57 | ||
58 | ||
59 | ||
60 | # lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) | |
61 | # ---------------------------------------------------------- | |
62 | # Produce a SEP delimited list of all paired combinations of elements of | |
63 | # PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list | |
64 | # has the form PREFIXmINFIXSUFFIXn. | |
65 | # Needed until we can rely on m4_combine added in Autoconf 2.62. | |
66 | m4_define([lt_combine], | |
67 | [m4_if(m4_eval([$# > 3]), [1], | |
68 | [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl | |
69 | [[m4_foreach([_Lt_prefix], [$2], | |
70 | [m4_foreach([_Lt_suffix], | |
71 | ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, | |
72 | [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) | |
73 | ||
74 | ||
75 | # lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) | |
76 | # ----------------------------------------------------------------------- | |
77 | # Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited | |
78 | # by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. | |
79 | m4_define([lt_if_append_uniq], | |
80 | [m4_ifdef([$1], | |
81 | [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], | |
82 | [lt_append([$1], [$2], [$3])$4], | |
83 | [$5])], | |
84 | [lt_append([$1], [$2], [$3])$4])]) | |
85 | ||
86 | ||
87 | # lt_dict_add(DICT, KEY, VALUE) | |
88 | # ----------------------------- | |
89 | m4_define([lt_dict_add], | |
90 | [m4_define([$1($2)], [$3])]) | |
91 | ||
92 | ||
93 | # lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) | |
94 | # -------------------------------------------- | |
95 | m4_define([lt_dict_add_subkey], | |
96 | [m4_define([$1($2:$3)], [$4])]) | |
97 | ||
98 | ||
99 | # lt_dict_fetch(DICT, KEY, [SUBKEY]) | |
100 | # ---------------------------------- | |
101 | m4_define([lt_dict_fetch], | |
102 | [m4_ifval([$3], | |
103 | m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), | |
104 | m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) | |
105 | ||
106 | ||
107 | # lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) | |
108 | # ----------------------------------------------------------------- | |
109 | m4_define([lt_if_dict_fetch], | |
110 | [m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], | |
111 | [$5], | |
112 | [$6])]) | |
113 | ||
114 | ||
115 | # lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) | |
116 | # -------------------------------------------------------------- | |
117 | m4_define([lt_dict_filter], | |
118 | [m4_if([$5], [], [], | |
119 | [lt_join(m4_quote(m4_default([$4], [[, ]])), | |
120 | lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), | |
121 | [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl | |
122 | ]) |
0 | # ltversion.m4 -- version numbers -*- Autoconf -*- | |
1 | # | |
2 | # Copyright (C) 2004 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 3293 ltversion.m4 | |
12 | # This file is part of GNU Libtool | |
13 | ||
14 | m4_define([LT_PACKAGE_VERSION], [2.4]) | |
15 | m4_define([LT_PACKAGE_REVISION], [1.3293]) | |
16 | ||
17 | AC_DEFUN([LTVERSION_VERSION], | |
18 | [macro_version='2.4' | |
19 | macro_revision='1.3293' | |
20 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) | |
21 | _LT_DECL(, macro_revision, 0) | |
22 | ]) |
0 | # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- | |
1 | # | |
2 | # Copyright (C) 2004, 2005, 2007, 2009 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 | # serial 5 lt~obsolete.m4 | |
10 | ||
11 | # These exist entirely to fool aclocal when bootstrapping libtool. | |
12 | # | |
13 | # In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) | |
14 | # which have later been changed to m4_define as they aren't part of the | |
15 | # exported API, or moved to Autoconf or Automake where they belong. | |
16 | # | |
17 | # The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN | |
18 | # in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us | |
19 | # using a macro with the same name in our local m4/libtool.m4 it'll | |
20 | # pull the old libtool.m4 in (it doesn't see our shiny new m4_define | |
21 | # and doesn't know about Autoconf macros at all.) | |
22 | # | |
23 | # So we provide this file, which has a silly filename so it's always | |
24 | # included after everything else. This provides aclocal with the | |
25 | # AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything | |
26 | # because those macros already exist, or will be overwritten later. | |
27 | # We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. | |
28 | # | |
29 | # Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. | |
30 | # Yes, that means every name once taken will need to remain here until | |
31 | # we give up compatibility with versions before 1.7, at which point | |
32 | # we need to keep only those names which we still refer to. | |
33 | ||
34 | # This is to help aclocal find these macros, as it can't see m4_define. | |
35 | AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) | |
36 | ||
37 | m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) | |
38 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) | |
39 | m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) | |
40 | m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) | |
41 | m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) | |
42 | m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) | |
43 | m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) | |
44 | m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) | |
45 | m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) | |
46 | m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) | |
47 | m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) | |
48 | m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) | |
49 | m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) | |
50 | m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) | |
51 | m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) | |
52 | m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) | |
53 | m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) | |
54 | m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) | |
55 | m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) | |
56 | m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) | |
57 | m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) | |
58 | m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) | |
59 | m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) | |
60 | m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) | |
61 | m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) | |
62 | m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) | |
63 | m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) | |
64 | m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) | |
65 | m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) | |
66 | m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) | |
67 | m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) | |
68 | m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) | |
69 | m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) | |
70 | m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) | |
71 | m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) | |
72 | m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) | |
73 | m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) | |
74 | m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) | |
75 | m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) | |
76 | m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) | |
77 | m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) | |
78 | m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) | |
79 | m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) | |
80 | m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) | |
81 | m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) | |
82 | m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) | |
83 | m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) | |
84 | m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) | |
85 | m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) | |
86 | m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) | |
87 | m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) | |
88 | m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) | |
89 | m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) | |
90 | m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) | |
91 | m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) | |
92 | m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) | |
93 | m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) | |
94 | m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) | |
95 | m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) | |
96 | m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) | |
97 | m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])]) |
0 | # Indonesian translation for PolicyKit-gnome. | |
1 | # Copyright (C) 2011 PolicyKit-gnome's COPYRIGHT HOLDER | |
2 | # This file is distributed under the same license as the PolicyKit-gnome package. | |
3 | # Andika Triwidada <andika@gmail.com>, 2011. | |
4 | # | |
5 | msgid "" | |
6 | msgstr "" | |
7 | "Project-Id-Version: PolicyKit-gnome master\n" | |
8 | "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?product=policykit-gnome&keywords=I18N+L10N&component=general\n" | |
9 | "POT-Creation-Date: 2011-10-01 14:11+0000\n" | |
10 | "PO-Revision-Date: 2011-10-04 17:05+0700\n" | |
11 | "Last-Translator: Andika Triwidada <andika@gmail.com>\n" | |
12 | "Language-Team: Indonesian <gnome@i15n.org>\n" | |
13 | "MIME-Version: 1.0\n" | |
14 | "Content-Type: text/plain; charset=UTF-8\n" | |
15 | "Content-Transfer-Encoding: 8bit\n" | |
16 | ||
17 | #: ../src/polkitgnomeauthenticationdialog.c:159 | |
18 | msgid "Select user..." | |
19 | msgstr "Pilih pengguna..." | |
20 | ||
21 | #: ../src/polkitgnomeauthenticationdialog.c:194 | |
22 | #, c-format | |
23 | msgid "%s (%s)" | |
24 | msgstr "%s (%s)" | |
25 | ||
26 | #: ../src/polkitgnomeauthenticationdialog.c:537 | |
27 | msgid "_Authenticate" | |
28 | msgstr "Otentik_asi" | |
29 | ||
30 | #: ../src/polkitgnomeauthenticationdialog.c:576 | |
31 | msgid "An application is attempting to perform an action that requires privileges. Authentication as one of the users below is required to perform this action." | |
32 | msgstr "Suatu aplikasi mencoba melakukan aksi yang memerlukan hak khusus. Otentikasi sebagai salah satu dari pengguna di bawah diperlukan untuk menjalankan aksi ini." | |
33 | ||
34 | #: ../src/polkitgnomeauthenticationdialog.c:584 | |
35 | msgid "An application is attempting to perform an action that requires privileges. Authentication is required to perform this action." | |
36 | msgstr "Suatu aplikasi mencoba melakukan aksi yang memerlukan hak khusus. Otentikasi diperlukan untuk menjalankan aksi ini." | |
37 | ||
38 | #: ../src/polkitgnomeauthenticationdialog.c:590 | |
39 | msgid "An application is attempting to perform an action that requires privileges. Authentication as the super user is required to perform this action." | |
40 | msgstr "Suatu aplikasi mencoba melakukan aksi yang memerlukan hak khusus. Otentikasi sebagai pengguna super diperlukan untuk menjalankan aksi ini." | |
41 | ||
42 | #: ../src/polkitgnomeauthenticationdialog.c:625 | |
43 | #: ../src/polkitgnomeauthenticator.c:300 | |
44 | msgid "_Password:" | |
45 | msgstr "_Sandi:" | |
46 | ||
47 | #. Details | |
48 | #: ../src/polkitgnomeauthenticationdialog.c:643 | |
49 | msgid "<small><b>_Details</b></small>" | |
50 | msgstr "<small><b>_Rincian</b></small>" | |
51 | ||
52 | #: ../src/polkitgnomeauthenticationdialog.c:699 | |
53 | msgid "<small><b>Action:</b></small>" | |
54 | msgstr "<small><b>Aksi:</b></small>" | |
55 | ||
56 | #: ../src/polkitgnomeauthenticationdialog.c:702 | |
57 | #, c-format | |
58 | msgid "Click to edit %s" | |
59 | msgstr "Klik untuk menyunting %s" | |
60 | ||
61 | #: ../src/polkitgnomeauthenticationdialog.c:716 | |
62 | msgid "<small><b>Vendor:</b></small>" | |
63 | msgstr "<small><b>Vendor:</b></small>" | |
64 | ||
65 | #: ../src/polkitgnomeauthenticationdialog.c:718 | |
66 | #, c-format | |
67 | msgid "Click to open %s" | |
68 | msgstr "Klik untuk membuka %s" | |
69 | ||
70 | #: ../src/polkitgnomeauthenticationdialog.c:881 | |
71 | msgid "Authenticate" | |
72 | msgstr "Otentikasi" | |
73 | ||
74 | #: ../src/polkitgnomeauthenticator.c:296 | |
75 | #, c-format | |
76 | msgid "_Password for %s:" | |
77 | msgstr "_Sandi bagi %s:" | |
78 | ||
79 | #: ../src/polkitgnomeauthenticator.c:456 | |
80 | msgid "Authentication Failure" | |
81 | msgstr "Kegagalan Otentikasi" | |
82 | ||
83 | #: ../src/polkitgnomelistener.c:164 | |
84 | msgid "Authentication dialog was dismissed by the user" | |
85 | msgstr "Dialog otentikasi ditutup oleh pengguna" | |
86 |
0 | # Korean translation for PolicyKit-gnome. | |
1 | # Copyright (C) 2011 PolicyKit-gnome's COPYRIGHT HOLDER | |
2 | # This file is distributed under the same license as the PolicyKit-gnome package. | |
3 | # Seong-ho Cho <darkcircle.0426@gmail.com>, 2011. | |
4 | # | |
5 | msgid "" | |
6 | msgstr "" | |
7 | "Project-Id-Version: PolicyKit-gnome master\n" | |
8 | "Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?" | |
9 | "product=policykit-gnome&keywords=I18N+L10N&component=general\n" | |
10 | "POT-Creation-Date: 2011-09-26 13:58+0000\n" | |
11 | "PO-Revision-Date: 2011-09-28 19:04+0900\n" | |
12 | "Last-Translator: Seong-ho, Cho <darkcircle.0426@gmail.com>\n" | |
13 | "Language-Team: Korean <gnome-kr@googlegroups.com>\n" | |
14 | "MIME-Version: 1.0\n" | |
15 | "Content-Type: text/plain; charset=UTF-8\n" | |
16 | "Content-Transfer-Encoding: 8bit\n" | |
17 | "Plural-Forms: nplurals=1; plural=0;\n" | |
18 | ||
19 | #: ../src/polkitgnomeauthenticationdialog.c:159 | |
20 | msgid "Select user..." | |
21 | msgstr "사용자 선택..." | |
22 | ||
23 | #: ../src/polkitgnomeauthenticationdialog.c:194 | |
24 | #, c-format | |
25 | msgid "%s (%s)" | |
26 | msgstr "%s (%s)" | |
27 | ||
28 | #: ../src/polkitgnomeauthenticationdialog.c:537 | |
29 | msgid "_Authenticate" | |
30 | msgstr "인증(_A)" | |
31 | ||
32 | #: ../src/polkitgnomeauthenticationdialog.c:576 | |
33 | msgid "" | |
34 | "An application is attempting to perform an action that requires privileges. " | |
35 | "Authentication as one of the users below is required to perform this action." | |
36 | msgstr "" | |
37 | "프로그램이 권한을 요구하는 동작을 수행하려 합니다. 아래에 포함된 사용자는 이 " | |
38 | "동작을 수행하기 위해 인증이 필요합니다." | |
39 | ||
40 | #: ../src/polkitgnomeauthenticationdialog.c:584 | |
41 | msgid "" | |
42 | "An application is attempting to perform an action that requires privileges. " | |
43 | "Authentication is required to perform this action." | |
44 | msgstr "" | |
45 | "프로그램이 권한을 요구하는 동작을 수행하려 합니다. 이 동작을 수행하기 위해 인" | |
46 | "증이 필요합니다." | |
47 | ||
48 | #: ../src/polkitgnomeauthenticationdialog.c:590 | |
49 | msgid "" | |
50 | "An application is attempting to perform an action that requires privileges. " | |
51 | "Authentication as the super user is required to perform this action." | |
52 | msgstr "" | |
53 | "프로그램이 권한을 요구하는 동작을 수행하려 합니다. 이 동작을 수행하기 위해 슈" | |
54 | "퍼유저의 인증이 필요합니다." | |
55 | ||
56 | #: ../src/polkitgnomeauthenticationdialog.c:625 | |
57 | #: ../src/polkitgnomeauthenticator.c:300 | |
58 | msgid "_Password:" | |
59 | msgstr "암호(_P):" | |
60 | ||
61 | #. Details | |
62 | #: ../src/polkitgnomeauthenticationdialog.c:643 | |
63 | msgid "<small><b>_Details</b></small>" | |
64 | msgstr "<small><b>상세(_D)</b></small>" | |
65 | ||
66 | #: ../src/polkitgnomeauthenticationdialog.c:699 | |
67 | msgid "<small><b>Action:</b></small>" | |
68 | msgstr "<small><b>동작:</b></small>" | |
69 | ||
70 | #: ../src/polkitgnomeauthenticationdialog.c:702 | |
71 | #, c-format | |
72 | msgid "Click to edit %s" | |
73 | msgstr "%s을(를) 편집하려면 누릅니다" | |
74 | ||
75 | #: ../src/polkitgnomeauthenticationdialog.c:716 | |
76 | msgid "<small><b>Vendor:</b></small>" | |
77 | msgstr "<small><b>공급자:</b></small>" | |
78 | ||
79 | #: ../src/polkitgnomeauthenticationdialog.c:718 | |
80 | #, c-format | |
81 | msgid "Click to open %s" | |
82 | msgstr "%s을(를) 열려면 누릅니다" | |
83 | ||
84 | #: ../src/polkitgnomeauthenticationdialog.c:881 | |
85 | msgid "Authenticate" | |
86 | msgstr "인증" | |
87 | ||
88 | #: ../src/polkitgnomeauthenticator.c:296 | |
89 | #, c-format | |
90 | msgid "_Password for %s:" | |
91 | msgstr "%s의 암호(_P):" | |
92 | ||
93 | #: ../src/polkitgnomeauthenticator.c:456 | |
94 | msgid "Authentication Failure" | |
95 | msgstr "인증 실패" | |
96 | ||
97 | #: ../src/polkitgnomelistener.c:164 | |
98 | msgid "Authentication dialog was dismissed by the user" | |
99 | msgstr "사용자에 의해 인증 대화상자가 닫혔습니다" |
6 | 6 | msgstr "" |
7 | 7 | "Project-Id-Version: policykit-gnome\n" |
8 | 8 | "Report-Msgid-Bugs-To: \n" |
9 | "POT-Creation-Date: 2011-04-03 17:47+0200\n" | |
10 | "PO-Revision-Date: 2011-04-03 17:48+0100\n" | |
9 | "POT-Creation-Date: 2011-10-08 07:28+0200\n" | |
10 | "PO-Revision-Date: 2011-10-08 07:28+0100\n" | |
11 | 11 | "Last-Translator: Daniel Nylander <po@danielnylander.se>\n" |
12 | 12 | "Language-Team: Swedish <tp-sv@listor.tp-sv.se>\n" |
13 | 13 | "Language: sv\n" |
15 | 15 | "Content-Type: text/plain; charset=UTF-8\n" |
16 | 16 | "Content-Transfer-Encoding: 8bit\n" |
17 | 17 | |
18 | #: ../polkitgtk/polkitlockbutton.c:458 | |
19 | msgid "Action Identifier" | |
20 | msgstr "Åtgärdsidentifierare" | |
21 | ||
22 | #: ../polkitgtk/polkitlockbutton.c:459 | |
23 | msgid "The action identifier to use for the button" | |
24 | msgstr "Åtgärdsidentifierare att använda för knappen" | |
25 | ||
26 | #: ../polkitgtk/polkitlockbutton.c:475 | |
27 | msgid "Is Authorized" | |
28 | msgstr "Är behörig" | |
29 | ||
30 | #: ../polkitgtk/polkitlockbutton.c:476 | |
31 | msgid "Whether the process is authorized" | |
32 | msgstr "Huruvida processen är behörig" | |
33 | ||
34 | #: ../polkitgtk/polkitlockbutton.c:491 | |
35 | msgid "Is Visible" | |
36 | msgstr "Är synlig" | |
37 | ||
38 | #: ../polkitgtk/polkitlockbutton.c:492 | |
39 | msgid "Whether the widget is visible" | |
40 | msgstr "Huruvida widgeten är synlig" | |
41 | ||
42 | #: ../polkitgtk/polkitlockbutton.c:507 | |
43 | msgid "Can Obtain" | |
44 | msgstr "Kan erhålla" | |
45 | ||
46 | #: ../polkitgtk/polkitlockbutton.c:508 | |
47 | msgid "Whether authorization can be obtained" | |
48 | msgstr "Huruvida behörighet kan erhållas" | |
49 | ||
50 | #: ../polkitgtk/polkitlockbutton.c:523 | |
51 | #: ../polkitgtk/polkitlockbutton.c:625 | |
52 | msgid "Unlock Text" | |
53 | msgstr "Upplåsningstext" | |
54 | ||
55 | #: ../polkitgtk/polkitlockbutton.c:524 | |
56 | msgid "The text to display when prompting the user to unlock." | |
57 | msgstr "Texten att visa när användaren tillfrågas att låsa upp." | |
58 | ||
59 | #: ../polkitgtk/polkitlockbutton.c:525 | |
60 | msgid "Click to make changes" | |
61 | msgstr "Klicka för att göra ändringar" | |
62 | ||
63 | #: ../polkitgtk/polkitlockbutton.c:540 | |
64 | #: ../polkitgtk/polkitlockbutton.c:642 | |
65 | msgid "Unlock Tooltip" | |
66 | msgstr "Verktygstips för upplåsning" | |
67 | ||
68 | #: ../polkitgtk/polkitlockbutton.c:541 | |
69 | msgid "The tooltip to display when prompting the user to unlock." | |
70 | msgstr "Verktygstipset att visa när användaren tillfrågas att låsa upp." | |
71 | ||
72 | #: ../polkitgtk/polkitlockbutton.c:542 | |
73 | msgid "Authentication is needed to make changes." | |
74 | msgstr "Autentisering krävs för att göra ändringar." | |
75 | ||
76 | #: ../polkitgtk/polkitlockbutton.c:557 | |
77 | msgid "Lock Text" | |
78 | msgstr "Låsningstext" | |
79 | ||
80 | #: ../polkitgtk/polkitlockbutton.c:558 | |
81 | msgid "The text to display when prompting the user to lock." | |
82 | msgstr "Texten att visa när användaren tillfrågas att låsa." | |
83 | ||
84 | #: ../polkitgtk/polkitlockbutton.c:559 | |
85 | msgid "Click to prevent changes" | |
86 | msgstr "Klicka för att förhindra ändringar" | |
87 | ||
88 | #: ../polkitgtk/polkitlockbutton.c:574 | |
89 | msgid "Lock Tooltip" | |
90 | msgstr "Verktygstips för låsning" | |
91 | ||
92 | #: ../polkitgtk/polkitlockbutton.c:575 | |
93 | msgid "The tooltip to display when prompting the user to lock." | |
94 | msgstr "Verktygstipset att visa när användaren tillfrågas att låsa." | |
95 | ||
96 | #: ../polkitgtk/polkitlockbutton.c:576 | |
97 | msgid "To prevent further changes, click the lock." | |
98 | msgstr "Klicka på låset för att förhindra ytterligare ändringar." | |
99 | ||
100 | #: ../polkitgtk/polkitlockbutton.c:591 | |
101 | msgid "Lock Down Text" | |
102 | msgstr "Nedlåsningstext" | |
103 | ||
104 | #: ../polkitgtk/polkitlockbutton.c:592 | |
105 | msgid "The text to display when prompting the user to lock down the action for all users." | |
106 | msgstr "Texten att visa när användaren tillfrågas att låsa ned åtgärden för alla användare." | |
107 | ||
108 | #: ../polkitgtk/polkitlockbutton.c:593 | |
109 | msgid "Click to lock down" | |
110 | msgstr "Klicka för att låsa ned" | |
111 | ||
112 | #: ../polkitgtk/polkitlockbutton.c:608 | |
113 | msgid "Lock Down Tooltip" | |
114 | msgstr "Verktygstips för nedlåsning" | |
115 | ||
116 | #: ../polkitgtk/polkitlockbutton.c:609 | |
117 | msgid "The tooltip to display when prompting the user to lock down the action for all users." | |
118 | msgstr "Verktygstipset att visa när användaren tillfrågas att låsa ned åtgärden för alla användare." | |
119 | ||
120 | #: ../polkitgtk/polkitlockbutton.c:610 | |
121 | msgid "To prevent users without administrative privileges from making changes, click the lock." | |
122 | msgstr "Klicka på låset för att förhindra användare som inte har administrativ behörighet att göra ändringar." | |
123 | ||
124 | #: ../polkitgtk/polkitlockbutton.c:626 | |
125 | msgid "The text to display when the user cannot obtain authorization through authentication." | |
126 | msgstr "Texten att visa när användaren inte kan erhålla behörighet genom autentisering." | |
127 | ||
128 | #: ../polkitgtk/polkitlockbutton.c:627 | |
129 | msgid "Not authorized to make changes" | |
130 | msgstr "Inte behörig att göra ändringar" | |
131 | ||
132 | #: ../polkitgtk/polkitlockbutton.c:643 | |
133 | msgid "The tooltip to display when the user cannot obtain authorization through authentication." | |
134 | msgstr "Verktygstipset att visa när användaren inte kan erhålla behörighet genom autentisering." | |
135 | ||
136 | #: ../polkitgtk/polkitlockbutton.c:644 | |
137 | msgid "System policy prevents changes. Contact your system administator." | |
138 | msgstr "Systemets policy förhindrar ändringar. Kontakta din systemadministatör." | |
139 | ||
140 | 18 | #: ../src/polkitgnomeauthenticationdialog.c:159 |
141 | 19 | msgid "Select user..." |
142 | 20 | msgstr "Välj användare..." |
163 | 41 | msgstr "Ett program försöker genomföra en åtgärd som kräver privilegier. Autentisering som superanvändaren krävs för att genomföra denna åtgärd." |
164 | 42 | |
165 | 43 | #: ../src/polkitgnomeauthenticationdialog.c:625 |
166 | #: ../src/polkitgnomeauthenticator.c:301 | |
44 | #: ../src/polkitgnomeauthenticator.c:300 | |
167 | 45 | msgid "_Password:" |
168 | 46 | msgstr "_Lösenord:" |
169 | 47 | |
194 | 72 | msgid "Authenticate" |
195 | 73 | msgstr "Autentisera" |
196 | 74 | |
197 | #: ../src/polkitgnomeauthenticator.c:297 | |
75 | #: ../src/polkitgnomeauthenticator.c:296 | |
198 | 76 | #, c-format |
199 | 77 | msgid "_Password for %s:" |
200 | 78 | msgstr "_Lösenord för %s:" |
201 | 79 | |
202 | #: ../src/polkitgnomeauthenticator.c:457 | |
80 | #: ../src/polkitgnomeauthenticator.c:456 | |
203 | 81 | msgid "Authentication Failure" |
204 | 82 | msgstr "Autentiseringsfel" |
205 | 83 | |
206 | 84 | #: ../src/polkitgnomelistener.c:164 |
207 | msgid "Authentation dialog was dismissed by the user" | |
85 | msgid "Authentication dialog was dismissed by the user" | |
208 | 86 | msgstr "Dialogrutan för autentisering stängdes av användaren" |
209 | 87 | |
88 | #~ msgid "Action Identifier" | |
89 | #~ msgstr "Åtgärdsidentifierare" | |
90 | #~ msgid "The action identifier to use for the button" | |
91 | #~ msgstr "Åtgärdsidentifierare att använda för knappen" | |
92 | #~ msgid "Is Authorized" | |
93 | #~ msgstr "Är behörig" | |
94 | #~ msgid "Whether the process is authorized" | |
95 | #~ msgstr "Huruvida processen är behörig" | |
96 | #~ msgid "Is Visible" | |
97 | #~ msgstr "Är synlig" | |
98 | #~ msgid "Whether the widget is visible" | |
99 | #~ msgstr "Huruvida widgeten är synlig" | |
100 | #~ msgid "Can Obtain" | |
101 | #~ msgstr "Kan erhålla" | |
102 | #~ msgid "Whether authorization can be obtained" | |
103 | #~ msgstr "Huruvida behörighet kan erhållas" | |
104 | #~ msgid "Unlock Text" | |
105 | #~ msgstr "Upplåsningstext" | |
106 | #~ msgid "The text to display when prompting the user to unlock." | |
107 | #~ msgstr "Texten att visa när användaren tillfrågas att låsa upp." | |
108 | #~ msgid "Click to make changes" | |
109 | #~ msgstr "Klicka för att göra ändringar" | |
110 | #~ msgid "Unlock Tooltip" | |
111 | #~ msgstr "Verktygstips för upplåsning" | |
112 | #~ msgid "The tooltip to display when prompting the user to unlock." | |
113 | #~ msgstr "Verktygstipset att visa när användaren tillfrågas att låsa upp." | |
114 | #~ msgid "Authentication is needed to make changes." | |
115 | #~ msgstr "Autentisering krävs för att göra ändringar." | |
116 | #~ msgid "Lock Text" | |
117 | #~ msgstr "Låsningstext" | |
118 | #~ msgid "The text to display when prompting the user to lock." | |
119 | #~ msgstr "Texten att visa när användaren tillfrågas att låsa." | |
120 | #~ msgid "Click to prevent changes" | |
121 | #~ msgstr "Klicka för att förhindra ändringar" | |
122 | #~ msgid "Lock Tooltip" | |
123 | #~ msgstr "Verktygstips för låsning" | |
124 | #~ msgid "The tooltip to display when prompting the user to lock." | |
125 | #~ msgstr "Verktygstipset att visa när användaren tillfrågas att låsa." | |
126 | #~ msgid "To prevent further changes, click the lock." | |
127 | #~ msgstr "Klicka på låset för att förhindra ytterligare ändringar." | |
128 | #~ msgid "Lock Down Text" | |
129 | #~ msgstr "Nedlåsningstext" | |
130 | #~ msgid "" | |
131 | #~ "The text to display when prompting the user to lock down the action for " | |
132 | #~ "all users." | |
133 | #~ msgstr "" | |
134 | #~ "Texten att visa när användaren tillfrågas att låsa ned åtgärden för alla " | |
135 | #~ "användare." | |
136 | #~ msgid "Click to lock down" | |
137 | #~ msgstr "Klicka för att låsa ned" | |
138 | #~ msgid "Lock Down Tooltip" | |
139 | #~ msgstr "Verktygstips för nedlåsning" | |
140 | #~ msgid "" | |
141 | #~ "The tooltip to display when prompting the user to lock down the action " | |
142 | #~ "for all users." | |
143 | #~ msgstr "" | |
144 | #~ "Verktygstipset att visa när användaren tillfrågas att låsa ned åtgärden " | |
145 | #~ "för alla användare." | |
146 | #~ msgid "" | |
147 | #~ "To prevent users without administrative privileges from making changes, " | |
148 | #~ "click the lock." | |
149 | #~ msgstr "" | |
150 | #~ "Klicka på låset för att förhindra användare som inte har administrativ " | |
151 | #~ "behörighet att göra ändringar." | |
152 | #~ msgid "" | |
153 | #~ "The text to display when the user cannot obtain authorization through " | |
154 | #~ "authentication." | |
155 | #~ msgstr "" | |
156 | #~ "Texten att visa när användaren inte kan erhålla behörighet genom " | |
157 | #~ "autentisering." | |
158 | #~ msgid "Not authorized to make changes" | |
159 | #~ msgstr "Inte behörig att göra ändringar" | |
160 | #~ msgid "" | |
161 | #~ "The tooltip to display when the user cannot obtain authorization through " | |
162 | #~ "authentication." | |
163 | #~ msgstr "" | |
164 | #~ "Verktygstipset att visa när användaren inte kan erhålla behörighet genom " | |
165 | #~ "autentisering." | |
166 | #~ msgid "System policy prevents changes. Contact your system administator." | |
167 | #~ msgstr "" | |
168 | #~ "Systemets policy förhindrar ändringar. Kontakta din systemadministatör." | |
210 | 169 | #~ msgid "" |
211 | 170 | #~ "This button is locked down so only users with administrative privileges " |
212 | 171 | #~ "can unlock it. Right-click the button to remove the lock down." |
23 | 23 | |
24 | 24 | polkit_gnome_authentication_agent_1_CFLAGS = \ |
25 | 25 | $(GTK_CFLAGS) \ |
26 | $(GLIB_CFLAGS) \ | |
26 | 27 | $(GCONF_CFLAGS) \ |
27 | 28 | $(POLKIT_AGENT_CFLAGS) \ |
28 | 29 | $(POLKIT_GOBJECT_CFLAGS) \ |
34 | 35 | |
35 | 36 | polkit_gnome_authentication_agent_1_LDADD = \ |
36 | 37 | $(GTK_LIBS) \ |
38 | $(GLIB_LIBS) \ | |
37 | 39 | $(GCONF_LIBS) \ |
38 | 40 | $(POLKIT_AGENT_LIBS) \ |
39 | 41 | $(POLKIT_GOBJECT_LIBS) \ |
37 | 37 | subdir = src |
38 | 38 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in |
39 | 39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 |
40 | am__aclocal_m4_deps = $(top_srcdir)/configure.ac | |
40 | am__aclocal_m4_deps = $(top_srcdir)/m4/intltool.m4 \ | |
41 | $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \ | |
42 | $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ | |
43 | $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/configure.ac | |
41 | 44 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ |
42 | 45 | $(ACLOCAL_M4) |
43 | 46 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs |
57 | 60 | am__DEPENDENCIES_1 = |
58 | 61 | polkit_gnome_authentication_agent_1_DEPENDENCIES = \ |
59 | 62 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ |
60 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) | |
63 | $(am__DEPENDENCIES_1) $(am__DEPENDENCIES_1) \ | |
64 | $(am__DEPENDENCIES_1) | |
61 | 65 | AM_V_lt = $(am__v_lt_$(V)) |
62 | 66 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) |
63 | 67 | am__v_lt_0 = --silent |
98 | 102 | CTAGS = ctags |
99 | 103 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) |
100 | 104 | ACLOCAL = @ACLOCAL@ |
101 | ACLOCAL_AMFLAGS = @ACLOCAL_AMFLAGS@ | |
102 | 105 | ALL_LINGUAS = @ALL_LINGUAS@ |
103 | 106 | AMTAR = @AMTAR@ |
104 | 107 | AM_CFLAGS = @AM_CFLAGS@ |
122 | 125 | DATADIRNAME = @DATADIRNAME@ |
123 | 126 | DEFS = @DEFS@ |
124 | 127 | DEPDIR = @DEPDIR@ |
125 | DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ | |
126 | 128 | DLLTOOL = @DLLTOOL@ |
127 | 129 | DSYMUTIL = @DSYMUTIL@ |
128 | 130 | DUMPBIN = @DUMPBIN@ |
133 | 135 | EXEEXT = @EXEEXT@ |
134 | 136 | FGREP = @FGREP@ |
135 | 137 | GETTEXT_PACKAGE = @GETTEXT_PACKAGE@ |
136 | GIRDIR = @GIRDIR@ | |
137 | GIRTYPELIBDIR = @GIRTYPELIBDIR@ | |
138 | GLIB_CFLAGS = @GLIB_CFLAGS@ | |
139 | GLIB_LIBS = @GLIB_LIBS@ | |
138 | 140 | GMOFILES = @GMOFILES@ |
139 | 141 | GMSGFMT = @GMSGFMT@ |
140 | 142 | GREP = @GREP@ |
141 | GTKDOC_CHECK = @GTKDOC_CHECK@ | |
142 | GTKDOC_DEPS_CFLAGS = @GTKDOC_DEPS_CFLAGS@ | |
143 | GTKDOC_DEPS_LIBS = @GTKDOC_DEPS_LIBS@ | |
144 | GTKDOC_MKPDF = @GTKDOC_MKPDF@ | |
145 | GTKDOC_REBASE = @GTKDOC_REBASE@ | |
146 | 143 | GTK_CFLAGS = @GTK_CFLAGS@ |
147 | 144 | GTK_LIBS = @GTK_LIBS@ |
148 | G_IR_COMPILER = @G_IR_COMPILER@ | |
149 | G_IR_GENERATE = @G_IR_GENERATE@ | |
150 | G_IR_SCANNER = @G_IR_SCANNER@ | |
151 | HTML_DIR = @HTML_DIR@ | |
152 | 145 | INSTALL = @INSTALL@ |
153 | 146 | INSTALL_DATA = @INSTALL_DATA@ |
154 | 147 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
160 | 153 | INTLTOOL_MERGE = @INTLTOOL_MERGE@ |
161 | 154 | INTLTOOL_PERL = @INTLTOOL_PERL@ |
162 | 155 | INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ |
163 | INTROSPECTION_CFLAGS = @INTROSPECTION_CFLAGS@ | |
164 | INTROSPECTION_LIBS = @INTROSPECTION_LIBS@ | |
165 | 156 | LD = @LD@ |
166 | 157 | LDFLAGS = @LDFLAGS@ |
167 | 158 | LIBOBJS = @LIBOBJS@ |
288 | 279 | |
289 | 280 | polkit_gnome_authentication_agent_1_CFLAGS = \ |
290 | 281 | $(GTK_CFLAGS) \ |
282 | $(GLIB_CFLAGS) \ | |
291 | 283 | $(GCONF_CFLAGS) \ |
292 | 284 | $(POLKIT_AGENT_CFLAGS) \ |
293 | 285 | $(POLKIT_GOBJECT_CFLAGS) \ |
299 | 291 | |
300 | 292 | polkit_gnome_authentication_agent_1_LDADD = \ |
301 | 293 | $(GTK_LIBS) \ |
294 | $(GLIB_LIBS) \ | |
302 | 295 | $(GCONF_LIBS) \ |
303 | 296 | $(POLKIT_AGENT_LIBS) \ |
304 | 297 | $(POLKIT_GOBJECT_LIBS) \ |