Imported Upstream version 0.101
Michael Biebl
13 years ago
132 | 132 | DEFS = @DEFS@ |
133 | 133 | DEPDIR = @DEPDIR@ |
134 | 134 | DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ |
135 | DLLTOOL = @DLLTOOL@ | |
135 | 136 | DSYMUTIL = @DSYMUTIL@ |
136 | 137 | DUMPBIN = @DUMPBIN@ |
137 | 138 | ECHO_C = @ECHO_C@ |
182 | 183 | LT_REVISION = @LT_REVISION@ |
183 | 184 | MAINT = @MAINT@ |
184 | 185 | MAKEINFO = @MAKEINFO@ |
186 | MANIFEST_TOOL = @MANIFEST_TOOL@ | |
185 | 187 | MKDIR_P = @MKDIR_P@ |
186 | 188 | MKINSTALLDIRS = @MKINSTALLDIRS@ |
187 | 189 | MSGFMT = @MSGFMT@ |
225 | 227 | abs_srcdir = @abs_srcdir@ |
226 | 228 | abs_top_builddir = @abs_top_builddir@ |
227 | 229 | abs_top_srcdir = @abs_top_srcdir@ |
230 | ac_ct_AR = @ac_ct_AR@ | |
228 | 231 | ac_ct_CC = @ac_ct_CC@ |
229 | 232 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
230 | 233 | am__include = @am__include@ |
0 | ========== | |
1 | polkit-gnome 0.101 | |
2 | ========== | |
3 | ||
4 | This is polkit-gnome version 0.101. | |
5 | ||
6 | Build requirements | |
7 | ||
8 | polkit >= 0.96 | |
9 | gtk+-2.0 >= 2.17.1 OR gtk+-3.0 | |
10 | ||
11 | Changes since 0.100: | |
12 | ||
13 | David Zeuthen (7): | |
14 | Post-release version bump to 0.101 | |
15 | Return error when authentication dialog is dismissed | |
16 | Fix crashers if icons cannot be loaded | |
17 | Don't use deprecated polkit API | |
18 | Fix warnings with gcc 4.6 | |
19 | Update NEWS for release | |
20 | Update POTFILES.in | |
21 | ||
22 | Matthias Clasen (1): | |
23 | Connect to the session bus | |
24 | ||
25 | Thanks to our contributors. | |
26 | ||
27 | David Zeuthen, | |
28 | March 3, 2011 | |
29 | ||
0 | 30 | ========== |
1 | 31 | polkit-gnome 0.100 |
2 | 32 | ========== |
12 | 12 | |
13 | 13 | m4_ifndef([AC_AUTOCONF_VERSION], |
14 | 14 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl |
15 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.66],, | |
16 | [m4_warning([this file was generated for autoconf 2.66. | |
15 | m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.68],, | |
16 | [m4_warning([this file was generated for autoconf 2.68. | |
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 | 20 | |
21 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
21 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. | |
22 | # Copyright (C) 2001-2003,2004 Red Hat, Inc. | |
22 | 23 | # |
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. | |
24 | # This file is free software, distributed under the terms of the GNU | |
25 | # General Public License. As a special exception to the GNU General | |
26 | # Public License, this file may be distributed as part of a program | |
27 | # that contains a configuration script generated by Autoconf, under | |
28 | # the same distribution terms as the rest of that program. | |
60 | 29 | # |
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/../..'. | |
30 | # This file can be copied and used freely without restrictions. It can | |
31 | # be used in projects which are not available under the GNU Public License | |
32 | # but which still want to provide support for the GNU gettext functionality. | |
68 | 33 | # |
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. | |
34 | # Macro to add for using GNU gettext. | |
35 | # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 | |
76 | 36 | # |
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 | |
37 | # Modified to never use included libintl. | |
38 | # Owen Taylor <otaylor@redhat.com>, 12/15/1998 | |
83 | 39 | # |
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. | |
40 | # Major rework to remove unused code | |
41 | # Owen Taylor <otaylor@redhat.com>, 12/11/2002 | |
88 | 42 | # |
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. | |
43 | # Added better handling of ALL_LINGUAS from GNU gettext version | |
44 | # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 | |
98 | 45 | # |
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. | |
46 | # Modified to require ngettext | |
47 | # Matthias Clasen <mclasen@redhat.com> 08/06/2004 | |
114 | 48 | # |
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 | |
49 | # We need this here as well, since someone might use autoconf-2.5x | |
50 | # to configure GLib then an older version to configure a package | |
51 | # using AM_GLIB_GNU_GETTEXT | |
52 | AC_PREREQ(2.53) | |
53 | ||
54 | dnl | |
55 | dnl We go to great lengths to make sure that aclocal won't | |
56 | dnl try to pull in the installed version of these macros | |
57 | dnl when running aclocal in the glib directory. | |
58 | dnl | |
59 | m4_copy([AC_DEFUN],[glib_DEFUN]) | |
60 | m4_copy([AC_REQUIRE],[glib_REQUIRE]) | |
61 | dnl | |
62 | dnl At the end, if we're not within glib, we'll define the public | |
63 | dnl definitions in terms of our private definitions. | |
64 | dnl | |
65 | ||
66 | # GLIB_LC_MESSAGES | |
67 | #-------------------- | |
68 | glib_DEFUN([GLIB_LC_MESSAGES], | |
69 | [AC_CHECK_HEADERS([locale.h]) | |
70 | if test $ac_cv_header_locale_h = yes; then | |
71 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | |
72 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | |
73 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | |
74 | if test $am_cv_val_LC_MESSAGES = yes; then | |
75 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | |
76 | [Define if your <locale.h> file defines LC_MESSAGES.]) | |
77 | fi | |
78 | fi]) | |
79 | ||
80 | # GLIB_PATH_PROG_WITH_TEST | |
81 | #---------------------------- | |
82 | dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | |
83 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) | |
84 | glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], | |
85 | [# Extract the first word of "$2", so it can be a program name with args. | |
86 | set dummy $2; ac_word=[$]2 | |
87 | AC_MSG_CHECKING([for $ac_word]) | |
88 | AC_CACHE_VAL(ac_cv_path_$1, | |
89 | [case "[$]$1" in | |
90 | /*) | |
91 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. | |
92 | ;; | |
93 | *) | |
94 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
95 | for ac_dir in ifelse([$5], , $PATH, [$5]); do | |
96 | test -z "$ac_dir" && ac_dir=. | |
97 | if test -f $ac_dir/$ac_word; then | |
98 | if [$3]; then | |
99 | ac_cv_path_$1="$ac_dir/$ac_word" | |
254 | 100 | 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 | 101 | fi |
287 | 102 | fi |
288 | 103 | done |
289 | ||
290 | cd .. | |
291 | rm -rf conftest.dir | |
104 | IFS="$ac_save_ifs" | |
105 | dnl If no 4th arg is given, leave the cache variable unset, | |
106 | dnl so AC_PATH_PROGS will keep looking. | |
107 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" | |
108 | ])dnl | |
109 | ;; | |
110 | esac])dnl | |
111 | $1="$ac_cv_path_$1" | |
112 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then | |
113 | AC_MSG_RESULT([$]$1) | |
292 | 114 | else |
293 | am_cv_$1_dependencies_compiler_type=none | |
115 | AC_MSG_RESULT(no) | |
294 | 116 | fi |
117 | AC_SUBST($1)dnl | |
295 | 118 | ]) |
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]) | |
119 | ||
120 | # GLIB_WITH_NLS | |
121 | #----------------- | |
122 | glib_DEFUN([GLIB_WITH_NLS], | |
123 | dnl NLS is obligatory | |
124 | [USE_NLS=yes | |
125 | AC_SUBST(USE_NLS) | |
126 | ||
127 | gt_cv_have_gettext=no | |
128 | ||
129 | CATOBJEXT=NONE | |
130 | XGETTEXT=: | |
131 | INTLLIBS= | |
132 | ||
133 | AC_CHECK_HEADER(libintl.h, | |
134 | [gt_cv_func_dgettext_libintl="no" | |
135 | libintl_extra_libs="" | |
136 | ||
137 | # | |
138 | # First check in libc | |
139 | # | |
140 | AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, | |
141 | [AC_TRY_LINK([ | |
142 | #include <libintl.h> | |
143 | ], | |
144 | [return !ngettext ("","", 1)], | |
145 | gt_cv_func_ngettext_libc=yes, | |
146 | gt_cv_func_ngettext_libc=no) | |
147 | ]) | |
148 | ||
149 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | |
150 | AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, | |
151 | [AC_TRY_LINK([ | |
152 | #include <libintl.h> | |
153 | ], | |
154 | [return !dgettext ("","")], | |
155 | gt_cv_func_dgettext_libc=yes, | |
156 | gt_cv_func_dgettext_libc=no) | |
157 | ]) | |
158 | fi | |
159 | ||
160 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | |
161 | AC_CHECK_FUNCS(bind_textdomain_codeset) | |
162 | fi | |
163 | ||
164 | # | |
165 | # If we don't have everything we want, check in libintl | |
166 | # | |
167 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | |
168 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | |
169 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | |
170 | ||
171 | AC_CHECK_LIB(intl, bindtextdomain, | |
172 | [AC_CHECK_LIB(intl, ngettext, | |
173 | [AC_CHECK_LIB(intl, dgettext, | |
174 | gt_cv_func_dgettext_libintl=yes)])]) | |
175 | ||
176 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | |
177 | AC_MSG_CHECKING([if -liconv is needed to use gettext]) | |
178 | AC_MSG_RESULT([]) | |
179 | AC_CHECK_LIB(intl, ngettext, | |
180 | [AC_CHECK_LIB(intl, dcgettext, | |
181 | [gt_cv_func_dgettext_libintl=yes | |
182 | libintl_extra_libs=-liconv], | |
183 | :,-liconv)], | |
184 | :,-liconv) | |
185 | fi | |
186 | ||
187 | # | |
188 | # If we found libintl, then check in it for bind_textdomain_codeset(); | |
189 | # we'll prefer libc if neither have bind_textdomain_codeset(), | |
190 | # and both have dgettext and ngettext | |
191 | # | |
192 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | |
193 | glib_save_LIBS="$LIBS" | |
194 | LIBS="$LIBS -lintl $libintl_extra_libs" | |
195 | unset ac_cv_func_bind_textdomain_codeset | |
196 | AC_CHECK_FUNCS(bind_textdomain_codeset) | |
197 | LIBS="$glib_save_LIBS" | |
198 | ||
199 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | |
200 | gt_cv_func_dgettext_libc=no | |
201 | else | |
202 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | |
203 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | |
204 | gt_cv_func_dgettext_libintl=no | |
205 | fi | |
206 | fi | |
207 | fi | |
208 | fi | |
209 | ||
210 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | |
211 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | |
212 | gt_cv_have_gettext=yes | |
213 | fi | |
214 | ||
215 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | |
216 | INTLLIBS="-lintl $libintl_extra_libs" | |
217 | fi | |
218 | ||
219 | if test "$gt_cv_have_gettext" = "yes"; then | |
220 | AC_DEFINE(HAVE_GETTEXT,1, | |
221 | [Define if the GNU gettext() function is already present or preinstalled.]) | |
222 | GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | |
223 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl | |
224 | if test "$MSGFMT" != "no"; then | |
225 | glib_save_LIBS="$LIBS" | |
226 | LIBS="$LIBS $INTLLIBS" | |
227 | AC_CHECK_FUNCS(dcgettext) | |
228 | MSGFMT_OPTS= | |
229 | AC_MSG_CHECKING([if msgfmt accepts -c]) | |
230 | GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ | |
231 | msgid "" | |
232 | msgstr "" | |
233 | "Content-Type: text/plain; charset=UTF-8\n" | |
234 | "Project-Id-Version: test 1.0\n" | |
235 | "PO-Revision-Date: 2007-02-15 12:01+0100\n" | |
236 | "Last-Translator: test <foo@bar.xx>\n" | |
237 | "Language-Team: C <LL@li.org>\n" | |
238 | "MIME-Version: 1.0\n" | |
239 | "Content-Transfer-Encoding: 8bit\n" | |
240 | ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) | |
241 | AC_SUBST(MSGFMT_OPTS) | |
242 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | |
243 | GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | |
244 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) | |
245 | AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; | |
246 | return _nl_msg_cat_cntr], | |
247 | [CATOBJEXT=.gmo | |
248 | DATADIRNAME=share], | |
249 | [case $host in | |
250 | *-*-solaris*) | |
251 | dnl On Solaris, if bind_textdomain_codeset is in libc, | |
252 | dnl GNU format message catalog is always supported, | |
253 | dnl since both are added to the libc all together. | |
254 | dnl Hence, we'd like to go with DATADIRNAME=share and | |
255 | dnl and CATOBJEXT=.gmo in this case. | |
256 | AC_CHECK_FUNC(bind_textdomain_codeset, | |
257 | [CATOBJEXT=.gmo | |
258 | DATADIRNAME=share], | |
259 | [CATOBJEXT=.mo | |
260 | DATADIRNAME=lib]) | |
261 | ;; | |
262 | *) | |
263 | CATOBJEXT=.mo | |
264 | DATADIRNAME=lib | |
265 | ;; | |
266 | esac]) | |
267 | LIBS="$glib_save_LIBS" | |
268 | INSTOBJEXT=.mo | |
269 | else | |
270 | gt_cv_have_gettext=no | |
271 | fi | |
272 | fi | |
273 | ]) | |
274 | ||
275 | if test "$gt_cv_have_gettext" = "yes" ; then | |
276 | AC_DEFINE(ENABLE_NLS, 1, | |
277 | [always defined to indicate that i18n is enabled]) | |
278 | fi | |
279 | ||
280 | dnl Test whether we really found GNU xgettext. | |
281 | if test "$XGETTEXT" != ":"; then | |
282 | dnl If it is not GNU xgettext we define it as : so that the | |
283 | dnl Makefiles still can work. | |
284 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
285 | : ; | |
286 | else | |
287 | AC_MSG_RESULT( | |
288 | [found xgettext program is not GNU xgettext; ignore it]) | |
289 | XGETTEXT=":" | |
290 | fi | |
291 | fi | |
292 | ||
293 | # We need to process the po/ directory. | |
294 | POSUB=po | |
295 | ||
296 | AC_OUTPUT_COMMANDS( | |
297 | [case "$CONFIG_FILES" in *po/Makefile.in*) | |
298 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
299 | esac]) | |
300 | ||
301 | dnl These rules are solely for the distribution goal. While doing this | |
302 | dnl we only have to keep exactly one list of the available catalogs | |
303 | dnl in configure.ac. | |
304 | for lang in $ALL_LINGUAS; do | |
305 | GMOFILES="$GMOFILES $lang.gmo" | |
306 | POFILES="$POFILES $lang.po" | |
307 | done | |
308 | ||
309 | dnl Make all variables we use known to autoconf. | |
310 | AC_SUBST(CATALOGS) | |
311 | AC_SUBST(CATOBJEXT) | |
312 | AC_SUBST(DATADIRNAME) | |
313 | AC_SUBST(GMOFILES) | |
314 | AC_SUBST(INSTOBJEXT) | |
315 | AC_SUBST(INTLLIBS) | |
316 | AC_SUBST(PO_IN_DATADIR_TRUE) | |
317 | AC_SUBST(PO_IN_DATADIR_FALSE) | |
318 | AC_SUBST(POFILES) | |
319 | AC_SUBST(POSUB) | |
320 | ]) | |
321 | ||
322 | # AM_GLIB_GNU_GETTEXT | |
323 | # ------------------- | |
324 | # Do checks necessary for use of gettext. If a suitable implementation | |
325 | # of gettext is found in either in libintl or in the C library, | |
326 | # it will set INTLLIBS to the libraries needed for use of gettext | |
327 | # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable | |
328 | # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() | |
329 | # on various variables needed by the Makefile.in.in installed by | |
330 | # glib-gettextize. | |
331 | dnl | |
332 | glib_DEFUN([GLIB_GNU_GETTEXT], | |
333 | [AC_REQUIRE([AC_PROG_CC])dnl | |
334 | AC_REQUIRE([AC_HEADER_STDC])dnl | |
335 | ||
336 | GLIB_LC_MESSAGES | |
337 | GLIB_WITH_NLS | |
338 | ||
339 | if test "$gt_cv_have_gettext" = "yes"; then | |
340 | if test "x$ALL_LINGUAS" = "x"; then | |
341 | LINGUAS= | |
342 | else | |
343 | AC_MSG_CHECKING(for catalogs to be installed) | |
344 | NEW_LINGUAS= | |
345 | for presentlang in $ALL_LINGUAS; do | |
346 | useit=no | |
347 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | |
348 | desiredlanguages="$LINGUAS" | |
349 | else | |
350 | desiredlanguages="$ALL_LINGUAS" | |
351 | fi | |
352 | for desiredlang in $desiredlanguages; do | |
353 | # Use the presentlang catalog if desiredlang is | |
354 | # a. equal to presentlang, or | |
355 | # b. a variant of presentlang (because in this case, | |
356 | # presentlang can be used as a fallback for messages | |
357 | # which are not translated in the desiredlang catalog). | |
358 | case "$desiredlang" in | |
359 | "$presentlang"*) useit=yes;; | |
360 | esac | |
361 | done | |
362 | if test $useit = yes; then | |
363 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | |
364 | fi | |
365 | done | |
366 | LINGUAS=$NEW_LINGUAS | |
367 | AC_MSG_RESULT($LINGUAS) | |
368 | fi | |
369 | ||
370 | dnl Construct list of names of catalog files to be constructed. | |
371 | if test -n "$LINGUAS"; then | |
372 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
373 | fi | |
374 | fi | |
375 | ||
376 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | |
377 | dnl find the mkinstalldirs script in another subdir but ($top_srcdir). | |
378 | dnl Try to locate is. | |
379 | MKINSTALLDIRS= | |
380 | if test -n "$ac_aux_dir"; then | |
381 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
382 | fi | |
383 | if test -z "$MKINSTALLDIRS"; then | |
384 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
385 | fi | |
386 | AC_SUBST(MKINSTALLDIRS) | |
387 | ||
388 | dnl Generate list of files to be processed by xgettext which will | |
389 | dnl be included in po/Makefile. | |
390 | test -d po || mkdir po | |
391 | if test "x$srcdir" != "x."; then | |
392 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
393 | posrcprefix="$srcdir/" | |
394 | else | |
395 | posrcprefix="../$srcdir/" | |
396 | fi | |
397 | else | |
398 | posrcprefix="../" | |
399 | fi | |
400 | rm -f po/POTFILES | |
401 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
402 | < $srcdir/po/POTFILES.in > po/POTFILES | |
403 | ]) | |
404 | ||
405 | # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) | |
406 | # ------------------------------- | |
407 | # Define VARIABLE to the location where catalog files will | |
408 | # be installed by po/Makefile. | |
409 | glib_DEFUN([GLIB_DEFINE_LOCALEDIR], | |
410 | [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl | |
411 | glib_save_prefix="$prefix" | |
412 | glib_save_exec_prefix="$exec_prefix" | |
413 | glib_save_datarootdir="$datarootdir" | |
414 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
415 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix | |
416 | datarootdir=`eval echo "${datarootdir}"` | |
417 | if test "x$CATOBJEXT" = "x.mo" ; then | |
418 | localedir=`eval echo "${libdir}/locale"` | |
419 | else | |
420 | localedir=`eval echo "${datadir}/locale"` | |
421 | fi | |
422 | prefix="$glib_save_prefix" | |
423 | exec_prefix="$glib_save_exec_prefix" | |
424 | datarootdir="$glib_save_datarootdir" | |
425 | AC_DEFINE_UNQUOTED($1, "$localedir", | |
426 | [Define the location where the catalogs will be installed]) | |
300 | 427 | ]) |
301 | 428 | |
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 | |
429 | dnl | |
430 | dnl Now the definitions that aclocal will find | |
431 | dnl | |
432 | ifdef(glib_configure_ac,[],[ | |
433 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) | |
434 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) | |
435 | ])dnl | |
436 | ||
437 | # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) | |
438 | # | |
439 | # Create a temporary file with TEST-FILE as its contents and pass the | |
440 | # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with | |
441 | # 0 and perform ACTION-IF-FAIL for any other exit status. | |
442 | AC_DEFUN([GLIB_RUN_PROG], | |
443 | [cat >conftest.foo <<_ACEOF | |
444 | $2 | |
445 | _ACEOF | |
446 | if AC_RUN_LOG([$1 conftest.foo]); then | |
447 | m4_ifval([$3], [$3], [:]) | |
448 | m4_ifvaln([$4], [else $4])dnl | |
449 | echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD | |
450 | sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD | |
451 | fi]) | |
452 | ||
1017 | 453 | |
1018 | 454 | # gnome-common.m4 |
1019 | 455 | # |
1634 | 1070 | dnl |
1635 | 1071 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
1636 | 1072 | m4_require([_LT_CHECK_SHELL_FEATURES])dnl |
1073 | m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl | |
1637 | 1074 | m4_require([_LT_CMD_RELOAD])dnl |
1638 | 1075 | m4_require([_LT_CHECK_MAGIC_METHOD])dnl |
1076 | m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl | |
1639 | 1077 | m4_require([_LT_CMD_OLD_ARCHIVE])dnl |
1640 | 1078 | m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl |
1079 | m4_require([_LT_WITH_SYSROOT])dnl | |
1641 | 1080 | |
1642 | 1081 | _LT_CONFIG_LIBTOOL_INIT([ |
1643 | 1082 | # See if we are running on zsh, and set the options which allow our |
2208 | 1647 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
2209 | 1648 | # text mode, it properly converts lines to CR/LF. This bash problem |
2210 | 1649 | # is reportedly fixed, but why not run on old versions too? |
2211 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
2212 | || (rm -f "$cfgfile"; exit 1) | |
2213 | ||
2214 | _LT_PROG_XSI_SHELLFNS | |
2215 | ||
2216 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
2217 | || (rm -f "$cfgfile"; exit 1) | |
2218 | ||
2219 | mv -f "$cfgfile" "$ofile" || | |
1650 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
1651 | || (rm -f "$cfgfile"; exit 1) | |
1652 | ||
1653 | _LT_PROG_REPLACE_SHELLFNS | |
1654 | ||
1655 | mv -f "$cfgfile" "$ofile" || | |
2220 | 1656 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
2221 | 1657 | chmod +x "$ofile" |
2222 | 1658 | ], |
2533 | 1969 | fi |
2534 | 1970 | ]) |
2535 | 1971 | |
2536 | # _LT_SYS_MODULE_PATH_AIX | |
2537 | # ----------------------- | |
1972 | # _LT_SYS_MODULE_PATH_AIX([TAGNAME]) | |
1973 | # ---------------------------------- | |
2538 | 1974 | # Links a minimal program and checks the executable |
2539 | 1975 | # for the system default hardcoded library path. In most cases, |
2540 | 1976 | # this is /usr/lib:/lib, but when the MPI compilers are used |
2541 | 1977 | # the location of the communication and MPI libs are included too. |
2542 | 1978 | # If we don't find anything, use the default library path according |
2543 | 1979 | # to the aix ld manual. |
1980 | # Store the results from the different compilers for each TAGNAME. | |
1981 | # Allow to override them for all tags through lt_cv_aix_libpath. | |
2544 | 1982 | m4_defun([_LT_SYS_MODULE_PATH_AIX], |
2545 | 1983 | [m4_require([_LT_DECL_SED])dnl |
2546 | AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | |
2547 | lt_aix_libpath_sed=' | |
2548 | /Import File Strings/,/^$/ { | |
2549 | /^0/ { | |
2550 | s/^0 *\(.*\)$/\1/ | |
2551 | p | |
2552 | } | |
2553 | }' | |
2554 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
2555 | # Check for a 64-bit object if we didn't find anything. | |
2556 | if test -z "$aix_libpath"; then | |
2557 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
2558 | fi],[]) | |
2559 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
1984 | if test "${lt_cv_aix_libpath+set}" = set; then | |
1985 | aix_libpath=$lt_cv_aix_libpath | |
1986 | else | |
1987 | AC_CACHE_VAL([_LT_TAGVAR([lt_cv_aix_libpath_], [$1])], | |
1988 | [AC_LINK_IFELSE([AC_LANG_PROGRAM],[ | |
1989 | lt_aix_libpath_sed='[ | |
1990 | /Import File Strings/,/^$/ { | |
1991 | /^0/ { | |
1992 | s/^0 *\([^ ]*\) *$/\1/ | |
1993 | p | |
1994 | } | |
1995 | }]' | |
1996 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
1997 | # Check for a 64-bit object if we didn't find anything. | |
1998 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | |
1999 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
2000 | fi],[]) | |
2001 | if test -z "$_LT_TAGVAR([lt_cv_aix_libpath_], [$1])"; then | |
2002 | _LT_TAGVAR([lt_cv_aix_libpath_], [$1])="/usr/lib:/lib" | |
2003 | fi | |
2004 | ]) | |
2005 | aix_libpath=$_LT_TAGVAR([lt_cv_aix_libpath_], [$1]) | |
2006 | fi | |
2560 | 2007 | ])# _LT_SYS_MODULE_PATH_AIX |
2561 | 2008 | |
2562 | 2009 | |
2581 | 2028 | |
2582 | 2029 | AC_MSG_CHECKING([how to print strings]) |
2583 | 2030 | # Test print first, because it will be a builtin if present. |
2584 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
2031 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
2585 | 2032 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
2586 | 2033 | ECHO='print -r --' |
2587 | 2034 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
2624 | 2071 | _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) |
2625 | 2072 | ])# _LT_PROG_ECHO_BACKSLASH |
2626 | 2073 | |
2074 | ||
2075 | # _LT_WITH_SYSROOT | |
2076 | # ---------------- | |
2077 | AC_DEFUN([_LT_WITH_SYSROOT], | |
2078 | [AC_MSG_CHECKING([for sysroot]) | |
2079 | AC_ARG_WITH([sysroot], | |
2080 | [ --with-sysroot[=DIR] Search for dependent libraries within DIR | |
2081 | (or the compiler's sysroot if not specified).], | |
2082 | [], [with_sysroot=no]) | |
2083 | ||
2084 | dnl lt_sysroot will always be passed unquoted. We quote it here | |
2085 | dnl in case the user passed a directory name. | |
2086 | lt_sysroot= | |
2087 | case ${with_sysroot} in #( | |
2088 | yes) | |
2089 | if test "$GCC" = yes; then | |
2090 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
2091 | fi | |
2092 | ;; #( | |
2093 | /*) | |
2094 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
2095 | ;; #( | |
2096 | no|'') | |
2097 | ;; #( | |
2098 | *) | |
2099 | AC_MSG_RESULT([${with_sysroot}]) | |
2100 | AC_MSG_ERROR([The sysroot must be an absolute path.]) | |
2101 | ;; | |
2102 | esac | |
2103 | ||
2104 | AC_MSG_RESULT([${lt_sysroot:-no}]) | |
2105 | _LT_DECL([], [lt_sysroot], [0], [The root where to search for ]dnl | |
2106 | [dependent libraries, and in which our libraries should be installed.])]) | |
2627 | 2107 | |
2628 | 2108 | # _LT_ENABLE_LOCK |
2629 | 2109 | # --------------- |
2771 | 2251 | ])# _LT_ENABLE_LOCK |
2772 | 2252 | |
2773 | 2253 | |
2254 | # _LT_PROG_AR | |
2255 | # ----------- | |
2256 | m4_defun([_LT_PROG_AR], | |
2257 | [AC_CHECK_TOOLS(AR, [ar], false) | |
2258 | : ${AR=ar} | |
2259 | : ${AR_FLAGS=cru} | |
2260 | _LT_DECL([], [AR], [1], [The archiver]) | |
2261 | _LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) | |
2262 | ||
2263 | AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], | |
2264 | [lt_cv_ar_at_file=no | |
2265 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM], | |
2266 | [echo conftest.$ac_objext > conftest.lst | |
2267 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&AS_MESSAGE_LOG_FD' | |
2268 | AC_TRY_EVAL([lt_ar_try]) | |
2269 | if test "$ac_status" -eq 0; then | |
2270 | # Ensure the archiver fails upon bogus file names. | |
2271 | rm -f conftest.$ac_objext libconftest.a | |
2272 | AC_TRY_EVAL([lt_ar_try]) | |
2273 | if test "$ac_status" -ne 0; then | |
2274 | lt_cv_ar_at_file=@ | |
2275 | fi | |
2276 | fi | |
2277 | rm -f conftest.* libconftest.a | |
2278 | ]) | |
2279 | ]) | |
2280 | ||
2281 | if test "x$lt_cv_ar_at_file" = xno; then | |
2282 | archiver_list_spec= | |
2283 | else | |
2284 | archiver_list_spec=$lt_cv_ar_at_file | |
2285 | fi | |
2286 | _LT_DECL([], [archiver_list_spec], [1], | |
2287 | [How to feed a file listing to the archiver]) | |
2288 | ])# _LT_PROG_AR | |
2289 | ||
2290 | ||
2774 | 2291 | # _LT_CMD_OLD_ARCHIVE |
2775 | 2292 | # ------------------- |
2776 | 2293 | m4_defun([_LT_CMD_OLD_ARCHIVE], |
2777 | [AC_CHECK_TOOL(AR, ar, false) | |
2778 | test -z "$AR" && AR=ar | |
2779 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
2780 | _LT_DECL([], [AR], [1], [The archiver]) | |
2781 | _LT_DECL([], [AR_FLAGS], [1]) | |
2294 | [_LT_PROG_AR | |
2782 | 2295 | |
2783 | 2296 | AC_CHECK_TOOL(STRIP, strip, :) |
2784 | 2297 | test -z "$STRIP" && STRIP=: |
3118 | 2631 | /* When -fvisbility=hidden is used, assume the code has been annotated |
3119 | 2632 | correspondingly for the symbols needed. */ |
3120 | 2633 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
3121 | void fnord () __attribute__((visibility("default"))); | |
2634 | int fnord () __attribute__((visibility("default"))); | |
3122 | 2635 | #endif |
3123 | 2636 | |
3124 | void fnord () { int i=42; } | |
2637 | int fnord () { return 42; } | |
3125 | 2638 | int main () |
3126 | 2639 | { |
3127 | 2640 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
3661 | 3174 | need_version=no |
3662 | 3175 | need_lib_prefix=no |
3663 | 3176 | |
3664 | case $GCC,$host_os in | |
3665 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
3177 | case $GCC,$cc_basename in | |
3178 | yes,*) | |
3179 | # gcc | |
3666 | 3180 | library_names_spec='$libname.dll.a' |
3667 | 3181 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
3668 | 3182 | postinstall_cmds='base_file=`basename \${file}`~ |
3695 | 3209 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' |
3696 | 3210 | ;; |
3697 | 3211 | esac |
3212 | dynamic_linker='Win32 ld.exe' | |
3698 | 3213 | ;; |
3699 | 3214 | |
3215 | *,cl*) | |
3216 | # Native MSVC | |
3217 | libname_spec='$name' | |
3218 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | |
3219 | library_names_spec='${libname}.dll.lib' | |
3220 | ||
3221 | case $build_os in | |
3222 | mingw*) | |
3223 | sys_lib_search_path_spec= | |
3224 | lt_save_ifs=$IFS | |
3225 | IFS=';' | |
3226 | for lt_path in $LIB | |
3227 | do | |
3228 | IFS=$lt_save_ifs | |
3229 | # Let DOS variable expansion print the short 8.3 style file name. | |
3230 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
3231 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
3232 | done | |
3233 | IFS=$lt_save_ifs | |
3234 | # Convert to MSYS style. | |
3235 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` | |
3236 | ;; | |
3237 | cygwin*) | |
3238 | # Convert to unix form, then to dos form, then back to unix form | |
3239 | # but this time dos style (no spaces!) so that the unix form looks | |
3240 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
3241 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
3242 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
3243 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
3244 | ;; | |
3245 | *) | |
3246 | sys_lib_search_path_spec="$LIB" | |
3247 | if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then | |
3248 | # It is most probably a Windows format PATH. | |
3249 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
3250 | else | |
3251 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
3252 | fi | |
3253 | # FIXME: find the short name or the path components, as spaces are | |
3254 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
3255 | ;; | |
3256 | esac | |
3257 | ||
3258 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
3259 | postinstall_cmds='base_file=`basename \${file}`~ | |
3260 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
3261 | dldir=$destdir/`dirname \$dlpath`~ | |
3262 | test -d \$dldir || mkdir -p \$dldir~ | |
3263 | $install_prog $dir/$dlname \$dldir/$dlname' | |
3264 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
3265 | dlpath=$dir/\$dldll~ | |
3266 | $RM \$dlpath' | |
3267 | shlibpath_overrides_runpath=yes | |
3268 | dynamic_linker='Win32 link.exe' | |
3269 | ;; | |
3270 | ||
3700 | 3271 | *) |
3272 | # Assume MSVC wrapper | |
3701 | 3273 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' |
3274 | dynamic_linker='Win32 ld.exe' | |
3702 | 3275 | ;; |
3703 | 3276 | esac |
3704 | dynamic_linker='Win32 ld.exe' | |
3705 | 3277 | # FIXME: first we should search . and the directory the executable is in |
3706 | 3278 | shlibpath_var=PATH |
3707 | 3279 | ;; |
4409 | 3981 | esac |
4410 | 3982 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4411 | 3983 | case $host_os in |
3984 | cygwin* | mingw* | pw32* | cegcc*) | |
3985 | if test "$GCC" != yes; then | |
3986 | reload_cmds=false | |
3987 | fi | |
3988 | ;; | |
4412 | 3989 | darwin*) |
4413 | 3990 | if test "$GCC" = yes; then |
4414 | 3991 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4627 | 4204 | ;; |
4628 | 4205 | esac |
4629 | 4206 | ]) |
4207 | ||
4208 | file_magic_glob= | |
4209 | want_nocaseglob=no | |
4210 | if test "$build" = "$host"; then | |
4211 | case $host_os in | |
4212 | mingw* | pw32*) | |
4213 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
4214 | want_nocaseglob=yes | |
4215 | else | |
4216 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[[\1]]\/[[\1]]\/g;/g"` | |
4217 | fi | |
4218 | ;; | |
4219 | esac | |
4220 | fi | |
4221 | ||
4630 | 4222 | file_magic_cmd=$lt_cv_file_magic_cmd |
4631 | 4223 | deplibs_check_method=$lt_cv_deplibs_check_method |
4632 | 4224 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4634 | 4226 | _LT_DECL([], [deplibs_check_method], [1], |
4635 | 4227 | [Method to check whether dependent libraries are shared objects]) |
4636 | 4228 | _LT_DECL([], [file_magic_cmd], [1], |
4637 | [Command to use when deplibs_check_method == "file_magic"]) | |
4229 | [Command to use when deplibs_check_method = "file_magic"]) | |
4230 | _LT_DECL([], [file_magic_glob], [1], | |
4231 | [How to find potential files when deplibs_check_method = "file_magic"]) | |
4232 | _LT_DECL([], [want_nocaseglob], [1], | |
4233 | [Find potential files using nocaseglob when deplibs_check_method = "file_magic"]) | |
4638 | 4234 | ])# _LT_CHECK_MAGIC_METHOD |
4639 | 4235 | |
4640 | 4236 | |
4737 | 4333 | dnl AC_DEFUN([AM_PROG_NM], []) |
4738 | 4334 | dnl AC_DEFUN([AC_PROG_NM], []) |
4739 | 4335 | |
4336 | # _LT_CHECK_SHAREDLIB_FROM_LINKLIB | |
4337 | # -------------------------------- | |
4338 | # how to determine the name of the shared library | |
4339 | # associated with a specific link library. | |
4340 | # -- PORTME fill in with the dynamic library characteristics | |
4341 | m4_defun([_LT_CHECK_SHAREDLIB_FROM_LINKLIB], | |
4342 | [m4_require([_LT_DECL_EGREP]) | |
4343 | m4_require([_LT_DECL_OBJDUMP]) | |
4344 | m4_require([_LT_DECL_DLLTOOL]) | |
4345 | AC_CACHE_CHECK([how to associate runtime and link libraries], | |
4346 | lt_cv_sharedlib_from_linklib_cmd, | |
4347 | [lt_cv_sharedlib_from_linklib_cmd='unknown' | |
4348 | ||
4349 | case $host_os in | |
4350 | cygwin* | mingw* | pw32* | cegcc*) | |
4351 | # two different shell functions defined in ltmain.sh | |
4352 | # decide which to use based on capabilities of $DLLTOOL | |
4353 | case `$DLLTOOL --help 2>&1` in | |
4354 | *--identify-strict*) | |
4355 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
4356 | ;; | |
4357 | *) | |
4358 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
4359 | ;; | |
4360 | esac | |
4361 | ;; | |
4362 | *) | |
4363 | # fallback: assume linklib IS sharedlib | |
4364 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
4365 | ;; | |
4366 | esac | |
4367 | ]) | |
4368 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
4369 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
4370 | ||
4371 | _LT_DECL([], [sharedlib_from_linklib_cmd], [1], | |
4372 | [Command to associate shared and link libraries]) | |
4373 | ])# _LT_CHECK_SHAREDLIB_FROM_LINKLIB | |
4374 | ||
4375 | ||
4376 | # _LT_PATH_MANIFEST_TOOL | |
4377 | # ---------------------- | |
4378 | # locate the manifest tool | |
4379 | m4_defun([_LT_PATH_MANIFEST_TOOL], | |
4380 | [AC_CHECK_TOOL(MANIFEST_TOOL, mt, :) | |
4381 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
4382 | AC_CACHE_CHECK([if $MANIFEST_TOOL is a manifest tool], [lt_cv_path_mainfest_tool], | |
4383 | [lt_cv_path_mainfest_tool=no | |
4384 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&AS_MESSAGE_LOG_FD | |
4385 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
4386 | cat conftest.err >&AS_MESSAGE_LOG_FD | |
4387 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
4388 | lt_cv_path_mainfest_tool=yes | |
4389 | fi | |
4390 | rm -f conftest*]) | |
4391 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
4392 | MANIFEST_TOOL=: | |
4393 | fi | |
4394 | _LT_DECL([], [MANIFEST_TOOL], [1], [Manifest tool])dnl | |
4395 | ])# _LT_PATH_MANIFEST_TOOL | |
4396 | ||
4740 | 4397 | |
4741 | 4398 | # LT_LIB_M |
4742 | 4399 | # -------- |
4863 | 4520 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
4864 | 4521 | |
4865 | 4522 | # Transform an extracted symbol line into symbol name and symbol address |
4866 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
4867 | 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'" | |
4523 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\)[[ ]]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
4524 | 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'" | |
4868 | 4525 | |
4869 | 4526 | # Handle CRLF in mingw tool chain |
4870 | 4527 | opt_cr= |
4900 | 4557 | else |
4901 | 4558 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
4902 | 4559 | fi |
4560 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
4903 | 4561 | |
4904 | 4562 | # Check to see that the pipe works correctly. |
4905 | 4563 | pipe_works=no |
4933 | 4591 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
4934 | 4592 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
4935 | 4593 | cat <<_LT_EOF > conftest.$ac_ext |
4594 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
4595 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
4596 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
4597 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
4598 | # define LT@&t@_DLSYM_CONST | |
4599 | #elif defined(__osf__) | |
4600 | /* This system does not cope well with relocations in const data. */ | |
4601 | # define LT@&t@_DLSYM_CONST | |
4602 | #else | |
4603 | # define LT@&t@_DLSYM_CONST const | |
4604 | #endif | |
4605 | ||
4936 | 4606 | #ifdef __cplusplus |
4937 | 4607 | extern "C" { |
4938 | 4608 | #endif |
4944 | 4614 | cat <<_LT_EOF >> conftest.$ac_ext |
4945 | 4615 | |
4946 | 4616 | /* The mapping between symbol names and symbols. */ |
4947 | const struct { | |
4617 | LT@&t@_DLSYM_CONST struct { | |
4948 | 4618 | const char *name; |
4949 | 4619 | void *address; |
4950 | 4620 | } |
4970 | 4640 | _LT_EOF |
4971 | 4641 | # Now try linking the two files. |
4972 | 4642 | mv conftest.$ac_objext conftstm.$ac_objext |
4973 | lt_save_LIBS="$LIBS" | |
4974 | lt_save_CFLAGS="$CFLAGS" | |
4643 | lt_globsym_save_LIBS=$LIBS | |
4644 | lt_globsym_save_CFLAGS=$CFLAGS | |
4975 | 4645 | LIBS="conftstm.$ac_objext" |
4976 | 4646 | CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" |
4977 | 4647 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then |
4978 | 4648 | pipe_works=yes |
4979 | 4649 | fi |
4980 | LIBS="$lt_save_LIBS" | |
4981 | CFLAGS="$lt_save_CFLAGS" | |
4650 | LIBS=$lt_globsym_save_LIBS | |
4651 | CFLAGS=$lt_globsym_save_CFLAGS | |
4982 | 4652 | else |
4983 | 4653 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD |
4984 | 4654 | fi |
5011 | 4681 | AC_MSG_RESULT(ok) |
5012 | 4682 | fi |
5013 | 4683 | |
4684 | # Response file support. | |
4685 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
4686 | nm_file_list_spec='@' | |
4687 | elif $NM --help 2>/dev/null | grep '[[@]]FILE' >/dev/null; then | |
4688 | nm_file_list_spec='@' | |
4689 | fi | |
4690 | ||
5014 | 4691 | _LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1], |
5015 | 4692 | [Take the output of nm and produce a listing of raw symbols and C names]) |
5016 | 4693 | _LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1], |
5021 | 4698 | _LT_DECL([global_symbol_to_c_name_address_lib_prefix], |
5022 | 4699 | [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1], |
5023 | 4700 | [Transform the output of nm in a C name address pair when lib prefix is needed]) |
4701 | _LT_DECL([], [nm_file_list_spec], [1], | |
4702 | [Specify filename containing input files for $NM]) | |
5024 | 4703 | ]) # _LT_CMD_GLOBAL_SYMBOLS |
5025 | 4704 | |
5026 | 4705 | |
5032 | 4711 | _LT_TAGVAR(lt_prog_compiler_pic, $1)= |
5033 | 4712 | _LT_TAGVAR(lt_prog_compiler_static, $1)= |
5034 | 4713 | |
5035 | AC_MSG_CHECKING([for $compiler option to produce PIC]) | |
5036 | 4714 | m4_if([$1], [CXX], [ |
5037 | 4715 | # C++ specific cases for pic, static, wl, etc. |
5038 | 4716 | if test "$GXX" = yes; then |
5136 | 4814 | # _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" |
5137 | 4815 | ;; |
5138 | 4816 | esac |
4817 | ;; | |
4818 | mingw* | cygwin* | os2* | pw32* | cegcc*) | |
4819 | # This hack is so that the source file can tell whether it is being | |
4820 | # built for inclusion in a dll (and should export symbols for example). | |
4821 | m4_if([$1], [GCJ], [], | |
4822 | [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT']) | |
5139 | 4823 | ;; |
5140 | 4824 | dgux*) |
5141 | 4825 | case $cc_basename in |
5511 | 5195 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared' |
5512 | 5196 | _LT_TAGVAR(lt_prog_compiler_static, $1)='--static' |
5513 | 5197 | ;; |
5198 | nagfor*) | |
5199 | # NAG Fortran compiler | |
5200 | _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,-Wl,,' | |
5201 | _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | |
5202 | _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | |
5203 | ;; | |
5514 | 5204 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
5515 | 5205 | # Portland Group compilers (*not* the Pentium gcc compiler, |
5516 | 5206 | # which looks to be a dead project) |
5630 | 5320 | _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])" |
5631 | 5321 | ;; |
5632 | 5322 | esac |
5633 | AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | |
5634 | _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | |
5635 | [How to pass a linker flag through the compiler]) | |
5323 | ||
5324 | AC_CACHE_CHECK([for $compiler option to produce PIC], | |
5325 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)], | |
5326 | [_LT_TAGVAR(lt_cv_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_prog_compiler_pic, $1)]) | |
5327 | _LT_TAGVAR(lt_prog_compiler_pic, $1)=$_LT_TAGVAR(lt_cv_prog_compiler_pic, $1) | |
5636 | 5328 | |
5637 | 5329 | # |
5638 | 5330 | # Check to make sure the PIC flag actually works. |
5651 | 5343 | _LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1], |
5652 | 5344 | [Additional compiler flags for building library objects]) |
5653 | 5345 | |
5346 | _LT_TAGDECL([wl], [lt_prog_compiler_wl], [1], | |
5347 | [How to pass a linker flag through the compiler]) | |
5654 | 5348 | # |
5655 | 5349 | # Check to make sure the static flag actually works. |
5656 | 5350 | # |
5671 | 5365 | m4_defun([_LT_LINKER_SHLIBS], |
5672 | 5366 | [AC_REQUIRE([LT_PATH_LD])dnl |
5673 | 5367 | AC_REQUIRE([LT_PATH_NM])dnl |
5368 | m4_require([_LT_PATH_MANIFEST_TOOL])dnl | |
5674 | 5369 | m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
5675 | 5370 | m4_require([_LT_DECL_EGREP])dnl |
5676 | 5371 | m4_require([_LT_DECL_SED])dnl |
5679 | 5374 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) |
5680 | 5375 | m4_if([$1], [CXX], [ |
5681 | 5376 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5377 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
5682 | 5378 | case $host_os in |
5683 | 5379 | aix[[4-9]]*) |
5684 | 5380 | # If we're using GNU nm, then we don't want the "-C" option. |
5693 | 5389 | ;; |
5694 | 5390 | pw32*) |
5695 | 5391 | _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" |
5696 | ;; | |
5392 | ;; | |
5697 | 5393 | cygwin* | mingw* | cegcc*) |
5698 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols' | |
5699 | ;; | |
5394 | case $cc_basename in | |
5395 | cl*) ;; | |
5396 | *) | |
5397 | _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' | |
5398 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | |
5399 | ;; | |
5400 | esac | |
5401 | ;; | |
5700 | 5402 | *) |
5701 | 5403 | _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
5702 | ;; | |
5404 | ;; | |
5703 | 5405 | esac |
5704 | _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'] | |
5705 | 5406 | ], [ |
5706 | 5407 | runpath_var= |
5707 | 5408 | _LT_TAGVAR(allow_undefined_flag, $1)= |
5869 | 5570 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported |
5870 | 5571 | _LT_TAGVAR(always_export_symbols, $1)=no |
5871 | 5572 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes |
5872 | _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' | |
5573 | _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' | |
5574 | _LT_TAGVAR(exclude_expsyms, $1)=['[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'] | |
5873 | 5575 | |
5874 | 5576 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
5875 | 5577 | _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' |
5917 | 5619 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
5918 | 5620 | && test "$tmp_diet" = no |
5919 | 5621 | then |
5920 | tmp_addflag= | |
5622 | tmp_addflag=' $pic_flag' | |
5921 | 5623 | tmp_sharedflag='-shared' |
5922 | 5624 | case $cc_basename,$host_cpu in |
5923 | 5625 | pgcc*) # Portland Group C compiler |
5987 | 5689 | _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
5988 | 5690 | wlarc= |
5989 | 5691 | else |
5990 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5991 | _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' | |
5692 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5693 | _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' | |
5992 | 5694 | fi |
5993 | 5695 | ;; |
5994 | 5696 | |
6006 | 5708 | |
6007 | 5709 | _LT_EOF |
6008 | 5710 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
6009 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6010 | _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' | |
5711 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5712 | _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' | |
6011 | 5713 | else |
6012 | 5714 | _LT_TAGVAR(ld_shlibs, $1)=no |
6013 | 5715 | fi |
6053 | 5755 | |
6054 | 5756 | *) |
6055 | 5757 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
6056 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6057 | _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' | |
5758 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
5759 | _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' | |
6058 | 5760 | else |
6059 | 5761 | _LT_TAGVAR(ld_shlibs, $1)=no |
6060 | 5762 | fi |
6184 | 5886 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
6185 | 5887 | # Determine the default libpath from the value encoded in an |
6186 | 5888 | # empty executable. |
6187 | _LT_SYS_MODULE_PATH_AIX | |
5889 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
6188 | 5890 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
6189 | 5891 | _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" |
6190 | 5892 | else |
6195 | 5897 | else |
6196 | 5898 | # Determine the default libpath from the value encoded in an |
6197 | 5899 | # empty executable. |
6198 | _LT_SYS_MODULE_PATH_AIX | |
5900 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
6199 | 5901 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
6200 | 5902 | # Warning - without using the other run time loading flags, |
6201 | 5903 | # -berok will link without error, but may produce a broken library. |
6239 | 5941 | # Microsoft Visual C++. |
6240 | 5942 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
6241 | 5943 | # no search path for DLLs. |
6242 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
6243 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6244 | # Tell ltmain to make .lib files, not .a files. | |
6245 | libext=lib | |
6246 | # Tell ltmain to make .dll files, not .so files. | |
6247 | shrext_cmds=".dll" | |
6248 | # FIXME: Setting linknames here is a bad hack. | |
6249 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
6250 | # The linker will automatically build a .lib file if we build a DLL. | |
6251 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
6252 | # FIXME: Should let the user specify the lib program. | |
6253 | _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
6254 | _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | |
6255 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
5944 | case $cc_basename in | |
5945 | cl*) | |
5946 | # Native MSVC | |
5947 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
5948 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5949 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
5950 | _LT_TAGVAR(file_list_spec, $1)='@' | |
5951 | # Tell ltmain to make .lib files, not .a files. | |
5952 | libext=lib | |
5953 | # Tell ltmain to make .dll files, not .so files. | |
5954 | shrext_cmds=".dll" | |
5955 | # FIXME: Setting linknames here is a bad hack. | |
5956 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
5957 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
5958 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
5959 | else | |
5960 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
5961 | fi~ | |
5962 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
5963 | linknames=' | |
5964 | # The linker will not automatically build a static lib if we build a DLL. | |
5965 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
5966 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
5967 | _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' | |
5968 | # Don't use ranlib | |
5969 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | |
5970 | _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | |
5971 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
5972 | case $lt_outputfile in | |
5973 | *.exe|*.EXE) ;; | |
5974 | *) | |
5975 | lt_outputfile="$lt_outputfile.exe" | |
5976 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
5977 | ;; | |
5978 | esac~ | |
5979 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
5980 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
5981 | $RM "$lt_outputfile.manifest"; | |
5982 | fi' | |
5983 | ;; | |
5984 | *) | |
5985 | # Assume MSVC wrapper | |
5986 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
5987 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
5988 | # Tell ltmain to make .lib files, not .a files. | |
5989 | libext=lib | |
5990 | # Tell ltmain to make .dll files, not .so files. | |
5991 | shrext_cmds=".dll" | |
5992 | # FIXME: Setting linknames here is a bad hack. | |
5993 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
5994 | # The linker will automatically build a .lib file if we build a DLL. | |
5995 | _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
5996 | # FIXME: Should let the user specify the lib program. | |
5997 | _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
5998 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
5999 | ;; | |
6000 | esac | |
6256 | 6001 | ;; |
6257 | 6002 | |
6258 | 6003 | darwin* | rhapsody*) |
6290 | 6035 | |
6291 | 6036 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
6292 | 6037 | freebsd* | dragonfly*) |
6293 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
6038 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
6294 | 6039 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' |
6295 | 6040 | _LT_TAGVAR(hardcode_direct, $1)=yes |
6296 | 6041 | _LT_TAGVAR(hardcode_shlibpath_var, $1)=no |
6298 | 6043 | |
6299 | 6044 | hpux9*) |
6300 | 6045 | if test "$GCC" = yes; then |
6301 | _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
6046 | _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' | |
6302 | 6047 | else |
6303 | 6048 | _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' |
6304 | 6049 | fi |
6314 | 6059 | |
6315 | 6060 | hpux10*) |
6316 | 6061 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
6317 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6062 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6318 | 6063 | else |
6319 | 6064 | _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
6320 | 6065 | fi |
6338 | 6083 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
6339 | 6084 | ;; |
6340 | 6085 | ia64*) |
6341 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
6086 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
6342 | 6087 | ;; |
6343 | 6088 | *) |
6344 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6089 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
6345 | 6090 | ;; |
6346 | 6091 | esac |
6347 | 6092 | else |
6388 | 6133 | |
6389 | 6134 | irix5* | irix6* | nonstopux*) |
6390 | 6135 | if test "$GCC" = yes; then |
6391 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $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' | |
6136 | _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' | |
6392 | 6137 | # Try to use the -exported_symbol ld option, if it does not |
6393 | 6138 | # work, assume that -exports_file does not work either and |
6394 | 6139 | # implicitly export all symbols. |
6395 | save_LDFLAGS="$LDFLAGS" | |
6396 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
6397 | AC_LINK_IFELSE(int foo(void) {}, | |
6398 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $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' | |
6399 | ) | |
6400 | LDFLAGS="$save_LDFLAGS" | |
6140 | # This should be the same for all languages, so no per-tag cache variable. | |
6141 | AC_CACHE_CHECK([whether the $host_os linker accepts -exported_symbol], | |
6142 | [lt_cv_irix_exported_symbol], | |
6143 | [save_LDFLAGS="$LDFLAGS" | |
6144 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
6145 | AC_LINK_IFELSE( | |
6146 | [AC_LANG_SOURCE( | |
6147 | [AC_LANG_CASE([C], [[int foo (void) { return 0; }]], | |
6148 | [C++], [[int foo (void) { return 0; }]], | |
6149 | [Fortran 77], [[ | |
6150 | subroutine foo | |
6151 | end]], | |
6152 | [Fortran], [[ | |
6153 | subroutine foo | |
6154 | end]])])], | |
6155 | [lt_cv_irix_exported_symbol=yes], | |
6156 | [lt_cv_irix_exported_symbol=no]) | |
6157 | LDFLAGS="$save_LDFLAGS"]) | |
6158 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
6159 | _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' | |
6160 | fi | |
6401 | 6161 | else |
6402 | 6162 | _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' |
6403 | 6163 | _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' |
6482 | 6242 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
6483 | 6243 | if test "$GCC" = yes; then |
6484 | 6244 | _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' |
6485 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_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' | |
6245 | _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' | |
6486 | 6246 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6487 | 6247 | else |
6488 | 6248 | _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' |
6501 | 6261 | _LT_TAGVAR(no_undefined_flag, $1)=' -z defs' |
6502 | 6262 | if test "$GCC" = yes; then |
6503 | 6263 | wlarc='${wl}' |
6504 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6264 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
6505 | 6265 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
6506 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
6266 | $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' | |
6507 | 6267 | else |
6508 | 6268 | case `$CC -V 2>&1` in |
6509 | 6269 | *"Compilers 5.0"*) |
6775 | 6535 | to runtime path list]) |
6776 | 6536 | _LT_TAGDECL([], [link_all_deplibs], [0], |
6777 | 6537 | [Whether libtool must link a program against all its dependency libraries]) |
6778 | _LT_TAGDECL([], [fix_srcfile_path], [1], | |
6779 | [Fix the shell variable $srcfile for the compiler]) | |
6780 | 6538 | _LT_TAGDECL([], [always_export_symbols], [0], |
6781 | 6539 | [Set to "yes" if exported symbols are required]) |
6782 | 6540 | _LT_TAGDECL([], [export_symbols_cmds], [2], |
6787 | 6545 | [Symbols that must always be exported]) |
6788 | 6546 | _LT_TAGDECL([], [prelink_cmds], [2], |
6789 | 6547 | [Commands necessary for linking programs (against libraries) with templates]) |
6548 | _LT_TAGDECL([], [postlink_cmds], [2], | |
6549 | [Commands necessary for finishing linking programs]) | |
6790 | 6550 | _LT_TAGDECL([], [file_list_spec], [1], |
6791 | 6551 | [Specify filename containing input files]) |
6792 | 6552 | dnl FIXME: Not yet implemented |
6884 | 6644 | m4_defun([_LT_LANG_CXX_CONFIG], |
6885 | 6645 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
6886 | 6646 | m4_require([_LT_DECL_EGREP])dnl |
6647 | m4_require([_LT_PATH_MANIFEST_TOOL])dnl | |
6887 | 6648 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
6888 | 6649 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
6889 | 6650 | (test "X$CXX" != "Xg++"))) ; then |
6945 | 6706 | |
6946 | 6707 | # Allow CC to be a program name with arguments. |
6947 | 6708 | lt_save_CC=$CC |
6709 | lt_save_CFLAGS=$CFLAGS | |
6948 | 6710 | lt_save_LD=$LD |
6949 | 6711 | lt_save_GCC=$GCC |
6950 | 6712 | GCC=$GXX |
6962 | 6724 | fi |
6963 | 6725 | test -z "${LDCXX+set}" || LD=$LDCXX |
6964 | 6726 | CC=${CXX-"c++"} |
6727 | CFLAGS=$CXXFLAGS | |
6965 | 6728 | compiler=$CC |
6966 | 6729 | _LT_TAGVAR(compiler, $1)=$CC |
6967 | 6730 | _LT_CC_BASENAME([$compiler]) |
6983 | 6746 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
6984 | 6747 | # archiving commands below assume that GNU ld is being used. |
6985 | 6748 | if test "$with_gnu_ld" = yes; then |
6986 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6987 | _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
6749 | _LT_TAGVAR(archive_cmds, $1)='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
6750 | _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' | |
6988 | 6751 | |
6989 | 6752 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' |
6990 | 6753 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' |
7125 | 6888 | _LT_TAGVAR(allow_undefined_flag, $1)='-berok' |
7126 | 6889 | # Determine the default libpath from the value encoded in an empty |
7127 | 6890 | # executable. |
7128 | _LT_SYS_MODULE_PATH_AIX | |
6891 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
7129 | 6892 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
7130 | 6893 | |
7131 | 6894 | _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" |
7137 | 6900 | else |
7138 | 6901 | # Determine the default libpath from the value encoded in an |
7139 | 6902 | # empty executable. |
7140 | _LT_SYS_MODULE_PATH_AIX | |
6903 | _LT_SYS_MODULE_PATH_AIX([$1]) | |
7141 | 6904 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" |
7142 | 6905 | # Warning - without using the other run time loading flags, |
7143 | 6906 | # -berok will link without error, but may produce a broken library. |
7179 | 6942 | ;; |
7180 | 6943 | |
7181 | 6944 | cygwin* | mingw* | pw32* | cegcc*) |
7182 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
7183 | # as there is no search path for DLLs. | |
7184 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
7185 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
7186 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
7187 | _LT_TAGVAR(always_export_symbols, $1)=no | |
7188 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
7189 | ||
7190 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7191 | _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' | |
7192 | # If the export-symbols file already is a .def file (1st line | |
7193 | # is EXPORTS), use it as is; otherwise, prepend... | |
7194 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7195 | cp $export_symbols $output_objdir/$soname.def; | |
7196 | else | |
7197 | echo EXPORTS > $output_objdir/$soname.def; | |
7198 | cat $export_symbols >> $output_objdir/$soname.def; | |
7199 | fi~ | |
7200 | $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' | |
7201 | else | |
7202 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7203 | fi | |
7204 | ;; | |
6945 | case $GXX,$cc_basename in | |
6946 | ,cl* | no,cl*) | |
6947 | # Native MSVC | |
6948 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
6949 | # no search path for DLLs. | |
6950 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | |
6951 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6952 | _LT_TAGVAR(always_export_symbols, $1)=yes | |
6953 | _LT_TAGVAR(file_list_spec, $1)='@' | |
6954 | # Tell ltmain to make .lib files, not .a files. | |
6955 | libext=lib | |
6956 | # Tell ltmain to make .dll files, not .so files. | |
6957 | shrext_cmds=".dll" | |
6958 | # FIXME: Setting linknames here is a bad hack. | |
6959 | _LT_TAGVAR(archive_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
6960 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
6961 | $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
6962 | else | |
6963 | $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
6964 | fi~ | |
6965 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
6966 | linknames=' | |
6967 | # The linker will not automatically build a static lib if we build a DLL. | |
6968 | # _LT_TAGVAR(old_archive_from_new_cmds, $1)='true' | |
6969 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
6970 | # Don't use ranlib | |
6971 | _LT_TAGVAR(old_postinstall_cmds, $1)='chmod 644 $oldlib' | |
6972 | _LT_TAGVAR(postlink_cmds, $1)='lt_outputfile="@OUTPUT@"~ | |
6973 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
6974 | case $lt_outputfile in | |
6975 | *.exe|*.EXE) ;; | |
6976 | *) | |
6977 | lt_outputfile="$lt_outputfile.exe" | |
6978 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
6979 | ;; | |
6980 | esac~ | |
6981 | func_to_tool_file "$lt_outputfile"~ | |
6982 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
6983 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
6984 | $RM "$lt_outputfile.manifest"; | |
6985 | fi' | |
6986 | ;; | |
6987 | *) | |
6988 | # g++ | |
6989 | # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | |
6990 | # as there is no search path for DLLs. | |
6991 | _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | |
6992 | _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-all-symbols' | |
6993 | _LT_TAGVAR(allow_undefined_flag, $1)=unsupported | |
6994 | _LT_TAGVAR(always_export_symbols, $1)=no | |
6995 | _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | |
6996 | ||
6997 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
6998 | _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' | |
6999 | # If the export-symbols file already is a .def file (1st line | |
7000 | # is EXPORTS), use it as is; otherwise, prepend... | |
7001 | _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7002 | cp $export_symbols $output_objdir/$soname.def; | |
7003 | else | |
7004 | echo EXPORTS > $output_objdir/$soname.def; | |
7005 | cat $export_symbols >> $output_objdir/$soname.def; | |
7006 | fi~ | |
7007 | $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' | |
7008 | else | |
7009 | _LT_TAGVAR(ld_shlibs, $1)=no | |
7010 | fi | |
7011 | ;; | |
7012 | esac | |
7013 | ;; | |
7205 | 7014 | darwin* | rhapsody*) |
7206 | 7015 | _LT_DARWIN_LINKER_FEATURES($1) |
7207 | 7016 | ;; |
7276 | 7085 | ;; |
7277 | 7086 | *) |
7278 | 7087 | if test "$GXX" = yes; then |
7279 | _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
7088 | _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' | |
7280 | 7089 | else |
7281 | 7090 | # FIXME: insert proper C++ library support |
7282 | 7091 | _LT_TAGVAR(ld_shlibs, $1)=no |
7347 | 7156 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
7348 | 7157 | ;; |
7349 | 7158 | ia64*) |
7350 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
7159 | _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' | |
7351 | 7160 | ;; |
7352 | 7161 | *) |
7353 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
7162 | _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' | |
7354 | 7163 | ;; |
7355 | 7164 | esac |
7356 | 7165 | fi |
7391 | 7200 | *) |
7392 | 7201 | if test "$GXX" = yes; then |
7393 | 7202 | if test "$with_gnu_ld" = no; then |
7394 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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' | |
7203 | _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' | |
7395 | 7204 | else |
7396 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -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' | |
7205 | _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' | |
7397 | 7206 | fi |
7398 | 7207 | fi |
7399 | 7208 | _LT_TAGVAR(link_all_deplibs, $1)=yes |
7671 | 7480 | _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' |
7672 | 7481 | ;; |
7673 | 7482 | *) |
7674 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
7483 | _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' | |
7675 | 7484 | ;; |
7676 | 7485 | esac |
7677 | 7486 | |
7758 | 7567 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
7759 | 7568 | _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' |
7760 | 7569 | if $CC --version | $GREP -v '^2\.7' > /dev/null; then |
7761 | _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
7570 | _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' | |
7762 | 7571 | _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
7763 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
7572 | $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
7764 | 7573 | |
7765 | 7574 | # Commands to make compiler produce verbose output that lists |
7766 | 7575 | # what "hidden" libraries, object files and flags are used when |
7889 | 7698 | fi # test -n "$compiler" |
7890 | 7699 | |
7891 | 7700 | CC=$lt_save_CC |
7701 | CFLAGS=$lt_save_CFLAGS | |
7892 | 7702 | LDCXX=$LD |
7893 | 7703 | LD=$lt_save_LD |
7894 | 7704 | GCC=$lt_save_GCC |
7903 | 7713 | ])# _LT_LANG_CXX_CONFIG |
7904 | 7714 | |
7905 | 7715 | |
7716 | # _LT_FUNC_STRIPNAME_CNF | |
7717 | # ---------------------- | |
7718 | # func_stripname_cnf prefix suffix name | |
7719 | # strip PREFIX and SUFFIX off of NAME. | |
7720 | # PREFIX and SUFFIX must not contain globbing or regex special | |
7721 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
7722 | # dot (in which case that matches only a dot). | |
7723 | # | |
7724 | # This function is identical to the (non-XSI) version of func_stripname, | |
7725 | # except this one can be used by m4 code that may be executed by configure, | |
7726 | # rather than the libtool script. | |
7727 | m4_defun([_LT_FUNC_STRIPNAME_CNF],[dnl | |
7728 | AC_REQUIRE([_LT_DECL_SED]) | |
7729 | AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH]) | |
7730 | func_stripname_cnf () | |
7731 | { | |
7732 | case ${2} in | |
7733 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
7734 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
7735 | esac | |
7736 | } # func_stripname_cnf | |
7737 | ])# _LT_FUNC_STRIPNAME_CNF | |
7738 | ||
7906 | 7739 | # _LT_SYS_HIDDEN_LIBDEPS([TAGNAME]) |
7907 | 7740 | # --------------------------------- |
7908 | 7741 | # Figure out "hidden" library dependencies from verbose |
7911 | 7744 | # objects, libraries and library flags. |
7912 | 7745 | m4_defun([_LT_SYS_HIDDEN_LIBDEPS], |
7913 | 7746 | [m4_require([_LT_FILEUTILS_DEFAULTS])dnl |
7747 | AC_REQUIRE([_LT_FUNC_STRIPNAME_CNF])dnl | |
7914 | 7748 | # Dependencies to place before and after the object being linked: |
7915 | 7749 | _LT_TAGVAR(predep_objects, $1)= |
7916 | 7750 | _LT_TAGVAR(postdep_objects, $1)= |
7961 | 7795 | }; |
7962 | 7796 | _LT_EOF |
7963 | 7797 | ]) |
7798 | ||
7799 | _lt_libdeps_save_CFLAGS=$CFLAGS | |
7800 | case "$CC $CFLAGS " in #( | |
7801 | *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
7802 | *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
7803 | esac | |
7804 | ||
7964 | 7805 | dnl Parse the compiler output and extract the necessary |
7965 | 7806 | dnl objects, libraries and library flags. |
7966 | 7807 | if AC_TRY_EVAL(ac_compile); then |
7972 | 7813 | pre_test_object_deps_done=no |
7973 | 7814 | |
7974 | 7815 | for p in `eval "$output_verbose_link_cmd"`; do |
7975 | case $p in | |
7816 | case ${prev}${p} in | |
7976 | 7817 | |
7977 | 7818 | -L* | -R* | -l*) |
7978 | 7819 | # Some compilers place space between "-{L,R}" and the path. |
7981 | 7822 | test $p = "-R"; then |
7982 | 7823 | prev=$p |
7983 | 7824 | continue |
7984 | else | |
7985 | prev= | |
7986 | 7825 | fi |
7987 | 7826 | |
7827 | # Expand the sysroot to ease extracting the directories later. | |
7828 | if test -z "$prev"; then | |
7829 | case $p in | |
7830 | -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
7831 | -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
7832 | -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
7833 | esac | |
7834 | fi | |
7835 | case $p in | |
7836 | =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
7837 | esac | |
7988 | 7838 | if test "$pre_test_object_deps_done" = no; then |
7989 | case $p in | |
7990 | -L* | -R*) | |
7839 | case ${prev} in | |
7840 | -L | -R) | |
7991 | 7841 | # Internal compiler library paths should come after those |
7992 | 7842 | # provided the user. The postdeps already come after the |
7993 | 7843 | # user supplied libs so there is no need to process them. |
8007 | 7857 | _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}" |
8008 | 7858 | fi |
8009 | 7859 | fi |
7860 | prev= | |
8010 | 7861 | ;; |
8011 | 7862 | |
7863 | *.lto.$objext) ;; # Ignore GCC LTO objects | |
8012 | 7864 | *.$objext) |
8013 | 7865 | # This assumes that the test object file only shows up |
8014 | 7866 | # once in the compiler output. |
8044 | 7896 | fi |
8045 | 7897 | |
8046 | 7898 | $RM -f confest.$objext |
7899 | CFLAGS=$_lt_libdeps_save_CFLAGS | |
8047 | 7900 | |
8048 | 7901 | # PORTME: override above test on systems where it is broken |
8049 | 7902 | m4_if([$1], [CXX], |
8193 | 8046 | # Allow CC to be a program name with arguments. |
8194 | 8047 | lt_save_CC="$CC" |
8195 | 8048 | lt_save_GCC=$GCC |
8049 | lt_save_CFLAGS=$CFLAGS | |
8196 | 8050 | CC=${F77-"f77"} |
8051 | CFLAGS=$FFLAGS | |
8197 | 8052 | compiler=$CC |
8198 | 8053 | _LT_TAGVAR(compiler, $1)=$CC |
8199 | 8054 | _LT_CC_BASENAME([$compiler]) |
8247 | 8102 | |
8248 | 8103 | GCC=$lt_save_GCC |
8249 | 8104 | CC="$lt_save_CC" |
8105 | CFLAGS="$lt_save_CFLAGS" | |
8250 | 8106 | fi # test "$_lt_disable_F77" != yes |
8251 | 8107 | |
8252 | 8108 | AC_LANG_POP |
8323 | 8179 | # Allow CC to be a program name with arguments. |
8324 | 8180 | lt_save_CC="$CC" |
8325 | 8181 | lt_save_GCC=$GCC |
8182 | lt_save_CFLAGS=$CFLAGS | |
8326 | 8183 | CC=${FC-"f95"} |
8184 | CFLAGS=$FCFLAGS | |
8327 | 8185 | compiler=$CC |
8328 | 8186 | GCC=$ac_cv_fc_compiler_gnu |
8329 | 8187 | |
8379 | 8237 | fi # test -n "$compiler" |
8380 | 8238 | |
8381 | 8239 | GCC=$lt_save_GCC |
8382 | CC="$lt_save_CC" | |
8240 | CC=$lt_save_CC | |
8241 | CFLAGS=$lt_save_CFLAGS | |
8383 | 8242 | fi # test "$_lt_disable_FC" != yes |
8384 | 8243 | |
8385 | 8244 | AC_LANG_POP |
8416 | 8275 | _LT_LINKER_BOILERPLATE |
8417 | 8276 | |
8418 | 8277 | # Allow CC to be a program name with arguments. |
8419 | lt_save_CC="$CC" | |
8278 | lt_save_CC=$CC | |
8279 | lt_save_CFLAGS=$CFLAGS | |
8420 | 8280 | lt_save_GCC=$GCC |
8421 | 8281 | GCC=yes |
8422 | 8282 | CC=${GCJ-"gcj"} |
8283 | CFLAGS=$GCJFLAGS | |
8423 | 8284 | compiler=$CC |
8424 | 8285 | _LT_TAGVAR(compiler, $1)=$CC |
8425 | 8286 | _LT_TAGVAR(LD, $1)="$LD" |
8446 | 8307 | AC_LANG_RESTORE |
8447 | 8308 | |
8448 | 8309 | GCC=$lt_save_GCC |
8449 | CC="$lt_save_CC" | |
8310 | CC=$lt_save_CC | |
8311 | CFLAGS=$lt_save_CFLAGS | |
8450 | 8312 | ])# _LT_LANG_GCJ_CONFIG |
8451 | 8313 | |
8452 | 8314 | |
8481 | 8343 | |
8482 | 8344 | # Allow CC to be a program name with arguments. |
8483 | 8345 | lt_save_CC="$CC" |
8346 | lt_save_CFLAGS=$CFLAGS | |
8484 | 8347 | lt_save_GCC=$GCC |
8485 | 8348 | GCC= |
8486 | 8349 | CC=${RC-"windres"} |
8350 | CFLAGS= | |
8487 | 8351 | compiler=$CC |
8488 | 8352 | _LT_TAGVAR(compiler, $1)=$CC |
8489 | 8353 | _LT_CC_BASENAME([$compiler]) |
8496 | 8360 | |
8497 | 8361 | GCC=$lt_save_GCC |
8498 | 8362 | AC_LANG_RESTORE |
8499 | CC="$lt_save_CC" | |
8363 | CC=$lt_save_CC | |
8364 | CFLAGS=$lt_save_CFLAGS | |
8500 | 8365 | ])# _LT_LANG_RC_CONFIG |
8501 | 8366 | |
8502 | 8367 | |
8555 | 8420 | AC_SUBST([OBJDUMP]) |
8556 | 8421 | ]) |
8557 | 8422 | |
8423 | # _LT_DECL_DLLTOOL | |
8424 | # ---------------- | |
8425 | # Ensure DLLTOOL variable is set. | |
8426 | m4_defun([_LT_DECL_DLLTOOL], | |
8427 | [AC_CHECK_TOOL(DLLTOOL, dlltool, false) | |
8428 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
8429 | _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) | |
8430 | AC_SUBST([DLLTOOL]) | |
8431 | ]) | |
8558 | 8432 | |
8559 | 8433 | # _LT_DECL_SED |
8560 | 8434 | # ------------ |
8646 | 8520 | # Try some XSI features |
8647 | 8521 | xsi_shell=no |
8648 | 8522 | ( _lt_dummy="a/b/c" |
8649 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
8650 | = c,a/b,, \ | |
8523 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
8524 | = c,a/b,b/c, \ | |
8651 | 8525 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
8652 | 8526 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
8653 | 8527 | && xsi_shell=yes |
8686 | 8560 | ])# _LT_CHECK_SHELL_FEATURES |
8687 | 8561 | |
8688 | 8562 | |
8689 | # _LT_PROG_XSI_SHELLFNS | |
8690 | # --------------------- | |
8691 | # Bourne and XSI compatible variants of some useful shell functions. | |
8692 | m4_defun([_LT_PROG_XSI_SHELLFNS], | |
8693 | [case $xsi_shell in | |
8694 | yes) | |
8695 | cat << \_LT_EOF >> "$cfgfile" | |
8696 | ||
8697 | # func_dirname file append nondir_replacement | |
8698 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
8699 | # otherwise set result to NONDIR_REPLACEMENT. | |
8700 | func_dirname () | |
8701 | { | |
8702 | case ${1} in | |
8703 | */*) func_dirname_result="${1%/*}${2}" ;; | |
8704 | * ) func_dirname_result="${3}" ;; | |
8705 | esac | |
8706 | } | |
8707 | ||
8708 | # func_basename file | |
8709 | func_basename () | |
8710 | { | |
8711 | func_basename_result="${1##*/}" | |
8712 | } | |
8713 | ||
8714 | # func_dirname_and_basename file append nondir_replacement | |
8715 | # perform func_basename and func_dirname in a single function | |
8716 | # call: | |
8717 | # dirname: Compute the dirname of FILE. If nonempty, | |
8718 | # add APPEND to the result, otherwise set result | |
8719 | # to NONDIR_REPLACEMENT. | |
8720 | # value returned in "$func_dirname_result" | |
8721 | # basename: Compute filename of FILE. | |
8722 | # value retuned in "$func_basename_result" | |
8723 | # Implementation must be kept synchronized with func_dirname | |
8724 | # and func_basename. For efficiency, we do not delegate to | |
8725 | # those functions but instead duplicate the functionality here. | |
8726 | func_dirname_and_basename () | |
8727 | { | |
8728 | case ${1} in | |
8729 | */*) func_dirname_result="${1%/*}${2}" ;; | |
8730 | * ) func_dirname_result="${3}" ;; | |
8731 | esac | |
8732 | func_basename_result="${1##*/}" | |
8733 | } | |
8734 | ||
8735 | # func_stripname prefix suffix name | |
8736 | # strip PREFIX and SUFFIX off of NAME. | |
8737 | # PREFIX and SUFFIX must not contain globbing or regex special | |
8738 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
8739 | # dot (in which case that matches only a dot). | |
8740 | func_stripname () | |
8741 | { | |
8742 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
8743 | # positional parameters, so assign one to ordinary parameter first. | |
8744 | func_stripname_result=${3} | |
8745 | func_stripname_result=${func_stripname_result#"${1}"} | |
8746 | func_stripname_result=${func_stripname_result%"${2}"} | |
8747 | } | |
8748 | ||
8749 | # func_opt_split | |
8750 | func_opt_split () | |
8751 | { | |
8752 | func_opt_split_opt=${1%%=*} | |
8753 | func_opt_split_arg=${1#*=} | |
8754 | } | |
8755 | ||
8756 | # func_lo2o object | |
8757 | func_lo2o () | |
8758 | { | |
8759 | case ${1} in | |
8760 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
8761 | *) func_lo2o_result=${1} ;; | |
8762 | esac | |
8763 | } | |
8764 | ||
8765 | # func_xform libobj-or-source | |
8766 | func_xform () | |
8767 | { | |
8768 | func_xform_result=${1%.*}.lo | |
8769 | } | |
8770 | ||
8771 | # func_arith arithmetic-term... | |
8772 | func_arith () | |
8773 | { | |
8774 | func_arith_result=$(( $[*] )) | |
8775 | } | |
8776 | ||
8777 | # func_len string | |
8778 | # STRING may not start with a hyphen. | |
8779 | func_len () | |
8780 | { | |
8781 | func_len_result=${#1} | |
8782 | } | |
8783 | ||
8784 | _LT_EOF | |
8563 | # _LT_PROG_FUNCTION_REPLACE (FUNCNAME, REPLACEMENT-BODY) | |
8564 | # ------------------------------------------------------ | |
8565 | # In `$cfgfile', look for function FUNCNAME delimited by `^FUNCNAME ()$' and | |
8566 | # '^} FUNCNAME ', and replace its body with REPLACEMENT-BODY. | |
8567 | m4_defun([_LT_PROG_FUNCTION_REPLACE], | |
8568 | [dnl { | |
8569 | sed -e '/^$1 ()$/,/^} # $1 /c\ | |
8570 | $1 ()\ | |
8571 | {\ | |
8572 | m4_bpatsubsts([$2], [$], [\\], [^\([ ]\)], [\\\1]) | |
8573 | } # Extended-shell $1 implementation' "$cfgfile" > $cfgfile.tmp \ | |
8574 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
8575 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
8576 | test 0 -eq $? || _lt_function_replace_fail=: | |
8577 | ]) | |
8578 | ||
8579 | ||
8580 | # _LT_PROG_REPLACE_SHELLFNS | |
8581 | # ------------------------- | |
8582 | # Replace existing portable implementations of several shell functions with | |
8583 | # equivalent extended shell implementations where those features are available.. | |
8584 | m4_defun([_LT_PROG_REPLACE_SHELLFNS], | |
8585 | [if test x"$xsi_shell" = xyes; then | |
8586 | _LT_PROG_FUNCTION_REPLACE([func_dirname], [dnl | |
8587 | case ${1} in | |
8588 | */*) func_dirname_result="${1%/*}${2}" ;; | |
8589 | * ) func_dirname_result="${3}" ;; | |
8590 | esac]) | |
8591 | ||
8592 | _LT_PROG_FUNCTION_REPLACE([func_basename], [dnl | |
8593 | func_basename_result="${1##*/}"]) | |
8594 | ||
8595 | _LT_PROG_FUNCTION_REPLACE([func_dirname_and_basename], [dnl | |
8596 | case ${1} in | |
8597 | */*) func_dirname_result="${1%/*}${2}" ;; | |
8598 | * ) func_dirname_result="${3}" ;; | |
8599 | esac | |
8600 | func_basename_result="${1##*/}"]) | |
8601 | ||
8602 | _LT_PROG_FUNCTION_REPLACE([func_stripname], [dnl | |
8603 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
8604 | # positional parameters, so assign one to ordinary parameter first. | |
8605 | func_stripname_result=${3} | |
8606 | func_stripname_result=${func_stripname_result#"${1}"} | |
8607 | func_stripname_result=${func_stripname_result%"${2}"}]) | |
8608 | ||
8609 | _LT_PROG_FUNCTION_REPLACE([func_split_long_opt], [dnl | |
8610 | func_split_long_opt_name=${1%%=*} | |
8611 | func_split_long_opt_arg=${1#*=}]) | |
8612 | ||
8613 | _LT_PROG_FUNCTION_REPLACE([func_split_short_opt], [dnl | |
8614 | func_split_short_opt_arg=${1#??} | |
8615 | func_split_short_opt_name=${1%"$func_split_short_opt_arg"}]) | |
8616 | ||
8617 | _LT_PROG_FUNCTION_REPLACE([func_lo2o], [dnl | |
8618 | case ${1} in | |
8619 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
8620 | *) func_lo2o_result=${1} ;; | |
8621 | esac]) | |
8622 | ||
8623 | _LT_PROG_FUNCTION_REPLACE([func_xform], [ func_xform_result=${1%.*}.lo]) | |
8624 | ||
8625 | _LT_PROG_FUNCTION_REPLACE([func_arith], [ func_arith_result=$(( $[*] ))]) | |
8626 | ||
8627 | _LT_PROG_FUNCTION_REPLACE([func_len], [ func_len_result=${#1}]) | |
8628 | fi | |
8629 | ||
8630 | if test x"$lt_shell_append" = xyes; then | |
8631 | _LT_PROG_FUNCTION_REPLACE([func_append], [ eval "${1}+=\\${2}"]) | |
8632 | ||
8633 | _LT_PROG_FUNCTION_REPLACE([func_append_quoted], [dnl | |
8634 | func_quote_for_eval "${2}" | |
8635 | dnl m4 expansion turns \\\\ into \\, and then the shell eval turns that into \ | |
8636 | eval "${1}+=\\\\ \\$func_quote_for_eval_result"]) | |
8637 | ||
8638 | # Save a `func_append' function call where possible by direct use of '+=' | |
8639 | sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
8640 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
8641 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
8642 | test 0 -eq $? || _lt_function_replace_fail=: | |
8643 | else | |
8644 | # Save a `func_append' function call even when '+=' is not available | |
8645 | sed -e 's%func_append \([[a-zA-Z_]]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
8646 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
8647 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
8648 | test 0 -eq $? || _lt_function_replace_fail=: | |
8649 | fi | |
8650 | ||
8651 | if test x"$_lt_function_replace_fail" = x":"; then | |
8652 | AC_MSG_WARN([Unable to substitute extended shell functions in $ofile]) | |
8653 | fi | |
8654 | ]) | |
8655 | ||
8656 | # _LT_PATH_CONVERSION_FUNCTIONS | |
8657 | # ----------------------------- | |
8658 | # Determine which file name conversion functions should be used by | |
8659 | # func_to_host_file (and, implicitly, by func_to_host_path). These are needed | |
8660 | # for certain cross-compile configurations and native mingw. | |
8661 | m4_defun([_LT_PATH_CONVERSION_FUNCTIONS], | |
8662 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | |
8663 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | |
8664 | AC_MSG_CHECKING([how to convert $build file names to $host format]) | |
8665 | AC_CACHE_VAL(lt_cv_to_host_file_cmd, | |
8666 | [case $host in | |
8667 | *-*-mingw* ) | |
8668 | case $build in | |
8669 | *-*-mingw* ) # actually msys | |
8670 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
8671 | ;; | |
8672 | *-*-cygwin* ) | |
8673 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
8674 | ;; | |
8675 | * ) # otherwise, assume *nix | |
8676 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
8677 | ;; | |
8678 | esac | |
8785 | 8679 | ;; |
8786 | *) # Bourne compatible functions. | |
8787 | cat << \_LT_EOF >> "$cfgfile" | |
8788 | ||
8789 | # func_dirname file append nondir_replacement | |
8790 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
8791 | # otherwise set result to NONDIR_REPLACEMENT. | |
8792 | func_dirname () | |
8793 | { | |
8794 | # Extract subdirectory from the argument. | |
8795 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
8796 | if test "X$func_dirname_result" = "X${1}"; then | |
8797 | func_dirname_result="${3}" | |
8798 | else | |
8799 | func_dirname_result="$func_dirname_result${2}" | |
8800 | fi | |
8801 | } | |
8802 | ||
8803 | # func_basename file | |
8804 | func_basename () | |
8805 | { | |
8806 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
8807 | } | |
8808 | ||
8809 | dnl func_dirname_and_basename | |
8810 | dnl A portable version of this function is already defined in general.m4sh | |
8811 | dnl so there is no need for it here. | |
8812 | ||
8813 | # func_stripname prefix suffix name | |
8814 | # strip PREFIX and SUFFIX off of NAME. | |
8815 | # PREFIX and SUFFIX must not contain globbing or regex special | |
8816 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
8817 | # dot (in which case that matches only a dot). | |
8818 | # func_strip_suffix prefix name | |
8819 | func_stripname () | |
8820 | { | |
8821 | case ${2} in | |
8822 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
8823 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
8824 | esac | |
8825 | } | |
8826 | ||
8827 | # sed scripts: | |
8828 | my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q' | |
8829 | my_sed_long_arg='1s/^-[[^=]]*=//' | |
8830 | ||
8831 | # func_opt_split | |
8832 | func_opt_split () | |
8833 | { | |
8834 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
8835 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
8836 | } | |
8837 | ||
8838 | # func_lo2o object | |
8839 | func_lo2o () | |
8840 | { | |
8841 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
8842 | } | |
8843 | ||
8844 | # func_xform libobj-or-source | |
8845 | func_xform () | |
8846 | { | |
8847 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[[^.]]*$/.lo/'` | |
8848 | } | |
8849 | ||
8850 | # func_arith arithmetic-term... | |
8851 | func_arith () | |
8852 | { | |
8853 | func_arith_result=`expr "$[@]"` | |
8854 | } | |
8855 | ||
8856 | # func_len string | |
8857 | # STRING may not start with a hyphen. | |
8858 | func_len () | |
8859 | { | |
8860 | func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len` | |
8861 | } | |
8862 | ||
8863 | _LT_EOF | |
8680 | *-*-cygwin* ) | |
8681 | case $build in | |
8682 | *-*-mingw* ) # actually msys | |
8683 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
8684 | ;; | |
8685 | *-*-cygwin* ) | |
8686 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
8687 | ;; | |
8688 | * ) # otherwise, assume *nix | |
8689 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
8690 | ;; | |
8691 | esac | |
8692 | ;; | |
8693 | * ) # unhandled hosts (and "normal" native builds) | |
8694 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
8695 | ;; | |
8864 | 8696 | esac |
8865 | ||
8866 | case $lt_shell_append in | |
8867 | yes) | |
8868 | cat << \_LT_EOF >> "$cfgfile" | |
8869 | ||
8870 | # func_append var value | |
8871 | # Append VALUE to the end of shell variable VAR. | |
8872 | func_append () | |
8873 | { | |
8874 | eval "$[1]+=\$[2]" | |
8875 | } | |
8876 | _LT_EOF | |
8697 | ]) | |
8698 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
8699 | AC_MSG_RESULT([$lt_cv_to_host_file_cmd]) | |
8700 | _LT_DECL([to_host_file_cmd], [lt_cv_to_host_file_cmd], | |
8701 | [0], [convert $build file names to $host format])dnl | |
8702 | ||
8703 | AC_MSG_CHECKING([how to convert $build file names to toolchain format]) | |
8704 | AC_CACHE_VAL(lt_cv_to_tool_file_cmd, | |
8705 | [#assume ordinary cross tools, or native build. | |
8706 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
8707 | case $host in | |
8708 | *-*-mingw* ) | |
8709 | case $build in | |
8710 | *-*-mingw* ) # actually msys | |
8711 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
8712 | ;; | |
8713 | esac | |
8877 | 8714 | ;; |
8878 | *) | |
8879 | cat << \_LT_EOF >> "$cfgfile" | |
8880 | ||
8881 | # func_append var value | |
8882 | # Append VALUE to the end of shell variable VAR. | |
8883 | func_append () | |
8884 | { | |
8885 | eval "$[1]=\$$[1]\$[2]" | |
8886 | } | |
8887 | ||
8888 | _LT_EOF | |
8889 | ;; | |
8890 | esac | |
8715 | esac | |
8891 | 8716 | ]) |
8717 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
8718 | AC_MSG_RESULT([$lt_cv_to_tool_file_cmd]) | |
8719 | _LT_DECL([to_tool_file_cmd], [lt_cv_to_tool_file_cmd], | |
8720 | [0], [convert $build files to toolchain format])dnl | |
8721 | ])# _LT_PATH_CONVERSION_FUNCTIONS | |
8892 | 8722 | |
8893 | 8723 | # Helper functions for option handling. -*- Autoconf -*- |
8894 | 8724 | # |
9387 | 9217 | # unlimited permission to copy and/or distribute it, with or without |
9388 | 9218 | # modifications, as long as this notice is preserved. |
9389 | 9219 | |
9390 | # Generated from ltversion.in. | |
9391 | ||
9392 | # serial 3175 ltversion.m4 | |
9220 | # @configure_input@ | |
9221 | ||
9222 | # serial 3293 ltversion.m4 | |
9393 | 9223 | # This file is part of GNU Libtool |
9394 | 9224 | |
9395 | m4_define([LT_PACKAGE_VERSION], [2.2.10]) | |
9396 | m4_define([LT_PACKAGE_REVISION], [1.3175]) | |
9225 | m4_define([LT_PACKAGE_VERSION], [2.4]) | |
9226 | m4_define([LT_PACKAGE_REVISION], [1.3293]) | |
9397 | 9227 | |
9398 | 9228 | AC_DEFUN([LTVERSION_VERSION], |
9399 | [macro_version='2.2.10' | |
9400 | macro_revision='1.3175' | |
9229 | [macro_version='2.4' | |
9230 | macro_revision='1.3293' | |
9401 | 9231 | _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) |
9402 | 9232 | _LT_DECL(, macro_revision, 0) |
9403 | 9233 | ]) |
9692 | 9522 | fi[]dnl |
9693 | 9523 | ])# PKG_CHECK_MODULES |
9694 | 9524 | |
9695 | # Copyright (C) 1995-2002 Free Software Foundation, Inc. | |
9696 | # Copyright (C) 2001-2003,2004 Red Hat, Inc. | |
9525 | # Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. | |
9697 | 9526 | # |
9698 | # This file is free software, distributed under the terms of the GNU | |
9699 | # General Public License. As a special exception to the GNU General | |
9700 | # Public License, this file may be distributed as part of a program | |
9701 | # that contains a configuration script generated by Autoconf, under | |
9702 | # the same distribution terms as the rest of that program. | |
9527 | # This file is free software; the Free Software Foundation | |
9528 | # gives unlimited permission to copy and/or distribute it, | |
9529 | # with or without modifications, as long as this notice is preserved. | |
9530 | ||
9531 | # AM_AUTOMAKE_VERSION(VERSION) | |
9532 | # ---------------------------- | |
9533 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | |
9534 | # generated from the m4 files accompanying Automake X.Y. | |
9535 | # (This private macro should not be called outside this file.) | |
9536 | AC_DEFUN([AM_AUTOMAKE_VERSION], | |
9537 | [am__api_version='1.11' | |
9538 | dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to | |
9539 | dnl require some minimum version. Point them to the right macro. | |
9540 | m4_if([$1], [1.11.1], [], | |
9541 | [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl | |
9542 | ]) | |
9543 | ||
9544 | # _AM_AUTOCONF_VERSION(VERSION) | |
9545 | # ----------------------------- | |
9546 | # aclocal traces this macro to find the Autoconf version. | |
9547 | # This is a private macro too. Using m4_define simplifies | |
9548 | # the logic in aclocal, which can simply ignore this definition. | |
9549 | m4_define([_AM_AUTOCONF_VERSION], []) | |
9550 | ||
9551 | # AM_SET_CURRENT_AUTOMAKE_VERSION | |
9552 | # ------------------------------- | |
9553 | # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. | |
9554 | # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. | |
9555 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | |
9556 | [AM_AUTOMAKE_VERSION([1.11.1])dnl | |
9557 | m4_ifndef([AC_AUTOCONF_VERSION], | |
9558 | [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl | |
9559 | _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) | |
9560 | ||
9561 | # AM_AUX_DIR_EXPAND -*- Autoconf -*- | |
9562 | ||
9563 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
9703 | 9564 | # |
9704 | # This file can be copied and used freely without restrictions. It can | |
9705 | # be used in projects which are not available under the GNU Public License | |
9706 | # but which still want to provide support for the GNU gettext functionality. | |
9565 | # This file is free software; the Free Software Foundation | |
9566 | # gives unlimited permission to copy and/or distribute it, | |
9567 | # with or without modifications, as long as this notice is preserved. | |
9568 | ||
9569 | # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets | |
9570 | # $ac_aux_dir to `$srcdir/foo'. In other projects, it is set to | |
9571 | # `$srcdir', `$srcdir/..', or `$srcdir/../..'. | |
9707 | 9572 | # |
9708 | # Macro to add for using GNU gettext. | |
9709 | # Ulrich Drepper <drepper@cygnus.com>, 1995, 1996 | |
9573 | # Of course, Automake must honor this variable whenever it calls a | |
9574 | # tool from the auxiliary directory. The problem is that $srcdir (and | |
9575 | # therefore $ac_aux_dir as well) can be either absolute or relative, | |
9576 | # depending on how configure is run. This is pretty annoying, since | |
9577 | # it makes $ac_aux_dir quite unusable in subdirectories: in the top | |
9578 | # source directory, any form will work fine, but in subdirectories a | |
9579 | # relative path needs to be adjusted first. | |
9710 | 9580 | # |
9711 | # Modified to never use included libintl. | |
9712 | # Owen Taylor <otaylor@redhat.com>, 12/15/1998 | |
9581 | # $ac_aux_dir/missing | |
9582 | # fails when called from a subdirectory if $ac_aux_dir is relative | |
9583 | # $top_srcdir/$ac_aux_dir/missing | |
9584 | # fails if $ac_aux_dir is absolute, | |
9585 | # fails when called from a subdirectory in a VPATH build with | |
9586 | # a relative $ac_aux_dir | |
9713 | 9587 | # |
9714 | # Major rework to remove unused code | |
9715 | # Owen Taylor <otaylor@redhat.com>, 12/11/2002 | |
9588 | # The reason of the latter failure is that $top_srcdir and $ac_aux_dir | |
9589 | # are both prefixed by $srcdir. In an in-source build this is usually | |
9590 | # harmless because $srcdir is `.', but things will broke when you | |
9591 | # start a VPATH build or use an absolute $srcdir. | |
9716 | 9592 | # |
9717 | # Added better handling of ALL_LINGUAS from GNU gettext version | |
9718 | # written by Bruno Haible, Owen Taylor <otaylor.redhat.com> 5/30/3002 | |
9593 | # So we could use something similar to $top_srcdir/$ac_aux_dir/missing, | |
9594 | # iff we strip the leading $srcdir from $ac_aux_dir. That would be: | |
9595 | # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"` | |
9596 | # and then we would define $MISSING as | |
9597 | # MISSING="\${SHELL} $am_aux_dir/missing" | |
9598 | # This will work as long as MISSING is not called from configure, because | |
9599 | # unfortunately $(top_srcdir) has no meaning in configure. | |
9600 | # However there are other variables, like CC, which are often used in | |
9601 | # configure, and could therefore not use this "fixed" $ac_aux_dir. | |
9719 | 9602 | # |
9720 | # Modified to require ngettext | |
9721 | # Matthias Clasen <mclasen@redhat.com> 08/06/2004 | |
9603 | # Another solution, used here, is to always expand $ac_aux_dir to an | |
9604 | # absolute PATH. The drawback is that using absolute paths prevent a | |
9605 | # configured tree to be moved without reconfiguration. | |
9606 | ||
9607 | AC_DEFUN([AM_AUX_DIR_EXPAND], | |
9608 | [dnl Rely on autoconf to set up CDPATH properly. | |
9609 | AC_PREREQ([2.50])dnl | |
9610 | # expand $ac_aux_dir to an absolute path | |
9611 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
9612 | ]) | |
9613 | ||
9614 | # AM_CONDITIONAL -*- Autoconf -*- | |
9615 | ||
9616 | # Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008 | |
9617 | # Free Software Foundation, Inc. | |
9722 | 9618 | # |
9723 | # We need this here as well, since someone might use autoconf-2.5x | |
9724 | # to configure GLib then an older version to configure a package | |
9725 | # using AM_GLIB_GNU_GETTEXT | |
9726 | AC_PREREQ(2.53) | |
9727 | ||
9728 | dnl | |
9729 | dnl We go to great lengths to make sure that aclocal won't | |
9730 | dnl try to pull in the installed version of these macros | |
9731 | dnl when running aclocal in the glib directory. | |
9732 | dnl | |
9733 | m4_copy([AC_DEFUN],[glib_DEFUN]) | |
9734 | m4_copy([AC_REQUIRE],[glib_REQUIRE]) | |
9735 | dnl | |
9736 | dnl At the end, if we're not within glib, we'll define the public | |
9737 | dnl definitions in terms of our private definitions. | |
9738 | dnl | |
9739 | ||
9740 | # GLIB_LC_MESSAGES | |
9741 | #-------------------- | |
9742 | glib_DEFUN([GLIB_LC_MESSAGES], | |
9743 | [AC_CHECK_HEADERS([locale.h]) | |
9744 | if test $ac_cv_header_locale_h = yes; then | |
9745 | AC_CACHE_CHECK([for LC_MESSAGES], am_cv_val_LC_MESSAGES, | |
9746 | [AC_TRY_LINK([#include <locale.h>], [return LC_MESSAGES], | |
9747 | am_cv_val_LC_MESSAGES=yes, am_cv_val_LC_MESSAGES=no)]) | |
9748 | if test $am_cv_val_LC_MESSAGES = yes; then | |
9749 | AC_DEFINE(HAVE_LC_MESSAGES, 1, | |
9750 | [Define if your <locale.h> file defines LC_MESSAGES.]) | |
9751 | fi | |
9752 | fi]) | |
9753 | ||
9754 | # GLIB_PATH_PROG_WITH_TEST | |
9755 | #---------------------------- | |
9756 | dnl GLIB_PATH_PROG_WITH_TEST(VARIABLE, PROG-TO-CHECK-FOR, | |
9757 | dnl TEST-PERFORMED-ON-FOUND_PROGRAM [, VALUE-IF-NOT-FOUND [, PATH]]) | |
9758 | glib_DEFUN([GLIB_PATH_PROG_WITH_TEST], | |
9759 | [# Extract the first word of "$2", so it can be a program name with args. | |
9760 | set dummy $2; ac_word=[$]2 | |
9761 | AC_MSG_CHECKING([for $ac_word]) | |
9762 | AC_CACHE_VAL(ac_cv_path_$1, | |
9763 | [case "[$]$1" in | |
9764 | /*) | |
9765 | ac_cv_path_$1="[$]$1" # Let the user override the test with a path. | |
9766 | ;; | |
9767 | *) | |
9768 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
9769 | for ac_dir in ifelse([$5], , $PATH, [$5]); do | |
9770 | test -z "$ac_dir" && ac_dir=. | |
9771 | if test -f $ac_dir/$ac_word; then | |
9772 | if [$3]; then | |
9773 | ac_cv_path_$1="$ac_dir/$ac_word" | |
9619 | # This file is free software; the Free Software Foundation | |
9620 | # gives unlimited permission to copy and/or distribute it, | |
9621 | # with or without modifications, as long as this notice is preserved. | |
9622 | ||
9623 | # serial 9 | |
9624 | ||
9625 | # AM_CONDITIONAL(NAME, SHELL-CONDITION) | |
9626 | # ------------------------------------- | |
9627 | # Define a conditional. | |
9628 | AC_DEFUN([AM_CONDITIONAL], | |
9629 | [AC_PREREQ(2.52)dnl | |
9630 | ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])], | |
9631 | [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl | |
9632 | AC_SUBST([$1_TRUE])dnl | |
9633 | AC_SUBST([$1_FALSE])dnl | |
9634 | _AM_SUBST_NOTMAKE([$1_TRUE])dnl | |
9635 | _AM_SUBST_NOTMAKE([$1_FALSE])dnl | |
9636 | m4_define([_AM_COND_VALUE_$1], [$2])dnl | |
9637 | if $2; then | |
9638 | $1_TRUE= | |
9639 | $1_FALSE='#' | |
9640 | else | |
9641 | $1_TRUE='#' | |
9642 | $1_FALSE= | |
9643 | fi | |
9644 | AC_CONFIG_COMMANDS_PRE( | |
9645 | [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then | |
9646 | AC_MSG_ERROR([[conditional "$1" was never defined. | |
9647 | Usually this means the macro was only invoked conditionally.]]) | |
9648 | fi])]) | |
9649 | ||
9650 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009 | |
9651 | # Free Software Foundation, Inc. | |
9652 | # | |
9653 | # This file is free software; the Free Software Foundation | |
9654 | # gives unlimited permission to copy and/or distribute it, | |
9655 | # with or without modifications, as long as this notice is preserved. | |
9656 | ||
9657 | # serial 10 | |
9658 | ||
9659 | # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be | |
9660 | # written in clear, in which case automake, when reading aclocal.m4, | |
9661 | # will think it sees a *use*, and therefore will trigger all it's | |
9662 | # C support machinery. Also note that it means that autoscan, seeing | |
9663 | # CC etc. in the Makefile, will ask for an AC_PROG_CC use... | |
9664 | ||
9665 | ||
9666 | # _AM_DEPENDENCIES(NAME) | |
9667 | # ---------------------- | |
9668 | # See how the compiler implements dependency checking. | |
9669 | # NAME is "CC", "CXX", "GCJ", or "OBJC". | |
9670 | # We try a few techniques and use that to set a single cache variable. | |
9671 | # | |
9672 | # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was | |
9673 | # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular | |
9674 | # dependency, and given that the user is not expected to run this macro, | |
9675 | # just rely on AC_PROG_CC. | |
9676 | AC_DEFUN([_AM_DEPENDENCIES], | |
9677 | [AC_REQUIRE([AM_SET_DEPDIR])dnl | |
9678 | AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl | |
9679 | AC_REQUIRE([AM_MAKE_INCLUDE])dnl | |
9680 | AC_REQUIRE([AM_DEP_TRACK])dnl | |
9681 | ||
9682 | ifelse([$1], CC, [depcc="$CC" am_compiler_list=], | |
9683 | [$1], CXX, [depcc="$CXX" am_compiler_list=], | |
9684 | [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'], | |
9685 | [$1], UPC, [depcc="$UPC" am_compiler_list=], | |
9686 | [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'], | |
9687 | [depcc="$$1" am_compiler_list=]) | |
9688 | ||
9689 | AC_CACHE_CHECK([dependency style of $depcc], | |
9690 | [am_cv_$1_dependencies_compiler_type], | |
9691 | [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
9692 | # We make a subdir and do the tests there. Otherwise we can end up | |
9693 | # making bogus files that we don't know about and never remove. For | |
9694 | # instance it was reported that on HP-UX the gcc test will end up | |
9695 | # making a dummy file named `D' -- because `-MD' means `put the output | |
9696 | # in D'. | |
9697 | mkdir conftest.dir | |
9698 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
9699 | # using a relative directory. | |
9700 | cp "$am_depcomp" conftest.dir | |
9701 | cd conftest.dir | |
9702 | # We will build objects and dependencies in a subdirectory because | |
9703 | # it helps to detect inapplicable dependency modes. For instance | |
9704 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
9705 | # side effect of compilation, but ICC will put the dependencies in | |
9706 | # the current directory while Tru64 will put them in the object | |
9707 | # directory. | |
9708 | mkdir sub | |
9709 | ||
9710 | am_cv_$1_dependencies_compiler_type=none | |
9711 | if test "$am_compiler_list" = ""; then | |
9712 | am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp` | |
9713 | fi | |
9714 | am__universal=false | |
9715 | m4_case([$1], [CC], | |
9716 | [case " $depcc " in #( | |
9717 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
9718 | esac], | |
9719 | [CXX], | |
9720 | [case " $depcc " in #( | |
9721 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
9722 | esac]) | |
9723 | ||
9724 | for depmode in $am_compiler_list; do | |
9725 | # Setup a source with many dependencies, because some compilers | |
9726 | # like to wrap large dependency lists on column 80 (with \), and | |
9727 | # we should not choose a depcomp mode which is confused by this. | |
9728 | # | |
9729 | # We need to recreate these files for each test, as the compiler may | |
9730 | # overwrite some of them when testing with obscure command lines. | |
9731 | # This happens at least with the AIX C compiler. | |
9732 | : > sub/conftest.c | |
9733 | for i in 1 2 3 4 5 6; do | |
9734 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
9735 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
9736 | # Solaris 8's {/usr,}/bin/sh. | |
9737 | touch sub/conftst$i.h | |
9738 | done | |
9739 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
9740 | ||
9741 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
9742 | # mode. It turns out that the SunPro C++ compiler does not properly | |
9743 | # handle `-M -o', and we need to detect this. Also, some Intel | |
9744 | # versions had trouble with output in subdirs | |
9745 | am__obj=sub/conftest.${OBJEXT-o} | |
9746 | am__minus_obj="-o $am__obj" | |
9747 | case $depmode in | |
9748 | gcc) | |
9749 | # This depmode causes a compiler race in universal mode. | |
9750 | test "$am__universal" = false || continue | |
9751 | ;; | |
9752 | nosideeffect) | |
9753 | # after this tag, mechanisms are not by side-effect, so they'll | |
9754 | # only be used when explicitly requested | |
9755 | if test "x$enable_dependency_tracking" = xyes; then | |
9756 | continue | |
9757 | else | |
9774 | 9758 | break |
9759 | fi | |
9760 | ;; | |
9761 | msvisualcpp | msvcmsys) | |
9762 | # This compiler won't grok `-c -o', but also, the minuso test has | |
9763 | # not run yet. These depmodes are late enough in the game, and | |
9764 | # so weak that their functioning should not be impacted. | |
9765 | am__obj=conftest.${OBJEXT-o} | |
9766 | am__minus_obj= | |
9767 | ;; | |
9768 | none) break ;; | |
9769 | esac | |
9770 | if depmode=$depmode \ | |
9771 | source=sub/conftest.c object=$am__obj \ | |
9772 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
9773 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
9774 | >/dev/null 2>conftest.err && | |
9775 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
9776 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
9777 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
9778 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
9779 | # icc doesn't choke on unknown options, it will just issue warnings | |
9780 | # or remarks (even with -Werror). So we grep stderr for any message | |
9781 | # that says an option was ignored or not supported. | |
9782 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
9783 | # icc: Command line warning: ignoring option '-M'; no argument required | |
9784 | # The diagnosis changed in icc 8.0: | |
9785 | # icc: Command line remark: option '-MP' not supported | |
9786 | if (grep 'ignoring option' conftest.err || | |
9787 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
9788 | am_cv_$1_dependencies_compiler_type=$depmode | |
9789 | break | |
9775 | 9790 | fi |
9776 | 9791 | fi |
9777 | 9792 | done |
9778 | IFS="$ac_save_ifs" | |
9779 | dnl If no 4th arg is given, leave the cache variable unset, | |
9780 | dnl so AC_PATH_PROGS will keep looking. | |
9781 | ifelse([$4], , , [ test -z "[$]ac_cv_path_$1" && ac_cv_path_$1="$4" | |
9782 | ])dnl | |
9793 | ||
9794 | cd .. | |
9795 | rm -rf conftest.dir | |
9796 | else | |
9797 | am_cv_$1_dependencies_compiler_type=none | |
9798 | fi | |
9799 | ]) | |
9800 | AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type]) | |
9801 | AM_CONDITIONAL([am__fastdep$1], [ | |
9802 | test "x$enable_dependency_tracking" != xno \ | |
9803 | && test "$am_cv_$1_dependencies_compiler_type" = gcc3]) | |
9804 | ]) | |
9805 | ||
9806 | ||
9807 | # AM_SET_DEPDIR | |
9808 | # ------------- | |
9809 | # Choose a directory name for dependency files. | |
9810 | # This macro is AC_REQUIREd in _AM_DEPENDENCIES | |
9811 | AC_DEFUN([AM_SET_DEPDIR], | |
9812 | [AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
9813 | AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl | |
9814 | ]) | |
9815 | ||
9816 | ||
9817 | # AM_DEP_TRACK | |
9818 | # ------------ | |
9819 | AC_DEFUN([AM_DEP_TRACK], | |
9820 | [AC_ARG_ENABLE(dependency-tracking, | |
9821 | [ --disable-dependency-tracking speeds up one-time build | |
9822 | --enable-dependency-tracking do not reject slow dependency extractors]) | |
9823 | if test "x$enable_dependency_tracking" != xno; then | |
9824 | am_depcomp="$ac_aux_dir/depcomp" | |
9825 | AMDEPBACKSLASH='\' | |
9826 | fi | |
9827 | AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno]) | |
9828 | AC_SUBST([AMDEPBACKSLASH])dnl | |
9829 | _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl | |
9830 | ]) | |
9831 | ||
9832 | # Generate code to set up dependency tracking. -*- Autoconf -*- | |
9833 | ||
9834 | # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
9835 | # Free Software Foundation, Inc. | |
9836 | # | |
9837 | # This file is free software; the Free Software Foundation | |
9838 | # gives unlimited permission to copy and/or distribute it, | |
9839 | # with or without modifications, as long as this notice is preserved. | |
9840 | ||
9841 | #serial 5 | |
9842 | ||
9843 | # _AM_OUTPUT_DEPENDENCY_COMMANDS | |
9844 | # ------------------------------ | |
9845 | AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS], | |
9846 | [{ | |
9847 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
9848 | # are listed without --file. Let's play safe and only enable the eval | |
9849 | # if we detect the quoting. | |
9850 | case $CONFIG_FILES in | |
9851 | *\'*) eval set x "$CONFIG_FILES" ;; | |
9852 | *) set x $CONFIG_FILES ;; | |
9853 | esac | |
9854 | shift | |
9855 | for mf | |
9856 | do | |
9857 | # Strip MF so we end up with the name of the file. | |
9858 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
9859 | # Check whether this is an Automake generated Makefile or not. | |
9860 | # We used to match only the files named `Makefile.in', but | |
9861 | # some people rename them; so instead we look at the file content. | |
9862 | # Grep'ing the first line is not enough: some people post-process | |
9863 | # each Makefile.in and add a new line on top of each file to say so. | |
9864 | # Grep'ing the whole file is not good either: AIX grep has a line | |
9865 | # limit of 2048, but all sed's we know have understand at least 4000. | |
9866 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
9867 | dirpart=`AS_DIRNAME("$mf")` | |
9868 | else | |
9869 | continue | |
9870 | fi | |
9871 | # Extract the definition of DEPDIR, am__include, and am__quote | |
9872 | # from the Makefile without running `make'. | |
9873 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
9874 | test -z "$DEPDIR" && continue | |
9875 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
9876 | test -z "am__include" && continue | |
9877 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
9878 | # When using ansi2knr, U may be empty or an underscore; expand it | |
9879 | U=`sed -n 's/^U = //p' < "$mf"` | |
9880 | # Find all dependency output files, they are included files with | |
9881 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
9882 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
9883 | # expansion. | |
9884 | for file in `sed -n " | |
9885 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
9886 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
9887 | # Make sure the directory exists. | |
9888 | test -f "$dirpart/$file" && continue | |
9889 | fdir=`AS_DIRNAME(["$file"])` | |
9890 | AS_MKDIR_P([$dirpart/$fdir]) | |
9891 | # echo "creating $dirpart/$file" | |
9892 | echo '# dummy' > "$dirpart/$file" | |
9893 | done | |
9894 | done | |
9895 | } | |
9896 | ])# _AM_OUTPUT_DEPENDENCY_COMMANDS | |
9897 | ||
9898 | ||
9899 | # AM_OUTPUT_DEPENDENCY_COMMANDS | |
9900 | # ----------------------------- | |
9901 | # This macro should only be invoked once -- use via AC_REQUIRE. | |
9902 | # | |
9903 | # This code is only required when automatic dependency tracking | |
9904 | # is enabled. FIXME. This creates each `.P' file that we will | |
9905 | # need in order to bootstrap the dependency handling code. | |
9906 | AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], | |
9907 | [AC_CONFIG_COMMANDS([depfiles], | |
9908 | [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS], | |
9909 | [AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"]) | |
9910 | ]) | |
9911 | ||
9912 | # Do all the work for Automake. -*- Autoconf -*- | |
9913 | ||
9914 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, | |
9915 | # 2005, 2006, 2008, 2009 Free Software Foundation, Inc. | |
9916 | # | |
9917 | # This file is free software; the Free Software Foundation | |
9918 | # gives unlimited permission to copy and/or distribute it, | |
9919 | # with or without modifications, as long as this notice is preserved. | |
9920 | ||
9921 | # serial 16 | |
9922 | ||
9923 | # This macro actually does too much. Some checks are only needed if | |
9924 | # your package does certain things. But this isn't really a big deal. | |
9925 | ||
9926 | # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE]) | |
9927 | # AM_INIT_AUTOMAKE([OPTIONS]) | |
9928 | # ----------------------------------------------- | |
9929 | # The call with PACKAGE and VERSION arguments is the old style | |
9930 | # call (pre autoconf-2.50), which is being phased out. PACKAGE | |
9931 | # and VERSION should now be passed to AC_INIT and removed from | |
9932 | # the call to AM_INIT_AUTOMAKE. | |
9933 | # We support both call styles for the transition. After | |
9934 | # the next Automake release, Autoconf can make the AC_INIT | |
9935 | # arguments mandatory, and then we can depend on a new Autoconf | |
9936 | # release and drop the old call support. | |
9937 | AC_DEFUN([AM_INIT_AUTOMAKE], | |
9938 | [AC_PREREQ([2.62])dnl | |
9939 | dnl Autoconf wants to disallow AM_ names. We explicitly allow | |
9940 | dnl the ones we care about. | |
9941 | m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl | |
9942 | AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl | |
9943 | AC_REQUIRE([AC_PROG_INSTALL])dnl | |
9944 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
9945 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
9946 | # is not polluted with repeated "-I." | |
9947 | AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl | |
9948 | # test to see if srcdir already configured | |
9949 | if test -f $srcdir/config.status; then | |
9950 | AC_MSG_ERROR([source directory already configured; run "make distclean" there first]) | |
9951 | fi | |
9952 | fi | |
9953 | ||
9954 | # test whether we have cygpath | |
9955 | if test -z "$CYGPATH_W"; then | |
9956 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
9957 | CYGPATH_W='cygpath -w' | |
9958 | else | |
9959 | CYGPATH_W=echo | |
9960 | fi | |
9961 | fi | |
9962 | AC_SUBST([CYGPATH_W]) | |
9963 | ||
9964 | # Define the identity of the package. | |
9965 | dnl Distinguish between old-style and new-style calls. | |
9966 | m4_ifval([$2], | |
9967 | [m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl | |
9968 | AC_SUBST([PACKAGE], [$1])dnl | |
9969 | AC_SUBST([VERSION], [$2])], | |
9970 | [_AM_SET_OPTIONS([$1])dnl | |
9971 | dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. | |
9972 | m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,, | |
9973 | [m4_fatal([AC_INIT should be called with package and version arguments])])dnl | |
9974 | AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl | |
9975 | AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl | |
9976 | ||
9977 | _AM_IF_OPTION([no-define],, | |
9978 | [AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package]) | |
9979 | AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package])])dnl | |
9980 | ||
9981 | # Some tools Automake needs. | |
9982 | AC_REQUIRE([AM_SANITY_CHECK])dnl | |
9983 | AC_REQUIRE([AC_ARG_PROGRAM])dnl | |
9984 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}) | |
9985 | AM_MISSING_PROG(AUTOCONF, autoconf) | |
9986 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}) | |
9987 | AM_MISSING_PROG(AUTOHEADER, autoheader) | |
9988 | AM_MISSING_PROG(MAKEINFO, makeinfo) | |
9989 | AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
9990 | AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl | |
9991 | AC_REQUIRE([AM_PROG_MKDIR_P])dnl | |
9992 | # We need awk for the "check" target. The system "awk" is bad on | |
9993 | # some platforms. | |
9994 | AC_REQUIRE([AC_PROG_AWK])dnl | |
9995 | AC_REQUIRE([AC_PROG_MAKE_SET])dnl | |
9996 | AC_REQUIRE([AM_SET_LEADING_DOT])dnl | |
9997 | _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])], | |
9998 | [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])], | |
9999 | [_AM_PROG_TAR([v7])])]) | |
10000 | _AM_IF_OPTION([no-dependencies],, | |
10001 | [AC_PROVIDE_IFELSE([AC_PROG_CC], | |
10002 | [_AM_DEPENDENCIES(CC)], | |
10003 | [define([AC_PROG_CC], | |
10004 | defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl | |
10005 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | |
10006 | [_AM_DEPENDENCIES(CXX)], | |
10007 | [define([AC_PROG_CXX], | |
10008 | defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl | |
10009 | AC_PROVIDE_IFELSE([AC_PROG_OBJC], | |
10010 | [_AM_DEPENDENCIES(OBJC)], | |
10011 | [define([AC_PROG_OBJC], | |
10012 | defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl | |
10013 | ]) | |
10014 | _AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl | |
10015 | dnl The `parallel-tests' driver may need to know about EXEEXT, so add the | |
10016 | dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro | |
10017 | dnl is hooked onto _AC_COMPILER_EXEEXT early, see below. | |
10018 | AC_CONFIG_COMMANDS_PRE(dnl | |
10019 | [m4_provide_if([_AM_COMPILER_EXEEXT], | |
10020 | [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl | |
10021 | ]) | |
10022 | ||
10023 | dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not | |
10024 | dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further | |
10025 | dnl mangled by Autoconf and run in a shell conditional statement. | |
10026 | m4_define([_AC_COMPILER_EXEEXT], | |
10027 | m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])]) | |
10028 | ||
10029 | ||
10030 | # When config.status generates a header, we must update the stamp-h file. | |
10031 | # This file resides in the same directory as the config header | |
10032 | # that is generated. The stamp files are numbered to have different names. | |
10033 | ||
10034 | # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the | |
10035 | # loop where config.status creates the headers, so we can generate | |
10036 | # our stamp files there. | |
10037 | AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK], | |
10038 | [# Compute $1's index in $config_headers. | |
10039 | _am_arg=$1 | |
10040 | _am_stamp_count=1 | |
10041 | for _am_header in $config_headers :; do | |
10042 | case $_am_header in | |
10043 | $_am_arg | $_am_arg:* ) | |
10044 | break ;; | |
10045 | * ) | |
10046 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
10047 | esac | |
10048 | done | |
10049 | echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) | |
10050 | ||
10051 | # Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc. | |
10052 | # | |
10053 | # This file is free software; the Free Software Foundation | |
10054 | # gives unlimited permission to copy and/or distribute it, | |
10055 | # with or without modifications, as long as this notice is preserved. | |
10056 | ||
10057 | # AM_PROG_INSTALL_SH | |
10058 | # ------------------ | |
10059 | # Define $install_sh. | |
10060 | AC_DEFUN([AM_PROG_INSTALL_SH], | |
10061 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
10062 | if test x"${install_sh}" != xset; then | |
10063 | case $am_aux_dir in | |
10064 | *\ * | *\ *) | |
10065 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
10066 | *) | |
10067 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
10068 | esac | |
10069 | fi | |
10070 | AC_SUBST(install_sh)]) | |
10071 | ||
10072 | # Copyright (C) 2003, 2005 Free Software Foundation, Inc. | |
10073 | # | |
10074 | # This file is free software; the Free Software Foundation | |
10075 | # gives unlimited permission to copy and/or distribute it, | |
10076 | # with or without modifications, as long as this notice is preserved. | |
10077 | ||
10078 | # serial 2 | |
10079 | ||
10080 | # Check whether the underlying file-system supports filenames | |
10081 | # with a leading dot. For instance MS-DOS doesn't. | |
10082 | AC_DEFUN([AM_SET_LEADING_DOT], | |
10083 | [rm -rf .tst 2>/dev/null | |
10084 | mkdir .tst 2>/dev/null | |
10085 | if test -d .tst; then | |
10086 | am__leading_dot=. | |
10087 | else | |
10088 | am__leading_dot=_ | |
10089 | fi | |
10090 | rmdir .tst 2>/dev/null | |
10091 | AC_SUBST([am__leading_dot])]) | |
10092 | ||
10093 | # Add --enable-maintainer-mode option to configure. -*- Autoconf -*- | |
10094 | # From Jim Meyering | |
10095 | ||
10096 | # Copyright (C) 1996, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2008 | |
10097 | # Free Software Foundation, Inc. | |
10098 | # | |
10099 | # This file is free software; the Free Software Foundation | |
10100 | # gives unlimited permission to copy and/or distribute it, | |
10101 | # with or without modifications, as long as this notice is preserved. | |
10102 | ||
10103 | # serial 5 | |
10104 | ||
10105 | # AM_MAINTAINER_MODE([DEFAULT-MODE]) | |
10106 | # ---------------------------------- | |
10107 | # Control maintainer-specific portions of Makefiles. | |
10108 | # Default is to disable them, unless `enable' is passed literally. | |
10109 | # For symmetry, `disable' may be passed as well. Anyway, the user | |
10110 | # can override the default with the --enable/--disable switch. | |
10111 | AC_DEFUN([AM_MAINTAINER_MODE], | |
10112 | [m4_case(m4_default([$1], [disable]), | |
10113 | [enable], [m4_define([am_maintainer_other], [disable])], | |
10114 | [disable], [m4_define([am_maintainer_other], [enable])], | |
10115 | [m4_define([am_maintainer_other], [enable]) | |
10116 | m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])]) | |
10117 | AC_MSG_CHECKING([whether to am_maintainer_other maintainer-specific portions of Makefiles]) | |
10118 | dnl maintainer-mode's default is 'disable' unless 'enable' is passed | |
10119 | AC_ARG_ENABLE([maintainer-mode], | |
10120 | [ --][am_maintainer_other][-maintainer-mode am_maintainer_other make rules and dependencies not useful | |
10121 | (and sometimes confusing) to the casual installer], | |
10122 | [USE_MAINTAINER_MODE=$enableval], | |
10123 | [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes])) | |
10124 | AC_MSG_RESULT([$USE_MAINTAINER_MODE]) | |
10125 | AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes]) | |
10126 | MAINT=$MAINTAINER_MODE_TRUE | |
10127 | AC_SUBST([MAINT])dnl | |
10128 | ] | |
10129 | ) | |
10130 | ||
10131 | AU_DEFUN([jm_MAINTAINER_MODE], [AM_MAINTAINER_MODE]) | |
10132 | ||
10133 | # Check to see how 'make' treats includes. -*- Autoconf -*- | |
10134 | ||
10135 | # Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc. | |
10136 | # | |
10137 | # This file is free software; the Free Software Foundation | |
10138 | # gives unlimited permission to copy and/or distribute it, | |
10139 | # with or without modifications, as long as this notice is preserved. | |
10140 | ||
10141 | # serial 4 | |
10142 | ||
10143 | # AM_MAKE_INCLUDE() | |
10144 | # ----------------- | |
10145 | # Check to see how make treats includes. | |
10146 | AC_DEFUN([AM_MAKE_INCLUDE], | |
10147 | [am_make=${MAKE-make} | |
10148 | cat > confinc << 'END' | |
10149 | am__doit: | |
10150 | @echo this is the am__doit target | |
10151 | .PHONY: am__doit | |
10152 | END | |
10153 | # If we don't find an include directive, just comment out the code. | |
10154 | AC_MSG_CHECKING([for style of include used by $am_make]) | |
10155 | am__include="#" | |
10156 | am__quote= | |
10157 | _am_result=none | |
10158 | # First try GNU make style include. | |
10159 | echo "include confinc" > confmf | |
10160 | # Ignore all kinds of additional output from `make'. | |
10161 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
10162 | *the\ am__doit\ target*) | |
10163 | am__include=include | |
10164 | am__quote= | |
10165 | _am_result=GNU | |
9783 | 10166 | ;; |
9784 | esac])dnl | |
9785 | $1="$ac_cv_path_$1" | |
9786 | if test ifelse([$4], , [-n "[$]$1"], ["[$]$1" != "$4"]); then | |
9787 | AC_MSG_RESULT([$]$1) | |
10167 | esac | |
10168 | # Now try BSD make style include. | |
10169 | if test "$am__include" = "#"; then | |
10170 | echo '.include "confinc"' > confmf | |
10171 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
10172 | *the\ am__doit\ target*) | |
10173 | am__include=.include | |
10174 | am__quote="\"" | |
10175 | _am_result=BSD | |
10176 | ;; | |
10177 | esac | |
10178 | fi | |
10179 | AC_SUBST([am__include]) | |
10180 | AC_SUBST([am__quote]) | |
10181 | AC_MSG_RESULT([$_am_result]) | |
10182 | rm -f confinc confmf | |
10183 | ]) | |
10184 | ||
10185 | # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- | |
10186 | ||
10187 | # Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008 | |
10188 | # Free Software Foundation, Inc. | |
10189 | # | |
10190 | # This file is free software; the Free Software Foundation | |
10191 | # gives unlimited permission to copy and/or distribute it, | |
10192 | # with or without modifications, as long as this notice is preserved. | |
10193 | ||
10194 | # serial 6 | |
10195 | ||
10196 | # AM_MISSING_PROG(NAME, PROGRAM) | |
10197 | # ------------------------------ | |
10198 | AC_DEFUN([AM_MISSING_PROG], | |
10199 | [AC_REQUIRE([AM_MISSING_HAS_RUN]) | |
10200 | $1=${$1-"${am_missing_run}$2"} | |
10201 | AC_SUBST($1)]) | |
10202 | ||
10203 | ||
10204 | # AM_MISSING_HAS_RUN | |
10205 | # ------------------ | |
10206 | # Define MISSING if not defined so far and test if it supports --run. | |
10207 | # If it does, set am_missing_run to use it, otherwise, to nothing. | |
10208 | AC_DEFUN([AM_MISSING_HAS_RUN], | |
10209 | [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl | |
10210 | AC_REQUIRE_AUX_FILE([missing])dnl | |
10211 | if test x"${MISSING+set}" != xset; then | |
10212 | case $am_aux_dir in | |
10213 | *\ * | *\ *) | |
10214 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
10215 | *) | |
10216 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
10217 | esac | |
10218 | fi | |
10219 | # Use eval to expand $SHELL | |
10220 | if eval "$MISSING --run true"; then | |
10221 | am_missing_run="$MISSING --run " | |
9788 | 10222 | else |
9789 | AC_MSG_RESULT(no) | |
10223 | am_missing_run= | |
10224 | AC_MSG_WARN([`missing' script is too old or missing]) | |
9790 | 10225 | fi |
9791 | AC_SUBST($1)dnl | |
9792 | 10226 | ]) |
9793 | 10227 | |
9794 | # GLIB_WITH_NLS | |
9795 | #----------------- | |
9796 | glib_DEFUN([GLIB_WITH_NLS], | |
9797 | dnl NLS is obligatory | |
9798 | [USE_NLS=yes | |
9799 | AC_SUBST(USE_NLS) | |
9800 | ||
9801 | gt_cv_have_gettext=no | |
9802 | ||
9803 | CATOBJEXT=NONE | |
9804 | XGETTEXT=: | |
9805 | INTLLIBS= | |
9806 | ||
9807 | AC_CHECK_HEADER(libintl.h, | |
9808 | [gt_cv_func_dgettext_libintl="no" | |
9809 | libintl_extra_libs="" | |
9810 | ||
9811 | # | |
9812 | # First check in libc | |
9813 | # | |
9814 | AC_CACHE_CHECK([for ngettext in libc], gt_cv_func_ngettext_libc, | |
9815 | [AC_TRY_LINK([ | |
9816 | #include <libintl.h> | |
9817 | ], | |
9818 | [return !ngettext ("","", 1)], | |
9819 | gt_cv_func_ngettext_libc=yes, | |
9820 | gt_cv_func_ngettext_libc=no) | |
9821 | ]) | |
9822 | ||
9823 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | |
9824 | AC_CACHE_CHECK([for dgettext in libc], gt_cv_func_dgettext_libc, | |
9825 | [AC_TRY_LINK([ | |
9826 | #include <libintl.h> | |
9827 | ], | |
9828 | [return !dgettext ("","")], | |
9829 | gt_cv_func_dgettext_libc=yes, | |
9830 | gt_cv_func_dgettext_libc=no) | |
9831 | ]) | |
9832 | fi | |
9833 | ||
9834 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then | |
9835 | AC_CHECK_FUNCS(bind_textdomain_codeset) | |
9836 | fi | |
9837 | ||
9838 | # | |
9839 | # If we don't have everything we want, check in libintl | |
9840 | # | |
9841 | if test "$gt_cv_func_dgettext_libc" != "yes" \ | |
9842 | || test "$gt_cv_func_ngettext_libc" != "yes" \ | |
9843 | || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then | |
9844 | ||
9845 | AC_CHECK_LIB(intl, bindtextdomain, | |
9846 | [AC_CHECK_LIB(intl, ngettext, | |
9847 | [AC_CHECK_LIB(intl, dgettext, | |
9848 | gt_cv_func_dgettext_libintl=yes)])]) | |
9849 | ||
9850 | if test "$gt_cv_func_dgettext_libintl" != "yes" ; then | |
9851 | AC_MSG_CHECKING([if -liconv is needed to use gettext]) | |
9852 | AC_MSG_RESULT([]) | |
9853 | AC_CHECK_LIB(intl, ngettext, | |
9854 | [AC_CHECK_LIB(intl, dcgettext, | |
9855 | [gt_cv_func_dgettext_libintl=yes | |
9856 | libintl_extra_libs=-liconv], | |
9857 | :,-liconv)], | |
9858 | :,-liconv) | |
9859 | fi | |
9860 | ||
9861 | # | |
9862 | # If we found libintl, then check in it for bind_textdomain_codeset(); | |
9863 | # we'll prefer libc if neither have bind_textdomain_codeset(), | |
9864 | # and both have dgettext and ngettext | |
9865 | # | |
9866 | if test "$gt_cv_func_dgettext_libintl" = "yes" ; then | |
9867 | glib_save_LIBS="$LIBS" | |
9868 | LIBS="$LIBS -lintl $libintl_extra_libs" | |
9869 | unset ac_cv_func_bind_textdomain_codeset | |
9870 | AC_CHECK_FUNCS(bind_textdomain_codeset) | |
9871 | LIBS="$glib_save_LIBS" | |
9872 | ||
9873 | if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then | |
9874 | gt_cv_func_dgettext_libc=no | |
9875 | else | |
9876 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | |
9877 | && test "$gt_cv_func_ngettext_libc" = "yes"; then | |
9878 | gt_cv_func_dgettext_libintl=no | |
9879 | fi | |
9880 | fi | |
9881 | fi | |
9882 | fi | |
9883 | ||
9884 | if test "$gt_cv_func_dgettext_libc" = "yes" \ | |
9885 | || test "$gt_cv_func_dgettext_libintl" = "yes"; then | |
9886 | gt_cv_have_gettext=yes | |
9887 | fi | |
9888 | ||
9889 | if test "$gt_cv_func_dgettext_libintl" = "yes"; then | |
9890 | INTLLIBS="-lintl $libintl_extra_libs" | |
9891 | fi | |
9892 | ||
9893 | if test "$gt_cv_have_gettext" = "yes"; then | |
9894 | AC_DEFINE(HAVE_GETTEXT,1, | |
9895 | [Define if the GNU gettext() function is already present or preinstalled.]) | |
9896 | GLIB_PATH_PROG_WITH_TEST(MSGFMT, msgfmt, | |
9897 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"], no)dnl | |
9898 | if test "$MSGFMT" != "no"; then | |
9899 | glib_save_LIBS="$LIBS" | |
9900 | LIBS="$LIBS $INTLLIBS" | |
9901 | AC_CHECK_FUNCS(dcgettext) | |
9902 | MSGFMT_OPTS= | |
9903 | AC_MSG_CHECKING([if msgfmt accepts -c]) | |
9904 | GLIB_RUN_PROG([$MSGFMT -c -o /dev/null],[ | |
9905 | msgid "" | |
9906 | msgstr "" | |
9907 | "Content-Type: text/plain; charset=UTF-8\n" | |
9908 | "Project-Id-Version: test 1.0\n" | |
9909 | "PO-Revision-Date: 2007-02-15 12:01+0100\n" | |
9910 | "Last-Translator: test <foo@bar.xx>\n" | |
9911 | "Language-Team: C <LL@li.org>\n" | |
9912 | "MIME-Version: 1.0\n" | |
9913 | "Content-Transfer-Encoding: 8bit\n" | |
9914 | ], [MSGFMT_OPTS=-c; AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no])]) | |
9915 | AC_SUBST(MSGFMT_OPTS) | |
9916 | AC_PATH_PROG(GMSGFMT, gmsgfmt, $MSGFMT) | |
9917 | GLIB_PATH_PROG_WITH_TEST(XGETTEXT, xgettext, | |
9918 | [test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"], :) | |
9919 | AC_TRY_LINK(, [extern int _nl_msg_cat_cntr; | |
9920 | return _nl_msg_cat_cntr], | |
9921 | [CATOBJEXT=.gmo | |
9922 | DATADIRNAME=share], | |
9923 | [case $host in | |
9924 | *-*-solaris*) | |
9925 | dnl On Solaris, if bind_textdomain_codeset is in libc, | |
9926 | dnl GNU format message catalog is always supported, | |
9927 | dnl since both are added to the libc all together. | |
9928 | dnl Hence, we'd like to go with DATADIRNAME=share and | |
9929 | dnl and CATOBJEXT=.gmo in this case. | |
9930 | AC_CHECK_FUNC(bind_textdomain_codeset, | |
9931 | [CATOBJEXT=.gmo | |
9932 | DATADIRNAME=share], | |
9933 | [CATOBJEXT=.mo | |
9934 | DATADIRNAME=lib]) | |
9935 | ;; | |
9936 | *) | |
9937 | CATOBJEXT=.mo | |
9938 | DATADIRNAME=lib | |
9939 | ;; | |
9940 | esac]) | |
9941 | LIBS="$glib_save_LIBS" | |
9942 | INSTOBJEXT=.mo | |
9943 | else | |
9944 | gt_cv_have_gettext=no | |
9945 | fi | |
9946 | fi | |
9947 | ]) | |
9948 | ||
9949 | if test "$gt_cv_have_gettext" = "yes" ; then | |
9950 | AC_DEFINE(ENABLE_NLS, 1, | |
9951 | [always defined to indicate that i18n is enabled]) | |
9952 | fi | |
9953 | ||
9954 | dnl Test whether we really found GNU xgettext. | |
9955 | if test "$XGETTEXT" != ":"; then | |
9956 | dnl If it is not GNU xgettext we define it as : so that the | |
9957 | dnl Makefiles still can work. | |
9958 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
9959 | : ; | |
9960 | else | |
9961 | AC_MSG_RESULT( | |
9962 | [found xgettext program is not GNU xgettext; ignore it]) | |
9963 | XGETTEXT=":" | |
9964 | fi | |
9965 | fi | |
9966 | ||
9967 | # We need to process the po/ directory. | |
9968 | POSUB=po | |
9969 | ||
9970 | AC_OUTPUT_COMMANDS( | |
9971 | [case "$CONFIG_FILES" in *po/Makefile.in*) | |
9972 | sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile | |
9973 | esac]) | |
9974 | ||
9975 | dnl These rules are solely for the distribution goal. While doing this | |
9976 | dnl we only have to keep exactly one list of the available catalogs | |
9977 | dnl in configure.ac. | |
9978 | for lang in $ALL_LINGUAS; do | |
9979 | GMOFILES="$GMOFILES $lang.gmo" | |
9980 | POFILES="$POFILES $lang.po" | |
10228 | # Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
10229 | # | |
10230 | # This file is free software; the Free Software Foundation | |
10231 | # gives unlimited permission to copy and/or distribute it, | |
10232 | # with or without modifications, as long as this notice is preserved. | |
10233 | ||
10234 | # AM_PROG_MKDIR_P | |
10235 | # --------------- | |
10236 | # Check for `mkdir -p'. | |
10237 | AC_DEFUN([AM_PROG_MKDIR_P], | |
10238 | [AC_PREREQ([2.60])dnl | |
10239 | AC_REQUIRE([AC_PROG_MKDIR_P])dnl | |
10240 | dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, | |
10241 | dnl while keeping a definition of mkdir_p for backward compatibility. | |
10242 | dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. | |
10243 | dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of | |
10244 | dnl Makefile.ins that do not define MKDIR_P, so we do our own | |
10245 | dnl adjustment using top_builddir (which is defined more often than | |
10246 | dnl MKDIR_P). | |
10247 | AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl | |
10248 | case $mkdir_p in | |
10249 | [[\\/$]]* | ?:[[\\/]]*) ;; | |
10250 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
10251 | esac | |
10252 | ]) | |
10253 | ||
10254 | # Helper functions for option handling. -*- Autoconf -*- | |
10255 | ||
10256 | # Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc. | |
10257 | # | |
10258 | # This file is free software; the Free Software Foundation | |
10259 | # gives unlimited permission to copy and/or distribute it, | |
10260 | # with or without modifications, as long as this notice is preserved. | |
10261 | ||
10262 | # serial 4 | |
10263 | ||
10264 | # _AM_MANGLE_OPTION(NAME) | |
10265 | # ----------------------- | |
10266 | AC_DEFUN([_AM_MANGLE_OPTION], | |
10267 | [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])]) | |
10268 | ||
10269 | # _AM_SET_OPTION(NAME) | |
10270 | # ------------------------------ | |
10271 | # Set option NAME. Presently that only means defining a flag for this option. | |
10272 | AC_DEFUN([_AM_SET_OPTION], | |
10273 | [m4_define(_AM_MANGLE_OPTION([$1]), 1)]) | |
10274 | ||
10275 | # _AM_SET_OPTIONS(OPTIONS) | |
10276 | # ---------------------------------- | |
10277 | # OPTIONS is a space-separated list of Automake options. | |
10278 | AC_DEFUN([_AM_SET_OPTIONS], | |
10279 | [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])]) | |
10280 | ||
10281 | # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET]) | |
10282 | # ------------------------------------------- | |
10283 | # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. | |
10284 | AC_DEFUN([_AM_IF_OPTION], | |
10285 | [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) | |
10286 | ||
10287 | # Check to make sure that the build environment is sane. -*- Autoconf -*- | |
10288 | ||
10289 | # Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008 | |
10290 | # Free Software Foundation, Inc. | |
10291 | # | |
10292 | # This file is free software; the Free Software Foundation | |
10293 | # gives unlimited permission to copy and/or distribute it, | |
10294 | # with or without modifications, as long as this notice is preserved. | |
10295 | ||
10296 | # serial 5 | |
10297 | ||
10298 | # AM_SANITY_CHECK | |
10299 | # --------------- | |
10300 | AC_DEFUN([AM_SANITY_CHECK], | |
10301 | [AC_MSG_CHECKING([whether build environment is sane]) | |
10302 | # Just in case | |
10303 | sleep 1 | |
10304 | echo timestamp > conftest.file | |
10305 | # Reject unsafe characters in $srcdir or the absolute working directory | |
10306 | # name. Accept space and tab only in the latter. | |
10307 | am_lf=' | |
10308 | ' | |
10309 | case `pwd` in | |
10310 | *[[\\\"\#\$\&\'\`$am_lf]]*) | |
10311 | AC_MSG_ERROR([unsafe absolute working directory name]);; | |
10312 | esac | |
10313 | case $srcdir in | |
10314 | *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*) | |
10315 | AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);; | |
10316 | esac | |
10317 | ||
10318 | # Do `set' in a subshell so we don't clobber the current shell's | |
10319 | # arguments. Must try -L first in case configure is actually a | |
10320 | # symlink; some systems play weird games with the mod time of symlinks | |
10321 | # (eg FreeBSD returns the mod time of the symlink's containing | |
10322 | # directory). | |
10323 | if ( | |
10324 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
10325 | if test "$[*]" = "X"; then | |
10326 | # -L didn't work. | |
10327 | set X `ls -t "$srcdir/configure" conftest.file` | |
10328 | fi | |
10329 | rm -f conftest.file | |
10330 | if test "$[*]" != "X $srcdir/configure conftest.file" \ | |
10331 | && test "$[*]" != "X conftest.file $srcdir/configure"; then | |
10332 | ||
10333 | # If neither matched, then we have a broken ls. This can happen | |
10334 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
10335 | # broken ls alias from the environment. This has actually | |
10336 | # happened. Such a system could not be considered "sane". | |
10337 | AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken | |
10338 | alias in your environment]) | |
10339 | fi | |
10340 | ||
10341 | test "$[2]" = conftest.file | |
10342 | ) | |
10343 | then | |
10344 | # Ok. | |
10345 | : | |
10346 | else | |
10347 | AC_MSG_ERROR([newly created file is older than distributed files! | |
10348 | Check your system clock]) | |
10349 | fi | |
10350 | AC_MSG_RESULT(yes)]) | |
10351 | ||
10352 | # Copyright (C) 2009 Free Software Foundation, Inc. | |
10353 | # | |
10354 | # This file is free software; the Free Software Foundation | |
10355 | # gives unlimited permission to copy and/or distribute it, | |
10356 | # with or without modifications, as long as this notice is preserved. | |
10357 | ||
10358 | # serial 1 | |
10359 | ||
10360 | # AM_SILENT_RULES([DEFAULT]) | |
10361 | # -------------------------- | |
10362 | # Enable less verbose build rules; with the default set to DEFAULT | |
10363 | # (`yes' being less verbose, `no' or empty being verbose). | |
10364 | AC_DEFUN([AM_SILENT_RULES], | |
10365 | [AC_ARG_ENABLE([silent-rules], | |
10366 | [ --enable-silent-rules less verbose build output (undo: `make V=1') | |
10367 | --disable-silent-rules verbose build output (undo: `make V=0')]) | |
10368 | case $enable_silent_rules in | |
10369 | yes) AM_DEFAULT_VERBOSITY=0;; | |
10370 | no) AM_DEFAULT_VERBOSITY=1;; | |
10371 | *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);; | |
10372 | esac | |
10373 | AC_SUBST([AM_DEFAULT_VERBOSITY])dnl | |
10374 | AM_BACKSLASH='\' | |
10375 | AC_SUBST([AM_BACKSLASH])dnl | |
10376 | _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl | |
10377 | ]) | |
10378 | ||
10379 | # Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc. | |
10380 | # | |
10381 | # This file is free software; the Free Software Foundation | |
10382 | # gives unlimited permission to copy and/or distribute it, | |
10383 | # with or without modifications, as long as this notice is preserved. | |
10384 | ||
10385 | # AM_PROG_INSTALL_STRIP | |
10386 | # --------------------- | |
10387 | # One issue with vendor `install' (even GNU) is that you can't | |
10388 | # specify the program used to strip binaries. This is especially | |
10389 | # annoying in cross-compiling environments, where the build's strip | |
10390 | # is unlikely to handle the host's binaries. | |
10391 | # Fortunately install-sh will honor a STRIPPROG variable, so we | |
10392 | # always use install-sh in `make install-strip', and initialize | |
10393 | # STRIPPROG with the value of the STRIP variable (set by the user). | |
10394 | AC_DEFUN([AM_PROG_INSTALL_STRIP], | |
10395 | [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl | |
10396 | # Installed binaries are usually stripped using `strip' when the user | |
10397 | # run `make install-strip'. However `strip' might not be the right | |
10398 | # tool to use in cross-compilation environments, therefore Automake | |
10399 | # will honor the `STRIP' environment variable to overrule this program. | |
10400 | dnl Don't test for $cross_compiling = yes, because it might be `maybe'. | |
10401 | if test "$cross_compiling" != no; then | |
10402 | AC_CHECK_TOOL([STRIP], [strip], :) | |
10403 | fi | |
10404 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
10405 | AC_SUBST([INSTALL_STRIP_PROGRAM])]) | |
10406 | ||
10407 | # Copyright (C) 2006, 2008 Free Software Foundation, Inc. | |
10408 | # | |
10409 | # This file is free software; the Free Software Foundation | |
10410 | # gives unlimited permission to copy and/or distribute it, | |
10411 | # with or without modifications, as long as this notice is preserved. | |
10412 | ||
10413 | # serial 2 | |
10414 | ||
10415 | # _AM_SUBST_NOTMAKE(VARIABLE) | |
10416 | # --------------------------- | |
10417 | # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in. | |
10418 | # This macro is traced by Automake. | |
10419 | AC_DEFUN([_AM_SUBST_NOTMAKE]) | |
10420 | ||
10421 | # AM_SUBST_NOTMAKE(VARIABLE) | |
10422 | # --------------------------- | |
10423 | # Public sister of _AM_SUBST_NOTMAKE. | |
10424 | AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) | |
10425 | ||
10426 | # Check how to create a tarball. -*- Autoconf -*- | |
10427 | ||
10428 | # Copyright (C) 2004, 2005 Free Software Foundation, Inc. | |
10429 | # | |
10430 | # This file is free software; the Free Software Foundation | |
10431 | # gives unlimited permission to copy and/or distribute it, | |
10432 | # with or without modifications, as long as this notice is preserved. | |
10433 | ||
10434 | # serial 2 | |
10435 | ||
10436 | # _AM_PROG_TAR(FORMAT) | |
10437 | # -------------------- | |
10438 | # Check how to create a tarball in format FORMAT. | |
10439 | # FORMAT should be one of `v7', `ustar', or `pax'. | |
10440 | # | |
10441 | # Substitute a variable $(am__tar) that is a command | |
10442 | # writing to stdout a FORMAT-tarball containing the directory | |
10443 | # $tardir. | |
10444 | # tardir=directory && $(am__tar) > result.tar | |
10445 | # | |
10446 | # Substitute a variable $(am__untar) that extract such | |
10447 | # a tarball read from stdin. | |
10448 | # $(am__untar) < result.tar | |
10449 | AC_DEFUN([_AM_PROG_TAR], | |
10450 | [# Always define AMTAR for backward compatibility. | |
10451 | AM_MISSING_PROG([AMTAR], [tar]) | |
10452 | m4_if([$1], [v7], | |
10453 | [am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'], | |
10454 | [m4_case([$1], [ustar],, [pax],, | |
10455 | [m4_fatal([Unknown tar format])]) | |
10456 | AC_MSG_CHECKING([how to create a $1 tar archive]) | |
10457 | # Loop over all known methods to create a tar archive until one works. | |
10458 | _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none' | |
10459 | _am_tools=${am_cv_prog_tar_$1-$_am_tools} | |
10460 | # Do not fold the above two line into one, because Tru64 sh and | |
10461 | # Solaris sh will not grok spaces in the rhs of `-'. | |
10462 | for _am_tool in $_am_tools | |
10463 | do | |
10464 | case $_am_tool in | |
10465 | gnutar) | |
10466 | for _am_tar in tar gnutar gtar; | |
10467 | do | |
10468 | AM_RUN_LOG([$_am_tar --version]) && break | |
9981 | 10469 | done |
9982 | ||
9983 | dnl Make all variables we use known to autoconf. | |
9984 | AC_SUBST(CATALOGS) | |
9985 | AC_SUBST(CATOBJEXT) | |
9986 | AC_SUBST(DATADIRNAME) | |
9987 | AC_SUBST(GMOFILES) | |
9988 | AC_SUBST(INSTOBJEXT) | |
9989 | AC_SUBST(INTLLIBS) | |
9990 | AC_SUBST(PO_IN_DATADIR_TRUE) | |
9991 | AC_SUBST(PO_IN_DATADIR_FALSE) | |
9992 | AC_SUBST(POFILES) | |
9993 | AC_SUBST(POSUB) | |
9994 | ]) | |
9995 | ||
9996 | # AM_GLIB_GNU_GETTEXT | |
9997 | # ------------------- | |
9998 | # Do checks necessary for use of gettext. If a suitable implementation | |
9999 | # of gettext is found in either in libintl or in the C library, | |
10000 | # it will set INTLLIBS to the libraries needed for use of gettext | |
10001 | # and AC_DEFINE() HAVE_GETTEXT and ENABLE_NLS. (The shell variable | |
10002 | # gt_cv_have_gettext will be set to "yes".) It will also call AC_SUBST() | |
10003 | # on various variables needed by the Makefile.in.in installed by | |
10004 | # glib-gettextize. | |
10005 | dnl | |
10006 | glib_DEFUN([GLIB_GNU_GETTEXT], | |
10007 | [AC_REQUIRE([AC_PROG_CC])dnl | |
10008 | AC_REQUIRE([AC_HEADER_STDC])dnl | |
10009 | ||
10010 | GLIB_LC_MESSAGES | |
10011 | GLIB_WITH_NLS | |
10012 | ||
10013 | if test "$gt_cv_have_gettext" = "yes"; then | |
10014 | if test "x$ALL_LINGUAS" = "x"; then | |
10015 | LINGUAS= | |
10016 | else | |
10017 | AC_MSG_CHECKING(for catalogs to be installed) | |
10018 | NEW_LINGUAS= | |
10019 | for presentlang in $ALL_LINGUAS; do | |
10020 | useit=no | |
10021 | if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then | |
10022 | desiredlanguages="$LINGUAS" | |
10023 | else | |
10024 | desiredlanguages="$ALL_LINGUAS" | |
10025 | fi | |
10026 | for desiredlang in $desiredlanguages; do | |
10027 | # Use the presentlang catalog if desiredlang is | |
10028 | # a. equal to presentlang, or | |
10029 | # b. a variant of presentlang (because in this case, | |
10030 | # presentlang can be used as a fallback for messages | |
10031 | # which are not translated in the desiredlang catalog). | |
10032 | case "$desiredlang" in | |
10033 | "$presentlang"*) useit=yes;; | |
10034 | esac | |
10035 | done | |
10036 | if test $useit = yes; then | |
10037 | NEW_LINGUAS="$NEW_LINGUAS $presentlang" | |
10038 | fi | |
10039 | done | |
10040 | LINGUAS=$NEW_LINGUAS | |
10041 | AC_MSG_RESULT($LINGUAS) | |
10042 | fi | |
10043 | ||
10044 | dnl Construct list of names of catalog files to be constructed. | |
10045 | if test -n "$LINGUAS"; then | |
10046 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
10047 | fi | |
10048 | fi | |
10049 | ||
10050 | dnl If the AC_CONFIG_AUX_DIR macro for autoconf is used we possibly | |
10051 | dnl find the mkinstalldirs script in another subdir but ($top_srcdir). | |
10052 | dnl Try to locate is. | |
10053 | MKINSTALLDIRS= | |
10054 | if test -n "$ac_aux_dir"; then | |
10055 | MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" | |
10056 | fi | |
10057 | if test -z "$MKINSTALLDIRS"; then | |
10058 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
10059 | fi | |
10060 | AC_SUBST(MKINSTALLDIRS) | |
10061 | ||
10062 | dnl Generate list of files to be processed by xgettext which will | |
10063 | dnl be included in po/Makefile. | |
10064 | test -d po || mkdir po | |
10065 | if test "x$srcdir" != "x."; then | |
10066 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
10067 | posrcprefix="$srcdir/" | |
10068 | else | |
10069 | posrcprefix="../$srcdir/" | |
10070 | fi | |
10071 | else | |
10072 | posrcprefix="../" | |
10073 | fi | |
10074 | rm -f po/POTFILES | |
10075 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
10076 | < $srcdir/po/POTFILES.in > po/POTFILES | |
10077 | ]) | |
10078 | ||
10079 | # AM_GLIB_DEFINE_LOCALEDIR(VARIABLE) | |
10080 | # ------------------------------- | |
10081 | # Define VARIABLE to the location where catalog files will | |
10082 | # be installed by po/Makefile. | |
10083 | glib_DEFUN([GLIB_DEFINE_LOCALEDIR], | |
10084 | [glib_REQUIRE([GLIB_GNU_GETTEXT])dnl | |
10085 | glib_save_prefix="$prefix" | |
10086 | glib_save_exec_prefix="$exec_prefix" | |
10087 | glib_save_datarootdir="$datarootdir" | |
10088 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10089 | test "x$exec_prefix" = xNONE && exec_prefix=$prefix | |
10090 | datarootdir=`eval echo "${datarootdir}"` | |
10091 | if test "x$CATOBJEXT" = "x.mo" ; then | |
10092 | localedir=`eval echo "${libdir}/locale"` | |
10093 | else | |
10094 | localedir=`eval echo "${datadir}/locale"` | |
10095 | fi | |
10096 | prefix="$glib_save_prefix" | |
10097 | exec_prefix="$glib_save_exec_prefix" | |
10098 | datarootdir="$glib_save_datarootdir" | |
10099 | AC_DEFINE_UNQUOTED($1, "$localedir", | |
10100 | [Define the location where the catalogs will be installed]) | |
10101 | ]) | |
10102 | ||
10103 | dnl | |
10104 | dnl Now the definitions that aclocal will find | |
10105 | dnl | |
10106 | ifdef(glib_configure_ac,[],[ | |
10107 | AC_DEFUN([AM_GLIB_GNU_GETTEXT],[GLIB_GNU_GETTEXT($@)]) | |
10108 | AC_DEFUN([AM_GLIB_DEFINE_LOCALEDIR],[GLIB_DEFINE_LOCALEDIR($@)]) | |
10109 | ])dnl | |
10110 | ||
10111 | # GLIB_RUN_PROG(PROGRAM, TEST-FILE, [ACTION-IF-PASS], [ACTION-IF-FAIL]) | |
10112 | # | |
10113 | # Create a temporary file with TEST-FILE as its contents and pass the | |
10114 | # file name to PROGRAM. Perform ACTION-IF-PASS if PROGRAM exits with | |
10115 | # 0 and perform ACTION-IF-FAIL for any other exit status. | |
10116 | AC_DEFUN([GLIB_RUN_PROG], | |
10117 | [cat >conftest.foo <<_ACEOF | |
10118 | $2 | |
10119 | _ACEOF | |
10120 | if AC_RUN_LOG([$1 conftest.foo]); then | |
10121 | m4_ifval([$3], [$3], [:]) | |
10122 | m4_ifvaln([$4], [else $4])dnl | |
10123 | echo "$as_me: failed input was:" >&AS_MESSAGE_LOG_FD | |
10124 | sed 's/^/| /' conftest.foo >&AS_MESSAGE_LOG_FD | |
10125 | fi]) | |
10126 | ||
10127 | ||
10470 | am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"' | |
10471 | am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"' | |
10472 | am__untar="$_am_tar -xf -" | |
10473 | ;; | |
10474 | plaintar) | |
10475 | # Must skip GNU tar: if it does not support --format= it doesn't create | |
10476 | # ustar tarball either. | |
10477 | (tar --version) >/dev/null 2>&1 && continue | |
10478 | am__tar='tar chf - "$$tardir"' | |
10479 | am__tar_='tar chf - "$tardir"' | |
10480 | am__untar='tar xf -' | |
10481 | ;; | |
10482 | pax) | |
10483 | am__tar='pax -L -x $1 -w "$$tardir"' | |
10484 | am__tar_='pax -L -x $1 -w "$tardir"' | |
10485 | am__untar='pax -r' | |
10486 | ;; | |
10487 | cpio) | |
10488 | am__tar='find "$$tardir" -print | cpio -o -H $1 -L' | |
10489 | am__tar_='find "$tardir" -print | cpio -o -H $1 -L' | |
10490 | am__untar='cpio -i -H $1 -d' | |
10491 | ;; | |
10492 | none) | |
10493 | am__tar=false | |
10494 | am__tar_=false | |
10495 | am__untar=false | |
10496 | ;; | |
10497 | esac | |
10498 | ||
10499 | # If the value was cached, stop now. We just wanted to have am__tar | |
10500 | # and am__untar set. | |
10501 | test -n "${am_cv_prog_tar_$1}" && break | |
10502 | ||
10503 | # tar/untar a dummy directory, and stop if the command works | |
10504 | rm -rf conftest.dir | |
10505 | mkdir conftest.dir | |
10506 | echo GrepMe > conftest.dir/file | |
10507 | AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar]) | |
10508 | rm -rf conftest.dir | |
10509 | if test -s conftest.tar; then | |
10510 | AM_RUN_LOG([$am__untar <conftest.tar]) | |
10511 | grep GrepMe conftest.dir/file >/dev/null 2>&1 && break | |
10512 | fi | |
10513 | done | |
10514 | rm -rf conftest.dir | |
10515 | ||
10516 | AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool]) | |
10517 | AC_MSG_RESULT([$am_cv_prog_tar_$1])]) | |
10518 | AC_SUBST([am__tar]) | |
10519 | AC_SUBST([am__untar]) | |
10520 | ]) # _AM_PROG_TAR | |
10521 |
0 | 0 | #! /bin/sh |
1 | 1 | # Guess values for system-dependent variables and create Makefiles. |
2 | # Generated by GNU Autoconf 2.66 for polkit-gnome 0.100. | |
2 | # Generated by GNU Autoconf 2.68 for polkit-gnome 0.101. | |
3 | 3 | # |
4 | 4 | # Report bugs to <http://lists.freedesktop.org/mailman/listinfo/polkit-devel>. |
5 | 5 | # |
90 | 90 | IFS=" "" $as_nl" |
91 | 91 | |
92 | 92 | # Find who we are. Look in the path if we contain no directory separator. |
93 | as_myself= | |
93 | 94 | case $0 in #(( |
94 | 95 | *[\\/]* ) as_myself=$0 ;; |
95 | 96 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
223 | 224 | # We cannot yet assume a decent shell, so we have to provide a |
224 | 225 | # neutralization value for shells without unset; and this also |
225 | 226 | # works around shells that cannot unset nonexistent variables. |
227 | # Preserve -v and -x to the replacement shell. | |
226 | 228 | BASH_ENV=/dev/null |
227 | 229 | ENV=/dev/null |
228 | 230 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
229 | 231 | export CONFIG_SHELL |
230 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
232 | case $- in # (((( | |
233 | *v*x* | *x*v* ) as_opts=-vx ;; | |
234 | *v* ) as_opts=-v ;; | |
235 | *x* ) as_opts=-x ;; | |
236 | * ) as_opts= ;; | |
237 | esac | |
238 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
231 | 239 | fi |
232 | 240 | |
233 | 241 | if test x$as_have_required = xno; then : |
562 | 570 | # Identity of this package. |
563 | 571 | PACKAGE_NAME='polkit-gnome' |
564 | 572 | PACKAGE_TARNAME='polkit-gnome' |
565 | PACKAGE_VERSION='0.100' | |
566 | PACKAGE_STRING='polkit-gnome 0.100' | |
573 | PACKAGE_VERSION='0.101' | |
574 | PACKAGE_STRING='polkit-gnome 0.101' | |
567 | 575 | PACKAGE_BUGREPORT='http://lists.freedesktop.org/mailman/listinfo/polkit-devel' |
568 | 576 | PACKAGE_URL='' |
569 | 577 | |
697 | 705 | LIPO |
698 | 706 | NMEDIT |
699 | 707 | DSYMUTIL |
708 | MANIFEST_TOOL | |
700 | 709 | RANLIB |
710 | ac_ct_AR | |
701 | 711 | AR |
712 | DLLTOOL | |
702 | 713 | OBJDUMP |
703 | 714 | LN_S |
704 | 715 | NM |
815 | 826 | with_pic |
816 | 827 | enable_fast_install |
817 | 828 | with_gnu_ld |
829 | with_sysroot | |
818 | 830 | enable_libtool_lock |
819 | 831 | with_html_dir |
820 | 832 | enable_gtk_doc |
837 | 849 | LIBS |
838 | 850 | CPPFLAGS |
839 | 851 | CPP |
852 | CPPFLAGS | |
840 | 853 | PKG_CONFIG |
841 | 854 | PKG_CONFIG_PATH |
842 | 855 | PKG_CONFIG_LIBDIR |
910 | 923 | fi |
911 | 924 | |
912 | 925 | case $ac_option in |
913 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
914 | *) ac_optarg=yes ;; | |
926 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
927 | *=) ac_optarg= ;; | |
928 | *) ac_optarg=yes ;; | |
915 | 929 | esac |
916 | 930 | |
917 | 931 | # Accept the important Cygnus configure options, so we can diagnose typos. |
1251 | 1265 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1252 | 1266 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1253 | 1267 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1254 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1268 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1255 | 1269 | ;; |
1256 | 1270 | |
1257 | 1271 | esac |
1389 | 1403 | # Omit some internal or obsolete options to make the list less imposing. |
1390 | 1404 | # This message is too long to be a string in the A/UX 3.1 sh. |
1391 | 1405 | cat <<_ACEOF |
1392 | \`configure' configures polkit-gnome 0.100 to adapt to many kinds of systems. | |
1406 | \`configure' configures polkit-gnome 0.101 to adapt to many kinds of systems. | |
1393 | 1407 | |
1394 | 1408 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1395 | 1409 | |
1459 | 1473 | |
1460 | 1474 | if test -n "$ac_init_help"; then |
1461 | 1475 | case $ac_init_help in |
1462 | short | recursive ) echo "Configuration of polkit-gnome 0.100:";; | |
1476 | short | recursive ) echo "Configuration of polkit-gnome 0.101:";; | |
1463 | 1477 | esac |
1464 | 1478 | cat <<\_ACEOF |
1465 | 1479 | |
1495 | 1509 | --with-pic try to use only PIC/non-PIC objects [default=use |
1496 | 1510 | both] |
1497 | 1511 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1512 | --with-sysroot=DIR Search for dependent libraries within DIR | |
1513 | (or the compiler's sysroot if not specified). | |
1498 | 1514 | --with-html-dir=PATH path to installed docs |
1499 | 1515 | --with-gtk=2.0|3.0 which gtk+ version to compile against (default: 2.0) |
1500 | 1516 | |
1593 | 1609 | test -n "$ac_init_help" && exit $ac_status |
1594 | 1610 | if $ac_init_version; then |
1595 | 1611 | cat <<\_ACEOF |
1596 | polkit-gnome configure 0.100 | |
1597 | generated by GNU Autoconf 2.66 | |
1612 | polkit-gnome configure 0.101 | |
1613 | generated by GNU Autoconf 2.68 | |
1598 | 1614 | |
1599 | 1615 | Copyright (C) 2010 Free Software Foundation, Inc. |
1600 | 1616 | This configure script is free software; the Free Software Foundation |
1640 | 1656 | |
1641 | 1657 | ac_retval=1 |
1642 | 1658 | fi |
1643 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1659 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1644 | 1660 | as_fn_set_status $ac_retval |
1645 | 1661 | |
1646 | 1662 | } # ac_fn_c_try_compile |
1686 | 1702 | # interfere with the next link command; also delete a directory that is |
1687 | 1703 | # left behind by Apple's compiler. We do this before executing the actions. |
1688 | 1704 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1689 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1705 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1690 | 1706 | as_fn_set_status $ac_retval |
1691 | 1707 | |
1692 | 1708 | } # ac_fn_c_try_link |
1712 | 1728 | mv -f conftest.er1 conftest.err |
1713 | 1729 | fi |
1714 | 1730 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
1715 | test $ac_status = 0; } >/dev/null && { | |
1731 | test $ac_status = 0; } > conftest.i && { | |
1716 | 1732 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1717 | 1733 | test ! -s conftest.err |
1718 | 1734 | }; then : |
1723 | 1739 | |
1724 | 1740 | ac_retval=1 |
1725 | 1741 | fi |
1726 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1742 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1727 | 1743 | as_fn_set_status $ac_retval |
1728 | 1744 | |
1729 | 1745 | } # ac_fn_c_try_cpp |
1765 | 1781 | ac_retval=$ac_status |
1766 | 1782 | fi |
1767 | 1783 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
1768 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1784 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1769 | 1785 | as_fn_set_status $ac_retval |
1770 | 1786 | |
1771 | 1787 | } # ac_fn_c_try_run |
1779 | 1795 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1780 | 1796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1781 | 1797 | $as_echo_n "checking for $2... " >&6; } |
1782 | if eval "test \"\${$3+set}\"" = set; then : | |
1798 | if eval \${$3+:} false; then : | |
1783 | 1799 | $as_echo_n "(cached) " >&6 |
1784 | 1800 | else |
1785 | 1801 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1797 | 1813 | eval ac_res=\$$3 |
1798 | 1814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1799 | 1815 | $as_echo "$ac_res" >&6; } |
1800 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1816 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1801 | 1817 | |
1802 | 1818 | } # ac_fn_c_check_header_compile |
1803 | 1819 | |
1809 | 1825 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1810 | 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1811 | 1827 | $as_echo_n "checking for $2... " >&6; } |
1812 | if eval "test \"\${$3+set}\"" = set; then : | |
1828 | if eval \${$3+:} false; then : | |
1813 | 1829 | $as_echo_n "(cached) " >&6 |
1814 | 1830 | else |
1815 | 1831 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
1864 | 1880 | eval ac_res=\$$3 |
1865 | 1881 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1866 | 1882 | $as_echo "$ac_res" >&6; } |
1867 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1883 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1868 | 1884 | |
1869 | 1885 | } # ac_fn_c_check_func |
1870 | 1886 | |
1876 | 1892 | ac_fn_c_check_header_mongrel () |
1877 | 1893 | { |
1878 | 1894 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1879 | if eval "test \"\${$3+set}\"" = set; then : | |
1895 | if eval \${$3+:} false; then : | |
1880 | 1896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1881 | 1897 | $as_echo_n "checking for $2... " >&6; } |
1882 | if eval "test \"\${$3+set}\"" = set; then : | |
1898 | if eval \${$3+:} false; then : | |
1883 | 1899 | $as_echo_n "(cached) " >&6 |
1884 | 1900 | fi |
1885 | 1901 | eval ac_res=\$$3 |
1915 | 1931 | else |
1916 | 1932 | ac_header_preproc=no |
1917 | 1933 | fi |
1918 | rm -f conftest.err conftest.$ac_ext | |
1934 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1919 | 1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1920 | 1936 | $as_echo "$ac_header_preproc" >&6; } |
1921 | 1937 | |
1946 | 1962 | esac |
1947 | 1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1948 | 1964 | $as_echo_n "checking for $2... " >&6; } |
1949 | if eval "test \"\${$3+set}\"" = set; then : | |
1965 | if eval \${$3+:} false; then : | |
1950 | 1966 | $as_echo_n "(cached) " >&6 |
1951 | 1967 | else |
1952 | 1968 | eval "$3=\$ac_header_compiler" |
1955 | 1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
1956 | 1972 | $as_echo "$ac_res" >&6; } |
1957 | 1973 | fi |
1958 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1974 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1959 | 1975 | |
1960 | 1976 | } # ac_fn_c_check_header_mongrel |
1961 | 1977 | cat >config.log <<_ACEOF |
1962 | 1978 | This file contains any messages produced by compilers while |
1963 | 1979 | running configure, to aid debugging if configure makes a mistake. |
1964 | 1980 | |
1965 | It was created by polkit-gnome $as_me 0.100, which was | |
1966 | generated by GNU Autoconf 2.66. Invocation command line was | |
1981 | It was created by polkit-gnome $as_me 0.101, which was | |
1982 | generated by GNU Autoconf 2.68. Invocation command line was | |
1967 | 1983 | |
1968 | 1984 | $ $0 $@ |
1969 | 1985 | |
2359 | 2375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
2360 | 2376 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
2361 | 2377 | if test -z "$INSTALL"; then |
2362 | if test "${ac_cv_path_install+set}" = set; then : | |
2378 | if ${ac_cv_path_install+:} false; then : | |
2363 | 2379 | $as_echo_n "(cached) " >&6 |
2364 | 2380 | else |
2365 | 2381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2536 | 2552 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2537 | 2553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2538 | 2554 | $as_echo_n "checking for $ac_word... " >&6; } |
2539 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
2555 | if ${ac_cv_prog_STRIP+:} false; then : | |
2540 | 2556 | $as_echo_n "(cached) " >&6 |
2541 | 2557 | else |
2542 | 2558 | if test -n "$STRIP"; then |
2576 | 2592 | set dummy strip; ac_word=$2 |
2577 | 2593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2578 | 2594 | $as_echo_n "checking for $ac_word... " >&6; } |
2579 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
2595 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2580 | 2596 | $as_echo_n "(cached) " >&6 |
2581 | 2597 | else |
2582 | 2598 | if test -n "$ac_ct_STRIP"; then |
2629 | 2645 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 |
2630 | 2646 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } |
2631 | 2647 | if test -z "$MKDIR_P"; then |
2632 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
2648 | if ${ac_cv_path_mkdir+:} false; then : | |
2633 | 2649 | $as_echo_n "(cached) " >&6 |
2634 | 2650 | else |
2635 | 2651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2680 | 2696 | set dummy $ac_prog; ac_word=$2 |
2681 | 2697 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2682 | 2698 | $as_echo_n "checking for $ac_word... " >&6; } |
2683 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
2699 | if ${ac_cv_prog_AWK+:} false; then : | |
2684 | 2700 | $as_echo_n "(cached) " >&6 |
2685 | 2701 | else |
2686 | 2702 | if test -n "$AWK"; then |
2720 | 2736 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
2721 | 2737 | set x ${MAKE-make} |
2722 | 2738 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2723 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : | |
2739 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2724 | 2740 | $as_echo_n "(cached) " >&6 |
2725 | 2741 | else |
2726 | 2742 | cat >conftest.make <<\_ACEOF |
2778 | 2794 | |
2779 | 2795 | # Define the identity of the package. |
2780 | 2796 | PACKAGE='polkit-gnome' |
2781 | VERSION='0.100' | |
2797 | VERSION='0.101' | |
2782 | 2798 | |
2783 | 2799 | |
2784 | 2800 | cat >>confdefs.h <<_ACEOF |
2881 | 2897 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2882 | 2898 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2883 | 2899 | $as_echo_n "checking for $ac_word... " >&6; } |
2884 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2900 | if ${ac_cv_prog_CC+:} false; then : | |
2885 | 2901 | $as_echo_n "(cached) " >&6 |
2886 | 2902 | else |
2887 | 2903 | if test -n "$CC"; then |
2921 | 2937 | set dummy gcc; ac_word=$2 |
2922 | 2938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2923 | 2939 | $as_echo_n "checking for $ac_word... " >&6; } |
2924 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
2940 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2925 | 2941 | $as_echo_n "(cached) " >&6 |
2926 | 2942 | else |
2927 | 2943 | if test -n "$ac_ct_CC"; then |
2974 | 2990 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2975 | 2991 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2976 | 2992 | $as_echo_n "checking for $ac_word... " >&6; } |
2977 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2993 | if ${ac_cv_prog_CC+:} false; then : | |
2978 | 2994 | $as_echo_n "(cached) " >&6 |
2979 | 2995 | else |
2980 | 2996 | if test -n "$CC"; then |
3014 | 3030 | set dummy cc; ac_word=$2 |
3015 | 3031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3016 | 3032 | $as_echo_n "checking for $ac_word... " >&6; } |
3017 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3033 | if ${ac_cv_prog_CC+:} false; then : | |
3018 | 3034 | $as_echo_n "(cached) " >&6 |
3019 | 3035 | else |
3020 | 3036 | if test -n "$CC"; then |
3073 | 3089 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3074 | 3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3075 | 3091 | $as_echo_n "checking for $ac_word... " >&6; } |
3076 | if test "${ac_cv_prog_CC+set}" = set; then : | |
3092 | if ${ac_cv_prog_CC+:} false; then : | |
3077 | 3093 | $as_echo_n "(cached) " >&6 |
3078 | 3094 | else |
3079 | 3095 | if test -n "$CC"; then |
3117 | 3133 | set dummy $ac_prog; ac_word=$2 |
3118 | 3134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3119 | 3135 | $as_echo_n "checking for $ac_word... " >&6; } |
3120 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
3136 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3121 | 3137 | $as_echo_n "(cached) " >&6 |
3122 | 3138 | else |
3123 | 3139 | if test -n "$ac_ct_CC"; then |
3400 | 3416 | ac_clean_files=$ac_clean_files_save |
3401 | 3417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
3402 | 3418 | $as_echo_n "checking for suffix of object files... " >&6; } |
3403 | if test "${ac_cv_objext+set}" = set; then : | |
3419 | if ${ac_cv_objext+:} false; then : | |
3404 | 3420 | $as_echo_n "(cached) " >&6 |
3405 | 3421 | else |
3406 | 3422 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3451 | 3467 | ac_objext=$OBJEXT |
3452 | 3468 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
3453 | 3469 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
3454 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
3470 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3455 | 3471 | $as_echo_n "(cached) " >&6 |
3456 | 3472 | else |
3457 | 3473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
3488 | 3504 | ac_save_CFLAGS=$CFLAGS |
3489 | 3505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
3490 | 3506 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
3491 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
3507 | if ${ac_cv_prog_cc_g+:} false; then : | |
3492 | 3508 | $as_echo_n "(cached) " >&6 |
3493 | 3509 | else |
3494 | 3510 | ac_save_c_werror_flag=$ac_c_werror_flag |
3566 | 3582 | fi |
3567 | 3583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3568 | 3584 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
3569 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3585 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3570 | 3586 | $as_echo_n "(cached) " >&6 |
3571 | 3587 | else |
3572 | 3588 | ac_cv_prog_cc_c89=no |
3727 | 3743 | |
3728 | 3744 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 |
3729 | 3745 | $as_echo_n "checking dependency style of $depcc... " >&6; } |
3730 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
3746 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3731 | 3747 | $as_echo_n "(cached) " >&6 |
3732 | 3748 | else |
3733 | 3749 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3853 | 3869 | |
3854 | 3870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 |
3855 | 3871 | $as_echo_n "checking for library containing strerror... " >&6; } |
3856 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3872 | if ${ac_cv_search_strerror+:} false; then : | |
3857 | 3873 | $as_echo_n "(cached) " >&6 |
3858 | 3874 | else |
3859 | 3875 | ac_func_search_save_LIBS=$LIBS |
3887 | 3903 | fi |
3888 | 3904 | rm -f core conftest.err conftest.$ac_objext \ |
3889 | 3905 | conftest$ac_exeext |
3890 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3906 | if ${ac_cv_search_strerror+:} false; then : | |
3891 | 3907 | break |
3892 | 3908 | fi |
3893 | 3909 | done |
3894 | if test "${ac_cv_search_strerror+set}" = set; then : | |
3910 | if ${ac_cv_search_strerror+:} false; then : | |
3895 | 3911 | |
3896 | 3912 | else |
3897 | 3913 | ac_cv_search_strerror=no |
3919 | 3935 | CPP= |
3920 | 3936 | fi |
3921 | 3937 | if test -z "$CPP"; then |
3922 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
3938 | if ${ac_cv_prog_CPP+:} false; then : | |
3923 | 3939 | $as_echo_n "(cached) " >&6 |
3924 | 3940 | else |
3925 | 3941 | # Double quotes because CPP needs to be expanded |
3949 | 3965 | # Broken: fails on valid input. |
3950 | 3966 | continue |
3951 | 3967 | fi |
3952 | rm -f conftest.err conftest.$ac_ext | |
3968 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3953 | 3969 | |
3954 | 3970 | # OK, works on sane cases. Now check whether nonexistent headers |
3955 | 3971 | # can be detected and how. |
3965 | 3981 | ac_preproc_ok=: |
3966 | 3982 | break |
3967 | 3983 | fi |
3968 | rm -f conftest.err conftest.$ac_ext | |
3984 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3969 | 3985 | |
3970 | 3986 | done |
3971 | 3987 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3972 | rm -f conftest.err conftest.$ac_ext | |
3988 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3973 | 3989 | if $ac_preproc_ok; then : |
3974 | 3990 | break |
3975 | 3991 | fi |
4008 | 4024 | # Broken: fails on valid input. |
4009 | 4025 | continue |
4010 | 4026 | fi |
4011 | rm -f conftest.err conftest.$ac_ext | |
4027 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4012 | 4028 | |
4013 | 4029 | # OK, works on sane cases. Now check whether nonexistent headers |
4014 | 4030 | # can be detected and how. |
4024 | 4040 | ac_preproc_ok=: |
4025 | 4041 | break |
4026 | 4042 | fi |
4027 | rm -f conftest.err conftest.$ac_ext | |
4043 | rm -f conftest.err conftest.i conftest.$ac_ext | |
4028 | 4044 | |
4029 | 4045 | done |
4030 | 4046 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4031 | rm -f conftest.err conftest.$ac_ext | |
4047 | rm -f conftest.i conftest.err conftest.$ac_ext | |
4032 | 4048 | if $ac_preproc_ok; then : |
4033 | 4049 | |
4034 | 4050 | else |
4047 | 4063 | |
4048 | 4064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4049 | 4065 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
4050 | if test "${ac_cv_path_GREP+set}" = set; then : | |
4066 | if ${ac_cv_path_GREP+:} false; then : | |
4051 | 4067 | $as_echo_n "(cached) " >&6 |
4052 | 4068 | else |
4053 | 4069 | if test -z "$GREP"; then |
4110 | 4126 | |
4111 | 4127 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
4112 | 4128 | $as_echo_n "checking for egrep... " >&6; } |
4113 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
4129 | if ${ac_cv_path_EGREP+:} false; then : | |
4114 | 4130 | $as_echo_n "(cached) " >&6 |
4115 | 4131 | else |
4116 | 4132 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4177 | 4193 | |
4178 | 4194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4179 | 4195 | $as_echo_n "checking for ANSI C header files... " >&6; } |
4180 | if test "${ac_cv_header_stdc+set}" = set; then : | |
4196 | if ${ac_cv_header_stdc+:} false; then : | |
4181 | 4197 | $as_echo_n "(cached) " >&6 |
4182 | 4198 | else |
4183 | 4199 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
4295 | 4311 | |
4296 | 4312 | |
4297 | 4313 | |
4298 | macro_version='2.2.10' | |
4299 | macro_revision='1.3175' | |
4314 | macro_version='2.4' | |
4315 | macro_revision='1.3293' | |
4300 | 4316 | |
4301 | 4317 | |
4302 | 4318 | |
4318 | 4334 | |
4319 | 4335 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
4320 | 4336 | $as_echo_n "checking build system type... " >&6; } |
4321 | if test "${ac_cv_build+set}" = set; then : | |
4337 | if ${ac_cv_build+:} false; then : | |
4322 | 4338 | $as_echo_n "(cached) " >&6 |
4323 | 4339 | else |
4324 | 4340 | ac_build_alias=$build_alias |
4352 | 4368 | |
4353 | 4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
4354 | 4370 | $as_echo_n "checking host system type... " >&6; } |
4355 | if test "${ac_cv_host+set}" = set; then : | |
4371 | if ${ac_cv_host+:} false; then : | |
4356 | 4372 | $as_echo_n "(cached) " >&6 |
4357 | 4373 | else |
4358 | 4374 | if test "x$host_alias" = x; then |
4407 | 4423 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 |
4408 | 4424 | $as_echo_n "checking how to print strings... " >&6; } |
4409 | 4425 | # Test print first, because it will be a builtin if present. |
4410 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
4426 | if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4411 | 4427 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then |
4412 | 4428 | ECHO='print -r --' |
4413 | 4429 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then |
4454 | 4470 | |
4455 | 4471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
4456 | 4472 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
4457 | if test "${ac_cv_path_SED+set}" = set; then : | |
4473 | if ${ac_cv_path_SED+:} false; then : | |
4458 | 4474 | $as_echo_n "(cached) " >&6 |
4459 | 4475 | else |
4460 | 4476 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
4536 | 4552 | |
4537 | 4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
4538 | 4554 | $as_echo_n "checking for fgrep... " >&6; } |
4539 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
4555 | if ${ac_cv_path_FGREP+:} false; then : | |
4540 | 4556 | $as_echo_n "(cached) " >&6 |
4541 | 4557 | else |
4542 | 4558 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
4667 | 4683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
4668 | 4684 | $as_echo_n "checking for non-GNU ld... " >&6; } |
4669 | 4685 | fi |
4670 | if test "${lt_cv_path_LD+set}" = set; then : | |
4686 | if ${lt_cv_path_LD+:} false; then : | |
4671 | 4687 | $as_echo_n "(cached) " >&6 |
4672 | 4688 | else |
4673 | 4689 | if test -z "$LD"; then |
4707 | 4723 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
4708 | 4724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
4709 | 4725 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
4710 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
4726 | if ${lt_cv_prog_gnu_ld+:} false; then : | |
4711 | 4727 | $as_echo_n "(cached) " >&6 |
4712 | 4728 | else |
4713 | 4729 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4734 | 4750 | |
4735 | 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
4736 | 4752 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } |
4737 | if test "${lt_cv_path_NM+set}" = set; then : | |
4753 | if ${lt_cv_path_NM+:} false; then : | |
4738 | 4754 | $as_echo_n "(cached) " >&6 |
4739 | 4755 | else |
4740 | 4756 | if test -n "$NM"; then |
4797 | 4813 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
4798 | 4814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4799 | 4815 | $as_echo_n "checking for $ac_word... " >&6; } |
4800 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
4816 | if ${ac_cv_prog_DUMPBIN+:} false; then : | |
4801 | 4817 | $as_echo_n "(cached) " >&6 |
4802 | 4818 | else |
4803 | 4819 | if test -n "$DUMPBIN"; then |
4841 | 4857 | set dummy $ac_prog; ac_word=$2 |
4842 | 4858 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
4843 | 4859 | $as_echo_n "checking for $ac_word... " >&6; } |
4844 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
4860 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
4845 | 4861 | $as_echo_n "(cached) " >&6 |
4846 | 4862 | else |
4847 | 4863 | if test -n "$ac_ct_DUMPBIN"; then |
4913 | 4929 | |
4914 | 4930 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
4915 | 4931 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } |
4916 | if test "${lt_cv_nm_interface+set}" = set; then : | |
4932 | if ${lt_cv_nm_interface+:} false; then : | |
4917 | 4933 | $as_echo_n "(cached) " >&6 |
4918 | 4934 | else |
4919 | 4935 | lt_cv_nm_interface="BSD nm" |
4948 | 4964 | # find the maximum length of command line arguments |
4949 | 4965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
4950 | 4966 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } |
4951 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
4967 | if ${lt_cv_sys_max_cmd_len+:} false; then : | |
4952 | 4968 | $as_echo_n "(cached) " >&6 |
4953 | 4969 | else |
4954 | 4970 | i=0 |
5093 | 5109 | # Try some XSI features |
5094 | 5110 | xsi_shell=no |
5095 | 5111 | ( _lt_dummy="a/b/c" |
5096 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5097 | = c,a/b,, \ | |
5112 | test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5113 | = c,a/b,b/c, \ | |
5098 | 5114 | && eval 'test $(( 1 + 1 )) -eq 2 \ |
5099 | 5115 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ |
5100 | 5116 | && xsi_shell=yes |
5143 | 5159 | |
5144 | 5160 | |
5145 | 5161 | |
5162 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5163 | $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5164 | if ${lt_cv_to_host_file_cmd+:} false; then : | |
5165 | $as_echo_n "(cached) " >&6 | |
5166 | else | |
5167 | case $host in | |
5168 | *-*-mingw* ) | |
5169 | case $build in | |
5170 | *-*-mingw* ) # actually msys | |
5171 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5172 | ;; | |
5173 | *-*-cygwin* ) | |
5174 | lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5175 | ;; | |
5176 | * ) # otherwise, assume *nix | |
5177 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5178 | ;; | |
5179 | esac | |
5180 | ;; | |
5181 | *-*-cygwin* ) | |
5182 | case $build in | |
5183 | *-*-mingw* ) # actually msys | |
5184 | lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5185 | ;; | |
5186 | *-*-cygwin* ) | |
5187 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5188 | ;; | |
5189 | * ) # otherwise, assume *nix | |
5190 | lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5191 | ;; | |
5192 | esac | |
5193 | ;; | |
5194 | * ) # unhandled hosts (and "normal" native builds) | |
5195 | lt_cv_to_host_file_cmd=func_convert_file_noop | |
5196 | ;; | |
5197 | esac | |
5198 | ||
5199 | fi | |
5200 | ||
5201 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5203 | $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5204 | ||
5205 | ||
5206 | ||
5207 | ||
5208 | ||
5209 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5210 | $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5211 | if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5212 | $as_echo_n "(cached) " >&6 | |
5213 | else | |
5214 | #assume ordinary cross tools, or native build. | |
5215 | lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5216 | case $host in | |
5217 | *-*-mingw* ) | |
5218 | case $build in | |
5219 | *-*-mingw* ) # actually msys | |
5220 | lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5221 | ;; | |
5222 | esac | |
5223 | ;; | |
5224 | esac | |
5225 | ||
5226 | fi | |
5227 | ||
5228 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5229 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5230 | $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5231 | ||
5232 | ||
5233 | ||
5234 | ||
5235 | ||
5146 | 5236 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5147 | 5237 | $as_echo_n "checking for $LD option to reload object files... " >&6; } |
5148 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5238 | if ${lt_cv_ld_reload_flag+:} false; then : | |
5149 | 5239 | $as_echo_n "(cached) " >&6 |
5150 | 5240 | else |
5151 | 5241 | lt_cv_ld_reload_flag='-r' |
5159 | 5249 | esac |
5160 | 5250 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5161 | 5251 | case $host_os in |
5252 | cygwin* | mingw* | pw32* | cegcc*) | |
5253 | if test "$GCC" != yes; then | |
5254 | reload_cmds=false | |
5255 | fi | |
5256 | ;; | |
5162 | 5257 | darwin*) |
5163 | 5258 | if test "$GCC" = yes; then |
5164 | 5259 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
5181 | 5276 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 |
5182 | 5277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5183 | 5278 | $as_echo_n "checking for $ac_word... " >&6; } |
5184 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5279 | if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5185 | 5280 | $as_echo_n "(cached) " >&6 |
5186 | 5281 | else |
5187 | 5282 | if test -n "$OBJDUMP"; then |
5221 | 5316 | set dummy objdump; ac_word=$2 |
5222 | 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5223 | 5318 | $as_echo_n "checking for $ac_word... " >&6; } |
5224 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5319 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5225 | 5320 | $as_echo_n "(cached) " >&6 |
5226 | 5321 | else |
5227 | 5322 | if test -n "$ac_ct_OBJDUMP"; then |
5280 | 5375 | |
5281 | 5376 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5282 | 5377 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } |
5283 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
5378 | if ${lt_cv_deplibs_check_method+:} false; then : | |
5284 | 5379 | $as_echo_n "(cached) " >&6 |
5285 | 5380 | else |
5286 | 5381 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5482 | 5577 | fi |
5483 | 5578 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
5484 | 5579 | $as_echo "$lt_cv_deplibs_check_method" >&6; } |
5580 | ||
5581 | file_magic_glob= | |
5582 | want_nocaseglob=no | |
5583 | if test "$build" = "$host"; then | |
5584 | case $host_os in | |
5585 | mingw* | pw32*) | |
5586 | if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
5587 | want_nocaseglob=yes | |
5588 | else | |
5589 | file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
5590 | fi | |
5591 | ;; | |
5592 | esac | |
5593 | fi | |
5594 | ||
5485 | 5595 | file_magic_cmd=$lt_cv_file_magic_cmd |
5486 | 5596 | deplibs_check_method=$lt_cv_deplibs_check_method |
5487 | 5597 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5497 | 5607 | |
5498 | 5608 | |
5499 | 5609 | |
5610 | ||
5611 | ||
5612 | ||
5613 | ||
5614 | ||
5615 | ||
5616 | ||
5617 | ||
5618 | ||
5619 | ||
5500 | 5620 | if test -n "$ac_tool_prefix"; then |
5501 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5502 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5621 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
5622 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
5503 | 5623 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5504 | 5624 | $as_echo_n "checking for $ac_word... " >&6; } |
5505 | if test "${ac_cv_prog_AR+set}" = set; then : | |
5625 | if ${ac_cv_prog_DLLTOOL+:} false; then : | |
5506 | 5626 | $as_echo_n "(cached) " >&6 |
5507 | 5627 | else |
5508 | if test -n "$AR"; then | |
5509 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5628 | if test -n "$DLLTOOL"; then | |
5629 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
5510 | 5630 | else |
5511 | 5631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5512 | 5632 | for as_dir in $PATH |
5515 | 5635 | test -z "$as_dir" && as_dir=. |
5516 | 5636 | for ac_exec_ext in '' $ac_executable_extensions; do |
5517 | 5637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5518 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5638 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
5519 | 5639 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5520 | 5640 | break 2 |
5521 | 5641 | fi |
5525 | 5645 | |
5526 | 5646 | fi |
5527 | 5647 | fi |
5528 | AR=$ac_cv_prog_AR | |
5529 | if test -n "$AR"; then | |
5530 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5531 | $as_echo "$AR" >&6; } | |
5648 | DLLTOOL=$ac_cv_prog_DLLTOOL | |
5649 | if test -n "$DLLTOOL"; then | |
5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
5651 | $as_echo "$DLLTOOL" >&6; } | |
5532 | 5652 | else |
5533 | 5653 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5534 | 5654 | $as_echo "no" >&6; } |
5536 | 5656 | |
5537 | 5657 | |
5538 | 5658 | fi |
5539 | if test -z "$ac_cv_prog_AR"; then | |
5540 | ac_ct_AR=$AR | |
5541 | # Extract the first word of "ar", so it can be a program name with args. | |
5542 | set dummy ar; ac_word=$2 | |
5659 | if test -z "$ac_cv_prog_DLLTOOL"; then | |
5660 | ac_ct_DLLTOOL=$DLLTOOL | |
5661 | # Extract the first word of "dlltool", so it can be a program name with args. | |
5662 | set dummy dlltool; ac_word=$2 | |
5543 | 5663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5544 | 5664 | $as_echo_n "checking for $ac_word... " >&6; } |
5545 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
5665 | if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
5546 | 5666 | $as_echo_n "(cached) " >&6 |
5547 | 5667 | else |
5548 | if test -n "$ac_ct_AR"; then | |
5549 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5668 | if test -n "$ac_ct_DLLTOOL"; then | |
5669 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
5550 | 5670 | else |
5551 | 5671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5552 | 5672 | for as_dir in $PATH |
5555 | 5675 | test -z "$as_dir" && as_dir=. |
5556 | 5676 | for ac_exec_ext in '' $ac_executable_extensions; do |
5557 | 5677 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5558 | ac_cv_prog_ac_ct_AR="ar" | |
5678 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
5559 | 5679 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5560 | 5680 | break 2 |
5561 | 5681 | fi |
5565 | 5685 | |
5566 | 5686 | fi |
5567 | 5687 | fi |
5688 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
5689 | if test -n "$ac_ct_DLLTOOL"; then | |
5690 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
5691 | $as_echo "$ac_ct_DLLTOOL" >&6; } | |
5692 | else | |
5693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5694 | $as_echo "no" >&6; } | |
5695 | fi | |
5696 | ||
5697 | if test "x$ac_ct_DLLTOOL" = x; then | |
5698 | DLLTOOL="false" | |
5699 | else | |
5700 | case $cross_compiling:$ac_tool_warned in | |
5701 | yes:) | |
5702 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5703 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5704 | ac_tool_warned=yes ;; | |
5705 | esac | |
5706 | DLLTOOL=$ac_ct_DLLTOOL | |
5707 | fi | |
5708 | else | |
5709 | DLLTOOL="$ac_cv_prog_DLLTOOL" | |
5710 | fi | |
5711 | ||
5712 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
5713 | ||
5714 | ||
5715 | ||
5716 | ||
5717 | ||
5718 | ||
5719 | ||
5720 | ||
5721 | ||
5722 | ||
5723 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
5724 | $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
5725 | if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
5726 | $as_echo_n "(cached) " >&6 | |
5727 | else | |
5728 | lt_cv_sharedlib_from_linklib_cmd='unknown' | |
5729 | ||
5730 | case $host_os in | |
5731 | cygwin* | mingw* | pw32* | cegcc*) | |
5732 | # two different shell functions defined in ltmain.sh | |
5733 | # decide which to use based on capabilities of $DLLTOOL | |
5734 | case `$DLLTOOL --help 2>&1` in | |
5735 | *--identify-strict*) | |
5736 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
5737 | ;; | |
5738 | *) | |
5739 | lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
5740 | ;; | |
5741 | esac | |
5742 | ;; | |
5743 | *) | |
5744 | # fallback: assume linklib IS sharedlib | |
5745 | lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
5746 | ;; | |
5747 | esac | |
5748 | ||
5749 | fi | |
5750 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
5751 | $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
5752 | sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
5753 | test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
5754 | ||
5755 | ||
5756 | ||
5757 | ||
5758 | ||
5759 | ||
5760 | ||
5761 | if test -n "$ac_tool_prefix"; then | |
5762 | for ac_prog in ar | |
5763 | do | |
5764 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5765 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5767 | $as_echo_n "checking for $ac_word... " >&6; } | |
5768 | if ${ac_cv_prog_AR+:} false; then : | |
5769 | $as_echo_n "(cached) " >&6 | |
5770 | else | |
5771 | if test -n "$AR"; then | |
5772 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5773 | else | |
5774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5775 | for as_dir in $PATH | |
5776 | do | |
5777 | IFS=$as_save_IFS | |
5778 | test -z "$as_dir" && as_dir=. | |
5779 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5781 | ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
5782 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5783 | break 2 | |
5784 | fi | |
5785 | done | |
5786 | done | |
5787 | IFS=$as_save_IFS | |
5788 | ||
5789 | fi | |
5790 | fi | |
5791 | AR=$ac_cv_prog_AR | |
5792 | if test -n "$AR"; then | |
5793 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5794 | $as_echo "$AR" >&6; } | |
5795 | else | |
5796 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5797 | $as_echo "no" >&6; } | |
5798 | fi | |
5799 | ||
5800 | ||
5801 | test -n "$AR" && break | |
5802 | done | |
5803 | fi | |
5804 | if test -z "$AR"; then | |
5805 | ac_ct_AR=$AR | |
5806 | for ac_prog in ar | |
5807 | do | |
5808 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5809 | set dummy $ac_prog; ac_word=$2 | |
5810 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5811 | $as_echo_n "checking for $ac_word... " >&6; } | |
5812 | if ${ac_cv_prog_ac_ct_AR+:} false; then : | |
5813 | $as_echo_n "(cached) " >&6 | |
5814 | else | |
5815 | if test -n "$ac_ct_AR"; then | |
5816 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5817 | else | |
5818 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5819 | for as_dir in $PATH | |
5820 | do | |
5821 | IFS=$as_save_IFS | |
5822 | test -z "$as_dir" && as_dir=. | |
5823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5824 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5825 | ac_cv_prog_ac_ct_AR="$ac_prog" | |
5826 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5827 | break 2 | |
5828 | fi | |
5829 | done | |
5830 | done | |
5831 | IFS=$as_save_IFS | |
5832 | ||
5833 | fi | |
5834 | fi | |
5568 | 5835 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5569 | 5836 | if test -n "$ac_ct_AR"; then |
5570 | 5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
5573 | 5840 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5574 | 5841 | $as_echo "no" >&6; } |
5575 | 5842 | fi |
5843 | ||
5844 | ||
5845 | test -n "$ac_ct_AR" && break | |
5846 | done | |
5576 | 5847 | |
5577 | 5848 | if test "x$ac_ct_AR" = x; then |
5578 | 5849 | AR="false" |
5585 | 5856 | esac |
5586 | 5857 | AR=$ac_ct_AR |
5587 | 5858 | fi |
5588 | else | |
5589 | AR="$ac_cv_prog_AR" | |
5590 | fi | |
5591 | ||
5592 | test -z "$AR" && AR=ar | |
5593 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5594 | ||
5595 | ||
5596 | ||
5597 | ||
5859 | fi | |
5860 | ||
5861 | : ${AR=ar} | |
5862 | : ${AR_FLAGS=cru} | |
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | ||
5869 | ||
5870 | ||
5871 | ||
5872 | ||
5873 | ||
5874 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
5875 | $as_echo_n "checking for archiver @FILE support... " >&6; } | |
5876 | if ${lt_cv_ar_at_file+:} false; then : | |
5877 | $as_echo_n "(cached) " >&6 | |
5878 | else | |
5879 | lt_cv_ar_at_file=no | |
5880 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5881 | /* end confdefs.h. */ | |
5882 | ||
5883 | int | |
5884 | main () | |
5885 | { | |
5886 | ||
5887 | ; | |
5888 | return 0; | |
5889 | } | |
5890 | _ACEOF | |
5891 | if ac_fn_c_try_compile "$LINENO"; then : | |
5892 | echo conftest.$ac_objext > conftest.lst | |
5893 | lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
5894 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5895 | (eval $lt_ar_try) 2>&5 | |
5896 | ac_status=$? | |
5897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5898 | test $ac_status = 0; } | |
5899 | if test "$ac_status" -eq 0; then | |
5900 | # Ensure the archiver fails upon bogus file names. | |
5901 | rm -f conftest.$ac_objext libconftest.a | |
5902 | { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
5903 | (eval $lt_ar_try) 2>&5 | |
5904 | ac_status=$? | |
5905 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5906 | test $ac_status = 0; } | |
5907 | if test "$ac_status" -ne 0; then | |
5908 | lt_cv_ar_at_file=@ | |
5909 | fi | |
5910 | fi | |
5911 | rm -f conftest.* libconftest.a | |
5912 | ||
5913 | fi | |
5914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5915 | ||
5916 | fi | |
5917 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
5918 | $as_echo "$lt_cv_ar_at_file" >&6; } | |
5919 | ||
5920 | if test "x$lt_cv_ar_at_file" = xno; then | |
5921 | archiver_list_spec= | |
5922 | else | |
5923 | archiver_list_spec=$lt_cv_ar_at_file | |
5924 | fi | |
5598 | 5925 | |
5599 | 5926 | |
5600 | 5927 | |
5607 | 5934 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5608 | 5935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5609 | 5936 | $as_echo_n "checking for $ac_word... " >&6; } |
5610 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
5937 | if ${ac_cv_prog_STRIP+:} false; then : | |
5611 | 5938 | $as_echo_n "(cached) " >&6 |
5612 | 5939 | else |
5613 | 5940 | if test -n "$STRIP"; then |
5647 | 5974 | set dummy strip; ac_word=$2 |
5648 | 5975 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5649 | 5976 | $as_echo_n "checking for $ac_word... " >&6; } |
5650 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
5977 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
5651 | 5978 | $as_echo_n "(cached) " >&6 |
5652 | 5979 | else |
5653 | 5980 | if test -n "$ac_ct_STRIP"; then |
5706 | 6033 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5707 | 6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5708 | 6035 | $as_echo_n "checking for $ac_word... " >&6; } |
5709 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6036 | if ${ac_cv_prog_RANLIB+:} false; then : | |
5710 | 6037 | $as_echo_n "(cached) " >&6 |
5711 | 6038 | else |
5712 | 6039 | if test -n "$RANLIB"; then |
5746 | 6073 | set dummy ranlib; ac_word=$2 |
5747 | 6074 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5748 | 6075 | $as_echo_n "checking for $ac_word... " >&6; } |
5749 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6076 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
5750 | 6077 | $as_echo_n "(cached) " >&6 |
5751 | 6078 | else |
5752 | 6079 | if test -n "$ac_ct_RANLIB"; then |
5875 | 6202 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5876 | 6203 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
5877 | 6204 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } |
5878 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6205 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
5879 | 6206 | $as_echo_n "(cached) " >&6 |
5880 | 6207 | else |
5881 | 6208 | |
5936 | 6263 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
5937 | 6264 | |
5938 | 6265 | # Transform an extracted symbol line into symbol name and symbol address |
5939 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5940 | 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'" | |
6266 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6267 | 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'" | |
5941 | 6268 | |
5942 | 6269 | # Handle CRLF in mingw tool chain |
5943 | 6270 | opt_cr= |
5973 | 6300 | else |
5974 | 6301 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
5975 | 6302 | fi |
6303 | lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
5976 | 6304 | |
5977 | 6305 | # Check to see that the pipe works correctly. |
5978 | 6306 | pipe_works=no |
6014 | 6342 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then |
6015 | 6343 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then |
6016 | 6344 | cat <<_LT_EOF > conftest.$ac_ext |
6345 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6346 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
6347 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
6348 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6349 | # define LT_DLSYM_CONST | |
6350 | #elif defined(__osf__) | |
6351 | /* This system does not cope well with relocations in const data. */ | |
6352 | # define LT_DLSYM_CONST | |
6353 | #else | |
6354 | # define LT_DLSYM_CONST const | |
6355 | #endif | |
6356 | ||
6017 | 6357 | #ifdef __cplusplus |
6018 | 6358 | extern "C" { |
6019 | 6359 | #endif |
6025 | 6365 | cat <<_LT_EOF >> conftest.$ac_ext |
6026 | 6366 | |
6027 | 6367 | /* The mapping between symbol names and symbols. */ |
6028 | const struct { | |
6368 | LT_DLSYM_CONST struct { | |
6029 | 6369 | const char *name; |
6030 | 6370 | void *address; |
6031 | 6371 | } |
6051 | 6391 | _LT_EOF |
6052 | 6392 | # Now try linking the two files. |
6053 | 6393 | mv conftest.$ac_objext conftstm.$ac_objext |
6054 | lt_save_LIBS="$LIBS" | |
6055 | lt_save_CFLAGS="$CFLAGS" | |
6394 | lt_globsym_save_LIBS=$LIBS | |
6395 | lt_globsym_save_CFLAGS=$CFLAGS | |
6056 | 6396 | LIBS="conftstm.$ac_objext" |
6057 | 6397 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6058 | 6398 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
6062 | 6402 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then |
6063 | 6403 | pipe_works=yes |
6064 | 6404 | fi |
6065 | LIBS="$lt_save_LIBS" | |
6066 | CFLAGS="$lt_save_CFLAGS" | |
6405 | LIBS=$lt_globsym_save_LIBS | |
6406 | CFLAGS=$lt_globsym_save_CFLAGS | |
6067 | 6407 | else |
6068 | 6408 | echo "cannot find nm_test_func in $nlist" >&5 |
6069 | 6409 | fi |
6100 | 6440 | $as_echo "ok" >&6; } |
6101 | 6441 | fi |
6102 | 6442 | |
6103 | ||
6104 | ||
6105 | ||
6106 | ||
6107 | ||
6108 | ||
6109 | ||
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | ||
6118 | ||
6443 | # Response file support. | |
6444 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6445 | nm_file_list_spec='@' | |
6446 | elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6447 | nm_file_list_spec='@' | |
6448 | fi | |
6449 | ||
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | ||
6465 | ||
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6477 | $as_echo_n "checking for sysroot... " >&6; } | |
6478 | ||
6479 | # Check whether --with-sysroot was given. | |
6480 | if test "${with_sysroot+set}" = set; then : | |
6481 | withval=$with_sysroot; | |
6482 | else | |
6483 | with_sysroot=no | |
6484 | fi | |
6485 | ||
6486 | ||
6487 | lt_sysroot= | |
6488 | case ${with_sysroot} in #( | |
6489 | yes) | |
6490 | if test "$GCC" = yes; then | |
6491 | lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6492 | fi | |
6493 | ;; #( | |
6494 | /*) | |
6495 | lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6496 | ;; #( | |
6497 | no|'') | |
6498 | ;; #( | |
6499 | *) | |
6500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6501 | $as_echo "${with_sysroot}" >&6; } | |
6502 | as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6503 | ;; | |
6504 | esac | |
6505 | ||
6506 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6507 | $as_echo "${lt_sysroot:-no}" >&6; } | |
6119 | 6508 | |
6120 | 6509 | |
6121 | 6510 | |
6246 | 6635 | CFLAGS="$CFLAGS -belf" |
6247 | 6636 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6248 | 6637 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } |
6249 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6638 | if ${lt_cv_cc_needs_belf+:} false; then : | |
6250 | 6639 | $as_echo_n "(cached) " >&6 |
6251 | 6640 | else |
6252 | 6641 | ac_ext=c |
6314 | 6703 | |
6315 | 6704 | need_locks="$enable_libtool_lock" |
6316 | 6705 | |
6706 | if test -n "$ac_tool_prefix"; then | |
6707 | # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
6708 | set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
6709 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6710 | $as_echo_n "checking for $ac_word... " >&6; } | |
6711 | if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
6712 | $as_echo_n "(cached) " >&6 | |
6713 | else | |
6714 | if test -n "$MANIFEST_TOOL"; then | |
6715 | ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
6716 | else | |
6717 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6718 | for as_dir in $PATH | |
6719 | do | |
6720 | IFS=$as_save_IFS | |
6721 | test -z "$as_dir" && as_dir=. | |
6722 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6723 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6724 | ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
6725 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6726 | break 2 | |
6727 | fi | |
6728 | done | |
6729 | done | |
6730 | IFS=$as_save_IFS | |
6731 | ||
6732 | fi | |
6733 | fi | |
6734 | MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
6735 | if test -n "$MANIFEST_TOOL"; then | |
6736 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
6737 | $as_echo "$MANIFEST_TOOL" >&6; } | |
6738 | else | |
6739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6740 | $as_echo "no" >&6; } | |
6741 | fi | |
6742 | ||
6743 | ||
6744 | fi | |
6745 | if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
6746 | ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
6747 | # Extract the first word of "mt", so it can be a program name with args. | |
6748 | set dummy mt; ac_word=$2 | |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6750 | $as_echo_n "checking for $ac_word... " >&6; } | |
6751 | if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
6752 | $as_echo_n "(cached) " >&6 | |
6753 | else | |
6754 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6755 | ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
6756 | else | |
6757 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6758 | for as_dir in $PATH | |
6759 | do | |
6760 | IFS=$as_save_IFS | |
6761 | test -z "$as_dir" && as_dir=. | |
6762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6763 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6764 | ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
6765 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6766 | break 2 | |
6767 | fi | |
6768 | done | |
6769 | done | |
6770 | IFS=$as_save_IFS | |
6771 | ||
6772 | fi | |
6773 | fi | |
6774 | ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
6775 | if test -n "$ac_ct_MANIFEST_TOOL"; then | |
6776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
6777 | $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
6778 | else | |
6779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6780 | $as_echo "no" >&6; } | |
6781 | fi | |
6782 | ||
6783 | if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
6784 | MANIFEST_TOOL=":" | |
6785 | else | |
6786 | case $cross_compiling:$ac_tool_warned in | |
6787 | yes:) | |
6788 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6789 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6790 | ac_tool_warned=yes ;; | |
6791 | esac | |
6792 | MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
6793 | fi | |
6794 | else | |
6795 | MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
6796 | fi | |
6797 | ||
6798 | test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
6799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
6800 | $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
6801 | if ${lt_cv_path_mainfest_tool+:} false; then : | |
6802 | $as_echo_n "(cached) " >&6 | |
6803 | else | |
6804 | lt_cv_path_mainfest_tool=no | |
6805 | echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
6806 | $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
6807 | cat conftest.err >&5 | |
6808 | if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
6809 | lt_cv_path_mainfest_tool=yes | |
6810 | fi | |
6811 | rm -f conftest* | |
6812 | fi | |
6813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
6814 | $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
6815 | if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
6816 | MANIFEST_TOOL=: | |
6817 | fi | |
6818 | ||
6819 | ||
6820 | ||
6821 | ||
6822 | ||
6317 | 6823 | |
6318 | 6824 | case $host_os in |
6319 | 6825 | rhapsody* | darwin*) |
6322 | 6828 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
6323 | 6829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6324 | 6830 | $as_echo_n "checking for $ac_word... " >&6; } |
6325 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
6831 | if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
6326 | 6832 | $as_echo_n "(cached) " >&6 |
6327 | 6833 | else |
6328 | 6834 | if test -n "$DSYMUTIL"; then |
6362 | 6868 | set dummy dsymutil; ac_word=$2 |
6363 | 6869 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6364 | 6870 | $as_echo_n "checking for $ac_word... " >&6; } |
6365 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
6871 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
6366 | 6872 | $as_echo_n "(cached) " >&6 |
6367 | 6873 | else |
6368 | 6874 | if test -n "$ac_ct_DSYMUTIL"; then |
6414 | 6920 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
6415 | 6921 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6416 | 6922 | $as_echo_n "checking for $ac_word... " >&6; } |
6417 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : | |
6923 | if ${ac_cv_prog_NMEDIT+:} false; then : | |
6418 | 6924 | $as_echo_n "(cached) " >&6 |
6419 | 6925 | else |
6420 | 6926 | if test -n "$NMEDIT"; then |
6454 | 6960 | set dummy nmedit; ac_word=$2 |
6455 | 6961 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6456 | 6962 | $as_echo_n "checking for $ac_word... " >&6; } |
6457 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : | |
6963 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
6458 | 6964 | $as_echo_n "(cached) " >&6 |
6459 | 6965 | else |
6460 | 6966 | if test -n "$ac_ct_NMEDIT"; then |
6506 | 7012 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 |
6507 | 7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6508 | 7014 | $as_echo_n "checking for $ac_word... " >&6; } |
6509 | if test "${ac_cv_prog_LIPO+set}" = set; then : | |
7015 | if ${ac_cv_prog_LIPO+:} false; then : | |
6510 | 7016 | $as_echo_n "(cached) " >&6 |
6511 | 7017 | else |
6512 | 7018 | if test -n "$LIPO"; then |
6546 | 7052 | set dummy lipo; ac_word=$2 |
6547 | 7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6548 | 7054 | $as_echo_n "checking for $ac_word... " >&6; } |
6549 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : | |
7055 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
6550 | 7056 | $as_echo_n "(cached) " >&6 |
6551 | 7057 | else |
6552 | 7058 | if test -n "$ac_ct_LIPO"; then |
6598 | 7104 | set dummy ${ac_tool_prefix}otool; ac_word=$2 |
6599 | 7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6600 | 7106 | $as_echo_n "checking for $ac_word... " >&6; } |
6601 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
7107 | if ${ac_cv_prog_OTOOL+:} false; then : | |
6602 | 7108 | $as_echo_n "(cached) " >&6 |
6603 | 7109 | else |
6604 | 7110 | if test -n "$OTOOL"; then |
6638 | 7144 | set dummy otool; ac_word=$2 |
6639 | 7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6640 | 7146 | $as_echo_n "checking for $ac_word... " >&6; } |
6641 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
7147 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
6642 | 7148 | $as_echo_n "(cached) " >&6 |
6643 | 7149 | else |
6644 | 7150 | if test -n "$ac_ct_OTOOL"; then |
6690 | 7196 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 |
6691 | 7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6692 | 7198 | $as_echo_n "checking for $ac_word... " >&6; } |
6693 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7199 | if ${ac_cv_prog_OTOOL64+:} false; then : | |
6694 | 7200 | $as_echo_n "(cached) " >&6 |
6695 | 7201 | else |
6696 | 7202 | if test -n "$OTOOL64"; then |
6730 | 7236 | set dummy otool64; ac_word=$2 |
6731 | 7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6732 | 7238 | $as_echo_n "checking for $ac_word... " >&6; } |
6733 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7239 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
6734 | 7240 | $as_echo_n "(cached) " >&6 |
6735 | 7241 | else |
6736 | 7242 | if test -n "$ac_ct_OTOOL64"; then |
6805 | 7311 | |
6806 | 7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
6807 | 7313 | $as_echo_n "checking for -single_module linker flag... " >&6; } |
6808 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7314 | if ${lt_cv_apple_cc_single_mod+:} false; then : | |
6809 | 7315 | $as_echo_n "(cached) " >&6 |
6810 | 7316 | else |
6811 | 7317 | lt_cv_apple_cc_single_mod=no |
6834 | 7340 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } |
6835 | 7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 |
6836 | 7342 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } |
6837 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7343 | if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
6838 | 7344 | $as_echo_n "(cached) " >&6 |
6839 | 7345 | else |
6840 | 7346 | lt_cv_ld_exported_symbols_list=no |
6866 | 7372 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } |
6867 | 7373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
6868 | 7374 | $as_echo_n "checking for -force_load linker flag... " >&6; } |
6869 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
7375 | if ${lt_cv_ld_force_load+:} false; then : | |
6870 | 7376 | $as_echo_n "(cached) " >&6 |
6871 | 7377 | else |
6872 | 7378 | lt_cv_ld_force_load=no |
6952 | 7458 | do : |
6953 | 7459 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default |
6954 | 7460 | " |
6955 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
7461 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
6956 | 7462 | cat >>confdefs.h <<_ACEOF |
6957 | 7463 | #define HAVE_DLFCN_H 1 |
6958 | 7464 | _ACEOF |
7139 | 7645 | |
7140 | 7646 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7141 | 7647 | $as_echo_n "checking for objdir... " >&6; } |
7142 | if test "${lt_cv_objdir+set}" = set; then : | |
7648 | if ${lt_cv_objdir+:} false; then : | |
7143 | 7649 | $as_echo_n "(cached) " >&6 |
7144 | 7650 | else |
7145 | 7651 | rm -f .libs 2>/dev/null |
7217 | 7723 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
7218 | 7724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7219 | 7725 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } |
7220 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7726 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
7221 | 7727 | $as_echo_n "(cached) " >&6 |
7222 | 7728 | else |
7223 | 7729 | case $MAGIC_CMD in |
7283 | 7789 | if test -n "$ac_tool_prefix"; then |
7284 | 7790 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7285 | 7791 | $as_echo_n "checking for file... " >&6; } |
7286 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7792 | if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
7287 | 7793 | $as_echo_n "(cached) " >&6 |
7288 | 7794 | else |
7289 | 7795 | case $MAGIC_CMD in |
7421 | 7927 | |
7422 | 7928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7423 | 7929 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } |
7424 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
7930 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
7425 | 7931 | $as_echo_n "(cached) " >&6 |
7426 | 7932 | else |
7427 | 7933 | lt_cv_prog_compiler_rtti_exceptions=no |
7474 | 7980 | lt_prog_compiler_pic= |
7475 | 7981 | lt_prog_compiler_static= |
7476 | 7982 | |
7477 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
7478 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
7479 | 7983 | |
7480 | 7984 | if test "$GCC" = yes; then |
7481 | 7985 | lt_prog_compiler_wl='-Wl,' |
7639 | 8143 | lt_prog_compiler_wl='-Wl,' |
7640 | 8144 | lt_prog_compiler_pic='--shared' |
7641 | 8145 | lt_prog_compiler_static='--static' |
8146 | ;; | |
8147 | nagfor*) | |
8148 | # NAG Fortran compiler | |
8149 | lt_prog_compiler_wl='-Wl,-Wl,,' | |
8150 | lt_prog_compiler_pic='-PIC' | |
8151 | lt_prog_compiler_static='-Bstatic' | |
7642 | 8152 | ;; |
7643 | 8153 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
7644 | 8154 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7759 | 8269 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7760 | 8270 | ;; |
7761 | 8271 | esac |
7762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
7763 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
7764 | ||
7765 | ||
7766 | ||
7767 | ||
7768 | ||
8272 | ||
8273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8274 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8275 | if ${lt_cv_prog_compiler_pic+:} false; then : | |
8276 | $as_echo_n "(cached) " >&6 | |
8277 | else | |
8278 | lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
8279 | fi | |
8280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
8281 | $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
8282 | lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
7769 | 8283 | |
7770 | 8284 | # |
7771 | 8285 | # Check to make sure the PIC flag actually works. |
7773 | 8287 | if test -n "$lt_prog_compiler_pic"; then |
7774 | 8288 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7775 | 8289 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } |
7776 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8290 | if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
7777 | 8291 | $as_echo_n "(cached) " >&6 |
7778 | 8292 | else |
7779 | 8293 | lt_cv_prog_compiler_pic_works=no |
7826 | 8340 | |
7827 | 8341 | |
7828 | 8342 | |
8343 | ||
8344 | ||
8345 | ||
8346 | ||
8347 | ||
7829 | 8348 | # |
7830 | 8349 | # Check to make sure the static flag actually works. |
7831 | 8350 | # |
7832 | 8351 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
7833 | 8352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7834 | 8353 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } |
7835 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8354 | if ${lt_cv_prog_compiler_static_works+:} false; then : | |
7836 | 8355 | $as_echo_n "(cached) " >&6 |
7837 | 8356 | else |
7838 | 8357 | lt_cv_prog_compiler_static_works=no |
7875 | 8394 | |
7876 | 8395 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7877 | 8396 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
7878 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8397 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
7879 | 8398 | $as_echo_n "(cached) " >&6 |
7880 | 8399 | else |
7881 | 8400 | lt_cv_prog_compiler_c_o=no |
7930 | 8449 | |
7931 | 8450 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7932 | 8451 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } |
7933 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8452 | if ${lt_cv_prog_compiler_c_o+:} false; then : | |
7934 | 8453 | $as_echo_n "(cached) " >&6 |
7935 | 8454 | else |
7936 | 8455 | lt_cv_prog_compiler_c_o=no |
8176 | 8695 | allow_undefined_flag=unsupported |
8177 | 8696 | always_export_symbols=no |
8178 | 8697 | enable_shared_with_static_runtimes=yes |
8179 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8698 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
8699 | exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
8180 | 8700 | |
8181 | 8701 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then |
8182 | 8702 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
8224 | 8744 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ |
8225 | 8745 | && test "$tmp_diet" = no |
8226 | 8746 | then |
8227 | tmp_addflag= | |
8747 | tmp_addflag=' $pic_flag' | |
8228 | 8748 | tmp_sharedflag='-shared' |
8229 | 8749 | case $cc_basename,$host_cpu in |
8230 | 8750 | pgcc*) # Portland Group C compiler |
8294 | 8814 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
8295 | 8815 | wlarc= |
8296 | 8816 | else |
8297 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8298 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8817 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8818 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8299 | 8819 | fi |
8300 | 8820 | ;; |
8301 | 8821 | |
8313 | 8833 | |
8314 | 8834 | _LT_EOF |
8315 | 8835 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
8316 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8317 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8836 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8837 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8318 | 8838 | else |
8319 | 8839 | ld_shlibs=no |
8320 | 8840 | fi |
8360 | 8880 | |
8361 | 8881 | *) |
8362 | 8882 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then |
8363 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8364 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8883 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8884 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8365 | 8885 | else |
8366 | 8886 | ld_shlibs=no |
8367 | 8887 | fi |
8491 | 9011 | allow_undefined_flag='-berok' |
8492 | 9012 | # Determine the default libpath from the value encoded in an |
8493 | 9013 | # empty executable. |
8494 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9014 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9015 | aix_libpath=$lt_cv_aix_libpath | |
9016 | else | |
9017 | if ${lt_cv_aix_libpath_+:} false; then : | |
9018 | $as_echo_n "(cached) " >&6 | |
9019 | else | |
9020 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8495 | 9021 | /* end confdefs.h. */ |
8496 | 9022 | |
8497 | 9023 | int |
8504 | 9030 | _ACEOF |
8505 | 9031 | if ac_fn_c_try_link "$LINENO"; then : |
8506 | 9032 | |
8507 | lt_aix_libpath_sed=' | |
8508 | /Import File Strings/,/^$/ { | |
8509 | /^0/ { | |
8510 | s/^0 *\(.*\)$/\1/ | |
8511 | p | |
8512 | } | |
8513 | }' | |
8514 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8515 | # Check for a 64-bit object if we didn't find anything. | |
8516 | if test -z "$aix_libpath"; then | |
8517 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8518 | fi | |
9033 | lt_aix_libpath_sed=' | |
9034 | /Import File Strings/,/^$/ { | |
9035 | /^0/ { | |
9036 | s/^0 *\([^ ]*\) *$/\1/ | |
9037 | p | |
9038 | } | |
9039 | }' | |
9040 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9041 | # Check for a 64-bit object if we didn't find anything. | |
9042 | if test -z "$lt_cv_aix_libpath_"; then | |
9043 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9044 | fi | |
8519 | 9045 | fi |
8520 | 9046 | rm -f core conftest.err conftest.$ac_objext \ |
8521 | 9047 | conftest$ac_exeext conftest.$ac_ext |
8522 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9048 | if test -z "$lt_cv_aix_libpath_"; then | |
9049 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9050 | fi | |
9051 | ||
9052 | fi | |
9053 | ||
9054 | aix_libpath=$lt_cv_aix_libpath_ | |
9055 | fi | |
8523 | 9056 | |
8524 | 9057 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8525 | 9058 | archive_expsym_cmds='$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" |
8531 | 9064 | else |
8532 | 9065 | # Determine the default libpath from the value encoded in an |
8533 | 9066 | # empty executable. |
8534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9067 | if test "${lt_cv_aix_libpath+set}" = set; then | |
9068 | aix_libpath=$lt_cv_aix_libpath | |
9069 | else | |
9070 | if ${lt_cv_aix_libpath_+:} false; then : | |
9071 | $as_echo_n "(cached) " >&6 | |
9072 | else | |
9073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8535 | 9074 | /* end confdefs.h. */ |
8536 | 9075 | |
8537 | 9076 | int |
8544 | 9083 | _ACEOF |
8545 | 9084 | if ac_fn_c_try_link "$LINENO"; then : |
8546 | 9085 | |
8547 | lt_aix_libpath_sed=' | |
8548 | /Import File Strings/,/^$/ { | |
8549 | /^0/ { | |
8550 | s/^0 *\(.*\)$/\1/ | |
8551 | p | |
8552 | } | |
8553 | }' | |
8554 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8555 | # Check for a 64-bit object if we didn't find anything. | |
8556 | if test -z "$aix_libpath"; then | |
8557 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
8558 | fi | |
9086 | lt_aix_libpath_sed=' | |
9087 | /Import File Strings/,/^$/ { | |
9088 | /^0/ { | |
9089 | s/^0 *\([^ ]*\) *$/\1/ | |
9090 | p | |
9091 | } | |
9092 | }' | |
9093 | lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9094 | # Check for a 64-bit object if we didn't find anything. | |
9095 | if test -z "$lt_cv_aix_libpath_"; then | |
9096 | lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9097 | fi | |
8559 | 9098 | fi |
8560 | 9099 | rm -f core conftest.err conftest.$ac_objext \ |
8561 | 9100 | conftest$ac_exeext conftest.$ac_ext |
8562 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9101 | if test -z "$lt_cv_aix_libpath_"; then | |
9102 | lt_cv_aix_libpath_="/usr/lib:/lib" | |
9103 | fi | |
9104 | ||
9105 | fi | |
9106 | ||
9107 | aix_libpath=$lt_cv_aix_libpath_ | |
9108 | fi | |
8563 | 9109 | |
8564 | 9110 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8565 | 9111 | # Warning - without using the other run time loading flags, |
8604 | 9150 | # Microsoft Visual C++. |
8605 | 9151 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8606 | 9152 | # no search path for DLLs. |
8607 | hardcode_libdir_flag_spec=' ' | |
8608 | allow_undefined_flag=unsupported | |
8609 | # Tell ltmain to make .lib files, not .a files. | |
8610 | libext=lib | |
8611 | # Tell ltmain to make .dll files, not .so files. | |
8612 | shrext_cmds=".dll" | |
8613 | # FIXME: Setting linknames here is a bad hack. | |
8614 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
8615 | # The linker will automatically build a .lib file if we build a DLL. | |
8616 | old_archive_from_new_cmds='true' | |
8617 | # FIXME: Should let the user specify the lib program. | |
8618 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
8619 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
8620 | enable_shared_with_static_runtimes=yes | |
9153 | case $cc_basename in | |
9154 | cl*) | |
9155 | # Native MSVC | |
9156 | hardcode_libdir_flag_spec=' ' | |
9157 | allow_undefined_flag=unsupported | |
9158 | always_export_symbols=yes | |
9159 | file_list_spec='@' | |
9160 | # Tell ltmain to make .lib files, not .a files. | |
9161 | libext=lib | |
9162 | # Tell ltmain to make .dll files, not .so files. | |
9163 | shrext_cmds=".dll" | |
9164 | # FIXME: Setting linknames here is a bad hack. | |
9165 | archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9166 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9167 | sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9168 | else | |
9169 | sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9170 | fi~ | |
9171 | $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9172 | linknames=' | |
9173 | # The linker will not automatically build a static lib if we build a DLL. | |
9174 | # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9175 | enable_shared_with_static_runtimes=yes | |
9176 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9177 | # Don't use ranlib | |
9178 | old_postinstall_cmds='chmod 644 $oldlib' | |
9179 | postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9180 | lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9181 | case $lt_outputfile in | |
9182 | *.exe|*.EXE) ;; | |
9183 | *) | |
9184 | lt_outputfile="$lt_outputfile.exe" | |
9185 | lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9186 | ;; | |
9187 | esac~ | |
9188 | if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9189 | $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9190 | $RM "$lt_outputfile.manifest"; | |
9191 | fi' | |
9192 | ;; | |
9193 | *) | |
9194 | # Assume MSVC wrapper | |
9195 | hardcode_libdir_flag_spec=' ' | |
9196 | allow_undefined_flag=unsupported | |
9197 | # Tell ltmain to make .lib files, not .a files. | |
9198 | libext=lib | |
9199 | # Tell ltmain to make .dll files, not .so files. | |
9200 | shrext_cmds=".dll" | |
9201 | # FIXME: Setting linknames here is a bad hack. | |
9202 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9203 | # The linker will automatically build a .lib file if we build a DLL. | |
9204 | old_archive_from_new_cmds='true' | |
9205 | # FIXME: Should let the user specify the lib program. | |
9206 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9207 | enable_shared_with_static_runtimes=yes | |
9208 | ;; | |
9209 | esac | |
8621 | 9210 | ;; |
8622 | 9211 | |
8623 | 9212 | darwin* | rhapsody*) |
8682 | 9271 | |
8683 | 9272 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8684 | 9273 | freebsd* | dragonfly*) |
8685 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9274 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8686 | 9275 | hardcode_libdir_flag_spec='-R$libdir' |
8687 | 9276 | hardcode_direct=yes |
8688 | 9277 | hardcode_shlibpath_var=no |
8690 | 9279 | |
8691 | 9280 | hpux9*) |
8692 | 9281 | if test "$GCC" = yes; then |
8693 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
9282 | archive_cmds='$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' | |
8694 | 9283 | else |
8695 | 9284 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' |
8696 | 9285 | fi |
8706 | 9295 | |
8707 | 9296 | hpux10*) |
8708 | 9297 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
8709 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9298 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8710 | 9299 | else |
8711 | 9300 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8712 | 9301 | fi |
8730 | 9319 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8731 | 9320 | ;; |
8732 | 9321 | ia64*) |
8733 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9322 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8734 | 9323 | ;; |
8735 | 9324 | *) |
8736 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9325 | archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8737 | 9326 | ;; |
8738 | 9327 | esac |
8739 | 9328 | else |
8750 | 9339 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) |
8751 | 9340 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 |
8752 | 9341 | $as_echo_n "checking if $CC understands -b... " >&6; } |
8753 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
9342 | if ${lt_cv_prog_compiler__b+:} false; then : | |
8754 | 9343 | $as_echo_n "(cached) " >&6 |
8755 | 9344 | else |
8756 | 9345 | lt_cv_prog_compiler__b=no |
8812 | 9401 | |
8813 | 9402 | irix5* | irix6* | nonstopux*) |
8814 | 9403 | if test "$GCC" = yes; then |
8815 | archive_cmds='$CC -shared $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' | |
9404 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8816 | 9405 | # Try to use the -exported_symbol ld option, if it does not |
8817 | 9406 | # work, assume that -exports_file does not work either and |
8818 | 9407 | # implicitly export all symbols. |
8819 | save_LDFLAGS="$LDFLAGS" | |
8820 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8821 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9408 | # This should be the same for all languages, so no per-tag cache variable. | |
9409 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
9410 | $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
9411 | if ${lt_cv_irix_exported_symbol+:} false; then : | |
9412 | $as_echo_n "(cached) " >&6 | |
9413 | else | |
9414 | save_LDFLAGS="$LDFLAGS" | |
9415 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9416 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8822 | 9417 | /* end confdefs.h. */ |
8823 | int foo(void) {} | |
9418 | int foo (void) { return 0; } | |
8824 | 9419 | _ACEOF |
8825 | 9420 | if ac_fn_c_try_link "$LINENO"; then : |
8826 | archive_expsym_cmds='$CC -shared $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' | |
8827 | ||
9421 | lt_cv_irix_exported_symbol=yes | |
9422 | else | |
9423 | lt_cv_irix_exported_symbol=no | |
8828 | 9424 | fi |
8829 | 9425 | rm -f core conftest.err conftest.$ac_objext \ |
8830 | 9426 | conftest$ac_exeext conftest.$ac_ext |
8831 | LDFLAGS="$save_LDFLAGS" | |
9427 | LDFLAGS="$save_LDFLAGS" | |
9428 | fi | |
9429 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
9430 | $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
9431 | if test "$lt_cv_irix_exported_symbol" = yes; then | |
9432 | archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
9433 | fi | |
8832 | 9434 | else |
8833 | 9435 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
8834 | 9436 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' |
8913 | 9515 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8914 | 9516 | if test "$GCC" = yes; then |
8915 | 9517 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8916 | archive_cmds='$CC -shared${allow_undefined_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' | |
9518 | archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8917 | 9519 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8918 | 9520 | else |
8919 | 9521 | allow_undefined_flag=' -expect_unresolved \*' |
8932 | 9534 | no_undefined_flag=' -z defs' |
8933 | 9535 | if test "$GCC" = yes; then |
8934 | 9536 | wlarc='${wl}' |
8935 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9537 | archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8936 | 9538 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ |
8937 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9539 | $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' | |
8938 | 9540 | else |
8939 | 9541 | case `$CC -V 2>&1` in |
8940 | 9542 | *"Compilers 5.0"*) |
9122 | 9724 | # to ld, don't add -lc before -lgcc. |
9123 | 9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9124 | 9726 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } |
9125 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9727 | if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
9126 | 9728 | $as_echo_n "(cached) " >&6 |
9127 | 9729 | else |
9128 | 9730 | $RM conftest* |
9510 | 10112 | need_version=no |
9511 | 10113 | need_lib_prefix=no |
9512 | 10114 | |
9513 | case $GCC,$host_os in | |
9514 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10115 | case $GCC,$cc_basename in | |
10116 | yes,*) | |
10117 | # gcc | |
9515 | 10118 | library_names_spec='$libname.dll.a' |
9516 | 10119 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
9517 | 10120 | postinstall_cmds='base_file=`basename \${file}`~ |
9544 | 10147 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9545 | 10148 | ;; |
9546 | 10149 | esac |
10150 | dynamic_linker='Win32 ld.exe' | |
9547 | 10151 | ;; |
9548 | 10152 | |
10153 | *,cl*) | |
10154 | # Native MSVC | |
10155 | libname_spec='$name' | |
10156 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10157 | library_names_spec='${libname}.dll.lib' | |
10158 | ||
10159 | case $build_os in | |
10160 | mingw*) | |
10161 | sys_lib_search_path_spec= | |
10162 | lt_save_ifs=$IFS | |
10163 | IFS=';' | |
10164 | for lt_path in $LIB | |
10165 | do | |
10166 | IFS=$lt_save_ifs | |
10167 | # Let DOS variable expansion print the short 8.3 style file name. | |
10168 | lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10169 | sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10170 | done | |
10171 | IFS=$lt_save_ifs | |
10172 | # Convert to MSYS style. | |
10173 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10174 | ;; | |
10175 | cygwin*) | |
10176 | # Convert to unix form, then to dos form, then back to unix form | |
10177 | # but this time dos style (no spaces!) so that the unix form looks | |
10178 | # like /cygdrive/c/PROGRA~1:/cygdr... | |
10179 | sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10180 | sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10181 | sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10182 | ;; | |
10183 | *) | |
10184 | sys_lib_search_path_spec="$LIB" | |
10185 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10186 | # It is most probably a Windows format PATH. | |
10187 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10188 | else | |
10189 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10190 | fi | |
10191 | # FIXME: find the short name or the path components, as spaces are | |
10192 | # common. (e.g. "Program Files" -> "PROGRA~1") | |
10193 | ;; | |
10194 | esac | |
10195 | ||
10196 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10197 | postinstall_cmds='base_file=`basename \${file}`~ | |
10198 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10199 | dldir=$destdir/`dirname \$dlpath`~ | |
10200 | test -d \$dldir || mkdir -p \$dldir~ | |
10201 | $install_prog $dir/$dlname \$dldir/$dlname' | |
10202 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10203 | dlpath=$dir/\$dldll~ | |
10204 | $RM \$dlpath' | |
10205 | shlibpath_overrides_runpath=yes | |
10206 | dynamic_linker='Win32 link.exe' | |
10207 | ;; | |
10208 | ||
9549 | 10209 | *) |
10210 | # Assume MSVC wrapper | |
9550 | 10211 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
10212 | dynamic_linker='Win32 ld.exe' | |
9551 | 10213 | ;; |
9552 | 10214 | esac |
9553 | dynamic_linker='Win32 ld.exe' | |
9554 | 10215 | # FIXME: first we should search . and the directory the executable is in |
9555 | 10216 | shlibpath_var=PATH |
9556 | 10217 | ;; |
9764 | 10425 | shlibpath_overrides_runpath=no |
9765 | 10426 | |
9766 | 10427 | # Some binutils ld are patched to set DT_RUNPATH |
9767 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
10428 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
9768 | 10429 | $as_echo_n "(cached) " >&6 |
9769 | 10430 | else |
9770 | 10431 | lt_cv_shlibpath_overrides_runpath=no |
10188 | 10849 | # if libdl is installed we need to link against it |
10189 | 10850 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10190 | 10851 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
10191 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10852 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
10192 | 10853 | $as_echo_n "(cached) " >&6 |
10193 | 10854 | else |
10194 | 10855 | ac_check_lib_save_LIBS=$LIBS |
10222 | 10883 | fi |
10223 | 10884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10224 | 10885 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
10225 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10886 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
10226 | 10887 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10227 | 10888 | else |
10228 | 10889 | |
10236 | 10897 | |
10237 | 10898 | *) |
10238 | 10899 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
10239 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
10900 | if test "x$ac_cv_func_shl_load" = xyes; then : | |
10240 | 10901 | lt_cv_dlopen="shl_load" |
10241 | 10902 | else |
10242 | 10903 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10243 | 10904 | $as_echo_n "checking for shl_load in -ldld... " >&6; } |
10244 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10905 | if ${ac_cv_lib_dld_shl_load+:} false; then : | |
10245 | 10906 | $as_echo_n "(cached) " >&6 |
10246 | 10907 | else |
10247 | 10908 | ac_check_lib_save_LIBS=$LIBS |
10275 | 10936 | fi |
10276 | 10937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10277 | 10938 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } |
10278 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
10939 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
10279 | 10940 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
10280 | 10941 | else |
10281 | 10942 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
10282 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
10943 | if test "x$ac_cv_func_dlopen" = xyes; then : | |
10283 | 10944 | lt_cv_dlopen="dlopen" |
10284 | 10945 | else |
10285 | 10946 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10286 | 10947 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
10287 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10948 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
10288 | 10949 | $as_echo_n "(cached) " >&6 |
10289 | 10950 | else |
10290 | 10951 | ac_check_lib_save_LIBS=$LIBS |
10318 | 10979 | fi |
10319 | 10980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10320 | 10981 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
10321 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10982 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
10322 | 10983 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10323 | 10984 | else |
10324 | 10985 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10325 | 10986 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } |
10326 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10987 | if ${ac_cv_lib_svld_dlopen+:} false; then : | |
10327 | 10988 | $as_echo_n "(cached) " >&6 |
10328 | 10989 | else |
10329 | 10990 | ac_check_lib_save_LIBS=$LIBS |
10357 | 11018 | fi |
10358 | 11019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10359 | 11020 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } |
10360 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
11021 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
10361 | 11022 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10362 | 11023 | else |
10363 | 11024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10364 | 11025 | $as_echo_n "checking for dld_link in -ldld... " >&6; } |
10365 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
11026 | if ${ac_cv_lib_dld_dld_link+:} false; then : | |
10366 | 11027 | $as_echo_n "(cached) " >&6 |
10367 | 11028 | else |
10368 | 11029 | ac_check_lib_save_LIBS=$LIBS |
10396 | 11057 | fi |
10397 | 11058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10398 | 11059 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } |
10399 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
11060 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
10400 | 11061 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
10401 | 11062 | fi |
10402 | 11063 | |
10437 | 11098 | |
10438 | 11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
10439 | 11100 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } |
10440 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11101 | if ${lt_cv_dlopen_self+:} false; then : | |
10441 | 11102 | $as_echo_n "(cached) " >&6 |
10442 | 11103 | else |
10443 | 11104 | if test "$cross_compiling" = yes; then : |
10490 | 11151 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10491 | 11152 | correspondingly for the symbols needed. */ |
10492 | 11153 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
10493 | void fnord () __attribute__((visibility("default"))); | |
11154 | int fnord () __attribute__((visibility("default"))); | |
10494 | 11155 | #endif |
10495 | 11156 | |
10496 | void fnord () { int i=42; } | |
11157 | int fnord () { return 42; } | |
10497 | 11158 | int main () |
10498 | 11159 | { |
10499 | 11160 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10543 | 11204 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
10544 | 11205 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
10545 | 11206 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } |
10546 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11207 | if ${lt_cv_dlopen_self_static+:} false; then : | |
10547 | 11208 | $as_echo_n "(cached) " >&6 |
10548 | 11209 | else |
10549 | 11210 | if test "$cross_compiling" = yes; then : |
10596 | 11257 | /* When -fvisbility=hidden is used, assume the code has been annotated |
10597 | 11258 | correspondingly for the symbols needed. */ |
10598 | 11259 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) |
10599 | void fnord () __attribute__((visibility("default"))); | |
11260 | int fnord () __attribute__((visibility("default"))); | |
10600 | 11261 | #endif |
10601 | 11262 | |
10602 | void fnord () { int i=42; } | |
11263 | int fnord () { return 42; } | |
10603 | 11264 | int main () |
10604 | 11265 | { |
10605 | 11266 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10802 | 11463 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
10803 | 11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10804 | 11465 | $as_echo_n "checking for $ac_word... " >&6; } |
10805 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : | |
11466 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
10806 | 11467 | $as_echo_n "(cached) " >&6 |
10807 | 11468 | else |
10808 | 11469 | case $PKG_CONFIG in |
10845 | 11506 | set dummy pkg-config; ac_word=$2 |
10846 | 11507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10847 | 11508 | $as_echo_n "checking for $ac_word... " >&6; } |
10848 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : | |
11509 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
10849 | 11510 | $as_echo_n "(cached) " >&6 |
10850 | 11511 | else |
10851 | 11512 | case $ac_pt_PKG_CONFIG in |
10915 | 11576 | set dummy gtkdoc-check; ac_word=$2 |
10916 | 11577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10917 | 11578 | $as_echo_n "checking for $ac_word... " >&6; } |
10918 | if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then : | |
11579 | if ${ac_cv_path_GTKDOC_CHECK+:} false; then : | |
10919 | 11580 | $as_echo_n "(cached) " >&6 |
10920 | 11581 | else |
10921 | 11582 | case $GTKDOC_CHECK in |
10957 | 11618 | set dummy $ac_prog; ac_word=$2 |
10958 | 11619 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
10959 | 11620 | $as_echo_n "checking for $ac_word... " >&6; } |
10960 | if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then : | |
11621 | if ${ac_cv_path_GTKDOC_REBASE+:} false; then : | |
10961 | 11622 | $as_echo_n "(cached) " >&6 |
10962 | 11623 | else |
10963 | 11624 | case $GTKDOC_REBASE in |
11001 | 11662 | set dummy gtkdoc-mkpdf; ac_word=$2 |
11002 | 11663 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11003 | 11664 | $as_echo_n "checking for $ac_word... " >&6; } |
11004 | if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then : | |
11665 | if ${ac_cv_path_GTKDOC_MKPDF+:} false; then : | |
11005 | 11666 | $as_echo_n "(cached) " >&6 |
11006 | 11667 | else |
11007 | 11668 | case $GTKDOC_MKPDF in |
11868 | 12529 | set dummy intltool-update; ac_word=$2 |
11869 | 12530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11870 | 12531 | $as_echo_n "checking for $ac_word... " >&6; } |
11871 | if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then : | |
12532 | if ${ac_cv_path_INTLTOOL_UPDATE+:} false; then : | |
11872 | 12533 | $as_echo_n "(cached) " >&6 |
11873 | 12534 | else |
11874 | 12535 | case $INTLTOOL_UPDATE in |
11908 | 12569 | set dummy intltool-merge; ac_word=$2 |
11909 | 12570 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11910 | 12571 | $as_echo_n "checking for $ac_word... " >&6; } |
11911 | if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then : | |
12572 | if ${ac_cv_path_INTLTOOL_MERGE+:} false; then : | |
11912 | 12573 | $as_echo_n "(cached) " >&6 |
11913 | 12574 | else |
11914 | 12575 | case $INTLTOOL_MERGE in |
11948 | 12609 | set dummy intltool-extract; ac_word=$2 |
11949 | 12610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
11950 | 12611 | $as_echo_n "checking for $ac_word... " >&6; } |
11951 | if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then : | |
12612 | if ${ac_cv_path_INTLTOOL_EXTRACT+:} false; then : | |
11952 | 12613 | $as_echo_n "(cached) " >&6 |
11953 | 12614 | else |
11954 | 12615 | case $INTLTOOL_EXTRACT in |
12109 | 12770 | set dummy xgettext; ac_word=$2 |
12110 | 12771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12111 | 12772 | $as_echo_n "checking for $ac_word... " >&6; } |
12112 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
12773 | if ${ac_cv_path_XGETTEXT+:} false; then : | |
12113 | 12774 | $as_echo_n "(cached) " >&6 |
12114 | 12775 | else |
12115 | 12776 | case $XGETTEXT in |
12149 | 12810 | set dummy msgmerge; ac_word=$2 |
12150 | 12811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12151 | 12812 | $as_echo_n "checking for $ac_word... " >&6; } |
12152 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : | |
12813 | if ${ac_cv_path_MSGMERGE+:} false; then : | |
12153 | 12814 | $as_echo_n "(cached) " >&6 |
12154 | 12815 | else |
12155 | 12816 | case $MSGMERGE in |
12189 | 12850 | set dummy msgfmt; ac_word=$2 |
12190 | 12851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12191 | 12852 | $as_echo_n "checking for $ac_word... " >&6; } |
12192 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
12853 | if ${ac_cv_path_MSGFMT+:} false; then : | |
12193 | 12854 | $as_echo_n "(cached) " >&6 |
12194 | 12855 | else |
12195 | 12856 | case $MSGFMT in |
12229 | 12890 | set dummy gmsgfmt; ac_word=$2 |
12230 | 12891 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12231 | 12892 | $as_echo_n "checking for $ac_word... " >&6; } |
12232 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
12893 | if ${ac_cv_path_GMSGFMT+:} false; then : | |
12233 | 12894 | $as_echo_n "(cached) " >&6 |
12234 | 12895 | else |
12235 | 12896 | case $GMSGFMT in |
12280 | 12941 | set dummy perl; ac_word=$2 |
12281 | 12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12282 | 12943 | $as_echo_n "checking for $ac_word... " >&6; } |
12283 | if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then : | |
12944 | if ${ac_cv_path_INTLTOOL_PERL+:} false; then : | |
12284 | 12945 | $as_echo_n "(cached) " >&6 |
12285 | 12946 | else |
12286 | 12947 | case $INTLTOOL_PERL in |
12364 | 13025 | case $host in |
12365 | 13026 | *-*-solaris*) |
12366 | 13027 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
12367 | if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : | |
13028 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : | |
12368 | 13029 | DATADIRNAME=share |
12369 | 13030 | else |
12370 | 13031 | DATADIRNAME=lib |
12391 | 13052 | for ac_header in locale.h |
12392 | 13053 | do : |
12393 | 13054 | ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" |
12394 | if test "x$ac_cv_header_locale_h" = x""yes; then : | |
13055 | if test "x$ac_cv_header_locale_h" = xyes; then : | |
12395 | 13056 | cat >>confdefs.h <<_ACEOF |
12396 | 13057 | #define HAVE_LOCALE_H 1 |
12397 | 13058 | _ACEOF |
12403 | 13064 | if test $ac_cv_header_locale_h = yes; then |
12404 | 13065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
12405 | 13066 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
12406 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : | |
13067 | if ${am_cv_val_LC_MESSAGES+:} false; then : | |
12407 | 13068 | $as_echo_n "(cached) " >&6 |
12408 | 13069 | else |
12409 | 13070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12443 | 13104 | INTLLIBS= |
12444 | 13105 | |
12445 | 13106 | ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" |
12446 | if test "x$ac_cv_header_libintl_h" = x""yes; then : | |
13107 | if test "x$ac_cv_header_libintl_h" = xyes; then : | |
12447 | 13108 | gt_cv_func_dgettext_libintl="no" |
12448 | 13109 | libintl_extra_libs="" |
12449 | 13110 | |
12452 | 13113 | # |
12453 | 13114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5 |
12454 | 13115 | $as_echo_n "checking for ngettext in libc... " >&6; } |
12455 | if test "${gt_cv_func_ngettext_libc+set}" = set; then : | |
13116 | if ${gt_cv_func_ngettext_libc+:} false; then : | |
12456 | 13117 | $as_echo_n "(cached) " >&6 |
12457 | 13118 | else |
12458 | 13119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12483 | 13144 | if test "$gt_cv_func_ngettext_libc" = "yes" ; then |
12484 | 13145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5 |
12485 | 13146 | $as_echo_n "checking for dgettext in libc... " >&6; } |
12486 | if test "${gt_cv_func_dgettext_libc+set}" = set; then : | |
13147 | if ${gt_cv_func_dgettext_libc+:} false; then : | |
12487 | 13148 | $as_echo_n "(cached) " >&6 |
12488 | 13149 | else |
12489 | 13150 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
12516 | 13177 | for ac_func in bind_textdomain_codeset |
12517 | 13178 | do : |
12518 | 13179 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
12519 | if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : | |
13180 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : | |
12520 | 13181 | cat >>confdefs.h <<_ACEOF |
12521 | 13182 | #define HAVE_BIND_TEXTDOMAIN_CODESET 1 |
12522 | 13183 | _ACEOF |
12535 | 13196 | |
12536 | 13197 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 |
12537 | 13198 | $as_echo_n "checking for bindtextdomain in -lintl... " >&6; } |
12538 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then : | |
13199 | if ${ac_cv_lib_intl_bindtextdomain+:} false; then : | |
12539 | 13200 | $as_echo_n "(cached) " >&6 |
12540 | 13201 | else |
12541 | 13202 | ac_check_lib_save_LIBS=$LIBS |
12569 | 13230 | fi |
12570 | 13231 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 |
12571 | 13232 | $as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } |
12572 | if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then : | |
13233 | if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : | |
12573 | 13234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 |
12574 | 13235 | $as_echo_n "checking for ngettext in -lintl... " >&6; } |
12575 | if test "${ac_cv_lib_intl_ngettext+set}" = set; then : | |
13236 | if ${ac_cv_lib_intl_ngettext+:} false; then : | |
12576 | 13237 | $as_echo_n "(cached) " >&6 |
12577 | 13238 | else |
12578 | 13239 | ac_check_lib_save_LIBS=$LIBS |
12606 | 13267 | fi |
12607 | 13268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 |
12608 | 13269 | $as_echo "$ac_cv_lib_intl_ngettext" >&6; } |
12609 | if test "x$ac_cv_lib_intl_ngettext" = x""yes; then : | |
13270 | if test "x$ac_cv_lib_intl_ngettext" = xyes; then : | |
12610 | 13271 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 |
12611 | 13272 | $as_echo_n "checking for dgettext in -lintl... " >&6; } |
12612 | if test "${ac_cv_lib_intl_dgettext+set}" = set; then : | |
13273 | if ${ac_cv_lib_intl_dgettext+:} false; then : | |
12613 | 13274 | $as_echo_n "(cached) " >&6 |
12614 | 13275 | else |
12615 | 13276 | ac_check_lib_save_LIBS=$LIBS |
12643 | 13304 | fi |
12644 | 13305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 |
12645 | 13306 | $as_echo "$ac_cv_lib_intl_dgettext" >&6; } |
12646 | if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : | |
13307 | if test "x$ac_cv_lib_intl_dgettext" = xyes; then : | |
12647 | 13308 | gt_cv_func_dgettext_libintl=yes |
12648 | 13309 | fi |
12649 | 13310 | |
12659 | 13320 | $as_echo "" >&6; } |
12660 | 13321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5 |
12661 | 13322 | $as_echo_n "checking for ngettext in -lintl... " >&6; } |
12662 | if test "${ac_cv_lib_intl_ngettext+set}" = set; then : | |
13323 | if ${ac_cv_lib_intl_ngettext+:} false; then : | |
12663 | 13324 | $as_echo_n "(cached) " >&6 |
12664 | 13325 | else |
12665 | 13326 | ac_check_lib_save_LIBS=$LIBS |
12693 | 13354 | fi |
12694 | 13355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5 |
12695 | 13356 | $as_echo "$ac_cv_lib_intl_ngettext" >&6; } |
12696 | if test "x$ac_cv_lib_intl_ngettext" = x""yes; then : | |
13357 | if test "x$ac_cv_lib_intl_ngettext" = xyes; then : | |
12697 | 13358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5 |
12698 | 13359 | $as_echo_n "checking for dcgettext in -lintl... " >&6; } |
12699 | if test "${ac_cv_lib_intl_dcgettext+set}" = set; then : | |
13360 | if ${ac_cv_lib_intl_dcgettext+:} false; then : | |
12700 | 13361 | $as_echo_n "(cached) " >&6 |
12701 | 13362 | else |
12702 | 13363 | ac_check_lib_save_LIBS=$LIBS |
12730 | 13391 | fi |
12731 | 13392 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5 |
12732 | 13393 | $as_echo "$ac_cv_lib_intl_dcgettext" >&6; } |
12733 | if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then : | |
13394 | if test "x$ac_cv_lib_intl_dcgettext" = xyes; then : | |
12734 | 13395 | gt_cv_func_dgettext_libintl=yes |
12735 | 13396 | libintl_extra_libs=-liconv |
12736 | 13397 | else |
12755 | 13416 | for ac_func in bind_textdomain_codeset |
12756 | 13417 | do : |
12757 | 13418 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
12758 | if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : | |
13419 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : | |
12759 | 13420 | cat >>confdefs.h <<_ACEOF |
12760 | 13421 | #define HAVE_BIND_TEXTDOMAIN_CODESET 1 |
12761 | 13422 | _ACEOF |
12793 | 13454 | set dummy msgfmt; ac_word=$2 |
12794 | 13455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12795 | 13456 | $as_echo_n "checking for $ac_word... " >&6; } |
12796 | if test "${ac_cv_path_MSGFMT+set}" = set; then : | |
13457 | if ${ac_cv_path_MSGFMT+:} false; then : | |
12797 | 13458 | $as_echo_n "(cached) " >&6 |
12798 | 13459 | else |
12799 | 13460 | case "$MSGFMT" in |
12830 | 13491 | for ac_func in dcgettext |
12831 | 13492 | do : |
12832 | 13493 | ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext" |
12833 | if test "x$ac_cv_func_dcgettext" = x""yes; then : | |
13494 | if test "x$ac_cv_func_dcgettext" = xyes; then : | |
12834 | 13495 | cat >>confdefs.h <<_ACEOF |
12835 | 13496 | #define HAVE_DCGETTEXT 1 |
12836 | 13497 | _ACEOF |
12871 | 13532 | set dummy gmsgfmt; ac_word=$2 |
12872 | 13533 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12873 | 13534 | $as_echo_n "checking for $ac_word... " >&6; } |
12874 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : | |
13535 | if ${ac_cv_path_GMSGFMT+:} false; then : | |
12875 | 13536 | $as_echo_n "(cached) " >&6 |
12876 | 13537 | else |
12877 | 13538 | case $GMSGFMT in |
12912 | 13573 | set dummy xgettext; ac_word=$2 |
12913 | 13574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12914 | 13575 | $as_echo_n "checking for $ac_word... " >&6; } |
12915 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : | |
13576 | if ${ac_cv_path_XGETTEXT+:} false; then : | |
12916 | 13577 | $as_echo_n "(cached) " >&6 |
12917 | 13578 | else |
12918 | 13579 | case "$XGETTEXT" in |
12963 | 13624 | case $host in |
12964 | 13625 | *-*-solaris*) |
12965 | 13626 | ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset" |
12966 | if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then : | |
13627 | if test "x$ac_cv_func_bind_textdomain_codeset" = xyes; then : | |
12967 | 13628 | CATOBJEXT=.gmo |
12968 | 13629 | DATADIRNAME=share |
12969 | 13630 | else |
13172 | 13833 | :end' >>confcache |
13173 | 13834 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
13174 | 13835 | if test -w "$cache_file"; then |
13175 | test "x$cache_file" != "x/dev/null" && | |
13836 | if test "x$cache_file" != "x/dev/null"; then | |
13176 | 13837 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
13177 | 13838 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
13178 | cat confcache >$cache_file | |
13839 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
13840 | cat confcache >"$cache_file" | |
13841 | else | |
13842 | case $cache_file in #( | |
13843 | */* | ?:*) | |
13844 | mv -f confcache "$cache_file"$$ && | |
13845 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
13846 | *) | |
13847 | mv -f confcache "$cache_file" ;; | |
13848 | esac | |
13849 | fi | |
13850 | fi | |
13179 | 13851 | else |
13180 | 13852 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
13181 | 13853 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
13259 | 13931 | |
13260 | 13932 | |
13261 | 13933 | |
13262 | : ${CONFIG_STATUS=./config.status} | |
13934 | : "${CONFIG_STATUS=./config.status}" | |
13263 | 13935 | ac_write_fail=0 |
13264 | 13936 | ac_clean_files_save=$ac_clean_files |
13265 | 13937 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
13360 | 14032 | IFS=" "" $as_nl" |
13361 | 14033 | |
13362 | 14034 | # Find who we are. Look in the path if we contain no directory separator. |
14035 | as_myself= | |
13363 | 14036 | case $0 in #(( |
13364 | 14037 | *[\\/]* ) as_myself=$0 ;; |
13365 | 14038 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
13666 | 14339 | # report actual input values of CONFIG_FILES etc. instead of their |
13667 | 14340 | # values after options handling. |
13668 | 14341 | ac_log=" |
13669 | This file was extended by polkit-gnome $as_me 0.100, which was | |
13670 | generated by GNU Autoconf 2.66. Invocation command line was | |
14342 | This file was extended by polkit-gnome $as_me 0.101, which was | |
14343 | generated by GNU Autoconf 2.68. Invocation command line was | |
13671 | 14344 | |
13672 | 14345 | CONFIG_FILES = $CONFIG_FILES |
13673 | 14346 | CONFIG_HEADERS = $CONFIG_HEADERS |
13732 | 14405 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
13733 | 14406 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
13734 | 14407 | ac_cs_version="\\ |
13735 | polkit-gnome config.status 0.100 | |
13736 | configured by $0, generated by GNU Autoconf 2.66, | |
14408 | polkit-gnome config.status 0.101 | |
14409 | configured by $0, generated by GNU Autoconf 2.68, | |
13737 | 14410 | with options \\"\$ac_cs_config\\" |
13738 | 14411 | |
13739 | 14412 | Copyright (C) 2010 Free Software Foundation, Inc. |
13754 | 14427 | while test $# != 0 |
13755 | 14428 | do |
13756 | 14429 | case $1 in |
13757 | --*=*) | |
14430 | --*=?*) | |
13758 | 14431 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
13759 | 14432 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
14433 | ac_shift=: | |
14434 | ;; | |
14435 | --*=) | |
14436 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
14437 | ac_optarg= | |
13760 | 14438 | ac_shift=: |
13761 | 14439 | ;; |
13762 | 14440 | *) |
13780 | 14458 | $ac_shift |
13781 | 14459 | case $ac_optarg in |
13782 | 14460 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
14461 | '') as_fn_error $? "missing file argument" ;; | |
13783 | 14462 | esac |
13784 | 14463 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
13785 | 14464 | ac_need_defaults=false;; |
13883 | 14562 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' |
13884 | 14563 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' |
13885 | 14564 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' |
14565 | lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
14566 | lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
13886 | 14567 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' |
13887 | 14568 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' |
13888 | 14569 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' |
13889 | 14570 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' |
13890 | 14571 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' |
14572 | file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
14573 | want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
14574 | DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
14575 | sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
13891 | 14576 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' |
13892 | 14577 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' |
14578 | archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
13893 | 14579 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' |
13894 | 14580 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' |
13895 | 14581 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' |
13904 | 14590 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' |
13905 | 14591 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' |
13906 | 14592 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' |
14593 | nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
14594 | lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
13907 | 14595 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' |
13908 | 14596 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' |
13909 | 14597 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' |
14598 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13910 | 14599 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' |
13911 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
13912 | 14600 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' |
13913 | 14601 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' |
13914 | 14602 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' |
14603 | MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
13915 | 14604 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' |
13916 | 14605 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' |
13917 | 14606 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' |
13944 | 14633 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' |
13945 | 14634 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' |
13946 | 14635 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' |
13947 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
13948 | 14636 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' |
13949 | 14637 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' |
13950 | 14638 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' |
13951 | 14639 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' |
13952 | 14640 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' |
14641 | postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
13953 | 14642 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' |
13954 | 14643 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' |
13955 | 14644 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' |
14004 | 14693 | OBJDUMP \ |
14005 | 14694 | deplibs_check_method \ |
14006 | 14695 | file_magic_cmd \ |
14696 | file_magic_glob \ | |
14697 | want_nocaseglob \ | |
14698 | DLLTOOL \ | |
14699 | sharedlib_from_linklib_cmd \ | |
14007 | 14700 | AR \ |
14008 | 14701 | AR_FLAGS \ |
14702 | archiver_list_spec \ | |
14009 | 14703 | STRIP \ |
14010 | 14704 | RANLIB \ |
14011 | 14705 | CC \ |
14015 | 14709 | lt_cv_sys_global_symbol_to_cdecl \ |
14016 | 14710 | lt_cv_sys_global_symbol_to_c_name_address \ |
14017 | 14711 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
14712 | nm_file_list_spec \ | |
14018 | 14713 | lt_prog_compiler_no_builtin_flag \ |
14714 | lt_prog_compiler_pic \ | |
14019 | 14715 | lt_prog_compiler_wl \ |
14020 | lt_prog_compiler_pic \ | |
14021 | 14716 | lt_prog_compiler_static \ |
14022 | 14717 | lt_cv_prog_compiler_c_o \ |
14023 | 14718 | need_locks \ |
14719 | MANIFEST_TOOL \ | |
14024 | 14720 | DSYMUTIL \ |
14025 | 14721 | NMEDIT \ |
14026 | 14722 | LIPO \ |
14036 | 14732 | hardcode_libdir_flag_spec \ |
14037 | 14733 | hardcode_libdir_flag_spec_ld \ |
14038 | 14734 | hardcode_libdir_separator \ |
14039 | fix_srcfile_path \ | |
14040 | 14735 | exclude_expsyms \ |
14041 | 14736 | include_expsyms \ |
14042 | 14737 | file_list_spec \ |
14072 | 14767 | module_expsym_cmds \ |
14073 | 14768 | export_symbols_cmds \ |
14074 | 14769 | prelink_cmds \ |
14770 | postlink_cmds \ | |
14075 | 14771 | postinstall_cmds \ |
14076 | 14772 | postuninstall_cmds \ |
14077 | 14773 | finish_cmds \ |
14152 | 14848 | # after its creation but before its name has been assigned to `$tmp'. |
14153 | 14849 | $debug || |
14154 | 14850 | { |
14155 | tmp= | |
14851 | tmp= ac_tmp= | |
14156 | 14852 | trap 'exit_status=$? |
14157 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
14853 | : "${ac_tmp:=$tmp}" | |
14854 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
14158 | 14855 | ' 0 |
14159 | 14856 | trap 'as_fn_exit 1' 1 2 13 15 |
14160 | 14857 | } |
14162 | 14859 | |
14163 | 14860 | { |
14164 | 14861 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
14165 | test -n "$tmp" && test -d "$tmp" | |
14862 | test -d "$tmp" | |
14166 | 14863 | } || |
14167 | 14864 | { |
14168 | 14865 | tmp=./conf$$-$RANDOM |
14169 | 14866 | (umask 077 && mkdir "$tmp") |
14170 | 14867 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
14868 | ac_tmp=$tmp | |
14171 | 14869 | |
14172 | 14870 | # Set up the scripts for CONFIG_FILES section. |
14173 | 14871 | # No need to generate them if there are no CONFIG_FILES. |
14189 | 14887 | ac_cs_awk_cr=$ac_cr |
14190 | 14888 | fi |
14191 | 14889 | |
14192 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
14890 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
14193 | 14891 | _ACEOF |
14194 | 14892 | |
14195 | 14893 | |
14217 | 14915 | rm -f conf$$subs.sh |
14218 | 14916 | |
14219 | 14917 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14220 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
14918 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
14221 | 14919 | _ACEOF |
14222 | 14920 | sed -n ' |
14223 | 14921 | h |
14265 | 14963 | rm -f conf$$subs.awk |
14266 | 14964 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
14267 | 14965 | _ACAWK |
14268 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
14966 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
14269 | 14967 | for (key in S) S_is_set[key] = 1 |
14270 | 14968 | FS = "" |
14271 | 14969 | |
14297 | 14995 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
14298 | 14996 | else |
14299 | 14997 | cat |
14300 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
14998 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
14301 | 14999 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 |
14302 | 15000 | _ACEOF |
14303 | 15001 | |
14331 | 15029 | # No need to generate them if there are no CONFIG_HEADERS. |
14332 | 15030 | # This happens for instance with `./config.status Makefile'. |
14333 | 15031 | if test -n "$CONFIG_HEADERS"; then |
14334 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
15032 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
14335 | 15033 | BEGIN { |
14336 | 15034 | _ACEOF |
14337 | 15035 | |
14343 | 15041 | # handling of long lines. |
14344 | 15042 | ac_delim='%!_!# ' |
14345 | 15043 | for ac_last_try in false false :; do |
14346 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
14347 | if test -z "$ac_t"; then | |
15044 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
15045 | if test -z "$ac_tt"; then | |
14348 | 15046 | break |
14349 | 15047 | elif $ac_last_try; then |
14350 | 15048 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
14464 | 15162 | for ac_f |
14465 | 15163 | do |
14466 | 15164 | case $ac_f in |
14467 | -) ac_f="$tmp/stdin";; | |
15165 | -) ac_f="$ac_tmp/stdin";; | |
14468 | 15166 | *) # Look for the file first in the build tree, then in the source tree |
14469 | 15167 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
14470 | 15168 | # because $ac_f cannot contain `:'. |
14499 | 15197 | esac |
14500 | 15198 | |
14501 | 15199 | case $ac_tag in |
14502 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
15200 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
14503 | 15201 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; |
14504 | 15202 | esac |
14505 | 15203 | ;; |
14636 | 15334 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
14637 | 15335 | $ac_datarootdir_hack |
14638 | 15336 | " |
14639 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
14640 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
15337 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
15338 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
14641 | 15339 | |
14642 | 15340 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
14643 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
14644 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
15341 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
15342 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
15343 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
14645 | 15344 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14646 | 15345 | which seems to be undefined. Please make sure it is defined" >&5 |
14647 | 15346 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
14648 | 15347 | which seems to be undefined. Please make sure it is defined" >&2;} |
14649 | 15348 | |
14650 | rm -f "$tmp/stdin" | |
15349 | rm -f "$ac_tmp/stdin" | |
14651 | 15350 | case $ac_file in |
14652 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
14653 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
15351 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
15352 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
14654 | 15353 | esac \ |
14655 | 15354 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14656 | 15355 | ;; |
14661 | 15360 | if test x"$ac_file" != x-; then |
14662 | 15361 | { |
14663 | 15362 | $as_echo "/* $configure_input */" \ |
14664 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
14665 | } >"$tmp/config.h" \ | |
15363 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
15364 | } >"$ac_tmp/config.h" \ | |
14666 | 15365 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14667 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
15366 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
14668 | 15367 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
14669 | 15368 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
14670 | 15369 | else |
14671 | 15370 | rm -f "$ac_file" |
14672 | mv "$tmp/config.h" "$ac_file" \ | |
15371 | mv "$ac_tmp/config.h" "$ac_file" \ | |
14673 | 15372 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
14674 | 15373 | fi |
14675 | 15374 | else |
14676 | 15375 | $as_echo "/* $configure_input */" \ |
14677 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
15376 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
14678 | 15377 | || as_fn_error $? "could not create -" "$LINENO" 5 |
14679 | 15378 | fi |
14680 | 15379 | # Compute "$ac_file"'s index in $config_headers. |
14940 | 15639 | # turn newlines into spaces. |
14941 | 15640 | NL2SP=$lt_lt_NL2SP |
14942 | 15641 | |
15642 | # convert \$build file names to \$host format. | |
15643 | to_host_file_cmd=$lt_cv_to_host_file_cmd | |
15644 | ||
15645 | # convert \$build files to toolchain format. | |
15646 | to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
15647 | ||
14943 | 15648 | # An object symbol dumper. |
14944 | 15649 | OBJDUMP=$lt_OBJDUMP |
14945 | 15650 | |
14946 | 15651 | # Method to check whether dependent libraries are shared objects. |
14947 | 15652 | deplibs_check_method=$lt_deplibs_check_method |
14948 | 15653 | |
14949 | # Command to use when deplibs_check_method == "file_magic". | |
15654 | # Command to use when deplibs_check_method = "file_magic". | |
14950 | 15655 | file_magic_cmd=$lt_file_magic_cmd |
15656 | ||
15657 | # How to find potential files when deplibs_check_method = "file_magic". | |
15658 | file_magic_glob=$lt_file_magic_glob | |
15659 | ||
15660 | # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
15661 | want_nocaseglob=$lt_want_nocaseglob | |
15662 | ||
15663 | # DLL creation program. | |
15664 | DLLTOOL=$lt_DLLTOOL | |
15665 | ||
15666 | # Command to associate shared and link libraries. | |
15667 | sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
14951 | 15668 | |
14952 | 15669 | # The archiver. |
14953 | 15670 | AR=$lt_AR |
15671 | ||
15672 | # Flags to create an archive. | |
14954 | 15673 | AR_FLAGS=$lt_AR_FLAGS |
15674 | ||
15675 | # How to feed a file listing to the archiver. | |
15676 | archiver_list_spec=$lt_archiver_list_spec | |
14955 | 15677 | |
14956 | 15678 | # A symbol stripping program. |
14957 | 15679 | STRIP=$lt_STRIP |
14982 | 15704 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
14983 | 15705 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix |
14984 | 15706 | |
15707 | # Specify filename containing input files for \$NM. | |
15708 | nm_file_list_spec=$lt_nm_file_list_spec | |
15709 | ||
15710 | # The root where to search for dependent libraries,and in which our libraries should be installed. | |
15711 | lt_sysroot=$lt_sysroot | |
15712 | ||
14985 | 15713 | # The name of the directory that contains temporary libtool files. |
14986 | 15714 | objdir=$objdir |
14987 | 15715 | |
14990 | 15718 | |
14991 | 15719 | # Must we lock files when doing compilation? |
14992 | 15720 | need_locks=$lt_need_locks |
15721 | ||
15722 | # Manifest tool. | |
15723 | MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
14993 | 15724 | |
14994 | 15725 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
14995 | 15726 | DSYMUTIL=$lt_DSYMUTIL |
15105 | 15836 | # Compiler flag to turn off builtin functions. |
15106 | 15837 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
15107 | 15838 | |
15839 | # Additional compiler flags for building library objects. | |
15840 | pic_flag=$lt_lt_prog_compiler_pic | |
15841 | ||
15108 | 15842 | # How to pass a linker flag through the compiler. |
15109 | 15843 | wl=$lt_lt_prog_compiler_wl |
15110 | ||
15111 | # Additional compiler flags for building library objects. | |
15112 | pic_flag=$lt_lt_prog_compiler_pic | |
15113 | 15844 | |
15114 | 15845 | # Compiler flag to prevent dynamic linking. |
15115 | 15846 | link_static_flag=$lt_lt_prog_compiler_static |
15197 | 15928 | # Whether libtool must link a program against all its dependency libraries. |
15198 | 15929 | link_all_deplibs=$link_all_deplibs |
15199 | 15930 | |
15200 | # Fix the shell variable \$srcfile for the compiler. | |
15201 | fix_srcfile_path=$lt_fix_srcfile_path | |
15202 | ||
15203 | 15931 | # Set to "yes" if exported symbols are required. |
15204 | 15932 | always_export_symbols=$always_export_symbols |
15205 | 15933 | |
15214 | 15942 | |
15215 | 15943 | # Commands necessary for linking programs (against libraries) with templates. |
15216 | 15944 | prelink_cmds=$lt_prelink_cmds |
15945 | ||
15946 | # Commands necessary for finishing linking programs. | |
15947 | postlink_cmds=$lt_postlink_cmds | |
15217 | 15948 | |
15218 | 15949 | # Specify filename containing input files. |
15219 | 15950 | file_list_spec=$lt_file_list_spec |
15247 | 15978 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
15248 | 15979 | # text mode, it properly converts lines to CR/LF. This bash problem |
15249 | 15980 | # is reportedly fixed, but why not run on old versions too? |
15250 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
15251 | || (rm -f "$cfgfile"; exit 1) | |
15252 | ||
15253 | case $xsi_shell in | |
15254 | yes) | |
15255 | cat << \_LT_EOF >> "$cfgfile" | |
15256 | ||
15257 | # func_dirname file append nondir_replacement | |
15258 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15259 | # otherwise set result to NONDIR_REPLACEMENT. | |
15260 | func_dirname () | |
15261 | { | |
15262 | case ${1} in | |
15263 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15264 | * ) func_dirname_result="${3}" ;; | |
15265 | esac | |
15266 | } | |
15267 | ||
15268 | # func_basename file | |
15269 | func_basename () | |
15270 | { | |
15271 | func_basename_result="${1##*/}" | |
15272 | } | |
15273 | ||
15274 | # func_dirname_and_basename file append nondir_replacement | |
15275 | # perform func_basename and func_dirname in a single function | |
15276 | # call: | |
15277 | # dirname: Compute the dirname of FILE. If nonempty, | |
15278 | # add APPEND to the result, otherwise set result | |
15279 | # to NONDIR_REPLACEMENT. | |
15280 | # value returned in "$func_dirname_result" | |
15281 | # basename: Compute filename of FILE. | |
15282 | # value retuned in "$func_basename_result" | |
15283 | # Implementation must be kept synchronized with func_dirname | |
15284 | # and func_basename. For efficiency, we do not delegate to | |
15285 | # those functions but instead duplicate the functionality here. | |
15286 | func_dirname_and_basename () | |
15287 | { | |
15288 | case ${1} in | |
15289 | */*) func_dirname_result="${1%/*}${2}" ;; | |
15290 | * ) func_dirname_result="${3}" ;; | |
15291 | esac | |
15292 | func_basename_result="${1##*/}" | |
15293 | } | |
15294 | ||
15295 | # func_stripname prefix suffix name | |
15296 | # strip PREFIX and SUFFIX off of NAME. | |
15297 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15298 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15299 | # dot (in which case that matches only a dot). | |
15300 | func_stripname () | |
15301 | { | |
15302 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
15303 | # positional parameters, so assign one to ordinary parameter first. | |
15304 | func_stripname_result=${3} | |
15305 | func_stripname_result=${func_stripname_result#"${1}"} | |
15306 | func_stripname_result=${func_stripname_result%"${2}"} | |
15307 | } | |
15308 | ||
15309 | # func_opt_split | |
15310 | func_opt_split () | |
15311 | { | |
15312 | func_opt_split_opt=${1%%=*} | |
15313 | func_opt_split_arg=${1#*=} | |
15314 | } | |
15315 | ||
15316 | # func_lo2o object | |
15317 | func_lo2o () | |
15318 | { | |
15319 | case ${1} in | |
15320 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
15321 | *) func_lo2o_result=${1} ;; | |
15322 | esac | |
15323 | } | |
15324 | ||
15325 | # func_xform libobj-or-source | |
15326 | func_xform () | |
15327 | { | |
15328 | func_xform_result=${1%.*}.lo | |
15329 | } | |
15330 | ||
15331 | # func_arith arithmetic-term... | |
15332 | func_arith () | |
15333 | { | |
15334 | func_arith_result=$(( $* )) | |
15335 | } | |
15336 | ||
15337 | # func_len string | |
15338 | # STRING may not start with a hyphen. | |
15339 | func_len () | |
15340 | { | |
15341 | func_len_result=${#1} | |
15342 | } | |
15343 | ||
15344 | _LT_EOF | |
15345 | ;; | |
15346 | *) # Bourne compatible functions. | |
15347 | cat << \_LT_EOF >> "$cfgfile" | |
15348 | ||
15349 | # func_dirname file append nondir_replacement | |
15350 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
15351 | # otherwise set result to NONDIR_REPLACEMENT. | |
15352 | func_dirname () | |
15353 | { | |
15354 | # Extract subdirectory from the argument. | |
15355 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
15356 | if test "X$func_dirname_result" = "X${1}"; then | |
15357 | func_dirname_result="${3}" | |
15358 | else | |
15359 | func_dirname_result="$func_dirname_result${2}" | |
15360 | fi | |
15361 | } | |
15362 | ||
15363 | # func_basename file | |
15364 | func_basename () | |
15365 | { | |
15366 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
15367 | } | |
15368 | ||
15369 | ||
15370 | # func_stripname prefix suffix name | |
15371 | # strip PREFIX and SUFFIX off of NAME. | |
15372 | # PREFIX and SUFFIX must not contain globbing or regex special | |
15373 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
15374 | # dot (in which case that matches only a dot). | |
15375 | # func_strip_suffix prefix name | |
15376 | func_stripname () | |
15377 | { | |
15378 | case ${2} in | |
15379 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
15380 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
15381 | esac | |
15382 | } | |
15383 | ||
15384 | # sed scripts: | |
15385 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
15386 | my_sed_long_arg='1s/^-[^=]*=//' | |
15387 | ||
15388 | # func_opt_split | |
15389 | func_opt_split () | |
15390 | { | |
15391 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
15392 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
15393 | } | |
15394 | ||
15395 | # func_lo2o object | |
15396 | func_lo2o () | |
15397 | { | |
15398 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
15399 | } | |
15400 | ||
15401 | # func_xform libobj-or-source | |
15402 | func_xform () | |
15403 | { | |
15404 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
15405 | } | |
15406 | ||
15407 | # func_arith arithmetic-term... | |
15408 | func_arith () | |
15409 | { | |
15410 | func_arith_result=`expr "$@"` | |
15411 | } | |
15412 | ||
15413 | # func_len string | |
15414 | # STRING may not start with a hyphen. | |
15415 | func_len () | |
15416 | { | |
15417 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
15418 | } | |
15419 | ||
15420 | _LT_EOF | |
15421 | esac | |
15422 | ||
15423 | case $lt_shell_append in | |
15424 | yes) | |
15425 | cat << \_LT_EOF >> "$cfgfile" | |
15426 | ||
15427 | # func_append var value | |
15428 | # Append VALUE to the end of shell variable VAR. | |
15429 | func_append () | |
15430 | { | |
15431 | eval "$1+=\$2" | |
15432 | } | |
15433 | _LT_EOF | |
15434 | ;; | |
15435 | *) | |
15436 | cat << \_LT_EOF >> "$cfgfile" | |
15437 | ||
15438 | # func_append var value | |
15439 | # Append VALUE to the end of shell variable VAR. | |
15440 | func_append () | |
15441 | { | |
15442 | eval "$1=\$$1\$2" | |
15443 | } | |
15444 | ||
15445 | _LT_EOF | |
15446 | ;; | |
15447 | esac | |
15448 | ||
15449 | ||
15450 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
15451 | || (rm -f "$cfgfile"; exit 1) | |
15452 | ||
15453 | mv -f "$cfgfile" "$ofile" || | |
15981 | sed '$q' "$ltmain" >> "$cfgfile" \ | |
15982 | || (rm -f "$cfgfile"; exit 1) | |
15983 | ||
15984 | if test x"$xsi_shell" = xyes; then | |
15985 | sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
15986 | func_dirname ()\ | |
15987 | {\ | |
15988 | \ case ${1} in\ | |
15989 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
15990 | \ * ) func_dirname_result="${3}" ;;\ | |
15991 | \ esac\ | |
15992 | } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
15993 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
15994 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
15995 | test 0 -eq $? || _lt_function_replace_fail=: | |
15996 | ||
15997 | ||
15998 | sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
15999 | func_basename ()\ | |
16000 | {\ | |
16001 | \ func_basename_result="${1##*/}"\ | |
16002 | } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
16003 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16004 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16005 | test 0 -eq $? || _lt_function_replace_fail=: | |
16006 | ||
16007 | ||
16008 | sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
16009 | func_dirname_and_basename ()\ | |
16010 | {\ | |
16011 | \ case ${1} in\ | |
16012 | \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
16013 | \ * ) func_dirname_result="${3}" ;;\ | |
16014 | \ esac\ | |
16015 | \ func_basename_result="${1##*/}"\ | |
16016 | } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
16017 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16018 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16019 | test 0 -eq $? || _lt_function_replace_fail=: | |
16020 | ||
16021 | ||
16022 | sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
16023 | func_stripname ()\ | |
16024 | {\ | |
16025 | \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
16026 | \ # positional parameters, so assign one to ordinary parameter first.\ | |
16027 | \ func_stripname_result=${3}\ | |
16028 | \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
16029 | \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
16030 | } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
16031 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16032 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16033 | test 0 -eq $? || _lt_function_replace_fail=: | |
16034 | ||
16035 | ||
16036 | sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
16037 | func_split_long_opt ()\ | |
16038 | {\ | |
16039 | \ func_split_long_opt_name=${1%%=*}\ | |
16040 | \ func_split_long_opt_arg=${1#*=}\ | |
16041 | } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
16042 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16043 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16044 | test 0 -eq $? || _lt_function_replace_fail=: | |
16045 | ||
16046 | ||
16047 | sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
16048 | func_split_short_opt ()\ | |
16049 | {\ | |
16050 | \ func_split_short_opt_arg=${1#??}\ | |
16051 | \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
16052 | } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
16053 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16054 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16055 | test 0 -eq $? || _lt_function_replace_fail=: | |
16056 | ||
16057 | ||
16058 | sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
16059 | func_lo2o ()\ | |
16060 | {\ | |
16061 | \ case ${1} in\ | |
16062 | \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
16063 | \ *) func_lo2o_result=${1} ;;\ | |
16064 | \ esac\ | |
16065 | } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
16066 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16067 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16068 | test 0 -eq $? || _lt_function_replace_fail=: | |
16069 | ||
16070 | ||
16071 | sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
16072 | func_xform ()\ | |
16073 | {\ | |
16074 | func_xform_result=${1%.*}.lo\ | |
16075 | } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
16076 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16077 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16078 | test 0 -eq $? || _lt_function_replace_fail=: | |
16079 | ||
16080 | ||
16081 | sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
16082 | func_arith ()\ | |
16083 | {\ | |
16084 | func_arith_result=$(( $* ))\ | |
16085 | } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
16086 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16087 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16088 | test 0 -eq $? || _lt_function_replace_fail=: | |
16089 | ||
16090 | ||
16091 | sed -e '/^func_len ()$/,/^} # func_len /c\ | |
16092 | func_len ()\ | |
16093 | {\ | |
16094 | func_len_result=${#1}\ | |
16095 | } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
16096 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16097 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16098 | test 0 -eq $? || _lt_function_replace_fail=: | |
16099 | ||
16100 | fi | |
16101 | ||
16102 | if test x"$lt_shell_append" = xyes; then | |
16103 | sed -e '/^func_append ()$/,/^} # func_append /c\ | |
16104 | func_append ()\ | |
16105 | {\ | |
16106 | eval "${1}+=\\${2}"\ | |
16107 | } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
16108 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16109 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16110 | test 0 -eq $? || _lt_function_replace_fail=: | |
16111 | ||
16112 | ||
16113 | sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
16114 | func_append_quoted ()\ | |
16115 | {\ | |
16116 | \ func_quote_for_eval "${2}"\ | |
16117 | \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
16118 | } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
16119 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16120 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16121 | test 0 -eq $? || _lt_function_replace_fail=: | |
16122 | ||
16123 | ||
16124 | # Save a `func_append' function call where possible by direct use of '+=' | |
16125 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
16126 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16127 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16128 | test 0 -eq $? || _lt_function_replace_fail=: | |
16129 | else | |
16130 | # Save a `func_append' function call even when '+=' is not available | |
16131 | sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
16132 | && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
16133 | || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
16134 | test 0 -eq $? || _lt_function_replace_fail=: | |
16135 | fi | |
16136 | ||
16137 | if test x"$_lt_function_replace_fail" = x":"; then | |
16138 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
16139 | $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
16140 | fi | |
16141 | ||
16142 | ||
16143 | mv -f "$cfgfile" "$ofile" || | |
15454 | 16144 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
15455 | 16145 | chmod +x "$ofile" |
15456 | 16146 |
0 | AC_INIT([polkit-gnome],[0.100],[http://lists.freedesktop.org/mailman/listinfo/polkit-devel],[polkit-gnome]) | |
0 | AC_INIT([polkit-gnome],[0.101],[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 |
84 | 84 | DEFS = @DEFS@ |
85 | 85 | DEPDIR = @DEPDIR@ |
86 | 86 | DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ |
87 | DLLTOOL = @DLLTOOL@ | |
87 | 88 | DSYMUTIL = @DSYMUTIL@ |
88 | 89 | DUMPBIN = @DUMPBIN@ |
89 | 90 | ECHO_C = @ECHO_C@ |
134 | 135 | LT_REVISION = @LT_REVISION@ |
135 | 136 | MAINT = @MAINT@ |
136 | 137 | MAKEINFO = @MAKEINFO@ |
138 | MANIFEST_TOOL = @MANIFEST_TOOL@ | |
137 | 139 | MKDIR_P = @MKDIR_P@ |
138 | 140 | MKINSTALLDIRS = @MKINSTALLDIRS@ |
139 | 141 | MSGFMT = @MSGFMT@ |
177 | 179 | abs_srcdir = @abs_srcdir@ |
178 | 180 | abs_top_builddir = @abs_top_builddir@ |
179 | 181 | abs_top_srcdir = @abs_top_srcdir@ |
182 | ac_ct_AR = @ac_ct_AR@ | |
180 | 183 | ac_ct_CC = @ac_ct_CC@ |
181 | 184 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
182 | 185 | am__include = @am__include@ |
308 | 311 | @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-sections.txt \ |
309 | 312 | @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-overrides.txt |
310 | 313 | |
311 | @ENABLE_GTK_DOC_TRUE@DOC_STAMPS = scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \ | |
312 | @ENABLE_GTK_DOC_TRUE@ pdf-build.stamp \ | |
313 | @ENABLE_GTK_DOC_TRUE@ $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp \ | |
314 | @ENABLE_GTK_DOC_TRUE@ $(srcdir)/pdf.stamp | |
314 | @ENABLE_GTK_DOC_TRUE@DOC_STAMPS = setup-build.stamp scan-build.stamp tmpl-build.stamp sgml-build.stamp \ | |
315 | @ENABLE_GTK_DOC_TRUE@ html-build.stamp pdf-build.stamp \ | |
316 | @ENABLE_GTK_DOC_TRUE@ setup.stamp tmpl.stamp sgml.stamp html.stamp pdf.stamp | |
315 | 317 | |
316 | 318 | @ENABLE_GTK_DOC_TRUE@SCANOBJ_FILES = \ |
317 | 319 | @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE).args \ |
561 | 563 | |
562 | 564 | @ENABLE_GTK_DOC_TRUE@$(REPORT_FILES): sgml-build.stamp |
563 | 565 | |
566 | #### setup #### | |
567 | ||
568 | @ENABLE_GTK_DOC_TRUE@setup-build.stamp:: | |
569 | @ENABLE_GTK_DOC_TRUE@ -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ | |
570 | @ENABLE_GTK_DOC_TRUE@ cp -a $(abs_srcdir)/$(DOC_MAIN_SGML_FILE) $(abs_builddir)/; \ | |
571 | @ENABLE_GTK_DOC_TRUE@ cp -a $(abs_srcdir)/$(DOC_MODULE)* $(abs_builddir)/; \ | |
572 | @ENABLE_GTK_DOC_TRUE@ if test "x$(content_files)" != "x" ; then \ | |
573 | @ENABLE_GTK_DOC_TRUE@ for file in $(content_files) ; do \ | |
574 | @ENABLE_GTK_DOC_TRUE@ test -f $(abs_srcdir)/$$file || \ | |
575 | @ENABLE_GTK_DOC_TRUE@ cp -a $(abs_srcdir)/$$file $(abs_builddir)/; \ | |
576 | @ENABLE_GTK_DOC_TRUE@ done \ | |
577 | @ENABLE_GTK_DOC_TRUE@ fi \ | |
578 | @ENABLE_GTK_DOC_TRUE@ fi | |
579 | ||
580 | @ENABLE_GTK_DOC_TRUE@setup.stamp: setup-build.stamp | |
581 | @ENABLE_GTK_DOC_TRUE@ @true | |
582 | ||
564 | 583 | #### scan #### |
565 | 584 | |
566 | 585 | @ENABLE_GTK_DOC_TRUE@scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) |
567 | 586 | @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Scanning header files' |
568 | @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir) | |
569 | @ENABLE_GTK_DOC_TRUE@ @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \ | |
587 | @ENABLE_GTK_DOC_TRUE@ @_source_dir='' ; | |
588 | @ENABLE_GTK_DOC_TRUE@ for i in $(DOC_SOURCE_DIR) ; do \ | |
570 | 589 | @ENABLE_GTK_DOC_TRUE@ _source_dir="$${_source_dir} --source-dir=$$i" ; \ |
571 | @ENABLE_GTK_DOC_TRUE@ done ; \ | |
572 | @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && \ | |
573 | @ENABLE_GTK_DOC_TRUE@ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) | |
574 | @ENABLE_GTK_DOC_TRUE@ @if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \ | |
575 | @ENABLE_GTK_DOC_TRUE@ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \ | |
590 | @ENABLE_GTK_DOC_TRUE@ done ; \ | |
591 | @ENABLE_GTK_DOC_TRUE@ gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) | |
592 | @ENABLE_GTK_DOC_TRUE@ @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ | |
593 | @ENABLE_GTK_DOC_TRUE@ CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) ; \ | |
576 | 594 | @ENABLE_GTK_DOC_TRUE@ else \ |
577 | @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) ; \ | |
578 | 595 | @ENABLE_GTK_DOC_TRUE@ for i in $(SCANOBJ_FILES) ; do \ |
579 | 596 | @ENABLE_GTK_DOC_TRUE@ test -f $$i || touch $$i ; \ |
580 | 597 | @ENABLE_GTK_DOC_TRUE@ done \ |
588 | 605 | |
589 | 606 | @ENABLE_GTK_DOC_TRUE@tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt |
590 | 607 | @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Rebuilding template files' |
591 | @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir) | |
592 | @ENABLE_GTK_DOC_TRUE@ @cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) | |
608 | @ENABLE_GTK_DOC_TRUE@ @gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) | |
593 | 609 | @ENABLE_GTK_DOC_TRUE@ @touch tmpl-build.stamp |
594 | 610 | |
595 | 611 | @ENABLE_GTK_DOC_TRUE@tmpl.stamp: tmpl-build.stamp |
603 | 619 | @ENABLE_GTK_DOC_TRUE@sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files) |
604 | 620 | @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Building XML' |
605 | 621 | @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir) |
606 | @ENABLE_GTK_DOC_TRUE@ @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \ | |
622 | @ENABLE_GTK_DOC_TRUE@ @_source_dir='' ; \ | |
623 | @ENABLE_GTK_DOC_TRUE@ for i in $(DOC_SOURCE_DIR) ; do \ | |
607 | 624 | @ENABLE_GTK_DOC_TRUE@ _source_dir="$${_source_dir} --source-dir=$$i" ; \ |
608 | @ENABLE_GTK_DOC_TRUE@ done ; \ | |
609 | @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && \ | |
610 | @ENABLE_GTK_DOC_TRUE@ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) | |
625 | @ENABLE_GTK_DOC_TRUE@ done ; \ | |
626 | @ENABLE_GTK_DOC_TRUE@ gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) | |
611 | 627 | @ENABLE_GTK_DOC_TRUE@ @touch sgml-build.stamp |
612 | 628 | |
613 | 629 | @ENABLE_GTK_DOC_TRUE@sgml.stamp: sgml-build.stamp |
617 | 633 | |
618 | 634 | @ENABLE_GTK_DOC_TRUE@html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) |
619 | 635 | @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Building HTML' |
620 | @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir) | |
621 | @ENABLE_GTK_DOC_TRUE@ @rm -rf $(srcdir)/html | |
622 | @ENABLE_GTK_DOC_TRUE@ @mkdir $(srcdir)/html | |
636 | @ENABLE_GTK_DOC_TRUE@ @rm -rf html | |
637 | @ENABLE_GTK_DOC_TRUE@ @mkdir html | |
623 | 638 | @ENABLE_GTK_DOC_TRUE@ @mkhtml_options=""; \ |
624 | 639 | @ENABLE_GTK_DOC_TRUE@ gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ |
625 | 640 | @ENABLE_GTK_DOC_TRUE@ if test "$(?)" = "0"; then \ |
626 | @ENABLE_GTK_DOC_TRUE@ mkhtml_options=--path="$(srcdir)"; \ | |
641 | @ENABLE_GTK_DOC_TRUE@ mkhtml_options=--path="$(abs_srcdir)"; \ | |
627 | 642 | @ENABLE_GTK_DOC_TRUE@ fi; \ |
628 | @ENABLE_GTK_DOC_TRUE@ cd $(srcdir)/html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) | |
629 | @ENABLE_GTK_DOC_TRUE@ @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html ) | |
643 | @ENABLE_GTK_DOC_TRUE@ cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) | |
644 | @ENABLE_GTK_DOC_TRUE@ @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) $(abs_builddir)/html ) | |
630 | 645 | @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Fixing cross-references' |
631 | @ENABLE_GTK_DOC_TRUE@ @cd $(srcdir) && gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) | |
646 | @ENABLE_GTK_DOC_TRUE@ @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) | |
632 | 647 | @ENABLE_GTK_DOC_TRUE@ @touch html-build.stamp |
633 | 648 | |
634 | 649 | #### pdf #### |
635 | 650 | |
636 | 651 | @ENABLE_GTK_DOC_TRUE@pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) |
637 | 652 | @ENABLE_GTK_DOC_TRUE@ @echo 'gtk-doc: Building PDF' |
638 | @ENABLE_GTK_DOC_TRUE@ @-chmod -R u+w $(srcdir) | |
639 | @ENABLE_GTK_DOC_TRUE@ @rm -rf $(srcdir)/$(DOC_MODULE).pdf | |
653 | @ENABLE_GTK_DOC_TRUE@ @rm -rf $(DOC_MODULE).pdf | |
640 | 654 | @ENABLE_GTK_DOC_TRUE@ @mkpdf_imgdirs=""; \ |
641 | 655 | @ENABLE_GTK_DOC_TRUE@ if test "x$(HTML_IMAGES)" != "x"; then \ |
642 | 656 | @ENABLE_GTK_DOC_TRUE@ for img in $(HTML_IMAGES); do \ |
647 | 661 | @ENABLE_GTK_DOC_TRUE@ fi; \ |
648 | 662 | @ENABLE_GTK_DOC_TRUE@ done; \ |
649 | 663 | @ENABLE_GTK_DOC_TRUE@ fi; \ |
650 | @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) | |
664 | @ENABLE_GTK_DOC_TRUE@ gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) | |
651 | 665 | @ENABLE_GTK_DOC_TRUE@ @touch pdf-build.stamp |
652 | 666 | |
653 | 667 | ############## |
657 | 671 | @ENABLE_GTK_DOC_TRUE@ rm -rf .libs |
658 | 672 | |
659 | 673 | @ENABLE_GTK_DOC_TRUE@distclean-local: |
660 | @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && \ | |
661 | @ENABLE_GTK_DOC_TRUE@ rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \ | |
662 | @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt | |
674 | @ENABLE_GTK_DOC_TRUE@ rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \ | |
675 | @ENABLE_GTK_DOC_TRUE@ $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt | |
676 | @ENABLE_GTK_DOC_TRUE@ if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ | |
677 | @ENABLE_GTK_DOC_TRUE@ rm -f $(DOC_MAIN_SGML_FILE) $(DOC_MODULE)*; \ | |
678 | @ENABLE_GTK_DOC_TRUE@ fi | |
663 | 679 | |
664 | 680 | @ENABLE_GTK_DOC_TRUE@maintainer-clean-local: clean |
665 | @ENABLE_GTK_DOC_TRUE@ cd $(srcdir) && rm -rf xml html | |
681 | @ENABLE_GTK_DOC_TRUE@ rm -rf xml html | |
666 | 682 | |
667 | 683 | @ENABLE_GTK_DOC_TRUE@install-data-local: |
668 | 684 | @ENABLE_GTK_DOC_TRUE@ @installfiles=`echo $(srcdir)/html/*`; \ |
29 | 29 | $(DOC_MODULE)-sections.txt \ |
30 | 30 | $(DOC_MODULE)-overrides.txt |
31 | 31 | |
32 | DOC_STAMPS=scan-build.stamp tmpl-build.stamp sgml-build.stamp html-build.stamp \ | |
33 | pdf-build.stamp \ | |
34 | $(srcdir)/tmpl.stamp $(srcdir)/sgml.stamp $(srcdir)/html.stamp \ | |
35 | $(srcdir)/pdf.stamp | |
32 | DOC_STAMPS=setup-build.stamp scan-build.stamp tmpl-build.stamp sgml-build.stamp \ | |
33 | html-build.stamp pdf-build.stamp \ | |
34 | setup.stamp tmpl.stamp sgml.stamp html.stamp pdf.stamp | |
36 | 35 | |
37 | 36 | SCANOBJ_FILES = \ |
38 | 37 | $(DOC_MODULE).args \ |
69 | 68 | |
70 | 69 | $(REPORT_FILES): sgml-build.stamp |
71 | 70 | |
71 | #### setup #### | |
72 | ||
73 | setup-build.stamp:: | |
74 | -@if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ | |
75 | cp -a $(abs_srcdir)/$(DOC_MAIN_SGML_FILE) $(abs_builddir)/; \ | |
76 | cp -a $(abs_srcdir)/$(DOC_MODULE)* $(abs_builddir)/; \ | |
77 | if test "x$(content_files)" != "x" ; then \ | |
78 | for file in $(content_files) ; do \ | |
79 | test -f $(abs_srcdir)/$$file || \ | |
80 | cp -a $(abs_srcdir)/$$file $(abs_builddir)/; \ | |
81 | done \ | |
82 | fi \ | |
83 | fi | |
84 | ||
85 | ||
86 | setup.stamp: setup-build.stamp | |
87 | @true | |
88 | ||
89 | ||
72 | 90 | #### scan #### |
73 | 91 | |
74 | 92 | scan-build.stamp: $(HFILE_GLOB) $(CFILE_GLOB) |
75 | 93 | @echo 'gtk-doc: Scanning header files' |
76 | @-chmod -R u+w $(srcdir) | |
77 | @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \ | |
94 | @_source_dir='' ; | |
95 | for i in $(DOC_SOURCE_DIR) ; do \ | |
78 | 96 | _source_dir="$${_source_dir} --source-dir=$$i" ; \ |
79 | done ; \ | |
80 | cd $(srcdir) && \ | |
81 | gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) | |
82 | @if grep -l '^..*$$' $(srcdir)/$(DOC_MODULE).types > /dev/null 2>&1 ; then \ | |
83 | CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) --output-dir=$(srcdir) ; \ | |
97 | done ; \ | |
98 | gtkdoc-scan --module=$(DOC_MODULE) --ignore-headers="$(IGNORE_HFILES)" $${_source_dir} $(SCAN_OPTIONS) $(EXTRA_HFILES) | |
99 | @if grep -l '^..*$$' $(DOC_MODULE).types > /dev/null 2>&1 ; then \ | |
100 | CC="$(GTKDOC_CC)" LD="$(GTKDOC_LD)" RUN="$(GTKDOC_RUN)" CFLAGS="$(GTKDOC_CFLAGS) $(CFLAGS)" LDFLAGS="$(GTKDOC_LIBS) $(LDFLAGS)" gtkdoc-scangobj $(SCANGOBJ_OPTIONS) --module=$(DOC_MODULE) ; \ | |
84 | 101 | else \ |
85 | cd $(srcdir) ; \ | |
86 | 102 | for i in $(SCANOBJ_FILES) ; do \ |
87 | 103 | test -f $$i || touch $$i ; \ |
88 | 104 | done \ |
96 | 112 | |
97 | 113 | tmpl-build.stamp: $(DOC_MODULE)-decl.txt $(SCANOBJ_FILES) $(DOC_MODULE)-sections.txt $(DOC_MODULE)-overrides.txt |
98 | 114 | @echo 'gtk-doc: Rebuilding template files' |
99 | @-chmod -R u+w $(srcdir) | |
100 | @cd $(srcdir) && gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) | |
115 | @gtkdoc-mktmpl --module=$(DOC_MODULE) $(MKTMPL_OPTIONS) | |
101 | 116 | @touch tmpl-build.stamp |
102 | 117 | |
103 | 118 | tmpl.stamp: tmpl-build.stamp |
111 | 126 | sgml-build.stamp: tmpl.stamp $(DOC_MODULE)-sections.txt $(srcdir)/tmpl/*.sgml $(expand_content_files) |
112 | 127 | @echo 'gtk-doc: Building XML' |
113 | 128 | @-chmod -R u+w $(srcdir) |
114 | @_source_dir='' ; for i in $(DOC_SOURCE_DIR) ; do \ | |
129 | @_source_dir='' ; \ | |
130 | for i in $(DOC_SOURCE_DIR) ; do \ | |
115 | 131 | _source_dir="$${_source_dir} --source-dir=$$i" ; \ |
116 | done ; \ | |
117 | cd $(srcdir) && \ | |
118 | gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) | |
132 | done ; \ | |
133 | gtkdoc-mkdb --module=$(DOC_MODULE) --output-format=xml --expand-content-files="$(expand_content_files)" --main-sgml-file=$(DOC_MAIN_SGML_FILE) $${_source_dir} $(MKDB_OPTIONS) | |
119 | 134 | @touch sgml-build.stamp |
120 | 135 | |
121 | 136 | sgml.stamp: sgml-build.stamp |
125 | 140 | |
126 | 141 | html-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) |
127 | 142 | @echo 'gtk-doc: Building HTML' |
128 | @-chmod -R u+w $(srcdir) | |
129 | @rm -rf $(srcdir)/html | |
130 | @mkdir $(srcdir)/html | |
143 | @rm -rf html | |
144 | @mkdir html | |
131 | 145 | @mkhtml_options=""; \ |
132 | 146 | gtkdoc-mkhtml 2>&1 --help | grep >/dev/null "\-\-path"; \ |
133 | 147 | if test "$(?)" = "0"; then \ |
134 | mkhtml_options=--path="$(srcdir)"; \ | |
148 | mkhtml_options=--path="$(abs_srcdir)"; \ | |
135 | 149 | fi; \ |
136 | cd $(srcdir)/html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) | |
137 | @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) html ) | |
150 | cd html && gtkdoc-mkhtml $$mkhtml_options $(MKHTML_OPTIONS) $(DOC_MODULE) ../$(DOC_MAIN_SGML_FILE) | |
151 | @test "x$(HTML_IMAGES)" = "x" || ( cd $(srcdir) && cp $(HTML_IMAGES) $(abs_builddir)/html ) | |
138 | 152 | @echo 'gtk-doc: Fixing cross-references' |
139 | @cd $(srcdir) && gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) | |
153 | @gtkdoc-fixxref --module=$(DOC_MODULE) --module-dir=html --html-dir=$(HTML_DIR) $(FIXXREF_OPTIONS) | |
140 | 154 | @touch html-build.stamp |
141 | 155 | |
142 | 156 | #### pdf #### |
143 | 157 | |
144 | 158 | pdf-build.stamp: sgml.stamp $(DOC_MAIN_SGML_FILE) $(content_files) |
145 | 159 | @echo 'gtk-doc: Building PDF' |
146 | @-chmod -R u+w $(srcdir) | |
147 | @rm -rf $(srcdir)/$(DOC_MODULE).pdf | |
160 | @rm -rf $(DOC_MODULE).pdf | |
148 | 161 | @mkpdf_imgdirs=""; \ |
149 | 162 | if test "x$(HTML_IMAGES)" != "x"; then \ |
150 | 163 | for img in $(HTML_IMAGES); do \ |
155 | 168 | fi; \ |
156 | 169 | done; \ |
157 | 170 | fi; \ |
158 | cd $(srcdir) && gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) | |
171 | gtkdoc-mkpdf --path="$(abs_srcdir)" $$mkpdf_imgdirs $(DOC_MODULE) $(DOC_MAIN_SGML_FILE) $(MKPDF_OPTIONS) | |
159 | 172 | @touch pdf-build.stamp |
160 | 173 | |
161 | 174 | ############## |
165 | 178 | rm -rf .libs |
166 | 179 | |
167 | 180 | distclean-local: |
168 | cd $(srcdir) && \ | |
169 | rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \ | |
170 | $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt | |
181 | rm -rf xml $(REPORT_FILES) $(DOC_MODULE).pdf \ | |
182 | $(DOC_MODULE)-decl-list.txt $(DOC_MODULE)-decl.txt | |
183 | if test "$(abs_srcdir)" != "$(abs_builddir)" ; then \ | |
184 | rm -f $(DOC_MAIN_SGML_FILE) $(DOC_MODULE)*; \ | |
185 | fi | |
171 | 186 | |
172 | 187 | maintainer-clean-local: clean |
173 | cd $(srcdir) && rm -rf xml html | |
188 | rm -rf xml html | |
174 | 189 | |
175 | 190 | install-data-local: |
176 | 191 | @installfiles=`echo $(srcdir)/html/*`; \ |
0 | # Generated from ltmain.m4sh. | |
1 | ||
2 | # libtool (GNU libtool) 2.2.10 | |
0 | ||
1 | # libtool (GNU libtool) 2.4 | |
3 | 2 | # Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
4 | 3 | |
5 | 4 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, |
69 | 68 | # compiler: $LTCC |
70 | 69 | # compiler flags: $LTCFLAGS |
71 | 70 | # linker: $LD (gnu? $with_gnu_ld) |
72 | # $progname: (GNU libtool) 2.2.10 | |
71 | # $progname: (GNU libtool) 2.4 | |
73 | 72 | # automake: $automake_version |
74 | 73 | # autoconf: $autoconf_version |
75 | 74 | # |
76 | 75 | # Report bugs to <bug-libtool@gnu.org>. |
76 | # GNU libtool home page: <http://www.gnu.org/software/libtool/>. | |
77 | # General help using GNU software: <http://www.gnu.org/gethelp/>. | |
77 | 78 | |
78 | 79 | PROGRAM=libtool |
79 | 80 | PACKAGE=libtool |
80 | VERSION=2.2.10 | |
81 | VERSION=2.4 | |
81 | 82 | TIMESTAMP="" |
82 | package_revision=1.3175 | |
83 | package_revision=1.3293 | |
83 | 84 | |
84 | 85 | # Be Bourne compatible |
85 | 86 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
162 | 163 | dirname="s,/[^/]*$,," |
163 | 164 | basename="s,^.*/,," |
164 | 165 | |
166 | # func_dirname file append nondir_replacement | |
167 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
168 | # otherwise set result to NONDIR_REPLACEMENT. | |
169 | func_dirname () | |
170 | { | |
171 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
172 | if test "X$func_dirname_result" = "X${1}"; then | |
173 | func_dirname_result="${3}" | |
174 | else | |
175 | func_dirname_result="$func_dirname_result${2}" | |
176 | fi | |
177 | } # func_dirname may be replaced by extended shell implementation | |
178 | ||
179 | ||
180 | # func_basename file | |
181 | func_basename () | |
182 | { | |
183 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
184 | } # func_basename may be replaced by extended shell implementation | |
185 | ||
186 | ||
165 | 187 | # func_dirname_and_basename file append nondir_replacement |
166 | 188 | # perform func_basename and func_dirname in a single function |
167 | 189 | # call: |
176 | 198 | # those functions but instead duplicate the functionality here. |
177 | 199 | func_dirname_and_basename () |
178 | 200 | { |
179 | # Extract subdirectory from the argument. | |
180 | func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` | |
181 | if test "X$func_dirname_result" = "X${1}"; then | |
182 | func_dirname_result="${3}" | |
183 | else | |
184 | func_dirname_result="$func_dirname_result${2}" | |
185 | fi | |
186 | func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` | |
187 | } | |
188 | ||
189 | # Generated shell functions inserted here. | |
201 | # Extract subdirectory from the argument. | |
202 | func_dirname_result=`$ECHO "${1}" | $SED -e "$dirname"` | |
203 | if test "X$func_dirname_result" = "X${1}"; then | |
204 | func_dirname_result="${3}" | |
205 | else | |
206 | func_dirname_result="$func_dirname_result${2}" | |
207 | fi | |
208 | func_basename_result=`$ECHO "${1}" | $SED -e "$basename"` | |
209 | } # func_dirname_and_basename may be replaced by extended shell implementation | |
210 | ||
211 | ||
212 | # func_stripname prefix suffix name | |
213 | # strip PREFIX and SUFFIX off of NAME. | |
214 | # PREFIX and SUFFIX must not contain globbing or regex special | |
215 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
216 | # dot (in which case that matches only a dot). | |
217 | # func_strip_suffix prefix name | |
218 | func_stripname () | |
219 | { | |
220 | case ${2} in | |
221 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
222 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
223 | esac | |
224 | } # func_stripname may be replaced by extended shell implementation | |
225 | ||
190 | 226 | |
191 | 227 | # These SED scripts presuppose an absolute path with a trailing slash. |
192 | 228 | pathcar='s,^/\([^/]*\).*$,\1,' |
369 | 405 | # Same as above, but do not quote variable references. |
370 | 406 | double_quote_subst='s/\(["`\\]\)/\\\1/g' |
371 | 407 | |
408 | # Sed substitution that turns a string into a regex matching for the | |
409 | # string literally. | |
410 | sed_make_literal_regex='s,[].[^$\\*\/],\\&,g' | |
411 | ||
412 | # Sed substitution that converts a w32 file name or path | |
413 | # which contains forward slashes, into one that contains | |
414 | # (escaped) backslashes. A very naive implementation. | |
415 | lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | |
416 | ||
372 | 417 | # Re-`\' parameter expansions in output of double_quote_subst that were |
373 | 418 | # `\'-ed in input to the same. If an odd number of `\' preceded a '$' |
374 | 419 | # in input to double_quote_subst, that '$' was protected from expansion. |
397 | 442 | # name if it has been set yet. |
398 | 443 | func_echo () |
399 | 444 | { |
400 | $ECHO "$progname${mode+: }$mode: $*" | |
445 | $ECHO "$progname: ${opt_mode+$opt_mode: }$*" | |
401 | 446 | } |
402 | 447 | |
403 | 448 | # func_verbose arg... |
423 | 468 | # Echo program name prefixed message to standard error. |
424 | 469 | func_error () |
425 | 470 | { |
426 | $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2 | |
471 | $ECHO "$progname: ${opt_mode+$opt_mode: }"${1+"$@"} 1>&2 | |
427 | 472 | } |
428 | 473 | |
429 | 474 | # func_warning arg... |
430 | 475 | # Echo program name prefixed warning message to standard error. |
431 | 476 | func_warning () |
432 | 477 | { |
433 | $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2 | |
478 | $opt_warning && $ECHO "$progname: ${opt_mode+$opt_mode: }warning: "${1+"$@"} 1>&2 | |
434 | 479 | |
435 | 480 | # bash bug again: |
436 | 481 | : |
649 | 694 | fi |
650 | 695 | } |
651 | 696 | |
697 | # func_tr_sh | |
698 | # Turn $1 into a string suitable for a shell variable name. | |
699 | # Result is stored in $func_tr_sh_result. All characters | |
700 | # not in the set a-zA-Z0-9_ are replaced with '_'. Further, | |
701 | # if $1 begins with a digit, a '_' is prepended as well. | |
702 | func_tr_sh () | |
703 | { | |
704 | case $1 in | |
705 | [0-9]* | *[!a-zA-Z0-9_]*) | |
706 | func_tr_sh_result=`$ECHO "$1" | $SED 's/^\([0-9]\)/_\1/; s/[^a-zA-Z0-9_]/_/g'` | |
707 | ;; | |
708 | * ) | |
709 | func_tr_sh_result=$1 | |
710 | ;; | |
711 | esac | |
712 | } | |
713 | ||
652 | 714 | |
653 | 715 | # func_version |
654 | 716 | # Echo version message to standard output and exit. |
655 | 717 | func_version () |
656 | 718 | { |
719 | $opt_debug | |
720 | ||
657 | 721 | $SED -n '/(C)/!b go |
658 | 722 | :more |
659 | 723 | /\./!{ |
675 | 739 | # Echo short help message to standard output and exit. |
676 | 740 | func_usage () |
677 | 741 | { |
742 | $opt_debug | |
743 | ||
678 | 744 | $SED -n '/^# Usage:/,/^# *.*--help/ { |
679 | 745 | s/^# // |
680 | 746 | s/^# *$// |
691 | 757 | # unless 'noexit' is passed as argument. |
692 | 758 | func_help () |
693 | 759 | { |
760 | $opt_debug | |
761 | ||
694 | 762 | $SED -n '/^# Usage:/,/# Report bugs to/ { |
763 | ||
695 | 764 | s/^# // |
696 | 765 | s/^# *$// |
697 | 766 | s*\$progname*'$progname'* |
704 | 773 | s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/ |
705 | 774 | s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/ |
706 | 775 | p |
707 | }' < "$progpath" | |
776 | d | |
777 | } | |
778 | /^# .* home page:/b print | |
779 | /^# General help using/b print | |
780 | ' < "$progpath" | |
708 | 781 | ret=$? |
709 | 782 | if test -z "$1"; then |
710 | 783 | exit $ret |
716 | 789 | # exit_cmd. |
717 | 790 | func_missing_arg () |
718 | 791 | { |
792 | $opt_debug | |
793 | ||
719 | 794 | func_error "missing argument for $1." |
720 | 795 | exit_cmd=exit |
721 | 796 | } |
722 | 797 | |
798 | ||
799 | # func_split_short_opt shortopt | |
800 | # Set func_split_short_opt_name and func_split_short_opt_arg shell | |
801 | # variables after splitting SHORTOPT after the 2nd character. | |
802 | func_split_short_opt () | |
803 | { | |
804 | my_sed_short_opt='1s/^\(..\).*$/\1/;q' | |
805 | my_sed_short_rest='1s/^..\(.*\)$/\1/;q' | |
806 | ||
807 | func_split_short_opt_name=`$ECHO "$1" | $SED "$my_sed_short_opt"` | |
808 | func_split_short_opt_arg=`$ECHO "$1" | $SED "$my_sed_short_rest"` | |
809 | } # func_split_short_opt may be replaced by extended shell implementation | |
810 | ||
811 | ||
812 | # func_split_long_opt longopt | |
813 | # Set func_split_long_opt_name and func_split_long_opt_arg shell | |
814 | # variables after splitting LONGOPT at the `=' sign. | |
815 | func_split_long_opt () | |
816 | { | |
817 | my_sed_long_opt='1s/^\(--[^=]*\)=.*/\1/;q' | |
818 | my_sed_long_arg='1s/^--[^=]*=//' | |
819 | ||
820 | func_split_long_opt_name=`$ECHO "$1" | $SED "$my_sed_long_opt"` | |
821 | func_split_long_opt_arg=`$ECHO "$1" | $SED "$my_sed_long_arg"` | |
822 | } # func_split_long_opt may be replaced by extended shell implementation | |
823 | ||
723 | 824 | exit_cmd=: |
724 | ||
725 | 825 | |
726 | 826 | |
727 | 827 | |
731 | 831 | magic_exe="%%%MAGIC EXE variable%%%" |
732 | 832 | |
733 | 833 | # Global variables. |
734 | # $mode is unset | |
735 | 834 | nonopt= |
736 | execute_dlfiles= | |
737 | 835 | preserve_args= |
738 | 836 | lo2o="s/\\.lo\$/.${objext}/" |
739 | 837 | o2lo="s/\\.${objext}\$/.lo/" |
740 | 838 | extracted_archives= |
741 | 839 | extracted_serial=0 |
742 | 840 | |
743 | opt_dry_run=false | |
744 | opt_duplicate_deps=false | |
745 | opt_silent=false | |
746 | opt_debug=: | |
747 | ||
748 | 841 | # If this variable is set in any of the actions, the command in it |
749 | 842 | # will be execed at the end. This prevents here-documents from being |
750 | 843 | # left over by shells. |
751 | 844 | exec_cmd= |
845 | ||
846 | # func_append var value | |
847 | # Append VALUE to the end of shell variable VAR. | |
848 | func_append () | |
849 | { | |
850 | eval "${1}=\$${1}\${2}" | |
851 | } # func_append may be replaced by extended shell implementation | |
852 | ||
853 | # func_append_quoted var value | |
854 | # Quote VALUE and append to the end of shell variable VAR, separated | |
855 | # by a space. | |
856 | func_append_quoted () | |
857 | { | |
858 | func_quote_for_eval "${2}" | |
859 | eval "${1}=\$${1}\\ \$func_quote_for_eval_result" | |
860 | } # func_append_quoted may be replaced by extended shell implementation | |
861 | ||
862 | ||
863 | # func_arith arithmetic-term... | |
864 | func_arith () | |
865 | { | |
866 | func_arith_result=`expr "${@}"` | |
867 | } # func_arith may be replaced by extended shell implementation | |
868 | ||
869 | ||
870 | # func_len string | |
871 | # STRING may not start with a hyphen. | |
872 | func_len () | |
873 | { | |
874 | func_len_result=`expr "${1}" : ".*" 2>/dev/null || echo $max_cmd_len` | |
875 | } # func_len may be replaced by extended shell implementation | |
876 | ||
877 | ||
878 | # func_lo2o object | |
879 | func_lo2o () | |
880 | { | |
881 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
882 | } # func_lo2o may be replaced by extended shell implementation | |
883 | ||
884 | ||
885 | # func_xform libobj-or-source | |
886 | func_xform () | |
887 | { | |
888 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
889 | } # func_xform may be replaced by extended shell implementation | |
890 | ||
752 | 891 | |
753 | 892 | # func_fatal_configuration arg... |
754 | 893 | # Echo program name prefixed message to standard error, followed by |
837 | 976 | fi |
838 | 977 | ;; |
839 | 978 | esac |
840 | } | |
841 | ||
842 | # Parse options once, thoroughly. This comes as soon as possible in | |
843 | # the script to make things like `libtool --version' happen quickly. | |
844 | { | |
845 | ||
846 | # Shorthand for --mode=foo, only valid as the first argument | |
847 | case $1 in | |
848 | clean|clea|cle|cl) | |
849 | shift; set dummy --mode clean ${1+"$@"}; shift | |
850 | ;; | |
851 | compile|compil|compi|comp|com|co|c) | |
852 | shift; set dummy --mode compile ${1+"$@"}; shift | |
853 | ;; | |
854 | execute|execut|execu|exec|exe|ex|e) | |
855 | shift; set dummy --mode execute ${1+"$@"}; shift | |
856 | ;; | |
857 | finish|finis|fini|fin|fi|f) | |
858 | shift; set dummy --mode finish ${1+"$@"}; shift | |
859 | ;; | |
860 | install|instal|insta|inst|ins|in|i) | |
861 | shift; set dummy --mode install ${1+"$@"}; shift | |
862 | ;; | |
863 | link|lin|li|l) | |
864 | shift; set dummy --mode link ${1+"$@"}; shift | |
865 | ;; | |
866 | uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) | |
867 | shift; set dummy --mode uninstall ${1+"$@"}; shift | |
868 | ;; | |
869 | esac | |
870 | ||
871 | # Parse non-mode specific arguments: | |
872 | while test "$#" -gt 0; do | |
873 | opt="$1" | |
874 | shift | |
875 | ||
876 | case $opt in | |
877 | --config) func_config ;; | |
878 | ||
879 | --debug) preserve_args="$preserve_args $opt" | |
880 | func_echo "enabling shell trace mode" | |
881 | opt_debug='set -x' | |
882 | $opt_debug | |
883 | ;; | |
884 | ||
885 | -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break | |
886 | execute_dlfiles="$execute_dlfiles $1" | |
887 | shift | |
888 | ;; | |
889 | ||
890 | --dry-run | -n) opt_dry_run=: ;; | |
891 | --features) func_features ;; | |
892 | --finish) mode="finish" ;; | |
893 | ||
894 | --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break | |
895 | case $1 in | |
896 | # Valid mode arguments: | |
897 | clean) ;; | |
898 | compile) ;; | |
899 | execute) ;; | |
900 | finish) ;; | |
901 | install) ;; | |
902 | link) ;; | |
903 | relink) ;; | |
904 | uninstall) ;; | |
905 | ||
906 | # Catch anything else as an error | |
907 | *) func_error "invalid argument for $opt" | |
908 | exit_cmd=exit | |
909 | break | |
910 | ;; | |
911 | esac | |
912 | ||
913 | mode="$1" | |
914 | shift | |
915 | ;; | |
916 | ||
917 | --preserve-dup-deps) | |
918 | opt_duplicate_deps=: ;; | |
919 | ||
920 | --quiet|--silent) preserve_args="$preserve_args $opt" | |
921 | opt_silent=: | |
922 | opt_verbose=false | |
923 | ;; | |
924 | ||
925 | --no-quiet|--no-silent) | |
926 | preserve_args="$preserve_args $opt" | |
927 | opt_silent=false | |
928 | ;; | |
929 | ||
930 | --verbose| -v) preserve_args="$preserve_args $opt" | |
931 | opt_silent=false | |
932 | opt_verbose=: | |
933 | ;; | |
934 | ||
935 | --no-verbose) preserve_args="$preserve_args $opt" | |
936 | opt_verbose=false | |
937 | ;; | |
938 | ||
939 | --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break | |
940 | preserve_args="$preserve_args $opt $1" | |
941 | func_enable_tag "$1" # tagname is set here | |
942 | shift | |
943 | ;; | |
944 | ||
945 | # Separate optargs to long options: | |
946 | -dlopen=*|--mode=*|--tag=*) | |
947 | func_opt_split "$opt" | |
948 | set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"} | |
949 | shift | |
950 | ;; | |
951 | ||
952 | -\?|-h) func_usage ;; | |
953 | --help) opt_help=: ;; | |
954 | --help-all) opt_help=': help-all' ;; | |
955 | --version) func_version ;; | |
956 | ||
957 | -*) func_fatal_help "unrecognized option \`$opt'" ;; | |
958 | ||
959 | *) nonopt="$opt" | |
960 | break | |
961 | ;; | |
962 | esac | |
963 | done | |
964 | ||
965 | ||
966 | case $host in | |
967 | *cygwin* | *mingw* | *pw32* | *cegcc*) | |
968 | # don't eliminate duplications in $postdeps and $predeps | |
969 | opt_duplicate_compiler_generated_deps=: | |
970 | ;; | |
971 | *) | |
972 | opt_duplicate_compiler_generated_deps=$opt_duplicate_deps | |
973 | ;; | |
974 | esac | |
975 | ||
976 | # Having warned about all mis-specified options, bail out if | |
977 | # anything was wrong. | |
978 | $exit_cmd $EXIT_FAILURE | |
979 | 979 | } |
980 | 980 | |
981 | 981 | # func_check_version_match |
1014 | 1014 | } |
1015 | 1015 | |
1016 | 1016 | |
1017 | # Shorthand for --mode=foo, only valid as the first argument | |
1018 | case $1 in | |
1019 | clean|clea|cle|cl) | |
1020 | shift; set dummy --mode clean ${1+"$@"}; shift | |
1021 | ;; | |
1022 | compile|compil|compi|comp|com|co|c) | |
1023 | shift; set dummy --mode compile ${1+"$@"}; shift | |
1024 | ;; | |
1025 | execute|execut|execu|exec|exe|ex|e) | |
1026 | shift; set dummy --mode execute ${1+"$@"}; shift | |
1027 | ;; | |
1028 | finish|finis|fini|fin|fi|f) | |
1029 | shift; set dummy --mode finish ${1+"$@"}; shift | |
1030 | ;; | |
1031 | install|instal|insta|inst|ins|in|i) | |
1032 | shift; set dummy --mode install ${1+"$@"}; shift | |
1033 | ;; | |
1034 | link|lin|li|l) | |
1035 | shift; set dummy --mode link ${1+"$@"}; shift | |
1036 | ;; | |
1037 | uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) | |
1038 | shift; set dummy --mode uninstall ${1+"$@"}; shift | |
1039 | ;; | |
1040 | esac | |
1041 | ||
1042 | ||
1043 | ||
1044 | # Option defaults: | |
1045 | opt_debug=: | |
1046 | opt_dry_run=false | |
1047 | opt_config=false | |
1048 | opt_preserve_dup_deps=false | |
1049 | opt_features=false | |
1050 | opt_finish=false | |
1051 | opt_help=false | |
1052 | opt_help_all=false | |
1053 | opt_silent=: | |
1054 | opt_verbose=: | |
1055 | opt_silent=false | |
1056 | opt_verbose=false | |
1057 | ||
1058 | ||
1059 | # Parse options once, thoroughly. This comes as soon as possible in the | |
1060 | # script to make things like `--version' happen as quickly as we can. | |
1061 | { | |
1062 | # this just eases exit handling | |
1063 | while test $# -gt 0; do | |
1064 | opt="$1" | |
1065 | shift | |
1066 | case $opt in | |
1067 | --debug|-x) opt_debug='set -x' | |
1068 | func_echo "enabling shell trace mode" | |
1069 | $opt_debug | |
1070 | ;; | |
1071 | --dry-run|--dryrun|-n) | |
1072 | opt_dry_run=: | |
1073 | ;; | |
1074 | --config) | |
1075 | opt_config=: | |
1076 | func_config | |
1077 | ;; | |
1078 | --dlopen|-dlopen) | |
1079 | optarg="$1" | |
1080 | opt_dlopen="${opt_dlopen+$opt_dlopen | |
1081 | }$optarg" | |
1082 | shift | |
1083 | ;; | |
1084 | --preserve-dup-deps) | |
1085 | opt_preserve_dup_deps=: | |
1086 | ;; | |
1087 | --features) | |
1088 | opt_features=: | |
1089 | func_features | |
1090 | ;; | |
1091 | --finish) | |
1092 | opt_finish=: | |
1093 | set dummy --mode finish ${1+"$@"}; shift | |
1094 | ;; | |
1095 | --help) | |
1096 | opt_help=: | |
1097 | ;; | |
1098 | --help-all) | |
1099 | opt_help_all=: | |
1100 | opt_help=': help-all' | |
1101 | ;; | |
1102 | --mode) | |
1103 | test $# = 0 && func_missing_arg $opt && break | |
1104 | optarg="$1" | |
1105 | opt_mode="$optarg" | |
1106 | case $optarg in | |
1107 | # Valid mode arguments: | |
1108 | clean|compile|execute|finish|install|link|relink|uninstall) ;; | |
1109 | ||
1110 | # Catch anything else as an error | |
1111 | *) func_error "invalid argument for $opt" | |
1112 | exit_cmd=exit | |
1113 | break | |
1114 | ;; | |
1115 | esac | |
1116 | shift | |
1117 | ;; | |
1118 | --no-silent|--no-quiet) | |
1119 | opt_silent=false | |
1120 | func_append preserve_args " $opt" | |
1121 | ;; | |
1122 | --no-verbose) | |
1123 | opt_verbose=false | |
1124 | func_append preserve_args " $opt" | |
1125 | ;; | |
1126 | --silent|--quiet) | |
1127 | opt_silent=: | |
1128 | func_append preserve_args " $opt" | |
1129 | opt_verbose=false | |
1130 | ;; | |
1131 | --verbose|-v) | |
1132 | opt_verbose=: | |
1133 | func_append preserve_args " $opt" | |
1134 | opt_silent=false | |
1135 | ;; | |
1136 | --tag) | |
1137 | test $# = 0 && func_missing_arg $opt && break | |
1138 | optarg="$1" | |
1139 | opt_tag="$optarg" | |
1140 | func_append preserve_args " $opt $optarg" | |
1141 | func_enable_tag "$optarg" | |
1142 | shift | |
1143 | ;; | |
1144 | ||
1145 | -\?|-h) func_usage ;; | |
1146 | --help) func_help ;; | |
1147 | --version) func_version ;; | |
1148 | ||
1149 | # Separate optargs to long options: | |
1150 | --*=*) | |
1151 | func_split_long_opt "$opt" | |
1152 | set dummy "$func_split_long_opt_name" "$func_split_long_opt_arg" ${1+"$@"} | |
1153 | shift | |
1154 | ;; | |
1155 | ||
1156 | # Separate non-argument short options: | |
1157 | -\?*|-h*|-n*|-v*) | |
1158 | func_split_short_opt "$opt" | |
1159 | set dummy "$func_split_short_opt_name" "-$func_split_short_opt_arg" ${1+"$@"} | |
1160 | shift | |
1161 | ;; | |
1162 | ||
1163 | --) break ;; | |
1164 | -*) func_fatal_help "unrecognized option \`$opt'" ;; | |
1165 | *) set dummy "$opt" ${1+"$@"}; shift; break ;; | |
1166 | esac | |
1167 | done | |
1168 | ||
1169 | # Validate options: | |
1170 | ||
1171 | # save first non-option argument | |
1172 | if test "$#" -gt 0; then | |
1173 | nonopt="$opt" | |
1174 | shift | |
1175 | fi | |
1176 | ||
1177 | # preserve --debug | |
1178 | test "$opt_debug" = : || func_append preserve_args " --debug" | |
1179 | ||
1180 | case $host in | |
1181 | *cygwin* | *mingw* | *pw32* | *cegcc*) | |
1182 | # don't eliminate duplications in $postdeps and $predeps | |
1183 | opt_duplicate_compiler_generated_deps=: | |
1184 | ;; | |
1185 | *) | |
1186 | opt_duplicate_compiler_generated_deps=$opt_preserve_dup_deps | |
1187 | ;; | |
1188 | esac | |
1189 | ||
1190 | $opt_help || { | |
1191 | # Sanity checks first: | |
1192 | func_check_version_match | |
1193 | ||
1194 | if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | |
1195 | func_fatal_configuration "not configured to build any kind of library" | |
1196 | fi | |
1197 | ||
1198 | # Darwin sucks | |
1199 | eval std_shrext=\"$shrext_cmds\" | |
1200 | ||
1201 | # Only execute mode is allowed to have -dlopen flags. | |
1202 | if test -n "$opt_dlopen" && test "$opt_mode" != execute; then | |
1203 | func_error "unrecognized option \`-dlopen'" | |
1204 | $ECHO "$help" 1>&2 | |
1205 | exit $EXIT_FAILURE | |
1206 | fi | |
1207 | ||
1208 | # Change the help message to a mode-specific one. | |
1209 | generic_help="$help" | |
1210 | help="Try \`$progname --help --mode=$opt_mode' for more information." | |
1211 | } | |
1212 | ||
1213 | ||
1214 | # Bail if the options were screwed | |
1215 | $exit_cmd $EXIT_FAILURE | |
1216 | } | |
1217 | ||
1218 | ||
1219 | ||
1220 | ||
1017 | 1221 | ## ----------- ## |
1018 | 1222 | ## Main. ## |
1019 | 1223 | ## ----------- ## |
1020 | ||
1021 | $opt_help || { | |
1022 | # Sanity checks first: | |
1023 | func_check_version_match | |
1024 | ||
1025 | if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then | |
1026 | func_fatal_configuration "not configured to build any kind of library" | |
1027 | fi | |
1028 | ||
1029 | test -z "$mode" && func_fatal_error "error: you must specify a MODE." | |
1030 | ||
1031 | ||
1032 | # Darwin sucks | |
1033 | eval std_shrext=\"$shrext_cmds\" | |
1034 | ||
1035 | ||
1036 | # Only execute mode is allowed to have -dlopen flags. | |
1037 | if test -n "$execute_dlfiles" && test "$mode" != execute; then | |
1038 | func_error "unrecognized option \`-dlopen'" | |
1039 | $ECHO "$help" 1>&2 | |
1040 | exit $EXIT_FAILURE | |
1041 | fi | |
1042 | ||
1043 | # Change the help message to a mode-specific one. | |
1044 | generic_help="$help" | |
1045 | help="Try \`$progname --help --mode=$mode' for more information." | |
1046 | } | |
1047 | ||
1048 | 1224 | |
1049 | 1225 | # func_lalib_p file |
1050 | 1226 | # True iff FILE is a libtool `.la' library or `.lo' object file. |
1109 | 1285 | # temporary ltwrapper_script. |
1110 | 1286 | func_ltwrapper_scriptname () |
1111 | 1287 | { |
1112 | func_ltwrapper_scriptname_result="" | |
1113 | if func_ltwrapper_executable_p "$1"; then | |
1114 | func_dirname_and_basename "$1" "" "." | |
1115 | func_stripname '' '.exe' "$func_basename_result" | |
1116 | func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" | |
1117 | fi | |
1288 | func_dirname_and_basename "$1" "" "." | |
1289 | func_stripname '' '.exe' "$func_basename_result" | |
1290 | func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper" | |
1118 | 1291 | } |
1119 | 1292 | |
1120 | 1293 | # func_ltwrapper_p file |
1160 | 1333 | } |
1161 | 1334 | |
1162 | 1335 | |
1336 | # func_resolve_sysroot PATH | |
1337 | # Replace a leading = in PATH with a sysroot. Store the result into | |
1338 | # func_resolve_sysroot_result | |
1339 | func_resolve_sysroot () | |
1340 | { | |
1341 | func_resolve_sysroot_result=$1 | |
1342 | case $func_resolve_sysroot_result in | |
1343 | =*) | |
1344 | func_stripname '=' '' "$func_resolve_sysroot_result" | |
1345 | func_resolve_sysroot_result=$lt_sysroot$func_stripname_result | |
1346 | ;; | |
1347 | esac | |
1348 | } | |
1349 | ||
1350 | # func_replace_sysroot PATH | |
1351 | # If PATH begins with the sysroot, replace it with = and | |
1352 | # store the result into func_replace_sysroot_result. | |
1353 | func_replace_sysroot () | |
1354 | { | |
1355 | case "$lt_sysroot:$1" in | |
1356 | ?*:"$lt_sysroot"*) | |
1357 | func_stripname "$lt_sysroot" '' "$1" | |
1358 | func_replace_sysroot_result="=$func_stripname_result" | |
1359 | ;; | |
1360 | *) | |
1361 | # Including no sysroot. | |
1362 | func_replace_sysroot_result=$1 | |
1363 | ;; | |
1364 | esac | |
1365 | } | |
1366 | ||
1163 | 1367 | # func_infer_tag arg |
1164 | 1368 | # Infer tagged configuration to use if any are available and |
1165 | 1369 | # if one wasn't chosen via the "--tag" command line option. |
1172 | 1376 | if test -n "$available_tags" && test -z "$tagname"; then |
1173 | 1377 | CC_quoted= |
1174 | 1378 | for arg in $CC; do |
1175 | func_quote_for_eval "$arg" | |
1176 | CC_quoted="$CC_quoted $func_quote_for_eval_result" | |
1379 | func_append_quoted CC_quoted "$arg" | |
1177 | 1380 | done |
1178 | 1381 | CC_expanded=`func_echo_all $CC` |
1179 | 1382 | CC_quoted_expanded=`func_echo_all $CC_quoted` |
1192 | 1395 | CC_quoted= |
1193 | 1396 | for arg in $CC; do |
1194 | 1397 | # Double-quote args containing other shell metacharacters. |
1195 | func_quote_for_eval "$arg" | |
1196 | CC_quoted="$CC_quoted $func_quote_for_eval_result" | |
1398 | func_append_quoted CC_quoted "$arg" | |
1197 | 1399 | done |
1198 | 1400 | CC_expanded=`func_echo_all $CC` |
1199 | 1401 | CC_quoted_expanded=`func_echo_all $CC_quoted` |
1262 | 1464 | } |
1263 | 1465 | } |
1264 | 1466 | |
1467 | ||
1468 | ################################################## | |
1469 | # FILE NAME AND PATH CONVERSION HELPER FUNCTIONS # | |
1470 | ################################################## | |
1471 | ||
1472 | # func_convert_core_file_wine_to_w32 ARG | |
1473 | # Helper function used by file name conversion functions when $build is *nix, | |
1474 | # and $host is mingw, cygwin, or some other w32 environment. Relies on a | |
1475 | # correctly configured wine environment available, with the winepath program | |
1476 | # in $build's $PATH. | |
1477 | # | |
1478 | # ARG is the $build file name to be converted to w32 format. | |
1479 | # Result is available in $func_convert_core_file_wine_to_w32_result, and will | |
1480 | # be empty on error (or when ARG is empty) | |
1481 | func_convert_core_file_wine_to_w32 () | |
1482 | { | |
1483 | $opt_debug | |
1484 | func_convert_core_file_wine_to_w32_result="$1" | |
1485 | if test -n "$1"; then | |
1486 | # Unfortunately, winepath does not exit with a non-zero error code, so we | |
1487 | # are forced to check the contents of stdout. On the other hand, if the | |
1488 | # command is not found, the shell will set an exit code of 127 and print | |
1489 | # *an error message* to stdout. So we must check for both error code of | |
1490 | # zero AND non-empty stdout, which explains the odd construction: | |
1491 | func_convert_core_file_wine_to_w32_tmp=`winepath -w "$1" 2>/dev/null` | |
1492 | if test "$?" -eq 0 && test -n "${func_convert_core_file_wine_to_w32_tmp}"; then | |
1493 | func_convert_core_file_wine_to_w32_result=`$ECHO "$func_convert_core_file_wine_to_w32_tmp" | | |
1494 | $SED -e "$lt_sed_naive_backslashify"` | |
1495 | else | |
1496 | func_convert_core_file_wine_to_w32_result= | |
1497 | fi | |
1498 | fi | |
1499 | } | |
1500 | # end: func_convert_core_file_wine_to_w32 | |
1501 | ||
1502 | ||
1503 | # func_convert_core_path_wine_to_w32 ARG | |
1504 | # Helper function used by path conversion functions when $build is *nix, and | |
1505 | # $host is mingw, cygwin, or some other w32 environment. Relies on a correctly | |
1506 | # configured wine environment available, with the winepath program in $build's | |
1507 | # $PATH. Assumes ARG has no leading or trailing path separator characters. | |
1508 | # | |
1509 | # ARG is path to be converted from $build format to win32. | |
1510 | # Result is available in $func_convert_core_path_wine_to_w32_result. | |
1511 | # Unconvertible file (directory) names in ARG are skipped; if no directory names | |
1512 | # are convertible, then the result may be empty. | |
1513 | func_convert_core_path_wine_to_w32 () | |
1514 | { | |
1515 | $opt_debug | |
1516 | # unfortunately, winepath doesn't convert paths, only file names | |
1517 | func_convert_core_path_wine_to_w32_result="" | |
1518 | if test -n "$1"; then | |
1519 | oldIFS=$IFS | |
1520 | IFS=: | |
1521 | for func_convert_core_path_wine_to_w32_f in $1; do | |
1522 | IFS=$oldIFS | |
1523 | func_convert_core_file_wine_to_w32 "$func_convert_core_path_wine_to_w32_f" | |
1524 | if test -n "$func_convert_core_file_wine_to_w32_result" ; then | |
1525 | if test -z "$func_convert_core_path_wine_to_w32_result"; then | |
1526 | func_convert_core_path_wine_to_w32_result="$func_convert_core_file_wine_to_w32_result" | |
1527 | else | |
1528 | func_append func_convert_core_path_wine_to_w32_result ";$func_convert_core_file_wine_to_w32_result" | |
1529 | fi | |
1530 | fi | |
1531 | done | |
1532 | IFS=$oldIFS | |
1533 | fi | |
1534 | } | |
1535 | # end: func_convert_core_path_wine_to_w32 | |
1536 | ||
1537 | ||
1538 | # func_cygpath ARGS... | |
1539 | # Wrapper around calling the cygpath program via LT_CYGPATH. This is used when | |
1540 | # when (1) $build is *nix and Cygwin is hosted via a wine environment; or (2) | |
1541 | # $build is MSYS and $host is Cygwin, or (3) $build is Cygwin. In case (1) or | |
1542 | # (2), returns the Cygwin file name or path in func_cygpath_result (input | |
1543 | # file name or path is assumed to be in w32 format, as previously converted | |
1544 | # from $build's *nix or MSYS format). In case (3), returns the w32 file name | |
1545 | # or path in func_cygpath_result (input file name or path is assumed to be in | |
1546 | # Cygwin format). Returns an empty string on error. | |
1547 | # | |
1548 | # ARGS are passed to cygpath, with the last one being the file name or path to | |
1549 | # be converted. | |
1550 | # | |
1551 | # Specify the absolute *nix (or w32) name to cygpath in the LT_CYGPATH | |
1552 | # environment variable; do not put it in $PATH. | |
1553 | func_cygpath () | |
1554 | { | |
1555 | $opt_debug | |
1556 | if test -n "$LT_CYGPATH" && test -f "$LT_CYGPATH"; then | |
1557 | func_cygpath_result=`$LT_CYGPATH "$@" 2>/dev/null` | |
1558 | if test "$?" -ne 0; then | |
1559 | # on failure, ensure result is empty | |
1560 | func_cygpath_result= | |
1561 | fi | |
1562 | else | |
1563 | func_cygpath_result= | |
1564 | func_error "LT_CYGPATH is empty or specifies non-existent file: \`$LT_CYGPATH'" | |
1565 | fi | |
1566 | } | |
1567 | #end: func_cygpath | |
1568 | ||
1569 | ||
1570 | # func_convert_core_msys_to_w32 ARG | |
1571 | # Convert file name or path ARG from MSYS format to w32 format. Return | |
1572 | # result in func_convert_core_msys_to_w32_result. | |
1573 | func_convert_core_msys_to_w32 () | |
1574 | { | |
1575 | $opt_debug | |
1576 | # awkward: cmd appends spaces to result | |
1577 | func_convert_core_msys_to_w32_result=`( cmd //c echo "$1" ) 2>/dev/null | | |
1578 | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | |
1579 | } | |
1580 | #end: func_convert_core_msys_to_w32 | |
1581 | ||
1582 | ||
1583 | # func_convert_file_check ARG1 ARG2 | |
1584 | # Verify that ARG1 (a file name in $build format) was converted to $host | |
1585 | # format in ARG2. Otherwise, emit an error message, but continue (resetting | |
1586 | # func_to_host_file_result to ARG1). | |
1587 | func_convert_file_check () | |
1588 | { | |
1589 | $opt_debug | |
1590 | if test -z "$2" && test -n "$1" ; then | |
1591 | func_error "Could not determine host file name corresponding to" | |
1592 | func_error " \`$1'" | |
1593 | func_error "Continuing, but uninstalled executables may not work." | |
1594 | # Fallback: | |
1595 | func_to_host_file_result="$1" | |
1596 | fi | |
1597 | } | |
1598 | # end func_convert_file_check | |
1599 | ||
1600 | ||
1601 | # func_convert_path_check FROM_PATHSEP TO_PATHSEP FROM_PATH TO_PATH | |
1602 | # Verify that FROM_PATH (a path in $build format) was converted to $host | |
1603 | # format in TO_PATH. Otherwise, emit an error message, but continue, resetting | |
1604 | # func_to_host_file_result to a simplistic fallback value (see below). | |
1605 | func_convert_path_check () | |
1606 | { | |
1607 | $opt_debug | |
1608 | if test -z "$4" && test -n "$3"; then | |
1609 | func_error "Could not determine the host path corresponding to" | |
1610 | func_error " \`$3'" | |
1611 | func_error "Continuing, but uninstalled executables may not work." | |
1612 | # Fallback. This is a deliberately simplistic "conversion" and | |
1613 | # should not be "improved". See libtool.info. | |
1614 | if test "x$1" != "x$2"; then | |
1615 | lt_replace_pathsep_chars="s|$1|$2|g" | |
1616 | func_to_host_path_result=`echo "$3" | | |
1617 | $SED -e "$lt_replace_pathsep_chars"` | |
1618 | else | |
1619 | func_to_host_path_result="$3" | |
1620 | fi | |
1621 | fi | |
1622 | } | |
1623 | # end func_convert_path_check | |
1624 | ||
1625 | ||
1626 | # func_convert_path_front_back_pathsep FRONTPAT BACKPAT REPL ORIG | |
1627 | # Modifies func_to_host_path_result by prepending REPL if ORIG matches FRONTPAT | |
1628 | # and appending REPL if ORIG matches BACKPAT. | |
1629 | func_convert_path_front_back_pathsep () | |
1630 | { | |
1631 | $opt_debug | |
1632 | case $4 in | |
1633 | $1 ) func_to_host_path_result="$3$func_to_host_path_result" | |
1634 | ;; | |
1635 | esac | |
1636 | case $4 in | |
1637 | $2 ) func_append func_to_host_path_result "$3" | |
1638 | ;; | |
1639 | esac | |
1640 | } | |
1641 | # end func_convert_path_front_back_pathsep | |
1642 | ||
1643 | ||
1644 | ################################################## | |
1645 | # $build to $host FILE NAME CONVERSION FUNCTIONS # | |
1646 | ################################################## | |
1647 | # invoked via `$to_host_file_cmd ARG' | |
1648 | # | |
1649 | # In each case, ARG is the path to be converted from $build to $host format. | |
1650 | # Result will be available in $func_to_host_file_result. | |
1651 | ||
1652 | ||
1653 | # func_to_host_file ARG | |
1654 | # Converts the file name ARG from $build format to $host format. Return result | |
1655 | # in func_to_host_file_result. | |
1656 | func_to_host_file () | |
1657 | { | |
1658 | $opt_debug | |
1659 | $to_host_file_cmd "$1" | |
1660 | } | |
1661 | # end func_to_host_file | |
1662 | ||
1663 | ||
1664 | # func_to_tool_file ARG LAZY | |
1665 | # converts the file name ARG from $build format to toolchain format. Return | |
1666 | # result in func_to_tool_file_result. If the conversion in use is listed | |
1667 | # in (the comma separated) LAZY, no conversion takes place. | |
1668 | func_to_tool_file () | |
1669 | { | |
1670 | $opt_debug | |
1671 | case ,$2, in | |
1672 | *,"$to_tool_file_cmd",*) | |
1673 | func_to_tool_file_result=$1 | |
1674 | ;; | |
1675 | *) | |
1676 | $to_tool_file_cmd "$1" | |
1677 | func_to_tool_file_result=$func_to_host_file_result | |
1678 | ;; | |
1679 | esac | |
1680 | } | |
1681 | # end func_to_tool_file | |
1682 | ||
1683 | ||
1684 | # func_convert_file_noop ARG | |
1685 | # Copy ARG to func_to_host_file_result. | |
1686 | func_convert_file_noop () | |
1687 | { | |
1688 | func_to_host_file_result="$1" | |
1689 | } | |
1690 | # end func_convert_file_noop | |
1691 | ||
1692 | ||
1693 | # func_convert_file_msys_to_w32 ARG | |
1694 | # Convert file name ARG from (mingw) MSYS to (mingw) w32 format; automatic | |
1695 | # conversion to w32 is not available inside the cwrapper. Returns result in | |
1696 | # func_to_host_file_result. | |
1697 | func_convert_file_msys_to_w32 () | |
1698 | { | |
1699 | $opt_debug | |
1700 | func_to_host_file_result="$1" | |
1701 | if test -n "$1"; then | |
1702 | func_convert_core_msys_to_w32 "$1" | |
1703 | func_to_host_file_result="$func_convert_core_msys_to_w32_result" | |
1704 | fi | |
1705 | func_convert_file_check "$1" "$func_to_host_file_result" | |
1706 | } | |
1707 | # end func_convert_file_msys_to_w32 | |
1708 | ||
1709 | ||
1710 | # func_convert_file_cygwin_to_w32 ARG | |
1711 | # Convert file name ARG from Cygwin to w32 format. Returns result in | |
1712 | # func_to_host_file_result. | |
1713 | func_convert_file_cygwin_to_w32 () | |
1714 | { | |
1715 | $opt_debug | |
1716 | func_to_host_file_result="$1" | |
1717 | if test -n "$1"; then | |
1718 | # because $build is cygwin, we call "the" cygpath in $PATH; no need to use | |
1719 | # LT_CYGPATH in this case. | |
1720 | func_to_host_file_result=`cygpath -m "$1"` | |
1721 | fi | |
1722 | func_convert_file_check "$1" "$func_to_host_file_result" | |
1723 | } | |
1724 | # end func_convert_file_cygwin_to_w32 | |
1725 | ||
1726 | ||
1727 | # func_convert_file_nix_to_w32 ARG | |
1728 | # Convert file name ARG from *nix to w32 format. Requires a wine environment | |
1729 | # and a working winepath. Returns result in func_to_host_file_result. | |
1730 | func_convert_file_nix_to_w32 () | |
1731 | { | |
1732 | $opt_debug | |
1733 | func_to_host_file_result="$1" | |
1734 | if test -n "$1"; then | |
1735 | func_convert_core_file_wine_to_w32 "$1" | |
1736 | func_to_host_file_result="$func_convert_core_file_wine_to_w32_result" | |
1737 | fi | |
1738 | func_convert_file_check "$1" "$func_to_host_file_result" | |
1739 | } | |
1740 | # end func_convert_file_nix_to_w32 | |
1741 | ||
1742 | ||
1743 | # func_convert_file_msys_to_cygwin ARG | |
1744 | # Convert file name ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. | |
1745 | # Returns result in func_to_host_file_result. | |
1746 | func_convert_file_msys_to_cygwin () | |
1747 | { | |
1748 | $opt_debug | |
1749 | func_to_host_file_result="$1" | |
1750 | if test -n "$1"; then | |
1751 | func_convert_core_msys_to_w32 "$1" | |
1752 | func_cygpath -u "$func_convert_core_msys_to_w32_result" | |
1753 | func_to_host_file_result="$func_cygpath_result" | |
1754 | fi | |
1755 | func_convert_file_check "$1" "$func_to_host_file_result" | |
1756 | } | |
1757 | # end func_convert_file_msys_to_cygwin | |
1758 | ||
1759 | ||
1760 | # func_convert_file_nix_to_cygwin ARG | |
1761 | # Convert file name ARG from *nix to Cygwin format. Requires Cygwin installed | |
1762 | # in a wine environment, working winepath, and LT_CYGPATH set. Returns result | |
1763 | # in func_to_host_file_result. | |
1764 | func_convert_file_nix_to_cygwin () | |
1765 | { | |
1766 | $opt_debug | |
1767 | func_to_host_file_result="$1" | |
1768 | if test -n "$1"; then | |
1769 | # convert from *nix to w32, then use cygpath to convert from w32 to cygwin. | |
1770 | func_convert_core_file_wine_to_w32 "$1" | |
1771 | func_cygpath -u "$func_convert_core_file_wine_to_w32_result" | |
1772 | func_to_host_file_result="$func_cygpath_result" | |
1773 | fi | |
1774 | func_convert_file_check "$1" "$func_to_host_file_result" | |
1775 | } | |
1776 | # end func_convert_file_nix_to_cygwin | |
1777 | ||
1778 | ||
1779 | ############################################# | |
1780 | # $build to $host PATH CONVERSION FUNCTIONS # | |
1781 | ############################################# | |
1782 | # invoked via `$to_host_path_cmd ARG' | |
1783 | # | |
1784 | # In each case, ARG is the path to be converted from $build to $host format. | |
1785 | # The result will be available in $func_to_host_path_result. | |
1786 | # | |
1787 | # Path separators are also converted from $build format to $host format. If | |
1788 | # ARG begins or ends with a path separator character, it is preserved (but | |
1789 | # converted to $host format) on output. | |
1790 | # | |
1791 | # All path conversion functions are named using the following convention: | |
1792 | # file name conversion function : func_convert_file_X_to_Y () | |
1793 | # path conversion function : func_convert_path_X_to_Y () | |
1794 | # where, for any given $build/$host combination the 'X_to_Y' value is the | |
1795 | # same. If conversion functions are added for new $build/$host combinations, | |
1796 | # the two new functions must follow this pattern, or func_init_to_host_path_cmd | |
1797 | # will break. | |
1798 | ||
1799 | ||
1800 | # func_init_to_host_path_cmd | |
1801 | # Ensures that function "pointer" variable $to_host_path_cmd is set to the | |
1802 | # appropriate value, based on the value of $to_host_file_cmd. | |
1803 | to_host_path_cmd= | |
1804 | func_init_to_host_path_cmd () | |
1805 | { | |
1806 | $opt_debug | |
1807 | if test -z "$to_host_path_cmd"; then | |
1808 | func_stripname 'func_convert_file_' '' "$to_host_file_cmd" | |
1809 | to_host_path_cmd="func_convert_path_${func_stripname_result}" | |
1810 | fi | |
1811 | } | |
1812 | ||
1813 | ||
1814 | # func_to_host_path ARG | |
1815 | # Converts the path ARG from $build format to $host format. Return result | |
1816 | # in func_to_host_path_result. | |
1817 | func_to_host_path () | |
1818 | { | |
1819 | $opt_debug | |
1820 | func_init_to_host_path_cmd | |
1821 | $to_host_path_cmd "$1" | |
1822 | } | |
1823 | # end func_to_host_path | |
1824 | ||
1825 | ||
1826 | # func_convert_path_noop ARG | |
1827 | # Copy ARG to func_to_host_path_result. | |
1828 | func_convert_path_noop () | |
1829 | { | |
1830 | func_to_host_path_result="$1" | |
1831 | } | |
1832 | # end func_convert_path_noop | |
1833 | ||
1834 | ||
1835 | # func_convert_path_msys_to_w32 ARG | |
1836 | # Convert path ARG from (mingw) MSYS to (mingw) w32 format; automatic | |
1837 | # conversion to w32 is not available inside the cwrapper. Returns result in | |
1838 | # func_to_host_path_result. | |
1839 | func_convert_path_msys_to_w32 () | |
1840 | { | |
1841 | $opt_debug | |
1842 | func_to_host_path_result="$1" | |
1843 | if test -n "$1"; then | |
1844 | # Remove leading and trailing path separator characters from ARG. MSYS | |
1845 | # behavior is inconsistent here; cygpath turns them into '.;' and ';.'; | |
1846 | # and winepath ignores them completely. | |
1847 | func_stripname : : "$1" | |
1848 | func_to_host_path_tmp1=$func_stripname_result | |
1849 | func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" | |
1850 | func_to_host_path_result="$func_convert_core_msys_to_w32_result" | |
1851 | func_convert_path_check : ";" \ | |
1852 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | |
1853 | func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | |
1854 | fi | |
1855 | } | |
1856 | # end func_convert_path_msys_to_w32 | |
1857 | ||
1858 | ||
1859 | # func_convert_path_cygwin_to_w32 ARG | |
1860 | # Convert path ARG from Cygwin to w32 format. Returns result in | |
1861 | # func_to_host_file_result. | |
1862 | func_convert_path_cygwin_to_w32 () | |
1863 | { | |
1864 | $opt_debug | |
1865 | func_to_host_path_result="$1" | |
1866 | if test -n "$1"; then | |
1867 | # See func_convert_path_msys_to_w32: | |
1868 | func_stripname : : "$1" | |
1869 | func_to_host_path_tmp1=$func_stripname_result | |
1870 | func_to_host_path_result=`cygpath -m -p "$func_to_host_path_tmp1"` | |
1871 | func_convert_path_check : ";" \ | |
1872 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | |
1873 | func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | |
1874 | fi | |
1875 | } | |
1876 | # end func_convert_path_cygwin_to_w32 | |
1877 | ||
1878 | ||
1879 | # func_convert_path_nix_to_w32 ARG | |
1880 | # Convert path ARG from *nix to w32 format. Requires a wine environment and | |
1881 | # a working winepath. Returns result in func_to_host_file_result. | |
1882 | func_convert_path_nix_to_w32 () | |
1883 | { | |
1884 | $opt_debug | |
1885 | func_to_host_path_result="$1" | |
1886 | if test -n "$1"; then | |
1887 | # See func_convert_path_msys_to_w32: | |
1888 | func_stripname : : "$1" | |
1889 | func_to_host_path_tmp1=$func_stripname_result | |
1890 | func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" | |
1891 | func_to_host_path_result="$func_convert_core_path_wine_to_w32_result" | |
1892 | func_convert_path_check : ";" \ | |
1893 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | |
1894 | func_convert_path_front_back_pathsep ":*" "*:" ";" "$1" | |
1895 | fi | |
1896 | } | |
1897 | # end func_convert_path_nix_to_w32 | |
1898 | ||
1899 | ||
1900 | # func_convert_path_msys_to_cygwin ARG | |
1901 | # Convert path ARG from MSYS to Cygwin format. Requires LT_CYGPATH set. | |
1902 | # Returns result in func_to_host_file_result. | |
1903 | func_convert_path_msys_to_cygwin () | |
1904 | { | |
1905 | $opt_debug | |
1906 | func_to_host_path_result="$1" | |
1907 | if test -n "$1"; then | |
1908 | # See func_convert_path_msys_to_w32: | |
1909 | func_stripname : : "$1" | |
1910 | func_to_host_path_tmp1=$func_stripname_result | |
1911 | func_convert_core_msys_to_w32 "$func_to_host_path_tmp1" | |
1912 | func_cygpath -u -p "$func_convert_core_msys_to_w32_result" | |
1913 | func_to_host_path_result="$func_cygpath_result" | |
1914 | func_convert_path_check : : \ | |
1915 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | |
1916 | func_convert_path_front_back_pathsep ":*" "*:" : "$1" | |
1917 | fi | |
1918 | } | |
1919 | # end func_convert_path_msys_to_cygwin | |
1920 | ||
1921 | ||
1922 | # func_convert_path_nix_to_cygwin ARG | |
1923 | # Convert path ARG from *nix to Cygwin format. Requires Cygwin installed in a | |
1924 | # a wine environment, working winepath, and LT_CYGPATH set. Returns result in | |
1925 | # func_to_host_file_result. | |
1926 | func_convert_path_nix_to_cygwin () | |
1927 | { | |
1928 | $opt_debug | |
1929 | func_to_host_path_result="$1" | |
1930 | if test -n "$1"; then | |
1931 | # Remove leading and trailing path separator characters from | |
1932 | # ARG. msys behavior is inconsistent here, cygpath turns them | |
1933 | # into '.;' and ';.', and winepath ignores them completely. | |
1934 | func_stripname : : "$1" | |
1935 | func_to_host_path_tmp1=$func_stripname_result | |
1936 | func_convert_core_path_wine_to_w32 "$func_to_host_path_tmp1" | |
1937 | func_cygpath -u -p "$func_convert_core_path_wine_to_w32_result" | |
1938 | func_to_host_path_result="$func_cygpath_result" | |
1939 | func_convert_path_check : : \ | |
1940 | "$func_to_host_path_tmp1" "$func_to_host_path_result" | |
1941 | func_convert_path_front_back_pathsep ":*" "*:" : "$1" | |
1942 | fi | |
1943 | } | |
1944 | # end func_convert_path_nix_to_cygwin | |
1945 | ||
1946 | ||
1265 | 1947 | # func_mode_compile arg... |
1266 | 1948 | func_mode_compile () |
1267 | 1949 | { |
1302 | 1984 | ;; |
1303 | 1985 | |
1304 | 1986 | -pie | -fpie | -fPIE) |
1305 | pie_flag="$pie_flag $arg" | |
1987 | func_append pie_flag " $arg" | |
1306 | 1988 | continue |
1307 | 1989 | ;; |
1308 | 1990 | |
1309 | 1991 | -shared | -static | -prefer-pic | -prefer-non-pic) |
1310 | later="$later $arg" | |
1992 | func_append later " $arg" | |
1311 | 1993 | continue |
1312 | 1994 | ;; |
1313 | 1995 | |
1328 | 2010 | save_ifs="$IFS"; IFS=',' |
1329 | 2011 | for arg in $args; do |
1330 | 2012 | IFS="$save_ifs" |
1331 | func_quote_for_eval "$arg" | |
1332 | lastarg="$lastarg $func_quote_for_eval_result" | |
2013 | func_append_quoted lastarg "$arg" | |
1333 | 2014 | done |
1334 | 2015 | IFS="$save_ifs" |
1335 | 2016 | func_stripname ' ' '' "$lastarg" |
1336 | 2017 | lastarg=$func_stripname_result |
1337 | 2018 | |
1338 | 2019 | # Add the arguments to base_compile. |
1339 | base_compile="$base_compile $lastarg" | |
2020 | func_append base_compile " $lastarg" | |
1340 | 2021 | continue |
1341 | 2022 | ;; |
1342 | 2023 | |
1352 | 2033 | esac # case $arg_mode |
1353 | 2034 | |
1354 | 2035 | # Aesthetically quote the previous argument. |
1355 | func_quote_for_eval "$lastarg" | |
1356 | base_compile="$base_compile $func_quote_for_eval_result" | |
2036 | func_append_quoted base_compile "$lastarg" | |
1357 | 2037 | done # for arg |
1358 | 2038 | |
1359 | 2039 | case $arg_mode in |
1484 | 2164 | $opt_dry_run || $RM $removelist |
1485 | 2165 | exit $EXIT_FAILURE |
1486 | 2166 | fi |
1487 | removelist="$removelist $output_obj" | |
2167 | func_append removelist " $output_obj" | |
1488 | 2168 | $ECHO "$srcfile" > "$lockfile" |
1489 | 2169 | fi |
1490 | 2170 | |
1491 | 2171 | $opt_dry_run || $RM $removelist |
1492 | removelist="$removelist $lockfile" | |
2172 | func_append removelist " $lockfile" | |
1493 | 2173 | trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15 |
1494 | 2174 | |
1495 | if test -n "$fix_srcfile_path"; then | |
1496 | eval srcfile=\"$fix_srcfile_path\" | |
1497 | fi | |
2175 | func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 | |
2176 | srcfile=$func_to_tool_file_result | |
1498 | 2177 | func_quote_for_eval "$srcfile" |
1499 | 2178 | qsrcfile=$func_quote_for_eval_result |
1500 | 2179 | |
1514 | 2193 | |
1515 | 2194 | if test -z "$output_obj"; then |
1516 | 2195 | # Place PIC objects in $objdir |
1517 | command="$command -o $lobj" | |
2196 | func_append command " -o $lobj" | |
1518 | 2197 | fi |
1519 | 2198 | |
1520 | 2199 | func_show_eval_locale "$command" \ |
1561 | 2240 | command="$base_compile $qsrcfile $pic_flag" |
1562 | 2241 | fi |
1563 | 2242 | if test "$compiler_c_o" = yes; then |
1564 | command="$command -o $obj" | |
2243 | func_append command " -o $obj" | |
1565 | 2244 | fi |
1566 | 2245 | |
1567 | 2246 | # Suppress compiler output if we already did a PIC compilation. |
1568 | command="$command$suppress_output" | |
2247 | func_append command "$suppress_output" | |
1569 | 2248 | func_show_eval_locale "$command" \ |
1570 | 2249 | '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' |
1571 | 2250 | |
1610 | 2289 | } |
1611 | 2290 | |
1612 | 2291 | $opt_help || { |
1613 | test "$mode" = compile && func_mode_compile ${1+"$@"} | |
2292 | test "$opt_mode" = compile && func_mode_compile ${1+"$@"} | |
1614 | 2293 | } |
1615 | 2294 | |
1616 | 2295 | func_mode_help () |
1617 | 2296 | { |
1618 | 2297 | # We need to display help for each of the modes. |
1619 | case $mode in | |
2298 | case $opt_mode in | |
1620 | 2299 | "") |
1621 | 2300 | # Generic help is extracted from the usage comments |
1622 | 2301 | # at the start of this file. |
1792 | 2471 | ;; |
1793 | 2472 | |
1794 | 2473 | *) |
1795 | func_fatal_help "invalid operation mode \`$mode'" | |
2474 | func_fatal_help "invalid operation mode \`$opt_mode'" | |
1796 | 2475 | ;; |
1797 | 2476 | esac |
1798 | 2477 | |
1807 | 2486 | else |
1808 | 2487 | { |
1809 | 2488 | func_help noexit |
1810 | for mode in compile link execute install finish uninstall clean; do | |
2489 | for opt_mode in compile link execute install finish uninstall clean; do | |
1811 | 2490 | func_mode_help |
1812 | 2491 | done |
1813 | 2492 | } | sed -n '1p; 2,$s/^Usage:/ or: /p' |
1814 | 2493 | { |
1815 | 2494 | func_help noexit |
1816 | for mode in compile link execute install finish uninstall clean; do | |
2495 | for opt_mode in compile link execute install finish uninstall clean; do | |
1817 | 2496 | echo |
1818 | 2497 | func_mode_help |
1819 | 2498 | done |
1842 | 2521 | func_fatal_help "you must specify a COMMAND" |
1843 | 2522 | |
1844 | 2523 | # Handle -dlopen flags immediately. |
1845 | for file in $execute_dlfiles; do | |
2524 | for file in $opt_dlopen; do | |
1846 | 2525 | test -f "$file" \ |
1847 | 2526 | || func_fatal_help "\`$file' is not a file" |
1848 | 2527 | |
1849 | 2528 | dir= |
1850 | 2529 | case $file in |
1851 | 2530 | *.la) |
2531 | func_resolve_sysroot "$file" | |
2532 | file=$func_resolve_sysroot_result | |
2533 | ||
1852 | 2534 | # Check to see that this really is a libtool archive. |
1853 | 2535 | func_lalib_unsafe_p "$file" \ |
1854 | 2536 | || func_fatal_help "\`$lib' is not a valid libtool archive" |
1870 | 2552 | dir="$func_dirname_result" |
1871 | 2553 | |
1872 | 2554 | if test -f "$dir/$objdir/$dlname"; then |
1873 | dir="$dir/$objdir" | |
2555 | func_append dir "/$objdir" | |
1874 | 2556 | else |
1875 | 2557 | if test ! -f "$dir/$dlname"; then |
1876 | 2558 | func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" |
1927 | 2609 | ;; |
1928 | 2610 | esac |
1929 | 2611 | # Quote arguments (to preserve shell metacharacters). |
1930 | func_quote_for_eval "$file" | |
1931 | args="$args $func_quote_for_eval_result" | |
2612 | func_append_quoted args "$file" | |
1932 | 2613 | done |
1933 | 2614 | |
1934 | 2615 | if test "X$opt_dry_run" = Xfalse; then |
1960 | 2641 | fi |
1961 | 2642 | } |
1962 | 2643 | |
1963 | test "$mode" = execute && func_mode_execute ${1+"$@"} | |
2644 | test "$opt_mode" = execute && func_mode_execute ${1+"$@"} | |
1964 | 2645 | |
1965 | 2646 | |
1966 | 2647 | # func_mode_finish arg... |
1967 | 2648 | func_mode_finish () |
1968 | 2649 | { |
1969 | 2650 | $opt_debug |
1970 | libdirs="$nonopt" | |
2651 | libs= | |
2652 | libdirs= | |
1971 | 2653 | admincmds= |
1972 | 2654 | |
2655 | for opt in "$nonopt" ${1+"$@"} | |
2656 | do | |
2657 | if test -d "$opt"; then | |
2658 | func_append libdirs " $opt" | |
2659 | ||
2660 | elif test -f "$opt"; then | |
2661 | if func_lalib_unsafe_p "$opt"; then | |
2662 | func_append libs " $opt" | |
2663 | else | |
2664 | func_warning "\`$opt' is not a valid libtool archive" | |
2665 | fi | |
2666 | ||
2667 | else | |
2668 | func_fatal_error "invalid argument \`$opt'" | |
2669 | fi | |
2670 | done | |
2671 | ||
2672 | if test -n "$libs"; then | |
2673 | if test -n "$lt_sysroot"; then | |
2674 | sysroot_regex=`$ECHO "$lt_sysroot" | $SED "$sed_make_literal_regex"` | |
2675 | sysroot_cmd="s/\([ ']\)$sysroot_regex/\1/g;" | |
2676 | else | |
2677 | sysroot_cmd= | |
2678 | fi | |
2679 | ||
2680 | # Remove sysroot references | |
2681 | if $opt_dry_run; then | |
2682 | for lib in $libs; do | |
2683 | echo "removing references to $lt_sysroot and \`=' prefixes from $lib" | |
2684 | done | |
2685 | else | |
2686 | tmpdir=`func_mktempdir` | |
2687 | for lib in $libs; do | |
2688 | sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \ | |
2689 | > $tmpdir/tmp-la | |
2690 | mv -f $tmpdir/tmp-la $lib | |
2691 | done | |
2692 | ${RM}r "$tmpdir" | |
2693 | fi | |
2694 | fi | |
2695 | ||
1973 | 2696 | if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then |
1974 | for dir | |
1975 | do | |
1976 | libdirs="$libdirs $dir" | |
1977 | done | |
1978 | ||
1979 | 2697 | for libdir in $libdirs; do |
1980 | 2698 | if test -n "$finish_cmds"; then |
1981 | 2699 | # Do each command in the finish commands. |
1985 | 2703 | if test -n "$finish_eval"; then |
1986 | 2704 | # Do the single finish_eval. |
1987 | 2705 | eval cmds=\"$finish_eval\" |
1988 | $opt_dry_run || eval "$cmds" || admincmds="$admincmds | |
2706 | $opt_dry_run || eval "$cmds" || func_append admincmds " | |
1989 | 2707 | $cmds" |
1990 | 2708 | fi |
1991 | 2709 | done |
1994 | 2712 | # Exit here if they wanted silent mode. |
1995 | 2713 | $opt_silent && exit $EXIT_SUCCESS |
1996 | 2714 | |
1997 | echo "----------------------------------------------------------------------" | |
1998 | echo "Libraries have been installed in:" | |
1999 | for libdir in $libdirs; do | |
2000 | $ECHO " $libdir" | |
2001 | done | |
2002 | echo | |
2003 | echo "If you ever happen to want to link against installed libraries" | |
2004 | echo "in a given directory, LIBDIR, you must either use libtool, and" | |
2005 | echo "specify the full pathname of the library, or use the \`-LLIBDIR'" | |
2006 | echo "flag during linking and do at least one of the following:" | |
2007 | if test -n "$shlibpath_var"; then | |
2008 | echo " - add LIBDIR to the \`$shlibpath_var' environment variable" | |
2009 | echo " during execution" | |
2715 | if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then | |
2716 | echo "----------------------------------------------------------------------" | |
2717 | echo "Libraries have been installed in:" | |
2718 | for libdir in $libdirs; do | |
2719 | $ECHO " $libdir" | |
2720 | done | |
2721 | echo | |
2722 | echo "If you ever happen to want to link against installed libraries" | |
2723 | echo "in a given directory, LIBDIR, you must either use libtool, and" | |
2724 | echo "specify the full pathname of the library, or use the \`-LLIBDIR'" | |
2725 | echo "flag during linking and do at least one of the following:" | |
2726 | if test -n "$shlibpath_var"; then | |
2727 | echo " - add LIBDIR to the \`$shlibpath_var' environment variable" | |
2728 | echo " during execution" | |
2729 | fi | |
2730 | if test -n "$runpath_var"; then | |
2731 | echo " - add LIBDIR to the \`$runpath_var' environment variable" | |
2732 | echo " during linking" | |
2733 | fi | |
2734 | if test -n "$hardcode_libdir_flag_spec"; then | |
2735 | libdir=LIBDIR | |
2736 | eval flag=\"$hardcode_libdir_flag_spec\" | |
2737 | ||
2738 | $ECHO " - use the \`$flag' linker flag" | |
2739 | fi | |
2740 | if test -n "$admincmds"; then | |
2741 | $ECHO " - have your system administrator run these commands:$admincmds" | |
2742 | fi | |
2743 | if test -f /etc/ld.so.conf; then | |
2744 | echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" | |
2745 | fi | |
2746 | echo | |
2747 | ||
2748 | echo "See any operating system documentation about shared libraries for" | |
2749 | case $host in | |
2750 | solaris2.[6789]|solaris2.1[0-9]) | |
2751 | echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" | |
2752 | echo "pages." | |
2753 | ;; | |
2754 | *) | |
2755 | echo "more information, such as the ld(1) and ld.so(8) manual pages." | |
2756 | ;; | |
2757 | esac | |
2758 | echo "----------------------------------------------------------------------" | |
2010 | 2759 | fi |
2011 | if test -n "$runpath_var"; then | |
2012 | echo " - add LIBDIR to the \`$runpath_var' environment variable" | |
2013 | echo " during linking" | |
2014 | fi | |
2015 | if test -n "$hardcode_libdir_flag_spec"; then | |
2016 | libdir=LIBDIR | |
2017 | eval flag=\"$hardcode_libdir_flag_spec\" | |
2018 | ||
2019 | $ECHO " - use the \`$flag' linker flag" | |
2020 | fi | |
2021 | if test -n "$admincmds"; then | |
2022 | $ECHO " - have your system administrator run these commands:$admincmds" | |
2023 | fi | |
2024 | if test -f /etc/ld.so.conf; then | |
2025 | echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'" | |
2026 | fi | |
2027 | echo | |
2028 | ||
2029 | echo "See any operating system documentation about shared libraries for" | |
2030 | case $host in | |
2031 | solaris2.[6789]|solaris2.1[0-9]) | |
2032 | echo "more information, such as the ld(1), crle(1) and ld.so(8) manual" | |
2033 | echo "pages." | |
2034 | ;; | |
2035 | *) | |
2036 | echo "more information, such as the ld(1) and ld.so(8) manual pages." | |
2037 | ;; | |
2038 | esac | |
2039 | echo "----------------------------------------------------------------------" | |
2040 | 2760 | exit $EXIT_SUCCESS |
2041 | 2761 | } |
2042 | 2762 | |
2043 | test "$mode" = finish && func_mode_finish ${1+"$@"} | |
2763 | test "$opt_mode" = finish && func_mode_finish ${1+"$@"} | |
2044 | 2764 | |
2045 | 2765 | |
2046 | 2766 | # func_mode_install arg... |
2065 | 2785 | # The real first argument should be the name of the installation program. |
2066 | 2786 | # Aesthetically quote it. |
2067 | 2787 | func_quote_for_eval "$arg" |
2068 | install_prog="$install_prog$func_quote_for_eval_result" | |
2788 | func_append install_prog "$func_quote_for_eval_result" | |
2069 | 2789 | install_shared_prog=$install_prog |
2070 | 2790 | case " $install_prog " in |
2071 | 2791 | *[\\\ /]cp\ *) install_cp=: ;; |
2085 | 2805 | do |
2086 | 2806 | arg2= |
2087 | 2807 | if test -n "$dest"; then |
2088 | files="$files $dest" | |
2808 | func_append files " $dest" | |
2089 | 2809 | dest=$arg |
2090 | 2810 | continue |
2091 | 2811 | fi |
2123 | 2843 | |
2124 | 2844 | # Aesthetically quote the argument. |
2125 | 2845 | func_quote_for_eval "$arg" |
2126 | install_prog="$install_prog $func_quote_for_eval_result" | |
2846 | func_append install_prog " $func_quote_for_eval_result" | |
2127 | 2847 | if test -n "$arg2"; then |
2128 | 2848 | func_quote_for_eval "$arg2" |
2129 | 2849 | fi |
2130 | install_shared_prog="$install_shared_prog $func_quote_for_eval_result" | |
2850 | func_append install_shared_prog " $func_quote_for_eval_result" | |
2131 | 2851 | done |
2132 | 2852 | |
2133 | 2853 | test -z "$install_prog" && \ |
2139 | 2859 | if test -n "$install_override_mode" && $no_mode; then |
2140 | 2860 | if $install_cp; then :; else |
2141 | 2861 | func_quote_for_eval "$install_override_mode" |
2142 | install_shared_prog="$install_shared_prog -m $func_quote_for_eval_result" | |
2862 | func_append install_shared_prog " -m $func_quote_for_eval_result" | |
2143 | 2863 | fi |
2144 | 2864 | fi |
2145 | 2865 | |
2197 | 2917 | case $file in |
2198 | 2918 | *.$libext) |
2199 | 2919 | # Do the static libraries later. |
2200 | staticlibs="$staticlibs $file" | |
2920 | func_append staticlibs " $file" | |
2201 | 2921 | ;; |
2202 | 2922 | |
2203 | 2923 | *.la) |
2924 | func_resolve_sysroot "$file" | |
2925 | file=$func_resolve_sysroot_result | |
2926 | ||
2204 | 2927 | # Check to see that this really is a libtool archive. |
2205 | 2928 | func_lalib_unsafe_p "$file" \ |
2206 | 2929 | || func_fatal_help "\`$file' is not a valid libtool archive" |
2214 | 2937 | if test "X$destdir" = "X$libdir"; then |
2215 | 2938 | case "$current_libdirs " in |
2216 | 2939 | *" $libdir "*) ;; |
2217 | *) current_libdirs="$current_libdirs $libdir" ;; | |
2940 | *) func_append current_libdirs " $libdir" ;; | |
2218 | 2941 | esac |
2219 | 2942 | else |
2220 | 2943 | # Note the libdir as a future libdir. |
2221 | 2944 | case "$future_libdirs " in |
2222 | 2945 | *" $libdir "*) ;; |
2223 | *) future_libdirs="$future_libdirs $libdir" ;; | |
2946 | *) func_append future_libdirs " $libdir" ;; | |
2224 | 2947 | esac |
2225 | 2948 | fi |
2226 | 2949 | |
2227 | 2950 | func_dirname "$file" "/" "" |
2228 | 2951 | dir="$func_dirname_result" |
2229 | dir="$dir$objdir" | |
2952 | func_append dir "$objdir" | |
2230 | 2953 | |
2231 | 2954 | if test -n "$relink_command"; then |
2232 | 2955 | # Determine the prefix the user has applied to our future dir. |
2303 | 3026 | func_show_eval "$install_prog $instname $destdir/$name" 'exit $?' |
2304 | 3027 | |
2305 | 3028 | # Maybe install the static library, too. |
2306 | test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library" | |
3029 | test -n "$old_library" && func_append staticlibs " $dir/$old_library" | |
2307 | 3030 | ;; |
2308 | 3031 | |
2309 | 3032 | *.lo) |
2500 | 3223 | fi |
2501 | 3224 | } |
2502 | 3225 | |
2503 | test "$mode" = install && func_mode_install ${1+"$@"} | |
3226 | test "$opt_mode" = install && func_mode_install ${1+"$@"} | |
2504 | 3227 | |
2505 | 3228 | |
2506 | 3229 | # func_generate_dlsyms outputname originator pic_p |
2547 | 3270 | #pragma GCC diagnostic ignored \"-Wstrict-prototypes\" |
2548 | 3271 | #endif |
2549 | 3272 | |
3273 | /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
3274 | #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
3275 | /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
3276 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
3277 | # define LT_DLSYM_CONST | |
3278 | #elif defined(__osf__) | |
3279 | /* This system does not cope well with relocations in const data. */ | |
3280 | # define LT_DLSYM_CONST | |
3281 | #else | |
3282 | # define LT_DLSYM_CONST const | |
3283 | #endif | |
3284 | ||
2550 | 3285 | /* External symbol declarations for the compiler. */\ |
2551 | 3286 | " |
2552 | 3287 | |
2558 | 3293 | # Add our own program objects to the symbol list. |
2559 | 3294 | progfiles=`$ECHO "$objs$old_deplibs" | $SP2NL | $SED "$lo2o" | $NL2SP` |
2560 | 3295 | for progfile in $progfiles; do |
2561 | func_verbose "extracting global C symbols from \`$progfile'" | |
2562 | $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'" | |
3296 | func_to_tool_file "$progfile" func_convert_file_msys_to_w32 | |
3297 | func_verbose "extracting global C symbols from \`$func_to_tool_file_result'" | |
3298 | $opt_dry_run || eval "$NM $func_to_tool_file_result | $global_symbol_pipe >> '$nlist'" | |
2563 | 3299 | done |
2564 | 3300 | |
2565 | 3301 | if test -n "$exclude_expsyms"; then |
2608 | 3344 | func_verbose "extracting global C symbols from \`$dlprefile'" |
2609 | 3345 | func_basename "$dlprefile" |
2610 | 3346 | name="$func_basename_result" |
2611 | $opt_dry_run || { | |
2612 | eval '$ECHO ": $name " >> "$nlist"' | |
2613 | eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'" | |
2614 | } | |
3347 | case $host in | |
3348 | *cygwin* | *mingw* | *cegcc* ) | |
3349 | # if an import library, we need to obtain dlname | |
3350 | if func_win32_import_lib_p "$dlprefile"; then | |
3351 | func_tr_sh "$dlprefile" | |
3352 | eval "curr_lafile=\$libfile_$func_tr_sh_result" | |
3353 | dlprefile_dlbasename="" | |
3354 | if test -n "$curr_lafile" && func_lalib_p "$curr_lafile"; then | |
3355 | # Use subshell, to avoid clobbering current variable values | |
3356 | dlprefile_dlname=`source "$curr_lafile" && echo "$dlname"` | |
3357 | if test -n "$dlprefile_dlname" ; then | |
3358 | func_basename "$dlprefile_dlname" | |
3359 | dlprefile_dlbasename="$func_basename_result" | |
3360 | else | |
3361 | # no lafile. user explicitly requested -dlpreopen <import library>. | |
3362 | $sharedlib_from_linklib_cmd "$dlprefile" | |
3363 | dlprefile_dlbasename=$sharedlib_from_linklib_result | |
3364 | fi | |
3365 | fi | |
3366 | $opt_dry_run || { | |
3367 | if test -n "$dlprefile_dlbasename" ; then | |
3368 | eval '$ECHO ": $dlprefile_dlbasename" >> "$nlist"' | |
3369 | else | |
3370 | func_warning "Could not compute DLL name from $name" | |
3371 | eval '$ECHO ": $name " >> "$nlist"' | |
3372 | fi | |
3373 | func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 | |
3374 | eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe | | |
3375 | $SED -e '/I __imp/d' -e 's/I __nm_/D /;s/_nm__//' >> '$nlist'" | |
3376 | } | |
3377 | else # not an import lib | |
3378 | $opt_dry_run || { | |
3379 | eval '$ECHO ": $name " >> "$nlist"' | |
3380 | func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 | |
3381 | eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" | |
3382 | } | |
3383 | fi | |
3384 | ;; | |
3385 | *) | |
3386 | $opt_dry_run || { | |
3387 | eval '$ECHO ": $name " >> "$nlist"' | |
3388 | func_to_tool_file "$dlprefile" func_convert_file_msys_to_w32 | |
3389 | eval "$NM \"$func_to_tool_file_result\" 2>/dev/null | $global_symbol_pipe >> '$nlist'" | |
3390 | } | |
3391 | ;; | |
3392 | esac | |
2615 | 3393 | done |
2616 | 3394 | |
2617 | 3395 | $opt_dry_run || { |
2649 | 3427 | const char *name; |
2650 | 3428 | void *address; |
2651 | 3429 | } lt_dlsymlist; |
2652 | " | |
2653 | case $host in | |
2654 | *cygwin* | *mingw* | *cegcc* ) | |
2655 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2656 | /* DATA imports from DLLs on WIN32 con't be const, because | |
2657 | runtime relocations are performed -- see ld's documentation | |
2658 | on pseudo-relocs. */" | |
2659 | lt_dlsym_const= ;; | |
2660 | *osf5*) | |
2661 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2662 | /* This system does not cope well with relocations in const data */" | |
2663 | lt_dlsym_const= ;; | |
2664 | *) | |
2665 | lt_dlsym_const=const ;; | |
2666 | esac | |
2667 | ||
2668 | echo >> "$output_objdir/$my_dlsyms" "\ | |
2669 | extern $lt_dlsym_const lt_dlsymlist | |
3430 | extern LT_DLSYM_CONST lt_dlsymlist | |
2670 | 3431 | lt_${my_prefix}_LTX_preloaded_symbols[]; |
2671 | $lt_dlsym_const lt_dlsymlist | |
3432 | LT_DLSYM_CONST lt_dlsymlist | |
2672 | 3433 | lt_${my_prefix}_LTX_preloaded_symbols[] = |
2673 | 3434 | {\ |
2674 | 3435 | { \"$my_originator\", (void *) 0 }," |
2724 | 3485 | for arg in $LTCFLAGS; do |
2725 | 3486 | case $arg in |
2726 | 3487 | -pie | -fpie | -fPIE) ;; |
2727 | *) symtab_cflags="$symtab_cflags $arg" ;; | |
3488 | *) func_append symtab_cflags " $arg" ;; | |
2728 | 3489 | esac |
2729 | 3490 | done |
2730 | 3491 | |
2787 | 3548 | # Keep the egrep pattern in sync with the one in _LT_CHECK_MAGIC_METHOD. |
2788 | 3549 | if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | |
2789 | 3550 | $EGREP 'file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' >/dev/null; then |
2790 | win32_nmres=`eval $NM -f posix -A $1 | | |
3551 | func_to_tool_file "$1" func_convert_file_msys_to_w32 | |
3552 | win32_nmres=`eval $NM -f posix -A \"$func_to_tool_file_result\" | | |
2791 | 3553 | $SED -n -e ' |
2792 | 3554 | 1,100{ |
2793 | 3555 | / I /{ |
2816 | 3578 | $ECHO "$win32_libid_type" |
2817 | 3579 | } |
2818 | 3580 | |
3581 | # func_cygming_dll_for_implib ARG | |
3582 | # | |
3583 | # Platform-specific function to extract the | |
3584 | # name of the DLL associated with the specified | |
3585 | # import library ARG. | |
3586 | # Invoked by eval'ing the libtool variable | |
3587 | # $sharedlib_from_linklib_cmd | |
3588 | # Result is available in the variable | |
3589 | # $sharedlib_from_linklib_result | |
3590 | func_cygming_dll_for_implib () | |
3591 | { | |
3592 | $opt_debug | |
3593 | sharedlib_from_linklib_result=`$DLLTOOL --identify-strict --identify "$1"` | |
3594 | } | |
3595 | ||
3596 | # func_cygming_dll_for_implib_fallback_core SECTION_NAME LIBNAMEs | |
3597 | # | |
3598 | # The is the core of a fallback implementation of a | |
3599 | # platform-specific function to extract the name of the | |
3600 | # DLL associated with the specified import library LIBNAME. | |
3601 | # | |
3602 | # SECTION_NAME is either .idata$6 or .idata$7, depending | |
3603 | # on the platform and compiler that created the implib. | |
3604 | # | |
3605 | # Echos the name of the DLL associated with the | |
3606 | # specified import library. | |
3607 | func_cygming_dll_for_implib_fallback_core () | |
3608 | { | |
3609 | $opt_debug | |
3610 | match_literal=`$ECHO "$1" | $SED "$sed_make_literal_regex"` | |
3611 | $OBJDUMP -s --section "$1" "$2" 2>/dev/null | | |
3612 | $SED '/^Contents of section '"$match_literal"':/{ | |
3613 | # Place marker at beginning of archive member dllname section | |
3614 | s/.*/====MARK====/ | |
3615 | p | |
3616 | d | |
3617 | } | |
3618 | # These lines can sometimes be longer than 43 characters, but | |
3619 | # are always uninteresting | |
3620 | /:[ ]*file format pe[i]\{,1\}-/d | |
3621 | /^In archive [^:]*:/d | |
3622 | # Ensure marker is printed | |
3623 | /^====MARK====/p | |
3624 | # Remove all lines with less than 43 characters | |
3625 | /^.\{43\}/!d | |
3626 | # From remaining lines, remove first 43 characters | |
3627 | s/^.\{43\}//' | | |
3628 | $SED -n ' | |
3629 | # Join marker and all lines until next marker into a single line | |
3630 | /^====MARK====/ b para | |
3631 | H | |
3632 | $ b para | |
3633 | b | |
3634 | :para | |
3635 | x | |
3636 | s/\n//g | |
3637 | # Remove the marker | |
3638 | s/^====MARK====// | |
3639 | # Remove trailing dots and whitespace | |
3640 | s/[\. \t]*$// | |
3641 | ||
3642 | /./p' | | |
3643 | # we now have a list, one entry per line, of the stringified | |
3644 | # contents of the appropriate section of all members of the | |
3645 | # archive which possess that section. Heuristic: eliminate | |
3646 | # all those which have a first or second character that is | |
3647 | # a '.' (that is, objdump's representation of an unprintable | |
3648 | # character.) This should work for all archives with less than | |
3649 | # 0x302f exports -- but will fail for DLLs whose name actually | |
3650 | # begins with a literal '.' or a single character followed by | |
3651 | # a '.'. | |
3652 | # | |
3653 | # Of those that remain, print the first one. | |
3654 | $SED -e '/^\./d;/^.\./d;q' | |
3655 | } | |
3656 | ||
3657 | # func_cygming_gnu_implib_p ARG | |
3658 | # This predicate returns with zero status (TRUE) if | |
3659 | # ARG is a GNU/binutils-style import library. Returns | |
3660 | # with nonzero status (FALSE) otherwise. | |
3661 | func_cygming_gnu_implib_p () | |
3662 | { | |
3663 | $opt_debug | |
3664 | func_to_tool_file "$1" func_convert_file_msys_to_w32 | |
3665 | func_cygming_gnu_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $EGREP ' (_head_[A-Za-z0-9_]+_[ad]l*|[A-Za-z0-9_]+_[ad]l*_iname)$'` | |
3666 | test -n "$func_cygming_gnu_implib_tmp" | |
3667 | } | |
3668 | ||
3669 | # func_cygming_ms_implib_p ARG | |
3670 | # This predicate returns with zero status (TRUE) if | |
3671 | # ARG is an MS-style import library. Returns | |
3672 | # with nonzero status (FALSE) otherwise. | |
3673 | func_cygming_ms_implib_p () | |
3674 | { | |
3675 | $opt_debug | |
3676 | func_to_tool_file "$1" func_convert_file_msys_to_w32 | |
3677 | func_cygming_ms_implib_tmp=`$NM "$func_to_tool_file_result" | eval "$global_symbol_pipe" | $GREP '_NULL_IMPORT_DESCRIPTOR'` | |
3678 | test -n "$func_cygming_ms_implib_tmp" | |
3679 | } | |
3680 | ||
3681 | # func_cygming_dll_for_implib_fallback ARG | |
3682 | # Platform-specific function to extract the | |
3683 | # name of the DLL associated with the specified | |
3684 | # import library ARG. | |
3685 | # | |
3686 | # This fallback implementation is for use when $DLLTOOL | |
3687 | # does not support the --identify-strict option. | |
3688 | # Invoked by eval'ing the libtool variable | |
3689 | # $sharedlib_from_linklib_cmd | |
3690 | # Result is available in the variable | |
3691 | # $sharedlib_from_linklib_result | |
3692 | func_cygming_dll_for_implib_fallback () | |
3693 | { | |
3694 | $opt_debug | |
3695 | if func_cygming_gnu_implib_p "$1" ; then | |
3696 | # binutils import library | |
3697 | sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$7' "$1"` | |
3698 | elif func_cygming_ms_implib_p "$1" ; then | |
3699 | # ms-generated import library | |
3700 | sharedlib_from_linklib_result=`func_cygming_dll_for_implib_fallback_core '.idata$6' "$1"` | |
3701 | else | |
3702 | # unknown | |
3703 | sharedlib_from_linklib_result="" | |
3704 | fi | |
3705 | } | |
2819 | 3706 | |
2820 | 3707 | |
2821 | 3708 | # func_extract_an_archive dir oldlib |
3194 | 4081 | |
3195 | 4082 | if test -f \"\$progdir/\$program\"; then" |
3196 | 4083 | |
4084 | # fixup the dll searchpath if we need to. | |
4085 | # | |
4086 | # Fix the DLL searchpath if we need to. Do this before prepending | |
4087 | # to shlibpath, because on Windows, both are PATH and uninstalled | |
4088 | # libraries must come first. | |
4089 | if test -n "$dllsearchpath"; then | |
4090 | $ECHO "\ | |
4091 | # Add the dll search path components to the executable PATH | |
4092 | PATH=$dllsearchpath:\$PATH | |
4093 | " | |
4094 | fi | |
4095 | ||
3197 | 4096 | # Export our shlibpath_var if we have one. |
3198 | 4097 | if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then |
3199 | 4098 | $ECHO "\ |
3205 | 4104 | $shlibpath_var=\`\$ECHO \"\$$shlibpath_var\" | $SED 's/::*\$//'\` |
3206 | 4105 | |
3207 | 4106 | export $shlibpath_var |
3208 | " | |
3209 | fi | |
3210 | ||
3211 | # fixup the dll searchpath if we need to. | |
3212 | if test -n "$dllsearchpath"; then | |
3213 | $ECHO "\ | |
3214 | # Add the dll search path components to the executable PATH | |
3215 | PATH=$dllsearchpath:\$PATH | |
3216 | 4107 | " |
3217 | 4108 | fi |
3218 | 4109 | |
3232 | 4123 | " |
3233 | 4124 | } |
3234 | 4125 | |
3235 | ||
3236 | # func_to_host_path arg | |
3237 | # | |
3238 | # Convert paths to host format when used with build tools. | |
3239 | # Intended for use with "native" mingw (where libtool itself | |
3240 | # is running under the msys shell), or in the following cross- | |
3241 | # build environments: | |
3242 | # $build $host | |
3243 | # mingw (msys) mingw [e.g. native] | |
3244 | # cygwin mingw | |
3245 | # *nix + wine mingw | |
3246 | # where wine is equipped with the `winepath' executable. | |
3247 | # In the native mingw case, the (msys) shell automatically | |
3248 | # converts paths for any non-msys applications it launches, | |
3249 | # but that facility isn't available from inside the cwrapper. | |
3250 | # Similar accommodations are necessary for $host mingw and | |
3251 | # $build cygwin. Calling this function does no harm for other | |
3252 | # $host/$build combinations not listed above. | |
3253 | # | |
3254 | # ARG is the path (on $build) that should be converted to | |
3255 | # the proper representation for $host. The result is stored | |
3256 | # in $func_to_host_path_result. | |
3257 | func_to_host_path () | |
3258 | { | |
3259 | func_to_host_path_result="$1" | |
3260 | if test -n "$1"; then | |
3261 | case $host in | |
3262 | *mingw* ) | |
3263 | lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | |
3264 | case $build in | |
3265 | *mingw* ) # actually, msys | |
3266 | # awkward: cmd appends spaces to result | |
3267 | func_to_host_path_result=`( cmd //c echo "$1" ) 2>/dev/null | | |
3268 | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | |
3269 | ;; | |
3270 | *cygwin* ) | |
3271 | func_to_host_path_result=`cygpath -w "$1" | | |
3272 | $SED -e "$lt_sed_naive_backslashify"` | |
3273 | ;; | |
3274 | * ) | |
3275 | # Unfortunately, winepath does not exit with a non-zero | |
3276 | # error code, so we are forced to check the contents of | |
3277 | # stdout. On the other hand, if the command is not | |
3278 | # found, the shell will set an exit code of 127 and print | |
3279 | # *an error message* to stdout. So we must check for both | |
3280 | # error code of zero AND non-empty stdout, which explains | |
3281 | # the odd construction: | |
3282 | func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null` | |
3283 | if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then | |
3284 | func_to_host_path_result=`$ECHO "$func_to_host_path_tmp1" | | |
3285 | $SED -e "$lt_sed_naive_backslashify"` | |
3286 | else | |
3287 | # Allow warning below. | |
3288 | func_to_host_path_result= | |
3289 | fi | |
3290 | ;; | |
3291 | esac | |
3292 | if test -z "$func_to_host_path_result" ; then | |
3293 | func_error "Could not determine host path corresponding to" | |
3294 | func_error " \`$1'" | |
3295 | func_error "Continuing, but uninstalled executables may not work." | |
3296 | # Fallback: | |
3297 | func_to_host_path_result="$1" | |
3298 | fi | |
3299 | ;; | |
3300 | esac | |
3301 | fi | |
3302 | } | |
3303 | # end: func_to_host_path | |
3304 | ||
3305 | # func_to_host_pathlist arg | |
3306 | # | |
3307 | # Convert pathlists to host format when used with build tools. | |
3308 | # See func_to_host_path(), above. This function supports the | |
3309 | # following $build/$host combinations (but does no harm for | |
3310 | # combinations not listed here): | |
3311 | # $build $host | |
3312 | # mingw (msys) mingw [e.g. native] | |
3313 | # cygwin mingw | |
3314 | # *nix + wine mingw | |
3315 | # | |
3316 | # Path separators are also converted from $build format to | |
3317 | # $host format. If ARG begins or ends with a path separator | |
3318 | # character, it is preserved (but converted to $host format) | |
3319 | # on output. | |
3320 | # | |
3321 | # ARG is a pathlist (on $build) that should be converted to | |
3322 | # the proper representation on $host. The result is stored | |
3323 | # in $func_to_host_pathlist_result. | |
3324 | func_to_host_pathlist () | |
3325 | { | |
3326 | func_to_host_pathlist_result="$1" | |
3327 | if test -n "$1"; then | |
3328 | case $host in | |
3329 | *mingw* ) | |
3330 | lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g' | |
3331 | # Remove leading and trailing path separator characters from | |
3332 | # ARG. msys behavior is inconsistent here, cygpath turns them | |
3333 | # into '.;' and ';.', and winepath ignores them completely. | |
3334 | func_stripname : : "$1" | |
3335 | func_to_host_pathlist_tmp1=$func_stripname_result | |
3336 | case $build in | |
3337 | *mingw* ) # Actually, msys. | |
3338 | # Awkward: cmd appends spaces to result. | |
3339 | func_to_host_pathlist_result=` | |
3340 | ( cmd //c echo "$func_to_host_pathlist_tmp1" ) 2>/dev/null | | |
3341 | $SED -e 's/[ ]*$//' -e "$lt_sed_naive_backslashify"` | |
3342 | ;; | |
3343 | *cygwin* ) | |
3344 | func_to_host_pathlist_result=`cygpath -w -p "$func_to_host_pathlist_tmp1" | | |
3345 | $SED -e "$lt_sed_naive_backslashify"` | |
3346 | ;; | |
3347 | * ) | |
3348 | # unfortunately, winepath doesn't convert pathlists | |
3349 | func_to_host_pathlist_result="" | |
3350 | func_to_host_pathlist_oldIFS=$IFS | |
3351 | IFS=: | |
3352 | for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do | |
3353 | IFS=$func_to_host_pathlist_oldIFS | |
3354 | if test -n "$func_to_host_pathlist_f" ; then | |
3355 | func_to_host_path "$func_to_host_pathlist_f" | |
3356 | if test -n "$func_to_host_path_result" ; then | |
3357 | if test -z "$func_to_host_pathlist_result" ; then | |
3358 | func_to_host_pathlist_result="$func_to_host_path_result" | |
3359 | else | |
3360 | func_append func_to_host_pathlist_result ";$func_to_host_path_result" | |
3361 | fi | |
3362 | fi | |
3363 | fi | |
3364 | done | |
3365 | IFS=$func_to_host_pathlist_oldIFS | |
3366 | ;; | |
3367 | esac | |
3368 | if test -z "$func_to_host_pathlist_result"; then | |
3369 | func_error "Could not determine the host path(s) corresponding to" | |
3370 | func_error " \`$1'" | |
3371 | func_error "Continuing, but uninstalled executables may not work." | |
3372 | # Fallback. This may break if $1 contains DOS-style drive | |
3373 | # specifications. The fix is not to complicate the expression | |
3374 | # below, but for the user to provide a working wine installation | |
3375 | # with winepath so that path translation in the cross-to-mingw | |
3376 | # case works properly. | |
3377 | lt_replace_pathsep_nix_to_dos="s|:|;|g" | |
3378 | func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\ | |
3379 | $SED -e "$lt_replace_pathsep_nix_to_dos"` | |
3380 | fi | |
3381 | # Now, add the leading and trailing path separators back | |
3382 | case "$1" in | |
3383 | :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result" | |
3384 | ;; | |
3385 | esac | |
3386 | case "$1" in | |
3387 | *: ) func_append func_to_host_pathlist_result ";" | |
3388 | ;; | |
3389 | esac | |
3390 | ;; | |
3391 | esac | |
3392 | fi | |
3393 | } | |
3394 | # end: func_to_host_pathlist | |
3395 | 4126 | |
3396 | 4127 | # func_emit_cwrapperexe_src |
3397 | 4128 | # emit the source code for a wrapper executable on stdout |
3562 | 4293 | EOF |
3563 | 4294 | |
3564 | 4295 | cat <<EOF |
3565 | const char * MAGIC_EXE = "$magic_exe"; | |
4296 | volatile const char * MAGIC_EXE = "$magic_exe"; | |
3566 | 4297 | const char * LIB_PATH_VARNAME = "$shlibpath_var"; |
3567 | 4298 | EOF |
3568 | 4299 | |
3569 | 4300 | if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then |
3570 | func_to_host_pathlist "$temp_rpath" | |
4301 | func_to_host_path "$temp_rpath" | |
3571 | 4302 | cat <<EOF |
3572 | const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result"; | |
4303 | const char * LIB_PATH_VALUE = "$func_to_host_path_result"; | |
3573 | 4304 | EOF |
3574 | 4305 | else |
3575 | 4306 | cat <<"EOF" |
3578 | 4309 | fi |
3579 | 4310 | |
3580 | 4311 | if test -n "$dllsearchpath"; then |
3581 | func_to_host_pathlist "$dllsearchpath:" | |
4312 | func_to_host_path "$dllsearchpath:" | |
3582 | 4313 | cat <<EOF |
3583 | 4314 | const char * EXE_PATH_VARNAME = "PATH"; |
3584 | const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result"; | |
4315 | const char * EXE_PATH_VALUE = "$func_to_host_path_result"; | |
3585 | 4316 | EOF |
3586 | 4317 | else |
3587 | 4318 | cat <<"EOF" |
3764 | 4495 | |
3765 | 4496 | lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */ |
3766 | 4497 | lt_setenv ("DUALCASE", "1"); /* for MSK sh */ |
4498 | /* Update the DLL searchpath. EXE_PATH_VALUE ($dllsearchpath) must | |
4499 | be prepended before (that is, appear after) LIB_PATH_VALUE ($temp_rpath) | |
4500 | because on Windows, both *_VARNAMEs are PATH but uninstalled | |
4501 | libraries must come first. */ | |
4502 | lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); | |
3767 | 4503 | lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE); |
3768 | lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE); | |
3769 | 4504 | |
3770 | 4505 | lt_debugprintf (__FILE__, __LINE__, "(main) lt_argv_zero: %s\n", |
3771 | 4506 | nonnull (lt_argv_zero)); |
4514 | 5249 | ;; |
4515 | 5250 | *) |
4516 | 5251 | if test "$prev" = dlfiles; then |
4517 | dlfiles="$dlfiles $arg" | |
5252 | func_append dlfiles " $arg" | |
4518 | 5253 | else |
4519 | dlprefiles="$dlprefiles $arg" | |
5254 | func_append dlprefiles " $arg" | |
4520 | 5255 | fi |
4521 | 5256 | prev= |
4522 | 5257 | continue |
4540 | 5275 | *-*-darwin*) |
4541 | 5276 | case "$deplibs " in |
4542 | 5277 | *" $qarg.ltframework "*) ;; |
4543 | *) deplibs="$deplibs $qarg.ltframework" # this is fixed later | |
5278 | *) func_append deplibs " $qarg.ltframework" # this is fixed later | |
4544 | 5279 | ;; |
4545 | 5280 | esac |
4546 | 5281 | ;; |
4559 | 5294 | moreargs= |
4560 | 5295 | for fil in `cat "$save_arg"` |
4561 | 5296 | do |
4562 | # moreargs="$moreargs $fil" | |
5297 | # func_append moreargs " $fil" | |
4563 | 5298 | arg=$fil |
4564 | 5299 | # A libtool-controlled object. |
4565 | 5300 | |
4588 | 5323 | |
4589 | 5324 | if test "$prev" = dlfiles; then |
4590 | 5325 | if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then |
4591 | dlfiles="$dlfiles $pic_object" | |
5326 | func_append dlfiles " $pic_object" | |
4592 | 5327 | prev= |
4593 | 5328 | continue |
4594 | 5329 | else |
4600 | 5335 | # CHECK ME: I think I busted this. -Ossama |
4601 | 5336 | if test "$prev" = dlprefiles; then |
4602 | 5337 | # Preload the old-style object. |
4603 | dlprefiles="$dlprefiles $pic_object" | |
5338 | func_append dlprefiles " $pic_object" | |
4604 | 5339 | prev= |
4605 | 5340 | fi |
4606 | 5341 | |
4670 | 5405 | if test "$prev" = rpath; then |
4671 | 5406 | case "$rpath " in |
4672 | 5407 | *" $arg "*) ;; |
4673 | *) rpath="$rpath $arg" ;; | |
5408 | *) func_append rpath " $arg" ;; | |
4674 | 5409 | esac |
4675 | 5410 | else |
4676 | 5411 | case "$xrpath " in |
4677 | 5412 | *" $arg "*) ;; |
4678 | *) xrpath="$xrpath $arg" ;; | |
5413 | *) func_append xrpath " $arg" ;; | |
4679 | 5414 | esac |
4680 | 5415 | fi |
4681 | 5416 | prev= |
4687 | 5422 | continue |
4688 | 5423 | ;; |
4689 | 5424 | weak) |
4690 | weak_libs="$weak_libs $arg" | |
5425 | func_append weak_libs " $arg" | |
4691 | 5426 | prev= |
4692 | 5427 | continue |
4693 | 5428 | ;; |
4694 | 5429 | xcclinker) |
4695 | linker_flags="$linker_flags $qarg" | |
4696 | compiler_flags="$compiler_flags $qarg" | |
5430 | func_append linker_flags " $qarg" | |
5431 | func_append compiler_flags " $qarg" | |
4697 | 5432 | prev= |
4698 | 5433 | func_append compile_command " $qarg" |
4699 | 5434 | func_append finalize_command " $qarg" |
4700 | 5435 | continue |
4701 | 5436 | ;; |
4702 | 5437 | xcompiler) |
4703 | compiler_flags="$compiler_flags $qarg" | |
5438 | func_append compiler_flags " $qarg" | |
4704 | 5439 | prev= |
4705 | 5440 | func_append compile_command " $qarg" |
4706 | 5441 | func_append finalize_command " $qarg" |
4707 | 5442 | continue |
4708 | 5443 | ;; |
4709 | 5444 | xlinker) |
4710 | linker_flags="$linker_flags $qarg" | |
4711 | compiler_flags="$compiler_flags $wl$qarg" | |
5445 | func_append linker_flags " $qarg" | |
5446 | func_append compiler_flags " $wl$qarg" | |
4712 | 5447 | prev= |
4713 | 5448 | func_append compile_command " $wl$qarg" |
4714 | 5449 | func_append finalize_command " $wl$qarg" |
4799 | 5534 | ;; |
4800 | 5535 | |
4801 | 5536 | -L*) |
4802 | func_stripname '-L' '' "$arg" | |
4803 | dir=$func_stripname_result | |
4804 | if test -z "$dir"; then | |
5537 | func_stripname "-L" '' "$arg" | |
5538 | if test -z "$func_stripname_result"; then | |
4805 | 5539 | if test "$#" -gt 0; then |
4806 | 5540 | func_fatal_error "require no space between \`-L' and \`$1'" |
4807 | 5541 | else |
4808 | 5542 | func_fatal_error "need path for \`-L' option" |
4809 | 5543 | fi |
4810 | 5544 | fi |
5545 | func_resolve_sysroot "$func_stripname_result" | |
5546 | dir=$func_resolve_sysroot_result | |
4811 | 5547 | # We need an absolute path. |
4812 | 5548 | case $dir in |
4813 | 5549 | [\\/]* | [A-Za-z]:[\\/]*) ;; |
4819 | 5555 | ;; |
4820 | 5556 | esac |
4821 | 5557 | case "$deplibs " in |
4822 | *" -L$dir "*) ;; | |
5558 | *" -L$dir "* | *" $arg "*) | |
5559 | # Will only happen for absolute or sysroot arguments | |
5560 | ;; | |
4823 | 5561 | *) |
4824 | deplibs="$deplibs -L$dir" | |
4825 | lib_search_path="$lib_search_path $dir" | |
5562 | # Preserve sysroot, but never include relative directories | |
5563 | case $dir in | |
5564 | [\\/]* | [A-Za-z]:[\\/]* | =*) func_append deplibs " $arg" ;; | |
5565 | *) func_append deplibs " -L$dir" ;; | |
5566 | esac | |
5567 | func_append lib_search_path " $dir" | |
4826 | 5568 | ;; |
4827 | 5569 | esac |
4828 | 5570 | case $host in |
4831 | 5573 | case :$dllsearchpath: in |
4832 | 5574 | *":$dir:"*) ;; |
4833 | 5575 | ::) dllsearchpath=$dir;; |
4834 | *) dllsearchpath="$dllsearchpath:$dir";; | |
5576 | *) func_append dllsearchpath ":$dir";; | |
4835 | 5577 | esac |
4836 | 5578 | case :$dllsearchpath: in |
4837 | 5579 | *":$testbindir:"*) ;; |
4838 | 5580 | ::) dllsearchpath=$testbindir;; |
4839 | *) dllsearchpath="$dllsearchpath:$testbindir";; | |
5581 | *) func_append dllsearchpath ":$testbindir";; | |
4840 | 5582 | esac |
4841 | 5583 | ;; |
4842 | 5584 | esac |
4860 | 5602 | ;; |
4861 | 5603 | *-*-rhapsody* | *-*-darwin1.[012]) |
4862 | 5604 | # Rhapsody C and math libraries are in the System framework |
4863 | deplibs="$deplibs System.ltframework" | |
5605 | func_append deplibs " System.ltframework" | |
4864 | 5606 | continue |
4865 | 5607 | ;; |
4866 | 5608 | *-*-sco3.2v5* | *-*-sco5v6*) |
4880 | 5622 | ;; |
4881 | 5623 | esac |
4882 | 5624 | fi |
4883 | deplibs="$deplibs $arg" | |
5625 | func_append deplibs " $arg" | |
4884 | 5626 | continue |
4885 | 5627 | ;; |
4886 | 5628 | |
4892 | 5634 | # Tru64 UNIX uses -model [arg] to determine the layout of C++ |
4893 | 5635 | # classes, name mangling, and exception handling. |
4894 | 5636 | # Darwin uses the -arch flag to determine output architecture. |
4895 | -model|-arch|-isysroot) | |
4896 | compiler_flags="$compiler_flags $arg" | |
5637 | -model|-arch|-isysroot|--sysroot) | |
5638 | func_append compiler_flags " $arg" | |
4897 | 5639 | func_append compile_command " $arg" |
4898 | 5640 | func_append finalize_command " $arg" |
4899 | 5641 | prev=xcompiler |
4901 | 5643 | ;; |
4902 | 5644 | |
4903 | 5645 | -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads) |
4904 | compiler_flags="$compiler_flags $arg" | |
5646 | func_append compiler_flags " $arg" | |
4905 | 5647 | func_append compile_command " $arg" |
4906 | 5648 | func_append finalize_command " $arg" |
4907 | 5649 | case "$new_inherited_linker_flags " in |
4908 | 5650 | *" $arg "*) ;; |
4909 | * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;; | |
5651 | * ) func_append new_inherited_linker_flags " $arg" ;; | |
4910 | 5652 | esac |
4911 | 5653 | continue |
4912 | 5654 | ;; |
4973 | 5715 | # We need an absolute path. |
4974 | 5716 | case $dir in |
4975 | 5717 | [\\/]* | [A-Za-z]:[\\/]*) ;; |
5718 | =*) | |
5719 | func_stripname '=' '' "$dir" | |
5720 | dir=$lt_sysroot$func_stripname_result | |
5721 | ;; | |
4976 | 5722 | *) |
4977 | 5723 | func_fatal_error "only absolute run-paths are allowed" |
4978 | 5724 | ;; |
4979 | 5725 | esac |
4980 | 5726 | case "$xrpath " in |
4981 | 5727 | *" $dir "*) ;; |
4982 | *) xrpath="$xrpath $dir" ;; | |
5728 | *) func_append xrpath " $dir" ;; | |
4983 | 5729 | esac |
4984 | 5730 | continue |
4985 | 5731 | ;; |
5032 | 5778 | for flag in $args; do |
5033 | 5779 | IFS="$save_ifs" |
5034 | 5780 | func_quote_for_eval "$flag" |
5035 | arg="$arg $func_quote_for_eval_result" | |
5036 | compiler_flags="$compiler_flags $func_quote_for_eval_result" | |
5781 | func_append arg " $func_quote_for_eval_result" | |
5782 | func_append compiler_flags " $func_quote_for_eval_result" | |
5037 | 5783 | done |
5038 | 5784 | IFS="$save_ifs" |
5039 | 5785 | func_stripname ' ' '' "$arg" |
5048 | 5794 | for flag in $args; do |
5049 | 5795 | IFS="$save_ifs" |
5050 | 5796 | func_quote_for_eval "$flag" |
5051 | arg="$arg $wl$func_quote_for_eval_result" | |
5052 | compiler_flags="$compiler_flags $wl$func_quote_for_eval_result" | |
5053 | linker_flags="$linker_flags $func_quote_for_eval_result" | |
5797 | func_append arg " $wl$func_quote_for_eval_result" | |
5798 | func_append compiler_flags " $wl$func_quote_for_eval_result" | |
5799 | func_append linker_flags " $func_quote_for_eval_result" | |
5054 | 5800 | done |
5055 | 5801 | IFS="$save_ifs" |
5056 | 5802 | func_stripname ' ' '' "$arg" |
5089 | 5835 | # -p, -pg, --coverage, -fprofile-* profiling flags for GCC |
5090 | 5836 | # @file GCC response files |
5091 | 5837 | # -tp=* Portland pgcc target processor selection |
5838 | # --sysroot=* for sysroot support | |
5839 | # -O*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization | |
5092 | 5840 | -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ |
5093 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*) | |
5841 | -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ | |
5842 | -O*|-flto*|-fwhopr*|-fuse-linker-plugin) | |
5094 | 5843 | func_quote_for_eval "$arg" |
5095 | 5844 | arg="$func_quote_for_eval_result" |
5096 | 5845 | func_append compile_command " $arg" |
5097 | 5846 | func_append finalize_command " $arg" |
5098 | compiler_flags="$compiler_flags $arg" | |
5847 | func_append compiler_flags " $arg" | |
5099 | 5848 | continue |
5100 | 5849 | ;; |
5101 | 5850 | |
5107 | 5856 | |
5108 | 5857 | *.$objext) |
5109 | 5858 | # A standard object. |
5110 | objs="$objs $arg" | |
5859 | func_append objs " $arg" | |
5111 | 5860 | ;; |
5112 | 5861 | |
5113 | 5862 | *.lo) |
5138 | 5887 | |
5139 | 5888 | if test "$prev" = dlfiles; then |
5140 | 5889 | if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then |
5141 | dlfiles="$dlfiles $pic_object" | |
5890 | func_append dlfiles " $pic_object" | |
5142 | 5891 | prev= |
5143 | 5892 | continue |
5144 | 5893 | else |
5150 | 5899 | # CHECK ME: I think I busted this. -Ossama |
5151 | 5900 | if test "$prev" = dlprefiles; then |
5152 | 5901 | # Preload the old-style object. |
5153 | dlprefiles="$dlprefiles $pic_object" | |
5902 | func_append dlprefiles " $pic_object" | |
5154 | 5903 | prev= |
5155 | 5904 | fi |
5156 | 5905 | |
5195 | 5944 | |
5196 | 5945 | *.$libext) |
5197 | 5946 | # An archive. |
5198 | deplibs="$deplibs $arg" | |
5199 | old_deplibs="$old_deplibs $arg" | |
5947 | func_append deplibs " $arg" | |
5948 | func_append old_deplibs " $arg" | |
5200 | 5949 | continue |
5201 | 5950 | ;; |
5202 | 5951 | |
5203 | 5952 | *.la) |
5204 | 5953 | # A libtool-controlled library. |
5205 | 5954 | |
5955 | func_resolve_sysroot "$arg" | |
5206 | 5956 | if test "$prev" = dlfiles; then |
5207 | 5957 | # This library was specified with -dlopen. |
5208 | dlfiles="$dlfiles $arg" | |
5958 | func_append dlfiles " $func_resolve_sysroot_result" | |
5209 | 5959 | prev= |
5210 | 5960 | elif test "$prev" = dlprefiles; then |
5211 | 5961 | # The library was specified with -dlpreopen. |
5212 | dlprefiles="$dlprefiles $arg" | |
5962 | func_append dlprefiles " $func_resolve_sysroot_result" | |
5213 | 5963 | prev= |
5214 | 5964 | else |
5215 | deplibs="$deplibs $arg" | |
5965 | func_append deplibs " $func_resolve_sysroot_result" | |
5216 | 5966 | fi |
5217 | 5967 | continue |
5218 | 5968 | ;; |
5259 | 6009 | |
5260 | 6010 | func_dirname "$output" "/" "" |
5261 | 6011 | output_objdir="$func_dirname_result$objdir" |
6012 | func_to_tool_file "$output_objdir/" | |
6013 | tool_output_objdir=$func_to_tool_file_result | |
5262 | 6014 | # Create the object directory. |
5263 | 6015 | func_mkdir_p "$output_objdir" |
5264 | 6016 | |
5279 | 6031 | # Find all interdependent deplibs by searching for libraries |
5280 | 6032 | # that are linked more than once (e.g. -la -lb -la) |
5281 | 6033 | for deplib in $deplibs; do |
5282 | if $opt_duplicate_deps ; then | |
6034 | if $opt_preserve_dup_deps ; then | |
5283 | 6035 | case "$libs " in |
5284 | *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | |
6036 | *" $deplib "*) func_append specialdeplibs " $deplib" ;; | |
5285 | 6037 | esac |
5286 | 6038 | fi |
5287 | libs="$libs $deplib" | |
6039 | func_append libs " $deplib" | |
5288 | 6040 | done |
5289 | 6041 | |
5290 | 6042 | if test "$linkmode" = lib; then |
5297 | 6049 | if $opt_duplicate_compiler_generated_deps; then |
5298 | 6050 | for pre_post_dep in $predeps $postdeps; do |
5299 | 6051 | case "$pre_post_deps " in |
5300 | *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;; | |
6052 | *" $pre_post_dep "*) func_append specialdeplibs " $pre_post_deps" ;; | |
5301 | 6053 | esac |
5302 | pre_post_deps="$pre_post_deps $pre_post_dep" | |
6054 | func_append pre_post_deps " $pre_post_dep" | |
5303 | 6055 | done |
5304 | 6056 | fi |
5305 | 6057 | pre_post_deps= |
5366 | 6118 | for lib in $dlprefiles; do |
5367 | 6119 | # Ignore non-libtool-libs |
5368 | 6120 | dependency_libs= |
6121 | func_resolve_sysroot "$lib" | |
5369 | 6122 | case $lib in |
5370 | *.la) func_source "$lib" ;; | |
6123 | *.la) func_source "$func_resolve_sysroot_result" ;; | |
5371 | 6124 | esac |
5372 | 6125 | |
5373 | 6126 | # Collect preopened libtool deplibs, except any this library |
5377 | 6130 | deplib_base=$func_basename_result |
5378 | 6131 | case " $weak_libs " in |
5379 | 6132 | *" $deplib_base "*) ;; |
5380 | *) deplibs="$deplibs $deplib" ;; | |
6133 | *) func_append deplibs " $deplib" ;; | |
5381 | 6134 | esac |
5382 | 6135 | done |
5383 | 6136 | done |
5398 | 6151 | compile_deplibs="$deplib $compile_deplibs" |
5399 | 6152 | finalize_deplibs="$deplib $finalize_deplibs" |
5400 | 6153 | else |
5401 | compiler_flags="$compiler_flags $deplib" | |
6154 | func_append compiler_flags " $deplib" | |
5402 | 6155 | if test "$linkmode" = lib ; then |
5403 | 6156 | case "$new_inherited_linker_flags " in |
5404 | 6157 | *" $deplib "*) ;; |
5405 | * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; | |
6158 | * ) func_append new_inherited_linker_flags " $deplib" ;; | |
5406 | 6159 | esac |
5407 | 6160 | fi |
5408 | 6161 | fi |
5487 | 6240 | if test "$linkmode" = lib ; then |
5488 | 6241 | case "$new_inherited_linker_flags " in |
5489 | 6242 | *" $deplib "*) ;; |
5490 | * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;; | |
6243 | * ) func_append new_inherited_linker_flags " $deplib" ;; | |
5491 | 6244 | esac |
5492 | 6245 | fi |
5493 | 6246 | fi |
5500 | 6253 | test "$pass" = conv && continue |
5501 | 6254 | newdependency_libs="$deplib $newdependency_libs" |
5502 | 6255 | func_stripname '-L' '' "$deplib" |
5503 | newlib_search_path="$newlib_search_path $func_stripname_result" | |
6256 | func_resolve_sysroot "$func_stripname_result" | |
6257 | func_append newlib_search_path " $func_resolve_sysroot_result" | |
5504 | 6258 | ;; |
5505 | 6259 | prog) |
5506 | 6260 | if test "$pass" = conv; then |
5514 | 6268 | finalize_deplibs="$deplib $finalize_deplibs" |
5515 | 6269 | fi |
5516 | 6270 | func_stripname '-L' '' "$deplib" |
5517 | newlib_search_path="$newlib_search_path $func_stripname_result" | |
6271 | func_resolve_sysroot "$func_stripname_result" | |
6272 | func_append newlib_search_path " $func_resolve_sysroot_result" | |
5518 | 6273 | ;; |
5519 | 6274 | *) |
5520 | 6275 | func_warning "\`-L' is ignored for archives/objects" |
5525 | 6280 | -R*) |
5526 | 6281 | if test "$pass" = link; then |
5527 | 6282 | func_stripname '-R' '' "$deplib" |
5528 | dir=$func_stripname_result | |
6283 | func_resolve_sysroot "$func_stripname_result" | |
6284 | dir=$func_resolve_sysroot_result | |
5529 | 6285 | # Make sure the xrpath contains only unique directories. |
5530 | 6286 | case "$xrpath " in |
5531 | 6287 | *" $dir "*) ;; |
5532 | *) xrpath="$xrpath $dir" ;; | |
6288 | *) func_append xrpath " $dir" ;; | |
5533 | 6289 | esac |
5534 | 6290 | fi |
5535 | 6291 | deplibs="$deplib $deplibs" |
5536 | 6292 | continue |
5537 | 6293 | ;; |
5538 | *.la) lib="$deplib" ;; | |
6294 | *.la) | |
6295 | func_resolve_sysroot "$deplib" | |
6296 | lib=$func_resolve_sysroot_result | |
6297 | ;; | |
5539 | 6298 | *.$libext) |
5540 | 6299 | if test "$pass" = conv; then |
5541 | 6300 | deplibs="$deplib $deplibs" |
5598 | 6357 | if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then |
5599 | 6358 | # If there is no dlopen support or we're linking statically, |
5600 | 6359 | # we need to preload. |
5601 | newdlprefiles="$newdlprefiles $deplib" | |
6360 | func_append newdlprefiles " $deplib" | |
5602 | 6361 | compile_deplibs="$deplib $compile_deplibs" |
5603 | 6362 | finalize_deplibs="$deplib $finalize_deplibs" |
5604 | 6363 | else |
5605 | newdlfiles="$newdlfiles $deplib" | |
6364 | func_append newdlfiles " $deplib" | |
5606 | 6365 | fi |
5607 | 6366 | fi |
5608 | 6367 | continue |
5648 | 6407 | for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do |
5649 | 6408 | case " $new_inherited_linker_flags " in |
5650 | 6409 | *" $tmp_inherited_linker_flag "*) ;; |
5651 | *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";; | |
6410 | *) func_append new_inherited_linker_flags " $tmp_inherited_linker_flag";; | |
5652 | 6411 | esac |
5653 | 6412 | done |
5654 | 6413 | fi |
5656 | 6415 | if test "$linkmode,$pass" = "lib,link" || |
5657 | 6416 | test "$linkmode,$pass" = "prog,scan" || |
5658 | 6417 | { test "$linkmode" != prog && test "$linkmode" != lib; }; then |
5659 | test -n "$dlopen" && dlfiles="$dlfiles $dlopen" | |
5660 | test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen" | |
6418 | test -n "$dlopen" && func_append dlfiles " $dlopen" | |
6419 | test -n "$dlpreopen" && func_append dlprefiles " $dlpreopen" | |
5661 | 6420 | fi |
5662 | 6421 | |
5663 | 6422 | if test "$pass" = conv; then |
5668 | 6427 | func_fatal_error "cannot find name of link library for \`$lib'" |
5669 | 6428 | fi |
5670 | 6429 | # It is a libtool convenience library, so add in its objects. |
5671 | convenience="$convenience $ladir/$objdir/$old_library" | |
5672 | old_convenience="$old_convenience $ladir/$objdir/$old_library" | |
6430 | func_append convenience " $ladir/$objdir/$old_library" | |
6431 | func_append old_convenience " $ladir/$objdir/$old_library" | |
5673 | 6432 | elif test "$linkmode" != prog && test "$linkmode" != lib; then |
5674 | 6433 | func_fatal_error "\`$lib' is not a convenience library" |
5675 | 6434 | fi |
5676 | 6435 | tmp_libs= |
5677 | 6436 | for deplib in $dependency_libs; do |
5678 | 6437 | deplibs="$deplib $deplibs" |
5679 | if $opt_duplicate_deps ; then | |
6438 | if $opt_preserve_dup_deps ; then | |
5680 | 6439 | case "$tmp_libs " in |
5681 | *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | |
6440 | *" $deplib "*) func_append specialdeplibs " $deplib" ;; | |
5682 | 6441 | esac |
5683 | 6442 | fi |
5684 | tmp_libs="$tmp_libs $deplib" | |
6443 | func_append tmp_libs " $deplib" | |
5685 | 6444 | done |
5686 | 6445 | continue |
5687 | 6446 | fi # $pass = conv |
5689 | 6448 | |
5690 | 6449 | # Get the name of the library we link against. |
5691 | 6450 | linklib= |
5692 | for l in $old_library $library_names; do | |
5693 | linklib="$l" | |
5694 | done | |
6451 | if test -n "$old_library" && | |
6452 | { test "$prefer_static_libs" = yes || | |
6453 | test "$prefer_static_libs,$installed" = "built,no"; }; then | |
6454 | linklib=$old_library | |
6455 | else | |
6456 | for l in $old_library $library_names; do | |
6457 | linklib="$l" | |
6458 | done | |
6459 | fi | |
5695 | 6460 | if test -z "$linklib"; then |
5696 | 6461 | func_fatal_error "cannot find name of link library for \`$lib'" |
5697 | 6462 | fi |
5708 | 6473 | # statically, we need to preload. We also need to preload any |
5709 | 6474 | # dependent libraries so libltdl's deplib preloader doesn't |
5710 | 6475 | # bomb out in the load deplibs phase. |
5711 | dlprefiles="$dlprefiles $lib $dependency_libs" | |
6476 | func_append dlprefiles " $lib $dependency_libs" | |
5712 | 6477 | else |
5713 | newdlfiles="$newdlfiles $lib" | |
6478 | func_append newdlfiles " $lib" | |
5714 | 6479 | fi |
5715 | 6480 | continue |
5716 | 6481 | fi # $pass = dlopen |
5732 | 6497 | |
5733 | 6498 | # Find the relevant object directory and library name. |
5734 | 6499 | if test "X$installed" = Xyes; then |
5735 | if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then | |
6500 | if test ! -f "$lt_sysroot$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then | |
5736 | 6501 | func_warning "library \`$lib' was moved." |
5737 | 6502 | dir="$ladir" |
5738 | 6503 | absdir="$abs_ladir" |
5739 | 6504 | libdir="$abs_ladir" |
5740 | 6505 | else |
5741 | dir="$libdir" | |
5742 | absdir="$libdir" | |
6506 | dir="$lt_sysroot$libdir" | |
6507 | absdir="$lt_sysroot$libdir" | |
5743 | 6508 | fi |
5744 | 6509 | test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes |
5745 | 6510 | else |
5747 | 6512 | dir="$ladir" |
5748 | 6513 | absdir="$abs_ladir" |
5749 | 6514 | # Remove this search path later |
5750 | notinst_path="$notinst_path $abs_ladir" | |
6515 | func_append notinst_path " $abs_ladir" | |
5751 | 6516 | else |
5752 | 6517 | dir="$ladir/$objdir" |
5753 | 6518 | absdir="$abs_ladir/$objdir" |
5754 | 6519 | # Remove this search path later |
5755 | notinst_path="$notinst_path $abs_ladir" | |
6520 | func_append notinst_path " $abs_ladir" | |
5756 | 6521 | fi |
5757 | 6522 | fi # $installed = yes |
5758 | 6523 | func_stripname 'lib' '.la' "$laname" |
5763 | 6528 | if test -z "$libdir" && test "$linkmode" = prog; then |
5764 | 6529 | func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'" |
5765 | 6530 | fi |
5766 | # Prefer using a static library (so that no silly _DYNAMIC symbols | |
5767 | # are required to link). | |
5768 | if test -n "$old_library"; then | |
5769 | newdlprefiles="$newdlprefiles $dir/$old_library" | |
5770 | # Keep a list of preopened convenience libraries to check | |
5771 | # that they are being used correctly in the link pass. | |
5772 | test -z "$libdir" && \ | |
5773 | dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library" | |
5774 | # Otherwise, use the dlname, so that lt_dlopen finds it. | |
5775 | elif test -n "$dlname"; then | |
5776 | newdlprefiles="$newdlprefiles $dir/$dlname" | |
5777 | else | |
5778 | newdlprefiles="$newdlprefiles $dir/$linklib" | |
5779 | fi | |
6531 | case "$host" in | |
6532 | # special handling for platforms with PE-DLLs. | |
6533 | *cygwin* | *mingw* | *cegcc* ) | |
6534 | # Linker will automatically link against shared library if both | |
6535 | # static and shared are present. Therefore, ensure we extract | |
6536 | # symbols from the import library if a shared library is present | |
6537 | # (otherwise, the dlopen module name will be incorrect). We do | |
6538 | # this by putting the import library name into $newdlprefiles. | |
6539 | # We recover the dlopen module name by 'saving' the la file | |
6540 | # name in a special purpose variable, and (later) extracting the | |
6541 | # dlname from the la file. | |
6542 | if test -n "$dlname"; then | |
6543 | func_tr_sh "$dir/$linklib" | |
6544 | eval "libfile_$func_tr_sh_result=\$abs_ladir/\$laname" | |
6545 | func_append newdlprefiles " $dir/$linklib" | |
6546 | else | |
6547 | func_append newdlprefiles " $dir/$old_library" | |
6548 | # Keep a list of preopened convenience libraries to check | |
6549 | # that they are being used correctly in the link pass. | |
6550 | test -z "$libdir" && \ | |
6551 | func_append dlpreconveniencelibs " $dir/$old_library" | |
6552 | fi | |
6553 | ;; | |
6554 | * ) | |
6555 | # Prefer using a static library (so that no silly _DYNAMIC symbols | |
6556 | # are required to link). | |
6557 | if test -n "$old_library"; then | |
6558 | func_append newdlprefiles " $dir/$old_library" | |
6559 | # Keep a list of preopened convenience libraries to check | |
6560 | # that they are being used correctly in the link pass. | |
6561 | test -z "$libdir" && \ | |
6562 | func_append dlpreconveniencelibs " $dir/$old_library" | |
6563 | # Otherwise, use the dlname, so that lt_dlopen finds it. | |
6564 | elif test -n "$dlname"; then | |
6565 | func_append newdlprefiles " $dir/$dlname" | |
6566 | else | |
6567 | func_append newdlprefiles " $dir/$linklib" | |
6568 | fi | |
6569 | ;; | |
6570 | esac | |
5780 | 6571 | fi # $pass = dlpreopen |
5781 | 6572 | |
5782 | 6573 | if test -z "$libdir"; then |
5794 | 6585 | |
5795 | 6586 | |
5796 | 6587 | if test "$linkmode" = prog && test "$pass" != link; then |
5797 | newlib_search_path="$newlib_search_path $ladir" | |
6588 | func_append newlib_search_path " $ladir" | |
5798 | 6589 | deplibs="$lib $deplibs" |
5799 | 6590 | |
5800 | 6591 | linkalldeplibs=no |
5807 | 6598 | for deplib in $dependency_libs; do |
5808 | 6599 | case $deplib in |
5809 | 6600 | -L*) func_stripname '-L' '' "$deplib" |
5810 | newlib_search_path="$newlib_search_path $func_stripname_result" | |
6601 | func_resolve_sysroot "$func_stripname_result" | |
6602 | func_append newlib_search_path " $func_resolve_sysroot_result" | |
5811 | 6603 | ;; |
5812 | 6604 | esac |
5813 | 6605 | # Need to link against all dependency_libs? |
5818 | 6610 | # or/and link against static libraries |
5819 | 6611 | newdependency_libs="$deplib $newdependency_libs" |
5820 | 6612 | fi |
5821 | if $opt_duplicate_deps ; then | |
6613 | if $opt_preserve_dup_deps ; then | |
5822 | 6614 | case "$tmp_libs " in |
5823 | *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | |
6615 | *" $deplib "*) func_append specialdeplibs " $deplib" ;; | |
5824 | 6616 | esac |
5825 | 6617 | fi |
5826 | tmp_libs="$tmp_libs $deplib" | |
6618 | func_append tmp_libs " $deplib" | |
5827 | 6619 | done # for deplib |
5828 | 6620 | continue |
5829 | 6621 | fi # $linkmode = prog... |
5838 | 6630 | # Make sure the rpath contains only unique directories. |
5839 | 6631 | case "$temp_rpath:" in |
5840 | 6632 | *"$absdir:"*) ;; |
5841 | *) temp_rpath="$temp_rpath$absdir:" ;; | |
6633 | *) func_append temp_rpath "$absdir:" ;; | |
5842 | 6634 | esac |
5843 | 6635 | fi |
5844 | 6636 | |
5850 | 6642 | *) |
5851 | 6643 | case "$compile_rpath " in |
5852 | 6644 | *" $absdir "*) ;; |
5853 | *) compile_rpath="$compile_rpath $absdir" | |
6645 | *) func_append compile_rpath " $absdir" ;; | |
5854 | 6646 | esac |
5855 | 6647 | ;; |
5856 | 6648 | esac |
5859 | 6651 | *) |
5860 | 6652 | case "$finalize_rpath " in |
5861 | 6653 | *" $libdir "*) ;; |
5862 | *) finalize_rpath="$finalize_rpath $libdir" | |
6654 | *) func_append finalize_rpath " $libdir" ;; | |
5863 | 6655 | esac |
5864 | 6656 | ;; |
5865 | 6657 | esac |
5884 | 6676 | case $host in |
5885 | 6677 | *cygwin* | *mingw* | *cegcc*) |
5886 | 6678 | # No point in relinking DLLs because paths are not encoded |
5887 | notinst_deplibs="$notinst_deplibs $lib" | |
6679 | func_append notinst_deplibs " $lib" | |
5888 | 6680 | need_relink=no |
5889 | 6681 | ;; |
5890 | 6682 | *) |
5891 | 6683 | if test "$installed" = no; then |
5892 | notinst_deplibs="$notinst_deplibs $lib" | |
6684 | func_append notinst_deplibs " $lib" | |
5893 | 6685 | need_relink=yes |
5894 | 6686 | fi |
5895 | 6687 | ;; |
5924 | 6716 | *) |
5925 | 6717 | case "$compile_rpath " in |
5926 | 6718 | *" $absdir "*) ;; |
5927 | *) compile_rpath="$compile_rpath $absdir" | |
6719 | *) func_append compile_rpath " $absdir" ;; | |
5928 | 6720 | esac |
5929 | 6721 | ;; |
5930 | 6722 | esac |
5933 | 6725 | *) |
5934 | 6726 | case "$finalize_rpath " in |
5935 | 6727 | *" $libdir "*) ;; |
5936 | *) finalize_rpath="$finalize_rpath $libdir" | |
6728 | *) func_append finalize_rpath " $libdir" ;; | |
5937 | 6729 | esac |
5938 | 6730 | ;; |
5939 | 6731 | esac |
5987 | 6779 | linklib=$newlib |
5988 | 6780 | fi # test -n "$old_archive_from_expsyms_cmds" |
5989 | 6781 | |
5990 | if test "$linkmode" = prog || test "$mode" != relink; then | |
6782 | if test "$linkmode" = prog || test "$opt_mode" != relink; then | |
5991 | 6783 | add_shlibpath= |
5992 | 6784 | add_dir= |
5993 | 6785 | add= |
6043 | 6835 | if test -n "$inst_prefix_dir"; then |
6044 | 6836 | case $libdir in |
6045 | 6837 | [\\/]*) |
6046 | add_dir="$add_dir -L$inst_prefix_dir$libdir" | |
6838 | func_append add_dir " -L$inst_prefix_dir$libdir" | |
6047 | 6839 | ;; |
6048 | 6840 | esac |
6049 | 6841 | fi |
6065 | 6857 | if test -n "$add_shlibpath"; then |
6066 | 6858 | case :$compile_shlibpath: in |
6067 | 6859 | *":$add_shlibpath:"*) ;; |
6068 | *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;; | |
6860 | *) func_append compile_shlibpath "$add_shlibpath:" ;; | |
6069 | 6861 | esac |
6070 | 6862 | fi |
6071 | 6863 | if test "$linkmode" = prog; then |
6079 | 6871 | test "$hardcode_shlibpath_var" = yes; then |
6080 | 6872 | case :$finalize_shlibpath: in |
6081 | 6873 | *":$libdir:"*) ;; |
6082 | *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; | |
6874 | *) func_append finalize_shlibpath "$libdir:" ;; | |
6083 | 6875 | esac |
6084 | 6876 | fi |
6085 | 6877 | fi |
6086 | 6878 | fi |
6087 | 6879 | |
6088 | if test "$linkmode" = prog || test "$mode" = relink; then | |
6880 | if test "$linkmode" = prog || test "$opt_mode" = relink; then | |
6089 | 6881 | add_shlibpath= |
6090 | 6882 | add_dir= |
6091 | 6883 | add= |
6099 | 6891 | elif test "$hardcode_shlibpath_var" = yes; then |
6100 | 6892 | case :$finalize_shlibpath: in |
6101 | 6893 | *":$libdir:"*) ;; |
6102 | *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;; | |
6894 | *) func_append finalize_shlibpath "$libdir:" ;; | |
6103 | 6895 | esac |
6104 | 6896 | add="-l$name" |
6105 | 6897 | elif test "$hardcode_automatic" = yes; then |
6116 | 6908 | if test -n "$inst_prefix_dir"; then |
6117 | 6909 | case $libdir in |
6118 | 6910 | [\\/]*) |
6119 | add_dir="$add_dir -L$inst_prefix_dir$libdir" | |
6911 | func_append add_dir " -L$inst_prefix_dir$libdir" | |
6120 | 6912 | ;; |
6121 | 6913 | esac |
6122 | 6914 | fi |
6193 | 6985 | temp_xrpath=$func_stripname_result |
6194 | 6986 | case " $xrpath " in |
6195 | 6987 | *" $temp_xrpath "*) ;; |
6196 | *) xrpath="$xrpath $temp_xrpath";; | |
6988 | *) func_append xrpath " $temp_xrpath";; | |
6197 | 6989 | esac;; |
6198 | *) temp_deplibs="$temp_deplibs $libdir";; | |
6990 | *) func_append temp_deplibs " $libdir";; | |
6199 | 6991 | esac |
6200 | 6992 | done |
6201 | 6993 | dependency_libs="$temp_deplibs" |
6202 | 6994 | fi |
6203 | 6995 | |
6204 | newlib_search_path="$newlib_search_path $absdir" | |
6996 | func_append newlib_search_path " $absdir" | |
6205 | 6997 | # Link against this library |
6206 | 6998 | test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs" |
6207 | 6999 | # ... and its dependency_libs |
6208 | 7000 | tmp_libs= |
6209 | 7001 | for deplib in $dependency_libs; do |
6210 | 7002 | newdependency_libs="$deplib $newdependency_libs" |
6211 | if $opt_duplicate_deps ; then | |
7003 | case $deplib in | |
7004 | -L*) func_stripname '-L' '' "$deplib" | |
7005 | func_resolve_sysroot "$func_stripname_result";; | |
7006 | *) func_resolve_sysroot "$deplib" ;; | |
7007 | esac | |
7008 | if $opt_preserve_dup_deps ; then | |
6212 | 7009 | case "$tmp_libs " in |
6213 | *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;; | |
7010 | *" $func_resolve_sysroot_result "*) | |
7011 | func_append specialdeplibs " $func_resolve_sysroot_result" ;; | |
6214 | 7012 | esac |
6215 | 7013 | fi |
6216 | tmp_libs="$tmp_libs $deplib" | |
7014 | func_append tmp_libs " $func_resolve_sysroot_result" | |
6217 | 7015 | done |
6218 | 7016 | |
6219 | 7017 | if test "$link_all_deplibs" != no; then |
6223 | 7021 | case $deplib in |
6224 | 7022 | -L*) path="$deplib" ;; |
6225 | 7023 | *.la) |
7024 | func_resolve_sysroot "$deplib" | |
7025 | deplib=$func_resolve_sysroot_result | |
6226 | 7026 | func_dirname "$deplib" "" "." |
6227 | dir="$func_dirname_result" | |
7027 | dir=$func_dirname_result | |
6228 | 7028 | # We need an absolute path. |
6229 | 7029 | case $dir in |
6230 | 7030 | [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;; |
6251 | 7051 | if test -z "$darwin_install_name"; then |
6252 | 7052 | darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'` |
6253 | 7053 | fi |
6254 | compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" | |
6255 | linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}" | |
7054 | func_append compiler_flags " ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}" | |
7055 | func_append linker_flags " -dylib_file ${darwin_install_name}:${depdepl}" | |
6256 | 7056 | path= |
6257 | 7057 | fi |
6258 | 7058 | fi |
6302 | 7102 | for dir in $newlib_search_path; do |
6303 | 7103 | case "$lib_search_path " in |
6304 | 7104 | *" $dir "*) ;; |
6305 | *) lib_search_path="$lib_search_path $dir" ;; | |
7105 | *) func_append lib_search_path " $dir" ;; | |
6306 | 7106 | esac |
6307 | 7107 | done |
6308 | 7108 | newlib_search_path= |
6360 | 7160 | -L*) |
6361 | 7161 | case " $tmp_libs " in |
6362 | 7162 | *" $deplib "*) ;; |
6363 | *) tmp_libs="$tmp_libs $deplib" ;; | |
7163 | *) func_append tmp_libs " $deplib" ;; | |
6364 | 7164 | esac |
6365 | 7165 | ;; |
6366 | *) tmp_libs="$tmp_libs $deplib" ;; | |
7166 | *) func_append tmp_libs " $deplib" ;; | |
6367 | 7167 | esac |
6368 | 7168 | done |
6369 | 7169 | eval $var=\"$tmp_libs\" |
6379 | 7179 | ;; |
6380 | 7180 | esac |
6381 | 7181 | if test -n "$i" ; then |
6382 | tmp_libs="$tmp_libs $i" | |
7182 | func_append tmp_libs " $i" | |
6383 | 7183 | fi |
6384 | 7184 | done |
6385 | 7185 | dependency_libs=$tmp_libs |
6420 | 7220 | # Now set the variables for building old libraries. |
6421 | 7221 | build_libtool_libs=no |
6422 | 7222 | oldlibs="$output" |
6423 | objs="$objs$old_deplibs" | |
7223 | func_append objs "$old_deplibs" | |
6424 | 7224 | ;; |
6425 | 7225 | |
6426 | 7226 | lib) |
6456 | 7256 | echo |
6457 | 7257 | $ECHO "*** Warning: Linking the shared library $output against the non-libtool" |
6458 | 7258 | $ECHO "*** objects $objs is not portable!" |
6459 | libobjs="$libobjs $objs" | |
7259 | func_append libobjs " $objs" | |
6460 | 7260 | fi |
6461 | 7261 | fi |
6462 | 7262 | |
6654 | 7454 | done |
6655 | 7455 | |
6656 | 7456 | # Make executables depend on our current version. |
6657 | verstring="$verstring:${current}.0" | |
7457 | func_append verstring ":${current}.0" | |
6658 | 7458 | ;; |
6659 | 7459 | |
6660 | 7460 | qnx) |
6722 | 7522 | fi |
6723 | 7523 | |
6724 | 7524 | func_generate_dlsyms "$libname" "$libname" "yes" |
6725 | libobjs="$libobjs $symfileobj" | |
7525 | func_append libobjs " $symfileobj" | |
6726 | 7526 | test "X$libobjs" = "X " && libobjs= |
6727 | 7527 | |
6728 | if test "$mode" != relink; then | |
7528 | if test "$opt_mode" != relink; then | |
6729 | 7529 | # Remove our outputs, but don't remove object files since they |
6730 | 7530 | # may have been created when compiling PIC objects. |
6731 | 7531 | removelist= |
6741 | 7541 | continue |
6742 | 7542 | fi |
6743 | 7543 | fi |
6744 | removelist="$removelist $p" | |
7544 | func_append removelist " $p" | |
6745 | 7545 | ;; |
6746 | 7546 | *) ;; |
6747 | 7547 | esac |
6752 | 7552 | |
6753 | 7553 | # Now set the variables for building old libraries. |
6754 | 7554 | if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then |
6755 | oldlibs="$oldlibs $output_objdir/$libname.$libext" | |
7555 | func_append oldlibs " $output_objdir/$libname.$libext" | |
6756 | 7556 | |
6757 | 7557 | # Transform .lo files to .o files. |
6758 | 7558 | oldobjs="$objs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; $lo2o" | $NL2SP` |
6769 | 7569 | # If the user specified any rpath flags, then add them. |
6770 | 7570 | temp_xrpath= |
6771 | 7571 | for libdir in $xrpath; do |
6772 | temp_xrpath="$temp_xrpath -R$libdir" | |
7572 | func_replace_sysroot "$libdir" | |
7573 | func_append temp_xrpath " -R$func_replace_sysroot_result" | |
6773 | 7574 | case "$finalize_rpath " in |
6774 | 7575 | *" $libdir "*) ;; |
6775 | *) finalize_rpath="$finalize_rpath $libdir" ;; | |
7576 | *) func_append finalize_rpath " $libdir" ;; | |
6776 | 7577 | esac |
6777 | 7578 | done |
6778 | 7579 | if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then |
6786 | 7587 | for lib in $old_dlfiles; do |
6787 | 7588 | case " $dlprefiles $dlfiles " in |
6788 | 7589 | *" $lib "*) ;; |
6789 | *) dlfiles="$dlfiles $lib" ;; | |
7590 | *) func_append dlfiles " $lib" ;; | |
6790 | 7591 | esac |
6791 | 7592 | done |
6792 | 7593 | |
6796 | 7597 | for lib in $old_dlprefiles; do |
6797 | 7598 | case "$dlprefiles " in |
6798 | 7599 | *" $lib "*) ;; |
6799 | *) dlprefiles="$dlprefiles $lib" ;; | |
7600 | *) func_append dlprefiles " $lib" ;; | |
6800 | 7601 | esac |
6801 | 7602 | done |
6802 | 7603 | |
6808 | 7609 | ;; |
6809 | 7610 | *-*-rhapsody* | *-*-darwin1.[012]) |
6810 | 7611 | # Rhapsody C library is in the System framework |
6811 | deplibs="$deplibs System.ltframework" | |
7612 | func_append deplibs " System.ltframework" | |
6812 | 7613 | ;; |
6813 | 7614 | *-*-netbsd*) |
6814 | 7615 | # Don't link with libc until the a.out ld.so is fixed. |
6825 | 7626 | *) |
6826 | 7627 | # Add libc to deplibs on all other systems if necessary. |
6827 | 7628 | if test "$build_libtool_need_lc" = "yes"; then |
6828 | deplibs="$deplibs -lc" | |
7629 | func_append deplibs " -lc" | |
6829 | 7630 | fi |
6830 | 7631 | ;; |
6831 | 7632 | esac |
6874 | 7675 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
6875 | 7676 | case " $predeps $postdeps " in |
6876 | 7677 | *" $i "*) |
6877 | newdeplibs="$newdeplibs $i" | |
7678 | func_append newdeplibs " $i" | |
6878 | 7679 | i="" |
6879 | 7680 | ;; |
6880 | 7681 | esac |
6885 | 7686 | set dummy $deplib_matches; shift |
6886 | 7687 | deplib_match=$1 |
6887 | 7688 | if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then |
6888 | newdeplibs="$newdeplibs $i" | |
7689 | func_append newdeplibs " $i" | |
6889 | 7690 | else |
6890 | 7691 | droppeddeps=yes |
6891 | 7692 | echo |
6899 | 7700 | fi |
6900 | 7701 | ;; |
6901 | 7702 | *) |
6902 | newdeplibs="$newdeplibs $i" | |
7703 | func_append newdeplibs " $i" | |
6903 | 7704 | ;; |
6904 | 7705 | esac |
6905 | 7706 | done |
6917 | 7718 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
6918 | 7719 | case " $predeps $postdeps " in |
6919 | 7720 | *" $i "*) |
6920 | newdeplibs="$newdeplibs $i" | |
7721 | func_append newdeplibs " $i" | |
6921 | 7722 | i="" |
6922 | 7723 | ;; |
6923 | 7724 | esac |
6928 | 7729 | set dummy $deplib_matches; shift |
6929 | 7730 | deplib_match=$1 |
6930 | 7731 | if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then |
6931 | newdeplibs="$newdeplibs $i" | |
7732 | func_append newdeplibs " $i" | |
6932 | 7733 | else |
6933 | 7734 | droppeddeps=yes |
6934 | 7735 | echo |
6950 | 7751 | fi |
6951 | 7752 | ;; |
6952 | 7753 | *) |
6953 | newdeplibs="$newdeplibs $i" | |
7754 | func_append newdeplibs " $i" | |
6954 | 7755 | ;; |
6955 | 7756 | esac |
6956 | 7757 | done |
6967 | 7768 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
6968 | 7769 | case " $predeps $postdeps " in |
6969 | 7770 | *" $a_deplib "*) |
6970 | newdeplibs="$newdeplibs $a_deplib" | |
7771 | func_append newdeplibs " $a_deplib" | |
6971 | 7772 | a_deplib="" |
6972 | 7773 | ;; |
6973 | 7774 | esac |
6974 | 7775 | fi |
6975 | 7776 | if test -n "$a_deplib" ; then |
6976 | 7777 | libname=`eval "\\$ECHO \"$libname_spec\""` |
7778 | if test -n "$file_magic_glob"; then | |
7779 | libnameglob=`func_echo_all "$libname" | $SED -e $file_magic_glob` | |
7780 | else | |
7781 | libnameglob=$libname | |
7782 | fi | |
7783 | test "$want_nocaseglob" = yes && nocaseglob=`shopt -p nocaseglob` | |
6977 | 7784 | for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do |
6978 | potential_libs=`ls $i/$libname[.-]* 2>/dev/null` | |
7785 | if test "$want_nocaseglob" = yes; then | |
7786 | shopt -s nocaseglob | |
7787 | potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` | |
7788 | $nocaseglob | |
7789 | else | |
7790 | potential_libs=`ls $i/$libnameglob[.-]* 2>/dev/null` | |
7791 | fi | |
6979 | 7792 | for potent_lib in $potential_libs; do |
6980 | 7793 | # Follow soft links. |
6981 | 7794 | if ls -lLd "$potent_lib" 2>/dev/null | |
6998 | 7811 | if eval $file_magic_cmd \"\$potlib\" 2>/dev/null | |
6999 | 7812 | $SED -e 10q | |
7000 | 7813 | $EGREP "$file_magic_regex" > /dev/null; then |
7001 | newdeplibs="$newdeplibs $a_deplib" | |
7814 | func_append newdeplibs " $a_deplib" | |
7002 | 7815 | a_deplib="" |
7003 | 7816 | break 2 |
7004 | 7817 | fi |
7023 | 7836 | ;; |
7024 | 7837 | *) |
7025 | 7838 | # Add a -L argument. |
7026 | newdeplibs="$newdeplibs $a_deplib" | |
7839 | func_append newdeplibs " $a_deplib" | |
7027 | 7840 | ;; |
7028 | 7841 | esac |
7029 | 7842 | done # Gone through all deplibs. |
7039 | 7852 | if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then |
7040 | 7853 | case " $predeps $postdeps " in |
7041 | 7854 | *" $a_deplib "*) |
7042 | newdeplibs="$newdeplibs $a_deplib" | |
7855 | func_append newdeplibs " $a_deplib" | |
7043 | 7856 | a_deplib="" |
7044 | 7857 | ;; |
7045 | 7858 | esac |
7052 | 7865 | potlib="$potent_lib" # see symlink-check above in file_magic test |
7053 | 7866 | if eval "\$ECHO \"$potent_lib\"" 2>/dev/null | $SED 10q | \ |
7054 | 7867 | $EGREP "$match_pattern_regex" > /dev/null; then |
7055 | newdeplibs="$newdeplibs $a_deplib" | |
7868 | func_append newdeplibs " $a_deplib" | |
7056 | 7869 | a_deplib="" |
7057 | 7870 | break 2 |
7058 | 7871 | fi |
7077 | 7890 | ;; |
7078 | 7891 | *) |
7079 | 7892 | # Add a -L argument. |
7080 | newdeplibs="$newdeplibs $a_deplib" | |
7893 | func_append newdeplibs " $a_deplib" | |
7081 | 7894 | ;; |
7082 | 7895 | esac |
7083 | 7896 | done # Gone through all deplibs. |
7181 | 7994 | *) |
7182 | 7995 | case " $deplibs " in |
7183 | 7996 | *" -L$path/$objdir "*) |
7184 | new_libs="$new_libs -L$path/$objdir" ;; | |
7997 | func_append new_libs " -L$path/$objdir" ;; | |
7185 | 7998 | esac |
7186 | 7999 | ;; |
7187 | 8000 | esac |
7191 | 8004 | -L*) |
7192 | 8005 | case " $new_libs " in |
7193 | 8006 | *" $deplib "*) ;; |
7194 | *) new_libs="$new_libs $deplib" ;; | |
8007 | *) func_append new_libs " $deplib" ;; | |
7195 | 8008 | esac |
7196 | 8009 | ;; |
7197 | *) new_libs="$new_libs $deplib" ;; | |
8010 | *) func_append new_libs " $deplib" ;; | |
7198 | 8011 | esac |
7199 | 8012 | done |
7200 | 8013 | deplibs="$new_libs" |
7211 | 8024 | hardcode_libdirs= |
7212 | 8025 | dep_rpath= |
7213 | 8026 | rpath="$finalize_rpath" |
7214 | test "$mode" != relink && rpath="$compile_rpath$rpath" | |
8027 | test "$opt_mode" != relink && rpath="$compile_rpath$rpath" | |
7215 | 8028 | for libdir in $rpath; do |
7216 | 8029 | if test -n "$hardcode_libdir_flag_spec"; then |
7217 | 8030 | if test -n "$hardcode_libdir_separator"; then |
8031 | func_replace_sysroot "$libdir" | |
8032 | libdir=$func_replace_sysroot_result | |
7218 | 8033 | if test -z "$hardcode_libdirs"; then |
7219 | 8034 | hardcode_libdirs="$libdir" |
7220 | 8035 | else |
7223 | 8038 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) |
7224 | 8039 | ;; |
7225 | 8040 | *) |
7226 | hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | |
8041 | func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | |
7227 | 8042 | ;; |
7228 | 8043 | esac |
7229 | 8044 | fi |
7230 | 8045 | else |
7231 | 8046 | eval flag=\"$hardcode_libdir_flag_spec\" |
7232 | dep_rpath="$dep_rpath $flag" | |
8047 | func_append dep_rpath " $flag" | |
7233 | 8048 | fi |
7234 | 8049 | elif test -n "$runpath_var"; then |
7235 | 8050 | case "$perm_rpath " in |
7236 | 8051 | *" $libdir "*) ;; |
7237 | *) perm_rpath="$perm_rpath $libdir" ;; | |
8052 | *) func_apped perm_rpath " $libdir" ;; | |
7238 | 8053 | esac |
7239 | 8054 | fi |
7240 | 8055 | done |
7252 | 8067 | # We should set the runpath_var. |
7253 | 8068 | rpath= |
7254 | 8069 | for dir in $perm_rpath; do |
7255 | rpath="$rpath$dir:" | |
8070 | func_append rpath "$dir:" | |
7256 | 8071 | done |
7257 | 8072 | eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var" |
7258 | 8073 | fi |
7260 | 8075 | fi |
7261 | 8076 | |
7262 | 8077 | shlibpath="$finalize_shlibpath" |
7263 | test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath" | |
8078 | test "$opt_mode" != relink && shlibpath="$compile_shlibpath$shlibpath" | |
7264 | 8079 | if test -n "$shlibpath"; then |
7265 | 8080 | eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var" |
7266 | 8081 | fi |
7286 | 8101 | linknames= |
7287 | 8102 | for link |
7288 | 8103 | do |
7289 | linknames="$linknames $link" | |
8104 | func_append linknames " $link" | |
7290 | 8105 | done |
7291 | 8106 | |
7292 | 8107 | # Use standard objects if they are pic |
7297 | 8112 | if test -n "$export_symbols" && test -n "$include_expsyms"; then |
7298 | 8113 | $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp" |
7299 | 8114 | export_symbols="$output_objdir/$libname.uexp" |
7300 | delfiles="$delfiles $export_symbols" | |
8115 | func_append delfiles " $export_symbols" | |
7301 | 8116 | fi |
7302 | 8117 | |
7303 | 8118 | orig_export_symbols= |
7328 | 8143 | $opt_dry_run || $RM $export_symbols |
7329 | 8144 | cmds=$export_symbols_cmds |
7330 | 8145 | save_ifs="$IFS"; IFS='~' |
7331 | for cmd in $cmds; do | |
8146 | for cmd1 in $cmds; do | |
7332 | 8147 | IFS="$save_ifs" |
7333 | eval cmd=\"$cmd\" | |
7334 | func_len " $cmd" | |
7335 | len=$func_len_result | |
7336 | if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then | |
8148 | # Take the normal branch if the nm_file_list_spec branch | |
8149 | # doesn't work or if tool conversion is not needed. | |
8150 | case $nm_file_list_spec~$to_tool_file_cmd in | |
8151 | *~func_convert_file_noop | *~func_convert_file_msys_to_w32 | ~*) | |
8152 | try_normal_branch=yes | |
8153 | eval cmd=\"$cmd1\" | |
8154 | func_len " $cmd" | |
8155 | len=$func_len_result | |
8156 | ;; | |
8157 | *) | |
8158 | try_normal_branch=no | |
8159 | ;; | |
8160 | esac | |
8161 | if test "$try_normal_branch" = yes \ | |
8162 | && { test "$len" -lt "$max_cmd_len" \ | |
8163 | || test "$max_cmd_len" -le -1; } | |
8164 | then | |
7337 | 8165 | func_show_eval "$cmd" 'exit $?' |
8166 | skipped_export=false | |
8167 | elif test -n "$nm_file_list_spec"; then | |
8168 | func_basename "$output" | |
8169 | output_la=$func_basename_result | |
8170 | save_libobjs=$libobjs | |
8171 | save_output=$output | |
8172 | output=${output_objdir}/${output_la}.nm | |
8173 | func_to_tool_file "$output" | |
8174 | libobjs=$nm_file_list_spec$func_to_tool_file_result | |
8175 | func_append delfiles " $output" | |
8176 | func_verbose "creating $NM input file list: $output" | |
8177 | for obj in $save_libobjs; do | |
8178 | func_to_tool_file "$obj" | |
8179 | $ECHO "$func_to_tool_file_result" | |
8180 | done > "$output" | |
8181 | eval cmd=\"$cmd1\" | |
8182 | func_show_eval "$cmd" 'exit $?' | |
8183 | output=$save_output | |
8184 | libobjs=$save_libobjs | |
7338 | 8185 | skipped_export=false |
7339 | 8186 | else |
7340 | 8187 | # The command line is too long to execute in one step. |
7368 | 8215 | # global variables. join(1) would be nice here, but unfortunately |
7369 | 8216 | # isn't a blessed tool. |
7370 | 8217 | $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter |
7371 | delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" | |
8218 | func_append delfiles " $export_symbols $output_objdir/$libname.filter" | |
7372 | 8219 | export_symbols=$output_objdir/$libname.def |
7373 | 8220 | $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols |
7374 | 8221 | fi |
7378 | 8225 | case " $convenience " in |
7379 | 8226 | *" $test_deplib "*) ;; |
7380 | 8227 | *) |
7381 | tmp_deplibs="$tmp_deplibs $test_deplib" | |
8228 | func_append tmp_deplibs " $test_deplib" | |
7382 | 8229 | ;; |
7383 | 8230 | esac |
7384 | 8231 | done |
7398 | 8245 | test "X$libobjs" = "X " && libobjs= |
7399 | 8246 | else |
7400 | 8247 | gentop="$output_objdir/${outputname}x" |
7401 | generated="$generated $gentop" | |
8248 | func_append generated " $gentop" | |
7402 | 8249 | |
7403 | 8250 | func_extract_archives $gentop $convenience |
7404 | libobjs="$libobjs $func_extract_archives_result" | |
8251 | func_append libobjs " $func_extract_archives_result" | |
7405 | 8252 | test "X$libobjs" = "X " && libobjs= |
7406 | 8253 | fi |
7407 | 8254 | fi |
7408 | 8255 | |
7409 | 8256 | if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then |
7410 | 8257 | eval flag=\"$thread_safe_flag_spec\" |
7411 | linker_flags="$linker_flags $flag" | |
8258 | func_append linker_flags " $flag" | |
7412 | 8259 | fi |
7413 | 8260 | |
7414 | 8261 | # Make a backup of the uninstalled library when relinking |
7415 | if test "$mode" = relink; then | |
8262 | if test "$opt_mode" = relink; then | |
7416 | 8263 | $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $? |
7417 | 8264 | fi |
7418 | 8265 | |
7474 | 8321 | echo 'INPUT (' > $output |
7475 | 8322 | for obj in $save_libobjs |
7476 | 8323 | do |
7477 | $ECHO "$obj" >> $output | |
8324 | func_to_tool_file "$obj" | |
8325 | $ECHO "$func_to_tool_file_result" >> $output | |
7478 | 8326 | done |
7479 | 8327 | echo ')' >> $output |
7480 | delfiles="$delfiles $output" | |
8328 | func_append delfiles " $output" | |
8329 | func_to_tool_file "$output" | |
8330 | output=$func_to_tool_file_result | |
7481 | 8331 | elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then |
7482 | 8332 | output=${output_objdir}/${output_la}.lnk |
7483 | 8333 | func_verbose "creating linker input file list: $output" |
7491 | 8341 | fi |
7492 | 8342 | for obj |
7493 | 8343 | do |
7494 | $ECHO "$obj" >> $output | |
8344 | func_to_tool_file "$obj" | |
8345 | $ECHO "$func_to_tool_file_result" >> $output | |
7495 | 8346 | done |
7496 | delfiles="$delfiles $output" | |
7497 | output=$firstobj\"$file_list_spec$output\" | |
8347 | func_append delfiles " $output" | |
8348 | func_to_tool_file "$output" | |
8349 | output=$firstobj\"$file_list_spec$func_to_tool_file_result\" | |
7498 | 8350 | else |
7499 | 8351 | if test -n "$save_libobjs"; then |
7500 | 8352 | func_verbose "creating reloadable object files..." |
7545 | 8397 | if test -n "$last_robj"; then |
7546 | 8398 | eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\" |
7547 | 8399 | fi |
7548 | delfiles="$delfiles $output" | |
8400 | func_append delfiles " $output" | |
7549 | 8401 | |
7550 | 8402 | else |
7551 | 8403 | output= |
7579 | 8431 | lt_exit=$? |
7580 | 8432 | |
7581 | 8433 | # Restore the uninstalled library and exit |
7582 | if test "$mode" = relink; then | |
8434 | if test "$opt_mode" = relink; then | |
7583 | 8435 | ( cd "$output_objdir" && \ |
7584 | 8436 | $RM "${realname}T" && \ |
7585 | 8437 | $MV "${realname}U" "$realname" ) |
7612 | 8464 | # global variables. join(1) would be nice here, but unfortunately |
7613 | 8465 | # isn't a blessed tool. |
7614 | 8466 | $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter |
7615 | delfiles="$delfiles $export_symbols $output_objdir/$libname.filter" | |
8467 | func_append delfiles " $export_symbols $output_objdir/$libname.filter" | |
7616 | 8468 | export_symbols=$output_objdir/$libname.def |
7617 | 8469 | $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols |
7618 | 8470 | fi |
7653 | 8505 | # Add any objects from preloaded convenience libraries |
7654 | 8506 | if test -n "$dlprefiles"; then |
7655 | 8507 | gentop="$output_objdir/${outputname}x" |
7656 | generated="$generated $gentop" | |
8508 | func_append generated " $gentop" | |
7657 | 8509 | |
7658 | 8510 | func_extract_archives $gentop $dlprefiles |
7659 | libobjs="$libobjs $func_extract_archives_result" | |
8511 | func_append libobjs " $func_extract_archives_result" | |
7660 | 8512 | test "X$libobjs" = "X " && libobjs= |
7661 | 8513 | fi |
7662 | 8514 | |
7672 | 8524 | lt_exit=$? |
7673 | 8525 | |
7674 | 8526 | # Restore the uninstalled library and exit |
7675 | if test "$mode" = relink; then | |
8527 | if test "$opt_mode" = relink; then | |
7676 | 8528 | ( cd "$output_objdir" && \ |
7677 | 8529 | $RM "${realname}T" && \ |
7678 | 8530 | $MV "${realname}U" "$realname" ) |
7684 | 8536 | IFS="$save_ifs" |
7685 | 8537 | |
7686 | 8538 | # Restore the uninstalled library and exit |
7687 | if test "$mode" = relink; then | |
8539 | if test "$opt_mode" = relink; then | |
7688 | 8540 | $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $? |
7689 | 8541 | |
7690 | 8542 | if test -n "$convenience"; then |
7768 | 8620 | reload_conv_objs=$reload_objs\ `$ECHO "$tmp_whole_archive_flags" | $SED 's|,| |g'` |
7769 | 8621 | else |
7770 | 8622 | gentop="$output_objdir/${obj}x" |
7771 | generated="$generated $gentop" | |
8623 | func_append generated " $gentop" | |
7772 | 8624 | |
7773 | 8625 | func_extract_archives $gentop $convenience |
7774 | 8626 | reload_conv_objs="$reload_objs $func_extract_archives_result" |
7775 | 8627 | fi |
7776 | 8628 | fi |
8629 | ||
8630 | # If we're not building shared, we need to use non_pic_objs | |
8631 | test "$build_libtool_libs" != yes && libobjs="$non_pic_objects" | |
7777 | 8632 | |
7778 | 8633 | # Create the old-style object. |
7779 | 8634 | reload_objs="$objs$old_deplibs "`$ECHO "$libobjs" | $SP2NL | $SED "/\.${libext}$/d; /\.lib$/d; $lo2o" | $NL2SP`" $reload_conv_objs" ### testsuite: skip nested quoting test |
7848 | 8703 | if test "$tagname" = CXX ; then |
7849 | 8704 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in |
7850 | 8705 | 10.[0123]) |
7851 | compile_command="$compile_command ${wl}-bind_at_load" | |
7852 | finalize_command="$finalize_command ${wl}-bind_at_load" | |
8706 | func_append compile_command " ${wl}-bind_at_load" | |
8707 | func_append finalize_command " ${wl}-bind_at_load" | |
7853 | 8708 | ;; |
7854 | 8709 | esac |
7855 | 8710 | fi |
7869 | 8724 | *) |
7870 | 8725 | case " $compile_deplibs " in |
7871 | 8726 | *" -L$path/$objdir "*) |
7872 | new_libs="$new_libs -L$path/$objdir" ;; | |
8727 | func_append new_libs " -L$path/$objdir" ;; | |
7873 | 8728 | esac |
7874 | 8729 | ;; |
7875 | 8730 | esac |
7879 | 8734 | -L*) |
7880 | 8735 | case " $new_libs " in |
7881 | 8736 | *" $deplib "*) ;; |
7882 | *) new_libs="$new_libs $deplib" ;; | |
8737 | *) func_append new_libs " $deplib" ;; | |
7883 | 8738 | esac |
7884 | 8739 | ;; |
7885 | *) new_libs="$new_libs $deplib" ;; | |
8740 | *) func_append new_libs " $deplib" ;; | |
7886 | 8741 | esac |
7887 | 8742 | done |
7888 | 8743 | compile_deplibs="$new_libs" |
7889 | 8744 | |
7890 | 8745 | |
7891 | compile_command="$compile_command $compile_deplibs" | |
7892 | finalize_command="$finalize_command $finalize_deplibs" | |
8746 | func_append compile_command " $compile_deplibs" | |
8747 | func_append finalize_command " $finalize_deplibs" | |
7893 | 8748 | |
7894 | 8749 | if test -n "$rpath$xrpath"; then |
7895 | 8750 | # If the user specified any rpath flags, then add them. |
7897 | 8752 | # This is the magic to use -rpath. |
7898 | 8753 | case "$finalize_rpath " in |
7899 | 8754 | *" $libdir "*) ;; |
7900 | *) finalize_rpath="$finalize_rpath $libdir" ;; | |
8755 | *) func_append finalize_rpath " $libdir" ;; | |
7901 | 8756 | esac |
7902 | 8757 | done |
7903 | 8758 | fi |
7916 | 8771 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) |
7917 | 8772 | ;; |
7918 | 8773 | *) |
7919 | hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | |
8774 | func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | |
7920 | 8775 | ;; |
7921 | 8776 | esac |
7922 | 8777 | fi |
7923 | 8778 | else |
7924 | 8779 | eval flag=\"$hardcode_libdir_flag_spec\" |
7925 | rpath="$rpath $flag" | |
8780 | func_append rpath " $flag" | |
7926 | 8781 | fi |
7927 | 8782 | elif test -n "$runpath_var"; then |
7928 | 8783 | case "$perm_rpath " in |
7929 | 8784 | *" $libdir "*) ;; |
7930 | *) perm_rpath="$perm_rpath $libdir" ;; | |
8785 | *) func_append perm_rpath " $libdir" ;; | |
7931 | 8786 | esac |
7932 | 8787 | fi |
7933 | 8788 | case $host in |
7936 | 8791 | case :$dllsearchpath: in |
7937 | 8792 | *":$libdir:"*) ;; |
7938 | 8793 | ::) dllsearchpath=$libdir;; |
7939 | *) dllsearchpath="$dllsearchpath:$libdir";; | |
8794 | *) func_append dllsearchpath ":$libdir";; | |
7940 | 8795 | esac |
7941 | 8796 | case :$dllsearchpath: in |
7942 | 8797 | *":$testbindir:"*) ;; |
7943 | 8798 | ::) dllsearchpath=$testbindir;; |
7944 | *) dllsearchpath="$dllsearchpath:$testbindir";; | |
8799 | *) func_append dllsearchpath ":$testbindir";; | |
7945 | 8800 | esac |
7946 | 8801 | ;; |
7947 | 8802 | esac |
7967 | 8822 | *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*) |
7968 | 8823 | ;; |
7969 | 8824 | *) |
7970 | hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir" | |
8825 | func_append hardcode_libdirs "$hardcode_libdir_separator$libdir" | |
7971 | 8826 | ;; |
7972 | 8827 | esac |
7973 | 8828 | fi |
7974 | 8829 | else |
7975 | 8830 | eval flag=\"$hardcode_libdir_flag_spec\" |
7976 | rpath="$rpath $flag" | |
8831 | func_append rpath " $flag" | |
7977 | 8832 | fi |
7978 | 8833 | elif test -n "$runpath_var"; then |
7979 | 8834 | case "$finalize_perm_rpath " in |
7980 | 8835 | *" $libdir "*) ;; |
7981 | *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;; | |
8836 | *) func_append finalize_perm_rpath " $libdir" ;; | |
7982 | 8837 | esac |
7983 | 8838 | fi |
7984 | 8839 | done |
8029 | 8884 | exit_status=0 |
8030 | 8885 | func_show_eval "$link_command" 'exit_status=$?' |
8031 | 8886 | |
8887 | if test -n "$postlink_cmds"; then | |
8888 | func_to_tool_file "$output" | |
8889 | postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` | |
8890 | func_execute_cmds "$postlink_cmds" 'exit $?' | |
8891 | fi | |
8892 | ||
8032 | 8893 | # Delete the generated files. |
8033 | 8894 | if test -f "$output_objdir/${outputname}S.${objext}"; then |
8034 | 8895 | func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"' |
8051 | 8912 | # We should set the runpath_var. |
8052 | 8913 | rpath= |
8053 | 8914 | for dir in $perm_rpath; do |
8054 | rpath="$rpath$dir:" | |
8915 | func_append rpath "$dir:" | |
8055 | 8916 | done |
8056 | 8917 | compile_var="$runpath_var=\"$rpath\$$runpath_var\" " |
8057 | 8918 | fi |
8059 | 8920 | # We should set the runpath_var. |
8060 | 8921 | rpath= |
8061 | 8922 | for dir in $finalize_perm_rpath; do |
8062 | rpath="$rpath$dir:" | |
8923 | func_append rpath "$dir:" | |
8063 | 8924 | done |
8064 | 8925 | finalize_var="$runpath_var=\"$rpath\$$runpath_var\" " |
8065 | 8926 | fi |
8074 | 8935 | $opt_dry_run || $RM $output |
8075 | 8936 | # Link the executable and exit |
8076 | 8937 | func_show_eval "$link_command" 'exit $?' |
8938 | ||
8939 | if test -n "$postlink_cmds"; then | |
8940 | func_to_tool_file "$output" | |
8941 | postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` | |
8942 | func_execute_cmds "$postlink_cmds" 'exit $?' | |
8943 | fi | |
8944 | ||
8077 | 8945 | exit $EXIT_SUCCESS |
8078 | 8946 | fi |
8079 | 8947 | |
8106 | 8974 | $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname |
8107 | 8975 | |
8108 | 8976 | func_show_eval "$link_command" 'exit $?' |
8977 | ||
8978 | if test -n "$postlink_cmds"; then | |
8979 | func_to_tool_file "$output_objdir/$outputname" | |
8980 | postlink_cmds=`func_echo_all "$postlink_cmds" | $SED -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g' -e 's%@TOOL_OUTPUT@%'"$func_to_tool_file_result"'%g'` | |
8981 | func_execute_cmds "$postlink_cmds" 'exit $?' | |
8982 | fi | |
8109 | 8983 | |
8110 | 8984 | # Now create the wrapper script. |
8111 | 8985 | func_verbose "creating $output" |
8204 | 9078 | else |
8205 | 9079 | oldobjs="$old_deplibs $non_pic_objects" |
8206 | 9080 | if test "$preload" = yes && test -f "$symfileobj"; then |
8207 | oldobjs="$oldobjs $symfileobj" | |
9081 | func_append oldobjs " $symfileobj" | |
8208 | 9082 | fi |
8209 | 9083 | fi |
8210 | 9084 | addlibs="$old_convenience" |
8212 | 9086 | |
8213 | 9087 | if test -n "$addlibs"; then |
8214 | 9088 | gentop="$output_objdir/${outputname}x" |
8215 | generated="$generated $gentop" | |
9089 | func_append generated " $gentop" | |
8216 | 9090 | |
8217 | 9091 | func_extract_archives $gentop $addlibs |
8218 | oldobjs="$oldobjs $func_extract_archives_result" | |
9092 | func_append oldobjs " $func_extract_archives_result" | |
8219 | 9093 | fi |
8220 | 9094 | |
8221 | 9095 | # Do each command in the archive commands. |
8226 | 9100 | # Add any objects from preloaded convenience libraries |
8227 | 9101 | if test -n "$dlprefiles"; then |
8228 | 9102 | gentop="$output_objdir/${outputname}x" |
8229 | generated="$generated $gentop" | |
9103 | func_append generated " $gentop" | |
8230 | 9104 | |
8231 | 9105 | func_extract_archives $gentop $dlprefiles |
8232 | oldobjs="$oldobjs $func_extract_archives_result" | |
9106 | func_append oldobjs " $func_extract_archives_result" | |
8233 | 9107 | fi |
8234 | 9108 | |
8235 | 9109 | # POSIX demands no paths to be encoded in archives. We have |
8247 | 9121 | else |
8248 | 9122 | echo "copying selected object files to avoid basename conflicts..." |
8249 | 9123 | gentop="$output_objdir/${outputname}x" |
8250 | generated="$generated $gentop" | |
9124 | func_append generated " $gentop" | |
8251 | 9125 | func_mkdir_p "$gentop" |
8252 | 9126 | save_oldobjs=$oldobjs |
8253 | 9127 | oldobjs= |
8271 | 9145 | esac |
8272 | 9146 | done |
8273 | 9147 | func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj" |
8274 | oldobjs="$oldobjs $gentop/$newobj" | |
9148 | func_append oldobjs " $gentop/$newobj" | |
8275 | 9149 | ;; |
8276 | *) oldobjs="$oldobjs $obj" ;; | |
9150 | *) func_append oldobjs " $obj" ;; | |
8277 | 9151 | esac |
8278 | 9152 | done |
8279 | 9153 | fi |
8282 | 9156 | func_len " $cmds" |
8283 | 9157 | len=$func_len_result |
8284 | 9158 | if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then |
9159 | cmds=$old_archive_cmds | |
9160 | elif test -n "$archiver_list_spec"; then | |
9161 | func_verbose "using command file archive linking..." | |
9162 | for obj in $oldobjs | |
9163 | do | |
9164 | func_to_tool_file "$obj" | |
9165 | $ECHO "$func_to_tool_file_result" | |
9166 | done > $output_objdir/$libname.libcmd | |
9167 | func_to_tool_file "$output_objdir/$libname.libcmd" | |
9168 | oldobjs=" $archiver_list_spec$func_to_tool_file_result" | |
8285 | 9169 | cmds=$old_archive_cmds |
8286 | 9170 | else |
8287 | 9171 | # the command line is too long to link in one step, link in parts |
8379 | 9263 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib` |
8380 | 9264 | test -z "$libdir" && \ |
8381 | 9265 | func_fatal_error "\`$deplib' is not a valid libtool archive" |
8382 | newdependency_libs="$newdependency_libs $libdir/$name" | |
9266 | func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name" | |
8383 | 9267 | ;; |
8384 | *) newdependency_libs="$newdependency_libs $deplib" ;; | |
9268 | -L*) | |
9269 | func_stripname -L '' "$deplib" | |
9270 | func_replace_sysroot "$func_stripname_result" | |
9271 | func_append newdependency_libs " -L$func_replace_sysroot_result" | |
9272 | ;; | |
9273 | -R*) | |
9274 | func_stripname -R '' "$deplib" | |
9275 | func_replace_sysroot "$func_stripname_result" | |
9276 | func_append newdependency_libs " -R$func_replace_sysroot_result" | |
9277 | ;; | |
9278 | *) func_append newdependency_libs " $deplib" ;; | |
8385 | 9279 | esac |
8386 | 9280 | done |
8387 | 9281 | dependency_libs="$newdependency_libs" |
8395 | 9289 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` |
8396 | 9290 | test -z "$libdir" && \ |
8397 | 9291 | func_fatal_error "\`$lib' is not a valid libtool archive" |
8398 | newdlfiles="$newdlfiles $libdir/$name" | |
9292 | func_append newdlfiles " ${lt_sysroot:+=}$libdir/$name" | |
8399 | 9293 | ;; |
8400 | *) newdlfiles="$newdlfiles $lib" ;; | |
9294 | *) func_append newdlfiles " $lib" ;; | |
8401 | 9295 | esac |
8402 | 9296 | done |
8403 | 9297 | dlfiles="$newdlfiles" |
8414 | 9308 | eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib` |
8415 | 9309 | test -z "$libdir" && \ |
8416 | 9310 | func_fatal_error "\`$lib' is not a valid libtool archive" |
8417 | newdlprefiles="$newdlprefiles $libdir/$name" | |
9311 | func_append newdlprefiles " ${lt_sysroot:+=}$libdir/$name" | |
8418 | 9312 | ;; |
8419 | 9313 | esac |
8420 | 9314 | done |
8426 | 9320 | [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; |
8427 | 9321 | *) abs=`pwd`"/$lib" ;; |
8428 | 9322 | esac |
8429 | newdlfiles="$newdlfiles $abs" | |
9323 | func_append newdlfiles " $abs" | |
8430 | 9324 | done |
8431 | 9325 | dlfiles="$newdlfiles" |
8432 | 9326 | newdlprefiles= |
8435 | 9329 | [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;; |
8436 | 9330 | *) abs=`pwd`"/$lib" ;; |
8437 | 9331 | esac |
8438 | newdlprefiles="$newdlprefiles $abs" | |
9332 | func_append newdlprefiles " $abs" | |
8439 | 9333 | done |
8440 | 9334 | dlprefiles="$newdlprefiles" |
8441 | 9335 | fi |
8520 | 9414 | exit $EXIT_SUCCESS |
8521 | 9415 | } |
8522 | 9416 | |
8523 | { test "$mode" = link || test "$mode" = relink; } && | |
9417 | { test "$opt_mode" = link || test "$opt_mode" = relink; } && | |
8524 | 9418 | func_mode_link ${1+"$@"} |
8525 | 9419 | |
8526 | 9420 | |
8540 | 9434 | for arg |
8541 | 9435 | do |
8542 | 9436 | case $arg in |
8543 | -f) RM="$RM $arg"; rmforce=yes ;; | |
8544 | -*) RM="$RM $arg" ;; | |
8545 | *) files="$files $arg" ;; | |
9437 | -f) func_append RM " $arg"; rmforce=yes ;; | |
9438 | -*) func_append RM " $arg" ;; | |
9439 | *) func_append files " $arg" ;; | |
8546 | 9440 | esac |
8547 | 9441 | done |
8548 | 9442 | |
8551 | 9445 | |
8552 | 9446 | rmdirs= |
8553 | 9447 | |
8554 | origobjdir="$objdir" | |
8555 | 9448 | for file in $files; do |
8556 | 9449 | func_dirname "$file" "" "." |
8557 | 9450 | dir="$func_dirname_result" |
8558 | 9451 | if test "X$dir" = X.; then |
8559 | objdir="$origobjdir" | |
9452 | odir="$objdir" | |
8560 | 9453 | else |
8561 | objdir="$dir/$origobjdir" | |
9454 | odir="$dir/$objdir" | |
8562 | 9455 | fi |
8563 | 9456 | func_basename "$file" |
8564 | 9457 | name="$func_basename_result" |
8565 | test "$mode" = uninstall && objdir="$dir" | |
8566 | ||
8567 | # Remember objdir for removal later, being careful to avoid duplicates | |
8568 | if test "$mode" = clean; then | |
9458 | test "$opt_mode" = uninstall && odir="$dir" | |
9459 | ||
9460 | # Remember odir for removal later, being careful to avoid duplicates | |
9461 | if test "$opt_mode" = clean; then | |
8569 | 9462 | case " $rmdirs " in |
8570 | *" $objdir "*) ;; | |
8571 | *) rmdirs="$rmdirs $objdir" ;; | |
9463 | *" $odir "*) ;; | |
9464 | *) func_append rmdirs " $odir" ;; | |
8572 | 9465 | esac |
8573 | 9466 | fi |
8574 | 9467 | |
8594 | 9487 | |
8595 | 9488 | # Delete the libtool libraries and symlinks. |
8596 | 9489 | for n in $library_names; do |
8597 | rmfiles="$rmfiles $objdir/$n" | |
9490 | func_append rmfiles " $odir/$n" | |
8598 | 9491 | done |
8599 | test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library" | |
8600 | ||
8601 | case "$mode" in | |
9492 | test -n "$old_library" && func_append rmfiles " $odir/$old_library" | |
9493 | ||
9494 | case "$opt_mode" in | |
8602 | 9495 | clean) |
8603 | case " $library_names " in | |
8604 | # " " in the beginning catches empty $dlname | |
9496 | case " $library_names " in | |
8605 | 9497 | *" $dlname "*) ;; |
8606 | *) rmfiles="$rmfiles $objdir/$dlname" ;; | |
9498 | *) test -n "$dlname" && func_append rmfiles " $odir/$dlname" ;; | |
8607 | 9499 | esac |
8608 | test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i" | |
9500 | test -n "$libdir" && func_append rmfiles " $odir/$name $odir/${name}i" | |
8609 | 9501 | ;; |
8610 | 9502 | uninstall) |
8611 | 9503 | if test -n "$library_names"; then |
8633 | 9525 | # Add PIC object to the list of files to remove. |
8634 | 9526 | if test -n "$pic_object" && |
8635 | 9527 | test "$pic_object" != none; then |
8636 | rmfiles="$rmfiles $dir/$pic_object" | |
9528 | func_append rmfiles " $dir/$pic_object" | |
8637 | 9529 | fi |
8638 | 9530 | |
8639 | 9531 | # Add non-PIC object to the list of files to remove. |
8640 | 9532 | if test -n "$non_pic_object" && |
8641 | 9533 | test "$non_pic_object" != none; then |
8642 | rmfiles="$rmfiles $dir/$non_pic_object" | |
9534 | func_append rmfiles " $dir/$non_pic_object" | |
8643 | 9535 | fi |
8644 | 9536 | fi |
8645 | 9537 | ;; |
8646 | 9538 | |
8647 | 9539 | *) |
8648 | if test "$mode" = clean ; then | |
9540 | if test "$opt_mode" = clean ; then | |
8649 | 9541 | noexename=$name |
8650 | 9542 | case $file in |
8651 | 9543 | *.exe) |
8655 | 9547 | noexename=$func_stripname_result |
8656 | 9548 | # $file with .exe has already been added to rmfiles, |
8657 | 9549 | # add $file without .exe |
8658 | rmfiles="$rmfiles $file" | |
9550 | func_append rmfiles " $file" | |
8659 | 9551 | ;; |
8660 | 9552 | esac |
8661 | 9553 | # Do a test to see if this is a libtool program. |
8664 | 9556 | func_ltwrapper_scriptname "$file" |
8665 | 9557 | relink_command= |
8666 | 9558 | func_source $func_ltwrapper_scriptname_result |
8667 | rmfiles="$rmfiles $func_ltwrapper_scriptname_result" | |
9559 | func_append rmfiles " $func_ltwrapper_scriptname_result" | |
8668 | 9560 | else |
8669 | 9561 | relink_command= |
8670 | 9562 | func_source $dir/$noexename |
8672 | 9564 | |
8673 | 9565 | # note $name still contains .exe if it was in $file originally |
8674 | 9566 | # as does the version of $file that was added into $rmfiles |
8675 | rmfiles="$rmfiles $objdir/$name $objdir/${name}S.${objext}" | |
9567 | func_append rmfiles " $odir/$name $odir/${name}S.${objext}" | |
8676 | 9568 | if test "$fast_install" = yes && test -n "$relink_command"; then |
8677 | rmfiles="$rmfiles $objdir/lt-$name" | |
9569 | func_append rmfiles " $odir/lt-$name" | |
8678 | 9570 | fi |
8679 | 9571 | if test "X$noexename" != "X$name" ; then |
8680 | rmfiles="$rmfiles $objdir/lt-${noexename}.c" | |
9572 | func_append rmfiles " $odir/lt-${noexename}.c" | |
8681 | 9573 | fi |
8682 | 9574 | fi |
8683 | 9575 | fi |
8685 | 9577 | esac |
8686 | 9578 | func_show_eval "$RM $rmfiles" 'exit_status=1' |
8687 | 9579 | done |
8688 | objdir="$origobjdir" | |
8689 | 9580 | |
8690 | 9581 | # Try to remove the ${objdir}s in the directories where we deleted files |
8691 | 9582 | for dir in $rmdirs; do |
8697 | 9588 | exit $exit_status |
8698 | 9589 | } |
8699 | 9590 | |
8700 | { test "$mode" = uninstall || test "$mode" = clean; } && | |
9591 | { test "$opt_mode" = uninstall || test "$opt_mode" = clean; } && | |
8701 | 9592 | func_mode_uninstall ${1+"$@"} |
8702 | 9593 | |
8703 | test -z "$mode" && { | |
9594 | test -z "$opt_mode" && { | |
8704 | 9595 | help="$generic_help" |
8705 | 9596 | func_fatal_help "you must specify a MODE" |
8706 | 9597 | } |
8707 | 9598 | |
8708 | 9599 | test -z "$exec_cmd" && \ |
8709 | func_fatal_help "invalid operation mode \`$mode'" | |
9600 | func_fatal_help "invalid operation mode \`$opt_mode'" | |
8710 | 9601 | |
8711 | 9602 | if test -n "$exec_cmd"; then |
8712 | 9603 | eval exec "$exec_cmd" |
4 | 4 | src/main.c |
5 | 5 | src/polkitgnomeauthenticationdialog.c |
6 | 6 | src/polkitgnomeauthenticator.c |
7 | src/polkitgnomelistener.c |
155 | 155 | DEFS = @DEFS@ |
156 | 156 | DEPDIR = @DEPDIR@ |
157 | 157 | DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ |
158 | DLLTOOL = @DLLTOOL@ | |
158 | 159 | DSYMUTIL = @DSYMUTIL@ |
159 | 160 | DUMPBIN = @DUMPBIN@ |
160 | 161 | ECHO_C = @ECHO_C@ |
205 | 206 | LT_REVISION = @LT_REVISION@ |
206 | 207 | MAINT = @MAINT@ |
207 | 208 | MAKEINFO = @MAKEINFO@ |
209 | MANIFEST_TOOL = @MANIFEST_TOOL@ | |
208 | 210 | MKDIR_P = @MKDIR_P@ |
209 | 211 | MKINSTALLDIRS = @MKINSTALLDIRS@ |
210 | 212 | MSGFMT = @MSGFMT@ |
248 | 250 | abs_srcdir = @abs_srcdir@ |
249 | 251 | abs_top_builddir = @abs_top_builddir@ |
250 | 252 | abs_top_srcdir = @abs_top_srcdir@ |
253 | ac_ct_AR = @ac_ct_AR@ | |
251 | 254 | ac_ct_CC = @ac_ct_CC@ |
252 | 255 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
253 | 256 | am__include = @am__include@ |
0 | ||
1 | NULL = | |
0 | 2 | |
1 | 3 | FULL_LIBEXECDIR=$(libexecdir) |
2 | 4 | |
3 | 5 | libexec_PROGRAMS = polkit-gnome-authentication-agent-1 |
6 | ||
7 | polkitgnomemarshal.h polkitgnomemarshal.c : Makefile.am $(srcdir)/polkitgnomemarshal.list | |
8 | glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --header > polkitgnomemarshal.h.tmp && mv polkitgnomemarshal.h.tmp polkitgnomemarshal.h | |
9 | (echo "#include \"polkitgnomemarshal.h\""; glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --body) > polkitgnomemarshal.c.tmp && mv polkitgnomemarshal.c.tmp polkitgnomemarshal.c | |
10 | touch polkitgnomemarshal.stamp | |
11 | ||
12 | BUILT_SOURCES = polkitgnomemarshal.h polkitgnomemarshal.c | |
4 | 13 | |
5 | 14 | polkit_gnome_authentication_agent_1_SOURCES = \ |
6 | 15 | polkitgnomelistener.h polkitgnomelistener.c \ |
7 | 16 | polkitgnomeauthenticator.h polkitgnomeauthenticator.c \ |
8 | 17 | polkitgnomeauthenticationdialog.h polkitgnomeauthenticationdialog.c \ |
9 | 18 | main.c \ |
10 | $(BUILT_SOURCES) | |
19 | $(BUILT_SOURCES) \ | |
20 | $(NULL) | |
11 | 21 | |
12 | 22 | polkit_gnome_authentication_agent_1_CPPFLAGS = \ |
13 | 23 | -I$(top_srcdir) \ |
36 | 46 | $(POLKIT_GOBJECT_LIBS) \ |
37 | 47 | $(INTLLIBS) |
38 | 48 | |
39 | EXTRA_DIST = | |
49 | EXTRA_DIST = polkitgnomemarshal.list | |
40 | 50 | |
41 | 51 | clean-local : |
42 | 52 | rm -f *~ |
46 | 46 | CONFIG_CLEAN_VPATH_FILES = |
47 | 47 | am__installdirs = "$(DESTDIR)$(libexecdir)" |
48 | 48 | PROGRAMS = $(libexec_PROGRAMS) |
49 | am__objects_1 = polkit_gnome_authentication_agent_1-polkitgnomemarshal.$(OBJEXT) | |
50 | am__objects_2 = | |
49 | 51 | am_polkit_gnome_authentication_agent_1_OBJECTS = polkit_gnome_authentication_agent_1-polkitgnomelistener.$(OBJEXT) \ |
50 | 52 | polkit_gnome_authentication_agent_1-polkitgnomeauthenticator.$(OBJEXT) \ |
51 | 53 | polkit_gnome_authentication_agent_1-polkitgnomeauthenticationdialog.$(OBJEXT) \ |
52 | polkit_gnome_authentication_agent_1-main.$(OBJEXT) | |
54 | polkit_gnome_authentication_agent_1-main.$(OBJEXT) \ | |
55 | $(am__objects_1) $(am__objects_2) | |
53 | 56 | polkit_gnome_authentication_agent_1_OBJECTS = \ |
54 | 57 | $(am_polkit_gnome_authentication_agent_1_OBJECTS) |
55 | 58 | am__DEPENDENCIES_1 = |
121 | 124 | DEFS = @DEFS@ |
122 | 125 | DEPDIR = @DEPDIR@ |
123 | 126 | DISABLE_DEPRECATED = @DISABLE_DEPRECATED@ |
127 | DLLTOOL = @DLLTOOL@ | |
124 | 128 | DSYMUTIL = @DSYMUTIL@ |
125 | 129 | DUMPBIN = @DUMPBIN@ |
126 | 130 | ECHO_C = @ECHO_C@ |
171 | 175 | LT_REVISION = @LT_REVISION@ |
172 | 176 | MAINT = @MAINT@ |
173 | 177 | MAKEINFO = @MAKEINFO@ |
178 | MANIFEST_TOOL = @MANIFEST_TOOL@ | |
174 | 179 | MKDIR_P = @MKDIR_P@ |
175 | 180 | MKINSTALLDIRS = @MKINSTALLDIRS@ |
176 | 181 | MSGFMT = @MSGFMT@ |
214 | 219 | abs_srcdir = @abs_srcdir@ |
215 | 220 | abs_top_builddir = @abs_top_builddir@ |
216 | 221 | abs_top_srcdir = @abs_top_srcdir@ |
222 | ac_ct_AR = @ac_ct_AR@ | |
217 | 223 | ac_ct_CC = @ac_ct_CC@ |
218 | 224 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ |
219 | 225 | am__include = @am__include@ |
261 | 267 | top_build_prefix = @top_build_prefix@ |
262 | 268 | top_builddir = @top_builddir@ |
263 | 269 | top_srcdir = @top_srcdir@ |
270 | NULL = | |
264 | 271 | FULL_LIBEXECDIR = $(libexecdir) |
272 | BUILT_SOURCES = polkitgnomemarshal.h polkitgnomemarshal.c | |
265 | 273 | polkit_gnome_authentication_agent_1_SOURCES = \ |
266 | 274 | polkitgnomelistener.h polkitgnomelistener.c \ |
267 | 275 | polkitgnomeauthenticator.h polkitgnomeauthenticator.c \ |
268 | 276 | polkitgnomeauthenticationdialog.h polkitgnomeauthenticationdialog.c \ |
269 | 277 | main.c \ |
270 | $(BUILT_SOURCES) | |
278 | $(BUILT_SOURCES) \ | |
279 | $(NULL) | |
271 | 280 | |
272 | 281 | polkit_gnome_authentication_agent_1_CPPFLAGS = \ |
273 | 282 | -I$(top_srcdir) \ |
296 | 305 | $(POLKIT_GOBJECT_LIBS) \ |
297 | 306 | $(INTLLIBS) |
298 | 307 | |
299 | EXTRA_DIST = | |
300 | all: all-am | |
308 | EXTRA_DIST = polkitgnomemarshal.list | |
309 | all: $(BUILT_SOURCES) | |
310 | $(MAKE) $(AM_MAKEFLAGS) all-am | |
301 | 311 | |
302 | 312 | .SUFFIXES: |
303 | 313 | .SUFFIXES: .c .lo .o .obj |
388 | 398 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomeauthenticationdialog.Po@am__quote@ |
389 | 399 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomeauthenticator.Po@am__quote@ |
390 | 400 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomelistener.Po@am__quote@ |
401 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Po@am__quote@ | |
391 | 402 | |
392 | 403 | .c.o: |
393 | 404 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< |
476 | 487 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='main.c' object='polkit_gnome_authentication_agent_1-main.obj' libtool=no @AMDEPBACKSLASH@ |
477 | 488 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ |
478 | 489 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authentication_agent_1-main.obj `if test -f 'main.c'; then $(CYGPATH_W) 'main.c'; else $(CYGPATH_W) '$(srcdir)/main.c'; fi` |
490 | ||
491 | polkit_gnome_authentication_agent_1-polkitgnomemarshal.o: polkitgnomemarshal.c | |
492 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -MT polkit_gnome_authentication_agent_1-polkitgnomemarshal.o -MD -MP -MF $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.o `test -f 'polkitgnomemarshal.c' || echo '$(srcdir)/'`polkitgnomemarshal.c | |
493 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Po | |
494 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | |
495 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkitgnomemarshal.c' object='polkit_gnome_authentication_agent_1-polkitgnomemarshal.o' libtool=no @AMDEPBACKSLASH@ | |
496 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
497 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.o `test -f 'polkitgnomemarshal.c' || echo '$(srcdir)/'`polkitgnomemarshal.c | |
498 | ||
499 | polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj: polkitgnomemarshal.c | |
500 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -MT polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj -MD -MP -MF $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj `if test -f 'polkitgnomemarshal.c'; then $(CYGPATH_W) 'polkitgnomemarshal.c'; else $(CYGPATH_W) '$(srcdir)/polkitgnomemarshal.c'; fi` | |
501 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Tpo $(DEPDIR)/polkit_gnome_authentication_agent_1-polkitgnomemarshal.Po | |
502 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | |
503 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='polkitgnomemarshal.c' object='polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj' libtool=no @AMDEPBACKSLASH@ | |
504 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | |
505 | @am__fastdepCC_FALSE@ $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(polkit_gnome_authentication_agent_1_CPPFLAGS) $(CPPFLAGS) $(polkit_gnome_authentication_agent_1_CFLAGS) $(CFLAGS) -c -o polkit_gnome_authentication_agent_1-polkitgnomemarshal.obj `if test -f 'polkitgnomemarshal.c'; then $(CYGPATH_W) 'polkitgnomemarshal.c'; else $(CYGPATH_W) '$(srcdir)/polkitgnomemarshal.c'; fi` | |
479 | 506 | |
480 | 507 | mostlyclean-libtool: |
481 | 508 | -rm -f *.lo |
566 | 593 | fi; \ |
567 | 594 | done |
568 | 595 | check-am: all-am |
569 | check: check-am | |
596 | check: $(BUILT_SOURCES) | |
597 | $(MAKE) $(AM_MAKEFLAGS) check-am | |
570 | 598 | all-am: Makefile $(PROGRAMS) |
571 | 599 | installdirs: |
572 | 600 | for dir in "$(DESTDIR)$(libexecdir)"; do \ |
573 | 601 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ |
574 | 602 | done |
575 | install: install-am | |
603 | install: $(BUILT_SOURCES) | |
604 | $(MAKE) $(AM_MAKEFLAGS) install-am | |
576 | 605 | install-exec: install-exec-am |
577 | 606 | install-data: install-data-am |
578 | 607 | uninstall: uninstall-am |
597 | 626 | maintainer-clean-generic: |
598 | 627 | @echo "This command is intended for maintainers to use" |
599 | 628 | @echo "it deletes files that may require special tools to rebuild." |
629 | -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) | |
600 | 630 | clean: clean-am |
601 | 631 | |
602 | 632 | clean-am: clean-generic clean-libexecPROGRAMS clean-libtool \ |
668 | 698 | |
669 | 699 | uninstall-am: uninstall-libexecPROGRAMS |
670 | 700 | |
671 | .MAKE: install-am install-strip | |
701 | .MAKE: all check install install-am install-strip | |
672 | 702 | |
673 | 703 | .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \ |
674 | 704 | clean-libexecPROGRAMS clean-libtool clean-local ctags \ |
686 | 716 | uninstall-libexecPROGRAMS |
687 | 717 | |
688 | 718 | |
719 | polkitgnomemarshal.h polkitgnomemarshal.c : Makefile.am $(srcdir)/polkitgnomemarshal.list | |
720 | glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --header > polkitgnomemarshal.h.tmp && mv polkitgnomemarshal.h.tmp polkitgnomemarshal.h | |
721 | (echo "#include \"polkitgnomemarshal.h\""; glib-genmarshal --prefix=_polkit_gnome_marshal $(srcdir)/polkitgnomemarshal.list --body) > polkitgnomemarshal.c.tmp && mv polkitgnomemarshal.c.tmp polkitgnomemarshal.c | |
722 | touch polkitgnomemarshal.stamp | |
723 | ||
689 | 724 | clean-local : |
690 | 725 | rm -f *~ |
691 | 726 |
34 | 34 | |
35 | 35 | /* the session we are servicing */ |
36 | 36 | static PolkitSubject *session = NULL; |
37 | ||
38 | static GDBusConnection *session_bus_connection = NULL; | |
37 | 39 | |
38 | 40 | int |
39 | 41 | main (int argc, char **argv) |
81 | 83 | } |
82 | 84 | |
83 | 85 | error = NULL; |
84 | if (!polkit_agent_register_listener (listener, | |
86 | if (!polkit_agent_listener_register (listener, | |
87 | POLKIT_AGENT_REGISTER_FLAGS_NONE, | |
85 | 88 | session, |
86 | 89 | "/org/gnome/PolicyKit1/AuthenticationAgent", |
90 | NULL, /* GCancellable */ | |
87 | 91 | &error)) |
88 | 92 | { |
89 | 93 | g_printerr ("Cannot register authentication agent: %s\n", error->message); |
90 | 94 | g_error_free (error); |
91 | 95 | goto out; |
92 | 96 | } |
97 | ||
98 | /* Poor mans session management - connect to the session bus | |
99 | * so we get killed when it goes away | |
100 | */ | |
101 | session_bus_connection = g_bus_get_sync (G_BUS_TYPE_SESSION, NULL, NULL); | |
93 | 102 | |
94 | 103 | g_main_loop_run (loop); |
95 | 104 |
269 | 269 | GdkPixbuf *vendor_pixbuf; |
270 | 270 | GtkWidget *image; |
271 | 271 | |
272 | image = NULL; | |
272 | 273 | pixbuf = NULL; |
273 | 274 | copy_pixbuf = NULL; |
274 | 275 | vendor_pixbuf = NULL; |
298 | 299 | 0, |
299 | 300 | NULL); |
300 | 301 | if (pixbuf == NULL) |
301 | goto out; | |
302 | { | |
303 | g_warning ("Unable to get a pixbuf for GTK_STOCK_DIALOG_AUTHENTICATION (%s) at size 48", | |
304 | GTK_STOCK_DIALOG_AUTHENTICATION); | |
305 | image = gtk_image_new_from_pixbuf (vendor_pixbuf); | |
306 | goto out; | |
307 | } | |
302 | 308 | |
303 | 309 | /* need to copy the pixbuf since we're modifying it */ |
304 | 310 | copy_pixbuf = gdk_pixbuf_copy (pixbuf); |
31 | 31 | |
32 | 32 | #include "polkitgnomeauthenticator.h" |
33 | 33 | #include "polkitgnomeauthenticationdialog.h" |
34 | #include "polkitgnomemarshal.h" | |
34 | 35 | |
35 | 36 | struct _PolkitGnomeAuthenticator |
36 | 37 | { |
125 | 126 | * PolkitGnomeAuthenticator::completed: |
126 | 127 | * @authenticator: A #PolkitGnomeAuthenticator. |
127 | 128 | * @gained_authorization: Whether the authorization was gained. |
129 | * @dismissed: Whether the dialog was dismissed. | |
128 | 130 | * |
129 | 131 | * Emitted when the authentication is completed. The user is supposed to dispose of @authenticator |
130 | 132 | * upon receiving this signal. |
135 | 137 | 0, /* class offset */ |
136 | 138 | NULL, /* accumulator */ |
137 | 139 | NULL, /* accumulator data */ |
138 | g_cclosure_marshal_VOID__BOOLEAN, | |
140 | _polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN, | |
139 | 141 | G_TYPE_NONE, |
140 | 1, | |
142 | 2, | |
143 | G_TYPE_BOOLEAN, | |
141 | 144 | G_TYPE_BOOLEAN); |
142 | 145 | } |
143 | 146 | |
470 | 473 | } |
471 | 474 | |
472 | 475 | out: |
473 | g_signal_emit_by_name (authenticator, "completed", authenticator->gained_authorization); | |
476 | g_signal_emit_by_name (authenticator, | |
477 | "completed", | |
478 | authenticator->gained_authorization, | |
479 | authenticator->was_cancelled); | |
474 | 480 | |
475 | 481 | g_object_unref (authenticator); |
476 | 482 |
22 | 22 | #include "config.h" |
23 | 23 | |
24 | 24 | #include <string.h> |
25 | #include <glib/gi18n.h> | |
25 | 26 | |
26 | 27 | #include "polkitgnomelistener.h" |
27 | 28 | #include "polkitgnomeauthenticator.h" |
66 | 67 | static void |
67 | 68 | polkit_gnome_listener_finalize (GObject *object) |
68 | 69 | { |
69 | PolkitGnomeListener *listener; | |
70 | ||
71 | listener = POLKIT_GNOME_LISTENER (object); | |
72 | ||
73 | 70 | if (G_OBJECT_CLASS (polkit_gnome_listener_parent_class)->finalize != NULL) |
74 | 71 | G_OBJECT_CLASS (polkit_gnome_listener_parent_class)->finalize (object); |
75 | 72 | } |
147 | 144 | static void |
148 | 145 | authenticator_completed (PolkitGnomeAuthenticator *authenticator, |
149 | 146 | gboolean gained_authorization, |
147 | gboolean dismissed, | |
150 | 148 | gpointer user_data) |
151 | 149 | { |
152 | 150 | AuthData *data = user_data; |
157 | 155 | |
158 | 156 | g_object_unref (authenticator); |
159 | 157 | |
158 | if (dismissed) | |
159 | { | |
160 | g_simple_async_result_set_error (data->simple, | |
161 | POLKIT_ERROR, | |
162 | POLKIT_ERROR_CANCELLED, | |
163 | _("Authentation dialog was dismissed by the user")); | |
164 | } | |
160 | 165 | g_simple_async_result_complete (data->simple); |
161 | 166 | g_object_unref (data->simple); |
162 | 167 |
0 | #include "polkitgnomemarshal.h" | |
1 | ||
2 | #include <glib-object.h> | |
3 | ||
4 | ||
5 | #ifdef G_ENABLE_DEBUG | |
6 | #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) | |
7 | #define g_marshal_value_peek_char(v) g_value_get_char (v) | |
8 | #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) | |
9 | #define g_marshal_value_peek_int(v) g_value_get_int (v) | |
10 | #define g_marshal_value_peek_uint(v) g_value_get_uint (v) | |
11 | #define g_marshal_value_peek_long(v) g_value_get_long (v) | |
12 | #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) | |
13 | #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) | |
14 | #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) | |
15 | #define g_marshal_value_peek_enum(v) g_value_get_enum (v) | |
16 | #define g_marshal_value_peek_flags(v) g_value_get_flags (v) | |
17 | #define g_marshal_value_peek_float(v) g_value_get_float (v) | |
18 | #define g_marshal_value_peek_double(v) g_value_get_double (v) | |
19 | #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) | |
20 | #define g_marshal_value_peek_param(v) g_value_get_param (v) | |
21 | #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) | |
22 | #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) | |
23 | #define g_marshal_value_peek_object(v) g_value_get_object (v) | |
24 | #define g_marshal_value_peek_variant(v) g_value_get_variant (v) | |
25 | #else /* !G_ENABLE_DEBUG */ | |
26 | /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. | |
27 | * Do not access GValues directly in your code. Instead, use the | |
28 | * g_value_get_*() functions | |
29 | */ | |
30 | #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int | |
31 | #define g_marshal_value_peek_char(v) (v)->data[0].v_int | |
32 | #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint | |
33 | #define g_marshal_value_peek_int(v) (v)->data[0].v_int | |
34 | #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint | |
35 | #define g_marshal_value_peek_long(v) (v)->data[0].v_long | |
36 | #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong | |
37 | #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 | |
38 | #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 | |
39 | #define g_marshal_value_peek_enum(v) (v)->data[0].v_long | |
40 | #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong | |
41 | #define g_marshal_value_peek_float(v) (v)->data[0].v_float | |
42 | #define g_marshal_value_peek_double(v) (v)->data[0].v_double | |
43 | #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer | |
44 | #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer | |
45 | #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer | |
46 | #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer | |
47 | #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer | |
48 | #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer | |
49 | #endif /* !G_ENABLE_DEBUG */ | |
50 | ||
51 | ||
52 | /* VOID:BOOLEAN,BOOLEAN (./polkitgnomemarshal.list:1) */ | |
53 | void | |
54 | _polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN (GClosure *closure, | |
55 | GValue *return_value G_GNUC_UNUSED, | |
56 | guint n_param_values, | |
57 | const GValue *param_values, | |
58 | gpointer invocation_hint G_GNUC_UNUSED, | |
59 | gpointer marshal_data) | |
60 | { | |
61 | typedef void (*GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (gpointer data1, | |
62 | gboolean arg_1, | |
63 | gboolean arg_2, | |
64 | gpointer data2); | |
65 | register GMarshalFunc_VOID__BOOLEAN_BOOLEAN callback; | |
66 | register GCClosure *cc = (GCClosure*) closure; | |
67 | register gpointer data1, data2; | |
68 | ||
69 | g_return_if_fail (n_param_values == 3); | |
70 | ||
71 | if (G_CCLOSURE_SWAP_DATA (closure)) | |
72 | { | |
73 | data1 = closure->data; | |
74 | data2 = g_value_peek_pointer (param_values + 0); | |
75 | } | |
76 | else | |
77 | { | |
78 | data1 = g_value_peek_pointer (param_values + 0); | |
79 | data2 = closure->data; | |
80 | } | |
81 | callback = (GMarshalFunc_VOID__BOOLEAN_BOOLEAN) (marshal_data ? marshal_data : cc->callback); | |
82 | ||
83 | callback (data1, | |
84 | g_marshal_value_peek_boolean (param_values + 1), | |
85 | g_marshal_value_peek_boolean (param_values + 2), | |
86 | data2); | |
87 | } | |
88 |
0 | ||
1 | #ifndef ___polkit_gnome_marshal_MARSHAL_H__ | |
2 | #define ___polkit_gnome_marshal_MARSHAL_H__ | |
3 | ||
4 | #include <glib-object.h> | |
5 | ||
6 | G_BEGIN_DECLS | |
7 | ||
8 | /* VOID:BOOLEAN,BOOLEAN (./polkitgnomemarshal.list:1) */ | |
9 | extern void _polkit_gnome_marshal_VOID__BOOLEAN_BOOLEAN (GClosure *closure, | |
10 | GValue *return_value, | |
11 | guint n_param_values, | |
12 | const GValue *param_values, | |
13 | gpointer invocation_hint, | |
14 | gpointer marshal_data); | |
15 | ||
16 | G_END_DECLS | |
17 | ||
18 | #endif /* ___polkit_gnome_marshal_MARSHAL_H__ */ | |
19 |
0 | VOID:BOOLEAN,BOOLEAN |